head	1.1;
branch	1.1.1;
access;
symbols
	netbsd-11-0-RC4:1.1.1.17
	netbsd-11-0-RC3:1.1.1.17
	netbsd-11-0-RC2:1.1.1.17
	netbsd-11-0-RC1:1.1.1.17
	perseant-exfatfs-base-20250801:1.1.1.17
	netbsd-11:1.1.1.17.0.2
	netbsd-11-base:1.1.1.17
	netbsd-10-1-RELEASE:1.1.1.16
	ntp-4-2-8p18:1.1.1.17
	perseant-exfatfs-base-20240630:1.1.1.16
	perseant-exfatfs:1.1.1.16.0.4
	perseant-exfatfs-base:1.1.1.16
	netbsd-8-3-RELEASE:1.1.1.12.4.1
	netbsd-9-4-RELEASE:1.1.1.14
	netbsd-10-0-RELEASE:1.1.1.16
	netbsd-10-0-RC6:1.1.1.16
	netbsd-10-0-RC5:1.1.1.16
	netbsd-10-0-RC4:1.1.1.16
	netbsd-10-0-RC3:1.1.1.16
	netbsd-10-0-RC2:1.1.1.16
	netbsd-10-0-RC1:1.1.1.16
	netbsd-10:1.1.1.16.0.2
	netbsd-10-base:1.1.1.16
	ntp-4-2-8p15:1.1.1.16
	netbsd-9-3-RELEASE:1.1.1.14
	cjep_sun2x-base1:1.1.1.15
	cjep_sun2x:1.1.1.15.0.4
	cjep_sun2x-base:1.1.1.15
	cjep_staticlib_x-base1:1.1.1.15
	netbsd-9-2-RELEASE:1.1.1.14
	cjep_staticlib_x:1.1.1.15.0.2
	cjep_staticlib_x-base:1.1.1.15
	netbsd-9-1-RELEASE:1.1.1.14
	ntp-4-2-8p14:1.1.1.15
	phil-wifi-20200421:1.1.1.14
	phil-wifi-20200411:1.1.1.14
	is-mlppp:1.1.1.14.0.4
	is-mlppp-base:1.1.1.14
	phil-wifi-20200406:1.1.1.14
	netbsd-8-2-RELEASE:1.1.1.12.4.1
	netbsd-9-0-RELEASE:1.1.1.14
	netbsd-9-0-RC2:1.1.1.14
	netbsd-9-0-RC1:1.1.1.14
	phil-wifi-20191119:1.1.1.14
	netbsd-9:1.1.1.14.0.2
	netbsd-9-base:1.1.1.14
	phil-wifi-20190609:1.1.1.14
	netbsd-8-1-RELEASE:1.1.1.12.4.1
	netbsd-8-1-RC1:1.1.1.12.4.1
	pgoyette-compat-merge-20190127:1.1.1.12.10.2
	pgoyette-compat-20190127:1.1.1.14
	pgoyette-compat-20190118:1.1.1.14
	pgoyette-compat-1226:1.1.1.14
	pgoyette-compat-1126:1.1.1.14
	pgoyette-compat-1020:1.1.1.14
	pgoyette-compat-0930:1.1.1.14
	ntp-4-2-8p12:1.1.1.14
	pgoyette-compat-0906:1.1.1.13
	netbsd-7-2-RELEASE:1.1.1.3.4.7
	pgoyette-compat-0728:1.1.1.13
	netbsd-8-0-RELEASE:1.1.1.12.4.1
	phil-wifi:1.1.1.13.0.2
	phil-wifi-base:1.1.1.13
	pgoyette-compat-0625:1.1.1.13
	netbsd-8-0-RC2:1.1.1.12.4.1
	pgoyette-compat-0521:1.1.1.13
	pgoyette-compat-0502:1.1.1.13
	pgoyette-compat-0422:1.1.1.13
	netbsd-8-0-RC1:1.1.1.12.4.1
	pgoyette-compat-0415:1.1.1.13
	pgoyette-compat-0407:1.1.1.13
	ntp-4-2-8p11:1.1.1.13
	pgoyette-compat-0330:1.1.1.12
	pgoyette-compat-0322:1.1.1.12
	pgoyette-compat-0315:1.1.1.12
	netbsd-7-1-2-RELEASE:1.1.1.3.4.5.4.2
	pgoyette-compat:1.1.1.12.0.10
	pgoyette-compat-base:1.1.1.12
	netbsd-7-1-1-RELEASE:1.1.1.3.4.5.4.2
	matt-nb8-mediatek:1.1.1.12.0.8
	matt-nb8-mediatek-base:1.1.1.12
	perseant-stdc-iso10646:1.1.1.12.0.6
	perseant-stdc-iso10646-base:1.1.1.12
	netbsd-8:1.1.1.12.0.4
	netbsd-8-base:1.1.1.12
	prg-localcount2-base3:1.1.1.12
	prg-localcount2-base2:1.1.1.12
	prg-localcount2-base1:1.1.1.12
	prg-localcount2:1.1.1.12.0.2
	prg-localcount2-base:1.1.1.12
	pgoyette-localcount-20170426:1.1.1.12
	bouyer-socketcan-base1:1.1.1.12
	ntp-4-2-8p10:1.1.1.12
	pgoyette-localcount-20170320:1.1.1.11
	netbsd-7-1:1.1.1.3.4.5.0.4
	netbsd-7-1-RELEASE:1.1.1.3.4.5
	netbsd-7-1-RC2:1.1.1.3.4.5
	netbsd-7-nhusb-base-20170116:1.1.1.3.4.5
	bouyer-socketcan:1.1.1.11.0.2
	bouyer-socketcan-base:1.1.1.11
	pgoyette-localcount-20170107:1.1.1.11
	netbsd-7-1-RC1:1.1.1.3.4.5
	ntp-4-2-8p9:1.1.1.11
	pgoyette-localcount-20161104:1.1.1.10
	netbsd-7-0-2-RELEASE:1.1.1.3.4.2.2.3
	localcount-20160914:1.1.1.10
	netbsd-7-nhusb:1.1.1.3.4.5.0.2
	netbsd-7-nhusb-base:1.1.1.3.4.5
	pgoyette-localcount-20160806:1.1.1.10
	pgoyette-localcount-20160726:1.1.1.10
	pgoyette-localcount:1.1.1.10.0.2
	pgoyette-localcount-base:1.1.1.10
	ntp-4-2-8p8:1.1.1.10
	netbsd-7-0-1-RELEASE:1.1.1.3.4.2.2.2
	ntp-4-2-8p7:1.1.1.9
	ntp-4-2-8p5:1.1.1.8
	ntp-4-2-8p4:1.1.1.7
	netbsd-7-0:1.1.1.3.4.2.0.2
	netbsd-7-0-RELEASE:1.1.1.3.4.2
	netbsd-7-0-RC3:1.1.1.3.4.2
	netbsd-7-0-RC2:1.1.1.3.4.2
	ntp-4-2-8p3:1.1.1.6
	netbsd-7-0-RC1:1.1.1.3.4.2
	ntp-4-2-8p2:1.1.1.5
	netbsd-5-1:1.1.1.4.0.6
	netbsd-5-2:1.1.1.4.0.4
	netbsd-5:1.1.1.4.0.2
	ntp-4-2-8:1.1.1.4
	netbsd-6-0-6-RELEASE:1.1.1.2
	netbsd-6-1-5-RELEASE:1.1.1.2
	netbsd-7:1.1.1.3.0.4
	netbsd-7-base:1.1.1.3
	yamt-pagecache-base9:1.1.1.3
	yamt-pagecache-tag8:1.1.1.1.6.1
	netbsd-6-1-4-RELEASE:1.1.1.2
	netbsd-6-0-5-RELEASE:1.1.1.2
	tls-earlyentropy:1.1.1.3.0.2
	tls-earlyentropy-base:1.1.1.3
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.3
	riastradh-drm2-base3:1.1.1.3
	netbsd-6-1-3-RELEASE:1.1.1.2
	netbsd-6-0-4-RELEASE:1.1.1.2
	ntp-2-4-7p404:1.1.1.3
	netbsd-6-1-2-RELEASE:1.1.1.2
	netbsd-6-0-3-RELEASE:1.1.1.2
	netbsd-6-1-1-RELEASE:1.1.1.2
	riastradh-drm2-base2:1.1.1.2
	riastradh-drm2-base1:1.1.1.2
	riastradh-drm2:1.1.1.2.0.10
	riastradh-drm2-base:1.1.1.2
	netbsd-6-1:1.1.1.2.0.16
	netbsd-6-0-2-RELEASE:1.1.1.2
	netbsd-6-1-RELEASE:1.1.1.2
	khorben-n900:1.1.1.2.0.14
	netbsd-6-1-RC4:1.1.1.2
	netbsd-6-1-RC3:1.1.1.2
	agc-symver:1.1.1.2.0.12
	agc-symver-base:1.1.1.2
	netbsd-6-1-RC2:1.1.1.2
	netbsd-6-1-RC1:1.1.1.2
	yamt-pagecache-base8:1.1.1.2
	netbsd-6-0-1-RELEASE:1.1.1.2
	yamt-pagecache-base7:1.1.1.2
	matt-nb6-plus-nbase:1.1.1.2
	yamt-pagecache-base6:1.1.1.2
	netbsd-6-0:1.1.1.2.0.8
	netbsd-6-0-RELEASE:1.1.1.2
	netbsd-6-0-RC2:1.1.1.2
	tls-maxphys:1.1.1.2.0.6
	tls-maxphys-base:1.1.1.3
	matt-nb6-plus:1.1.1.2.0.4
	matt-nb6-plus-base:1.1.1.2
	netbsd-6-0-RC1:1.1.1.2
	yamt-pagecache-base5:1.1.1.2
	yamt-pagecache-base4:1.1.1.2
	netbsd-6:1.1.1.2.0.2
	netbsd-6-base:1.1.1.2
	ntp-4-2-6p5:1.1.1.2
	yamt-pagecache-base3:1.1.1.1
	yamt-pagecache-base2:1.1.1.1
	yamt-pagecache:1.1.1.1.0.6
	yamt-pagecache-base:1.1.1.1
	cherry-xenmp:1.1.1.1.0.4
	cherry-xenmp-base:1.1.1.1
	bouyer-quota2-nbase:1.1.1.1
	bouyer-quota2:1.1.1.1.0.2
	bouyer-quota2-base:1.1.1.1
	matt-mips64-premerge-20101231:1.1.1.1
	matt-premerge-20091211:1.1.1.1
	ntp-4-2-6:1.1.1.1
	UDEL:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2009.12.13.16.53.28;	author kardel;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2009.12.13.16.53.28;	author kardel;	state Exp;
branches
	1.1.1.1.6.1;
next	1.1.1.2;

1.1.1.2
date	2012.01.31.21.20.07;	author kardel;	state Exp;
branches
	1.1.1.2.2.1
	1.1.1.2.6.1
	1.1.1.2.8.1
	1.1.1.2.16.1;
next	1.1.1.3;

1.1.1.3
date	2013.12.27.23.30.32;	author christos;	state Exp;
branches
	1.1.1.3.4.1;
next	1.1.1.4;
commitid	lUOr4MoxyTWJnPix;

1.1.1.4
date	2014.12.19.20.37.35;	author christos;	state Exp;
branches
	1.1.1.4.2.1
	1.1.1.4.4.1
	1.1.1.4.6.1;
next	1.1.1.5;
commitid	ZhiTe4k7DUh9XG2y;

1.1.1.5
date	2015.04.07.16.49.01;	author christos;	state Exp;
branches;
next	1.1.1.6;
commitid	3UUnsImQ7rfebGgy;

1.1.1.6
date	2015.07.10.13.02.48;	author christos;	state Exp;
branches;
next	1.1.1.7;
commitid	DcE5zM5BcAizUJsy;

1.1.1.7
date	2015.10.23.17.47.38;	author christos;	state Exp;
branches;
next	1.1.1.8;
commitid	l4KkwFjOmdO27gGy;

1.1.1.8
date	2016.01.08.20.55.28;	author christos;	state Exp;
branches;
next	1.1.1.9;
commitid	6w1NfYRHunx2GaQy;

1.1.1.9
date	2016.05.01.15.57.23;	author christos;	state Exp;
branches;
next	1.1.1.10;
commitid	b5SfeFzHnXqg0N4z;

1.1.1.10
date	2016.06.03.20.19.11;	author christos;	state Exp;
branches
	1.1.1.10.2.1;
next	1.1.1.11;
commitid	xg3ley0l83DCK39z;

1.1.1.11
date	2016.11.22.01.34.53;	author christos;	state Exp;
branches
	1.1.1.11.2.1;
next	1.1.1.12;
commitid	jybTCXxoeGsTZ3vz;

1.1.1.12
date	2017.04.13.19.17.23;	author christos;	state Exp;
branches
	1.1.1.12.4.1
	1.1.1.12.10.1;
next	1.1.1.13;
commitid	zA98vs29RDtCjpNz;

1.1.1.13
date	2018.04.07.00.15.44;	author christos;	state Exp;
branches
	1.1.1.13.2.1;
next	1.1.1.14;
commitid	zRDnVMnooDypsrxA;

1.1.1.14
date	2018.09.29.17.28.34;	author christos;	state Exp;
branches;
next	1.1.1.15;
commitid	00bOOQ6cPjg0y1UA;

1.1.1.15
date	2020.05.25.20.40.02;	author christos;	state Exp;
branches;
next	1.1.1.16;
commitid	yf5HSp8c1hlWbF9C;

1.1.1.16
date	2022.10.09.21.00.05;	author christos;	state Exp;
branches
	1.1.1.16.4.1;
next	1.1.1.17;
commitid	PQl761nnUQeZq5XD;

1.1.1.17
date	2024.08.18.20.37.32;	author christos;	state Exp;
branches;
next	;
commitid	RohTFOFoVLJItlmF;

1.1.1.1.6.1
date	2012.04.17.00.03.42;	author yamt;	state Exp;
branches;
next	1.1.1.1.6.2;

1.1.1.1.6.2
date	2014.05.22.15.50.03;	author yamt;	state Exp;
branches;
next	;
commitid	qRWX0Nj0VOtU8yBx;

1.1.1.2.2.1
date	2014.12.25.02.34.30;	author snj;	state Exp;
branches;
next	1.1.1.2.2.2;
commitid	JG3hF57oHA79Lm3y;

1.1.1.2.2.2
date	2015.11.07.22.26.33;	author snj;	state Exp;
branches;
next	1.1.1.2.2.3;
commitid	VU2yUebpm9Rs7dIy;

1.1.1.2.2.3
date	2016.05.08.22.02.07;	author snj;	state Exp;
branches;
next	1.1.1.2.2.4;
commitid	zHEEBgqjSkM59J5z;

1.1.1.2.2.4
date	2017.05.04.06.03.54;	author snj;	state Exp;
branches;
next	;
commitid	EWPBrgkNodS6f2Qz;

1.1.1.2.6.1
date	2014.08.19.23.51.36;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.1.1.2.8.1
date	2014.12.25.02.28.01;	author snj;	state Exp;
branches;
next	1.1.1.2.8.2;
commitid	5AhJfEA9N5i2Jm3y;

1.1.1.2.8.2
date	2015.11.08.00.15.55;	author snj;	state Exp;
branches;
next	1.1.1.2.8.3;
commitid	fZpCVA2ouDw4JdIy;

1.1.1.2.8.3
date	2016.05.08.21.50.59;	author snj;	state Exp;
branches;
next	1.1.1.2.8.4;
commitid	HoBFZ1u5W2WC5J5z;

1.1.1.2.8.4
date	2017.05.04.05.53.45;	author snj;	state Exp;
branches;
next	;
commitid	jhaluCHGWFjNb2Qz;

1.1.1.2.16.1
date	2014.12.25.02.12.59;	author snj;	state Exp;
branches;
next	1.1.1.2.16.2;
commitid	YfAuzsC3wt5BDm3y;

1.1.1.2.16.2
date	2015.11.07.22.46.13;	author snj;	state Exp;
branches;
next	1.1.1.2.16.3;
commitid	jwjzBuWirFRghdIy;

1.1.1.2.16.3
date	2016.05.08.21.55.46;	author snj;	state Exp;
branches;
next	1.1.1.2.16.4;
commitid	m3WlINcpOIQj7J5z;

1.1.1.2.16.4
date	2017.05.04.06.00.58;	author snj;	state Exp;
branches;
next	;
commitid	ozyckFeSCY9ee2Qz;

1.1.1.3.4.1
date	2014.12.24.00.05.14;	author riz;	state Exp;
branches;
next	1.1.1.3.4.2;
commitid	KfwYQsQPJT87Yd3y;

1.1.1.3.4.2
date	2015.04.23.18.53.00;	author snj;	state Exp;
branches
	1.1.1.3.4.2.2.1;
next	1.1.1.3.4.3;
commitid	0CvvwPSWQLcJkKiy;

1.1.1.3.4.3
date	2015.11.08.01.51.05;	author riz;	state Exp;
branches;
next	1.1.1.3.4.4;
commitid	7zOJRuOGV9oNieIy;

1.1.1.3.4.4
date	2016.05.11.11.35.36;	author martin;	state Exp;
branches;
next	1.1.1.3.4.5;
commitid	JpziLndfUrYvz36z;

1.1.1.3.4.5
date	2016.07.14.18.36.20;	author martin;	state Exp;
branches
	1.1.1.3.4.5.4.1;
next	1.1.1.3.4.6;
commitid	6kjEtVv37p6tQjez;

1.1.1.3.4.6
date	2017.03.20.10.59.43;	author martin;	state Exp;
branches;
next	1.1.1.3.4.7;
commitid	4b6smr7EQxDtkhKz;

1.1.1.3.4.7
date	2017.04.20.06.47.37;	author snj;	state Exp;
branches;
next	;
commitid	8YGxkemZ8b8bWeOz;

1.1.1.3.4.2.2.1
date	2015.11.08.01.55.26;	author riz;	state Exp;
branches;
next	1.1.1.3.4.2.2.2;
commitid	iGKaG8MkQx3hkeIy;

1.1.1.3.4.2.2.2
date	2016.05.11.10.02.36;	author martin;	state Exp;
branches;
next	1.1.1.3.4.2.2.3;
commitid	7r5k5ayLJtXs336z;

1.1.1.3.4.2.2.3
date	2016.07.14.18.26.59;	author martin;	state Exp;
branches;
next	1.1.1.3.4.2.2.4;
commitid	rmkxZzWCQf5gNjez;

1.1.1.3.4.2.2.4
date	2017.03.20.10.53.12;	author martin;	state Exp;
branches;
next	1.1.1.3.4.2.2.5;
commitid	3VhQ07sQEnbQhhKz;

1.1.1.3.4.2.2.5
date	2017.04.20.06.42.17;	author snj;	state Exp;
branches;
next	;
commitid	q90jpOnIDAhiUeOz;

1.1.1.3.4.5.4.1
date	2017.03.20.10.56.53;	author martin;	state Exp;
branches;
next	1.1.1.3.4.5.4.2;
commitid	9MswpoBtxFqtjhKz;

1.1.1.3.4.5.4.2
date	2017.04.20.06.45.12;	author snj;	state Exp;
branches;
next	;
commitid	Bfkz5J5WGkzoVeOz;

1.1.1.4.2.1
date	2014.12.19.20.37.35;	author msaitoh;	state dead;
branches;
next	1.1.1.4.2.2;
commitid	ysuzPTeSQAKO335y;

1.1.1.4.2.2
date	2015.01.07.04.45.21;	author msaitoh;	state Exp;
branches;
next	;
commitid	ysuzPTeSQAKO335y;

1.1.1.4.4.1
date	2014.12.19.20.37.35;	author msaitoh;	state dead;
branches;
next	1.1.1.4.4.2;
commitid	d5X8VW3e9U6mR45y;

1.1.1.4.4.2
date	2015.01.07.10.10.03;	author msaitoh;	state Exp;
branches;
next	;
commitid	d5X8VW3e9U6mR45y;

1.1.1.4.6.1
date	2014.12.19.20.37.35;	author msaitoh;	state dead;
branches;
next	1.1.1.4.6.2;
commitid	cHl8i0Vq4fzxx55y;

1.1.1.4.6.2
date	2015.01.07.12.13.12;	author msaitoh;	state Exp;
branches;
next	;
commitid	cHl8i0Vq4fzxx55y;

1.1.1.10.2.1
date	2017.01.07.08.54.03;	author pgoyette;	state Exp;
branches;
next	1.1.1.10.2.2;
commitid	uEL0C1YuiJrlV0Bz;

1.1.1.10.2.2
date	2017.04.26.02.52.40;	author pgoyette;	state Exp;
branches;
next	;
commitid	ojV02aOSdzvBqZOz;

1.1.1.11.2.1
date	2017.04.21.16.52.10;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.1.1.12.4.1
date	2018.04.11.02.58.37;	author msaitoh;	state Exp;
branches;
next	;
commitid	l5EwBikOBLa4eYxA;

1.1.1.12.10.1
date	2018.04.07.04.11.58;	author pgoyette;	state Exp;
branches;
next	1.1.1.12.10.2;
commitid	ZMkKSYuBapz7LsxA;

1.1.1.12.10.2
date	2018.09.30.01.45.12;	author pgoyette;	state Exp;
branches;
next	;
commitid	SQ44grEPCeKPh4UA;

1.1.1.13.2.1
date	2019.06.10.21.51.12;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.1.1.16.4.1
date	2025.08.02.05.22.17;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;


desc
@@


1.1
log
@Initial revision
@
text
@#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.65 for ntp 4.2.6.
#
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
# Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

if test "x$CONFIG_SHELL" = x; then
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@@\"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '\${1+\"\$@@\"}'='\"\$@@\"'
  setopt NO_GLOB_SUBST
else
  case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi
"
  as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :

else
  exitcode=1; echo positional parameters were not saved.
fi
test x\$exitcode = x0 || exit 1"
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1"
  if (eval "$as_required") 2>/dev/null; then :
  as_have_required=yes
else
  as_have_required=no
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :

else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  as_found=:
  case $as_dir in #(
	 /*)
	   for as_base in sh bash ksh sh5; do
	     # Try only shells that exist, to save several forks.
	     as_shell=$as_dir/$as_base
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  break 2
fi
fi
	   done;;
       esac
  as_found=false
done
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi; }
IFS=$as_save_IFS


      if test "x$CONFIG_SHELL" != x; then :
  # We cannot yet assume a decent shell, so we have to provide a
	# neutralization value for shells without unset; and this also
	# works around shells that cannot unset nonexistent variables.
	BASH_ENV=/dev/null
	ENV=/dev/null
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
	export CONFIG_SHELL
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@@"}
fi

    if test x$as_have_required = xno; then :
  $as_echo "$0: This script requires a shell more modern than all"
  $as_echo "$0: the shells that I found on your system."
  if test x${ZSH_VERSION+set} = xset ; then
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  else
    $as_echo "$0: Please tell bug-autoconf@@gnu.org about your system,
$0: including any error possibly output before this
$0: message. Then install a modern shell, or manually run
$0: the script under such a shell if you do have one."
  fi
  exit 1
fi
fi
fi
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS

## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset

# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"


} # as_fn_mkdir_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@@" || test $? -eq 1`
  }
fi # as_fn_arith


# as_fn_error ERROR [LINENO LOG_FD]
# ---------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with status $?, using 1 if that was 0.
as_fn_error ()
{
  as_status=$?; test $as_status -eq 0 && as_status=1
  if test "$3"; then
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  fi
  $as_echo "$as_me: error: $1" >&2
  as_fn_exit $as_status
} # as_fn_error

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits


  as_lineno_1=$LINENO as_lineno_1a=$LINENO
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"



# Check that we are running under the correct shell.
SHELL=${CONFIG_SHELL-/bin/sh}

case X$ECHO in
X*--fallback-echo)
  # Remove one level of quotation (which was required for Make).
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  ;;
esac

echo=${ECHO-echo}
if test "X$1" = X--no-reexec; then
  # Discard the --no-reexec flag, and continue.
  shift
elif test "X$1" = X--fallback-echo; then
  # Avoid inline document here, it may be left over
  :
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  # Yippee, $echo works!
  :
else
  # Restart under the correct shell.
  exec $SHELL "$0" --no-reexec ${1+"$@@"}
fi

if test "X$1" = X--fallback-echo; then
  # used as fallback echo
  shift
  cat <<EOF
$*
EOF
  exit 0
fi

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

if test -z "$ECHO"; then
if test "X${echo_test_string+set}" != Xset; then
# find a string as large as possible, as long as the shell can cope with it
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
       echo_test_string=`eval $cmd` &&
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
    then
      break
    fi
  done
fi

if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
   test "X$echo_testing_string" = "X$echo_test_string"; then
  :
else
  # The Solaris, AIX, and Digital Unix default echo programs unquote
  # backslashes.  This makes it impossible to quote backslashes using
  #   echo "$something" | sed 's/\\/\\\\/g'
  #
  # So, first we look for a working echo in the user's PATH.

  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for dir in $PATH /usr/ucb; do
    IFS="$lt_save_ifs"
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      echo="$dir/echo"
      break
    fi
  done
  IFS="$lt_save_ifs"

  if test "X$echo" = Xecho; then
    # We didn't find a better echo, so look for alternatives.
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
       test "X$echo_testing_string" = "X$echo_test_string"; then
      # This shell has a builtin print -r that does the trick.
      echo='print -r'
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
      # If we have ksh, try running configure again with it.
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
      export ORIGINAL_CONFIG_SHELL
      CONFIG_SHELL=/bin/ksh
      export CONFIG_SHELL
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@@"}
    else
      # Try using printf.
      echo='printf %s\n'
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
	 test "X$echo_testing_string" = "X$echo_test_string"; then
	# Cool, printf works
	:
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	   test "X$echo_testing_string" = 'X\t' &&
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
	export CONFIG_SHELL
	SHELL="$CONFIG_SHELL"
	export SHELL
	echo="$CONFIG_SHELL $0 --fallback-echo"
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	   test "X$echo_testing_string" = 'X\t' &&
	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	echo="$CONFIG_SHELL $0 --fallback-echo"
      else
	# maybe with a smaller string...
	prev=:

	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
	  then
	    break
	  fi
	  prev="$cmd"
	done

	if test "$prev" != 'sed 50q "$0"'; then
	  echo_test_string=`eval $prev`
	  export echo_test_string
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@@"}
	else
	  # Oops.  We lost completely, so just stick with echo.
	  echo=echo
	fi
      fi
    fi
  fi
fi
fi

# Copy echo and quote the copy suitably for passing to libtool from
# the Makefile, instead of quoting the original, which is used later.
ECHO=$echo
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
fi




test -n "$DJDIR" || exec 7<&0 </dev/null
exec 6>&1

# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME='ntp'
PACKAGE_TARNAME='ntp'
PACKAGE_VERSION='4.2.6'
PACKAGE_STRING='ntp 4.2.6'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

enable_option_checking=no
ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
LIBOBJS
SAVECONFIG_ENABLED_FALSE
SAVECONFIG_ENABLED_TRUE
LSCF
MAKE_NTPSNMPD
SNMP_CFLAGS
SNMP_CPPFLAGS
SNMP_LIBS
MAKE_NTPDSIM
MAKE_LIBNTPSIM
MAKE_TIMETRIM
MAKE_TICKADJ
MAKE_NTPTIME
MAKE_ADJTIMED
CLKTEST
CHUTEST
PROPDELAY
MAKE_PARSEKMODULE
DCFD
TESTDCF
MAKE_CHECK_LAYOUT
EF_LIBS
EF_PROGS
LCRYPTO
OPENSSL_LIB
OPENSSL_INC
OPENSSL
MAKE_CHECK_Y2K
MAKE_LIBPARSE_KERNEL
MAKE_LIBPARSE
LIBPARSE
HAVE_INLINE
EDITLINE_LIBS
PATH_NET_SNMP_CONFIG
PATH_PERL
PATH_SH
LIBTOOL
RANLIB
AR
ECHO
LN_S
ARLIB_DIR
subdirs
BINSUBDIR
NTP_CROSSCOMPILE_FALSE
NTP_CROSSCOMPILE_TRUE
LIBOPTS_CFLAGS
LIBOPTS_LDADD
NEED_LIBOPTS_FALSE
NEED_LIBOPTS_TRUE
INSTALL_LIBOPTS_FALSE
INSTALL_LIBOPTS_TRUE
LIBOPTS_DIR
VPATH_HACK_FALSE
VPATH_HACK_TRUE
YFLAGS
YACC
EGREP
GREP
CPP
am__fastdepCC_FALSE
am__fastdepCC_TRUE
CCDEPMODE
AMDEPBACKSLASH
AMDEP_FALSE
AMDEP_TRUE
am__quote
am__include
DEPDIR
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
am__untar
am__tar
AMTAR
am__leading_dot
SET_MAKE
AWK
mkdir_p
MKDIR_P
INSTALL_STRIP_PROGRAM
STRIP
install_sh
MAKEINFO
AUTOHEADER
AUTOMAKE
AUTOCONF
ACLOCAL
VERSION
PACKAGE
CYGPATH_W
am__isrc
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_dependency_tracking
enable_shared
enable_local_libopts
enable_libopts_install
with_autoopts_config
with_regex_header
with_libregex
with_libregex_cflags
with_libregex_libs
enable_optional_args
with_binsubdir
with_arlib
with_rpath
enable_static
enable_fast_install
with_gnu_ld
enable_libtool_lock
with_pic
with_tags
with_net_snmp_config
with_lineeditlibs
enable_getifaddrs
enable_debugging
enable_debug_timing
enable_dst_minutes
enable_ignore_dns_errors
enable_force_defer_DNS
enable_BANCOMM
enable_GPSVME
enable_all_clocks
enable_ACTS
enable_ARBITER
enable_ARCRON_MSF
enable_AS2201
enable_ATOM
enable_CHRONOLOG
enable_CHU
enable_AUDIO_CHU
enable_DATUM
enable_DUMBCLOCK
enable_FG
enable_HEATH
enable_HOPFSERIAL
enable_HOPFPCI
enable_HPGPS
enable_IRIG
enable_JJY
enable_JUPITER
enable_LEITCH
enable_LOCAL_CLOCK
enable_MX4200
enable_NEOCLOCK4X
enable_NMEA
enable_ONCORE
enable_PALISADE
enable_PCF
enable_PST
enable_RIPENCC
enable_SHM
enable_SPECTRACOM
enable_TPRO
enable_TRUETIME
enable_TT560
enable_ULINK
enable_WWV
enable_ZYFER
enable_parse_clocks
enable_COMPUTIME
enable_DCF7000
enable_HOPF6021
enable_MEINBERG
enable_RAWDCF
enable_RCC8000
enable_SCHMID
enable_TRIMTAIP
enable_TRIMTSIP
enable_WHARTON
enable_VARITEXT
with_openssl_libdir
with_openssl_incdir
with_crypto
with_electricfence
enable_kmem
enable_accurate_adjtime
enable_tick
enable_tickadj
enable_simulator
with_ntpsnmpd
enable_slew_always
enable_step_slew
enable_ntpdate_step
enable_hourly_todr_sync
enable_kernel_fll_bug
enable_bug1243_fix
enable_irig_sawtooth
enable_nist
enable_ntp_signd
enable_clockctl
enable_linuxcaps
enable_ipv6
with_kame
enable_saveconfig
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
YACC
YFLAGS'
ac_subdirs_all='arlib
sntp'

# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
ac_unrecognized_opts=
ac_unrecognized_sep=
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'

ac_prev=
ac_dashdash=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval $ac_prev=\$ac_option
    ac_prev=
    continue
  fi

  case $ac_option in
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *)	ac_optarg=yes ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;

  -enable-* | --enable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=\$ac_optarg ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=\$ac_optarg ;;

  -without-* | --without-*)
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=no ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) as_fn_error "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information."
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    case $ac_envvar in #(
      '' | [0-9]* | *[!_$as_cr_alnum]* )
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
    esac
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  as_fn_error "missing argument to $ac_option"
fi

if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  esac
fi

# Check all directory arguments for consistency.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
do
  eval ac_val=\$$ac_var
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  as_fn_error "working directory cannot be determined"
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  as_fn_error "pwd does not report name of working directory"


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_myself" : 'X\(//\)[^/]' \| \
	 X"$as_myself" : 'X\(//\)$' \| \
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r "$srcdir/$ac_unique_file"; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures ntp 4.2.6 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of ntp 4.2.6:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --enable-shared[=PKGS]  build shared libraries [default=no]
  --enable-local-libopts  Force using the supplied libopts tearoff code
  --disable-libopts-install
                          Do not install libopts with client installation
  --disable-optional-args not wanting optional option args
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --enable-getifaddrs     s Enable the use of getifaddrs() [[yes|no|glibc]].
                          glibc: Use getifaddrs() in glibc if you know it
                          supports IPv6.
  --enable-debugging      + include ntpd debugging code
  --enable-debug-timing   - include processing time debugging code (costs
                          performance)
  --enable-dst-minutes    n minutes per DST adjustment [60]
  --enable-ignore-dns-errors
                          - retry DNS queries on any error
  --enable-force-defer-DNS
                          - force all DNS lookups to take the deferred path
  --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
  --enable-GPSVME         - TrueTime GPS receiver/VME interface
  --enable-all-clocks     + include all suitable non-PARSE clocks:
  --enable-ACTS           s ACTS modem service
  --enable-ARBITER        + Arbiter 1088A/B GPS receiver
  --enable-ARCRON-MSF     + Arcron MSF receiver
  --enable-AS2201         + Austron 2200A/2201A GPS receiver
  --enable-ATOM           s ATOM PPS interface
  --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
  --enable-CHU            + CHU modem/decoder
  --enable-AUDIO-CHU      s CHU audio/decoder
  --enable-DATUM          s Datum Programmable Time System
  --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
  --enable-FG             + Forum Graphic GPS
  --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
  --enable-HOPFSERIAL     + hopf serial clock device
  --enable-HOPFPCI        + hopf 6039 PCI board
  --enable-HPGPS          + HP 58503A GPS receiver
  --enable-IRIG           s IRIG audio decoder
  --enable-JJY            + JJY receiver
  --enable-JUPITER        s Rockwell Jupiter GPS receiver
  --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
  --enable-LOCAL-CLOCK    + local clock reference
  --enable-MX4200         s Magnavox MX4200 GPS receiver
  --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
  --enable-NMEA           + NMEA GPS receiver
  --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
  --enable-PALISADE       s Palisade clock
  --enable-PCF            + Conrad parallel port radio clock
  --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
  --enable-RIPENCC        - RIPENCC specific Trimble driver
  --enable-SHM            s SHM clock attached thru shared memory
  --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
  --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
  --enable-TRUETIME       s Kinemetrics/TrueTime receivers
  --enable-TT560          - TrueTime 560 IRIG-B decoder
  --enable-ULINK          + Ultralink WWVB receiver
  --enable-WWV            s WWV Audio receiver
  --enable-ZYFER          + Zyfer GPStarplus receiver
  --enable-parse-clocks   - include all suitable PARSE clocks:
  --enable-COMPUTIME      s Diem Computime Radio Clock
  --enable-DCF7000        s ELV/DCF7000 clock
  --enable-HOPF6021       s HOPF 6021 clock
  --enable-MEINBERG       s Meinberg clocks
  --enable-RAWDCF         s DCF77 raw time code
  --enable-RCC8000        s RCC 8000 clock
  --enable-SCHMID         s Schmid DCF77 clock
  --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
  --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
  --enable-WHARTON        s WHARTON 400A Series clock
  --enable-VARITEXT       s VARITEXT clock
  --enable-kmem           s read /dev/kmem for tick and/or tickadj
  --enable-accurate-adjtime
                          s the adjtime() call is accurate
  --enable-tick=VALUE     s force a value for 'tick'
  --enable-tickadj=VALUE  s force a value for 'tickadj'
  --enable-simulator      - build/install the NTPD simulator?
  --enable-slew-always    s always slew the time
  --enable-step-slew      s step and slew the time
  --enable-ntpdate-step   s if ntpdate should step the time
  --enable-hourly-todr-sync
                          s if we should sync TODR hourly
  --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
  --enable-bug1243-fix    + use unmodified autokey session keys
  --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
  --enable-nist           - if we should enable the NIST lockclock scheme
  --enable-ntp-signd      - Provide support for Samba's signing daemon,
                          =/var/run/ntp_signd
  --enable-clockctl       s Use /dev/clockctl for non-root clock control
  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
  --enable-ipv6           s use IPv6?
  --enable-saveconfig     + saveconfig mechanism

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-autoopts-config  specify the config-info script
  --with-regex-header     a reg expr header is specified
  --with-libregex         libregex installation prefix
  --with-libregex-cflags  libregex compile flags
  --with-libregex-libs    libregex link command arguments
  --with-binsubdir        bin ={bin,sbin}
  --with-arlib            - Compile the async resolver library?
  --without-rpath         s Disable auto-added -R linker paths
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-tags[=TAGS]      include additional configurations [automatic]
  --with-net-snmp-config  + =net-snmp-config
  --with-lineeditlibs     edit,editline (readline may be specified if desired)
  --with-openssl-libdir   + =/something/reasonable
  --with-openssl-incdir   + =/something/reasonable
  --with-crypto           + =openssl
  --with-electricfence    - compile with ElectricFence malloc debugger
  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
  --with-kame             - =/usr/local/v6

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
              the first program found out of: `bison -y', `byacc', `yacc'.
  YFLAGS      The list of arguments that will be passed by default to $YACC.
              This script will default YFLAGS to the empty string to avoid a
              default value of `-d' given by some make applications.

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to the package provider.
_ACEOF
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
      continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for guested configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
    else
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
ntp configure 4.2.6
generated by GNU Autoconf 2.65

Copyright (C) 2009 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi

## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##

# ac_fn_c_try_compile LINENO
# --------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_try_compile

# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_try_cpp

# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
# the include files in INCLUDES and setting the cache variable VAR
# accordingly.
ac_fn_c_check_header_mongrel ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
$as_echo_n "checking $2 usability... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_header_compiler=yes
else
  ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
$as_echo_n "checking $2 presence... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$2>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ac_header_preproc=yes
else
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  yes:no: )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
  no:yes:* )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=\$ac_header_compiler"
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_header_mongrel

# ac_fn_c_try_run LINENO
# ----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_c_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_try_run

# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_header_compile

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_try_link

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_type

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid; break
else
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=-1 ac_mid=-1
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=$ac_mid; break
else
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  ac_lo= ac_hi=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid
else
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in #((
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
'') ac_retval=1 ;;
esac
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
static long int longval () { return $2; }
static unsigned long int ulongval () { return $2; }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (($2) < 0)
    {
      long int i = longval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
else
  ac_retval=1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
rm -f conftest.val

  fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_compute_int

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

int
main ()
{
return $2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_func

# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
# ----------------------------------------------------
# Tries to find if the field MEMBER exists in type AGGR, after including
# INCLUDES, setting cache variable VAR accordingly.
ac_fn_c_check_member ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
$as_echo_n "checking for $2.$3... " >&6; }
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$5
int
main ()
{
static $2 ac_aggr;
if (ac_aggr.$3)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$4=yes"
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$5
int
main ()
{
static $2 ac_aggr;
if (sizeof ac_aggr.$3)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$4=yes"
else
  eval "$4=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$4
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_member
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by ntp $as_me 4.2.6, which was
generated by GNU Autoconf 2.65.  Invocation command line was

  $ $0 $@@

_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    $as_echo "PATH: $as_dir"
  done
IFS=$as_save_IFS

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    2)
      as_fn_append ac_configure_args1 " '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      as_fn_append ac_configure_args " '$ac_arg'"
      ;;
    esac
  done
done
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
    echo
    # The following way of writing the cache mishandles newlines in values,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

    cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      $as_echo "$ac_var='\''$ac_val'\''"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      cat <<\_ASBOX
## ------------------- ##
## File substitutions. ##
## ------------------- ##
_ASBOX
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	$as_echo "$ac_var='\''$ac_val'\''"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      $as_echo "$as_me: caught signal $ac_signal"
    $as_echo "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h

$as_echo "/* confdefs.h */" > confdefs.h

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_URL "$PACKAGE_URL"
_ACEOF


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
  ac_site_file1=$CONFIG_SITE
elif test "x$prefix" != xNONE; then
  ac_site_file1=$prefix/share/config.site
  ac_site_file2=$prefix/etc/config.site
else
  ac_site_file1=$ac_default_prefix/share/config.site
  ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
  test "x$ac_site_file" = xNONE && continue
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special files
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
fi
## -------------------- ##
## Main body of script. ##
## -------------------- ##

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



ac_aux_dir=
for ac_dir in . "$srcdir"/.; do
  for ac_t in install-sh install.sh shtool; do
    if test -f "$ac_dir/$ac_t"; then
      ac_aux_dir=$ac_dir
      ac_install_sh="$ac_aux_dir/$ac_t -c"
      break 2
    fi
  done
done
if test -z "$ac_aux_dir"; then
  as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
fi

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.



# Increment ntp_configure_cache_version by one for each change to
# configure.ac or .m4 files which invalidates cached values from
# previous versions.
#
# If the change affects cache variables used only by the main NTP
# configure.ac, then only its version number should be bumped, while
# the subdir configure.ac version numbers should be unchanged.  The
# same is true for a test/variable that is used only by one subdir
# being changed incompatibly; only that subdir's cache version needs
# bumping.
#
# If a change affects variables shared by all NTP configure scripts,
# please bump the version numbers of all three.  If you are not sure,
# the safe choice is to bump all three on any cache-invalidating change.
#
# In order to avoid the risk of version stamp collision between -stable
# and -dev branches, do not simply increment the version, instead use
# the date YYYYMMDD optionally with -HHMM if there is more than one
# bump in a day.

ntp_configure_cache_version=20091117

# When the cache version of config.cache and configure do not
# match, NTP_CACHEVERSION will flush the cache.



    ntp_cache_flush=1

    case "$ntp_cv_main_cache_version" in
     $ntp_configure_cache_version)
	# same version, good
	ntp_cache_flush=0
	;;
     '')
	# No cache, predates ntp_cv_main_cache_version, or is empty.
	case "$cache_file" in
	 /dev/null)
	    ntp_cache_flush=0
	    ;;
	 *)
	    case "$NTP_CACHEVERSION_PARENT" in
	     '')
		# Do not clear the cache immediately after it is created
		# empty as it is noisy.  Differentiate a newly-created
		# config.cache from one predating the cache version
		# mechanism by looking for the first cached variable set
		# by Autoconf
		case "$ac_cv_path_install" in
		 '')
		    # empty config.cache file
		    ntp_cache_flush=0
		esac
		;;
	     *)
		# Parent configure just created cache from empty,
		# flushing would be counterproductive.
		ntp_cache_flush=0;
	    esac
	esac
	;;
     *)
	# configure cache version mismatches config.cache version
    esac

    case "$ntp_cache_flush" in
     1)
	c_version="${ntp_cv_main_cache_version:-(no version found)}"

	# Do we flush all variables or exclude others' version stamps?

	case "$NTP_CACHEVERSION_PARENT" in
	 '')
	    # Clear all *_cv_* variables including our child subdirs'
	    # ntp_cv_*_cache_version variables.  This prevents subdir
	    # configure scripts from noticing a version mismatch just
	    # after the top configure in the invocation cleared and
	    # recreated the cache.

	    c_varname_list=`set |
			    sed -n -e 's/=.*$//' \
				   -e '/_cv_/p'
			   `
	    ;;
	 *)
	    # This is not the top configure this particular invocation.
	    # Clear all *_cv_* variables sparing the version stamps
	    # of other configure scripts, so we don't trigger
	    # useless repeated clearings.

	    c_varname_list=`set |
			    sed -n -e 's/=.*$//' \
				   -e '/ntp_cv_.*_cache_version/d' \
				   -e '/_cv_/p'
			   `
	esac

	for c_varname in $c_varname_list
	do
	    	    eval ${c_varname}=;  $as_unset $c_varname
	done

		c_varname_list=;  $as_unset c_varname_list c_varname

	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
$as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
$as_echo "$as_me: $cache_file version: $c_version" >&6;}
	$as_unset c_version
    esac

    # save configure version in config.cache for next time
    ntp_cv_main_cache_version="$ntp_configure_cache_version"

    $as_unset ntp_cache_flush

    # let any subdir configure.ac NTP_CACHEVERSION invocations
    # know they are not the top level.
    NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT


am__api_version='1.11'

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in #((
  ./ | .// | /[cC]/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
	  fi
	fi
      done
    done
    ;;
esac

  done
IFS=$as_save_IFS

rm -rf conftest.one conftest.two conftest.dir

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    INSTALL=$ac_install_sh
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
$as_echo "$INSTALL" >&6; }

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
$as_echo_n "checking whether build environment is sane... " >&6; }
# Just in case
sleep 1
echo timestamp > conftest.file
# Reject unsafe characters in $srcdir or the absolute working directory
# name.  Accept space and tab only in the latter.
am_lf='
'
case `pwd` in
  *[\\\"\#\$\&\'\`$am_lf]*)
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
esac
case $srcdir in
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
esac

# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t "$srcdir/configure" conftest.file`
   fi
   rm -f conftest.file
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $srcdir/configure"; then

      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
alias in your environment" "$LINENO" 5
   fi

   test "$2" = conftest.file
   )
then
   # Ok.
   :
else
   as_fn_error "newly created file is older than distributed files!
Check your system clock" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
test "$program_prefix" != NONE &&
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
# Double any \ or $.
# By default was `s,x,x', remove it if useless.
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`

# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`

if test x"${MISSING+set}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  *)
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
  esac
fi
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
fi

if test x"${install_sh}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  *)
    install_sh="\${SHELL} $am_aux_dir/install-sh"
  esac
fi

# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
if test -z "$MKDIR_P"; then
  if test "${ac_cv_path_mkdir+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in mkdir gmkdir; do
	 for ac_exec_ext in '' $ac_executable_extensions; do
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir (GNU coreutils) '* | \
	     'mkdir (coreutils) '* | \
	     'mkdir (fileutils) '4.1*)
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
	       break 3;;
	   esac
	 done
       done
  done
IFS=$as_save_IFS

fi

  test -d ./--version && rmdir ./--version
  if test "${ac_cv_path_mkdir+set}" = set; then
    MKDIR_P="$ac_cv_path_mkdir -p"
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for MKDIR_P within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    MKDIR_P="$ac_install_sh -d"
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
$as_echo "$MKDIR_P" >&6; }

mkdir_p="$MKDIR_P"
case $mkdir_p in
  [\\/$]* | ?:[\\/]*) ;;
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AWK+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi

rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
  am__leading_dot=.
else
  am__leading_dot=_
fi
rmdir .tst 2>/dev/null

if test "`cd $srcdir && pwd`" != "`pwd`"; then
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  # is not polluted with repeated "-I."
  am__isrc=' -I$(srcdir)'
  # test to see if srcdir already configured
  if test -f $srcdir/config.status; then
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  fi
fi

# test whether we have cygpath
if test -z "$CYGPATH_W"; then
  if (cygpath --version) >/dev/null 2>/dev/null; then
    CYGPATH_W='cygpath -w'
  else
    CYGPATH_W=echo
  fi
fi


# Define the identity of the package.
 PACKAGE='ntp'
 VERSION='4.2.6'


cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION"
_ACEOF

# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}


AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}


AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}


AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}


MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.
# Always define AMTAR for backward compatibility.

AMTAR=${AMTAR-"${am_missing_run}tar"}

am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'





# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
$as_echo_n "checking build system type... " >&6; }
if test "${ac_cv_build+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
$as_echo "$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
esac
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
$as_echo_n "checking host system type... " >&6; }
if test "${ac_cv_host+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
$as_echo "$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac



cat >>confdefs.h <<_ACEOF
#define STR_SYSTEM "$host"
_ACEOF

ac_config_headers="$ac_config_headers config.h"


ac_cv_var_atom_ok=no
ac_cv_var_oncore_ok=no
ac_cv_var_parse_ok=no
ac_cv_var_ripe_ncc_ok=no
ac_cv_var_jupiter_ok=no

iCFLAGS="$CFLAGS"

DEPDIR="${am__leading_dot}deps"

ac_config_commands="$ac_config_commands depfiles"


am_make=${MAKE-make}
cat > confinc << 'END'
am__doit:
	@@echo this is the am__doit target
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
$as_echo_n "checking for style of include used by $am_make... " >&6; }
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# Ignore all kinds of additional output from `make'.
case `$am_make -s -f confmf 2> /dev/null` in #(
*the\ am__doit\ target*)
  am__include=include
  am__quote=
  _am_result=GNU
  ;;
esac
# Now try BSD make style include.
if test "$am__include" = "#"; then
   echo '.include "confinc"' > confmf
   case `$am_make -s -f confmf 2> /dev/null` in #(
   *the\ am__doit\ target*)
     am__include=.include
     am__quote="\""
     _am_result=BSD
     ;;
   esac
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
$as_echo "$_am_result" >&6; }
rm -f confinc confmf

# Check whether --enable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then :
  enableval=$enable_dependency_tracking;
fi

if test "x$enable_dependency_tracking" != xno; then
  am_depcomp="$ac_aux_dir/depcomp"
  AMDEPBACKSLASH='\'
fi
 if test "x$enable_dependency_tracking" != xno; then
  AMDEP_TRUE=
  AMDEP_FALSE='#'
else
  AMDEP_TRUE='#'
  AMDEP_FALSE=
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "no acceptable C compiler found in \$PATH
See \`config.log' for more details." "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { { ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
	break;;
    * )
	break;;
  esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=

else
  ac_file=''
fi
if test -z "$ac_file"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "C compiler cannot create executables
See \`config.log' for more details." "$LINENO" 5; }; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext

rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." "$LINENO" 5; }
fi
rm -f conftest conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
 return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
  { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
  if { ac_try='./conftest$ac_cv_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." "$LINENO" 5; }
    fi
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }

rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if test "${ac_cv_objext+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot compute suffix of object files: cannot compile
See \`config.log' for more details." "$LINENO" 5; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if test "${ac_cv_prog_cc_g+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CC"   am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if test "${ac_cv_path_GREP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in grep ggrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
if test "${ac_cv_path_EGREP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in egrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  MINIX=yes
else
  MINIX=
fi


  if test "$MINIX" = yes; then

$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h


$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h


$as_echo "#define _MINIX 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#	  define __EXTENSIONS__ 1
	  $ac_includes_default
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_safe_to_define___extensions__=yes
else
  ac_cv_safe_to_define___extensions__=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  test $ac_cv_safe_to_define___extensions__ = yes &&
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h

  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h

  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h

  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h





# So far, the only shared library we might use is libopts.
# It's a small library - we might as well use a static version of it.
# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then :
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_shared=no
fi




ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "no acceptable C compiler found in \$PATH
See \`config.log' for more details." "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if test "${ac_cv_prog_cc_g+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CC"   am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi


# Ralf Wildenhues: With per-target flags we need CC_C_O
# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
fi
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
else
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi

# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
if test "$am_t" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_YACC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_YACC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"


# AC_PROG_CC_STDC has two functions.  It attempts to find a compiler
# capable of C99, or failing that, for C89.  CC is set afterward with
# the selected invocation, such as "gcc --std=gnu99".  Also, the
# ac_cv_prog_cc_stdc variable is no if the compiler selected for CC
# does not accept C89.

   case $ac_cv_prog_cc_stdc in #(
  no) :
    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if test "${ac_cv_prog_cc_c99+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>

// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}

// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;

struct incomplete_array
{
  int datasize;
  double data[];
};

struct named_init {
  int number;
  const wchar_t *name;
  double average;
};

typedef const char *ccp;

static inline int
test_restrict (ccp restrict text)
{
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
  return 0;
}

// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
{
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);

  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
}

int
main ()
{

  // Check bool.
  _Bool success = false;

  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";

  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);

  ;
  return 0;
}
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
else
  ac_cv_prog_cc_stdc=no
fi

fi
 ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  if test "${ac_cv_prog_cc_stdc+set}" = set; then :
  $as_echo_n "(cached) " >&6
fi

  case $ac_cv_prog_cc_stdc in #(
  no) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;; #(
  '') :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
esac


case "$ac_cv_prog_cc_stdc" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		version 4.2.5 and higher." >&2;}
esac

# HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
case "$host" in
 *-*-amigaos)
    CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
    ;;
 *-*-hpux10.*)	# at least for hppa2.0-hp-hpux10.20
    case "$GCC" in
     yes)
	;;
     *) CFLAGS="$CFLAGS -Wp,-H18816"
	;;
    esac
    ;;
 *-pc-cygwin*)
    CFLAGS="$CFLAGS -DSYS_CYGWIN32"
    ;;
 i386-sequent-sysv4)
    case "$CC" in
     cc)
	CFLAGS="$CFLAGS -Wc,+abi-socket"
	;;
    esac
    ;;
 *-*-mpeix*)
    CPPFLAGS="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB"
    LDFLAGS="$LDFLAGS -L/SYSLOG/PUB"
    LIBS="$LIBS -lcurses"
    ;;
 *-*-solaris*)
    # see "man standards".
    # -D_XOPEN_SOURCE=500 is probably OK for c89 and before
    # -D_XOPEN_SOURCE=600 seems OK for c99
    #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
    CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
    libxnet=-lxnet
    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
$as_echo_n "checking additional compiler flags... " >&6; }
if test "${ac_cv_os_cflags+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

case "${host_os}" in
	irix6* )
		case "${CC}" in
			cc )
				# do not use 64-bit compiler
				ac_cv_os_cflags="-n32 -mips3 -Wl,-woff,84"
				;;
		esac
		;;
# HMS: am-utils needed this but we don't (apparently)
#	osf[[1-3]]* )
#		# get the right version of struct sockaddr
#		case "${CC}" in
#			cc )
#				ac_cv_os_cflags="-std -D_SOCKADDR_LEN -D_NO_PROTO"
#				;;
#			* )
#				ac_cv_os_cflags="-D_SOCKADDR_LEN -D_NO_PROTO"
#				;;
#		esac
#		;;
#	osf* )
#		# get the right version of struct sockaddr
#		case "${CC}" in
#			cc )
#				ac_cv_os_cflags="-std -D_SOCKADDR_LEN"
#				;;
#			* )
#				ac_cv_os_cflags="-D_SOCKADDR_LEN"
#				;;
#		esac
#		;;
	aix[1-3]* )
		ac_cv_os_cflags="" ;;
	aix4.[0-2]* )
		# turn on additional headers
		ac_cv_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
		;;
	aix5.3* )
		# avoid circular dependencies in yp headers, and more
		ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE -D_USE_IRS -D_MSGQSUPPORT"
		;;
	aix* )
		# avoid circular dependencies in yp headers
		ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE -D_USE_IRS"
		;;
	OFF-sunos4* )
		# make sure passing whole structures is handled in gcc
		case "${CC}" in
			gcc )
				ac_cv_os_cflags="-fpcc-struct-return"
				;;
		esac
		;;
	sunos[34]* | solaris1* | solaris2.[0-5] | sunos5.[0-5] | solaris2.5.* | sunos5.5.* )
		ac_cv_os_cflags="" ;;
	solaris2* | sunos5* )
		# turn on 64-bit file offset interface
		case "${CC}" in
			* )
				ac_cv_os_cflags="-D_LARGEFILE64_SOURCE"
				;;
		esac
		;;
	hpux* )
		# use Ansi compiler on HPUX
		case "${CC}" in
			cc )
				ac_cv_os_cflags="-Ae"
				;;
		esac
		;;
	darwin* | macosx* | rhapsody* )
		ac_cv_os_cflags="-D_P1003_1B_VISIBLE"
		;;
	* )
		ac_cv_os_cflags=""
		;;
esac

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cflags" >&5
$as_echo "$ac_cv_os_cflags" >&6; }
CFLAGS="$CFLAGS $ac_cv_os_cflags"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
$as_echo_n "checking for directory path separator... " >&6; }
if test "${ac_cv_dir_sep+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  case "$ac_cv_dir_sep" in
   '')
    case "$target_os" in
      *djgpp | *mingw32* | *emx*) ac_cv_dir_sep="'\\'" ;;
      *) ac_cv_dir_sep="'/'" ;;
    esac
    ;;
  esac

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dir_sep" >&5
$as_echo "$ac_cv_dir_sep" >&6; }

cat >>confdefs.h <<_ACEOF
#define DIR_SEP $ac_cv_dir_sep
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need a VPATH hack" >&5
$as_echo_n "checking to see if we need a VPATH hack... " >&6; }
ntp_vpath_hack="no"
case "$srcdir::$build_os::${force_ntp_vpath_hack+set}" in
 .::*::*)
    ;;
 *::*::set)
    ntp_vpath_hack="yes"
    ;;
 *::freebsd*::)
    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	ntp_vpath_hack="yes"
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
$as_echo "$ntp_vpath_hack" >&6; }
 if test x$ntp_vpath_hack = xyes; then
  VPATH_HACK_TRUE=
  VPATH_HACK_FALSE='#'
else
  VPATH_HACK_TRUE='#'
  VPATH_HACK_FALSE=
fi



# NTP has (so far) been relying on leading-edge autogen.
# Therefore, by default:
# - use the version we ship with
# - do not install it
# - build a static copy (AC_DISABLE_SHARED - done earlier)
case "${enable_local_libopts+set}" in
 set) ;;
 *) enable_local_libopts=yes ;;
esac
case "${enable_libopts_install+set}" in
 set) ;;
 *) enable_libopts_install=no ;;
esac
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = x""yes; then :

else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi


  NEED_LIBOPTS_DIR=''

  LIBOPTS_DIR=libopts

  # Check whether --enable-local-libopts was given.
if test "${enable_local_libopts+set}" = set; then :
  enableval=$enable_local_libopts;
    if test x$enableval = xyes ; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
       LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
       LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
       NEED_LIBOPTS_DIR=true
    fi
fi


  # Check whether --enable-libopts-install was given.
if test "${enable_libopts_install+set}" = set; then :
  enableval=$enable_libopts_install;
fi

   if test "X${enable_libopts_install}" != Xno; then
  INSTALL_LIBOPTS_TRUE=
  INSTALL_LIBOPTS_FALSE='#'
else
  INSTALL_LIBOPTS_TRUE='#'
  INSTALL_LIBOPTS_FALSE=
fi


  if test -z "${NEED_LIBOPTS_DIR}" ; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
$as_echo_n "checking whether autoopts-config can be found... " >&6; }

# Check whether --with-autoopts-config was given.
if test "${with_autoopts_config+set}" = set; then :
  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
$as_echo_n "checking whether autoopts-config is specified... " >&6; }
if test "${lo_cv_with_autoopts_config+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if autoopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=autoopts-config
        elif libopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=libopts-config
        else lo_cv_with_autoopts_config=no ; fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
$as_echo "$lo_cv_with_autoopts_config" >&6; }

fi
 # end of AC_ARG_WITH

     if test "${lo_cv_test_autoopts+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        if test -z "${lo_cv_with_autoopts_config}" \
                -o X"${lo_cv_with_autoopts_config}" = Xno
        then
           if autoopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=autoopts-config
           elif libopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=libopts-config
           else lo_cv_with_autoopts_config=false ; fi
        fi
        lo_cv_test_autoopts=`
            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
        then lo_cv_test_autoopts=no ; fi

fi
 # end of CACHE_VAL
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
$as_echo "${lo_cv_test_autoopts}" >&6; }

     if test "X${lo_cv_test_autoopts}" != Xno
     then
        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
     else
        LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
        LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
        NEED_LIBOPTS_DIR=true
     fi
  fi # end of if test -z "${NEED_LIBOPTS_DIR}"

   if test -n "${NEED_LIBOPTS_DIR}"; then
  NEED_LIBOPTS_TRUE=
  NEED_LIBOPTS_FALSE='#'
else
  NEED_LIBOPTS_TRUE='#'
  NEED_LIBOPTS_FALSE=
fi



  LIBOPTS_DIR=libopts

  ac_config_files="$ac_config_files libopts/Makefile"



  if test -n "${NEED_LIBOPTS_DIR}" ; then


if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

  ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$as_ac_Header=yes"
else
  eval "$as_ac_Header=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_ac_Header
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if test "${ac_cv_search_opendir+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dir; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_opendir+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_opendir+set}" = set; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if test "${ac_cv_search_opendir+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' x; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_opendir+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_opendir+set}" = set; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi


  # =================
  # AC_CHECK_HEADERS
  # =================
  for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
    setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
    sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h    \
    utime.h sysexits.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  # --------------------------------------------
  # Verify certain entries from AC_CHECK_HEADERS
  # --------------------------------------------
  for f in sys_types sys_mman sys_param sys_stat sys_wait \
           string errno stdlib memory setjmp
  do eval as_ac_var=\${ac_cv_header_${f}_h+set}
     test "${as_ac_var}" = set || \
       as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
  done

  # ================================================
  # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  # if varargs.h is present define HAVE_VARARGS_H.
  # ================================================
  for ac_header in stdarg.h varargs.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 break
fi

done

  if test `eval echo '${'$as_ac_Header'}'` != yes; then
    as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
  fi

  # ================================================
  # Similarly for the string.h and strings.h headers
  # ================================================
  for ac_header in string.h strings.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 break
fi

done

  if test `eval echo '${'$as_ac_Header'}'` != yes; then
    as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
  fi

  # =====================
  # ...and limits headers
  # =====================
  for ac_header in limits.h sys/limits.h values.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 break
fi

done

  if test `eval echo '${'$as_ac_Header'}'` != yes; then
    as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  fi

  # ----------------------------------------------------------------------
  # check for various programs used during the build.
  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  # ----------------------------------------------------------------------
  for ac_header in runetype.h wchar.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  $ac_includes_default
  #if HAVE_RUNETYPE_H
  # include <runetype.h>
  #endif

"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  # ----------------------------------------------------------------------
  # Checks for typedefs
  # ----------------------------------------------------------------------
  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
if test "x$ac_cv_type_wchar_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WCHAR_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
  $ac_includes_default
  #if HAVE_RUNETYPE_H
  # include <runetype.h>
  #endif
  #if HAVE_WCHAR_H
  # include <wchar.h>
  #endif

"
if test "x$ac_cv_type_wint_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WINT_T 1
_ACEOF


fi


  # ========================
  # ...and int types headers
  # ========================
  for ac_header in stdint.h inttypes.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 break
fi

done

  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
if test "x$ac_cv_type_int8_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
if test "x$ac_cv_type_uint8_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
if test "x$ac_cv_type_int16_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
if test "x$ac_cv_type_uint16_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
if test "x$ac_cv_type_int32_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
if test "x$ac_cv_type_uint32_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
if test "x$ac_cv_type_intptr_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
if test "x$ac_cv_type_uint_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PID_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SIZE_T 1
_ACEOF


fi


  # =====
  # sizes
  # =====
  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
$as_echo_n "checking size of char*... " >&6; }
if test "${ac_cv_sizeof_charp+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_charp" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (char*)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_charp=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
$as_echo "$ac_cv_sizeof_charp" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHARP $ac_cv_sizeof_charp
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if test "${ac_cv_sizeof_int+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (int)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if test "${ac_cv_sizeof_long+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (long)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if test "${ac_cv_sizeof_short+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (short)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF



  # ----------------------------------------------------------------------
  # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  # ----------------------------------------------------------------------
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
$as_echo_n "checking for pathfind in -lgen... " >&6; }
if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgen  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pathfind ();
int
main ()
{
return pathfind ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gen_pathfind=yes
else
  ac_cv_lib_gen_pathfind=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGEN 1
_ACEOF

  LIBS="-lgen $LIBS"

fi

  for ac_func in vprintf
do :
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
if test "x$ac_cv_func_vprintf" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VPRINTF 1
_ACEOF

ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
if test "x$ac_cv_func__doprnt" = x""yes; then :

$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h

fi

fi
done


  for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if test "${ac_cv_func_fork_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if test "${ac_cv_func_vfork_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
                 strrchr strsignal
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

  INVOKE_LIBOPTS_MACROS_FIRST_done=yes
fi
  # Check to see if a reg expr header is specified.


# Check whether --with-regex-header was given.
if test "${with_regex_header+set}" = set; then :
  withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
$as_echo_n "checking whether a reg expr header is specified... " >&6; }
if test "${libopts_cv_with_regex_header+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  libopts_cv_with_regex_header=no
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
$as_echo "$libopts_cv_with_regex_header" >&6; }

fi
 # end of AC_ARG_WITH

  if test "X${libopts_cv_with_regex_header}" != Xno
  then
    cat >>confdefs.h <<_ACEOF
#define REGEX_HEADER <${libopts_cv_with_regex_header}>
_ACEOF

  else

$as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h

  fi



  # Check to see if a working libregex can be found.


# Check whether --with-libregex was given.
if test "${with_libregex+set}" = set; then :
  withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
$as_echo_n "checking whether with-libregex was specified... " >&6; }
if test "${libopts_cv_with_libregex_root+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  libopts_cv_with_libregex_root=no
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
$as_echo "$libopts_cv_with_libregex_root" >&6; }

fi
 # end of AC_ARG_WITH libregex

  if test "${with_libguile+set}" = set && \
     test "${withval}" = no
  then ## disabled by request
    libopts_cv_with_libregex_root=no
    libopts_cv_with_libregex_cflags=no
    libopts_cv_with_libregex_libs=no
  else


# Check whether --with-libregex-cflags was given.
if test "${with_libregex_cflags+set}" = set; then :
  withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
$as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
if test "${libopts_cv_with_libregex_cflags+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  libopts_cv_with_libregex_cflags=no
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
$as_echo "$libopts_cv_with_libregex_cflags" >&6; }

fi
 # end of AC_ARG_WITH libregex-cflags


# Check whether --with-libregex-libs was given.
if test "${with_libregex_libs+set}" = set; then :
  withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
$as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
if test "${libopts_cv_with_libregex_libs+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  libopts_cv_with_libregex_libs=no
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
$as_echo "$libopts_cv_with_libregex_libs" >&6; }

fi
 # end of AC_ARG_WITH libregex-libs

  case "X${libopts_cv_with_libregex_cflags}" in
  Xyes|Xno|X )
    case "X${libopts_cv_with_libregex_root}" in
    Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
    * )        libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
    esac
  esac
  case "X${libopts_cv_with_libregex_libs}" in
  Xyes|Xno|X )
    case "X${libopts_cv_with_libregex_root}" in
    Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
    * )        libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
    esac
  esac
  libopts_save_CPPFLAGS="${CPPFLAGS}"
  libopts_save_LIBS="${LIBS}"
  fi ## disabled by request

  case "X${libopts_cv_with_libregex_cflags}" in
  Xyes|Xno|X )
    libopts_cv_with_libregex_cflags="" ;;
  * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  esac
  case "X${libopts_cv_with_libregex_libs}" in
  Xyes|Xno|X )
    libopts_cv_with_libregex_libs="" ;;
  * )
    LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  esac
  LIBREGEX_CFLAGS=""
  LIBREGEX_LIBS=""
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
$as_echo_n "checking whether libregex functions properly... " >&6; }
  if test "${libopts_cv_with_libregex+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
  libopts_cv_with_libregex=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include REGEX_HEADER
static regex_t re;
void comp_re( char const* pzPat ) {
  int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  if (res == 0) return;
  exit( res ); }
int main() {
  regmatch_t m[2];
  comp_re( "^.*\$"   );
  comp_re( "()|no.*" );
  comp_re( "."       );
  if (regexec( &re, "X", 2, m, 0 ) != 0)  return 1;
  if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
    fputs( "error: regex -->.<-- did not match\n", stderr );
    return 1;
  }
  return 0; }
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  libopts_cv_with_libregex=yes
else
  libopts_cv_with_libregex=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
 # end of AC_TRY_RUN

fi
 # end of AC_CACHE_VAL for libopts_cv_with_libregex
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
$as_echo "${libopts_cv_with_libregex}" >&6; }

  if test "X${libopts_cv_with_libregex}" != Xno
  then

$as_echo "#define WITH_LIBREGEX 1" >>confdefs.h

  else
    CPPFLAGS="${libopts_save_CPPFLAGS}"
    LIBS="${libopts_save_LIBS}"
  fi



  # Check to see if pathfind(3) works.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
$as_echo_n "checking whether pathfind(3) works... " >&6; }
  if test "${libopts_cv_run_pathfind+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
  libopts_cv_run_pathfind=no

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>
#include <stdlib.h>
int main (int argc, char** argv) {
   char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
   return (pz == 0) ? 1 : 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  libopts_cv_run_pathfind=yes
else
  libopts_cv_run_pathfind=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
 # end of TRY_RUN

fi
 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
$as_echo "${libopts_cv_run_pathfind}" >&6; }

  if test "X${libopts_cv_run_pathfind}" != Xno
  then

$as_echo "#define HAVE_PATHFIND 1" >>confdefs.h

  fi



  # Check to see if /dev/zero is readable device.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
$as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  if test "${libopts_cv_test_dev_zero+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    libopts_cv_test_dev_zero=`exec 2> /dev/null
dzero=\`ls -lL /dev/zero | egrep ^c......r\`
test -z "${dzero}" && exit 1
echo ${dzero}`
    if test $? -ne 0
    then libopts_cv_test_dev_zero=no
    elif test -z "$libopts_cv_test_dev_zero"
    then libopts_cv_test_dev_zero=no
    fi

fi
 # end of CACHE_VAL of libopts_cv_test_dev_zero
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
$as_echo "${libopts_cv_test_dev_zero}" >&6; }

  if test "X${libopts_cv_test_dev_zero}" != Xno
  then

$as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h

  fi



  # Check to see if we have a functional realpath(3C).

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
$as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  if test "${libopts_cv_run_realpath+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
  libopts_cv_run_realpath=no

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
#include <stdlib.h>
int main (int argc, char** argv) {
#ifndef PATH_MAX
choke me!!
#else
   char zPath[PATH_MAX+1];
#endif
   char *pz = realpath(argv[0], zPath);
   return (pz == zPath) ? 0 : 1;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  libopts_cv_run_realpath=yes
else
  libopts_cv_run_realpath=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
 # end of TRY_RUN

fi
 # end of AC_CACHE_VAL for libopts_cv_run_realpath
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
$as_echo "${libopts_cv_run_realpath}" >&6; }

  if test "X${libopts_cv_run_realpath}" != Xno
  then

$as_echo "#define HAVE_REALPATH 1" >>confdefs.h

  fi



  # Check to see if strftime() works.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
$as_echo_n "checking whether strftime() works... " >&6; }
  if test "${libopts_cv_run_strftime+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
  libopts_cv_run_strftime=no

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <time.h>
#include <string.h>
char t_buf[ 64 ];
int main() {
  static char const z[] = "Thursday Aug 28 240";
  struct tm tm;
  tm.tm_sec   = 36;  /* seconds after the minute [0, 61]  */
  tm.tm_min   = 44;  /* minutes after the hour [0, 59] */
  tm.tm_hour  = 12;  /* hour since midnight [0, 23] */
  tm.tm_mday  = 28;  /* day of the month [1, 31] */
  tm.tm_mon   =  7;  /* months since January [0, 11] */
  tm.tm_year  = 86;  /* years since 1900 */
  tm.tm_wday  =  4;  /* days since Sunday [0, 6] */
  tm.tm_yday  = 239; /* days since January 1 [0, 365] */
  tm.tm_isdst =  1;  /* flag for daylight savings time */
  strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  return (strcmp( t_buf, z ) != 0); }
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  libopts_cv_run_strftime=yes
else
  libopts_cv_run_strftime=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
 # end of TRY_RUN

fi
 # end of AC_CACHE_VAL for libopts_cv_run_strftime
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
$as_echo "${libopts_cv_run_strftime}" >&6; }

  if test "X${libopts_cv_run_strftime}" != Xno
  then

$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h

  fi



  # Check to see if fopen accepts "b" mode.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
$as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  if test "${libopts_cv_run_fopen_binary+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
  libopts_cv_run_fopen_binary=no

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int main (int argc, char** argv) {
FILE* fp = fopen("conftest.$ac_ext", "rb");
return (fp == NULL) ? 1 : fclose(fp); }
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  libopts_cv_run_fopen_binary=yes
else
  libopts_cv_run_fopen_binary=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
 # end of TRY_RUN

fi
 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
$as_echo "${libopts_cv_run_fopen_binary}" >&6; }

  if test "X${libopts_cv_run_fopen_binary}" != Xno
  then

$as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h

  else

$as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h

  fi



  # Check to see if fopen accepts "t" mode.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
$as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  if test "${libopts_cv_run_fopen_text+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
  libopts_cv_run_fopen_text=no

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int main (int argc, char** argv) {
FILE* fp = fopen("conftest.$ac_ext", "rt");
return (fp == NULL) ? 1 : fclose(fp); }
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  libopts_cv_run_fopen_text=yes
else
  libopts_cv_run_fopen_text=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
 # end of TRY_RUN

fi
 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
$as_echo "${libopts_cv_run_fopen_text}" >&6; }

  if test "X${libopts_cv_run_fopen_text}" != Xno
  then

$as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h

  else

$as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h

  fi



  # Check to see if not wanting optional option args.

  # Check whether --enable-optional-args was given.
if test "${enable_optional_args+set}" = set; then :
  enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
$as_echo_n "checking whether not wanting optional option args... " >&6; }
if test "${libopts_cv_enable_optional_args+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  libopts_cv_enable_optional_args=yes
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
$as_echo "$libopts_cv_enable_optional_args" >&6; }

fi
 # end of AC_ARG_ENABLE

  if test "X${libopts_cv_enable_optional_args}" = Xno
  then

$as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h

  fi




  else

if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

  ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$as_ac_Header=yes"
else
  eval "$as_ac_Header=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_ac_Header
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if test "${ac_cv_search_opendir+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dir; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_opendir+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_opendir+set}" = set; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if test "${ac_cv_search_opendir+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' x; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_opendir+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_opendir+set}" = set; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi


  # =================
  # AC_CHECK_HEADERS
  # =================
  for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
    setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
    sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h    \
    utime.h sysexits.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  # --------------------------------------------
  # Verify certain entries from AC_CHECK_HEADERS
  # --------------------------------------------
  for f in sys_types sys_mman sys_param sys_stat sys_wait \
           string errno stdlib memory setjmp
  do eval as_ac_var=\${ac_cv_header_${f}_h+set}
     test "${as_ac_var}" = set || \
       as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
  done

  # ================================================
  # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  # if varargs.h is present define HAVE_VARARGS_H.
  # ================================================
  for ac_header in stdarg.h varargs.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 break
fi

done

  if test `eval echo '${'$as_ac_Header'}'` != yes; then
    as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
  fi

  # ================================================
  # Similarly for the string.h and strings.h headers
  # ================================================
  for ac_header in string.h strings.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 break
fi

done

  if test `eval echo '${'$as_ac_Header'}'` != yes; then
    as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
  fi

  # =====================
  # ...and limits headers
  # =====================
  for ac_header in limits.h sys/limits.h values.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 break
fi

done

  if test `eval echo '${'$as_ac_Header'}'` != yes; then
    as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  fi

  # ----------------------------------------------------------------------
  # check for various programs used during the build.
  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  # ----------------------------------------------------------------------
  for ac_header in runetype.h wchar.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  $ac_includes_default
  #if HAVE_RUNETYPE_H
  # include <runetype.h>
  #endif

"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  # ----------------------------------------------------------------------
  # Checks for typedefs
  # ----------------------------------------------------------------------
  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
if test "x$ac_cv_type_wchar_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WCHAR_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
  $ac_includes_default
  #if HAVE_RUNETYPE_H
  # include <runetype.h>
  #endif
  #if HAVE_WCHAR_H
  # include <wchar.h>
  #endif

"
if test "x$ac_cv_type_wint_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WINT_T 1
_ACEOF


fi


  # ========================
  # ...and int types headers
  # ========================
  for ac_header in stdint.h inttypes.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 break
fi

done

  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
if test "x$ac_cv_type_int8_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
if test "x$ac_cv_type_uint8_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
if test "x$ac_cv_type_int16_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
if test "x$ac_cv_type_uint16_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
if test "x$ac_cv_type_int32_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
if test "x$ac_cv_type_uint32_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
if test "x$ac_cv_type_intptr_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
if test "x$ac_cv_type_uint_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PID_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SIZE_T 1
_ACEOF


fi


  # =====
  # sizes
  # =====
  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
$as_echo_n "checking size of char*... " >&6; }
if test "${ac_cv_sizeof_charp+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_charp" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (char*)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_charp=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
$as_echo "$ac_cv_sizeof_charp" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHARP $ac_cv_sizeof_charp
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if test "${ac_cv_sizeof_int+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (int)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if test "${ac_cv_sizeof_long+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (long)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if test "${ac_cv_sizeof_short+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (short)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF



  # ----------------------------------------------------------------------
  # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  # ----------------------------------------------------------------------
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
$as_echo_n "checking for pathfind in -lgen... " >&6; }
if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgen  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pathfind ();
int
main ()
{
return pathfind ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gen_pathfind=yes
else
  ac_cv_lib_gen_pathfind=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGEN 1
_ACEOF

  LIBS="-lgen $LIBS"

fi

  for ac_func in vprintf
do :
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
if test "x$ac_cv_func_vprintf" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VPRINTF 1
_ACEOF

ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
if test "x$ac_cv_func__doprnt" = x""yes; then :

$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h

fi

fi
done


  for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if test "${ac_cv_func_fork_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if test "${ac_cv_func_vfork_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
                 strrchr strsignal
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

  INVOKE_LIBOPTS_MACROS_FIRST_done=yes
fi
  fi
# end of AC_DEFUN of LIBOPTS_CHECK


for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if test "${ac_cv_func_fork_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if test "${ac_cv_func_vfork_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if test "${ac_cv_cpp_warning+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#warning foo
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_cpp_warning=yes
else
  ac_cv_cpp_warning=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_warning" >&5
$as_echo "$ac_cv_cpp_warning" >&6; }

case "$ac_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

case "$GCC" in
 yes)
    SAVED_CFLAGS_AC="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if test "${ac_cv_gcc_Wstrict_overflow+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_gcc_Wstrict_overflow=yes
else
  ac_cv_gcc_Wstrict_overflow=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ac_cv_gcc_Wstrict_overflow" >&6; }
    CFLAGS="$SAVED_CFLAGS_AC"
    $as_unset SAVED_CFLAGS_AC
    #
    # $ac_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
esac


case "$GCC" in
 yes)
    SAVED_CFLAGS_AC="$CFLAGS"
    CFLAGS="$CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if test "${ac_cv_gcc_Winit_self+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_gcc_Winit_self=yes
else
  ac_cv_gcc_Winit_self=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Winit_self" >&5
$as_echo "$ac_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS_AC"
    $as_unset SAVED_CFLAGS_AC
    #
    # $ac_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS.
    #
esac

# Expose a cross-compilation indicator to makefiles
 if test $build != $host; then
  NTP_CROSSCOMPILE_TRUE=
  NTP_CROSSCOMPILE_FALSE='#'
else
  NTP_CROSSCOMPILE_TRUE='#'
  NTP_CROSSCOMPILE_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
$as_echo_n "checking for bin subdirectory... " >&6; }

# Check whether --with-binsubdir was given.
if test "${with_binsubdir+set}" = set; then :
  withval=$with_binsubdir; use_binsubdir="$withval"
else
  use_binsubdir="bin"
fi


case "$use_binsubdir" in
 bin)
    ;;
 sbin)
    ;;
 *)
    as_fn_error "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
$as_echo "$use_binsubdir" >&6; }
BINSUBDIR=$use_binsubdir


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use arlib" >&5
$as_echo_n "checking if we want to use arlib... " >&6; }

# Check whether --with-arlib was given.
if test "${with_arlib+set}" = set; then :
  withval=$with_arlib; ans=$withval
else
  ans=no
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

if test -d $srcdir/arlib
then
    case "$ans" in
     yes)
	ARLIB_DIR=arlib


subdirs="$subdirs arlib"

	;;
    esac
fi



# Check whether --with-rpath was given.
if test "${with_rpath+set}" = set; then :
  withval=$with_rpath; ans=$withval
else
  ans=x
fi

case "$ans" in
 no)
    need_dash_r=
    ;;
 yes)
    need_dash_r=1
    ;;
esac
# HMS: Why isn't this $build?
# Well, that depends on if we need this for the build toolchain or
# for info in the host executable...
# I still have no idea which way this should go, but nobody has complained.
case "$host" in
 *-*-netbsd*)
    case "$need_dash_r" in
     no) ;;
     *)  need_dash_r=1
	 ;;
    esac
    ;;
 *-*-solaris*)
    case "$need_dash_r" in
     no) ;;
     *)  need_dash_r=1
	 ;;
    esac
    ;;
esac

case "$build" in
 $host)
    ;;
 *) case "$host" in
     *-*-vxworks*)
	# Quick and dirty sanity check
	case "$VX_KERNEL" in
	 '') as_fn_error "Please follow the directions in html/build/hints/vxworks.html!" "$LINENO" 5
	    ;;
	esac
        CFLAGS="$CFLAGS -DSYS_VXWORKS"
        ;;
    esac
    ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AWK+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi


rm -f conftest*

case "$GCC" in
 yes)
    CFLAGS="$CFLAGS -Wall"
    # CFLAGS="$CFLAGS -Wcast-align"
    CFLAGS="$CFLAGS -Wcast-qual"
    # CFLAGS="$CFLAGS -Wconversion"
    # CFLAGS="$CFLAGS -Werror"
    # CFLAGS="$CFLAGS -Wextra"
    # CFLAGS="$CFLAGS -Wfloat-equal"
    CFLAGS="$CFLAGS -Wmissing-prototypes"
    CFLAGS="$CFLAGS -Wpointer-arith"
    CFLAGS="$CFLAGS -Wshadow"
    # CFLAGS="$CFLAGS -Wtraditional"
    # CFLAGS="$CFLAGS -Wwrite-strings"
    case "$ac_cv_gcc_Winit_self" in
     yes)
	CFLAGS="$CFLAGS -Winit-self"
    esac
    case "$ac_cv_gcc_Wstrict_overflow" in
     yes)
	CFLAGS="$CFLAGS -Wstrict-overflow"
    esac
    # if building with OpenSSL, -Wno-strict-prototypes is added later
esac

case "$host" in
 *-next-nextstep3)
    CFLAGS="$CFLAGS -posix"
    ;;
esac

ac_busted_vpath_in_make=no

case "$build" in
 *-*-irix6.1*)	# 64 bit only
    # busted vpath?
    ;;
 *-*-irix6*)	# 6.2 (and later?)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-solaris2.5.1)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-unicosmp*)
    ac_busted_vpath_in_make=yes
    ;;
esac

case "$ac_busted_vpath_in_make$srcdir" in
 no*) ;;
 yes.) ;;
 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
     '')
	as_fn_error "building outside of the main directory requires GNU make" "$LINENO" 5
	;;
     *) ;;
    esac
    ;;
esac





# Check whether --enable-static was given.
if test "${enable_static+set}" = set; then :
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_static=yes
fi


# Check whether --enable-fast-install was given.
if test "${enable_fast_install+set}" = set; then :
  enableval=$enable_fast_install; p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
    *)
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_fast_install=yes
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if test "${lt_cv_path_SED+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  # Loop through the user's path and test for sed and gsed.
# Then use that list of sed's as ones to test for truncation.
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for lt_ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
      fi
    done
  done
done
lt_ac_max=0
lt_ac_count=0
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
# along with /bin/sed that truncates output.
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  test ! -f $lt_ac_sed && continue
  cat /dev/null > conftest.in
  lt_ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  # Check for GNU sed and select it if it is found.
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
    lt_cv_path_SED=$lt_ac_sed
    break
  fi
  while true; do
    cat conftest.in conftest.in >conftest.tmp
    mv conftest.tmp conftest.in
    cp conftest.in conftest.nl
    echo >>conftest.nl
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
    cmp -s conftest.out conftest.nl || break
    # 10000 chars as input seems more than enough
    test $lt_ac_count -gt 10 && break
    lt_ac_count=`expr $lt_ac_count + 1`
    if test $lt_ac_count -gt $lt_ac_max; then
      lt_ac_max=$lt_ac_count
      lt_cv_path_SED=$lt_ac_sed
    fi
  done
done

fi

SED=$lt_cv_path_SED
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
$as_echo "$SED" >&6; }


# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if test "${lt_cv_path_LD+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
$as_echo_n "checking for $LD option to reload object files... " >&6; }
if test "${lt_cv_ld_reload_flag+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_reload_flag='-r'
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
$as_echo "$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
$as_echo_n "checking for BSD-compatible nm... " >&6; }
if test "${lt_cv_path_NM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
      # Check to see if the nm accepts a BSD-compat flag.
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
      #   nm: unknown option "B" ignored
      # Tru64's nm complains that /dev/null is an invalid object file
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
      */dev/null* | *'Invalid file or object type'*)
	lt_cv_path_NM="$tmp_nm -B"
	break
        ;;
      *)
	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	*/dev/null*)
	  lt_cv_path_NM="$tmp_nm -p"
	  break
	  ;;
	*)
	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	  continue # so that we can try to find one that supports BSD flags
	  ;;
	esac
      esac
    fi
  done
  IFS="$lt_save_ifs"
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
NM="$lt_cv_path_NM"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
$as_echo_n "checking how to recognise dependent libraries... " >&6; }
if test "${lt_cv_deplibs_check_method+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
aix4* | aix5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

freebsd* | kfreebsd*-gnu | dragonfly*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    ;;
  *)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    ;;
  esac
  ;;

irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
  ;;

# This must be Linux ELF.
linux*)
  lt_cv_deplibs_check_method=pass_all
  ;;

netbsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;

newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;

nto-qnx*)
  lt_cv_deplibs_check_method=unknown
  ;;

openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;

osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sco3.2v5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  esac
  ;;

sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
esac

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
$as_echo "$lt_cv_deplibs_check_method" >&6; }
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown




# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# Allow CC to be a program name with arguments.
compiler=$CC

# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then :
  enableval=$enable_libtool_lock;
fi

test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.$ac_objext` in
    *ELF-32*)
      HPUX_IA64_MODE="32"
      ;;
    *ELF-64*)
      HPUX_IA64_MODE="64"
      ;;
    esac
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 10175 "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
   if test "$lt_cv_prog_gnu_ld" = yes; then
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
      LD="${LD-ld} -melf32bsmip"
      ;;
    *N32*)
      LD="${LD-ld} -melf32bmipn32"
      ;;
    *64-bit*)
      LD="${LD-ld} -melf64bmip"
      ;;
    esac
   else
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
      LD="${LD-ld} -32"
      ;;
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
      ;;
    esac
   fi
  fi
  rm -rf conftest*
  ;;

x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
    *32-bit*)
      case $host in
        x86_64-*linux*)
          LD="${LD-ld} -m elf_i386"
          ;;
        ppc64-*linux*|powerpc64-*linux*)
          LD="${LD-ld} -m elf32ppclinux"
          ;;
        s390x-*linux*)
          LD="${LD-ld} -m elf_s390"
          ;;
        sparc64-*linux*)
          LD="${LD-ld} -m elf32_sparc"
          ;;
      esac
      ;;
    *64-bit*)
      case $host in
        x86_64-*linux*)
          LD="${LD-ld} -m elf_x86_64"
          ;;
        ppc*-*linux*|powerpc*-*linux*)
          LD="${LD-ld} -m elf64ppc"
          ;;
        s390*-*linux*)
          LD="${LD-ld} -m elf64_s390"
          ;;
        sparc*-*linux*)
          LD="${LD-ld} -m elf64_sparc"
          ;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
if test "${lt_cv_cc_needs_belf+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_cc_needs_belf=yes
else
  lt_cv_cc_needs_belf=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
$as_echo "$lt_cv_cc_needs_belf" >&6; }
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;

esac

need_locks="$enable_libtool_lock"


for ac_header in dlfcn.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLFCN_H 1
_ACEOF

fi

done


# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!

# find the maximum length of command line arguments
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
    i=0
  teststring="ABCD"

  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;

  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;

  cygwin* | mingw*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;

  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;

  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;
  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  *)
    # If test is not a shell built-in, we'll probably end up computing a
    # maximum length that is only half of the actual maximum length, but
    # we can't tell.
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
	       = "XX$teststring") >/dev/null 2>&1 &&
	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
	    lt_cv_sys_max_cmd_len=$new_result &&
	    test $i != 17 # 1/2 MB should be enough
    do
      i=`expr $i + 1`
      teststring=$teststring$teststring
    done
    teststring=
    # Add a significant safety factor because C++ compilers can tack on massive
    # amounts of additional arguments before passing them to the linker.
    # It appears as though 1/2 is a usable value.
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    ;;
  esac

fi

if test -n $lt_cv_sys_max_cmd_len ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi




# Check for command to grab the raw symbol name followed by C symbol from nm.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]

# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'

# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Transform an extracted symbol line into a proper C declaration
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"

# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32*)
  symcode='[ABCDGISTW]'
  ;;
hpux*) # Its linker distinguishes data from code symbols
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  ;;
linux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDGIRSTW]'
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  fi
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris* | sysv5*)
  symcode='[BDRT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac

# Try without a prefix undercore, then with it.
for ac_symprfx in "" "_"; do

  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"

  # Write the raw and C identifiers.
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"

  # Check to see that the pipe works correctly.
  pipe_works=no

  rm -f conftest*
  cat > conftest.$ac_ext <<EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
EOF

  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
	if grep ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<EOF > conftest.$ac_ext
#ifdef __cplusplus
extern "C" {
#endif

EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'

	  cat <<EOF >> conftest.$ac_ext
#if defined (__STDC__) && __STDC__
# define lt_ptr_t void *
#else
# define lt_ptr_t char *
# define const
#endif

/* The mapping between symbol names and symbols. */
const struct {
  const char *name;
  lt_ptr_t address;
}
lt_preloaded_symbols[] =
{
EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
	  cat <<\EOF >> conftest.$ac_ext
  {0, (lt_ptr_t) 0}
};

#ifdef __cplusplus
}
#endif
EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_save_LIBS="$LIBS"
	  lt_save_CFLAGS="$CFLAGS"
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
	    pipe_works=yes
	  fi
	  LIBS="$lt_save_LIBS"
	  CFLAGS="$lt_save_CFLAGS"
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -f conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done

fi

if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
$as_echo_n "checking for objdir... " >&6; }
if test "${lt_cv_objdir+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
fi
rmdir .libs 2>/dev/null
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
$as_echo "$lt_cv_objdir" >&6; }
objdir=$lt_cv_objdir





case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
esac

# Sed substitution that helps us do robust quoting.  It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed='sed -e 1s/^X//'
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

# Constants:
rm="rm -f"

# Global variables:
default_ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a
ltmain="$ac_aux_dir/ltmain.sh"
ofile="$default_ofile"
with_gnu_ld="$lt_cv_prog_gnu_ld"

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AR+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="${ac_tool_prefix}ar"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_AR"; then
  ac_ct_AR=$AR
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="ar"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
else
  AR="$ac_cv_prog_AR"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_RANLIB+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi


old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$AR" && AR=ar
test -z "$AR_FLAGS" && AR_FLAGS=cru
test -z "$AS" && AS=as
test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC
test -z "$DLLTOOL" && DLLTOOL=dlltool
test -z "$LD" && LD=ld
test -z "$LN_S" && LN_S="ln -s"
test -z "$MAGIC_CMD" && MAGIC_CMD=file
test -z "$NM" && NM=nm
test -z "$SED" && SED=sed
test -z "$OBJDUMP" && OBJDUMP=objdump
test -z "$RANLIB" && RANLIB=:
test -z "$STRIP" && STRIP=:
test -z "$ac_objext" && ac_objext=o

# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=

if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
    ;;
  *)
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi

for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


# Only perform the check for file, if the check method requires it
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
$as_echo_n "checking for file... " >&6; }
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  else
    MAGIC_CMD=:
  fi
fi

  fi
  ;;
esac

enable_dlopen=no
enable_win32_dll=no

# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then :
  enableval=$enable_libtool_lock;
fi

test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes


# Check whether --with-pic was given.
if test "${with_pic+set}" = set; then :
  withval=$with_pic; pic_mode="$withval"
else
  pic_mode=default
fi

test -z "$pic_mode" && pic_mode=default

# Use C for the default configuration in the libtool script
tagname=
lt_save_CC="$CC"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# Source file extension for C test sources.
ac_ext=c

# Object file extension for compiled C test sources.
objext=o
objext=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;\n"

# Code to be used in simple link tests
lt_simple_link_test_code='int main(){return(0);}\n'


# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


#
# Check for any special shared library compilation flags.
#
lt_prog_cc_shlib=
if test "$GCC" = no; then
  case $host_os in
  sco3.2v5*)
    lt_prog_cc_shlib='-belf'
    ;;
  esac
fi
if test -n "$lt_prog_cc_shlib"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
$as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
$as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
    lt_cv_prog_cc_can_build_shared=no
  fi
fi


#
# Check to make sure the static flag actually works.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
$as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
if test "${lt_prog_compiler_static_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_prog_compiler_static_works=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
       $SED '/^$/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works=yes
       fi
     else
       lt_prog_compiler_static_works=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
$as_echo "$lt_prog_compiler_static_works" >&6; }

if test x"$lt_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi




lt_prog_compiler_no_builtin_flag=

if test "$GCC" = yes; then
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:11310: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:11314: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     $SED '/^$/d' conftest.err >conftest.er2
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $rm conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }

if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
else
    :
fi

fi

lt_prog_compiler_wl=
lt_prog_compiler_pic=
lt_prog_compiler_static=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }

  if test "$GCC" = yes; then
    lt_prog_compiler_wl='-Wl,'
    lt_prog_compiler_static='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
      ;;

    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared=no
      enable_shared=no
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic=-Kconform_pic
      fi
      ;;

    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='-fPIC'
	;;
      esac
      ;;

    *)
      lt_prog_compiler_pic='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      else
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic='-qnocommon'
         lt_prog_compiler_wl='-Wl,'
         ;;
       esac
       ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static='-non_shared'
      ;;

    newsos6)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    linux*)
      case $cc_basename in
      icc* | ecc*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-KPIC'
	lt_prog_compiler_static='-static'
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fpic'
	lt_prog_compiler_static='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static='-non_shared'
        ;;
      esac
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static='-non_shared'
      ;;

    sco3.2v5*)
      lt_prog_compiler_pic='-Kpic'
      lt_prog_compiler_static='-dn'
      ;;

    solaris*)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl='-Qoption ld ';;
      *)
	lt_prog_compiler_wl='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl='-Qoption ld '
      lt_prog_compiler_pic='-PIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic='-Kconform_pic'
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    unicos*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_can_build_shared=no
      ;;

    uts4*)
      lt_prog_compiler_pic='-pic'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared=no
      ;;
    esac
  fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
$as_echo "$lt_prog_compiler_pic" >&6; }

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic"; then

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
if test "${lt_prog_compiler_pic_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_prog_compiler_pic_works=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:11572: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:11576: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     $SED '/^$/d' conftest.err >conftest.er2
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works=yes
     fi
   fi
   $rm conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
$as_echo "$lt_prog_compiler_pic_works" >&6; }

if test x"$lt_prog_compiler_pic_works" = xyes; then
    case $lt_prog_compiler_pic in
     "" | " "*) ;;
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
     esac
else
    lt_prog_compiler_pic=
     lt_prog_compiler_can_build_shared=no
fi

fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic=
    ;;
  *)
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:11634: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:11638: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
     $SED '/^$/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  runpath_var=
  allow_undefined_flag=
  enable_shared_with_static_runtimes=no
  archive_cmds=
  archive_expsym_cmds=
  old_archive_From_new_cmds=
  old_archive_from_expsyms_cmds=
  export_dynamic_flag_spec=
  whole_archive_flag_spec=
  thread_safe_flag_spec=
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_direct=no
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  link_all_deplibs=unknown
  hardcode_automatic=no
  module_cmds=
  module_expsym_cmds=
  always_export_symbols=no
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs=no
	cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

EOF
      fi
      ;;

    amigaos*)
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes

      # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs=no
      ;;

    beos*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    cygwin* | mingw* | pw32*)
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec='-L$libdir'
      allow_undefined_flag=unsupported
      always_export_symbols=no
      enable_shared_with_static_runtimes=yes
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
      else
	ld_shlibs=no
      fi
      ;;

    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris* | sysv5*)
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
	ld_shlibs=no
	cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    sunos4*)
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    *)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;
    esac

    if test "$ld_shlibs" = no; then
      runpath_var=
      hardcode_libdir_flag_spec=
      export_dynamic_flag_spec=
      whole_archive_flag_spec=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag=unsupported
      always_export_symbols=yes
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L=yes
      if test "$GCC" = yes && test -z "$link_static_flag"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct=unsupported
      fi
      ;;

    aix4* | aix5*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	  for ld_flag in $LDFLAGS; do
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  	    aix_use_runtimelinking=yes
  	    break
  	  fi
	  done
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds=''
      hardcode_direct=yes
      hardcode_libdir_separator=':'
      link_all_deplibs=yes

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" && \
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	  then
  	  # We have reworked collect2
  	  hardcode_direct=yes
	  else
  	  # We have old collect2
  	  hardcode_direct=unsupported
  	  # It fails to find uninstalled libraries when the uninstalled
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  	  # to unsupported forces relinking
  	  hardcode_minus_L=yes
  	  hardcode_libdir_flag_spec='-L$libdir'
  	  hardcode_libdir_separator=
	  fi
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
  	if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
  	fi
	fi
      fi

      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='-berok'
       # Determine the default libpath from the value encoded in an empty executable.
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
       else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag="-z nodefs"
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an empty executable.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag=' ${wl}-bernotok'
	  allow_undefined_flag=' ${wl}-berok'
	  # -bexpall does not export symbols beginning with underscore (_)
	  always_export_symbols=yes
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec=' '
	  archive_cmds_need_lc=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      # see comment about different semantics on the GNU ld section
      ld_shlibs=no
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec=-rdynamic
      ;;

    cygwin* | mingw* | pw32*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec=' '
      allow_undefined_flag=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_From_new_cmds='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes=yes
      ;;

    darwin* | rhapsody*)
      case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
      esac
      archive_cmds_need_lc=no
      hardcode_direct=no
      hardcode_automatic=yes
      hardcode_shlibpath_var=unsupported
      whole_archive_flag_spec=''
      link_all_deplibs=yes
    if test "$GCC" = yes ; then
    	output_verbose_link_cmd='echo'
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs=no
          ;;
      esac
    fi
      ;;

    dgux*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    freebsd1*)
      ld_shlibs=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | kfreebsd*-gnu | dragonfly*)
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_direct=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L=yes
      export_dynamic_flag_spec='${wl}-E'
      ;;

    hpux10* | hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*|ia64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*|ia64*)
	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
	  ;;
	*)
	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	  hardcode_libdir_flag_spec_ld='+b $libdir'
	  hardcode_libdir_separator=:
	  hardcode_direct=no
	  hardcode_shlibpath_var=no
	  ;;
	ia64*)
	  hardcode_libdir_flag_spec='-L$libdir'
	  hardcode_direct=no
	  hardcode_shlibpath_var=no

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L=yes
	  ;;
	*)
	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator=:
	  hardcode_direct=yes
	  export_dynamic_flag_spec='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_ld='-rpath $libdir'
      fi
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      link_all_deplibs=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    newsos6)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_shlibpath_var=no
      ;;

    openbsd*)
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	export_dynamic_flag_spec='${wl}-E'
      else
       case $host_os in
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	   hardcode_libdir_flag_spec='-R$libdir'
	   ;;
	 *)
	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	   ;;
       esac
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec='-rpath $libdir'
      fi
      hardcode_libdir_separator=:
      ;;

    sco3.2v5*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='${wl}-Bexport'
      runpath_var=LD_RUN_PATH
      hardcode_runpath_var=yes
      ;;

    solaris*)
      no_undefined_flag=' -z text'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
      else
	wlarc=''
	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_shlibpath_var=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
      esac
      link_all_deplibs=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds='$CC -r -o $output$reload_objs'
	  hardcode_direct=no
        ;;
	motorola)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var=no
      ;;

    sysv4.3*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs=yes
      fi
      ;;

    sysv4.2uw2*)
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=no
      hardcode_shlibpath_var=no
      hardcode_runpath_var=yes
      runpath_var=LD_RUN_PATH
      ;;

   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
      no_undefined_flag='${wl}-z ${wl}text'
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var=no
      ;;

    sysv5*)
      no_undefined_flag=' -z text'
      # $CC -shared without GNU ld will not create a library from C++
      # object files and a static libstdc++, better avoid it by now
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      hardcode_libdir_flag_spec=
      hardcode_shlibpath_var=no
      runpath_var='LD_RUN_PATH'
      ;;

    uts4*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    *)
      ld_shlibs=no
      ;;
    esac
  fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
$as_echo "$ld_shlibs" >&6; }
test "$ld_shlibs" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag
        allow_undefined_flag=
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        then
	  archive_cmds_need_lc=no
        else
	  archive_cmds_need_lc=yes
        fi
        allow_undefined_flag=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
$as_echo "$archive_cmds_need_lc" >&6; }
      ;;
    esac
  fi
  ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  *) # from 3.2 on
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

sco3.2v5*)
  version_type=osf
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" || \
   test -n "$runpath_var" || \
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
   darwin*)
       if test -n "$STRIP" ; then
         striplib="$STRIP -x"
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
       else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
       ;;
   *)
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi

if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
   ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
   ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

   ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = x""yes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if test "${lt_cv_dlopen_self+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 13506 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      LDFLAGS="$LDFLAGS $link_static_flag"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if test "${lt_cv_dlopen_self_static+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 13604 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi


# Report which librarie types wil actually be built
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
test "$can_build_shared" = "no" && enable_shared=no

# On AIX, shared libraries and static libraries use the same namespace, and
# are all built from PIC.
case $host_os in
aix3*)
  test "$enable_shared" = yes && enable_static=no
  if test -n "$RANLIB"; then
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
    postinstall_cmds='$RANLIB $lib'
  fi
  ;;

aix4* | aix5*)
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    test "$enable_shared" = yes && enable_static=no
  fi
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
# Make sure either enable_shared or enable_static is yes.
test "$enable_shared" = yes || enable_static=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }

# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler \
    CC \
    LD \
    lt_prog_compiler_wl \
    lt_prog_compiler_pic \
    lt_prog_compiler_static \
    lt_prog_compiler_no_builtin_flag \
    export_dynamic_flag_spec \
    thread_safe_flag_spec \
    whole_archive_flag_spec \
    enable_shared_with_static_runtimes \
    old_archive_cmds \
    old_archive_from_new_cmds \
    predep_objects \
    postdep_objects \
    predeps \
    postdeps \
    compiler_lib_search_path \
    archive_cmds \
    archive_expsym_cmds \
    postinstall_cmds \
    postuninstall_cmds \
    old_archive_from_expsyms_cmds \
    allow_undefined_flag \
    no_undefined_flag \
    export_symbols_cmds \
    hardcode_libdir_flag_spec \
    hardcode_libdir_flag_spec_ld \
    hardcode_libdir_separator \
    hardcode_automatic \
    module_cmds \
    module_expsym_cmds \
    lt_cv_prog_compiler_c_o \
    exclude_expsyms \
    include_expsyms; do

    case $var in
    old_archive_cmds | \
    old_archive_from_new_cmds | \
    archive_cmds | \
    archive_expsym_cmds | \
    module_cmds | \
    module_expsym_cmds | \
    old_archive_from_expsyms_cmds | \
    export_symbols_cmds | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="${ofile}T"
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  $rm -f "$cfgfile"
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
$as_echo "$as_me: creating $ofile" >&6;}

  cat <<__EOF__ >> "$cfgfile"
#! $SHELL

# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
#
# This file is part of GNU Libtool:
# Originally by Gordon Matzigkeit <gord@@gnu.ai.mit.edu>, 1996
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.

# A sed program that does not truncate output.
SED=$lt_SED

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="$SED -e 1s/^X//"

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

# The names of the tagged configurations supported by this script.
available_tags=

# ### BEGIN LIBTOOL CONFIG

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# A language-specific compiler.
CC=$lt_compiler

# Is the compiler the GNU C compiler?
with_gcc=$GCC

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# ### END LIBTOOL CONFIG

__EOF__


  case $host_os in
  aix3*)
    cat <<\EOF >> "$cfgfile"

# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
EOF
    ;;
  esac

  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)

  mv -f "$cfgfile" "$ofile" || \
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"

else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"


# Check whether --with-tags was given.
if test "${with_tags+set}" = set; then :
  withval=$with_tags; tagnames="$withval"
fi


if test -f "$ltmain" && test -n "$tagnames"; then
  if test ! -f "${ofile}"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  fi

  if test -z "$LTCC"; then
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
    if test -z "$LTCC"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
    fi
  fi

  # Extract list of available tagged configurations in $ofile.
  # Note that this assumes the entire list is on one line.
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`

  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  for tagname in $tagnames; do
    IFS="$lt_save_ifs"
    # Check whether tagname contains only valid characters
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
    "") ;;
    *)  as_fn_error "invalid tag name: $tagname" "$LINENO" 5
	;;
    esac

    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
    then
      as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
    fi

    # Update the list of available tags.
    if test -n "$tagname"; then
      echo appending configuration tag \"$tagname\" to $ofile

      case $tagname in
      CXX)
	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
	    (test "X$CXX" != "Xg++"))) ; then
	  :
	else
	  tagname=""
	fi
	;;

      F77)
	if test -n "$F77" && test "X$F77" != "Xno"; then
	  :
	else
	  tagname=""
	fi
	;;

      GCJ)
	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then


# Source file extension for Java test sources.
ac_ext=java

# Object file extension for compiled Java test sources.
objext=o
objext_GCJ=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="class foo {}\n"

# Code to be used in simple link tests
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${GCJ-"gcj"}
compiler=$CC
compiler_GCJ=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


# GCJ did not exist at the time GCC didn't implicitly link libc in.
archive_cmds_need_lc_GCJ=no

old_archive_cmds_GCJ=$old_archive_cmds


lt_prog_compiler_no_builtin_flag_GCJ=

if test "$GCC" = yes; then
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:14383: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:14387: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     $SED '/^$/d' conftest.err >conftest.er2
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $rm conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }

if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
else
    :
fi

fi

lt_prog_compiler_wl_GCJ=
lt_prog_compiler_pic_GCJ=
lt_prog_compiler_static_GCJ=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }

  if test "$GCC" = yes; then
    lt_prog_compiler_wl_GCJ='-Wl,'
    lt_prog_compiler_static_GCJ='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_GCJ='-Bstatic'
      fi
      ;;

    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
      ;;

    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_GCJ='-fno-common'
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared_GCJ=no
      enable_shared=no
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_GCJ=-Kconform_pic
      fi
      ;;

    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_GCJ='-fPIC'
	;;
      esac
      ;;

    *)
      lt_prog_compiler_pic_GCJ='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_GCJ='-Bstatic'
      else
	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic_GCJ='-qnocommon'
         lt_prog_compiler_wl_GCJ='-Wl,'
         ;;
       esac
       ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_GCJ='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static_GCJ='-non_shared'
      ;;

    newsos6)
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    linux*)
      case $cc_basename in
      icc* | ecc*)
	lt_prog_compiler_wl_GCJ='-Wl,'
	lt_prog_compiler_pic_GCJ='-KPIC'
	lt_prog_compiler_static_GCJ='-static'
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_GCJ='-Wl,'
	lt_prog_compiler_pic_GCJ='-fpic'
	lt_prog_compiler_static_GCJ='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl_GCJ='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static_GCJ='-non_shared'
        ;;
      esac
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static_GCJ='-non_shared'
      ;;

    sco3.2v5*)
      lt_prog_compiler_pic_GCJ='-Kpic'
      lt_prog_compiler_static_GCJ='-dn'
      ;;

    solaris*)
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_GCJ='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl_GCJ='-Qoption ld '
      lt_prog_compiler_pic_GCJ='-PIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic_GCJ='-Kconform_pic'
	lt_prog_compiler_static_GCJ='-Bstatic'
      fi
      ;;

    unicos*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_can_build_shared_GCJ=no
      ;;

    uts4*)
      lt_prog_compiler_pic_GCJ='-pic'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared_GCJ=no
      ;;
    esac
  fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_GCJ"; then

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_prog_compiler_pic_works_GCJ=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:14645: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:14649: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     $SED '/^$/d' conftest.err >conftest.er2
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works_GCJ=yes
     fi
   fi
   $rm conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }

if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
    case $lt_prog_compiler_pic_GCJ in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
     esac
else
    lt_prog_compiler_pic_GCJ=
     lt_prog_compiler_can_build_shared_GCJ=no
fi

fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_GCJ=
    ;;
  *)
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_GCJ=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:14707: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:14711: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
     $SED '/^$/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_GCJ=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  runpath_var=
  allow_undefined_flag_GCJ=
  enable_shared_with_static_runtimes_GCJ=no
  archive_cmds_GCJ=
  archive_expsym_cmds_GCJ=
  old_archive_From_new_cmds_GCJ=
  old_archive_from_expsyms_cmds_GCJ=
  export_dynamic_flag_spec_GCJ=
  whole_archive_flag_spec_GCJ=
  thread_safe_flag_spec_GCJ=
  hardcode_libdir_flag_spec_GCJ=
  hardcode_libdir_flag_spec_ld_GCJ=
  hardcode_libdir_separator_GCJ=
  hardcode_direct_GCJ=no
  hardcode_minus_L_GCJ=no
  hardcode_shlibpath_var_GCJ=unsupported
  link_all_deplibs_GCJ=unknown
  hardcode_automatic_GCJ=no
  module_cmds_GCJ=
  module_expsym_cmds_GCJ=
  always_export_symbols_GCJ=no
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms_GCJ=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs_GCJ=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_GCJ=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs_GCJ=no
	cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

EOF
      fi
      ;;

    amigaos*)
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_minus_L_GCJ=yes

      # Samuel A. Falvo II <kc5tja@@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs_GCJ=no
      ;;

    beos*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag_GCJ=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;

    cygwin* | mingw* | pw32*)
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      allow_undefined_flag_GCJ=unsupported
      always_export_symbols_GCJ=no
      enable_shared_with_static_runtimes_GCJ=yes
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;

    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs_GCJ=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris* | sysv5*)
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
	ld_shlibs_GCJ=no
	cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;

    sunos4*)
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    *)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;
    esac

    if test "$ld_shlibs_GCJ" = no; then
      runpath_var=
      hardcode_libdir_flag_spec_GCJ=
      export_dynamic_flag_spec_GCJ=
      whole_archive_flag_spec_GCJ=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag_GCJ=unsupported
      always_export_symbols_GCJ=yes
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L_GCJ=yes
      if test "$GCC" = yes && test -z "$link_static_flag"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct_GCJ=unsupported
      fi
      ;;

    aix4* | aix5*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	  for ld_flag in $LDFLAGS; do
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  	    aix_use_runtimelinking=yes
  	    break
  	  fi
	  done
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds_GCJ=''
      hardcode_direct_GCJ=yes
      hardcode_libdir_separator_GCJ=':'
      link_all_deplibs_GCJ=yes

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" && \
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	  then
  	  # We have reworked collect2
  	  hardcode_direct_GCJ=yes
	  else
  	  # We have old collect2
  	  hardcode_direct_GCJ=unsupported
  	  # It fails to find uninstalled libraries when the uninstalled
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  	  # to unsupported forces relinking
  	  hardcode_minus_L_GCJ=yes
  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
  	  hardcode_libdir_separator_GCJ=
	  fi
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
  	if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
  	fi
	fi
      fi

      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols_GCJ=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag_GCJ='-berok'
       # Determine the default libpath from the value encoded in an empty executable.
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
       else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag_GCJ="-z nodefs"
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an empty executable.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag_GCJ=' ${wl}-bernotok'
	  allow_undefined_flag_GCJ=' ${wl}-berok'
	  # -bexpall does not export symbols beginning with underscore (_)
	  always_export_symbols_GCJ=yes
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec_GCJ=' '
	  archive_cmds_need_lc_GCJ=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_minus_L_GCJ=yes
      # see comment about different semantics on the GNU ld section
      ld_shlibs_GCJ=no
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec_GCJ=-rdynamic
      ;;

    cygwin* | mingw* | pw32*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec_GCJ=' '
      allow_undefined_flag_GCJ=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_From_new_cmds_GCJ='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes_GCJ=yes
      ;;

    darwin* | rhapsody*)
      case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
      esac
      archive_cmds_need_lc_GCJ=no
      hardcode_direct_GCJ=no
      hardcode_automatic_GCJ=yes
      hardcode_shlibpath_var_GCJ=unsupported
      whole_archive_flag_spec_GCJ=''
      link_all_deplibs_GCJ=yes
    if test "$GCC" = yes ; then
    	output_verbose_link_cmd='echo'
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs_GCJ=no
          ;;
      esac
    fi
      ;;

    dgux*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_shlibpath_var_GCJ=no
      ;;

    freebsd1*)
      ld_shlibs_GCJ=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_GCJ=yes
      hardcode_minus_L_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | kfreebsd*-gnu | dragonfly*)
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      hardcode_direct_GCJ=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L_GCJ=yes
      export_dynamic_flag_spec_GCJ='${wl}-E'
      ;;

    hpux10* | hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*|ia64*)
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*|ia64*)
	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
	  ;;
	*)
	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
	  hardcode_libdir_separator_GCJ=:
	  hardcode_direct_GCJ=no
	  hardcode_shlibpath_var_GCJ=no
	  ;;
	ia64*)
	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
	  hardcode_direct_GCJ=no
	  hardcode_shlibpath_var_GCJ=no

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_GCJ=yes
	  ;;
	*)
	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator_GCJ=:
	  hardcode_direct_GCJ=yes
	  export_dynamic_flag_spec_GCJ='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_GCJ=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
      fi
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      link_all_deplibs_GCJ=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    newsos6)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_GCJ=yes
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      hardcode_shlibpath_var_GCJ=no
      ;;

    openbsd*)
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_GCJ='${wl}-E'
      else
       case $host_os in
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
	   ;;
	 *)
	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
	   ;;
       esac
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_minus_L_GCJ=yes
      allow_undefined_flag_GCJ=unsupported
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
      fi
      hardcode_libdir_separator_GCJ=:
      ;;

    sco3.2v5*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_GCJ=no
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
      runpath_var=LD_RUN_PATH
      hardcode_runpath_var=yes
      ;;

    solaris*)
      no_undefined_flag_GCJ=' -z text'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
      else
	wlarc=''
	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      fi
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_shlibpath_var_GCJ=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
      esac
      link_all_deplibs_GCJ=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_direct_GCJ=yes
      hardcode_minus_L_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_GCJ=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
	  hardcode_direct_GCJ=no
        ;;
	motorola)
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_GCJ=no
      ;;

    sysv4.3*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_GCJ=no
      export_dynamic_flag_spec_GCJ='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var_GCJ=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs_GCJ=yes
      fi
      ;;

    sysv4.2uw2*)
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_GCJ=yes
      hardcode_minus_L_GCJ=no
      hardcode_shlibpath_var_GCJ=no
      hardcode_runpath_var=yes
      runpath_var=LD_RUN_PATH
      ;;

   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
      if test "$GCC" = yes; then
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_GCJ=no
      ;;

    sysv5*)
      no_undefined_flag_GCJ=' -z text'
      # $CC -shared without GNU ld will not create a library from C++
      # object files and a static libstdc++, better avoid it by now
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      hardcode_libdir_flag_spec_GCJ=
      hardcode_shlibpath_var_GCJ=no
      runpath_var='LD_RUN_PATH'
      ;;

    uts4*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_shlibpath_var_GCJ=no
      ;;

    *)
      ld_shlibs_GCJ=no
      ;;
    esac
  fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
$as_echo "$ld_shlibs_GCJ" >&6; }
test "$ld_shlibs_GCJ" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_GCJ" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_GCJ=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_GCJ in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_GCJ
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
        allow_undefined_flag_GCJ=
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        then
	  archive_cmds_need_lc_GCJ=no
        else
	  archive_cmds_need_lc_GCJ=yes
        fi
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
      ;;
    esac
  fi
  ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@@libraries:/' | tr "@@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  *) # from 3.2 on
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

sco3.2v5*)
  version_type=osf
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action_GCJ=
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
   test -n "$runpath_var_GCJ" || \
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct_GCJ" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
     test "$hardcode_minus_L_GCJ" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_GCJ=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_GCJ=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_GCJ=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
$as_echo "$hardcode_action_GCJ" >&6; }

if test "$hardcode_action_GCJ" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
   darwin*)
       if test -n "$STRIP" ; then
         striplib="$STRIP -x"
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
       else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
       ;;
   *)
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi

if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
   ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
   ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

   ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = x""yes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if test "${lt_cv_dlopen_self+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 16579 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      LDFLAGS="$LDFLAGS $link_static_flag"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if test "${lt_cv_dlopen_self_static+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 16677 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }

    exit (status);
}
EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi


# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_GCJ \
    CC_GCJ \
    LD_GCJ \
    lt_prog_compiler_wl_GCJ \
    lt_prog_compiler_pic_GCJ \
    lt_prog_compiler_static_GCJ \
    lt_prog_compiler_no_builtin_flag_GCJ \
    export_dynamic_flag_spec_GCJ \
    thread_safe_flag_spec_GCJ \
    whole_archive_flag_spec_GCJ \
    enable_shared_with_static_runtimes_GCJ \
    old_archive_cmds_GCJ \
    old_archive_from_new_cmds_GCJ \
    predep_objects_GCJ \
    postdep_objects_GCJ \
    predeps_GCJ \
    postdeps_GCJ \
    compiler_lib_search_path_GCJ \
    archive_cmds_GCJ \
    archive_expsym_cmds_GCJ \
    postinstall_cmds_GCJ \
    postuninstall_cmds_GCJ \
    old_archive_from_expsyms_cmds_GCJ \
    allow_undefined_flag_GCJ \
    no_undefined_flag_GCJ \
    export_symbols_cmds_GCJ \
    hardcode_libdir_flag_spec_GCJ \
    hardcode_libdir_flag_spec_ld_GCJ \
    hardcode_libdir_separator_GCJ \
    hardcode_automatic_GCJ \
    module_cmds_GCJ \
    module_expsym_cmds_GCJ \
    lt_cv_prog_compiler_c_o_GCJ \
    exclude_expsyms_GCJ \
    include_expsyms_GCJ; do

    case $var in
    old_archive_cmds_GCJ | \
    old_archive_from_new_cmds_GCJ | \
    archive_cmds_GCJ | \
    archive_expsym_cmds_GCJ | \
    module_cmds_GCJ | \
    module_expsym_cmds_GCJ | \
    old_archive_from_expsyms_cmds_GCJ | \
    export_symbols_cmds_GCJ | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_GCJ

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# A language-specific compiler.
CC=$lt_compiler_GCJ

# Is the compiler the GNU C compiler?
with_gcc=$GCC_GCJ

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_GCJ

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_GCJ

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_GCJ
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_GCJ

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_GCJ
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_GCJ
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_GCJ
module_expsym_cmds=$lt_module_expsym_cmds_GCJ

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_GCJ

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_GCJ

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_GCJ

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_GCJ

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_GCJ

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_GCJ

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_GCJ

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_GCJ

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_GCJ

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_GCJ

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_GCJ

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_GCJ"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_GCJ

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_GCJ

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_GCJ

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_GCJ

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

	else
	  tagname=""
	fi
	;;

      RC)


# Source file extension for RC test sources.
ac_ext=rc

# Object file extension for compiled RC test sources.
objext=o
objext_RC=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'

# Code to be used in simple link tests
lt_simple_link_test_code="$lt_simple_compile_test_code"

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${RC-"windres"}
compiler=$CC
compiler_RC=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

lt_cv_prog_compiler_c_o_RC=yes

# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_RC \
    CC_RC \
    LD_RC \
    lt_prog_compiler_wl_RC \
    lt_prog_compiler_pic_RC \
    lt_prog_compiler_static_RC \
    lt_prog_compiler_no_builtin_flag_RC \
    export_dynamic_flag_spec_RC \
    thread_safe_flag_spec_RC \
    whole_archive_flag_spec_RC \
    enable_shared_with_static_runtimes_RC \
    old_archive_cmds_RC \
    old_archive_from_new_cmds_RC \
    predep_objects_RC \
    postdep_objects_RC \
    predeps_RC \
    postdeps_RC \
    compiler_lib_search_path_RC \
    archive_cmds_RC \
    archive_expsym_cmds_RC \
    postinstall_cmds_RC \
    postuninstall_cmds_RC \
    old_archive_from_expsyms_cmds_RC \
    allow_undefined_flag_RC \
    no_undefined_flag_RC \
    export_symbols_cmds_RC \
    hardcode_libdir_flag_spec_RC \
    hardcode_libdir_flag_spec_ld_RC \
    hardcode_libdir_separator_RC \
    hardcode_automatic_RC \
    module_cmds_RC \
    module_expsym_cmds_RC \
    lt_cv_prog_compiler_c_o_RC \
    exclude_expsyms_RC \
    include_expsyms_RC; do

    case $var in
    old_archive_cmds_RC | \
    old_archive_from_new_cmds_RC | \
    archive_cmds_RC | \
    archive_expsym_cmds_RC | \
    module_cmds_RC | \
    module_expsym_cmds_RC | \
    old_archive_from_expsyms_cmds_RC | \
    export_symbols_cmds_RC | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_RC

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# A language-specific compiler.
CC=$lt_compiler_RC

# Is the compiler the GNU C compiler?
with_gcc=$GCC_RC

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_RC

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_RC

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_RC
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_RC

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_RC
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_RC
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_RC
module_expsym_cmds=$lt_module_expsym_cmds_RC

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_RC

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_RC

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_RC

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_RC

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_RC

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_RC

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_RC

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_RC

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_RC

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_RC

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_RC

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_RC

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_RC"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_RC

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_RC

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_RC

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_RC

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  fi
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

	;;

      *)
	as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
	;;
      esac

      # Append the new tag name to the list of available tags.
      if test -n "$tagname" ; then
      available_tags="$available_tags $tagname"
    fi
    fi
  done
  IFS="$lt_save_ifs"

  # Now substitute the updated list of available tags.
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
    mv "${ofile}T" "$ofile"
    chmod +x "$ofile"
  else
    rm -f "${ofile}T"
    as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
  fi
fi



# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'

# Prevent multiple expansion










{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
    ac_pattern="Autoconf.*'x'"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
else
  ac_cv_prog_gcc_traditional=no
fi
rm -f conftest*


  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
fi
rm -f conftest*

  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
$as_echo_n "checking for working volatile... " >&6; }
if test "${ac_cv_c_volatile+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

volatile int x;
int * volatile y = (int *) 0;
return !x && !y;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_volatile=yes
else
  ac_cv_c_volatile=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
$as_echo "$ac_cv_c_volatile" >&6; }
if test $ac_cv_c_volatile = no; then

$as_echo "#define volatile /**/" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
$as_echo_n "checking for library containing strerror... " >&6; }
if test "${ac_cv_search_strerror+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strerror ();
int
main ()
{
return strerror ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' cposix; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_strerror=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_strerror+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_strerror+set}" = set; then :

else
  ac_cv_search_strerror=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
$as_echo "$ac_cv_search_strerror" >&6; }
ac_res=$ac_cv_search_strerror
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

# Extract the first word of "sh", so it can be a program name with args.
set dummy sh; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PATH_SH+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_SH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_SH=$ac_cv_path_PATH_SH
if test -n "$PATH_SH"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SH" >&5
$as_echo "$PATH_SH" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PATH_PERL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_PERL=$ac_cv_path_PATH_PERL
if test -n "$PATH_PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
$as_echo "$PATH_PERL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi




# Check whether --with-net-snmp-config was given.
if test "${with_net_snmp_config+set}" = set; then :
  withval=$with_net_snmp_config; ans=$withval
else
  ans=yes
fi

case "$ans" in
 no) ;;
 yes)
    ans=net-snmp-config
    ;;
 /*) ;;
 */*)
    as_fn_error "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
    ;;
 *)
    ;;
esac
PROG_NET_SNMP_CONFIG=$ans
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
case "$PROG_NET_SNMP_CONFIG" in
 no) ;;
 /*)
    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
    ;;
 *) # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PATH_NET_SNMP_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_NET_SNMP_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
if test -n "$PATH_NET_SNMP_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }

case "$host" in
 *-*-vxworks*)
    ac_link="$ac_link $VX_KERNEL"
    ;;
esac



case "$host" in
 *-pc-cygwin*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ladvapi32" >&5
$as_echo_n "checking for main in -ladvapi32... " >&6; }
if test "${ac_cv_lib_advapi32_main+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ladvapi32  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_advapi32_main=yes
else
  ac_cv_lib_advapi32_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_advapi32_main" >&5
$as_echo "$ac_cv_lib_advapi32_main" >&6; }
if test "x$ac_cv_lib_advapi32_main" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBADVAPI32 1
_ACEOF

  LIBS="-ladvapi32 $LIBS"

fi

    ;;
esac

ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
if test "x$ac_cv_func_gethostent" = x""yes; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
$as_echo_n "checking for library containing gethostent... " >&6; }
if test "${ac_cv_search_gethostent+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostent ();
int
main ()
{
return gethostent ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' nsl; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_gethostent=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_gethostent+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_gethostent+set}" = set; then :

else
  ac_cv_search_gethostent=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
$as_echo "$ac_cv_search_gethostent" >&6; }
ac_res=$ac_cv_search_gethostent
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi

ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
if test "x$ac_cv_func_openlog" = x""yes; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
$as_echo_n "checking for library containing openlog... " >&6; }
if test "${ac_cv_search_openlog+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char openlog ();
int
main ()
{
return openlog ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' gen; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_openlog=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_openlog+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_openlog+set}" = set; then :

else
  ac_cv_search_openlog=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
$as_echo "$ac_cv_search_openlog" >&6; }
ac_res=$ac_cv_search_openlog
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
$as_echo_n "checking for library containing openlog... " >&6; }
if test "${ac_cv_search_openlog+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char openlog ();
int
main ()
{
return openlog ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' syslog; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_openlog=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_openlog+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_openlog+set}" = set; then :

else
  ac_cv_search_openlog=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
$as_echo "$ac_cv_search_openlog" >&6; }
ac_res=$ac_cv_search_openlog
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
$as_echo_n "checking for library containing MD5Init... " >&6; }
if test "${ac_cv_search_MD5Init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char MD5Init ();
int
main ()
{
return MD5Init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' md5 md; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_MD5Init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_MD5Init+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_MD5Init+set}" = set; then :

else
  ac_cv_search_MD5Init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
$as_echo "$ac_cv_search_MD5Init" >&6; }
ac_res=$ac_cv_search_MD5Init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

for ac_func in MD5Init
do :
  ac_fn_c_check_func "$LINENO" "MD5Init" "ac_cv_func_MD5Init"
if test "x$ac_cv_func_MD5Init" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MD5INIT 1
_ACEOF

fi
done



    NTP_ORIG_LIBS="$LIBS"

# Check whether --with-lineeditlibs was given.
if test "${with_lineeditlibs+set}" = set; then :
  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
else
  use_lineeditlibs="edit,editline"
fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
$as_echo_n "checking line editing libraries... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
$as_echo "$use_lineeditlibs" >&6; }
    case "$use_lineeditlibs" in
     no)
	ntp_lib_lineedit=no
	;;
     *)
	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
	    for term_lib in "" termcap curses ncurses; do
		case "$term_lib" in
		 '')
		    TRY_LIB="-l$lineedit_lib"
		    ;;
		 *) TRY_LIB="-l$lineedit_lib -l$term_lib"
		esac	# $term_lib
		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char readline ();
int
main ()
{
return readline ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		case "$ntp_lib_lineedit" in
		 '')
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		    ;;
		 *)
		    # Use readline()
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
		    break
		esac		# $ntp_lib_lineedit
		case "$term_lib" in
		 '')
		    # do not try el_gets without a terminal library
		    ;;
		 *)
		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char el_gets ();
int
main ()
{
return el_gets ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		    case "$ntp_lib_lineedit" in
		     '')
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			;;
		     *) # Use el_gets()
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			break
			;;
		    esac	# $ntp_lib_lineedit
		esac		# $term_lib
	    done
	    case "$ntp_lib_lineedit" in
	     '') ;;
	     *)  break ;;
	    esac
	done
	LIBS="$NTP_ORIG_LIBS"
	;;
    esac	# $use_lineeditlibs

    case "$ntp_lib_lineedit" in
     '')
	ntp_lib_lineedit="no"
	;;
     no)
	;;
     *)
	EDITLINE_LIBS="$ntp_lib_lineedit"

	;;
    esac	# $ntp_lib_lineedit

    case "$ntp_lib_lineedit" in
     no)
	;;
     *)
	        	for ac_header in readline.h readline/readline.h histedit.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	for ac_header in history.h readline/history.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
$as_echo_n "checking whether readline supports history... " >&6; }

	ntp_lib_lineedit_history="no"
	ORIG_LIBS="$LIBS"
	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char add_history ();
int
main ()
{
return add_history ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit_history="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LIBS="$ORIG_LIBS"

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
$as_echo "$ntp_lib_lineedit_history" >&6; }

	case "$ntp_lib_lineedit_history" in
	 yes)

$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h

	esac	# $ntp_lib_lineedit_history
    esac	# $ntp_lib_lineedit
            $as_unset NTP_ORIG_LIBS TRY_LIB use_lineeditlibs



case "$host" in
 *-*-*linux*) ;;
 *-*-osf4*) ;;
 *-*-osf5*) ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lrt" >&5
$as_echo_n "checking for sched_setscheduler in -lrt... " >&6; }
if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_setscheduler ();
int
main ()
{
return sched_setscheduler ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rt_sched_setscheduler=yes
else
  ac_cv_lib_rt_sched_setscheduler=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_setscheduler" >&5
$as_echo "$ac_cv_lib_rt_sched_setscheduler" >&6; }
if test "x$ac_cv_lib_rt_sched_setscheduler" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBRT 1
_ACEOF

  LIBS="-lrt $LIBS"

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lposix4" >&5
$as_echo_n "checking for sched_setscheduler in -lposix4... " >&6; }
if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lposix4  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_setscheduler ();
int
main ()
{
return sched_setscheduler ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_posix4_sched_setscheduler=yes
else
  ac_cv_lib_posix4_sched_setscheduler=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
$as_echo "$ac_cv_lib_posix4_sched_setscheduler" >&6; }
if test "x$ac_cv_lib_posix4_sched_setscheduler" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPOSIX4 1
_ACEOF

  LIBS="-lposix4 $LIBS"

fi

fi

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
$as_echo_n "checking for library containing setsockopt... " >&6; }
if test "${ac_cv_search_setsockopt+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char setsockopt ();
int
main ()
{
return setsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' socket xnet; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_setsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_setsockopt+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_setsockopt+set}" = set; then :

else
  ac_cv_search_setsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
$as_echo "$ac_cv_search_setsockopt" >&6; }
ac_res=$ac_cv_search_setsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
$as_echo_n "checking for library containing res_init... " >&6; }
if test "${ac_cv_search_res_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char res_init ();
int
main ()
{
return res_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_res_init+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_res_init+set}" = set; then :

else
  ac_cv_search_res_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
$as_echo "$ac_cv_search_res_init" >&6; }
ac_res=$ac_cv_search_res_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

for ac_func in res_init __res_init
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

for ac_header in bstring.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
if test "x$ac_cv_header_bstring_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_BSTRING_H 1
_ACEOF

fi

done

ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
if test "x$ac_cv_header_dns_sd_h" = x""yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceRegister in -ldns_sd" >&5
$as_echo_n "checking for DNSServiceRegister in -ldns_sd... " >&6; }
if test "${ac_cv_lib_dns_sd_DNSServiceRegister+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldns_sd  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char DNSServiceRegister ();
int
main ()
{
return DNSServiceRegister ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dns_sd_DNSServiceRegister=yes
else
  ac_cv_lib_dns_sd_DNSServiceRegister=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5
$as_echo "$ac_cv_lib_dns_sd_DNSServiceRegister" >&6; }
if test "x$ac_cv_lib_dns_sd_DNSServiceRegister" = x""yes; then :

$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h

fi

fi


case "$ac_cv_lib_dns_sd_DNSServiceRegister" in
 yes) LIBS="-ldns_sd $LIBS" ;;
esac
for ac_header in errno.h fcntl.h ieeefp.h kvm.h math.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in md5.h
do :
  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

"
if test "x$ac_cv_header_md5_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MD5_H 1
_ACEOF

fi

done

for ac_header in memory.h netdb.h poll.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in sched.h sgtty.h stdlib.h string.h termio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in termios.h timepps.h timex.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


case "$host" in
 *-*-aix*)
    for ac_header in utmpx.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
if test "x$ac_cv_header_utmpx_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMPX_H 1
_ACEOF

fi

done

    case "$ac_cv_header_utmpx_h" in
     yes) ;;
     *) for ac_header in utmp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
if test "x$ac_cv_header_utmp_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMP_H 1
_ACEOF

fi

done
 ;;
    esac
    ;;
 *) for ac_header in utmp.h utmpx.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done
 ;;
esac

#
# On Suns only (so far) getpass() truncates the typed password to 8
# characters, but getpassphrase() allows up to 257.  Most systems'
# getpass() does not truncate, at least not so as to affect ntpq and
# ntpdc password prompts.
#
# So check for getpassphrase(), but only on Sun operating systems.
#

case "$host" in
 *-*-sunos*|*-*-solaris*)
    for ac_func in getpassphrase
do :
  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
if test "x$ac_cv_func_getpassphrase" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETPASSPHRASE 1
_ACEOF

fi
done

esac

for ac_header in arpa/nameser.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
if test "x$ac_cv_header_arpa_nameser_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ARPA_NAMESER_H 1
_ACEOF

fi

done

for ac_header in sys/socket.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SOCKET_H 1
_ACEOF

fi

done

for ac_header in net/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

"
if test "x$ac_cv_header_net_if_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_H 1
_ACEOF

fi

done

for ac_header in net/if6.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
if test "x$ac_cv_header_net_if6_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF6_H 1
_ACEOF

fi

done

for ac_header in net/route.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>

"
if test "x$ac_cv_header_net_route_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_ROUTE_H 1
_ACEOF

fi

done

for ac_header in netinet/in_system.h netinet/in_systm.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in netinet/in.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NETINET_IN_H 1
_ACEOF

fi

done

for ac_header in netinet/ip.h
do :
  ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#if HAVE_NETINET_IN_SYSTM_H
#include <netinet/in_systm.h>
#endif

"
if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NETINET_IP_H 1
_ACEOF

fi

done


# Check for IPTOS_PREC
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY" >&5
$as_echo_n "checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY... " >&6; }
if test "${ac_cv_ip_tos+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#if HAVE_SYS_TYPES_H
		#include <sys/types.h>
		#endif
		#if HAVE_NETINET_IP_H
		#include <netinet/in.h>
		#include <netinet/ip.h>
		#endif
		#if defined(IPPROTO_IP) && defined(IP_TOS) && defined(IPTOS_LOWDELAY)
		  yes
		#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ac_cv_ip_tos=yes
else
  ac_cv_ip_tos=no

fi
rm -f conftest*



fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ip_tos" >&5
$as_echo "$ac_cv_ip_tos" >&6; }

case "$ac_cv_ip_tos" in
 yes)

$as_echo "#define HAVE_IPTOS_SUPPORT 1" >>confdefs.h

esac

for ac_header in netinfo/ni.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
if test "x$ac_cv_header_netinfo_ni_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NETINFO_NI_H 1
_ACEOF

$as_echo "#define HAVE_NETINFO 1" >>confdefs.h

fi

done

for ac_header in sun/audioio.h sys/audioio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in sys/clkdefs.h sys/file.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

case "$host" in
 *-*-sunos4*) ;;
 *) for ac_header in sys/ioctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_IOCTL_H 1
_ACEOF

fi

done

    ;;
esac
for ac_header in sys/ipc.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_IPC_H 1
_ACEOF

fi

done

for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# HMS: Check sys/proc.h and sys/resource.h after some others
for ac_header in sys/ppstime.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/ppstime.h" "ac_cv_header_sys_ppstime_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ppstime_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PPSTIME_H 1
_ACEOF

fi

done

case "$ac_cv_header_sched_h" in
 yes) ;;
 *) for ac_header in sys/sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sched_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SCHED_H 1
_ACEOF

fi

done
 ;;
esac
case "$host" in
 *-*-sco*)
    for ac_header in sys/sio.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/sio.h" "ac_cv_header_sys_sio_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sio_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SIO_H 1
_ACEOF

fi

done

    ;;
esac
# HMS: Check sys/shm.h after some others
for ac_header in sys/select.h sys/signal.h sys/sockio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# HMS: Checked sys/socket.h earlier
case "$host" in
 *-*-netbsd*) ;;
 *) for ac_header in machine/soundcard.h sys/soundcard.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ;;
esac
for ac_header in sys/stat.h sys/stream.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/systune.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in sys/termios.h sys/time.h sys/signal.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#if HAVE_ERRNO_H
# include <errno.h>
#endif
#include <sys/timepps.h>
#ifdef PPS_API_VERS_1
yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  for ac_header in sys/timepps.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "#if HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#if HAVE_ERRNO_H
# include <errno.h>
#endif

"
if test "x$ac_cv_header_sys_timepps_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEPPS_H 1
_ACEOF

fi

done


fi
rm -f conftest*

for ac_header in sys/timers.h sys/tpro.h sys/types.h sys/wait.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if test "${ac_cv_header_time+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_time=yes
else
  ac_cv_header_time=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h

fi

case "$host" in
*-convex-*)
  for ac_header in /sys/sync/queue.h /sys/sync/sema.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

  ;;
*-*-bsdi*)
  for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

  ;;
esac

case "$host" in
 *-*-*linux*)
    for ac_func in __adjtimex __ntp_gettime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac
case "$ac_cv_func___adjtimex" in
 yes) ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
$as_echo_n "checking for nlist in -lelf... " >&6; }
if test "${ac_cv_lib_elf_nlist+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelf  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
int
main ()
{
return nlist ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_elf_nlist=yes
else
  ac_cv_lib_elf_nlist=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
$as_echo "$ac_cv_lib_elf_nlist" >&6; }
if test "x$ac_cv_lib_elf_nlist" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBELF 1
_ACEOF

  LIBS="-lelf $LIBS"

fi
	        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkvm" >&5
$as_echo_n "checking for main in -lkvm... " >&6; }
if test "${ac_cv_lib_kvm_main+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lkvm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_kvm_main=yes
else
  ac_cv_lib_kvm_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_main" >&5
$as_echo "$ac_cv_lib_kvm_main" >&6; }
if test "x$ac_cv_lib_kvm_main" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBKVM 1
_ACEOF

  LIBS="-lkvm $LIBS"

fi
		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lld" >&5
$as_echo_n "checking for nlist in -lld... " >&6; }
if test "${ac_cv_lib_ld_nlist+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
int
main ()
{
return nlist ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ld_nlist=yes
else
  ac_cv_lib_ld_nlist=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ld_nlist" >&5
$as_echo "$ac_cv_lib_ld_nlist" >&6; }
if test "x$ac_cv_lib_ld_nlist" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLD 1
_ACEOF

  LIBS="-lld $LIBS"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lmld" >&5
$as_echo_n "checking for nlist in -lmld... " >&6; }
if test "${ac_cv_lib_mld_nlist+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
int
main ()
{
return nlist ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_mld_nlist=yes
else
  ac_cv_lib_mld_nlist=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mld_nlist" >&5
$as_echo "$ac_cv_lib_mld_nlist" >&6; }
if test "x$ac_cv_lib_mld_nlist" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBMLD 1
_ACEOF

  LIBS="-lmld $LIBS"

fi

    ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
if test "x$ac_cv_header_nlist_h" = x""yes; then :

$as_echo "#define NLIST_STRUCT 1" >>confdefs.h

     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
$as_echo_n "checking for n_un in struct nlist... " >&6; }
if test "${ac_cv_struct_nlist_n_un+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <nlist.h>
int
main ()
{
struct nlist n; n.n_un.n_name = 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_nlist_n_un=yes
else
  ac_cv_struct_nlist_n_un=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_nlist_n_un" >&5
$as_echo "$ac_cv_struct_nlist_n_un" >&6; }
     if test $ac_cv_struct_nlist_n_un = yes; then

$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h

     fi

fi

    ;;
esac


for ac_header in sys/proc.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_TIME_H
# include <sys/time.h>
#endif

"
if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PROC_H 1
_ACEOF

fi

done


for ac_header in sys/resource.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if HAVE_SYS_TIME_H
# include <sys/time.h>
#endif

"
if test "x$ac_cv_header_sys_resource_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_RESOURCE_H 1
_ACEOF

fi

done


for ac_header in sys/shm.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_IPC_H
# include <sys/ipc.h>
#endif

"
if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SHM_H 1
_ACEOF

fi

done


for ac_header in sys/timex.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "#if HAVE_SYS_TIME_H
# include <sys/time.h>
#endif

"
if test "x$ac_cv_header_sys_timex_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEX_H 1
_ACEOF

fi

done


for ac_header in resolv.h
do :
  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#if HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif

"
if test "x$ac_cv_header_resolv_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RESOLV_H 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic volatile support" >&5
$as_echo_n "checking for basic volatile support... " >&6; }
if test "${ac_cv_c_volatile+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

volatile int x;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_volatile=yes
else
  ac_cv_c_volatile=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
$as_echo "$ac_cv_c_volatile" >&6; }
case "$ac_cv_c_volatile" in
 yes)
    ;;
 *)
$as_echo "#define volatile /**/" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if test "${ac_cv_c_const+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi

 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if test "${ac_cv_c_bigendian+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>

int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
		#include <sys/param.h>

int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;

int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)

$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h

     ;; #(
   *)
     as_fn_error "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
if test "${ac_cv_type_signal+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <signal.h>

int
main ()
{
return *(signal (0, 0)) (0) == 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_signal=int
else
  ac_cv_type_signal=void
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }

cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
_ACEOF


ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
if test "x$ac_cv_type_off_t" = x""yes; then :

else

cat >>confdefs.h <<_ACEOF
#define off_t long int
_ACEOF

fi

ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = x""yes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi

ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
if test "x$ac_cv_type_time_t" = x""yes; then :

else

cat >>confdefs.h <<_ACEOF
#define time_t long
_ACEOF

fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
$as_echo_n "checking size of time_t... " >&6; }
if test "${ac_cv_sizeof_time_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_time_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (time_t)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_time_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
$as_echo "$ac_cv_sizeof_time_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
_ACEOF


ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if test "${ac_cv_struct_tm+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>

int
main ()
{
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_tm=time.h
else
  ac_cv_struct_tm=sys/time.h
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then

$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t" >&5
$as_echo_n "checking for u_int8_t... " >&6; }
if test "${ac_cv_type_u_int8_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
int
main ()
{
u_int8_t len = 42; return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_u_int8_t=yes
else
  ac_cv_type_u_int8_t=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5
$as_echo "$ac_cv_type_u_int8_t" >&6; }
if test $ac_cv_type_u_int8_t = yes; then

$as_echo "#define HAVE_TYPE_U_INT8_T 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t" >&5
$as_echo_n "checking for u_int64_t... " >&6; }
if test "${ac_cv_type_u_int64_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
int
main ()
{
u_int64_t len = 42; return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_u_int64_t=yes
else
  ac_cv_type_u_int64_t=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5
$as_echo "$ac_cv_type_u_int64_t" >&6; }
if test $ac_cv_type_u_int64_t = yes; then

$as_echo "#define HAVE_TYPE_U_INT64_T 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
$as_echo_n "checking for a fallback value for HZ... " >&6; }
if test "${ac_cv_var_default_hz+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_var_default_hz=100
case "$host" in
 alpha*-dec-osf4*|alpha*-dec-osf5*)
    ac_cv_var_default_hz=1024
    ;;
 mips-dec-ultrix4*)
    ac_cv_var_default_hz=256
    ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_default_hz" >&5
$as_echo "$ac_cv_var_default_hz" >&6; }

cat >>confdefs.h <<_ACEOF
#define DEFAULT_HZ $ac_cv_var_default_hz
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
if test "${ac_cv_var_override_hz+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_var_override_hz=no
case "$host" in
 alpha*-dec-osf4*|alpha*-dec-osf5*)
    ac_cv_var_override_hz=yes
    ;;
 mips-dec-ultrix4*)
    ac_cv_var_override_hz=yes
    ;;
 *-*-freebsd*)
    ac_cv_var_override_hz=yes
    ;;
 *-*-sunos4*)
    ac_cv_var_override_hz=yes
    ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_override_hz" >&5
$as_echo "$ac_cv_var_override_hz" >&6; }
case "$ac_cv_var_override_hz" in
 yes)

$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h

    ;;
esac



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
$as_echo_n "checking for struct rt_msghdr... " >&6; }
if test "${ac_cv_struct_rt_msghdr+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
#include <net/route.h>
int
main ()
{
struct rt_msghdr p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_rt_msghdr=yes
else
  ac_cv_struct_rt_msghdr=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rt_msghdr" >&5
$as_echo "$ac_cv_struct_rt_msghdr" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
$as_echo_n "checking for struct rtattr... " >&6; }
if test "${ac_cv_struct_rtattr+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <linux/rtnetlink.h>
int
main ()
{
struct rtattr p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_rtattr=yes
else
  ac_cv_struct_rtattr=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rtattr" >&5
$as_echo "$ac_cv_struct_rtattr" >&6; }

if test $ac_cv_struct_rt_msghdr = yes -o $ac_cv_struct_rtattr = yes; then

$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h

    if test $ac_cv_struct_rtattr = yes; then

$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h

    fi
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <signal.h>
int
main ()
{
struct sigaction act; act.sa_sigaction = 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_sigaction_has_sa_sigaction=yes
else
  ac_cv_struct_sigaction_has_sa_sigaction=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5
$as_echo "$ac_cv_struct_sigaction_has_sa_sigaction" >&6; }
if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then

$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
$as_echo_n "checking for struct ppsclockev... " >&6; }
if test "${ac_cv_struct_ppsclockev+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#ifdef HAVE_SYS_TERMIOS_H
# include <sys/termios.h>
#endif
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#ifdef HAVE_SYS_PPSCLOCK_H
# include <sys/ppsclock.h>
#endif
int
main ()
{

extern struct ppsclockev *pce;
return pce->serial;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_ppsclockev=yes
else
  ac_cv_struct_ppsclockev=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ppsclockev" >&5
$as_echo "$ac_cv_struct_ppsclockev" >&6; }
if test $ac_cv_struct_ppsclockev = yes; then

$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
if test "${ntp_cv_sockaddr_storage+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif

int
main ()
{

		struct sockaddr_storage n;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_sockaddr_storage="yes"
else
  ntp_cv_sockaddr_storage="no"

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
$as_echo "$ntp_cv_sockaddr_storage" >&6; }
case "$ntp_cv_sockaddr_storage" in
 yes)

$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_family" >&5
$as_echo_n "checking for sockaddr_storage.ss_family... " >&6; }
if test "${ntp_cv_have_ss_family+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif

int
main ()
{

		struct sockaddr_storage s;
		s.ss_family = 1;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have_ss_family="yes"
else
  ntp_cv_have_ss_family="no"

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_family" >&5
$as_echo "$ntp_cv_have_ss_family" >&6; }

case "$ntp_cv_have_ss_family" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
if test "${ntp_cv_have___ss_family+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_SYS_TYPES_H
		    # include <sys/types.h>
		    #endif
		    #ifdef HAVE_SYS_SOCKET_H
		    # include <sys/socket.h>
		    #endif
		    #ifdef HAVE_NETINET_IN_H
		    # include <netinet/in.h>
		    #endif

int
main ()
{

		    struct sockaddr_storage s;
		    s.__ss_family = 1;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have___ss_family="yes"
else
  ntp_cv_have___ss_family="no"

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
$as_echo "$ntp_cv_have___ss_family" >&6; }
    case "$ntp_cv_have___ss_family" in
     yes)

$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h

    esac
esac



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_len" >&5
$as_echo_n "checking for sockaddr_storage.ss_len... " >&6; }
if test "${ntp_cv_have_ss_len+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif

int
main ()
{

		struct sockaddr_storage s;
		s.ss_len = 1;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have_ss_len="yes"
else
  ntp_cv_have_ss_len="no"

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_len" >&5
$as_echo "$ntp_cv_have_ss_len" >&6; }

case "$ntp_cv_have_ss_len" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_len" >&5
$as_echo_n "checking for sockaddr_storage.__ss_len... " >&6; }
if test "${ntp_cv_have___ss_len+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_SYS_TYPES_H
		    # include <sys/types.h>
		    #endif
		    #ifdef HAVE_SYS_SOCKET_H
		    # include <sys/socket.h>
		    #endif
		    #ifdef HAVE_NETINET_IN_H
		    # include <netinet/in.h>
		    #endif

int
main ()
{

		    struct sockaddr_storage s;
		    s.__ss_len = 1;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have___ss_len="yes"
else
  ntp_cv_have___ss_len="no"

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_len" >&5
$as_echo "$ntp_cv_have___ss_len" >&6; }
    case "$ntp_cv_have___ss_len" in
     yes)

$as_echo "#define HAVE___SS_LEN_IN_SS 1" >>confdefs.h

    esac
esac



#
# Look for in_port_t.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
$as_echo_n "checking for in_port_t... " >&6; }
if test "${isc_cv_have_in_port_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <netinet/in.h>

int
main ()
{

		in_port_t port = 25;
		return (0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_in_port_t=yes
else
  isc_cv_have_in_port_t=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
$as_echo "$isc_cv_have_in_port_t" >&6; }
case "$isc_cv_have_in_port_t" in
 no)

$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h

esac

case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
  *yes*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
$as_echo_n "checking for struct snd_size... " >&6; }
if test "${ac_cv_struct_snd_size+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_MACHINE_SOUNDCARD_H
# include <machine/soundcard.h>
#endif
#ifdef HAVE_SYS_SOUNDCARD_H
# include <sys/soundcard.h>
#endif
int
main ()
{

extern struct snd_size *ss;
return ss->rec_size;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_snd_size=yes
else
  ac_cv_struct_snd_size=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_snd_size" >&5
$as_echo "$ac_cv_struct_snd_size" >&6; }
    case "$ac_cv_struct_snd_size" in
     yes)
$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
 ;;
    esac
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
$as_echo_n "checking struct clockinfo for hz... " >&6; }
if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/time.h>
int
main ()
{

extern struct clockinfo *pc;
return pc->hz;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_clockinfo_has_hz=yes
else
  ac_cv_struct_clockinfo_has_hz=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ac_cv_struct_clockinfo_has_hz" >&6; }
if test $ac_cv_struct_clockinfo_has_hz = yes; then

$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/time.h>
int
main ()
{

extern struct clockinfo *pc;
return pc->tickadj;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_clockinfo_has_tickadj=yes
else
  ac_cv_struct_clockinfo_has_tickadj=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_clockinfo_has_tickadj" >&5
$as_echo "$ac_cv_struct_clockinfo_has_tickadj" >&6; }
if test $ac_cv_struct_clockinfo_has_tickadj = yes; then

$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
$as_echo_n "checking for struct timespec... " >&6; }
if test "${ac_cv_struct_timespec+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/time.h>
/* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */
#ifdef HAVE_ERRNO_H
# include <errno.h>
#endif
#ifdef HAVE_SYS_TIMEPPS_H
# define FRAC 4294967296
# include <sys/timepps.h>
#endif
int
main ()
{
struct timespec n;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_timespec=yes
else
  ac_cv_struct_timespec=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timespec" >&5
$as_echo "$ac_cv_struct_timespec" >&6; }
if test $ac_cv_struct_timespec = yes; then

$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
$as_echo_n "checking for struct ntptimeval... " >&6; }
if test "${ac_cv_struct_ntptimeval+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/time.h>
#include <sys/timex.h>
int
main ()
{
struct ntptimeval n;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_ntptimeval=yes
else
  ac_cv_struct_ntptimeval=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ntptimeval" >&5
$as_echo "$ac_cv_struct_ntptimeval" >&6; }
if test $ac_cv_struct_ntptimeval = yes; then

$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h

fi

ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#else
# ifdef HAVE_TIME_H
# include <time.h>
# endif
#endif
#ifdef HAVE_SYS_TIMEX_H
#include <sys/timex.h>
#else
# ifdef HAVE_TIMEX_H
# include <timex.h>
# endif
#endif
"
if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
_ACEOF


fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if test "${ac_cv_c_inline+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }

case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac


case "$ac_cv_c_inline" in
 '')
    ;;
 *)

$as_echo "#define HAVE_INLINE 1" >>confdefs.h


esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
$as_echo_n "checking whether char is unsigned... " >&6; }
if test "${ac_cv_c_char_unsigned+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_char_unsigned=no
else
  ac_cv_c_char_unsigned=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
$as_echo "$ac_cv_c_char_unsigned" >&6; }
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h

fi
		# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
$as_echo_n "checking size of signed char... " >&6; }
if test "${ac_cv_sizeof_signed_char+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_signed_char" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (signed char)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_signed_char=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
$as_echo "$ac_cv_sizeof_signed_char" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if test "${ac_cv_sizeof_int+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (int)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if test "${ac_cv_sizeof_long+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (long)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF



ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
if test "x$ac_cv_type_s_char" = x""yes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_S_CHAR 1
_ACEOF


fi

case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
 *yes)
    # We have a typedef for s_char.  Might as well believe it...
    ;;
 no0no)
    # We have signed chars, can't say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 no1no)
    # We have signed chars, can say 'signed char', no s_char typedef.
    $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 yes0no)
    # We have unsigned chars, can't say 'signed char', no s_char typedef.
    as_fn_error "No way to specify a signed character!" "$LINENO" 5
    ;;
 yes1no)
    # We have unsigned chars, can say 'signed char', no s_char typedef.
    $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
if test "${ac_cv_type_uid_t+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "uid_t" >/dev/null 2>&1; then :
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; }
if test $ac_cv_type_uid_t = no; then

$as_echo "#define uid_t int" >>confdefs.h


$as_echo "#define gid_t int" >>confdefs.h

fi


case "$host" in
 *-*-aix[456]*)
	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
	# IBM pulls its thumbs out long enough to implement clock_settime,
	# this conditional will need to change.  Maybe use AC_TRY_RUN
	# instead to try to set the time to itself and check errno.
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
$as_echo_n "checking for library containing clock_gettime... " >&6; }
if test "${ac_cv_search_clock_gettime+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char clock_gettime ();
int
main ()
{
return clock_gettime ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_clock_gettime=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_clock_gettime+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_clock_gettime+set}" = set; then :

else
  ac_cv_search_clock_gettime=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
$as_echo "$ac_cv_search_clock_gettime" >&6; }
ac_res=$ac_cv_search_clock_gettime
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

    for ac_func in clock_gettime clock_settime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac
for ac_func in daemon
do :
  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
if test "x$ac_cv_func_daemon" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DAEMON 1
_ACEOF

fi
done

for ac_func in finite
do :
  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
if test "x$ac_cv_func_finite" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FINITE 1
_ACEOF

else
  for ac_func in isfinite
do :
  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
if test "x$ac_cv_func_isfinite" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ISFINITE 1
_ACEOF

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
$as_echo_n "checking for isfinite with <math.h>... " >&6; }
    _libs=$LIBS
    LIBS="$LIBS -lm"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <math.h>
int
main ()
{
float f = 0.0; isfinite(f)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
      $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LIBS=$_libs
fi
done

fi
done

for ac_func in getbootfile getclock getdtablesize
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


# Check whether --enable-getifaddrs was given.
if test "${enable_getifaddrs+set}" = set; then :
  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
else
  want_getifaddrs="yes"
fi


case $want_getifaddrs in
yes|glibc)
#
# Do we have getifaddrs() ?
#
case $host in
*-*linux*)
	# Some recent versions of glibc support getifaddrs() which does not
	# provide AF_INET6 addresses while the function provided by the USAGI
	# project handles the AF_INET6 case correctly.  We need to avoid
	# using the former but prefer the latter unless overridden by
	# --enable-getifaddrs=glibc.
	if test $want_getifaddrs = glibc
	then
		for ac_func in getifaddrs
do :
  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF

fi
done

	else
		save_LIBS="$LIBS"
		LIBS="-L/usr/local/v6/lib $LIBS"
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs in -linet6" >&5
$as_echo_n "checking for getifaddrs in -linet6... " >&6; }
if test "${ac_cv_lib_inet6_getifaddrs+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-linet6  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getifaddrs ();
int
main ()
{
return getifaddrs ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_inet6_getifaddrs=yes
else
  ac_cv_lib_inet6_getifaddrs=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getifaddrs" >&5
$as_echo "$ac_cv_lib_inet6_getifaddrs" >&6; }
if test "x$ac_cv_lib_inet6_getifaddrs" = x""yes; then :
  LIBS="$LIBS -linet6"
			$as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h

else
  LIBS=${save_LIBS}
fi

	fi
	;;
*)
	for ac_func in getifaddrs
do :
  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF

fi
done

	;;
esac
;;
no)
;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
if test "${ac_cv_func_getsockname_arg2+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "${ac_cv_func_getsockname_socklen_type+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   for ac_cv_func_getsockname_arg2 in 'struct sockaddr *' 'void *'; do
  for ac_cv_func_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern getsockname (int, $ac_cv_func_getsockname_arg2, $ac_cv_func_getsockname_socklen_type *);
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
      ac_not_found=no ; break 2
else
  ac_not_found=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   done
  done

fi

fi
if test "$ac_not_found" = yes; then
 ac_cv_func_getsockname_socklen_type='socklen_t'
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_socklen_type" >&5
$as_echo "$ac_cv_func_getsockname_socklen_type" >&6; }

cat >>confdefs.h <<_ACEOF
#define GETSOCKNAME_SOCKLEN_TYPE $ac_cv_func_getsockname_socklen_type
_ACEOF


for ac_func in getrusage
do :
  ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
if test "x$ac_cv_func_getrusage" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETRUSAGE 1
_ACEOF

fi
done

ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
if test "x$ac_cv_func_gettimeofday" = x""yes; then :

else

case "$host" in
  *-*-mpeix*) ac_cv_func_gettimeofday=yes
    ;;
esac
fi

case "$host" in
 *-pc-cygwin*)
    ;;
 *) for ac_func in getuid
do :
  ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
if test "x$ac_cv_func_getuid" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETUID 1
_ACEOF

fi
done

    ;;
esac
for ac_func in hstrerror
do :
  ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
if test "x$ac_cv_func_hstrerror" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_HSTRERROR 1
_ACEOF

fi
done


#
# Check for if_nametoindex() for IPv6 scoped addresses support
#
ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
if test "x$ac_cv_func_if_nametoindex" = x""yes; then :
  ac_cv_have_if_nametoindex=yes
else
  ac_cv_have_if_nametoindex=no
fi

case $ac_cv_have_if_nametoindex in
 no)
	case "$host" in
  	*-hp-hpux*)
  		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5
$as_echo_n "checking for if_nametoindex in -lipv6... " >&6; }
if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lipv6  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char if_nametoindex ();
int
main ()
{
return if_nametoindex ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ipv6_if_nametoindex=yes
else
  ac_cv_lib_ipv6_if_nametoindex=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
$as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; }
if test "x$ac_cv_lib_ipv6_if_nametoindex" = x""yes; then :
  ac_cv_have_if_nametoindex=yes
				LIBS="-lipv6 $LIBS"
fi

  	;;
	esac
esac
case $ac_cv_have_if_nametoindex in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h

	;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
$as_echo_n "checking for library containing inet_ntop... " >&6; }
if test "${ac_cv_search_inet_ntop+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_ntop ();
int
main ()
{
return inet_ntop ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_ntop=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if test "${ac_cv_search_inet_ntop+set}" = set; then :
  break
fi
done
if test "${ac_cv_search_inet_ntop+set}" = set; then :

else
  ac_cv_search_inet_ntop=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
$as_echo "$ac_cv_search_inet_ntop" >&6; }
ac_res=$ac_cv_search_inet_ntop
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
if test "x$ac_cv_func_inet_ntop" = x""yes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
if test "x$ac_cv_func_inet_pton" = x""yes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h

fi

case "$ac_cv_header_kvm_h" in
 yes)
    for ac_func in kvm_open
do :
  ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
if test "x$ac_cv_func_kvm_open" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_KVM_OPEN 1
_ACEOF

fi
done

    ;;
esac
for ac_func in memcpy memmove memset
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

case "$host" in
 *-*-sco3.2v5.0.*)
    # Just stubs.  Idiots.
    ;;
 *) for ac_func in mkstemp
do :
  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
if test "x$ac_cv_func_mkstemp" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MKSTEMP 1
_ACEOF

fi
done

    ;;
esac
for ac_func in mktime
do :
  ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
if test "x$ac_cv_func_mktime" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MKTIME 1
_ACEOF

fi
done

case "$host" in
 *-*-aix[456]*)
    # Just a stub.  Idiots.
    ;;
 *-*-irix[45]*)
    # Just a stub in "old" Irix.  Idiots.
    ;;
 *-*-*linux*)
    # there, but more trouble than it is worth for now (resolver problems)
    ;;
 *-*-qnx*)
    # Apparently there but not working in QNX.  Idiots?
    ;;
 *-*-sco3.2v5.0.*)
    # Just a stub.  Idiots.
    ;;
 alpha*-dec-osf4*|alpha*-dec-osf5*)
    # mlockall is there, as a #define calling memlk via <sys/mman.h>
    # Not easy to test for - cheat.
    for ac_func in memlk
do :
  ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
if test "x$ac_cv_func_memlk" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MEMLK 1
_ACEOF
 ac_cv_func_mlockall='yes'
fi
done

    for ac_func in mlockall
do :
  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MLOCKALL 1
_ACEOF

fi
done

    ;;
 *) for ac_func in mlockall
do :
  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MLOCKALL 1
_ACEOF

fi
done

    ;;
esac
for ac_func in nice nlist
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

case "$host" in
 *-*-solaris2.6)
    # Broken...
    ;;
 *) for ac_func in ntp_adjtime ntp_gettime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac
for ac_func in plock pututline pututxline readlink recvmsg rtprio
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

case "$host" in
 *-*-aix[456]*)
    # Just a stub in AIX 4.  Idiots.
    ;;
 *-*-solaris2.5*)
    # Just stubs in solaris2.5.  Idiots.
    ;;
 *) for ac_func in sched_setscheduler
do :
  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
if test "x$ac_cv_func_sched_setscheduler" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_SETSCHEDULER 1
_ACEOF

fi
done

    ;;
esac
for ac_func in setlinebuf setpgid setpriority setsid
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

for ac_func in setrlimit
do :
  ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
if test "x$ac_cv_func_setrlimit" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETRLIMIT 1
_ACEOF

fi
done

for ac_func in settimeofday
do :
  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
if test "x$ac_cv_func_settimeofday" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETTIMEOFDAY 1
_ACEOF

else

case "$host" in
  *-*-mpeix*) ac_cv_func_settimeofday=yes
    ;;
esac
fi
done

for ac_func in setvbuf sigaction
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

for ac_func in snprintf strdup strerror strstr
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

for ac_func in timegm
do :
  ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
if test "x$ac_cv_func_timegm" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_TIMEGM 1
_ACEOF

fi
done

case "$host" in
 *-*-aix[456]*)
    # Just stubs.  Idiots.
    ;;
 *-*-netbsd1*)
    # Just stubs.  Idiots.
    ;;
 *-*-netbsdelf1*)
    # Just stubs.  Idiots.
    ;;
 *-*-openbsd*)
    # Just stubs.  Idiots.
    ;;
 *) for ac_func in timer_create timer_settime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac
case "$host" in
 *-pc-cygwin*)
    # I have no idea...
    ;;
 *) for ac_func in umask
do :
  ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
if test "x$ac_cv_func_umask" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UMASK 1
_ACEOF

fi
done

    ;;
esac
for ac_func in uname updwtmp updwtmpx vsnprintf vsprintf
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
eval as_val=\$$as_ac_var
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


###

# http://bugs.ntp.org/737
case "$ac_cv_func_recvmsg" in
 yes)
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
$as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
 if test "${ac_cv_struct_iovec_help+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
   for ac_cv_struct_iovec_help in '0' '1'; do
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#if $ac_cv_struct_iovec_help
#include <sys/uio.h>
#endif

void foo();
void foo() {
	ssize_t x;
	int s = 0;
	struct iovec iov;
	struct msghdr mh;
	int flags = 0;

	mh.msg_iov = &iov;
	x = recvmsg(s, &mh, flags);
}
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
    ac_worked=yes ; break 1
else
  ac_worked=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done

fi
    case "$ac_worked$ac_cv_struct_iovec_help" in
     yes1)

$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h

	ans=yes
	;;
     *) ans=no
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
    ;;
esac

case "$host" in
 *-*-sunos4*)

$as_echo "#define SPRINTF_CHAR 1" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/time.h>
int
main ()
{

gettimeofday((struct timeval*)0,(struct timezone*)0);
settimeofday((struct timeval*)0,(struct timezone*)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_func_Xettimeofday_nargs=2
else
  ac_cv_func_Xettimeofday_nargs=1
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_Xettimeofday_nargs" >&5
$as_echo "$ac_cv_func_Xettimeofday_nargs" >&6; }
if test $ac_cv_func_Xettimeofday_nargs = 1; then

$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
if test "${ac_cv_func_setpgrp_nargs+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif

int
main ()
{
setpgrp(0,0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_func_setpgrp_nargs=2
else
  ac_cv_func_setpgrp_nargs=0
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_nargs" >&5
$as_echo "$ac_cv_func_setpgrp_nargs" >&6; }
if test $ac_cv_func_setpgrp_nargs = 0; then

$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h

fi

save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -I$srcdir/include"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort()'s compare function and base" >&5
$as_echo_n "checking argument pointer type of qsort()'s compare function and base... " >&6; }
if test "${ac_cv_func_qsort_argtype+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "l_stdlib.h"

extern void *base;
extern sortfunc (const void *, const void *);
int sortfunc(a, b)
  const void *a;
  const void *b; { return 0; }

int
main ()
{

qsort(base, 2, sizeof(char *), sortfunc);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_func_qsort_argtype=void
else
  ac_cv_func_qsort_argtype=char
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
$as_echo "$ac_cv_func_qsort_argtype" >&6; }
case "$ac_cv_func_qsort_argtype" in
 void)

$as_echo "#define QSORT_USES_VOID_P 1" >>confdefs.h

    ;;
esac

CFLAGS=$save_CFLAGS

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
$as_echo_n "checking if we need to declare 'errno'... " >&6; }
if test "${ac_cv_decl_errno+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
int
main ()
{
errno = 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_decl_errno=no
else
  ac_cv_decl_errno=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_errno" >&5
$as_echo "$ac_cv_decl_errno" >&6; }
case "$ac_cv_decl_errno" in
 yes)
$as_echo "#define DECL_ERRNO 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
$as_echo_n "checking if we may declare 'h_errno'... " >&6; }
if test "${ac_cv_decl_h_errno+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif
int
main ()
{
extern int h_errno;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_decl_h_errno=yes
else
  ac_cv_decl_h_errno=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_h_errno" >&5
$as_echo "$ac_cv_decl_h_errno" >&6; }
case "$ac_cv_decl_h_errno" in
 yes)
$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'char *sys_errlist[]' is ok" >&5
$as_echo_n "checking if declaring 'char *sys_errlist[]' is ok... " >&6; }
if test "${ac_cv_decl_sys_errlist+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
int
main ()
{
extern char *sys_errlist[];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_decl_sys_errlist=yes
else
  ac_cv_decl_sys_errlist=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_sys_errlist" >&5
$as_echo "$ac_cv_decl_sys_errlist" >&6; }
case "$ac_cv_decl_sys_errlist" in
 yes)
$as_echo "#define CHAR_SYS_ERRLIST 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
if test "${ac_cv_decl_syscall+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif

int
main ()
{
extern int syscall (int, ...);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_decl_syscall=yes
else
  ac_cv_decl_syscall=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_syscall" >&5
$as_echo "$ac_cv_decl_syscall" >&6; }
case "$ac_cv_decl_syscall" in
 yes)
$as_echo "#define DECL_SYSCALL 1" >>confdefs.h
 ;;
esac

case "$host" in
 *-*-aix4.3.*)

$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
		# Needed for XLC under AIX 4.3.2
    ;;
 *-*-mpeix*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h


$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h


$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_SELECT_0 1" >>confdefs.h


$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h


$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h


$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h

    ;;
 *-*-osf[45]*)

$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h


$as_echo "#define DECL_STIME_1 1" >>confdefs.h

    ;;
 *-*-qnx*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h

    ;;
 *-*-riscos4*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h


$as_echo "#define DECL_BZERO_0 1" >>confdefs.h


$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h


$as_echo "#define DECL_IPC_0 1" >>confdefs.h


$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h


$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_RENAME_0 1" >>confdefs.h


$as_echo "#define DECL_SELECT_0 1" >>confdefs.h


$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h


$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h


$as_echo "#define DECL_STDIO_0 1" >>confdefs.h


$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h


$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h


$as_echo "#define DECL_TIME_0 1" >>confdefs.h


$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h


$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h

    ;;
 *-*-solaris2*)

$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h

    case "$host" in
     *-*-solaris2.4)

$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h

	;;
    esac
    ;;
 *-*-sunos4*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h


$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h


$as_echo "#define DECL_BZERO_0 1" >>confdefs.h


$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h


$as_echo "#define DECL_IPC_0 1" >>confdefs.h


$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h


$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_RENAME_0 1" >>confdefs.h


$as_echo "#define DECL_SELECT_0 1" >>confdefs.h


$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h


$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h


$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h

    case "`basename $ac_cv_prog_CC`" in
     acc*) ;;
     *)
$as_echo "#define DECL_STDIO_0 1" >>confdefs.h

	;;
    esac

$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h


$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h


$as_echo "#define DECL_TIME_0 1" >>confdefs.h


$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h


$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h


$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h


$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h

    ;;
 *-*-ultrix4*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h


$as_echo "#define DECL_BZERO_0 1" >>confdefs.h


$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h


$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h


$as_echo "#define DECL_IPC_0 1" >>confdefs.h


$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_NLIST_0 1" >>confdefs.h


$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h


$as_echo "#define DECL_SELECT_0 1" >>confdefs.h


$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h


$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h


$as_echo "#define DECL_STIME_0 1" >>confdefs.h


$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h


$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h

    ;;
esac

case "$host" in
 *-*-sco3.2*)

$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra room for SO_RCVBUF" >&5
$as_echo_n "checking if we need extra room for SO_RCVBUF... " >&6; }
if test "${ac_cv_var_rcvbuf_slop+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ans=no
case "$host" in
 *-*-hpux[567]*)
    ans=yes
    ;;
esac
ac_cv_var_rcvbuf_slop=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rcvbuf_slop" >&5
$as_echo "$ac_cv_var_rcvbuf_slop" >&6; }
case "$ac_cv_var_rcvbuf_slop" in
 yes)
$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
$as_echo_n "checking if we will open the broadcast socket... " >&6; }
if test "${ac_cv_var_open_bcast_socket+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ans=yes
case "$host" in
 *-*-domainos)
    ans=no
    ;;
esac
ac_cv_var_open_bcast_socket=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_open_bcast_socket" >&5
$as_echo "$ac_cv_var_open_bcast_socket" >&6; }
case "$ac_cv_var_open_bcast_socket" in
 yes)
$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the HPUX version of FindConfig()" >&5
$as_echo_n "checking if we want the HPUX version of FindConfig()... " >&6; }
if test "${ac_cv_var_hpux_findconfig+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ans=no
case "$host" in
 *-*-hpux*)
    ans=yes
    ;;
esac
ac_cv_var_hpux_findconfig=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_hpux_findconfig" >&5
$as_echo "$ac_cv_var_hpux_findconfig" >&6; }
case "$ac_cv_var_hpux_findconfig" in
 yes)
$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
$as_echo_n "checking if process groups are set with -pid... " >&6; }
if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case "$host" in
 *-*-hpux[567]*)
    ans=no
    ;;
 *-*-hpux*)
    ans=yes
    ;;
 *-*-*linux*)
    ans=yes
    ;;
 *-*-sunos3*)
    ans=yes
    ;;
 *-*-ultrix2*)
    ans=yes
    ;;
 *)
    ans=no
    ;;
esac
ac_cv_arg_setpgrp_negpid=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_arg_setpgrp_negpid" >&5
$as_echo "$ac_cv_arg_setpgrp_negpid" >&6; }
case "$ac_cv_arg_setpgrp_negpid" in
 yes)
$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
if test "${ntp_cv_func_ctty_for_f_setown+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-bsdi23*)
	    ans=yes
	    ;;
	 *-*-freebsd*)
	    ans=yes
	    ;;
	# NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
	# while later versions will fail a ioctl(TIOCSCTTY, 0) call in
	# some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
	# in $host may be followed by "aout", "ecoff", or "elf".
	 *-*-netbsd*a-z3.0-8*|*-*-netbsd*a-z0-2.*|*-*-netbsd*a-z3.99.0-7)
	    ans=yes
	    ;;
	 *-*-netbsd3.0-8*|*-*-netbsd0-2.*|*-*-netbsd3.99.0-7)
	    ans=yes
	    ;;
	 *-*-openbsd*)
	    ans=yes
	    ;;
	 *-*-osf*)
	    ans=yes
	    ;;
	 *-*-darwin*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	esac
	ntp_cv_func_ctty_for_f_setown=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
case "$ntp_cv_func_ctty_for_f_setown" in
 yes)

$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS fails to clear cached routes when more specific routes become available" >&5
$as_echo_n "checking if the OS fails to clear cached routes when more specific routes become available... " >&6; }
if test "${ac_cv_os_routeupdates+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case "$host" in
 *-*-netbsd*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac
ac_cv_os_routeupdates=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_routeupdates" >&5
$as_echo "$ac_cv_os_routeupdates" >&6; }
case "$ac_cv_os_routeupdates" in
 yes)
$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses" >&5
$as_echo_n "checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses... " >&6; }
if test "${ac_cv_os_wildcardreuse+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case "$host" in
 *-*-*linux*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac
ac_cv_os_wildcardreuse=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_wildcardreuse" >&5
$as_echo "$ac_cv_os_wildcardreuse" >&6; }
case "$ac_cv_os_wildcardreuse" in
 yes)
$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
 ;;
esac

ntp_warning='GRONK'
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
 yes*)
    ntp_warning=''
    ans='clock_settime()'
    ;;
 noyes*)
    ntp_warning='But clock_settime() would be better (if we had it)'
    ans='settimeofday()'
    ;;
 nonoyes)
    ntp_warning='Which is the worst of the three'
    ans='stime()'
    ;;
 *)
    case "$build" in
     $host) ntp_warning='Which leaves us with nothing to use!'
    ans=none
    ;;
esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ntp_warning" in
 '') ;;
 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a losing syscall()" >&5
$as_echo_n "checking if we have a losing syscall()... " >&6; }
if test "${ac_cv_var_syscall_bug+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case "$host" in
 *-*-solaris2.4*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac
ac_cv_var_syscall_bug=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_syscall_bug" >&5
$as_echo "$ac_cv_var_syscall_bug" >&6; }
case "$ac_cv_var_syscall_bug" in
 yes)
$as_echo "#define SYSCALL_BUG 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
$as_echo_n "checking for SIGIO... " >&6; }
if test "${ac_cv_hdr_def_sigio+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <signal.h>
#ifdef SIGIO
   yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ac_cv_hdr_def_sigio=yes
else
  ac_cv_hdr_def_sigio=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigio" >&5
$as_echo "$ac_cv_hdr_def_sigio" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use signalled IO" >&5
$as_echo_n "checking if we want to use signalled IO... " >&6; }
if test "${ac_cv_var_signalled_io+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ans=no
case "$ac_cv_hdr_def_sigio" in
 yes)
    ans=yes
    case "$host" in
     alpha*-dec-osf4*|alpha*-dec-osf5*)
        ans=no
        ;;
     *-convex-*)
        ans=no
        ;;
     *-dec-*)
        ans=no
        ;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
        ans=no
        ;;
     *-univel-sysv*)
        ans=no
	;;
     *-*-irix6*)
	ans=no
	;;
     *-*-freebsd*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
    esac
    ;;
esac
ac_cv_var_signalled_io=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_signalled_io" >&5
$as_echo "$ac_cv_var_signalled_io" >&6; }
case "$ac_cv_var_signalled_io" in
 yes)
$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
$as_echo_n "checking for SIGPOLL... " >&6; }
if test "${ac_cv_hdr_def_sigpoll+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <signal.h>
#ifdef SIGPOLL
  yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ac_cv_hdr_def_sigpoll=yes
else
  ac_cv_hdr_def_sigpoll=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigpoll" >&5
$as_echo "$ac_cv_hdr_def_sigpoll" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGSYS" >&5
$as_echo_n "checking for SIGSYS... " >&6; }
if test "${ac_cv_hdr_def_sigsys+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <signal.h>
#ifdef SIGSYS
  yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ac_cv_hdr_def_sigsys=yes
else
  ac_cv_hdr_def_sigsys=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigsys" >&5
$as_echo "$ac_cv_hdr_def_sigsys" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ans=no
case "$ac_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
        ans=no
        ;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
        ans=no
        ;;
     *-*-aix[456]*)
        ans=no
        ;;
     *-*-hpux*)
        ans=no
        ;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
        ans=no
        ;;
     *-*-qnx*)
        ans=no
        ;;
     *-*-sunos*)
	ans=no
	;;
     *-*-solaris*)
	ans=no
	;;
     *-*-ultrix*)
        ans=no
        ;;
     *-*-unicosmp*)
        ans=no
        ;;
     *) ans=yes
        ;;
    esac
    ;;
esac
ac_cv_var_use_udp_sigpoll=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_use_udp_sigpoll" >&5
$as_echo "$ac_cv_var_use_udp_sigpoll" >&6; }
case "$ac_cv_var_use_udp_sigpoll" in
 yes)
$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ans=no
case "$ac_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
        ans=no
        ;;
     vax-dec-bsd)
        ans=no
        ;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
        ans=no
        ;;
     *-*-aix[456]*)
	ans=no
	;;
     *-*-hpux*)
        ans=no
        ;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
        ans=no
        ;;
     *-*-sunos*)
	ans=no
	;;
     *-*-ultrix*)
        ans=no
        ;;
     *-*-qnx*)
        ans=no
        ;;
     *-*-unicosmp*)
        ans=no
        ;;
     *) ans=yes
        ;;
    esac
    ;;
esac
ac_cv_var_use_tty_sigpoll=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_use_tty_sigpoll" >&5
$as_echo "$ac_cv_var_use_tty_sigpoll" >&6; }
case "$ac_cv_var_use_tty_sigpoll" in
 yes)
$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
 ;;
esac

case "$ac_cv_header_sys_sio_h" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
$as_echo_n "checking sys/sio.h for TIOCDCDTIMESTAMP... " >&6; }
if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/sio.h>
#ifdef TIOCDCDTIMESTAMP
  yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ac_cv_hdr_def_tiocdcdtimestamp=yes
else
  ac_cv_hdr_def_tiocdcdtimestamp=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5
$as_echo "$ac_cv_hdr_def_tiocdcdtimestamp" >&6; }
    ;;
esac

case "$ac_cv_hdr_def_tiocdcdtimestamp" in
 yes)
    ac_cv_var_oncore_ok=yes
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nlist() values might require extra indirection" >&5
$as_echo_n "checking if nlist() values might require extra indirection... " >&6; }
if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ans=no
case "$host" in
 *-*-aix*)
    ans=yes
    ;;
esac
ac_cv_var_nlist_extra_indirection=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_extra_indirection" >&5
$as_echo "$ac_cv_var_nlist_extra_indirection" >&6; }
case "$ac_cv_var_nlist_extra_indirection" in
 yes)
$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
if test "${ac_cv_var_min_rec_tickadj+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ans=no
case "$host" in
 *-*-aix*)
    ans=40
    ;;
esac
ac_cv_var_min_rec_tickadj=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_min_rec_tickadj" >&5
$as_echo "$ac_cv_var_min_rec_tickadj" >&6; }
case "$ac_cv_var_min_rec_tickadj" in
 ''|no) ;;
 *)
cat >>confdefs.h <<_ACEOF
#define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
_ACEOF
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ans=no
case "$host" in
 i?86-*-*linux*)
    ans=yes
    ;;
 mips-sgi-irix*)
    ans=yes
    ;;
 i?86-*-freebsd[123].*)
    ;;
 i?86-*-freebsd*)
    ans=yes
    ;;
 *-*-unicosmp*)
    ans=yes
    ;;
esac
ac_cv_var_no_parenb_ignpar=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_no_parenb_ignpar" >&5
$as_echo "$ac_cv_var_no_parenb_ignpar" >&6; }
case "$ac_cv_var_no_parenb_ignpar" in
 yes)
$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including ntpd debugging code" >&5
$as_echo_n "checking if we're including ntpd debugging code... " >&6; }
# Check whether --enable-debugging was given.
if test "${enable_debugging+set}" = set; then :
  enableval=$enable_debugging; ntp_ok=$enableval
else
  ntp_ok=yes
fi

if test "$ntp_ok" = "yes"; then

$as_echo "#define DEBUG 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we including processing time debugging code" >&5
$as_echo_n "checking if we including processing time debugging code... " >&6; }
# Check whether --enable-debug-timing was given.
if test "${enable_debug_timing+set}" = set; then :
  enableval=$enable_debug_timing; ntp_ok=$enableval
else
  ntp_ok=no
fi

if test "$ntp_ok" = "yes"; then

$as_echo "#define DEBUG_TIMING 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
# Check whether --enable-dst_minutes was given.
if test "${enable_dst_minutes+set}" = set; then :
  enableval=$enable_dst_minutes; ans=$enableval
else
  ans=60

fi


cat >>confdefs.h <<_ACEOF
#define DSTMINUTES $ans
_ACEOF

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
# Check whether --enable-ignore-dns-errors was given.
if test "${enable_ignore_dns_errors+set}" = set; then :
  enableval=$enable_ignore_dns_errors; ans=$enableval
else
  ans=no

fi

case "$ans" in
 yes)

$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will use the deferred DNS lookup path" >&5
$as_echo_n "checking if ntpd will use the deferred DNS lookup path... " >&6; }
# Check whether --enable-force-defer-DNS was given.
if test "${enable_force_defer_DNS+set}" = set; then :
  enableval=$enable_force_defer_DNS; ans=$enableval
else
  ans=no

fi

case "$ans" in
 yes)

$as_echo "#define FORCE_DEFER_DNS 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the tty_clk line discipline/streams module" >&5
$as_echo_n "checking if we have the tty_clk line discipline/streams module... " >&6; }
if test "${ac_cv_var_tty_clk+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in
  *yes*) ac_cv_var_tty_clk=yes ;;
  *)     ac_cv_var_tty_clk=no ;;
 esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tty_clk" >&5
$as_echo "$ac_cv_var_tty_clk" >&6; }
case "$ac_cv_var_tty_clk" in
 yes)
$as_echo "#define TTYCLK 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ppsclock streams module" >&5
$as_echo_n "checking for the ppsclock streams module... " >&6; }
if test "${ac_cv_var_ppsclock+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ppsclock" >&5
$as_echo "$ac_cv_var_ppsclock" >&6; }
case "$ac_cv_var_ppsclock" in
 yes)
$as_echo "#define PPS 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel multicast support" >&5
$as_echo_n "checking for kernel multicast support... " >&6; }
if test "${ac_cv_var_mcast+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_var_mcast=no
  case "$host" in
   i386-sequent-sysv4) ;;
   *) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netinet/in.h>
#ifdef IP_ADD_MEMBERSHIP
   yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ac_cv_var_mcast=yes
fi
rm -f conftest*
 ;;
  esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_mcast" >&5
$as_echo "$ac_cv_var_mcast" >&6; }
case "$ac_cv_var_mcast" in
 yes)

$as_echo "#define MCAST 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()" >&5
$as_echo_n "checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()... " >&6; }
if test "${ac_cv_var_typeof_ip_multicast_loop+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case "$host" in
	 *-*-netbsd*|*-*-*linux*)
	    ac_cv_var_typeof_ip_multicast_loop=u_int
	    ;;
	 *-*-winnt*)
	    ac_cv_var_typeof_ip_multicast_loop=BOOL
	    ;;
	 *) ac_cv_var_typeof_ip_multicast_loop=u_char
	    ;;
	esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_typeof_ip_multicast_loop" >&5
$as_echo "$ac_cv_var_typeof_ip_multicast_loop" >&6; }

cat >>confdefs.h <<_ACEOF
#define TYPEOF_IP_MULTICAST_LOOP $ac_cv_var_typeof_ip_multicast_loop
_ACEOF

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
if test "${ac_cv_var_ntp_syscalls+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_var_ntp_syscalls=no
 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
  yesyes*)
    ac_cv_var_ntp_syscalls=libc
    ;;
  *yes)
    ac_cv_var_ntp_syscalls=inline
    ;;
  *) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/syscall.h>
#if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
           yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ac_cv_var_ntp_syscalls=kernel
fi
rm -f conftest*

    ;;
 esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ntp_syscalls" >&5
$as_echo "$ac_cv_var_ntp_syscalls" >&6; }
case "$ac_cv_var_ntp_syscalls" in
 libc)

$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h

    ;;
 kernel)

$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h

    ;;
 *)
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
if test "${ac_cv_var_sta_fll+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/timex.h>
#ifdef STA_FLL
    yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ac_cv_var_sta_fll=yes
else
  ac_cv_var_sta_fll=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_sta_fll" >&5
$as_echo "$ac_cv_var_sta_fll" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
$as_echo_n "checking if we have kernel PLL support... " >&6; }
if test "${ac_cv_var_kernel_pll+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in
 *no*)
    ac_cv_var_kernel_pll=no
    ;;
 *) ac_cv_var_kernel_pll=yes
    ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_kernel_pll" >&5
$as_echo "$ac_cv_var_kernel_pll" >&6; }
case "$ac_cv_var_kernel_pll" in
 yes)

$as_echo "#define KERNEL_PLL 1" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ans=no
  case "$host" in
   *-fujitsu-uxp*)
      ans=yes
      ;;
   *-ncr-sysv4*)
      ans=yes
      ;;
   *-univel-sysv*)
      ans=yes
      ;;
  esac
  ac_cv_var_size_returned_in_buffer=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_size_returned_in_buffer" >&5
$as_echo "$ac_cv_var_size_returned_in_buffer" >&6; }
case "$ac_cv_var_size_returned_in_buffer" in
 yes)
$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
 ;;
esac


# Check for ioctls TIOCGPPSEV
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGPPSEV" >&5
$as_echo_n "checking ioctl TIOCGPPSEV... " >&6; }
if test "$ac_cv_header_termios_h" = "yes"; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termios.h>
#ifdef TIOCGPPSEV
         yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_ok=yes
else
  ntp_ok=no
fi
rm -f conftest*

else
ntp_ok=no
fi
if test "$ntp_ok" = "yes"; then

$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h

    ac_cv_var_oncore_ok=yes
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Check for ioctls TIOCSPPS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCSPPS" >&5
$as_echo_n "checking ioctl TIOCSPPS... " >&6; }
if test "$ac_cv_header_termios_h" = "yes"; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termios.h>
#ifdef TIOCSPPS
         yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_ok=yes
else
  ntp_ok=no
fi
rm -f conftest*

else
    ntp_ok=no
fi

if test "$ntp_ok" = "yes"; then

$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Check for ioctls CIOGETEV
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl CIOGETEV" >&5
$as_echo_n "checking ioctl CIOGETEV... " >&6; }
if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/ppsclock.h>
#ifdef CIOGETEV
         yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_ok=yes
else
  ntp_ok=no
fi
rm -f conftest*

else
ntp_ok=no
fi
if test "$ntp_ok" = "yes"; then
    ac_cv_var_oncore_ok=yes

$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }


# ATOM/PPSAPI stuff.

# ATOM used to require struct timespec, but that's been fixed now.

# case "$ac_cv_struct_timespec" in
#  'yes')
#     ac_cv_var_atom_ok=yes
#     ;;
# esac
ac_cv_var_atom_ok=yes

# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.

# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')

# The PPSAPI needs struct timespec.

# The PPSAPI also needs a timepps header.

case "$ac_cv_c_inline$ac_cv_struct_timespec" in
 inlineyes)
    case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
     *yes* | *sunos* | *solaris* | *sco* | *netbsd* )

$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h

	ac_cv_var_jupiter_ok=yes
	ac_cv_var_oncore_ok=yes
	ac_cv_var_parse_ok=yes
	ac_cv_var_ripe_ncc_ok=yes
	;;
    esac
    ;;
esac

# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
if test "x$ac_cv_header_linux_serial_h" = x""yes; then :

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
  yesyes)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/time.h>
typedef int u_int;

#include <sys/ppsclock.h>
#include <linux/serial.h>

#ifdef TIOCGSERIAL
#ifdef TIOCSSERIAL
#ifdef ASYNC_PPS_CD_POS
#ifdef ASYNC_PPS_CD_NEG
#ifdef CIOGETEV
         yes
#endif
#endif
#endif
#endif
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_ok=yes
fi
rm -f conftest*

	;;
  *)
	ntp_ok=no
	;;
esac
if test "$ntp_ok" = "yes"; then

$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Check for SHMEM_STATUS support
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
$as_echo_n "checking SHMEM_STATUS support... " >&6; }
case "$ac_cv_header_sys_mman_h" in
 yes) ntp_ok=yes ;;
 *)   ntp_ok=no  ;;
esac
if test "$ntp_ok" = "yes"; then

$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }


ntp_refclock=no

# HPUX only, and by explicit request
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
# Check whether --enable-BANCOMM was given.
if test "${enable_BANCOMM+set}" = set; then :
  enableval=$enable_BANCOMM; ntp_ok=$enableval
else
  ntp_ok=no
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_BANC 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yes*-*-hpux*) ;;
 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
esac

#HPUX only, and only by explicit request
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
# Check whether --enable-GPSVME was given.
if test "${enable_GPSVME+set}" = set; then :
  enableval=$enable_GPSVME; ntp_ok=$enableval
else
  ntp_ok=no
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yes*-*-hpux*) ;;
 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
$as_echo_n "checking for PCL720 clock support... " >&6; }
case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
 yesyesyes)

$as_echo "#define CLOCK_PPS720 1" >>confdefs.h

    ans=yes
    ;;
 *)
    ans=no
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
# Check whether --enable-all-clocks was given.
if test "${enable_all_clocks+set}" = set; then :
  enableval=$enable_all_clocks; ntp_eac=$enableval
else
  ntp_eac=yes
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
$as_echo "$ntp_eac" >&6; }

# HMS: Should we also require ac_cv_var_parse_ok?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
$as_echo_n "checking if we have support for PARSE clocks... " >&6; }
case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
 yes*yes*)
    ntp_canparse=yes
    ;;
 *) ntp_canparse=no
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
$as_echo "$ntp_canparse" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
$as_echo_n "checking if we have support for audio clocks... " >&6; }
case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
 *yes*)
    ntp_canaudio=yes

$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h

    ;;
 *) ntp_canaudio=no ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
$as_echo "$ntp_canaudio" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
 yesyes)
    ntp_canshm=yes
    ;;
 *) ntp_canshm=no ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
$as_echo "$ntp_canshm" >&6; }

# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
$as_echo_n "checking ACTS modem service... " >&6; }
# Check whether --enable-ACTS was given.
if test "${enable_ACTS+set}" = set; then :
  enableval=$enable_ACTS; ntp_ok=$enableval
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termios.h>
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
#ifdef TIOCMBIS
         yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_ok=$ntp_eac
else
  ntp_ok=no
fi
rm -f conftest*

fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_ACTS 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
# Check whether --enable-ARBITER was given.
if test "${enable_ARBITER+set}" = set; then :
  enableval=$enable_ARBITER; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
$as_echo_n "checking Arcron MSF receiver... " >&6; }
# Check whether --enable-ARCRON_MSF was given.
if test "${enable_ARCRON_MSF+set}" = set; then :
  enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
# Check whether --enable-AS2201 was given.
if test "${enable_AS2201+set}" = set; then :
  enableval=$enable_AS2201; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_AS2201 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
$as_echo_n "checking ATOM PPS interface... " >&6; }
# Check whether --enable-ATOM was given.
if test "${enable_ATOM+set}" = set; then :
  enableval=$enable_ATOM; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

case "$ac_cv_var_atom_ok" in
 no) ntp_ok=no ;;
esac
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_ATOM 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
# Check whether --enable-CHRONOLOG was given.
if test "${enable_CHRONOLOG+set}" = set; then :
  enableval=$enable_CHRONOLOG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
$as_echo_n "checking CHU modem/decoder... " >&6; }
# Check whether --enable-CHU was given.
if test "${enable_CHU+set}" = set; then :
  enableval=$enable_CHU; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_CHU 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
ac_refclock_chu=$ntp_ok

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
$as_echo_n "checking CHU audio/decoder... " >&6; }
# Check whether --enable-AUDIO-CHU was given.
if test "${enable_AUDIO_CHU+set}" = set; then :
  enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
else
  case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in
 *no*)	ntp_ok=no  ;;
 *)	ntp_ok=yes ;;
esac
fi

if test "$ntp_ok" = "yes"; then

$as_echo "#define AUDIO_CHU 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
# We used to check for sunos/solaris target...
case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in
 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;;
esac

# Not under HP-UX
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
$as_echo_n "checking Datum Programmable Time System... " >&6; }
# Check whether --enable-DATUM was given.
if test "${enable_DATUM+set}" = set; then :
  enableval=$enable_DATUM; ntp_ok=$enableval
else
  case "$ac_cv_header_termios_h" in
    yes)
        ntp_ok=$ntp_eac
        ;;
    *) ntp_ok=no
        ;;
    esac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_DATUM 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
# Check whether --enable-DUMBCLOCK was given.
if test "${enable_DUMBCLOCK+set}" = set; then :
  enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
$as_echo_n "checking Forum Graphic GPS... " >&6; }
# Check whether --enable-FG was given.
if test "${enable_FG+set}" = set; then :
  enableval=$enable_FG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_FG 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
# Check whether --enable-HEATH was given.
if test "${enable_HEATH+set}" = set; then :
  enableval=$enable_HEATH; ntp_ok=$enableval
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termios.h>
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
#ifdef TIOCMBIS
         yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_ok=$ntp_eac
else
  ntp_ok=no
fi
rm -f conftest*

fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_HEATH 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
$as_echo_n "checking for hopf serial clock device... " >&6; }
# Check whether --enable-HOPFSERIAL was given.
if test "${enable_HOPFSERIAL+set}" = set; then :
  enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
$as_echo_n "checking for hopf PCI clock 6039... " >&6; }
# Check whether --enable-HOPFPCI was given.
if test "${enable_HOPFPCI+set}" = set; then :
  enableval=$enable_HOPFPCI; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
$as_echo_n "checking HP 58503A GPS receiver... " >&6; }
# Check whether --enable-HPGPS was given.
if test "${enable_HPGPS+set}" = set; then :
  enableval=$enable_HPGPS; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
$as_echo_n "checking IRIG audio decoder... " >&6; }
# Check whether --enable-IRIG was given.
if test "${enable_IRIG+set}" = set; then :
  enableval=$enable_IRIG; ntp_ok=$enableval
else
  case "$ntp_eac$ntp_canaudio" in
     *no*)	ntp_ok=no  ;;
     *)		ntp_ok=yes ;;
    esac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_IRIG 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canaudio" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
$as_echo_n "checking for JJY receiver... " >&6; }
# Check whether --enable-JJY was given.
if test "${enable_JJY+set}" = set; then :
  enableval=$enable_JJY; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_JJY 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
# Check whether --enable-JUPITER was given.
if test "${enable_JUPITER+set}" = set; then :
  enableval=$enable_JUPITER; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

case "$ac_cv_var_jupiter_ok" in
 no) ntp_ok=no ;;
esac
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
# Check whether --enable-LEITCH was given.
if test "${enable_LEITCH+set}" = set; then :
  enableval=$enable_LEITCH; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
$as_echo_n "checking local clock reference... " >&6; }
# Check whether --enable-LOCAL-CLOCK was given.
if test "${enable_LOCAL_CLOCK+set}" = set; then :
  enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }


# Not Ultrix
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
# Check whether --enable-MX4200 was given.
if test "${enable_MX4200+set}" = set; then :
  enableval=$enable_MX4200; ntp_ok=$enableval
else
  case "$ac_cv_var_ppsclock" in
     yes) ntp_ok=$ntp_eac
        ;;
     *) ntp_ok=no
        ;;
    esac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_MX4200 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
$as_echo_n "checking for NeoClock4X receiver... " >&6; }
# Check whether --enable-NEOCLOCK4X was given.
if test "${enable_NEOCLOCK4X+set}" = set; then :
  enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
$as_echo_n "checking NMEA GPS receiver... " >&6; }
# Check whether --enable-NMEA was given.
if test "${enable_NMEA+set}" = set; then :
  enableval=$enable_NMEA; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_NMEA 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
# Check whether --enable-ONCORE was given.
if test "${enable_ONCORE+set}" = set; then :
  enableval=$enable_ONCORE; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

case "$ac_cv_var_oncore_ok" in
 no) ntp_ok=no ;;
esac
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
$as_echo_n "checking for Palisade clock... " >&6; }
# Check whether --enable-PALISADE was given.
if test "${enable_PALISADE+set}" = set; then :
  enableval=$enable_PALISADE; ntp_ok=$enableval
else
  case "$ac_cv_header_termios_h" in
    yes)
        ntp_ok=$ntp_eac
        ;;
    *) ntp_ok=no
        ;;
    esac
fi


if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
$as_echo_n "checking Conrad parallel port radio clock... " >&6; }
# Check whether --enable-PCF was given.
if test "${enable_PCF+set}" = set; then :
  enableval=$enable_PCF; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_PCF 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
# Check whether --enable-PST was given.
if test "${enable_PST+set}" = set; then :
  enableval=$enable_PST; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_PST 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
# Check whether --enable-RIPENCC was given.
if test "${enable_RIPENCC+set}" = set; then :
  enableval=$enable_RIPENCC; ntp_ok=$enableval
else
  ntp_ok=no
fi

# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
case "$ac_cv_var_ripe_ncc_ok" in
 no) ntp_ok=no ;;
esac
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Danny Meyer says SHM compiles (with a few warnings) under Win32.
# For *IX, we need sys/ipc.h and sys/shm.h.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
# Check whether --enable-SHM was given.
if test "${enable_SHM+set}" = set; then :
  enableval=$enable_SHM; ntp_ok=$enableval
else
  case "$ntp_eac$ntp_canshm" in
 *no*)	ntp_ok=no  ;;
 *)	ntp_ok=yes ;;
esac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_SHM 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
# Check whether --enable-SPECTRACOM was given.
if test "${enable_SPECTRACOM+set}" = set; then :
  enableval=$enable_SPECTRACOM; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
# Check whether --enable-TPRO was given.
if test "${enable_TPRO+set}" = set; then :
  enableval=$enable_TPRO; ntp_ok=$enableval
else
  case "$ac_cv_header_sys_tpro_h" in
     yes)
	ntp_ok=$ntp_eac
	;;
     *)	ntp_ok=no
	;;
    esac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_TPRO 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ac_cv_header_sys_tpro" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
esac


# Not on a vax-dec-bsd
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
# Check whether --enable-TRUETIME was given.
if test "${enable_TRUETIME+set}" = set; then :
  enableval=$enable_TRUETIME; ntp_ok=$enableval
else
  case "$host" in
     vax-dec-bsd)
	ntp_ok=no
	;;
     *)
	ntp_ok=$ntp_eac
	;;
    esac
fi


if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
# Check whether --enable-TT560 was given.
if test "${enable_TT560+set}" = set; then :
  enableval=$enable_TT560; ntp_ok=$enableval
else
  ntp_ok=no
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
# Check whether --enable-ULINK was given.
if test "${enable_ULINK+set}" = set; then :
  enableval=$enable_ULINK; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_ULINK 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
$as_echo_n "checking WWV receiver... " >&6; }
# Check whether --enable-WWV was given.
if test "${enable_WWV+set}" = set; then :
  enableval=$enable_WWV; ntp_ok=$enableval
else
  case "$ntp_eac$ntp_canaudio" in
     *no*)	ntp_ok=no  ;;
     *)		ntp_ok=yes ;;
    esac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_WWV 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canaudio" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
$as_echo_n "checking for Zyfer receiver... " >&6; }
# Check whether --enable-ZYFER was given.
if test "${enable_ZYFER+set}" = set; then :
  enableval=$enable_ZYFER; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
# Check whether --enable-parse-clocks was given.
if test "${enable_parse_clocks+set}" = set; then :
  enableval=$enable_parse_clocks; ntp_eapc=$enableval
else
  case "$ntp_eac" in
     yes) ntp_eapc=$ntp_canparse ;;
     *) ntp_eapc=no ;;
    esac
    # Delete the next line one of these days
    ntp_eapc=no
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
$as_echo "$ntp_eapc" >&6; }

case "$ntp_eac$ntp_eapc$ntp_canparse" in
 noyes*)
    as_fn_error "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
    ;;
 yesyesno)
    as_fn_error "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
    ;;
 *) ;;
esac

ntp_libparse=no
ntp_parseutil=no
ntp_rawdcf=no

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
$as_echo_n "checking Diem Computime Radio Clock... " >&6; }
# Check whether --enable-COMPUTIME was given.
if test "${enable_COMPUTIME+set}" = set; then :
  enableval=$enable_COMPUTIME; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
$as_echo_n "checking ELV/DCF7000 clock... " >&6; }
# Check whether --enable-DCF7000 was given.
if test "${enable_DCF7000+set}" = set; then :
  enableval=$enable_DCF7000; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
$as_echo_n "checking HOPF 6021 clock... " >&6; }
# Check whether --enable-HOPF6021 was given.
if test "${enable_HOPF6021+set}" = set; then :
  enableval=$enable_HOPF6021; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
$as_echo_n "checking Meinberg clocks... " >&6; }
# Check whether --enable-MEINBERG was given.
if test "${enable_MEINBERG+set}" = set; then :
  enableval=$enable_MEINBERG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
$as_echo_n "checking DCF77 raw time code... " >&6; }
# Check whether --enable-RAWDCF was given.
if test "${enable_RAWDCF+set}" = set; then :
  enableval=$enable_RAWDCF; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_parseutil=yes
    ntp_refclock=yes
    ntp_rawdcf=yes

$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
    ;;
esac

case "$ntp_rawdcf" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
if test "${ac_cv_var_rawdcf_parity+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ans=no
    case "$host" in
     *-*-*linux*)
        ans=yes
        ;;
    esac
    ac_cv_var_rawdcf_parity=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rawdcf_parity" >&5
$as_echo "$ac_cv_var_rawdcf_parity" >&6; }
    case "$ac_cv_var_rawdcf_parity" in
     yes)
$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
 ;;
    esac
    ;;

 *) # HMS: Is this a good idea?
    ac_cv_var_rawdcf_parity=no
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
$as_echo_n "checking RCC 8000 clock... " >&6; }
# Check whether --enable-RCC8000 was given.
if test "${enable_RCC8000+set}" = set; then :
  enableval=$enable_RCC8000; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
$as_echo_n "checking Schmid DCF77 clock... " >&6; }
# Check whether --enable-SCHMID was given.
if test "${enable_SCHMID+set}" = set; then :
  enableval=$enable_SCHMID; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
# Check whether --enable-TRIMTAIP was given.
if test "${enable_TRIMTAIP+set}" = set; then :
  enableval=$enable_TRIMTAIP; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
# Check whether --enable-TRIMTSIP was given.
if test "${enable_TRIMTSIP+set}" = set; then :
  enableval=$enable_TRIMTSIP; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
$as_echo_n "checking WHARTON 400A Series clock... " >&6; }
# Check whether --enable-WHARTON was given.
if test "${enable_WHARTON+set}" = set; then :
  enableval=$enable_WHARTON; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
$as_echo_n "checking VARITEXT clock... " >&6; }
# Check whether --enable-VARITEXT was given.
if test "${enable_VARITEXT+set}" = set; then :
  enableval=$enable_VARITEXT; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
    ;;
esac




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
$as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
ans=no
case "$ntp_libparse" in
 yes)
    ans=yes

$as_echo "#define CLOCK_PARSE 1" >>confdefs.h

    LIBPARSE=../libparse/libparse.a
    MAKE_LIBPARSE=libparse.a
    # HMS: check_y2k trips the 34 year problem now...
    false && MAKE_CHECK_Y2K=check_y2k
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }


# AC_SUBST(RSAOBJS)
# AC_SUBST(RSASRCS)
# AC_SUBST(RSADIR)
# AC_SUBST(RSAREF)
# AC_SUBST(LIBRSAREF)
# AC_SUBST(MAKE_LIBRSAREF)





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
$as_echo_n "checking for openssl library directory... " >&6; }

# Check whether --with-openssl-libdir was given.
if test "${with_openssl_libdir+set}" = set; then :
  withval=$with_openssl_libdir; ans=$withval
else
  case "$build" in
 $host) ans=yes ;;
 *)     ans=no ;;
esac
fi

case "$ans" in
 no) ;;
 yes) # Look in:
    ans="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib /lib"
    ;;
 *) # Look where they said
    ;;
esac
case "$ans" in
 no) ;;
 *) # Look for libcrypto.a and libssl.a:
    for i in $ans no
    do
	case "$host" in
	 *-*-darwin*)
	    test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
	    ;;
	 *)
	    test -f $i/libcrypto.so -a -f $i/libssl.so && break
	    test -f $i/libcrypto.a -a -f $i/libssl.a && break
	    ;;
	esac
    done
    case "$i" in
     no)
	ans=no
	OPENSSL_LIB=
	;;
     *) ans=$i
	OPENSSL_LIB=$ans
	;;
    esac
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
$as_echo_n "checking for openssl include directory... " >&6; }

# Check whether --with-openssl-incdir was given.
if test "${with_openssl_incdir+set}" = set; then :
  withval=$with_openssl_incdir; ans=$withval
else
  case "$build" in
 $host) ans=yes ;;
 *)     ans=no ;;
esac
fi

case "$ans" in
 no) ;;
 yes) # look in:
    ans="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include"
    ;;
 *) # Look where they said
    ;;
esac
case "$ans" in
 no) ;;
 *) # look for openssl/opensslconf.h:
    for i in $ans no
    do
	test -f $i/openssl/opensslconf.h && break
    done
    case "$i" in
     no)
	ans=no
	OPENSSL_INC=
	;;
     *) ans=$i
	OPENSSL_INC=$ans
	;;
    esac
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
$as_echo_n "checking if we will use crypto... " >&6; }

# Check whether --with-crypto was given.
if test "${with_crypto+set}" = set; then :
  withval=$with_crypto; ans=$withval
else
  ans=yes
fi

case "$ans" in
 no)
    ;;
 yes|openssl)
    if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
    then
	ans=no
    else
	ans=yes
    fi
esac
ntp_openssl=$ans
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ntp_openssl" in
 yes)
    # We have OpenSSL inc/lib - use them.
    CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
    LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
    case "$need_dash_r" in
     1) LDFLAGS="$LDFLAGS -R$OPENSSL_LIB"
    esac
    LCRYPTO=-lcrypto


$as_echo "#define OPENSSL /**/" >>confdefs.h

esac

#
# OpenSSL has a number of callback prototypes inside other function
# prototypes which trigger copious warnings with -Wstrict-prototypes,
# (which is included in -Wall).
#
# An example:
#
# int i2d_RSA_NET(const RSA *a, unsigned char **pp,
#                 int (*cb)(), int sgckey);
#                 ^^^^^^^^^^^
#
# The OpenSSL headers probably haven't been fixed in this regard
# due to the hoops you have to jump through to stay compatible with
# K&R C compilers.
#
case "$GCC$ntp_openssl" in
 yesyes)
    CFLAGS="$CFLAGS -Wno-strict-prototypes"
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to compile with ElectricFence" >&5
$as_echo_n "checking if we want to compile with ElectricFence... " >&6; }

# Check whether --with-electricfence was given.
if test "${with_electricfence+set}" = set; then :
  withval=$with_electricfence; ans=$withval
else
  ans=no
fi

case "$ans" in
 no) ;;
 *)
    LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a"
    EF_PROGS="eftest tstheap"

    EF_LIBS=libefence.a

    ans=yes
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
$as_echo_n "checking if we want to run check-layout... " >&6; }
case "$cross_compiling$PATH_PERL" in
 no/*)
    MAKE_CHECK_LAYOUT=check-layout
    ans=yes
    ;;
 *)
    ans=no
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
$as_echo_n "checking if we can make dcf parse utilities... " >&6; }
ans=no
if test "$ntp_parseutil" = "yes"; then
    case "$host" in
     *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
	ans="dcfd testdcf"
	DCFD=dcfd
        TESTDCF=testdcf
	;;
    esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
ans=no
case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
 yesyes)
    case "$host" in
     sparc-*-sunos4*)
        case "$ac_cv_var_kernel_pll" in
	yes)

$as_echo "#define PPS_SYNC 1" >>confdefs.h

	    ;;
	esac
	ans=parsestreams
	MAKE_PARSEKMODULE=parsestreams.loadable_module.o
	;;
     sparc-*-solaris2*)
	ans=parsesolaris
	MAKE_PARSEKMODULE=parse
	for ac_header in strings.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
if test "x$ac_cv_header_strings_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRINGS_H 1
_ACEOF

fi

done

	;;
    esac
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
$as_echo_n "checking if we need basic refclock support... " >&6; }
if test "$ntp_refclock" = "yes"; then

$as_echo "#define REFCLOCK 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
$as_echo "$ntp_refclock" >&6; }



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
case "$host" in
 *-*-hpux[56789]*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac
if test "$ans" = "yes"; then
    MAKE_ADJTIMED=adjtimed

$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
$as_echo_n "checking if we want QNX adjtime support... " >&6; }
case "$host" in
 *-*-qnx*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac
if test "$ans" = "yes"; then

$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
$as_echo_n "checking if we can read kmem... " >&6; }

#  the default is to enable it if the system has the capability

case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
 *yes*)
    ans=yes
    ;;
 *) ans=no
esac

case "$host" in
 *-*-domainos)	# Won't be found...
    ans=no
    ;;
 *-*-hpux*)
    #ans=no
    ;;
 *-*-irix[456]*)
    ans=no
    ;;
 *-*-*linux*)
    ans=no
    ;;
 *-*-winnt3.5)
    ans=no
    ;;
 *-*-unicosmp*)
    ans=no
    ;;
esac

# --enable-kmem / --disable-kmem controls if present
# Check whether --enable-kmem was given.
if test "${enable_kmem+set}" = set; then :
  enableval=$enable_kmem; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
    can_kmem=yes
    ;;
 *)
    can_kmem=no

$as_echo "#define NOKMEM 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
$as_echo_n "checking if adjtime is accurate... " >&6; }

# target-dependent defaults

case "$host" in
 i386-sequent-ptx*)
    ans=no
    ;;
 i386-unknown-osf1*)
    ans=yes
    ;;
 mips-sgi-irix[456]*)
    ans=yes
    ;;
 *-fujitsu-uxp*)
    ans=yes
    ;;
 *-ibm-aix[456]*)
    ans=yes
    ;;
 *-*-*linux*)
    ans=yes
    ;;
 *-*-solaris2.[01])
    ans=no
    ;;
 *-*-solaris2*)
    ans=yes
    ;;
 *-*-unicosmp*)
    ans=yes
    ;;
 *) ans=no
esac

# --enable-accurate-adjtime / --disable-accurate-adjtime
# override the default
# Check whether --enable-accurate-adjtime was given.
if test "${enable_accurate_adjtime+set}" = set; then :
  enableval=$enable_accurate_adjtime; ans=$enableval
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h

    adjtime_is_accurate=yes
    ;;
 *)
    adjtime_is_accurate=no
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
$as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
if test "${ac_cv_var_nlist_tick+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ans=_tick
case "$host" in
 m68*-hp-hpux*) # HP9000/300?
    ans=_old_tick
    ;;
 *-apple-aux[23]*)
    ans=tick
    ;;
 *-hp-hpux*)
    ans=old_tick
    ;;
 *-ibm-aix[3456]*)
    ans=no
    ;;
 *-*-mpeix*)
    ans=no
    ;;
 *-*-ptx*)
    ans=tick
    ;;
 *-*-sco3.2v[45]*)
    ans=no
    ;;
 *-*-solaris2*)
    ans=nsec_per_tick
    ;;
 *-*-sysv4*)
    ans=tick
    ;;
esac
ac_cv_var_nlist_tick=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_tick" >&5
$as_echo "$ac_cv_var_nlist_tick" >&6; }
case "$ac_cv_var_nlist_tick" in
 ''|no) ;;	# HMS: I think we can only get 'no' here...
 *)
cat >>confdefs.h <<_ACEOF
#define K_TICK_NAME "$ac_cv_var_nlist_tick"
_ACEOF
 ;;
esac
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
$as_echo_n "checking for the units of 'tick'... " >&6; }
if test "${ac_cv_var_tick_nano+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ans=usec
case "$host" in
 *-*-solaris2*)
    ans=nsec
    ;;
esac
ac_cv_var_tick_nano=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tick_nano" >&5
$as_echo "$ac_cv_var_tick_nano" >&6; }
case "$ac_cv_var_tick_nano" in
 nsec)

$as_echo "#define TICK_NANO 1" >>confdefs.h

    ;;
esac
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
if test "${ac_cv_var_nlist_tickadj+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ans=_tickadj
case "$host" in
 m68*-hp-hpux*) # HP9000/300?
    ans=_tickadj
    ;;
 *-apple-aux[23]*)
    ans=tickadj
    ;;
 *-hp-hpux10*)
    ans=no
    ;;
 *-hp-hpux9*)
    ans=no
    ;;
 *-hp-hpux*)
    ans=tickadj
    ;;
 *-*-aix*)
    ans=tickadj
    ;;
 *-*-mpeix*)
    ans=no
    ;;
 *-*-ptx*)
    ans=tickadj
    ;;
 *-*-sco3.2v4*)
    ans=no
    ;;
 *-*-sco3.2v5.0*)
    ans=clock_drift
    ;;
 *-*-solaris2*)
    ans=no	# hrestime_adj
    ;;
 *-*-sysv4*)
    ans=tickadj
    ;;
esac
ac_cv_var_nlist_tickadj=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_tickadj" >&5
$as_echo "$ac_cv_var_nlist_tickadj" >&6; }
case "$ac_cv_var_nlist_tickadj" in
 ''|no) ;;	# HMS: I think we can only get 'no' here...
 *)
cat >>confdefs.h <<_ACEOF
#define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
_ACEOF
 ;;
esac
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
$as_echo_n "checking for the units of 'tickadj'... " >&6; }
if test "${ac_cv_var_tickadj_nano+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ans=usec
case "$host" in
 *-*-solaris2*)
    ans=nsec
    ;;
esac
ac_cv_var_tickadj_nano=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tickadj_nano" >&5
$as_echo "$ac_cv_var_tickadj_nano" >&6; }
case "$ac_cv_var_tickadj_nano" in
 nsec)

$as_echo "#define TICKADJ_NANO 1" >>confdefs.h

    ;;
esac
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case "$host" in
 *-apple-aux[23]*)
    ans=no
    ;;
 *-sni-sysv*)
    ans=dosynctodr
    ;;
 *-*-aix*)
    ans=dosynctodr
    ;;
 *-*-hpux*)
    ans=no
    ;;
 *-*-mpeix*)
    ans=no
    ;;
 *-*-nextstep*)
    ans=_dosynctodr
    ;;
 *-*-ptx*)
    ans=doresettodr
    ;;
 *-*-sco3.2v4*)
    ans=no
    ;;
 *-*-sco3.2v5*)
    ans=track_rtc
    ;;
 *-*-solaris2*)
    ans=dosynctodr
    ;;
 *-*-sysv4*)
    ans=doresettodr
    ;;
 *)
    ans=_dosynctodr
    ;;
esac
ac_cv_var_nlist_dosynctodr=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_dosynctodr" >&5
$as_echo "$ac_cv_var_nlist_dosynctodr" >&6; }
case "$ac_cv_var_nlist_dosynctodr" in
 no) ;;
 *)
cat >>confdefs.h <<_ACEOF
#define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
_ACEOF

     ;;
esac
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
if test "${ac_cv_var_nlist_noprintf+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case "$host" in
 *-apple-aux[23]*)
    ans=no
    ;;
 *-sni-sysv*)
    ans=noprintf
    ;;
 *-*-aix*)
    ans=noprintf
    ;;
 *-*-hpux*)
    ans=no
    ;;
 *-*-mpeix*)
    ans=no
    ;;
 *-*-ptx*)
    ans=noprintf
    ;;
 *-*-nextstep*)
    ans=_noprintf
    ;;
 *-*-solaris2*)
    ans=noprintf
    ;;
 *-*-sysv4*)
    ans=noprintf
    ;;
 *)
    ans=_noprintf
    ;;
esac
ac_cv_var_nlist_noprintf=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_noprintf" >&5
$as_echo "$ac_cv_var_nlist_noprintf" >&6; }
case "$ac_cv_var_nlist_noprintf" in
 no) ;;
 *)
cat >>confdefs.h <<_ACEOF
#define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
_ACEOF

     ;;
esac




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
$as_echo_n "checking for a default value for 'tick'... " >&6; }

# target-dependent default for tick

case "$host" in
 *-*-pc-cygwin*)
    as_fn_error "tick needs work for cygwin" "$LINENO" 5
    ;;
 *-univel-sysv*)
    ans=10000
    ;;
 *-*-irix*)
    ans=10000
    ;;
 *-*-*linux*)
    ans=txc.tick
    ;;
 *-*-mpeix*)
    ans=no
    ;;
 *-*-winnt3.5)
    ans='(every / 10)'
    ;;
 *-*-unicosmp*)
    ans=10000
    ;;
 *)
    ans='1000000L/hz'
    ;;
esac

# Check whether --enable-tick was given.
if test "${enable_tick+set}" = set; then :
  enableval=$enable_tick; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 ''|no) ;;	# HMS: I think we can only get 'no' here...
 *)
cat >>confdefs.h <<_ACEOF
#define PRESET_TICK $ans
_ACEOF
 ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
$as_echo_n "checking for a default value for 'tickadj'... " >&6; }

# target-specific default

ans='500/hz'

case "$host" in
 *-fujitsu-uxp*)
    case "$adjtime_is_accurate" in
     yes)
         ans='tick/16'
    esac
    ;;
 XXX-*-pc-cygwin*)
    ans=no
    ;;
 *-univel-sysv*)
    ans=80
    ;;
 *-*-aix*)
    case "$can_kmem" in
     no)
	ans=1000
    esac
    ;;
 *-*-domainos)	# Skippy: won't be found...
    case "$can_kmem" in
     no)
	ans=668
    esac
    ;;
 *-*-hpux*)
    case "$adjtime_is_accurate" in
     yes)
	ans='tick/16'
    esac
    ;;
 *-*-irix*)
    ans=150
    ;;
 *-*-mpeix*)
    ans=no
    ;;
 *-*-sco3.2v5.0*)
    ans=10000L/hz
    ;;
 *-*-winnt3.5)
    ans=50
    ;;
 *-*-unicosmp*)
    ans=150
esac

# Check whether --enable-tickadj was given.
if test "${enable_tickadj+set}" = set; then :
  enableval=$enable_tickadj; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

default_tickadj=$ans

case "$default_tickadj" in
 ''|no) ;;	# HMS: I think we can only get 'no' here...
 *)
cat >>confdefs.h <<_ACEOF
#define PRESET_TICKADJ $default_tickadj
_ACEOF
 ;;
esac

# Newer versions of ReliantUNIX round adjtime() values down to
# 1/100s (system tick). Sigh ...
# Unfortunately, there is no easy way to know if particular release
# has this "feature" or any obvious way to test for it.
case "$host" in
 mips-sni-sysv4*)
$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
 ;;
esac

case "$host" in
 *-*-sco3.2v5*)
$as_echo "#define SCO5_CLOCK 1" >>confdefs.h
 ;;
esac

ac_cv_make_tickadj=yes
case "$can_kmem$ac_cv_var_tick$default_tickadj" in
 nonono)	# Don't read KMEM, no presets.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&2;}
    ac_cv_make_tickadj=no
    ;;
 nono*)		# Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
    ac_cv_make_tickadj=no
    ;;
 no*no)		# Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
    ac_cv_make_tickadj=no
    ;;
 no*)		# Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
    ;;
 yesnono)	# Read KMEM, no presets.  Cool.
    ;;
 yesno*)	# Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
    ;;
 yes*no)	# Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
    ;;
 yes*)		# READ KMEM, PRESET_TICK and PRESET_TICKADJ.
    ;;
 *)		# Generally bogus.
    as_fn_error "This shouldn't happen." "$LINENO" 5
    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
$as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
if test "${ac_cv_make_ntptime+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case "$host" in
 *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in
     yesyes)
	ans=yes
	;;
     *)
	ans=no
	;;
    esac
    ;;
esac
ac_cv_make_ntptime=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
$as_echo "$ac_cv_make_ntptime" >&6; }
case "$ac_cv_make_ntptime" in
 yes)
    MAKE_NTPTIME=ntptime
    ;;
esac


case "$host" in
 mips-sni-sysv4*)
    # tickadj is pretty useless on newer versions of ReliantUNIX
    # Do not bother
    ac_cv_make_tickadj=no
    ;;
 *-*-irix*)
    ac_cv_make_tickadj=no
    ;;
 *-*-solaris2*)
    # DLM says tickadj is a no-no starting with solaris2.5
    case "$host" in
     *-*-solaris2.1[0-9]*)
	ac_cv_make_tickadj=no
	;;
     *-*-solaris2.[0-4]*) ;;
     *) ac_cv_make_tickadj=no ;;
    esac
    ;;
 *-*-unicosmp*)
    ac_cv_make_tickadj=no
    ;;
esac

#
# Despite all the above, we always make tickadj.  Setting
# ac_cv_make_tickadj before AC_CACHE_CHECK will cause a false
# report that the configuration variable was cached.  It may
# be better to simply remove the hunk above, I did not want
# to remove it if there is hope it will be used again.
#
$as_unset ac_cv_make_tickadj

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
$as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
if test "${ac_cv_make_tickadj+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_make_tickadj=yes
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_tickadj" >&5
$as_echo "$ac_cv_make_tickadj" >&6; }
case "$ac_cv_make_tickadj" in
 yes)
    MAKE_TICKADJ=tickadj
    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
$as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
if test "${ac_cv_make_timetrim+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case "$host" in
 *-*-irix*)
    ac_cv_make_timetrim=yes
    ;;
 *-*-unicosmp*)
    ac_cv_make_timetrim=yes
    ;;
 *)
    ac_cv_make_timetrim=no
    ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_timetrim" >&5
$as_echo "$ac_cv_make_timetrim" >&6; }
case "$ac_cv_make_timetrim" in
 yes)
    MAKE_TIMETRIM=timetrim
    ;;
esac




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
$as_echo_n "checking if we want to build the NTPD simulator... " >&6; }

# Check whether --enable-simulator was given.
if test "${enable_simulator+set}" = set; then :
  enableval=$enable_simulator; ans=$enableval
else
  ans=no

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
    MAKE_NTPDSIM=ntpdsim
    MAKE_LIBNTPSIM=libntpsim.a
    ;;
esac

case "$build" in
 $host)
    ;;
 *) case "$host" in
     *-*-vxworks*)
	LDFLAGS="$LDFLAGS -r"
	;;
    esac
    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
$as_echo_n "checking if we want to build ntpsnmpd... " >&6; }

# Check whether --with-ntpsnmpd was given.
if test "${with_ntpsnmpd+set}" = set; then :
  withval=$with_ntpsnmpd; ans=$withval
else
  case "$PATH_NET_SNMP_CONFIG" in
	 /*)	ans=yes ;;
	 *)	ans=no  ;;
	esac
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
    case "$PATH_NET_SNMP_CONFIG" in
     /*)
	SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`

	# HMS: we really want to separate CPPFLAGS and CFLAGS
	foo=`$PATH_NET_SNMP_CONFIG --cflags`
	SNMP_CPPFLAGS=
	SNMP_CFLAGS=
	for i in $foo; do
	    case "$i" in
	     -D*|-U*|-I*)
		SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
		;;
	    *)	SNMP_CFLAGS="$SNMP_CFLAGS $i"
		;;
	    esac
	done



	save_CFLAGS=$CFLAGS
	save_CPPFLAGS=$CPPFLAGS
	save_LIBS=$LIBS
	CFLAGS=$SNMP_CFLAGS
	CPPFLAGS=$SNMP_CPPFLAGS

	ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = x""yes; then :
  MAKE_NTPSNMPD=ntpsnmpd
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
fi



	# Do this last, as we're messing up LIBS.

	# check -lnetsnmp for netsnmp_daemonize
	LIBS=`$PATH_NET_SNMP_CONFIG --libs`
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
if test "${ac_cv_lib_netsnmp_netsnmp_daemonize+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnetsnmp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char netsnmp_daemonize ();
int
main ()
{
return netsnmp_daemonize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_netsnmp_netsnmp_daemonize=yes
else
  ac_cv_lib_netsnmp_netsnmp_daemonize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBNETSNMP 1
_ACEOF

  LIBS="-lnetsnmp $LIBS"

else

$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h

fi


	CFLAGS=$save_CFLAGS
	CPPFLAGS=$save_CPPFLAGS
	LIBS=$save_LIBS

	;;
     *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd as desired - net-snmp-config cannot be found" >&5
$as_echo "$as_me: WARNING: Cannot build ntpsnmpd as desired - net-snmp-config cannot be found" >&2;}
	;;
    esac
    ;;
esac



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
$as_echo_n "checking if we should always slew the time... " >&6; }

# target-specific defaults

case "$host" in
 *-apple-aux[23]*)
    ans=yes
    ;;
 *-*-bsdi[012]*)
    ans=no
    ;;
 *-*-bsdi*)
    ans=yes
    ;;
 *-*-openvms*)	# HMS: won't be found
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# --enable-slew-always / --disable-slew-always overrides default

# Check whether --enable-slew-always was given.
if test "${enable_slew_always+set}" = set; then :
  enableval=$enable_slew_always; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
$as_echo "#define SLEWALWAYS 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
$as_echo_n "checking if we should step and slew the time... " >&6; }

case "$host" in
 *-sni-sysv*)
    ans=yes
    ;;
 *-univel-sysv*)
    ans=no
    ;;
 *-*-ptx*)
    ans=yes
    ;;
 *-*-solaris2.1[0-9]*)
    ans=no
    ;;
 *-*-solaris2.[012]*)
    ans=yes
    ;;
 *-*-sysv4*)	# HMS: Does this catch Fujitsu UXP?
    ans=yes
    ;;
 *) ans=no
    ;;
esac


# Check whether --enable-step-slew was given.
if test "${enable_step_slew+set}" = set; then :
  enableval=$enable_step_slew; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
$as_echo "#define STEP_SLEW 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
$as_echo_n "checking if ntpdate should step the time... " >&6; }

case "$host" in
 *-apple-aux[23]*)
    ans=yes
    ;;
 *) ans=no
esac

# Check whether --enable-ntpdate-step was given.
if test "${enable_ntpdate_step+set}" = set; then :
  enableval=$enable_ntpdate_step; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
 ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
$as_echo_n "checking if we should sync TODR clock every hour... " >&6; }

case "$host" in
 *-*-nextstep*)
    ans=yes
    ;;
 *-*-openvms*)	# HMS: won't be found
    ans=yes
    ;;
 *)
    ans=no
esac

# Check whether --enable-hourly-todr-sync was given.
if test "${enable_hourly_todr_sync+set}" = set; then :
  enableval=$enable_hourly_todr_sync; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ac_cv_var_sync_todr" in
 yes)
$as_echo "#define DOSYNCTODR 1" >>confdefs.h
 ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }

case "$host" in
 *-*-solaris2.6)
    unamev=`uname -v`
    case "$unamev" in
     Generic_105181-*)
	old_IFS="$IFS"
	IFS="-"
	set $unamev
	IFS="$old_IFS"
	if test "$2" -ge 17
	then
	    # Generic_105181-17 and higher
	    ans=no
	else
	    ans=yes
	fi
	;;
     *)
	ans=yes
    esac
    ;;
 *-*-solaris2.7)
    unamev=`uname -v`
    case "$unamev" in
     Generic_106541-*)
	old_IFS="$IFS"
	IFS="-"
	set $unamev
	IFS="$old_IFS"
	if test "$2" -ge 07
	then
	    # Generic_106541-07 and higher
	    ans=no
	else
	    ans=yes
	fi
	;;
     *)
	ans=yes
    esac
    ;;
 *)
    ans=no
esac

# Check whether --enable-kernel-fll-bug was given.
if test "${enable_kernel_fll_bug+set}" = set; then :
  enableval=$enable_kernel_fll_bug; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
 ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
$as_echo_n "checking if we want new session key behavior... " >&6; }

# Check whether --enable-bug1243-fix was given.
if test "${enable_bug1243_fix+set}" = set; then :
  enableval=$enable_bug1243_fix; ans=$enableval
else
  ans=yes

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 no)

$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }

case "$host" in
 *-*-solaris2.[89])
    ans=yes
    ;;
 *-*-solaris2.1[0-9]*)
    ans=yes
    ;;
 *) ans=no
esac

# Check whether --enable-irig-sawtooth was given.
if test "${enable_irig_sawtooth+set}" = set; then :
  enableval=$enable_irig_sawtooth; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
$as_echo "#define IRIG_SUCKS 1" >>confdefs.h
 ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }

# Check whether --enable-nist was given.
if test "${enable_nist+set}" = set; then :
  enableval=$enable_nist; ans=$enableval
else
  ans=no

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
$as_echo "#define LOCKCLOCK 1" >>confdefs.h
 ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }

# Check whether --enable-ntp-signd was given.
if test "${enable_ntp_signd+set}" = set; then :
  enableval=$enable_ntp_signd; ans=$enableval
else
  ans=no

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 no)
    ntp_signd_path=
    ;;
 yes)
    ntp_signd_path=/var/run/ntp_signd
    ;;
 *)
    ntp_signd_path="$ans"
esac

case "$ntp_signd_path" in
 '')
    ;;
 *)

$as_echo "#define HAVE_NTP_SIGND /**/" >>confdefs.h


cat >>confdefs.h <<_ACEOF
#define NTP_SIGND_PATH "$ntp_signd_path"
_ACEOF

esac


for ac_header in sys/clockctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_clockctl_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_CLOCKCTL_H 1
_ACEOF

fi

done


case "$host" in
 *-*-netbsd*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# Check whether --enable-clockctl was given.
if test "${enable_clockctl+set}" = set; then :
  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
else
  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
$as_echo "$ntp_use_dev_clockctl" >&6; }


for ac_header in sys/capability.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_capability_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_CAPABILITY_H 1
_ACEOF

fi

done

for ac_header in sys/prctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_prctl_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PRCTL_H 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }

case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
 yesyes)
    ntp_have_linuxcaps=yes
    ;;
 *)
    ntp_have_linuxcaps=no
esac

# Check whether --enable-linuxcaps was given.
if test "${enable_linuxcaps+set}" = set; then :
  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
$as_echo "$ntp_have_linuxcaps" >&6; }

case "$ntp_have_linuxcaps" in
 yes)

$as_echo "#define HAVE_LINUX_CAPABILITIES /**/" >>confdefs.h

    LIBS="$LIBS -lcap"
esac

case "$ntp_use_dev_clockctl$ntp_have_linuxcaps" in
 *yes*)

$as_echo "#define HAVE_DROPROOT /**/" >>confdefs.h

esac


for ac_header in libscf.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
if test "x$ac_cv_header_libscf_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSCF_H 1
_ACEOF

fi

done


case "$ac_cv_header_libscf_h" in
 yes)
    LSCF=-lscf

esac

ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
if test "x$ac_cv_func_setppriv" = x""yes; then :

$as_echo "#define HAVE_SOLARIS_PRIVS /**/" >>confdefs.h


fi



#
# ISC stuff
#

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
$as_echo_n "checking struct sockaddr for sa_len... " >&6; }
if test "${isc_cv_platform_havesalen+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <sys/socket.h>

int
main ()
{

		extern struct sockaddr *ps;
		return ps->sa_len;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_platform_havesalen=yes
else
  isc_cv_platform_havesalen=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
$as_echo "$isc_cv_platform_havesalen" >&6; }
if test $isc_cv_platform_havesalen = yes; then

$as_echo "#define ISC_PLATFORM_HAVESALEN /**/" >>confdefs.h

fi

# Check whether --enable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then :
  enableval=$enable_ipv6;
fi


case "$enable_ipv6" in
 yes|''|autodetect)
    case "$host" in
     powerpc-ibm-aix4*) ;;
     *)

$as_echo "#define WANT_IPV6 /**/" >>confdefs.h

	;;
    esac
    ;;
 no)
    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
$as_echo_n "checking for IPv6 structures... " >&6; }
if test "${ac_cv_isc_found_ipv6+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


			#include <sys/types.h>
			#include <sys/socket.h>
			#include <netinet/in.h>

int
main ()
{

			struct sockaddr_in6 sin6;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_isc_found_ipv6=yes
else
  ac_cv_isc_found_ipv6=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_found_ipv6" >&5
$as_echo "$ac_cv_isc_found_ipv6" >&6; }

#
# See whether IPv6 support is provided via a Kame add-on.
# This is done before other IPv6 linking tests so LIBS is properly set.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
$as_echo_n "checking for Kame IPv6 support... " >&6; }

# Check whether --with-kame was given.
if test "${with_kame+set}" = set; then :
  withval=$with_kame; use_kame="$withval"
else
  use_kame="no"
fi



case "$use_kame" in
 no)
    ;;
 yes)
    kame_path=/usr/local/v6
    ;;
 *)
    kame_path="$use_kame"
    ;;
esac

case "$use_kame" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
 *)
    if test -f $kame_path/lib/libinet6.a; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
$as_echo "$kame_path/lib/libinet6.a" >&6; }
	LIBS="-L$kame_path/lib -linet6 $LIBS"
    else
	as_fn_error "$kame_path/lib/libinet6.a not found.

Please choose the proper path with the following command:

    configure --with-kame=PATH
" "$LINENO" 5
    fi
    ;;
esac

#
# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
# Including it on Kame-using platforms is very bad, though, because
# Kame uses #error against direct inclusion.   So include it on only
# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
# This is done before the in6_pktinfo check because that's what
# netinet6/in6.h is needed for.
#
case "$host" in
 *-bsdi4.[01]*)

$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h

    isc_netinet6in6_hack="#include <netinet6/in6.h>"
    ;;
 *)
    isc_netinet6in6_hack=""
esac

#
# This is similar to the netinet6/in6.h issue.
#
case "$host" in
 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)

$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h

    isc_netinetin6_hack="#include <netinet/in6.h>"
    ;;
 *)
    isc_netinetin6_hack=""
esac


case "$ac_cv_isc_found_ipv6" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIPV6 /**/" >>confdefs.h


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
$as_echo_n "checking for in6_pktinfo... " >&6; }
if test "${ac_cv_have_in6_pktinfo+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


			    #include <sys/types.h>
			    #include <sys/socket.h>
			    #include <netinet/in.h>
			    $isc_netinetin6_hack
			    $isc_netinet6in6_hack

int
main ()
{

			    struct in6_pktinfo xyzzy;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_have_in6_pktinfo=yes
else
  ac_cv_have_in6_pktinfo=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_in6_pktinfo" >&5
$as_echo "$ac_cv_have_in6_pktinfo" >&6; }

    case "$ac_cv_have_in6_pktinfo" in
     yes)

$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO /**/" >>confdefs.h

    esac


    # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
if test "${ac_cv_have_sin6_scope_id+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


			    #include <sys/types.h>
			    #include <sys/socket.h>
			    #include <netinet/in.h>
			    $isc_netinetin6_hack
			    $isc_netinet6in6_hack

int
main ()
{

			    struct sockaddr_in6 xyzzy;
			    xyzzy.sin6_scope_id = 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_have_sin6_scope_id=yes
else
  ac_cv_have_sin6_scope_id=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sin6_scope_id" >&5
$as_echo "$ac_cv_have_sin6_scope_id" >&6; }

    case "$ac_cv_have_sin6_scope_id" in
     yes)

$as_echo "#define ISC_PLATFORM_HAVESCOPEID /**/" >>confdefs.h

    esac
esac


# We need this check run even without ac_cv_isc_found_ipv6=yes

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
$as_echo_n "checking for in6addr_any... " >&6; }
if test "${isc_cv_have_in6addr_any+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


			#include <sys/types.h>
			#include <sys/socket.h>
			#include <netinet/in.h>
			$isc_netinetin6_hack
			$isc_netinet6in6_hack

int
main ()
{

			struct in6_addr in6;
			in6 = in6addr_any;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  isc_cv_have_in6addr_any=yes
else
  isc_cv_have_in6addr_any=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6addr_any" >&5
$as_echo "$isc_cv_have_in6addr_any" >&6; }

case "$isc_cv_have_in6addr_any" in
 no)

$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY /**/" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
$as_echo_n "checking for struct if_laddrconf... " >&6; }
if test "${ac_cv_isc_struct_if_laddrconf+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


			#include <sys/types.h>
			#include <net/if6.h>

int
main ()
{

			struct if_laddrconf a;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_isc_struct_if_laddrconf=yes
else
  ac_cv_isc_struct_if_laddrconf=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrconf" >&5
$as_echo "$ac_cv_isc_struct_if_laddrconf" >&6; }

case "$ac_cv_isc_struct_if_laddrconf" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF /**/" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
$as_echo_n "checking for struct if_laddrreq... " >&6; }
if test "${ac_cv_isc_struct_if_laddrreq+set}" = set; then :
  $as_echo_n "(cached) " >&6
else

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


			#include <sys/types.h>
			#include <net/if6.h>

int
main ()
{

			struct if_laddrreq a;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_isc_struct_if_laddrreq=yes
else
  ac_cv_isc_struct_if_laddrreq=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrreq" >&5
$as_echo "$ac_cv_isc_struct_if_laddrreq" >&6; }

case "$ac_cv_isc_struct_if_laddrreq" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ /**/" >>confdefs.h

esac

#
# Look for a sysctl call to get the list of network interfaces.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
$as_echo_n "checking for interface list sysctl... " >&6; }
if test "${ac_cv_iflist_sysctl+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <sys/param.h>
	    #include <sys/sysctl.h>
	    #include <sys/socket.h>
	    #ifdef NET_RT_IFLIST
	    found_rt_iflist
	    #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "found_rt_iflist" >/dev/null 2>&1; then :
  ac_cv_iflist_sysctl=yes
else
  ac_cv_iflist_sysctl=no

fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_iflist_sysctl" >&5
$as_echo "$ac_cv_iflist_sysctl" >&6; }

case "$ac_cv_iflist_sysctl" in
 yes)

$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h

esac

###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
$as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
# Check whether --enable-saveconfig was given.
if test "${enable_saveconfig+set}" = set; then :
  enableval=$enable_saveconfig; ntp_ok=$enableval
else
  ntp_ok=yes
fi

ntp_saveconfig_enabled=0
if test "$ntp_ok" = "yes"; then
    ntp_saveconfig_enabled=1

$as_echo "#define SAVECONFIG 1" >>confdefs.h

fi
 if test x$ntp_saveconfig_enabled = x1; then
  SAVECONFIG_ENABLED_TRUE=
  SAVECONFIG_ENABLED_FALSE='#'
else
  SAVECONFIG_ENABLED_TRUE='#'
  SAVECONFIG_ENABLED_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

###


	ac_expanded=`(
	    test "x$prefix" = xNONE && prefix="$ac_default_prefix"
	    test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
	    eval echo \""$sysconfdir"\"
        )`

cat >>confdefs.h <<_ACEOF
#define NTP_KEYSDIR "$ac_expanded"
_ACEOF



ac_config_files="$ac_config_files Makefile"

ac_config_files="$ac_config_files ElectricFence/Makefile"

ac_config_files="$ac_config_files adjtimed/Makefile"

ac_config_files="$ac_config_files clockstuff/Makefile"

ac_config_files="$ac_config_files include/Makefile"

ac_config_files="$ac_config_files include/isc/Makefile"

ac_config_files="$ac_config_files kernel/Makefile"

ac_config_files="$ac_config_files kernel/sys/Makefile"

ac_config_files="$ac_config_files libntp/Makefile"

ac_config_files="$ac_config_files libparse/Makefile"

ac_config_files="$ac_config_files ntpd/Makefile"

ac_config_files="$ac_config_files ntpdate/Makefile"

ac_config_files="$ac_config_files ntpdc/Makefile"

ac_config_files="$ac_config_files ntpdc/nl.pl"

ac_config_files="$ac_config_files ntpq/Makefile"

ac_config_files="$ac_config_files ntpsnmpd/Makefile"

ac_config_files="$ac_config_files parseutil/Makefile"

ac_config_files="$ac_config_files scripts/Makefile"

ac_config_files="$ac_config_files scripts/calc_tickadj"

ac_config_files="$ac_config_files scripts/checktime"

ac_config_files="$ac_config_files scripts/freq_adj"

ac_config_files="$ac_config_files scripts/html2man"

ac_config_files="$ac_config_files scripts/mkver"

ac_config_files="$ac_config_files scripts/ntp-wait"

ac_config_files="$ac_config_files scripts/ntpsweep"

ac_config_files="$ac_config_files scripts/ntptrace"

ac_config_files="$ac_config_files scripts/ntpver"

ac_config_files="$ac_config_files scripts/plot_summary"

ac_config_files="$ac_config_files scripts/summary"

ac_config_files="$ac_config_files util/Makefile"


subdirs="$subdirs sntp"


cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


 if test -n "$EXEEXT"; then
  am__EXEEXT_TRUE=
  am__EXEEXT_FALSE='#'
else
  am__EXEEXT_TRUE='#'
  am__EXEEXT_FALSE=
fi

if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  as_fn_error "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
  as_fn_error "conditional \"VPATH_HACK\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  as_fn_error "conditional \"INSTALL_LIBOPTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  as_fn_error "conditional \"NEED_LIBOPTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
  as_fn_error "conditional \"NTP_CROSSCOMPILE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
  as_fn_error "conditional \"SAVECONFIG_ENABLED\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

: ${CONFIG_STATUS=./config.status}
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false

SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH


# as_fn_error ERROR [LINENO LOG_FD]
# ---------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with status $?, using 1 if that was 0.
as_fn_error ()
{
  as_status=$?; test $as_status -eq 0 && as_status=1
  if test "$3"; then
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  fi
  $as_echo "$as_me: error: $1" >&2
  as_fn_exit $as_status
} # as_fn_error


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@@" || test $? -eq 1`
  }
fi # as_fn_arith


if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null


# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by ntp $as_me 4.2.6, which was
generated by GNU Autoconf 2.65.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to the package provider."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
ntp config.status 4.2.6
configured by $0, generated by GNU Autoconf 2.65,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2009 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    $as_echo "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    $as_echo "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
  --help | --hel | -h )
    $as_echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#
# INIT-COMMANDS
#
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "ElectricFence/Makefile") CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;;
    "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
    "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
    "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
    "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
    "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
    "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
    "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
    "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
    "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
    "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
    "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
    "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
    "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
    "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
    "scripts/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;;
    "scripts/checktime") CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;;
    "scripts/freq_adj") CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;;
    "scripts/html2man") CONFIG_FILES="$CONFIG_FILES scripts/html2man" ;;
    "scripts/mkver") CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;;
    "scripts/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;;
    "scripts/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;;
    "scripts/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace" ;;
    "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
    "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
    "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;

  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp=
  trap 'exit_status=$?
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then


ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$tmp/subs1.awk" &&
_ACEOF


{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""

}
{
  line = $ 0
  nfields = split(line, field, "@@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }

  print line
}

_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
_ACEOF

# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
s/:*\$(srcdir):*/:/
s/:*\${srcdir}:*/:/
s/:*@@srcdir@@:*/:/
s/^\([^=]*=[	 ]*\):*/\1/
s/:*$//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_t"; then
    break
  elif $ac_last_try; then
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$tmp/stdin" \
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@@datadir@@/p
/@@docdir@@/p
/@@infodir@@/p
/@@localedir@@/p
/@@mandir@@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@@datadir@@*|*@@docdir@@*|*@@infodir@@*|*@@localedir@@*|*@@mandir@@*)
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@@datadir@@&$datadir&g
  s&@@docdir@@&$docdir&g
  s&@@infodir@@&$infodir&g
  s&@@localedir@@&$localedir&g
  s&@@mandir@@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s|@@configure_input@@|$ac_sed_conf_input|;t t
s&@@top_builddir@@&$ac_top_builddir_sub&;t t
s&@@top_build_prefix@@&$ac_top_build_prefix&;t t
s&@@srcdir@@&$ac_srcdir&;t t
s&@@abs_srcdir@@&$ac_abs_srcdir&;t t
s&@@top_srcdir@@&$ac_top_srcdir&;t t
s&@@abs_top_srcdir@@&$ac_abs_top_srcdir&;t t
s&@@builddir@@&$ac_builddir&;t t
s&@@abs_builddir@@&$ac_abs_builddir&;t t
s&@@abs_top_builddir@@&$ac_abs_top_builddir&;t t
s&@@INSTALL@@&$ac_INSTALL&;t t
s&@@MKDIR_P@@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  || as_fn_error "could not create $ac_file" "$LINENO" 5

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&2;}

  rm -f "$tmp/stdin"
  case $ac_file in
  -) cat "$tmp/out" && rm -f "$tmp/out";;
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  esac \
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
    } >"$tmp/config.h" \
      || as_fn_error "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
$as_echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$tmp/config.h" "$ac_file" \
	|| as_fn_error "could not create $ac_file" "$LINENO" 5
    fi
  else
    $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error "could not create -" "$LINENO" 5
  fi
# Compute "$ac_file"'s index in $config_headers.
_am_arg="$ac_file"
_am_stamp_count=1
for _am_header in $config_headers :; do
  case $_am_header in
    $_am_arg | $_am_arg:* )
      break ;;
    * )
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  esac
done
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
	 X"$_am_arg" : 'X\(//\)$' \| \
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$_am_arg" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`/stamp-h$_am_stamp_count
 ;;

  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
  # are listed without --file.  Let's play safe and only enable the eval
  # if we detect the quoting.
  case $CONFIG_FILES in
  *\'*) eval set x "$CONFIG_FILES" ;;
  *)   set x $CONFIG_FILES ;;
  esac
  shift
  for mf
  do
    # Strip MF so we end up with the name of the file.
    mf=`echo "$mf" | sed -e 's/:.*$//'`
    # Check whether this is an Automake generated Makefile or not.
    # We used to match only the files named `Makefile.in', but
    # some people rename them; so instead we look at the file content.
    # Grep'ing the first line is not enough: some people post-process
    # each Makefile.in and add a new line on top of each file to say so.
    # Grep'ing the whole file is not good either: AIX grep has a line
    # limit of 2048, but all sed's we know have understand at least 4000.
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
      dirpart=`$as_dirname -- "$mf" ||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$mf" : 'X\(//\)[^/]' \| \
	 X"$mf" : 'X\(//\)$' \| \
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
    else
      continue
    fi
    # Extract the definition of DEPDIR, am__include, and am__quote
    # from the Makefile without running `make'.
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    test -z "$DEPDIR" && continue
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
    test -z "am__include" && continue
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
    # When using ansi2knr, U may be empty or an underscore; expand it
    U=`sed -n 's/^U = //p' < "$mf"`
    # Find all dependency output files, they are included files with
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
    # simplest approach to changing $(DEPDIR) to its actual value in the
    # expansion.
    for file in `sed -n "
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
      # Make sure the directory exists.
      test -f "$dirpart/$file" && continue
      fdir=`$as_dirname -- "$file" ||
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$file" : 'X\(//\)[^/]' \| \
	 X"$file" : 'X\(//\)$' \| \
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
      # echo "creating $dirpart/$file"
      echo '# dummy' > "$dirpart/$file"
    done
  done
}
 ;;
    "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
    "scripts/calc_tickadj":F) chmod +x scripts/calc_tickadj ;;
    "scripts/checktime":F) chmod +x scripts/checktime ;;
    "scripts/freq_adj":F) chmod +x scripts/freq_adj ;;
    "scripts/html2man":F) chmod +x scripts/html2man ;;
    "scripts/mkver":F) chmod +x scripts/mkver ;;
    "scripts/ntp-wait":F) chmod +x scripts/ntp-wait ;;
    "scripts/ntpsweep":F) chmod +x scripts/ntpsweep ;;
    "scripts/ntptrace":F) chmod +x scripts/ntptrace ;;
    "scripts/ntpver":F) chmod +x scripts/ntpver ;;
    "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
    "scripts/summary":F) chmod +x scripts/summary ;;

  esac
done # for ac_tag


as_fn_exit 0
_ACEOF
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || as_fn_exit $?
fi

#
# CONFIG_SUBDIRS section.
#
if test "$no_recursion" != yes; then

  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  # so they do not pile up.
  ac_sub_configure_args=
  ac_prev=
  eval "set x $ac_configure_args"
  shift
  for ac_arg
  do
    if test -n "$ac_prev"; then
      ac_prev=
      continue
    fi
    case $ac_arg in
    -cache-file | --cache-file | --cache-fil | --cache-fi \
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
      ac_prev=cache_file ;;
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
    | --c=*)
      ;;
    --config-cache | -C)
      ;;
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
      ac_prev=srcdir ;;
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
      ;;
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
      ac_prev=prefix ;;
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
      ;;
    --disable-option-checking)
      ;;
    *)
      case $ac_arg in
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
      esac
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
    esac
  done

  # Always prepend --prefix to ensure using the same prefix
  # in subdir configurations.
  ac_arg="--prefix=$prefix"
  case $ac_arg in
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  esac
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"

  # Pass --silent
  if test "$silent" = yes; then
    ac_sub_configure_args="--silent $ac_sub_configure_args"
  fi

  # Always prepend --disable-option-checking to silence warnings, since
  # different subdirs can have different --enable and --with options.
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"

  ac_popdir=`pwd`
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue

    # Do not complain, so a configure script can configure whichever
    # parts of a large source tree are present.
    test -d "$srcdir/$ac_dir" || continue

    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
    $as_echo "$ac_msg" >&6
    as_dir="$ac_dir"; as_fn_mkdir_p
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


    cd "$ac_dir"

    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      ac_sub_configure=$ac_srcdir/configure.gnu
    elif test -f "$ac_srcdir/configure"; then
      ac_sub_configure=$ac_srcdir/configure
    elif test -f "$ac_srcdir/configure.in"; then
      # This should be Cygnus configure.
      ac_sub_configure=$ac_aux_dir/configure
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
      ac_sub_configure=
    fi

    # The recursion is here.
    if test -n "$ac_sub_configure"; then
      # Make the cache file name correct relative to the subdirectory.
      case $cache_file in
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
      *) # Relative name.
	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
      esac

      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
      # The eval makes quoting arguments work.
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
	as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
    fi

    cd "$ac_popdir"
  done
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi

@


1.1.1.1
log
@Import ntp 4.2.6
@
text
@@


1.1.1.1.6.1
log
@sync with head
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.68 for ntp 4.2.6p5.
d7 2
a8 2
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
# Foundation, Inc.
a91 1
as_myself=
d174 1
a174 9
test \$(( 1 + 1 )) = 2 || exit 1

  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    PATH=/empty FPATH=/empty; export PATH FPATH
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
a216 1
	# Preserve -v and -x to the replacement shell.
d221 1
a221 7
	case $- in # ((((
	  *v*x* | *x*v* ) as_opts=-vx ;;
	  *v* ) as_opts=-v ;;
	  *x* ) as_opts=-x ;;
	  * ) as_opts= ;;
	esac
	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@@"}
d319 1
a319 1
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
d359 2
a360 2
# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
d363 1
a363 1
# script with STATUS, using 1 if that was 0.
d366 4
a369 4
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
d371 1
a371 1
  $as_echo "$as_me: error: $2" >&2
d528 3
d533 145
d683 1
a683 1
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
d702 2
a703 2
PACKAGE_VERSION='4.2.6p5'
PACKAGE_STRING='ntp 4.2.6p5'
a747 1
subdirs
d781 1
a781 1
PATH_TEST
d783 1
a783 7
PATH_PERL
OTOOL64
OTOOL
LIPO
NMEDIT
DSYMUTIL
MANIFEST_TOOL
a784 1
ac_ct_AR
d786 1
a786 2
DLLTOOL
OBJDUMP
d788 2
a789 8
NM
ac_ct_DUMPBIN
DUMPBIN
LD
FGREP
LIBTOOL
NTP_BINSUBDIR_IS_BIN_FALSE
NTP_BINSUBDIR_IS_BIN_TRUE
a792 1
LIBOPTS_DIR
d799 1
a799 2
POSIX_SHELL
SED
d900 5
a908 1
with_pic
a910 1
with_sysroot
d912 2
d1009 2
a1010 1
ac_subdirs_all='sntp'
d1072 2
a1073 3
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *=)   ac_optarg= ;;
  *)    ac_optarg=yes ;;
d1118 1
a1118 1
      as_fn_error $? "invalid feature name: $ac_useropt"
d1144 1
a1144 1
      as_fn_error $? "invalid feature name: $ac_useropt"
d1348 1
a1348 1
      as_fn_error $? "invalid package name: $ac_useropt"
d1364 1
a1364 1
      as_fn_error $? "invalid package name: $ac_useropt"
d1394 2
a1395 2
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information"
d1403 1
a1403 1
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
d1413 1
a1413 1
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d1421 1
a1421 1
  as_fn_error $? "missing argument to $ac_option"
d1427 1
a1427 1
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
d1450 1
a1450 1
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d1464 2
a1465 2
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used" >&2
d1480 1
a1480 1
  as_fn_error $? "working directory cannot be determined"
d1482 1
a1482 1
  as_fn_error $? "pwd does not report name of working directory"
d1521 1
a1521 1
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d1525 1
a1525 1
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
d1551 1
a1551 1
\`configure' configures ntp 4.2.6p5 to adapt to many kinds of systems.
d1565 1
a1565 1
  -q, --quiet, --silent   do not print \`checking ...' messages
d1621 1
a1621 1
     short | recursive ) echo "Configuration of ntp 4.2.6p5:";;
d1635 1
a1721 1

d1728 4
d1733 1
a1733 1
  --with-arlib            - deprecated, arlib not distributed
d1735 1
d1738 1
a1738 3
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
d1757 2
a1758 3
  YACC        The `Yet Another Compiler Compiler' implementation to use.
              Defaults to the first program found out of: `bison -y', `byacc',
              `yacc'.
d1829 2
a1830 2
ntp configure 4.2.6p5
generated by GNU Autoconf 2.68
d1832 1
a1832 1
Copyright (C) 2010 Free Software Foundation, Inc.
d1876 1
a1876 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d1902 1
a1902 1
  test $ac_status = 0; } > conftest.i && {
d1913 1
a1913 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d1926 1
a1926 1
  if eval \${$3+:} false; then :
d1929 1
a1929 1
if eval \${$3+:} false; then :
d1965 1
a1965 1
rm -f conftest.err conftest.i conftest.$ac_ext
d1992 1
a1992 1
if eval \${$3+:} false; then :
d2001 1
a2001 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d2042 1
a2042 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d2056 1
a2056 1
if eval \${$3+:} false; then :
d2074 1
a2074 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d2119 1
a2119 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d2133 1
a2133 1
if eval \${$3+:} false; then :
d2174 1
a2174 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d2351 1
a2351 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d2364 1
a2364 1
if eval \${$3+:} false; then :
d2419 1
a2419 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d2432 1
a2432 1
if eval \${$4+:} false; then :
d2476 1
a2476 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d2483 2
a2484 2
It was created by ntp $as_me 4.2.6p5, which was
generated by GNU Autoconf 2.68.  Invocation command line was
d2594 2
a2595 1
    $as_echo "## ---------------- ##
d2597 2
a2598 1
## ---------------- ##"
d2632 2
a2633 1
    $as_echo "## ----------------- ##
d2635 2
a2636 1
## ----------------- ##"
d2649 2
a2650 1
      $as_echo "## ------------------- ##
d2652 2
a2653 1
## ------------------- ##"
d2667 2
a2668 1
      $as_echo "## ----------- ##
d2670 2
a2671 1
## ----------- ##"
d2726 1
a2726 6
  # We do not want a PATH search for config.site.
  case $CONFIG_SITE in #((
    -*)  ac_site_file1=./$CONFIG_SITE;;
    */*) ac_site_file1=$CONFIG_SITE;;
    *)   ac_site_file1=./$CONFIG_SITE;;
  esac
d2741 1
a2741 5
    . "$ac_site_file" \
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "failed to load site script $ac_site_file
See \`config.log' for more details" "$LINENO" 5; }
d2817 1
a2817 1
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d2833 7
a2839 13
  if test -f "$ac_dir/install-sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f "$ac_dir/install.sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f "$ac_dir/shtool"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
d2842 1
a2842 1
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
d2954 1
a2954 1
	    { eval $c_varname=; unset $c_varname;}
d2957 2
d2965 1
a2965 3
	{ c_varname=; unset c_varname;}
	{ c_varname_list=; unset c_varname_list;}
	{ c_version=; unset c_version;}
a2967 2
    { ntp_cache_flush=; unset ntp_cache_flush;}

d2971 2
d2997 1
a2997 1
if ${ac_cv_path_install+:} false; then :
d3084 1
a3084 1
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
d3088 1
a3088 1
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
d3110 1
a3110 1
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
d3120 1
a3120 1
   as_fn_error $? "newly created file is older than distributed files!
d3174 1
a3174 1
if ${ac_cv_prog_STRIP+:} false; then :
d3214 1
a3214 1
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d3267 1
a3267 1
  if ${ac_cv_path_mkdir+:} false; then :
d3318 1
a3318 1
if ${ac_cv_prog_AWK+:} false; then :
d3358 1
a3358 1
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
d3366 1
a3366 1
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
d3400 1
a3400 1
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
d3416 1
a3416 1
 VERSION='4.2.6p5'
d3458 1
a3458 1
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
d3462 1
a3462 1
if ${ac_cv_build+:} false; then :
d3469 1
a3469 1
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
d3471 1
a3471 1
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
d3478 1
a3478 1
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
d3496 1
a3496 1
if ${ac_cv_host+:} false; then :
d3503 1
a3503 1
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
d3511 1
a3511 1
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
d3535 7
a3541 5
ntp_atom_ok=${ntp_atom_ok=no}
ntp_oncore_ok=${ntp_oncore_ok=no}
ntp_parse_ok=${ntp_parse_ok=no}
ntp_ripe_ncc_ok=${ntp_parse_ok=no}
ntp_jupiter_ok=${ntp_jupiter_ok=no}
d3615 1
a3615 1
if ${ac_cv_prog_CC+:} false; then :
d3655 1
a3655 1
if ${ac_cv_prog_ac_ct_CC+:} false; then :
d3708 1
a3708 1
if ${ac_cv_prog_CC+:} false; then :
d3748 1
a3748 1
if ${ac_cv_prog_CC+:} false; then :
d3807 1
a3807 1
if ${ac_cv_prog_CC+:} false; then :
d3851 1
a3851 1
if ${ac_cv_prog_ac_ct_CC+:} false; then :
d3905 2
a3906 2
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }
d4020 3
a4022 2
as_fn_error 77 "C compiler cannot create executables
See \`config.log' for more details" "$LINENO" 5; }
d4064 2
a4065 2
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details" "$LINENO" 5; }
d4122 1
a4122 1
as_fn_error $? "cannot run C compiled programs.
d4124 1
a4124 1
See \`config.log' for more details" "$LINENO" 5; }
d4135 1
a4135 1
if ${ac_cv_objext+:} false; then :
d4175 2
a4176 2
as_fn_error $? "cannot compute suffix of object files: cannot compile
See \`config.log' for more details" "$LINENO" 5; }
d4186 1
a4186 1
if ${ac_cv_c_compiler_gnu+:} false; then :
d4223 1
a4223 1
if ${ac_cv_prog_cc_g+:} false; then :
d4301 1
a4301 1
if ${ac_cv_prog_cc_c89+:} false; then :
d4400 1
a4400 1
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
d4536 1
a4536 1
  if ${ac_cv_prog_CPP+:} false; then :
d4566 1
a4566 1
rm -f conftest.err conftest.i conftest.$ac_ext
d4582 1
a4582 1
rm -f conftest.err conftest.i conftest.$ac_ext
d4586 1
a4586 1
rm -f conftest.i conftest.err conftest.$ac_ext
d4625 1
a4625 1
rm -f conftest.err conftest.i conftest.$ac_ext
d4641 1
a4641 1
rm -f conftest.err conftest.i conftest.$ac_ext
d4645 1
a4645 1
rm -f conftest.i conftest.err conftest.$ac_ext
d4651 2
a4652 2
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
d4664 1
a4664 1
if ${ac_cv_path_GREP+:} false; then :
d4713 1
a4713 1
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
d4727 1
a4727 1
if ${ac_cv_path_EGREP+:} false; then :
d4779 1
a4779 1
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
d4794 1
a4794 1
if ${ac_cv_header_stdc+:} false; then :
d4911 2
a4912 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d4924 1
a4924 1
if test "x$ac_cv_header_minix_config_h" = xyes; then :
d4946 1
a4946 1
if ${ac_cv_safe_to_define___extensions__+:} false; then :
a5013 6






d5024 1
a5024 1
if ${ac_cv_prog_CC+:} false; then :
d5064 1
a5064 1
if ${ac_cv_prog_ac_ct_CC+:} false; then :
d5117 1
a5117 1
if ${ac_cv_prog_CC+:} false; then :
d5157 1
a5157 1
if ${ac_cv_prog_CC+:} false; then :
d5216 1
a5216 1
if ${ac_cv_prog_CC+:} false; then :
d5260 1
a5260 1
if ${ac_cv_prog_ac_ct_CC+:} false; then :
d5314 2
a5315 2
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }
d5344 1
a5344 1
if ${ac_cv_c_compiler_gnu+:} false; then :
d5381 1
a5381 1
if ${ac_cv_prog_cc_g+:} false; then :
d5459 1
a5459 1
if ${ac_cv_prog_cc_c89+:} false; then :
d5558 1
a5558 1
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
d5692 1
a5692 1
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
d5821 1
a5821 1
  if ${ac_cv_prog_CPP+:} false; then :
d5851 1
a5851 1
rm -f conftest.err conftest.i conftest.$ac_ext
d5867 1
a5867 1
rm -f conftest.err conftest.i conftest.$ac_ext
d5871 1
a5871 1
rm -f conftest.i conftest.err conftest.$ac_ext
d5910 1
a5910 1
rm -f conftest.err conftest.i conftest.$ac_ext
d5926 1
a5926 1
rm -f conftest.err conftest.i conftest.$ac_ext
d5930 1
a5930 1
rm -f conftest.i conftest.err conftest.$ac_ext
d5936 2
a5937 2
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
d5952 1
a5952 1
if ${ac_cv_prog_YACC+:} false; then :
d6002 1
a6002 1
if ${ac_cv_prog_cc_c99+:} false; then :
d6177 1
a6177 1
if ${ac_cv_prog_cc_c89+:} false; then :
d6273 1
a6273 1
  if ${ac_cv_prog_cc_stdc+:} false; then :
d6300 11
d6337 1
a6337 1
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
d6339 49
a6387 32
    # allow ntp_os_flags to be preset to skip this stuff
    case "${ntp_os_cflags+set}" in
     set)
	;;
     *)
	ntp_os_cflags=""
	case "$host_os" in
	 aix[1-3]*)
	    ;;
	 aix4.[0-2]*)
	    # turn on additional headers
	    ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
	    ;;
	 aix5.3*)
	    # avoid circular dependencies in yp headers, and more
	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
	    ;;
	 aix*)
	    # avoid circular dependencies in yp headers
	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
	    ;;
	 amigaos)
	    ntp_os_cflags="-DSYS_AMIGA"
	    ;;
	 darwin*|macosx*|rhapsody*)
	    ntp_os_cflags="-D_P1003_1B_VISIBLE"
	    ;;
	 hpux10.*)		# at least for hppa2.0-hp-hpux10.20
	    case "$GCC" in
	     yes)
d6389 7
a6395 3
	     *)
		# use Ansi compiler on HPUX, and some -Wp magic
		ntp_os_cflags="-Ae -Wp,-H18816"
d6397 9
a6405 6
	    esac
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
	    ;;
	 hpux*)
	    case "$GCC" in
	     yes)
d6407 1
a6407 1
	     *)
d6409 11
a6419 25
		ntp_os_cflags="-Ae"
	    esac
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
	    ;;
	 irix6*)
	    case "$CC" in
	     cc)
		# do not use 64-bit compiler
		ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
	    esac
	    ;;
	 nextstep3)
	    ntp_os_cflags="-posix"
	    ;;
	 solaris1*|solaris2.[0-5]|solaris2.5.*)
	    ;;
	 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
	    ;;
	 solaris2*|sunos5*)
	    # turn on 64-bit file offset interface
	    ntp_os_cflags="-D_LARGEFILE64_SOURCE"
	    ;;
	 vxworks*)
	    case "$build" in
	     $host)
d6421 6
a6426 22
	     *)
		# Quick and dirty sanity check
		case "$VX_KERNEL" in
		 '')
		    as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
		esac
		ntp_os_cflags="-DSYS_VXWORKS"
	    esac
	    ;;
	esac
    esac
    case "$ntp_os_flags" in
     '')
	ntp_os_cflags_msg="none needed"
	;;
     *)
	ntp_os_cflags_msg="$ntp_os_cflags"
	CFLAGS="$CFLAGS $ntp_os_cflags"
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
$as_echo "$ntp_os_cflags_msg" >&6; }
    { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
d6431 1
a6431 1
if ${ntp_cv_dir_sep+:} false; then :
d6435 8
a6442 12
	case "$ntp_cv_dir_sep" in
	 '')
	    case "$target_os" in
	     *djgpp | *mingw32* | *emx*)
		ntp_cv_dir_sep="'\\'"
		;;
	     *)
		ntp_cv_dir_sep="'/'"
		;;
	    esac
	esac

d6445 2
a6446 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
$as_echo "$ntp_cv_dir_sep" >&6; }
d6449 1
a6449 1
#define DIR_SEP $ntp_cv_dir_sep
a6452 1

d6494 1
a6494 1
if test "x$ac_cv_type_pid_t" = xyes; then :
d6505 21
d6527 3
a6529 7
  ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
if eval \${$as_ac_Header+:} false; then :
  $as_echo_n "(cached) " >&6
d6531 8
a6538 4
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>
d6540 8
a6547 11
int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$as_ac_Header=yes"
d6549 5
a6553 1
  eval "$as_ac_Header=no"
d6555 2
a6556 9
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_ac_Header
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF
a6557 1
ac_header_dirent=$ac_hdr; break
d6559 1
d6561 1
a6561 6
done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
d6564 215
a6778 3
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6807 1
a6807 1
  if ${ac_cv_search_opendir+:} false; then :
d6811 1
a6811 1
if ${ac_cv_search_opendir+:} false; then :
d6830 1
a6830 1
if ${ac_cv_search_opendir+:} false; then :
d6864 1
a6864 1
  if ${ac_cv_search_opendir+:} false; then :
d6868 1
a6868 1
if ${ac_cv_search_opendir+:} false; then :
d6890 4
a6893 6
  for ac_header in  \
      dlfcn.h      errno.h       fcntl.h       libgen.h     \
      memory.h     netinet/in.h  setjmp.h      sys/mman.h   \
      sys/param.h  sys/poll.h    sys/procset.h sys/select.h \
      sys/socket.h sys/stropts.h sys/time.h    sys/un.h     \
      sys/wait.h   unistd.h      utime.h       sysexits.h
d6897 2
a6898 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d6908 9
a6916 12
  for ac_header in stdarg.h     varargs.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_arg_hdr=true;break
else
  lo_have_arg_hdr=false
fi
d6918 5
a6922 4
done


  for ac_header in string.h     strings.h
d6926 2
a6927 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d6931 1
a6931 3
 lo_have_str_hdr=true;break
else
  lo_have_str_hdr=false
d6936 3
d6940 4
a6943 1
  for ac_header in limits.h     sys/limits.h  values.h
d6947 2
a6948 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d6952 1
a6952 3
 lo_have_lim_hdr=true;break
else
  lo_have_lim_hdr=false
d6957 3
d6961 4
a6964 1
  for ac_header in inttypes.h   stdint.h
d6968 2
a6969 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d6973 1
a6973 3
 lo_have_typ_hdr=true;break
else
  lo_have_typ_hdr=false
d6978 3
d6996 2
a6997 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a7006 23
  # --------------------------------------------
  # Verify certain entries from AC_CHECK_HEADERS
  # --------------------------------------------
  for f in sys_types sys_mman sys_param sys_stat sys_wait \
           string errno stdlib memory setjmp
  do eval as_ac_var=\${ac_cv_header_${f}_h+set}
     test "${as_ac_var}" = set || {
       as_fn_error $? "You must have ${f}.h on your system" "$LINENO" 5
     }
  done

  ${lo_have_arg_hdr} || \
    as_fn_error $? "You must have stdarg.h or varargs.h on your system" "$LINENO" 5

  ${lo_have_str_hdr} || \
    as_fn_error $? "You must have string.h or strings.h on your system" "$LINENO" 5

  ${lo_have_lim_hdr} || \
    as_fn_error $? "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5

  ${lo_have_typ_hdr} || \
    as_fn_error $? "You must have inttypes.h or stdint.h on your system" "$LINENO" 5

d7011 1
a7011 1
if test "x$ac_cv_type_wchar_t" = xyes; then :
d7030 1
a7030 1
if test "x$ac_cv_type_wint_t" = xyes; then :
d7039 18
d7058 1
a7058 1
if test "x$ac_cv_type_int8_t" = xyes; then :
d7067 1
a7067 1
if test "x$ac_cv_type_uint8_t" = xyes; then :
d7076 1
a7076 1
if test "x$ac_cv_type_int16_t" = xyes; then :
d7085 1
a7085 1
if test "x$ac_cv_type_uint16_t" = xyes; then :
d7094 1
a7094 1
if test "x$ac_cv_type_int32_t" = xyes; then :
d7103 1
a7103 1
if test "x$ac_cv_type_uint32_t" = xyes; then :
d7112 1
a7112 1
if test "x$ac_cv_type_intptr_t" = xyes; then :
d7121 1
a7121 1
if test "x$ac_cv_type_uintptr_t" = xyes; then :
d7130 1
a7130 1
if test "x$ac_cv_type_uint_t" = xyes; then :
d7139 1
a7139 1
if test "x$ac_cv_type_pid_t" = xyes; then :
d7148 1
a7148 1
if test "x$ac_cv_type_size_t" = xyes; then :
d7167 1
a7167 1
if ${ac_cv_sizeof_charp+:} false; then :
d7176 3
a7178 2
as_fn_error 77 "cannot compute sizeof (char*)
See \`config.log' for more details" "$LINENO" 5; }
d7201 1
a7201 1
if ${ac_cv_sizeof_int+:} false; then :
d7210 3
a7212 2
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
d7235 1
a7235 1
if ${ac_cv_sizeof_long+:} false; then :
d7244 3
a7246 2
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
d7269 1
a7269 1
if ${ac_cv_sizeof_short+:} false; then :
d7278 3
a7280 2
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
d7303 1
a7303 1
if ${ac_cv_lib_gen_pathfind+:} false; then :
d7337 1
a7337 1
if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
d7349 1
a7349 1
if test "x$ac_cv_func_vprintf" = xyes; then :
d7355 1
a7355 1
if test "x$ac_cv_func__doprnt" = xyes; then :
d7368 1
a7368 1
if test "x$ac_cv_header_vfork_h" = xyes; then :
d7381 2
a7382 1
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d7393 1
a7393 1
if ${ac_cv_func_fork_works+:} false; then :
d7446 1
a7446 1
if ${ac_cv_func_vfork_works+:} false; then :
d7584 2
a7585 1
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d7593 12
a7604 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
d7607 24
a7630 45
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
d7632 8
a7639 8
      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
d7641 1
a7641 1
  ac_cv_path_SED=$SED
d7643 2
d7647 1
a7647 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed
d7649 7
a7655 15
  while :
  do
      POSIX_SHELL=`which bash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`which dash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=/usr/xpg4/bin/sh
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`/bin/sh -c '
          exec 2>/dev/null
          if ! true ; then exit 1 ; fi
          echo /bin/sh'`
      test -x "$POSIX_SHELL" && break
      as_fn_error $? "Cannot locate a working POSIX shell" "$LINENO" 5
  done
a7656 3
cat >>confdefs.h <<_ACEOF
#define POSIX_SHELL "${POSIX_SHELL}"
_ACEOF
d7658 13
d7672 2
d7676 13
d7690 2
a7691 1
  LIBOPTS_BUILD_BLOCKED=true
d7693 36
d7730 35
a7764 1
  NEED_LIBOPTS_DIR=''
a7765 10
  # Check whether --enable-local-libopts was given.
if test "${enable_local_libopts+set}" = set; then :
  enableval=$enable_local_libopts;
    if test x$enableval = xyes ; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
       NEED_LIBOPTS_DIR=true
    fi
d7767 14
d7783 1
a7783 4
  # Check whether --enable-libopts-install was given.
if test "${enable_libopts_install+set}" = set; then :
  enableval=$enable_libopts_install;
fi
d7785 4
a7788 3
   if test "X${enable_libopts_install}" != Xno; then
  INSTALL_LIBOPTS_TRUE=
  INSTALL_LIBOPTS_FALSE='#'
a7789 3
  INSTALL_LIBOPTS_TRUE='#'
  INSTALL_LIBOPTS_FALSE=
fi
d7791 2
a7793 7
  if test -z "${NEED_LIBOPTS_DIR}" ; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
$as_echo_n "checking whether autoopts-config can be found... " >&6; }

# Check whether --with-autoopts-config was given.
if test "${with_autoopts_config+set}" = set; then :
  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
d7795 11
a7805 4
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
$as_echo_n "checking whether autoopts-config is specified... " >&6; }
if ${lo_cv_with_autoopts_config+:} false; then :
  $as_echo_n "(cached) " >&6
d7807 4
a7810 5
  if autoopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=autoopts-config
        elif libopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=libopts-config
        else lo_cv_with_autoopts_config=no ; fi
d7812 1
a7812 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
$as_echo "$lo_cv_with_autoopts_config" >&6; }
d7815 14
a7828 1
 # end of AC_ARG_WITH
d7830 3
a7832 1
     if ${lo_cv_test_autoopts+:} false; then :
d7836 9
a7844 13
        if test -z "${lo_cv_with_autoopts_config}" \
                -o X"${lo_cv_with_autoopts_config}" = Xno
        then
           if autoopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=autoopts-config
           elif libopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=libopts-config
           else lo_cv_with_autoopts_config=false ; fi
        fi
        lo_cv_test_autoopts=`
            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
        then lo_cv_test_autoopts=no ; fi
d7847 8
a7854 3
 # end of CACHE_VAL
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
$as_echo "${lo_cv_test_autoopts}" >&6; }
a7855 12
     if test "X${lo_cv_test_autoopts}" != Xno
     then
        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
     else
        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
        NEED_LIBOPTS_DIR=true
     fi
  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
    NEED_LIBOPTS_DIR=''
d7857 31
a7887 3
   if test -n "${NEED_LIBOPTS_DIR}"; then
  NEED_LIBOPTS_TRUE=
  NEED_LIBOPTS_FALSE='#'
d7889 7
a7895 2
  NEED_LIBOPTS_TRUE='#'
  NEED_LIBOPTS_FALSE=
d7897 6
d7904 1
d7906 1
a7907 1
  LIBOPTS_DIR=sntp/libopts
d7910 1
a7910 1
# end of AC_DEFUN of LIBOPTS_CHECK_COMMON
d7912 5
a7916 1
  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
d7918 2
d7921 20
a7940 6
for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
d7942 9
d7953 10
a7963 1
done
a7964 8
for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d7966 1
a7966 2
fi
done
d7968 3
a7970 4
if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
d7973 1
d7975 2
a7976 1
  ac_cv_func_fork_works=cross
d7980 4
a7983 11
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
d7986 1
a7986 1
  ac_cv_func_fork_works=yes
d7988 1
a7988 1
  ac_cv_func_fork_works=no
d7993 1
d7996 15
a8010 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }
d8012 6
a8017 21
else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
d8020 1
d8022 2
a8023 1
  ac_cv_func_vfork_works=cross
d8027 19
a8045 33
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}
d8047 2
a8048 5
int
main ()
{
  pid_t parent = getpid ();
  pid_t child;
d8050 1
a8050 1
  sparc_address_test (0);
d8052 1
a8052 1
  child = vfork ();
d8054 1
a8054 18
  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);
d8056 1
a8056 8
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;
a8057 5
    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0
a8058 2
	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status
d8060 1
a8060 2
	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()
d8062 8
a8069 8
	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
d8071 1
a8071 6
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

d8073 2
a8074 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }
a8075 5
fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
d8077 1
d8079 2
a8080 1
if test "x$ac_cv_func_vfork_works" = xyes; then
d8082 1
a8082 1
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
d8084 1
a8084 1
else
a8085 1
$as_echo "#define vfork fork" >>confdefs.h
a8086 2
fi
if test "x$ac_cv_func_fork_works" = xyes; then
a8087 1
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
d8089 1
a8089 1
fi
d8091 4
a8094 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d8099 4
d8107 1
a8107 1
#warning foo
d8113 1
a8113 1
  ntp_cv_cpp_warning=yes
d8115 13
a8127 1
  ntp_cv_cpp_warning=no
d8129 2
d8132 1
a8132 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a8134 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)
d8136 14
a8149 1
$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
d8151 1
a8151 1
esac
d8153 4
a8156 8
case "$GCC" in
 yes)
    SAVED_CFLAGS_NTP="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
d8160 12
d8173 1
d8177 5
a8181 2

  ;
d8185 2
a8186 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Wstrict_overflow=yes
d8188 5
a8192 1
  ntp_cv_gcc_Wstrict_overflow=no
d8195 6
a8200 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d8203 7
a8209 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS_NTP -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
d8212 1
a8212 2

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d8214 2
d8220 2
a8221 1

d8227 1
a8227 1
  ntp_cv_gcc_Winit_self=yes
d8229 12
a8240 1
  ntp_cv_gcc_Winit_self=no
d8242 1
a8243 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d8245 11
d8257 29
d8287 2
a8288 9
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS_NTP"
    { SAVED_CFLAGS_NTP=; unset SAVED_CFLAGS_NTP;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS.
    #
esac
a8289 4
# Expose a cross-compilation indicator to makefiles
 if test $build != $host; then
  NTP_CROSSCOMPILE_TRUE=
  NTP_CROSSCOMPILE_FALSE='#'
d8291 4
a8294 2
  NTP_CROSSCOMPILE_TRUE='#'
  NTP_CROSSCOMPILE_FALSE=
d8296 5
d8302 1
a8303 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
$as_echo_n "checking for bin subdirectory... " >&6; }

# Check whether --with-binsubdir was given.
if test "${with_binsubdir+set}" = set; then :
  withval=$with_binsubdir; use_binsubdir="$withval"
d8305 8
a8312 1
  use_binsubdir="bin"
d8314 29
d8344 2
d8347 11
a8357 11
case "$use_binsubdir" in
 bin)
    ;;
 sbin)
    ;;
 *)
    as_fn_error $? "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
$as_echo "$use_binsubdir" >&6; }
d8359 1
a8359 1
BINSUBDIR=$use_binsubdir
a8360 6
 if test "bin" = "$BINSUBDIR"; then
  NTP_BINSUBDIR_IS_BIN_TRUE=
  NTP_BINSUBDIR_IS_BIN_FALSE='#'
else
  NTP_BINSUBDIR_IS_BIN_TRUE='#'
  NTP_BINSUBDIR_IS_BIN_FALSE=
d8364 15
a8378 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
$as_echo_n "checking for deprecated --with-arlib... " >&6; }
a8379 5
# Check whether --with-arlib was given.
if test "${with_arlib+set}" = set; then :
  withval=$with_arlib; ans=$withval
else
  ans=no
d8382 1
a8382 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
a8383 5
case "$ans" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&5
$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&2;}
esac
d8385 9
d8395 14
a8408 5
# Check whether --with-rpath was given.
if test "${with_rpath+set}" = set; then :
  withval=$with_rpath; ans=$withval
else
  ans=x
d8411 1
a8411 28
case "$ans" in
 no)
    need_dash_r=
    ;;
 yes)
    need_dash_r=1
    ;;
esac
# HMS: Why isn't this $build?
# Well, that depends on if we need this for the build toolchain or
# for info in the host executable...
# I still have no idea which way this should go, but nobody has complained.
case "$host" in
 *-*-netbsd*)
    case "$need_dash_r" in
     no) ;;
     *)  need_dash_r=1
	 ;;
    esac
    ;;
 *-*-solaris*)
    case "$need_dash_r" in
     no) ;;
     *)  need_dash_r=1
	 ;;
    esac
    ;;
esac
d8413 2
a8414 22
for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
d8416 16
a8432 2
  done
IFS=$as_save_IFS
d8434 17
a8450 9
fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
a8452 2

  test -n "$AWK" && break
d8455 22
a8476 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
d8478 1
a8478 17
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
d8480 2
d8484 5
a8488 1
rm -f conftest*
d8490 3
a8492 24
case "$GCC" in
 yes)
    CFLAGS="$CFLAGS -Wall"
    # CFLAGS="$CFLAGS -Wcast-align"
    CFLAGS="$CFLAGS -Wcast-qual"
    # CFLAGS="$CFLAGS -Wconversion"
    # CFLAGS="$CFLAGS -Werror"
    # CFLAGS="$CFLAGS -Wextra"
    # CFLAGS="$CFLAGS -Wfloat-equal"
    CFLAGS="$CFLAGS -Wmissing-prototypes"
    CFLAGS="$CFLAGS -Wpointer-arith"
    CFLAGS="$CFLAGS -Wshadow"
    # CFLAGS="$CFLAGS -Wtraditional"
    # CFLAGS="$CFLAGS -Wwrite-strings"
    case "$ntp_cv_gcc_Winit_self" in
     yes)
	CFLAGS="$CFLAGS -Winit-self"
    esac
    case "$ntp_cv_gcc_Wstrict_overflow" in
     yes)
	CFLAGS="$CFLAGS -Wstrict-overflow"
    esac
    # -W[no-]strict-prototypes is added later depending on OpenSSL
esac
a8493 1
ac_busted_vpath_in_make=no
d8495 1
a8495 14
case "$build" in
 *-*-irix6.1*)	# 64 bit only
    # busted vpath?
    ;;
 *-*-irix6*)	# 6.2 (and later?)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-solaris2.5.1)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-unicosmp*)
    ac_busted_vpath_in_make=yes
    ;;
esac
d8497 8
a8504 11
case "$ac_busted_vpath_in_make$srcdir" in
 no*) ;;
 yes.) ;;
 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
     '')
	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
	;;
     *) ;;
    esac
    ;;
esac
d8506 2
d8509 3
d8514 1
a8514 5
case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac
d8517 14
d8532 1
a8532 2
macro_version='2.4'
macro_revision='1.3293'
d8534 2
d8537 3
d8542 3
d8546 3
d8551 3
d8555 3
d8560 3
d8564 3
d8569 3
a8571 1
ltmain="$ac_aux_dir/ltmain.sh"
d8573 3
a8575 3
# Backslashify metacharacters that are still active within
# double-quoted strings.
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a8576 2
# Same as above, but do not quote variable references.
double_quote_subst='s/\(["`\\]\)/\\\1/g'
d8578 3
a8580 3
# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d8582 3
a8584 2
# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
a8585 2
# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'
a8586 21
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
$as_echo_n "checking how to print strings... " >&6; }
# Test print first, because it will be a builtin if present.
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='print -r --'
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='printf %s\n'
else
  # Use this function as a fallback that always works.
  func_fallback_echo ()
  {
    eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
  }
  ECHO='func_fallback_echo'
d8588 6
a8594 6
# func_echo_all arg...
# Invoke $ECHO with all args, space-separated.
func_echo_all ()
{
    $ECHO ""
}
d8596 3
a8598 8
case "$ECHO" in
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
$as_echo "printf" >&6; } ;;
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
$as_echo "print -r" >&6; } ;;
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
$as_echo "cat" >&6; } ;;
esac
d8600 3
d8605 3
d8609 3
d8614 3
d8618 3
d8623 3
d8627 3
d8632 1
d8635 10
a8644 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
d8647 1
a8647 45
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
a8648 8
      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
d8650 9
a8658 1
  ac_cv_path_SED=$SED
d8662 2
a8663 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed
a8664 2
test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"
d8667 3
d8672 10
d8683 11
d8695 3
d8701 3
d8706 7
a8712 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if ${ac_cv_path_FGREP+:} false; then :
d8715 1
a8715 42
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  ac_path_FGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in fgrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
# Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
a8716 8
      $ac_path_FGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_FGREP"; then
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
d8718 9
a8726 1
  ac_cv_path_FGREP=$FGREP
a8728 1
   fi
d8730 2
a8731 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"
a8733 2
test -z "$GREP" && GREP=grep

d8735 3
d8740 10
d8751 11
d8763 3
d8769 3
d8775 12
d8788 30
d8819 1
d8821 1
d8823 7
d8831 2
d8834 1
a8835 5
# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
a8837 38
ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
d8839 1
a8839 56
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld
d8842 7
d8850 1
d8852 1
d8854 9
d8864 2
d8867 4
a8870 5


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if ${lt_cv_path_NM+:} false; then :
d8873 19
a8891 3
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
d8893 1
a8893 38
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
d8895 2
a8897 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$DUMPBIN"; then :
    # Let the user override the test.
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in dumpbin "link -dump"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DUMPBIN+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d8900 3
a8902 5
fi
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
d8904 1
a8904 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d8906 12
a8917 4


    test -n "$DUMPBIN" && break
  done
d8919 5
a8923 9
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in dumpbin "link -dump"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
d8926 2
a8927 2
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d8929 73
a9001 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d9003 5
a9007 10
fi
fi
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9009 2
d9012 2
a9013 2
  test -n "$ac_ct_DUMPBIN" && break
done
d9015 13
a9027 11
  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DUMPBIN=$ac_ct_DUMPBIN
  fi
d9030 3
a9032 9
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
    *COFF*)
      DUMPBIN="$DUMPBIN -symbols"
      ;;
    *)
      DUMPBIN=:
      ;;
    esac
  fi
d9034 5
a9038 3
  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
a9039 1
test -z "$NM" && NM=nm
d9041 1
d9043 1
d9045 1
d9047 1
d9049 2
d9052 1
a9052 22
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if ${lt_cv_nm_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }
a9053 9
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
d9056 13
a9068 8
# find the maximum length of command line arguments
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if ${lt_cv_sys_max_cmd_len+:} false; then :
  $as_echo_n "(cached) " >&6
else
    i=0
  teststring="ABCD"
d9070 4
a9073 8
  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;
a9074 6
  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;
d9076 7
a9082 10
  cygwin* | mingw* | cegcc*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;
d9084 1
a9084 4
  mint*)
    # On MiNT this can take a long time and run out of memory.
    lt_cv_sys_max_cmd_len=8192;
    ;;
d9086 1
a9086 5
  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;
d9088 9
a9096 13
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;
d9098 2
a9099 4
  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;
d9101 15
a9115 56
  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n "$lt_cv_sys_max_cmd_len"; then
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    else
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      for i in 1 2 3 4 5 6 7 8 ; do
        teststring=$teststring$teststring
      done
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
      # If test is not a shell built-in, we'll probably end up computing a
      # maximum length that is only half of the actual maximum length, but
      # we can't tell.
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
	      test $i != 17 # 1/2 MB should be enough
      do
        i=`expr $i + 1`
        teststring=$teststring$teststring
      done
      # Only check the string length outside the loop.
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
      teststring=
      # Add a significant safety factor because C++ compilers can tack on
      # massive amounts of additional arguments before passing them to the
      # linker.  It appears as though 1/2 is a usable value.
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    fi
    ;;
  esac
d9117 2
a9118 1
fi
d9120 6
a9125 3
if test -n $lt_cv_sys_max_cmd_len ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
d9127 4
a9130 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
a9131 1
max_cmd_len=$lt_cv_sys_max_cmd_len
d9133 3
d9137 61
d9199 5
d9205 1
d9207 1
d9209 18
a9226 3
: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}
d9228 8
a9235 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,b/c, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }
d9237 5
d9243 2
a9244 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }
d9246 2
d9249 8
a9256 2
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
d9258 4
a9261 1
  lt_unset=false
d9264 18
d9283 2
d9286 1
d9288 1
a9289 12
# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
esac
d9291 5
d9297 2
d9300 14
d9316 3
d9320 2
d9323 1
d9325 1
d9327 7
a9333 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
if ${lt_cv_to_host_file_cmd+:} false; then :
d9336 16
a9351 31
  case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
        ;;
    esac
    ;;
  *-*-cygwin* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_noop
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
        ;;
    esac
    ;;
  * ) # unhandled hosts (and "normal" native builds)
    lt_cv_to_host_file_cmd=func_convert_file_noop
    ;;
esac
d9354 1
d9356 11
a9366 3
to_host_file_cmd=$lt_cv_to_host_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
d9369 9
d9379 2
d9382 3
d9386 6
a9391 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
if ${lt_cv_to_tool_file_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
d9393 1
a9393 11
  #assume ordinary cross tools, or native build.
lt_cv_to_tool_file_cmd=func_convert_file_noop
case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
        ;;
    esac
    ;;
esac
d9396 1
a9397 3
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
d9399 10
d9410 8
d9420 2
d9423 3
a9425 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
$as_echo_n "checking for $LD option to reload object files... " >&6; }
if ${lt_cv_ld_reload_flag+:} false; then :
  $as_echo_n "(cached) " >&6
d9427 1
a9427 1
  lt_cv_ld_reload_flag='-r'
d9429 6
a9434 13
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
$as_echo "$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    if test "$GCC" != yes; then
      reload_cmds=false
    fi
d9436 2
a9437 6
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
d9440 3
d9445 9
d9455 2
d9458 5
d9465 1
d9467 3
a9471 25
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OBJDUMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d9473 3
a9475 6
fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
d9477 1
a9477 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d9480 44
d9525 4
a9528 5
fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
d9531 1
a9531 1
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
d9534 2
a9535 2
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
d9544 1
a9544 1
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
d9554 4
a9557 4
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
d9563 22
a9584 8
  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
d9586 6
a9591 2
    OBJDUMP=$ac_ct_OBJDUMP
  fi
d9593 3
a9595 1
  OBJDUMP="$ac_cv_prog_OBJDUMP"
a9597 1
test -z "$OBJDUMP" && OBJDUMP=objdump
d9599 32
d9632 1
d9634 14
d9649 11
d9665 19
a9683 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
if ${lt_cv_deplibs_check_method+:} false; then :
  $as_echo_n "(cached) " >&6
d9685 2
a9686 13
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
a9687 4
case $host_os in
aix[4-9]*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9689 22
a9710 3
beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a9711 5
bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;
d9713 33
a9745 18
cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    # Keep this pattern in sync with the one in func_win32_libid.
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
d9747 16
a9762 1
  ;;
d9764 1
a9764 9
cegcc*)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9766 3
a9768 15
freebsd* | dragonfly*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;
a9769 3
gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9771 6
a9776 3
haiku*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9778 26
a9803 10
hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
d9806 2
a9807 2
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
d9810 216
d10028 16
a10043 3
interix[3-9]*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d10057 1
a10057 1
linux* | k*bsd*-gnu | kopensolaris*-gnu)
d10062 1
a10062 1
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
d10075 2
a10076 2
*nto* | *qnx*)
  lt_cv_deplibs_check_method=pass_all
d10080 1
a10080 1
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d10091 1
a10091 1
rdos*)
d10099 1
a10099 5
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.3*)
a10119 3
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
d10123 1
a10123 1
tpf*)
a10130 15

file_magic_glob=
want_nocaseglob=no
if test "$build" = "$host"; then
  case $host_os in
  mingw* | pw32*)
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
      want_nocaseglob=yes
    else
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
    fi
    ;;
  esac
fi

d10138 2
d10141 2
d10144 4
d10149 1
d10151 58
d10210 60
d10271 2
d10274 3
d10278 16
d10295 8
d10304 1
d10306 1
d10309 7
d10317 1
d10319 1
d10322 1
d10324 4
a10327 6
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DLLTOOL+:} false; then :
d10330 18
a10347 17
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d10349 10
a10358 10
fi
fi
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d10360 5
d10366 47
a10412 27
fi
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a10414 9
fi
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d10416 3
a10418 11
  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DLLTOOL=$ac_ct_DLLTOOL
  fi
d10420 2
a10421 1
  DLLTOOL="$ac_cv_prog_DLLTOOL"
a10423 1
test -z "$DLLTOOL" && DLLTOOL=dlltool
d10427 6
d10434 2
d10437 2
d10440 2
d10443 2
d10446 2
d10449 1
a10449 8

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_sharedlib_from_linklib_cmd='unknown'

d10451 28
a10478 11
cygwin* | mingw* | pw32* | cegcc*)
  # two different shell functions defined in ltmain.sh
  # decide which to use based on capabilities of $DLLTOOL
  case `$DLLTOOL --help 2>&1` in
  *--identify-strict*)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
    ;;
  *)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
    ;;
  esac
d10480 2
a10481 3
*)
  # fallback: assume linklib IS sharedlib
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
d10485 7
a10491 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
d10493 5
d10499 2
d10502 2
d10505 2
d10508 2
d10511 183
d10696 2
a10697 4
  for ac_prog in ar
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
d10700 1
a10700 1
if ${ac_cv_prog_AR+:} false; then :
d10713 1
a10713 1
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
a10732 2
    test -n "$AR" && break
  done
d10734 1
a10734 1
if test -z "$AR"; then
d10736 2
a10737 4
  for ac_prog in ar
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
d10740 1
a10740 1
if ${ac_cv_prog_ac_ct_AR+:} false; then :
d10753 1
a10753 1
    ac_cv_prog_ac_ct_AR="$ac_prog"
a10771 4

  test -n "$ac_ct_AR" && break
done

a10782 63
fi

: ${AR=ar}
: ${AR_FLAGS=cru}











{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @@FILE support" >&5
$as_echo_n "checking for archiver @@FILE support... " >&6; }
if ${lt_cv_ar_at_file+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ar_at_file=no
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  echo conftest.$ac_objext > conftest.lst
      lt_ar_try='$AR $AR_FLAGS libconftest.a @@conftest.lst >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
	# Ensure the archiver fails upon bogus file names.
	rm -f conftest.$ac_objext libconftest.a
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	if test "$ac_status" -ne 0; then
          lt_cv_ar_at_file=@@
        fi
      fi
      rm -f conftest.* libconftest.a

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
$as_echo "$lt_cv_ar_at_file" >&6; }

if test "x$lt_cv_ar_at_file" = xno; then
  archiver_list_spec=
d10784 1
a10784 1
  archiver_list_spec=$lt_cv_ar_at_file
a10786 6






d10788 2
a10789 2
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
d10792 1
a10792 1
if ${ac_cv_prog_STRIP+:} false; then :
d10795 2
a10796 2
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d10805 1
a10805 1
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
d10815 4
a10818 4
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
d10826 4
a10829 4
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
d10832 1
a10832 1
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d10835 2
a10836 2
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d10845 1
a10845 1
    ac_cv_prog_ac_ct_STRIP="strip"
d10855 4
a10858 4
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
d10864 2
a10865 2
  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
d10873 1
a10873 1
    STRIP=$ac_ct_STRIP
d10876 1
a10876 1
  STRIP="$ac_cv_prog_STRIP"
a10878 7
test -z "$STRIP" && STRIP=:






d10880 2
a10881 2
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
d10884 1
a10884 1
if ${ac_cv_prog_RANLIB+:} false; then :
d10887 2
a10888 2
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
d10897 1
a10897 1
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
d10907 4
a10910 4
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
d10918 4
a10921 4
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
d10924 1
a10924 1
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
d10927 2
a10928 2
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d10937 1
a10937 1
    ac_cv_prog_ac_ct_RANLIB="ranlib"
d10947 4
a10950 4
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
d10956 2
a10957 2
  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
d10965 1
a10965 1
    RANLIB=$ac_ct_RANLIB
d10968 1
a10968 1
  RANLIB="$ac_cv_prog_RANLIB"
a10970 4
test -z "$RANLIB" && RANLIB=:



d10972 2
d10975 16
d10993 1
a10993 1
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d11000 1
a11000 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
d11003 1
a11003 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
d11009 9
a11017 20
case $host_os in
  darwin*)
    lock_old_archive_extraction=yes ;;
  *)
    lock_old_archive_extraction=no ;;
esac














d11020 32
d11053 8
d11062 12
d11075 8
d11084 30
d11115 8
d11124 12
d11137 8
d11146 4
d11151 3
d11155 2
d11158 4
d11163 1
d11166 6
d11173 1
d11175 8
d11185 2
d11188 3
d11192 2
d11195 2
a11201 3
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

d11206 6
a11211 6
# Check for command to grab the raw symbol name followed by C symbol from nm.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  $as_echo_n "(cached) " >&6
else
d11213 5
a11217 2
# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
a11218 2
# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'
d11220 15
a11234 85
# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32* | cegcc*)
  symcode='[ABCDGISTW]'
  ;;
hpux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris*)
  symcode='[BDRT]'
  ;;
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac

# Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently,
# so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"

# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"

# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# Try without a prefix underscore, then with it.
for ac_symprfx in "" "_"; do

  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"

  # Write the raw and C identifiers.
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
    # Fake it for dumpbin and say T for any non-static function
    # and D for any global variable.
    # Also find C++ and __fastcall symbols from MSVC++,
    # which start with @@ or ?.
    lt_cv_sys_global_symbol_pipe="$AWK '"\
"     {last_section=section; section=\$ 3};"\
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
"     \$ 0!~/External *\|/{next};"\
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
"     {if(hide[section]) next};"\
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
"     s[1]~/^[@@?]/{print s[1], s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print t[1], substr(t[1],length(prfx))}"\
"     ' prfx=^$ac_symprfx"
d11236 3
a11238 1
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
d11240 1
a11240 1
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
a11241 2
  # Check to see that the pipe works correctly.
  pipe_works=no
d11243 29
a11271 13
  rm -f conftest*
  cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(void);
void nm_test_func(void){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
_LT_EOF
d11273 3
a11275 18
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi
d11277 5
a11281 15
      # Make sure that we snagged all the symbols we need.
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<_LT_EOF > conftest.$ac_ext
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
/* DATA imports from DLLs on WIN32 con't be const, because runtime
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
# define LT_DLSYM_CONST
#elif defined(__osf__)
/* This system does not cope well with relocations in const data.  */
# define LT_DLSYM_CONST
#else
# define LT_DLSYM_CONST const
#endif
a11282 3
#ifdef __cplusplus
extern "C" {
#endif
a11283 3
_LT_EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
a11284 1
	  cat <<_LT_EOF >> conftest.$ac_ext
d11286 1
a11286 13
/* The mapping between symbol names and symbols.  */
LT_DLSYM_CONST struct {
  const char *name;
  void       *address;
}
lt__PROGRAM__LTX_preloaded_symbols[] =
{
  { "@@PROGRAM@@", (void *) 0 },
_LT_EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
	  cat <<\_LT_EOF >> conftest.$ac_ext
  {0, (void *) 0}
};
d11288 2
a11289 6
/* This works around a problem in FreeBSD linker */
#ifdef FREEBSD_WORKAROUND
static const void *lt_preloaded_setup() {
  return lt__PROGRAM__LTX_preloaded_symbols;
}
#endif
a11290 33
#ifdef __cplusplus
}
#endif
_LT_EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_globsym_save_LIBS=$LIBS
	  lt_globsym_save_CFLAGS=$CFLAGS
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
	    pipe_works=yes
	  fi
	  LIBS=$lt_globsym_save_LIBS
	  CFLAGS=$lt_globsym_save_CFLAGS
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -rf conftest* conftst*
d11292 33
a11324 7
  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done
d11327 2
d11330 2
a11331 6
if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
d11333 1
a11333 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
a11335 5
# Response file support.
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  nm_file_list_spec='@@'
elif $NM --help 2>/dev/null | grep '[@@]FILE' >/dev/null; then
  nm_file_list_spec='@@'
d11338 3
d11342 2
d11345 3
d11349 8
d11358 6
d11365 3
d11369 5
d11375 5
d11381 6
d11388 5
d11394 12
d11407 32
d11440 15
d11456 5
d11462 4
d11467 21
d11489 5
d11495 4
d11500 10
d11511 5
d11517 5
d11523 6
d11530 4
d11535 4
d11540 5
d11546 2
d11549 4
a11552 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
$as_echo_n "checking for sysroot... " >&6; }
d11554 4
a11557 3
# Check whether --with-sysroot was given.
if test "${with_sysroot+set}" = set; then :
  withval=$with_sysroot;
d11559 29
a11587 1
  with_sysroot=no
d11589 2
d11592 9
d11602 9
a11610 17
lt_sysroot=
case ${with_sysroot} in #(
 yes)
   if test "$GCC" = yes; then
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   fi
   ;; #(
 /*)
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   ;; #(
 no|'')
   ;; #(
 *)
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
$as_echo "${with_sysroot}" >&6; }
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   ;;
d11613 45
a11657 2
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
$as_echo "${lt_sysroot:-no}" >&6; }
d11659 3
d11664 21
d11686 2
d11689 46
a11734 4
# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then :
  enableval=$enable_libtool_lock;
fi
d11736 13
a11748 1
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d11750 24
a11773 18
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.$ac_objext` in
      *ELF-32*)
	HPUX_IA64_MODE="32"
	;;
      *ELF-64*)
	HPUX_IA64_MODE="64"
	;;
a11774 39
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    if test "$lt_cv_prog_gnu_ld" = yes; then
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -melf32bsmip"
	  ;;
	*N32*)
	  LD="${LD-ld} -melf32bmipn32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -melf64bmip"
	;;
      esac
    else
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -32"
	  ;;
	*N32*)
	  LD="${LD-ld} -n32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -64"
	  ;;
      esac
    fi
  fi
  rm -rf conftest*
  ;;
d11776 7
a11782 52
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
      *32-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_i386_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_i386"
	    ;;
	  ppc64-*linux*|powerpc64-*linux*)
	    LD="${LD-ld} -m elf32ppclinux"
	    ;;
	  s390x-*linux*)
	    LD="${LD-ld} -m elf_s390"
	    ;;
	  sparc64-*linux*)
	    LD="${LD-ld} -m elf32_sparc"
	    ;;
	esac
	;;
      *64-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_x86_64_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_x86_64"
	    ;;
	  ppc*-*linux*|powerpc*-*linux*)
	    LD="${LD-ld} -m elf64ppc"
	    ;;
	  s390*-*linux*|s390*-*tpf*)
	    LD="${LD-ld} -m elf64_s390"
	    ;;
	  sparc*-*linux*)
	    LD="${LD-ld} -m elf64_sparc"
	    ;;
	esac
	;;
    esac
  fi
  rm -rf conftest*
  ;;
d11784 5
a11788 14
*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
if ${lt_cv_cc_needs_belf+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d11790 3
a11792 2
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d11794 4
a11797 3
int
main ()
{
d11799 8
a11806 16
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_cc_needs_belf=yes
else
  lt_cv_cc_needs_belf=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d11808 9
a11816 26
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
$as_echo "$lt_cv_cc_needs_belf" >&6; }
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
	  LD="${LD-ld} -64"
	fi
	;;
      esac
a11817 5
    esac
  fi
  rm -rf conftest*
  ;;
esac
d11819 8
a11826 1
need_locks="$enable_libtool_lock"
d11828 15
a11842 25
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
set dummy ${ac_tool_prefix}mt; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MANIFEST_TOOL"; then
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d11844 19
a11862 10
fi
fi
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
if test -n "$MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
$as_echo "$MANIFEST_TOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d11864 10
d11875 9
a11883 27
fi
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  # Extract the first word of "mt", so it can be a program name with args.
set dummy mt; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_MANIFEST_TOOL"; then
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d11885 4
a11888 10
fi
fi
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
if test -n "$ac_ct_MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d11890 6
a11895 14
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
    MANIFEST_TOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  fi
else
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
fi
d11897 8
a11904 20
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
if ${lt_cv_path_mainfest_tool+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_path_mainfest_tool=no
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  cat conftest.err >&5
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
    lt_cv_path_mainfest_tool=yes
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
if test "x$lt_cv_path_mainfest_tool" != xyes; then
  MANIFEST_TOOL=:
fi
d11906 6
d11913 9
d11923 22
d11946 16
d11963 11
d11975 3
a11977 27
  case $host_os in
    rhapsody* | darwin*)
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DSYMUTIL"; then
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d11979 5
a11983 10
fi
fi
DSYMUTIL=$ac_cv_prog_DSYMUTIL
if test -n "$DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
$as_echo "$DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d11985 4
d11990 39
a12028 27
fi
if test -z "$ac_cv_prog_DSYMUTIL"; then
  ac_ct_DSYMUTIL=$DSYMUTIL
  # Extract the first word of "dsymutil", so it can be a program name with args.
set dummy dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DSYMUTIL"; then
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12030 10
a12039 10
fi
fi
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
if test -n "$ac_ct_DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
$as_echo "$ac_ct_DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12041 3
a12043 14
  if test "x$ac_ct_DSYMUTIL" = x; then
    DSYMUTIL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DSYMUTIL=$ac_ct_DSYMUTIL
  fi
else
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
fi
d12045 5
a12049 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NMEDIT"; then
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12051 5
d12057 15
a12071 9
fi
NMEDIT=$ac_cv_prog_NMEDIT
if test -n "$NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
$as_echo "$NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12073 3
d12077 5
a12081 27
fi
if test -z "$ac_cv_prog_NMEDIT"; then
  ac_ct_NMEDIT=$NMEDIT
  # Extract the first word of "nmedit", so it can be a program name with args.
set dummy nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_NMEDIT"; then
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12083 5
d12089 3
a12091 9
fi
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
if test -n "$ac_ct_NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
$as_echo "$ac_ct_NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12093 15
a12107 14
  if test "x$ac_ct_NMEDIT" = x; then
    NMEDIT=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    NMEDIT=$ac_ct_NMEDIT
  fi
else
  NMEDIT="$ac_cv_prog_NMEDIT"
fi
d12109 7
a12115 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
set dummy ${ac_tool_prefix}lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$LIPO"; then
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12117 3
a12119 10
fi
fi
LIPO=$ac_cv_prog_LIPO
if test -n "$LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
$as_echo "$LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12121 20
d12142 49
a12190 27
fi
if test -z "$ac_cv_prog_LIPO"; then
  ac_ct_LIPO=$LIPO
  # Extract the first word of "lipo", so it can be a program name with args.
set dummy lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_LIPO"; then
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_LIPO="lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12192 5
a12196 10
fi
fi
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
if test -n "$ac_ct_LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
$as_echo "$ac_ct_LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12198 3
a12200 14
  if test "x$ac_ct_LIPO" = x; then
    LIPO=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    LIPO=$ac_ct_LIPO
  fi
else
  LIPO="$ac_cv_prog_LIPO"
fi
d12202 10
a12211 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL"; then
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12213 7
a12219 10
fi
fi
OTOOL=$ac_cv_prog_OTOOL
if test -n "$OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
$as_echo "$OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12221 7
d12229 9
a12237 27
fi
if test -z "$ac_cv_prog_OTOOL"; then
  ac_ct_OTOOL=$OTOOL
  # Extract the first word of "otool", so it can be a program name with args.
set dummy otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL"; then
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL="otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12239 5
a12243 10
fi
fi
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
if test -n "$ac_ct_OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
$as_echo "$ac_ct_OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12245 33
a12277 14
  if test "x$ac_ct_OTOOL" = x; then
    OTOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL=$ac_ct_OTOOL
  fi
else
  OTOOL="$ac_cv_prog_OTOOL"
fi
d12279 9
a12287 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OTOOL64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL64"; then
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12289 7
a12295 10
fi
fi
OTOOL64=$ac_cv_prog_OTOOL64
if test -n "$OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
$as_echo "$OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12297 11
d12309 10
a12318 27
fi
if test -z "$ac_cv_prog_OTOOL64"; then
  ac_ct_OTOOL64=$OTOOL64
  # Extract the first word of "otool64", so it can be a program name with args.
set dummy otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL64"; then
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL64="otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12320 7
a12326 10
fi
fi
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
if test -n "$ac_ct_OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
$as_echo "$ac_ct_OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12328 21
a12348 14
  if test "x$ac_ct_OTOOL64" = x; then
    OTOOL64=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL64=$ac_ct_OTOOL64
  fi
else
  OTOOL64="$ac_cv_prog_OTOOL64"
fi
d12350 7
d12358 11
d12370 10
d12381 5
d12387 7
d12395 32
d12428 13
d12442 21
d12464 5
d12470 9
d12480 8
d12489 10
d12500 11
d12512 5
d12518 5
d12524 3
d12528 4
d12533 7
d12541 13
d12555 30
a12584 32







    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
$as_echo_n "checking for -single_module linker flag... " >&6; }
if ${lt_cv_apple_cc_single_mod+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_apple_cc_single_mod=no
      if test -z "${LT_MULTI_MODULE}"; then
	# By default we will add the -single_module flag. You can override
	# by either setting the environment variable LT_MULTI_MODULE
	# non-empty at configure time, or by adding -multi_module to the
	# link flags.
	rm -rf libconftest.dylib*
	echo "int foo(void){return 1;}" > conftest.c
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-dynamiclib -Wl,-single_module conftest.c" >&5
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
        _lt_result=$?
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
	  lt_cv_apple_cc_single_mod=yes
	else
	  cat conftest.err >&5
	fi
	rm -rf libconftest.dylib*
	rm -f conftest.*
d12586 8
a12593 14
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
if ${lt_cv_ld_exported_symbols_list+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_exported_symbols_list=no
      save_LDFLAGS=$LDFLAGS
      echo "_main" > conftest.sym
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d12595 26
a12620 10
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_ld_exported_symbols_list=yes
d12622 1
a12622 1
  lt_cv_ld_exported_symbols_list=no
d12624 16
a12639 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LDFLAGS="$save_LDFLAGS"
d12641 21
a12661 26
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
$as_echo_n "checking for -force_load linker flag... " >&6; }
if ${lt_cv_ld_force_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_force_load=no
      cat > conftest.c << _LT_EOF
int forced_loaded() { return 2;}
_LT_EOF
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
      echo "$AR cru libconftest.a conftest.o" >&5
      $AR cru libconftest.a conftest.o 2>&5
      echo "$RANLIB libconftest.a" >&5
      $RANLIB libconftest.a 2>&5
      cat > conftest.c << _LT_EOF
int main() { return 0;}
_LT_EOF
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
      _lt_result=$?
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
	lt_cv_ld_force_load=yes
d12663 1
a12663 1
	cat conftest.err >&5
d12665 10
a12674 30
        rm -f conftest.err libconftest.a conftest conftest.c
        rm -rf conftest.dSYM

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
$as_echo "$lt_cv_ld_force_load" >&6; }
    case $host_os in
    rhapsody* | darwin1.[012])
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
    darwin1.*)
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    darwin*) # darwin 5.x on
      # if running on 10.5 or later, the deployment target defaults
      # to the OS version, if on x86, and 10.4, the deployment
      # target defaults to 10.4. Don't you love it?
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
	10.[012]*)
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
	10.*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
      esac
    ;;
  esac
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
      _lt_dar_single_mod='$single_module'
    fi
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
d12676 4
a12679 1
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
d12681 3
a12683 7
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
      _lt_dsymutil='~$DSYMUTIL $lib || :'
    else
      _lt_dsymutil=
    fi
    ;;
  esac
d12685 5
a12689 8
for ac_header in dlfcn.h
do :
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
"
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLFCN_H 1
_ACEOF
d12691 5
a12695 1
fi
d12697 13
a12709 1
done
d12711 5
d12717 14
d12732 25
a12756 30


# Set options



        enable_dlopen=no


  enable_win32_dll=no



  # Check whether --enable-static was given.
if test "${enable_static+set}" = set; then :
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
d12759 1
a12759 3
else
  enable_static=yes
fi
d12761 8
d12770 18
d12789 8
d12798 3
d12802 11
d12814 38
d12853 9
d12863 45
d12909 3
a12911 23

# Check whether --with-pic was given.
if test "${with_pic+set}" = set; then :
  withval=$with_pic; pic_mode="$withval"
else
  pic_mode=default
fi


test -z "$pic_mode" && pic_mode=default







  # Check whether --enable-fast-install was given.
if test "${enable_fast_install+set}" = set; then :
  enableval=$enable_fast_install; p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
d12913 23
a12935 11
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
d12937 8
a12944 3
else
  enable_fast_install=yes
fi
d12946 4
d12951 14
d12966 5
d12972 8
d12981 11
d12993 17
d13011 6
d13018 9
d13028 24
d13053 8
d13062 10
a13071 2
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ltmain"
d13073 6
a13078 2
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d13080 12
d13093 11
d13105 23
d13129 8
d13138 6
d13145 7
d13153 6
d13160 20
d13181 8
d13190 28
d13219 7
d13227 6
d13234 4
d13239 4
d13244 11
d13256 29
d13286 3
d13290 1
d13292 1
d13294 14
d13309 23
a13331 22





test -z "$LN_S" && LN_S="ln -s"














if test -n "${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
d13333 12
a13344 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
$as_echo_n "checking for objdir... " >&6; }
if ${lt_cv_objdir+:} false; then :
d13347 22
a13368 4
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
d13370 1
a13370 2
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
d13372 3
a13374 1
rmdir .libs 2>/dev/null
d13376 53
a13428 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
$as_echo "$lt_cv_objdir" >&6; }
objdir=$lt_cv_objdir
d13430 29
d13461 1
d13464 1
a13464 3
cat >>confdefs.h <<_ACEOF
#define LT_OBJDIR "$lt_cv_objdir/"
_ACEOF
d13467 1
d13470 1
a13470 11
case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
esac
a13471 3
# Global variables:
ofile=libtool
can_build_shared=yes
d13473 1
a13473 3
# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a
d13475 2
a13476 1
with_gnu_ld="$lt_cv_prog_gnu_ld"
d13478 5
a13482 2
old_CC="$CC"
old_CFLAGS="$CFLAGS"
d13484 4
a13487 6
# Set sane defaults for various variables
test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
test -z "$LD" && LD=ld
test -z "$ac_objext" && ac_objext=o
d13489 2
a13490 9
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d13492 2
d13495 3
a13497 8
# Only perform the check for file, if the check method requires it
test -z "$MAGIC_CMD" && MAGIC_CMD=file
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
if ${lt_cv_path_MAGIC_CMD+:} false; then :
d13500 24
a13523 23
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2
d13525 21
a13545 8
*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org
d13547 3
a13549 12
_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi
d13551 5
a13555 8
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d13557 6
d13564 21
d13587 3
d13591 5
a13595 5
if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
$as_echo_n "checking for file... " >&6; }
if ${lt_cv_path_MAGIC_CMD+:} false; then :
d13598 56
a13653 23
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2
d13655 6
a13660 8
*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org
d13662 19
a13680 11
_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
d13682 2
a13684 7
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d13686 9
d13696 4
d13701 4
a13704 3
  else
    MAGIC_CMD=:
  fi
d13707 19
d13728 6
d13735 101
d13837 34
a13870 1
# Use C for the default configuration in the libtool script
d13872 2
a13873 6
lt_save_CC="$CC"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d13875 3
d13879 2
a13880 2
# Source file extension for C test sources.
ac_ext=c
d13882 1
a13882 3
# Object file extension for compiled C test sources.
objext=o
objext=$objext
d13884 1
a13884 2
# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;"
d13886 2
a13887 2
# Code to be used in simple link tests
lt_simple_link_test_code='int main(){return(0);}'
d13889 2
d13892 2
d13895 2
d13898 2
d13901 2
d13904 4
d13909 4
a13912 2
# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}
d13914 2
a13915 2
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d13917 3
a13919 2
# Allow CC to be a program name with arguments.
compiler=$CC
d13921 2
a13922 3
# Save the default compiler, since it gets overwritten when the other
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
compiler_DEFAULT=$CC
d13924 2
a13925 6
# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*
d13927 2
a13928 5
ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*
d13930 2
d13933 2
a13934 5
## CAVEAT EMPTOR:
## There is no encapsulation within the following macros, do not change
## the running order or otherwise move them around unless you know exactly
## what you are doing...
if test -n "$compiler"; then
d13936 2
a13937 1
lt_prog_compiler_no_builtin_flag=
d13939 2
a13940 7
if test "$GCC" = yes; then
  case $cc_basename in
  nvcc*)
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  *)
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  esac
d13942 5
a13946 33
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $RM conftest*
d13948 2
a13949 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d13951 2
a13952 5
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
else
    :
fi
d13954 2
a13955 1
fi
d13957 2
d13960 3
d13964 2
d13967 2
d13970 2
d13973 2
a13974 3
  lt_prog_compiler_wl=
lt_prog_compiler_pic=
lt_prog_compiler_static=
d13976 2
d13979 3
a13981 3
  if test "$GCC" = yes; then
    lt_prog_compiler_wl='-Wl,'
    lt_prog_compiler_static='-static'
d13983 2
a13984 8
    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;
d13986 2
a13987 14
    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;
d13989 2
a13990 3
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
d13992 2
a13993 7
    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;
d13995 2
a13996 5
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      ;;
d13998 2
a13999 5
    haiku*)
      # PIC is the default for Haiku.
      # The "-static" flag exists, but is broken.
      lt_prog_compiler_static=
      ;;
d14001 2
a14002 13
    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='-fPIC'
	;;
      esac
      ;;
d14004 2
a14005 4
    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
d14007 2
a14008 6
    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared=no
      enable_shared=no
      ;;
d14010 2
a14011 5
    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;
d14013 2
a14014 5
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic=-Kconform_pic
      fi
      ;;
d14016 2
a14017 4
    *)
      lt_prog_compiler_pic='-fPIC'
      ;;
    esac
d14019 2
a14020 18
    case $cc_basename in
    nvcc*) # Cuda Compiler Driver 2.2
      lt_prog_compiler_wl='-Xlinker '
      lt_prog_compiler_pic='-Xcompiler -fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      else
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
d14022 2
a14023 5
    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;
d14025 2
a14026 15
    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static='${wl}-a ${wl}archive'
      ;;
d14028 3
a14030 5
    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static='-non_shared'
      ;;
d14032 2
a14033 63
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
      case $cc_basename in
      # old Intel for x86_64 which still supported -KPIC.
      ecc*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-KPIC'
	lt_prog_compiler_static='-static'
        ;;
      # icc used to be incompatible with GCC.
      # ICC 10 doesn't accept -KPIC any more.
      icc* | ifort*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
        ;;
      # Lahey Fortran 8.1.
      lf95*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='--shared'
	lt_prog_compiler_static='--static'
	;;
      nagfor*)
	# NAG Fortran compiler
	lt_prog_compiler_wl='-Wl,-Wl,,'
	lt_prog_compiler_pic='-PIC'
	lt_prog_compiler_static='-Bstatic'
	;;
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fpic'
	lt_prog_compiler_static='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static='-non_shared'
        ;;
      xl* | bgxl* | bgf* | mpixl*)
	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-qpic'
	lt_prog_compiler_static='-qstaticlink'
	;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ F* | *Sun*Fortran*)
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl=''
	  ;;
	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Wl,'
	  ;;
	esac
	;;
      esac
      ;;
d14035 5
a14039 4
    newsos6)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;
d14041 2
a14042 5
    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;
d14044 2
a14045 5
    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static='-non_shared'
      ;;
d14047 5
a14051 3
    rdos*)
      lt_prog_compiler_static='-non_shared'
      ;;
d14053 3
a14055 10
    solaris*)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
	lt_prog_compiler_wl='-Qoption ld ';;
      *)
	lt_prog_compiler_wl='-Wl,';;
      esac
      ;;
d14057 3
a14059 5
    sunos4*)
      lt_prog_compiler_wl='-Qoption ld '
      lt_prog_compiler_pic='-PIC'
      lt_prog_compiler_static='-Bstatic'
      ;;
d14061 19
a14079 5
    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;
d14081 2
a14082 6
    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic='-Kconform_pic'
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;
d14084 2
a14085 5
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;
d14087 2
a14088 4
    unicos*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_can_build_shared=no
      ;;
d14090 2
a14091 4
    uts4*)
      lt_prog_compiler_pic='-pic'
      lt_prog_compiler_static='-Bstatic'
      ;;
d14093 2
a14094 5
    *)
      lt_prog_compiler_can_build_shared=no
      ;;
    esac
  fi
d14096 2
a14097 9
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic=
    ;;
  *)
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    ;;
esac
d14099 2
a14100 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
if ${lt_cv_prog_compiler_pic+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
d14102 2
a14103 37
#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
if ${lt_cv_prog_compiler_pic_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works=yes
     fi
   fi
   $RM conftest*
d14105 2
a14106 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d14108 2
a14109 9
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
    case $lt_prog_compiler_pic in
     "" | " "*) ;;
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
     esac
else
    lt_prog_compiler_pic=
     lt_prog_compiler_can_build_shared=no
fi
d14111 2
a14112 1
fi
d14114 2
d14117 2
d14120 2
d14123 3
d14127 4
d14132 2
d14135 3
d14139 3
d14143 3
d14147 3
d14151 3
a14153 30
#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if ${lt_cv_prog_compiler_static_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works=yes
       fi
     else
       lt_cv_prog_compiler_static_works=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"
d14155 2
a14156 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d14158 2
a14159 5
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi
d14161 2
d14164 2
d14167 2
d14170 2
d14173 2
d14176 2
d14179 2
a14180 11
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d14182 1
a14182 33
   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*
d14184 1
a14184 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d14187 3
d14191 10
d14202 5
d14208 3
a14211 4
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
d14213 9
a14221 6
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d14223 5
a14227 33
   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*
d14229 1
a14229 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d14232 4
d14238 4
a14241 17
hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
a14242 3
else
  need_locks=no
fi
d14244 10
d14255 3
d14259 9
d14269 4
d14274 36
d14311 24
a14334 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a14335 40
  runpath_var=
  allow_undefined_flag=
  always_export_symbols=no
  archive_cmds=
  archive_expsym_cmds=
  compiler_needs_object=no
  enable_shared_with_static_runtimes=no
  export_dynamic_flag_spec=
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  hardcode_automatic=no
  hardcode_direct=no
  hardcode_direct_absolute=no
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  inherit_rpath=no
  link_all_deplibs=unknown
  module_cmds=
  module_expsym_cmds=
  old_archive_from_new_cmds=
  old_archive_from_expsyms_cmds=
  thread_safe_flag_spec=
  whole_archive_flag_spec=
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  # Exclude shared library initialization/finalization symbols.
  extract_expsyms_cmds=
d14337 11
a14347 16
  case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
d14349 14
a14363 1
  ld_shlibs=yes
d14365 43
a14407 24
  # On some targets, GNU ld is compatible enough with the native linker
  # that we're better off using the native interface for both.
  lt_use_gnu_ld_interface=no
  if test "$with_gnu_ld" = yes; then
    case $host_os in
      aix*)
	# The AIX port of GNU ld has always aspired to compatibility
	# with the native linker.  However, as the warning in the GNU ld
	# block says, versions before 2.19.5* couldn't really create working
	# shared libraries, regardless of the interface used.
	case `$LD -v 2>&1` in
	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
	  *)
	    lt_use_gnu_ld_interface=yes
	    ;;
	esac
	;;
      *)
	lt_use_gnu_ld_interface=yes
	;;
    esac
  fi
d14409 1
a14409 3
  if test "$lt_use_gnu_ld_interface" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'
d14411 3
a14413 21
    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    else
      whole_archive_flag_spec=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>&1` in
      *GNU\ gold*) supports_anon_versioning=yes ;;
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac
d14415 2
a14416 7
    # See if GNU ld supports shared libraries.
    case $host_os in
    aix[3-9]*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2
d14418 3
a14420 6
*** Warning: the GNU linker, at least up to release 2.19, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to install binutils
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
*** You will then need to restart the configuration process.
d14422 6
a14427 1
_LT_EOF
d14432 4
a14435 12
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
d14438 2
a14439 9
    beos*)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs=no
      fi
d14442 4
a14445 25
    cygwin* | mingw* | pw32* | cegcc*)
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec='-L$libdir'
      export_dynamic_flag_spec='${wl}--export-all-symbols'
      allow_undefined_flag=unsupported
      always_export_symbols=no
      enable_shared_with_static_runtimes=yes
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'

      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs=no
      fi
d14448 4
a14451 3
    haiku*)
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      link_all_deplibs=yes
d14454 5
a14458 13
    interix[3-9]*)
      hardcode_direct=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d14461 3
a14463 6
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
      tmp_diet=no
      if test "$host_os" = linux-dietlibc; then
	case $cc_basename in
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
	esac
d14465 1
a14465 40
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
	 && test "$tmp_diet" = no
      then
	tmp_addflag=' $pic_flag'
	tmp_sharedflag='-shared'
	case $cc_basename,$host_cpu in
        pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95* | pgfortran*)
					# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	lf95*)				# Lahey Fortran 8.1
	  whole_archive_flag_spec=
	  tmp_sharedflag='--shared' ;;
	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
	  tmp_sharedflag='-qmkshrobj'
	  tmp_addflag= ;;
	nvcc*)	# Cuda Compiler Driver 2.2
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  ;;
	esac
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)			# Sun C 5.9
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  tmp_sharedflag='-G' ;;
	*Sun\ F*)			# Sun Fortran 8.3
	  tmp_sharedflag='-G' ;;
	esac
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d14467 11
a14477 25
        if test "x$supports_anon_versioning" = xyes; then
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	    echo "local: *; };" >> $output_objdir/$libname.ver~
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
        fi

	case $cc_basename in
	xlf* | bgf* | bgxlf* | mpixlf*)
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
	  hardcode_libdir_flag_spec=
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
	  if test "x$supports_anon_versioning" = xyes; then
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	      echo "local: *; };" >> $output_objdir/$libname.ver~
	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
	  fi
	  ;;
	esac
      else
        ld_shlibs=no
      fi
d14480 2
a14481 8
    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
d14483 9
a14491 17

    solaris*)
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d14493 1
a14493 1
	ld_shlibs=no
d14496 10
d14507 5
a14511 5
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs=no
	cat <<_LT_EOF 1>&2
d14513 7
a14519 8
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
d14521 2
a14522 12
	*)
	  # For security reasons, it is highly recommended that you always
	  # use absolute paths for naming shared libraries, and exclude the
	  # DT_RUNPATH tag from executables and libraries.  But doing so
	  # requires that you compile everything twice, which is a pain.
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  else
	    ld_shlibs=no
	  fi
d14525 2
d14529 4
a14532 5
    sunos4*)
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct=yes
      hardcode_shlibpath_var=no
d14535 3
a14537 7
    *)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
a14538 1
    esac
d14540 20
a14559 21
    if test "$ld_shlibs" = no; then
      runpath_var=
      hardcode_libdir_flag_spec=
      export_dynamic_flag_spec=
      whole_archive_flag_spec=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag=unsupported
      always_export_symbols=yes
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct=unsupported
      fi
d14562 5
a14566 18
    aix[4-9]*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	# Also, AIX nm treats weak defined symbols like other global
	# defined symbols, whereas GNU nm marks them as "W".
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no
d14568 4
a14571 12
	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	  for ld_flag in $LDFLAGS; do
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
	    aix_use_runtimelinking=yes
	    break
	  fi
	  done
	  ;;
	esac
d14573 10
a14582 3
	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi
d14584 5
a14588 5
      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d14590 5
a14594 6
      archive_cmds=''
      hardcode_direct=yes
      hardcode_direct_absolute=yes
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      file_list_spec='${wl}-f,'
d14596 4
a14599 39
      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	  # We have reworked collect2
	  :
	  else
	  # We have old collect2
	  hardcode_direct=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L=yes
	  hardcode_libdir_flag_spec='-L$libdir'
	  hardcode_libdir_separator=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
d14601 1
d14603 4
a14606 18
      export_dynamic_flag_spec='${wl}-bexpall'
      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='-berok'
        # Determine the default libpath from the value encoded in an
        # empty executable.
        if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath_+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14608 4
a14611 3
int
main ()
{
d14613 4
a14616 23
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_="/usr/lib:/lib"
d14619 2
a14620 1
fi
d14622 4
a14625 2
  aix_libpath=$lt_cv_aix_libpath_
fi
d14627 3
a14629 14
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
      else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag="-z nodefs"
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an
	 # empty executable.
	 if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath_+:} false; then :
d14632 28
a14659 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14661 3
a14663 3
int
main ()
{
d14665 8
a14672 18
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
a14673 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_="/usr/lib:/lib"
  fi
d14676 9
d14686 11
a14696 2
  aix_libpath=$lt_cv_aix_libpath_
fi
d14698 33
a14730 18
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag=' ${wl}-bernotok'
	  allow_undefined_flag=' ${wl}-berok'
	  if test "$with_gnu_ld" = yes; then
	    # We only use this code for GNU lds that support --whole-archive.
	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	  else
	    # Exported symbols can be pulled into shared objects from archives
	    whole_archive_flag_spec='$convenience'
	  fi
	  archive_cmds_need_lc=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;
d14732 3
a14734 14
    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
      ;;
a14735 3
    bsdi[45]*)
      export_dynamic_flag_spec=-rdynamic
      ;;
d14737 21
a14757 63
    cygwin* | mingw* | pw32* | cegcc*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      case $cc_basename in
      cl*)
	# Native MSVC
	hardcode_libdir_flag_spec=' '
	allow_undefined_flag=unsupported
	always_export_symbols=yes
	file_list_spec='@@'
	# Tell ltmain to make .lib files, not .a files.
	libext=lib
	# Tell ltmain to make .dll files, not .so files.
	shrext_cmds=".dll"
	# FIXME: Setting linknames here is a bad hack.
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	  else
	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	  fi~
	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	  linknames='
	# The linker will not automatically build a static lib if we build a DLL.
	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
	enable_shared_with_static_runtimes=yes
	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
	# Don't use ranlib
	old_postinstall_cmds='chmod 644 $oldlib'
	postlink_cmds='lt_outputfile="@@OUTPUT@@"~
	  lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	  case $lt_outputfile in
	    *.exe|*.EXE) ;;
	    *)
	      lt_outputfile="$lt_outputfile.exe"
	      lt_tool_outputfile="$lt_tool_outputfile.exe"
	      ;;
	  esac~
	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	    $RM "$lt_outputfile.manifest";
	  fi'
	;;
      *)
	# Assume MSVC wrapper
	hardcode_libdir_flag_spec=' '
	allow_undefined_flag=unsupported
	# Tell ltmain to make .lib files, not .a files.
	libext=lib
	# Tell ltmain to make .dll files, not .so files.
	shrext_cmds=".dll"
	# FIXME: Setting linknames here is a bad hack.
	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
	# The linker will automatically build a .lib file if we build a DLL.
	old_archive_from_new_cmds='true'
	# FIXME: Should let the user specify the lib program.
	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
	enable_shared_with_static_runtimes=yes
	;;
      esac
      ;;
d14759 2
a14760 1
    darwin* | rhapsody*)
d14762 46
d14809 13
a14821 21
  archive_cmds_need_lc=no
  hardcode_direct=no
  hardcode_automatic=yes
  hardcode_shlibpath_var=unsupported
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  else
    whole_archive_flag_spec=''
  fi
  link_all_deplibs=yes
  allow_undefined_flag="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=func_echo_all
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
d14823 4
a14826 3
  else
  ld_shlibs=no
  fi
d14828 20
a14847 1
      ;;
d14849 7
a14855 5
    dgux*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;
d14857 5
a14861 3
    freebsd1*)
      ld_shlibs=no
      ;;
d14863 2
a14864 9
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
d14867 12
a14878 6
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
d14881 6
a14886 11
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | dragonfly*)
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
d14888 1
a14888 1
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
d14890 1
a14890 3
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_direct=yes
d14892 8
a14899 5
      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L=yes
      export_dynamic_flag_spec='${wl}-E'
      ;;
d14901 11
a14911 3
    hpux10*)
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d14913 1
a14913 12
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_flag_spec_ld='+b $libdir'
	hardcode_libdir_separator=:
	hardcode_direct=yes
	hardcode_direct_absolute=yes
	export_dynamic_flag_spec='${wl}-E'
	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L=yes
d14917 7
a14923 11
    hpux11*)
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d14925 9
d14935 8
d14944 3
a14946 8
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
d14948 9
a14956 28
	  # Older versions of the 11.00 compiler do not understand -b yet
	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
$as_echo_n "checking if $CC understands -b... " >&6; }
if ${lt_cv_prog_compiler__b+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler__b=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS -b"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler__b=yes
       fi
     else
       lt_cv_prog_compiler__b=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"
d14958 4
a14961 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
$as_echo "$lt_cv_prog_compiler__b" >&6; }
d14963 6
a14968 5
if test x"$lt_cv_prog_compiler__b" = xyes; then
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
else
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
fi
d14970 6
a14975 2
	  ;;
	esac
d14977 8
a14984 3
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:
d14986 343
d15331 24
a15354 2
	  hardcode_direct=no
	  hardcode_shlibpath_var=no
d15357 4
a15360 3
	  hardcode_direct=yes
	  hardcode_direct_absolute=yes
	  export_dynamic_flag_spec='${wl}-E'
d15364 1
a15364 1
	  hardcode_minus_L=yes
d15372 1
a15372 30
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	# Try to use the -exported_symbol ld option, if it does not
	# work, assume that -exports_file does not work either and
	# implicitly export all symbols.
	# This should be the same for all languages, so no per-tag cache variable.
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
if ${lt_cv_irix_exported_symbol+:} false; then :
  $as_echo_n "(cached) " >&6
else
  save_LDFLAGS="$LDFLAGS"
	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo (void) { return 0; }
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_irix_exported_symbol=yes
else
  lt_cv_irix_exported_symbol=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
           LDFLAGS="$save_LDFLAGS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
	if test "$lt_cv_irix_exported_symbol" = yes; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
	fi
d15374 2
a15375 2
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
d15377 3
a15379 5
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      inherit_rpath=yes
      link_all_deplibs=yes
d15383 2
a15384 2
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
d15386 1
a15386 1
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
d15388 3
a15390 3
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
d15394 5
a15398 8
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_shlibpath_var=no
      ;;

    *nto* | *qnx*)
d15402 7
a15408 21
      if test -f /usr/libexec/ld.so; then
	hardcode_direct=yes
	hardcode_shlibpath_var=no
	hardcode_direct_absolute=yes
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	  export_dynamic_flag_spec='${wl}-E'
	else
	  case $host_os in
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	     hardcode_libdir_flag_spec='-R$libdir'
	     ;;
	   *)
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	     ;;
	  esac
	fi
d15410 10
a15419 1
	ld_shlibs=no
d15424 5
a15428 5
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
d15433 2
a15434 2
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d15436 2
a15437 2
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
d15439 2
a15440 3
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
d15445 3
a15447 3
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
d15449 4
a15452 4
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d15455 1
a15455 1
	hardcode_libdir_flag_spec='-rpath $libdir'
d15457 9
a15465 2
      archive_cmds_need_lc='no'
      hardcode_libdir_separator=:
d15469 1
a15469 1
      no_undefined_flag=' -z defs'
d15472 3
a15474 3
	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d15476 4
a15479 14
	case `$CC -V 2>&1` in
	*"Compilers 5.0"*)
	  wlarc=''
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
	  ;;
	*)
	  wlarc='${wl}'
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
	  ;;
	esac
d15481 2
a15482 2
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_shlibpath_var=no
d15486 11
a15496 10
	# The compiler driver will combine and reorder linker options,
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
	# but is careful enough not to reorder.
	# Supported since Solaris 2.6 (maybe 2.5.1?)
	if test "$GCC" = yes; then
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
	else
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
	fi
	;;
d15498 1
a15498 1
      link_all_deplibs=yes
d15505 1
a15505 1
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d15507 1
a15507 1
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d15509 4
a15512 4
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
d15518 2
a15519 2
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=yes # is this really true???
d15524 3
a15526 3
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds='$CC -r -o $output$reload_objs'
	  hardcode_direct=no
d15529 2
a15530 2
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
d15534 1
a15534 1
      hardcode_shlibpath_var=no
d15538 3
a15540 3
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='-Bexport'
d15545 2
a15546 2
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var=no
d15549 1
a15549 1
	ld_shlibs=yes
d15553 8
a15560 5
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag='${wl}-z,text'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      runpath_var='LD_RUN_PATH'
d15562 2
d15565 1
a15565 2
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d15567 1
a15567 2
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d15569 2
d15573 9
a15581 15
    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag='${wl}-z,text'
      allow_undefined_flag='${wl}-z,nodefs'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      export_dynamic_flag_spec='${wl}-Bexport'
a15582 8

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
d15586 3
a15588 3
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
d15592 1
a15592 1
      ld_shlibs=no
a15594 8

    if test x$host_vendor = xsni; then
      case $host in
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
	export_dynamic_flag_spec='${wl}-Blargedynsym'
	;;
      esac
    fi
d15597 3
a15599 18
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
$as_echo "$ld_shlibs" >&6; }
test "$ld_shlibs" = no && can_build_shared=no

with_gnu_ld=$with_gnu_ld













d15601 4
d15609 1
a15609 1
case "x$archive_cmds_need_lc" in
d15612 1
a15612 1
  archive_cmds_need_lc=yes
d15615 1
a15615 1
    case $archive_cmds in
d15625 2
a15626 5
if ${lt_cv_archive_cmds_need_lc+:} false; then :
  $as_echo_n "(cached) " >&6
else
  $RM conftest*
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d15628 1
a15628 1
	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d15633 14
a15646 15
	  soname=conftest
	  lib=conftest
	  libobjs=conftest.$ac_objext
	  deplibs=
	  wl=$lt_prog_compiler_wl
	  pic_flag=$lt_prog_compiler_pic
	  compiler_flags=-v
	  linker_flags=-v
	  verstring=
	  output_objdir=.
	  libname=conftest
	  lt_save_allow_undefined_flag=$allow_undefined_flag
	  allow_undefined_flag=
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
d15650 12
a15661 15
	  then
	    lt_cv_archive_cmds_need_lc=no
	  else
	    lt_cv_archive_cmds_need_lc=yes
	  fi
	  allow_undefined_flag=$lt_save_allow_undefined_flag
	else
	  cat conftest.err 1>&5
	fi
	$RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d15668 31
d15700 3
d15704 5
d15710 3
d15714 43
d15758 5
d15764 5
d15770 13
d15784 5
d15790 14
d15805 28
d15834 8
d15843 18
d15862 8
d15871 3
d15875 11
d15887 38
d15926 9
d15936 45
d15982 36
d16019 4
d16024 14
d16039 5
d16045 8
d16054 11
d16066 17
d16084 6
d16091 9
d16101 24
d16126 8
d16135 10
d16146 6
d16153 12
d16166 11
d16178 23
d16202 8
d16211 6
d16218 7
d16226 6
d16233 20
d16254 8
d16263 28
d16292 7
d16300 6
d16307 4
d16312 4
d16317 11
d16329 29
d16359 3
d16363 1
d16365 1
d16367 14
d16382 42
d16425 38
d16464 38
d16503 29
d16534 1
d16537 1
d16540 1
d16543 1
d16546 1
d16548 2
d16551 5
d16557 4
d16562 2
d16565 2
d16568 13
d16582 3
d16586 1
d16588 9
d16598 21
d16620 3
d16624 5
d16630 6
d16637 21
d16660 3
d16664 15
d16680 3
d16684 1
d16686 9
d16696 21
d16718 3
d16722 5
d16728 6
d16735 21
d16758 4
d16763 5
d16769 4
d16774 5
d16781 79
d16861 5
d16867 1
d16869 2
d16872 1
d16874 2
d16877 2
d16880 2
d16883 2
d16886 2
d16889 2
d16892 4
d16897 4
d16902 2
d16905 3
d16909 2
d16912 2
d16915 2
d16918 2
d16921 2
d16924 2
d16927 2
d16930 2
d16933 2
d16936 2
d16939 2
d16942 2
d16945 2
d16948 3
d16952 2
d16955 8
d16964 2
d16967 3
d16971 2
d16974 2
d16977 2
d16980 2
d16983 2
d16986 2
d16989 2
d16992 2
d16995 2
d16998 2
d17001 2
d17004 2
d17007 2
d17010 2
d17013 2
d17016 3
d17020 2
d17023 5
d17029 2
d17032 2
d17035 5
d17041 3
d17045 3
d17049 19
d17069 2
d17072 2
d17075 2
a17076 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }
d17078 2
a17079 79
if test "$GCC" = yes; then
  case $host_os in
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
    *) lt_awk_arg="/^libraries:/" ;;
  esac
  case $host_os in
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
    *) lt_sed_strip_eq="s,=/,/,g" ;;
  esac
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  case $lt_search_path_spec in
  *\;*)
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
    ;;
  *)
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
    ;;
  esac
  # Ok, now we have the path, separated by spaces, we can step through it
  # and add multilib dir if necessary.
  lt_tmp_lt_search_path_spec=
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  for lt_sys_path in $lt_search_path_spec; do
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
    else
      test -d "$lt_sys_path" && \
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
    fi
  done
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
BEGIN {RS=" "; FS="/|\n";} {
  lt_foo="";
  lt_count=0;
  for (lt_i = NF; lt_i > 0; lt_i--) {
    if ($lt_i != "" && $lt_i != ".") {
      if ($lt_i == "..") {
        lt_count++;
      } else {
        if (lt_count == 0) {
          lt_foo="/" $lt_i lt_foo;
        } else {
          lt_count--;
        }
      }
    }
  }
  if (lt_foo != "") { lt_freq[lt_foo]++; }
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
}'`
  # AWK program above erroneously prepends '/' to C:/dos/paths
  # for these hosts.
  case $host_os in
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  esac
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no
d17081 2
a17082 3
# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown
d17084 2
a17085 5
case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH
d17087 2
a17088 3
  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;
d17090 2
a17091 43
aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;
d17093 2
a17094 14
amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;
d17096 2
a17097 5
beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;
d17099 2
a17100 13
bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;
d17102 2
a17103 5
cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no
d17105 2
a17106 18
  case $GCC,$cc_basename in
  yes,*)
    # gcc
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
d17108 2
a17109 4
    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d17111 3
a17113 13
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    dynamic_linker='Win32 ld.exe'
    ;;
d17115 23
a17137 5
  *,cl*)
    # Native MSVC
    libname_spec='$name'
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'
d17139 3
a17141 36
    case $build_os in
    mingw*)
      sys_lib_search_path_spec=
      lt_save_ifs=$IFS
      IFS=';'
      for lt_path in $LIB
      do
        IFS=$lt_save_ifs
        # Let DOS variable expansion print the short 8.3 style file name.
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @@echo %~si"`
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
      done
      IFS=$lt_save_ifs
      # Convert to MSYS style.
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
      ;;
    cygwin*)
      # Convert to unix form, then to dos form, then back to unix form
      # but this time dos style (no spaces!) so that the unix form looks
      # like /cygdrive/c/PROGRA~1:/cygdr...
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      ;;
    *)
      sys_lib_search_path_spec="$LIB"
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      fi
      # FIXME: find the short name or the path components, as spaces are
      # common. (e.g. "Program Files" -> "PROGRA~1")
      ;;
    esac
d17143 2
a17144 12
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
    dynamic_linker='Win32 link.exe'
    ;;
d17146 2
a17147 9
  *)
    # Assume MSVC wrapper
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    dynamic_linker='Win32 ld.exe'
    ;;
  esac
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;
d17149 2
a17150 10
darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
d17152 2
a17153 3
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;
d17155 18
a17172 8
dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;
a17173 3
freebsd1*)
  dynamic_linker=no
  ;;
d17175 7
a17181 10
freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
d17183 47
a17229 32
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;
d17231 5
a17235 9
gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;
a17236 12
haiku*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  dynamic_linker="$host_os runtime_loader"
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  hardcode_into_libs=yes
  ;;
d17238 11
a17248 41
hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
d17250 2
a17251 5
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  postinstall_cmds='chmod 555 $lib'
  # or fails outright, so override atomically:
  install_override_mode=555
  ;;
d17253 1
a17253 11
interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;
d17255 74
a17328 3
irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
d17330 2
a17331 23
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
d17333 5
a17339 6
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;
d17341 1
a17341 4
# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;
d17343 2
a17344 10
# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
d17346 1
a17346 11
  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d17348 2
a17349 3
int
main ()
{
d17351 2
a17352 13
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir
d17354 2
a17355 1
fi
d17357 2
a17358 1
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d17360 2
a17361 4
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes
d17363 2
a17364 5
  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi
d17366 4
a17369 8
  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;
d17371 4
a17374 17
netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;
d17376 2
a17377 6
newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;
d17379 3
a17381 11
*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;
d17383 2
a17384 25
openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;
d17386 2
a17387 8
os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;
d17389 2
a17390 10
osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;
d17392 2
a17393 3
rdos*)
  dynamic_linker=no
  ;;
d17395 2
a17396 12
solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;
d17398 2
a17399 11
sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;
d17401 2
a17402 22
sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;
d17404 2
a17405 8
sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;
d17407 2
a17408 21
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;
d17410 2
a17411 10
tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;
d17413 2
a17414 26
uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi
d17416 2
d17419 2
d17422 3
d17426 2
d17429 2
d17432 2
d17435 2
d17438 2
d17441 3
d17445 2
d17448 2
d17451 2
d17454 2
d17457 2
d17460 2
d17463 2
d17466 2
d17469 2
d17472 2
d17475 2
d17478 2
d17481 2
d17484 2
d17487 2
d17490 3
d17494 2
d17497 5
d17503 2
d17506 2
d17509 5
d17515 3
d17519 3
d17523 19
d17543 2
d17546 2
d17549 2
d17552 2
d17555 2
d17558 2
d17561 2
d17564 2
d17567 2
d17570 2
d17573 2
d17576 2
d17579 2
d17582 2
d17585 3
d17589 23
d17613 3
d17617 2
d17620 2
d17623 2
d17626 2
d17629 2
d17632 2
d17635 2
d17638 2
d17641 2
d17644 1
d17646 1
d17649 9
d17660 5
d17666 1
d17668 1
d17670 4
d17675 7
d17683 9
d17695 2
d17698 2
d17701 1
d17712 10
d17723 19
d17744 11
a17755 22



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" ||
   test -n "$runpath_var" ||
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
a17756 4
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
d17758 5
a17762 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
d17765 3
a17767 35





  if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
d17770 1
a17770 3
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a17772 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
d17776 4
a17779 1
return dlopen ();
d17784 2
a17785 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
d17787 1
a17787 1
  ac_cv_lib_dl_dlopen=no
d17789 1
a17789 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d17791 3
a17793 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
d17795 1
a17795 3
    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
d17799 3
a17801 10
    ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if ${ac_cv_lib_dld_shl_load+:} false; then :
d17804 1
a17804 2
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
d17814 1
a17814 1
char shl_load ();
d17818 1
a17818 1
return shl_load ();
d17823 9
a17831 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
d17834 3
a17836 2
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d17838 2
a17839 18
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a17840 17
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
d17842 1
a17842 1
  ac_cv_lib_dl_dlopen=no
d17844 2
a17845 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d17847 151
a17997 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d17999 23
a18021 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if ${ac_cv_lib_svld_dlopen+:} false; then :
d18025 1
a18025 1
LIBS="-lsvld  $LIBS"
d18029 1
a18029 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
d18033 1
a18033 1
return dlopen ();
d18039 1
a18039 1
  ac_cv_lib_svld_dlopen=yes
d18041 1
a18041 1
  ac_cv_lib_svld_dlopen=no
d18047 17
a18063 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
d18065 3
a18067 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if ${ac_cv_lib_dld_dld_link+:} false; then :
d18070 1
a18070 2
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
d18080 1
a18080 1
char dld_link ();
d18084 1
a18084 1
return dld_link ();
d18089 9
a18097 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
d18100 3
a18102 7
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d18104 2
d18107 2
a18108 1

d18110 2
a18111 2


d18113 5
a18117 1

a18120 1

d18123 2
d18126 9
a18134 1
fi
d18136 18
a18153 5
    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
d18155 2
a18156 1
    enable_dlopen=no
d18158 10
d18169 11
a18179 4
  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d18181 9
a18189 2
    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d18191 32
a18222 2
    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"
a18223 4
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
d18225 10
a18234 8
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"
d18236 1
a18236 3
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d18238 1
a18238 1
#include <stdio.h>
d18240 1
a18240 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
d18242 8
a18249 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
d18251 5
a18255 4
/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
d18257 3
a18259 3

int fnord () { return 42; }
int main ()
d18261 22
a18282 2
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
d18284 11
a18294 12
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());
a18295 19
  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
a18296 1
rm -fr conftest*
d18298 7
d18307 2
a18308 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }
a18309 15
    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"
d18311 1
a18311 3
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d18313 6
a18318 1
#include <stdio.h>
a18319 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
d18321 28
a18348 20
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
d18350 34
d18385 5
a18389 4
/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
d18391 3
a18393 3

int fnord () { return 42; }
int main ()
d18395 3
a18397 17
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
d18399 3
a18401 17
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
d18403 23
a18425 1
rm -fr conftest*
d18427 8
d18436 2
a18437 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi
d18439 13
a18451 10
    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac
a18452 4
  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
d18455 1
d18457 9
d18467 1
d18469 1
d18472 2
d18475 5
d18481 21
d18503 2
d18506 2
d18509 1
d18511 3
d18517 14
d18532 19
a18550 29

striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP" ; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
d18552 3
a18554 52












  # Report which library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test "$can_build_shared" = "no" && enable_shared=no

  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test "$enable_shared" = yes && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;

  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }




d18556 6
a18561 14
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"







d18563 1
a18564 19




        ac_config_commands="$ac_config_commands libtool"




# Only expand once:



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
d18566 3
a18568 8
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
d18571 3
a18573 2
    ac_pattern="Autoconf.*'x'"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18575 15
a18589 2
#include <sgtty.h>
Autoconf TIOCGETP
d18591 2
a18592 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d18594 5
a18598 1
  ac_cv_prog_gcc_traditional=no
d18600 6
a18605 1
rm -f conftest*
d18607 1
a18608 9
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
a18609 1
rm -f conftest*
a18610 7
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d18613 6
a18618 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
$as_echo_n "checking for working volatile... " >&6; }
if ${ac_cv_c_volatile+:} false; then :
d18621 2
a18622 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18625 7
d18635 1
a18635 4

volatile int x;
int * volatile y = (int *) 0;
return !x && !y;
d18640 18
a18657 2
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_volatile=yes
d18659 1
a18659 1
  ac_cv_c_volatile=no
d18661 2
a18662 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d18664 5
a18668 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
$as_echo "$ac_cv_c_volatile" >&6; }
if test $ac_cv_c_volatile = no; then

$as_echo "#define volatile /**/" >>confdefs.h
d18672 3
a18674 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
$as_echo_n "checking for library containing strerror... " >&6; }
if ${ac_cv_search_strerror+:} false; then :
d18687 1
a18687 1
char strerror ();
d18691 1
a18691 1
return strerror ();
d18696 1
a18696 1
for ac_lib in '' cposix; do
d18701 1
a18701 1
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
d18704 1
a18704 1
  ac_cv_search_strerror=$ac_res
d18708 1
a18708 1
  if ${ac_cv_search_strerror+:} false; then :
d18712 1
a18712 1
if ${ac_cv_search_strerror+:} false; then :
d18715 1
a18715 1
  ac_cv_search_strerror=no
d18720 3
a18722 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
$as_echo "$ac_cv_search_strerror" >&6; }
ac_res=$ac_cv_search_strerror
d18728 12
a18740 26
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_PERL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d18742 22
a18763 7
  ;;
esac
fi
PATH_PERL=$ac_cv_path_PATH_PERL
if test -n "$PATH_PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
$as_echo "$PATH_PERL" >&6; }
d18765 1
a18765 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d18767 7
d18775 3
a18778 6
# Extract the first word of "sh", so it can be a program name with args.
set dummy sh; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_SH+:} false; then :
  $as_echo_n "(cached) " >&6
d18780 3
a18782 19
  case $PATH_SH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a18783 10
  ;;
esac
fi
PATH_SH=$ac_cv_path_PATH_SH
if test -n "$PATH_SH"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SH" >&5
$as_echo "$PATH_SH" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d18786 5
d18792 3
a18794 26
# Extract the first word of "test", so it can be a program name with args.
set dummy test; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_TEST+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_TEST in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a18795 7
  ;;
esac
fi
PATH_TEST=$ac_cv_path_PATH_TEST
if test -n "$PATH_TEST"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
$as_echo "$PATH_TEST" >&6; }
d18797 1
a18797 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d18799 1
d18801 1
d18803 19
d18823 13
a18836 3
# Check whether --with-net-snmp-config was given.
if test "${with_net_snmp_config+set}" = set; then :
  withval=$with_net_snmp_config; ans=$withval
d18838 4
a18841 2
  ans=yes

a18843 52
case "$ans" in
 no)
    ;;
 yes)
    ans=net-snmp-config
    ;;
 /*)
    ;;
 */*)
    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
    ;;
 *)
    ;;
esac
PROG_NET_SNMP_CONFIG=$ans
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
case "$PROG_NET_SNMP_CONFIG" in
 no) ;;
 /*)
    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
    ;;
 *)
    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_NET_SNMP_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
a18844 7
PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
if test -n "$PATH_NET_SNMP_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d18846 3
d18850 1
d18852 1
a18852 4
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
d18854 7
a18860 5
case "$host" in
 *-*-vxworks*)
    ac_link="$ac_link $VX_KERNEL"
    ;;
esac
d18862 1
d18864 1
d18866 6
a18871 3
ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
if test "x$ac_cv_func_gethostent" = xyes; then :

d18873 2
a18874 6
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
$as_echo_n "checking for library containing gethostent... " >&6; }
if ${ac_cv_search_gethostent+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
d18884 1
a18884 1
char gethostent ();
d18888 1
a18888 1
return gethostent ();
d18893 4
a18896 9
for ac_lib in '' nsl; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_gethostent=$ac_res
d18899 2
a18900 3
    conftest$ac_exeext
  if ${ac_cv_search_gethostent+:} false; then :
  break
d18902 3
a18904 2
done
if ${ac_cv_search_gethostent+:} false; then :
d18906 1
a18906 11
else
  ac_cv_search_gethostent=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
$as_echo "$ac_cv_search_gethostent" >&6; }
ac_res=$ac_cv_search_gethostent
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a18911 2
ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
if test "x$ac_cv_func_openlog" = xyes; then :
d18913 12
a18924 9
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
$as_echo_n "checking for library containing openlog... " >&6; }
if ${ac_cv_search_openlog+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a18925 29
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char openlog ();
int
main ()
{
return openlog ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' gen; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_openlog=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_openlog+:} false; then :
  break
d18927 1
a18928 13
if ${ac_cv_search_openlog+:} false; then :

else
  ac_cv_search_openlog=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
$as_echo "$ac_cv_search_openlog" >&6; }
ac_res=$ac_cv_search_openlog
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a18929 9
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
$as_echo_n "checking for library containing openlog... " >&6; }
if ${ac_cv_search_openlog+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d18931 4
a18934 5
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
d18936 5
a18940 8
char openlog ();
int
main ()
{
return openlog ();
  ;
  return 0;
}
a18941 17
for ac_lib in '' syslog; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_openlog=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_openlog+:} false; then :
  break
fi
done
if ${ac_cv_search_openlog+:} false; then :
a18942 5
else
  ac_cv_search_openlog=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
a18943 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
$as_echo "$ac_cv_search_openlog" >&6; }
ac_res=$ac_cv_search_openlog
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18945 1
a18945 1
fi
d18947 9
a18955 1
fi
d18959 1
a18959 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
$as_echo_n "checking for library containing MD5Init... " >&6; }
if ${ac_cv_search_MD5Init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d18961 8
a18968 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char MD5Init ();
int
main ()
{
return MD5Init ();
  ;
  return 0;
}
a18969 17
for ac_lib in '' md5 md; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_MD5Init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_MD5Init+:} false; then :
  break
fi
done
if ${ac_cv_search_MD5Init+:} false; then :
a18970 5
else
  ac_cv_search_MD5Init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
a18971 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
$as_echo "$ac_cv_search_MD5Init" >&6; }
ac_res=$ac_cv_search_MD5Init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18973 1
a18973 1
fi
d18975 1
a18975 1
for ac_func in MD5Init
d18977 4
a18980 2
  ac_fn_c_check_func "$LINENO" "MD5Init" "ac_cv_func_MD5Init"
if test "x$ac_cv_func_MD5Init" = xyes; then :
d18982 1
a18982 1
#define HAVE_MD5INIT 1
d18986 1
d18990 11
d19002 1
a19002 1
    NTP_ORIG_LIBS="$LIBS"
d19004 9
a19012 5
# Check whether --with-lineeditlibs was given.
if test "${with_lineeditlibs+set}" = set; then :
  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
else
  use_lineeditlibs="edit,editline"
d19016 12
a19027 39
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
$as_echo_n "checking line editing libraries... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
$as_echo "$use_lineeditlibs" >&6; }
    case "$use_lineeditlibs" in
     no)
	ntp_lib_lineedit=no
	;;
     *)
	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
	    for term_lib in "" termcap curses ncurses; do
		case "$term_lib" in
		 '')
		    TRY_LIB="-l$lineedit_lib"
		    ;;
		 *)
		    TRY_LIB="-l$lineedit_lib -l$term_lib"
		    ;;
		esac
		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char readline ();
int
main ()
{
return readline ();
  ;
  return 0;
}
a19028 25
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		case "$ntp_lib_lineedit" in
		 '')
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		    ;;
		 *)
		    # Use readline()
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
		    break
		esac
		case "$term_lib" in
		 '')
		    # do not try el_gets without a terminal library
		    ;;
		 *)
		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a19029 17
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char el_gets ();
int
main ()
{
return el_gets ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
a19030 26
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		    case "$ntp_lib_lineedit" in
		     '')
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			;;
		     *) # Use el_gets()
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			break
			;;
		    esac	# $ntp_lib_lineedit
		esac		# $term_lib
	    done
	    case "$ntp_lib_lineedit" in
	     '')
		;;
	     *)
		break
		;;
	    esac
	done
	LIBS="$NTP_ORIG_LIBS"
	;;
    esac	# $use_lineeditlibs
d19032 3
a19034 8
    case "$ntp_lib_lineedit" in
     '')
	ntp_lib_lineedit="no"
	;;
     no)
	;;
     *)
	EDITLINE_LIBS="$ntp_lib_lineedit"
d19036 8
a19043 2
	;;
    esac	# $ntp_lib_lineedit
d19045 3
a19047 5
    case "$ntp_lib_lineedit" in
     no)
	;;
     *)
	for ac_header in readline.h readline/readline.h histedit.h
d19049 2
a19050 3
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19052 1
a19052 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d19056 1
d19058 1
a19058 1
done
d19060 1
a19060 1
	for ac_header in history.h readline/history.h
d19062 2
a19063 3
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19065 1
a19065 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d19072 7
d19080 1
a19080 9
	case "$ac_cv_header_histedit_h" in
	 yes)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
$as_echo_n "checking number of arguments to el_init()... " >&6; }
if ${ntp_cv_el_init_args+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d19082 1
a19082 2
			    #include <stdio.h>
			    #include <histedit.h>
d19084 5
a19088 3
int
main ()
{
d19090 4
a19093 6
			    el_init("conftest", stdin, stdout, stderr);


  ;
  return 0;
}
a19094 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_el_init_args=4
else
  ntp_cv_el_init_args=3
a19096 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19098 1
a19098 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
$as_echo "$ntp_cv_el_init_args" >&6; }
d19100 6
a19105 2
cat >>confdefs.h <<_ACEOF
#define EL_INIT_ARGS $ntp_cv_el_init_args
d19108 1
a19108 1
	esac
d19110 1
a19110 2
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
$as_echo_n "checking whether readline supports history... " >&6; }
d19112 6
a19117 5
	ntp_lib_lineedit_history="no"
	ORIG_LIBS="$LIBS"
	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d19119 4
a19122 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char add_history ();
int
main ()
{
return add_history ();
  ;
  return 0;
}
d19124 1
a19124 2
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit_history="yes"
a19125 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LIBS="$ORIG_LIBS"
d19127 11
a19137 2
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
$as_echo "$ntp_lib_lineedit_history" >&6; }
d19139 1
a19139 2
	case "$ntp_lib_lineedit_history" in
	 yes)
d19141 1
a19141 1
$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
d19143 7
a19149 6
	esac
    esac	# $ntp_lib_lineedit
    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
    { ORIG_LIBS=; unset ORIG_LIBS;}
    { TRY_LIB=; unset TRY_LIB;}
    { use_lineeditlibs=; unset use_lineeditlibs;}
d19151 1
d19153 1
d19155 10
a19164 20
case "$host" in
 *-*-*linux*) ;;
 *-*-osf4*) ;;
 *-*-osf5*) ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lrt" >&5
$as_echo_n "checking for sched_setscheduler in -lrt... " >&6; }
if ${ac_cv_lib_rt_sched_setscheduler+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
a19165 24
char sched_setscheduler ();
int
main ()
{
return sched_setscheduler ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rt_sched_setscheduler=yes
else
  ac_cv_lib_rt_sched_setscheduler=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_setscheduler" >&5
$as_echo "$ac_cv_lib_rt_sched_setscheduler" >&6; }
if test "x$ac_cv_lib_rt_sched_setscheduler" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBRT 1
_ACEOF
d19167 2
a19168 40
  LIBS="-lrt $LIBS"

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lposix4" >&5
$as_echo_n "checking for sched_setscheduler in -lposix4... " >&6; }
if ${ac_cv_lib_posix4_sched_setscheduler+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lposix4  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_setscheduler ();
int
main ()
{
return sched_setscheduler ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_posix4_sched_setscheduler=yes
else
  ac_cv_lib_posix4_sched_setscheduler=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
$as_echo "$ac_cv_lib_posix4_sched_setscheduler" >&6; }
if test "x$ac_cv_lib_posix4_sched_setscheduler" = xyes; then :
d19170 1
a19170 1
#define HAVE_LIBPOSIX4 1
a19172 2
  LIBS="-lposix4 $LIBS"

d19175 1
a19175 1
fi
a19176 2
    ;;
esac
d19178 4
a19181 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
$as_echo_n "checking for library containing setsockopt... " >&6; }
if ${ac_cv_search_setsockopt+:} false; then :
d19184 2
a19185 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19188 11
a19198 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char setsockopt ();
int
main ()
{
return setsockopt ();
  ;
  return 0;
}
d19200 5
a19204 17
for ac_lib in '' socket xnet; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_setsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_setsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_setsockopt+:} false; then :
a19205 2
else
  ac_cv_search_setsockopt=no
d19207 1
a19207 8
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
$as_echo "$ac_cv_search_setsockopt" >&6; }
ac_res=$ac_cv_search_setsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a19208 1
fi
a19209 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
$as_echo_n "checking for library containing res_init... " >&6; }
if ${ac_cv_search_res_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a19210 29
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char res_init ();
int
main ()
{
return res_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_res_init+:} false; then :
  break
d19212 2
a19213 2
done
if ${ac_cv_search_res_init+:} false; then :
d19215 2
a19216 11
else
  ac_cv_search_res_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
$as_echo "$ac_cv_search_res_init" >&6; }
ac_res=$ac_cv_search_res_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d19218 1
a19218 1
fi
d19220 1
a19220 11
case "$host" in
 *-*-darwin*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_9_init in -lresolv" >&5
$as_echo_n "checking for res_9_init in -lresolv... " >&6; }
if ${ac_cv_lib_resolv_res_9_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lresolv  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d19222 4
a19225 27
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char res_9_init ();
int
main ()
{
return res_9_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_resolv_res_9_init=yes
else
  ac_cv_lib_resolv_res_9_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_9_init" >&5
$as_echo "$ac_cv_lib_resolv_res_9_init" >&6; }
if test "x$ac_cv_lib_resolv_res_9_init" = xyes; then :
d19227 1
a19227 1
#define HAVE_LIBRESOLV 1
d19230 1
a19230 1
  LIBS="-lresolv $LIBS"
d19234 3
a19236 3
    ;;
esac
for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
d19239 3
a19241 14
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19250 1
a19250 2

for ac_func in res_init __res_init
d19252 4
a19255 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d19257 1
a19257 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d19261 1
d19264 9
a19273 24
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if ${ac_cv_header_stdc+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
a19274 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19276 1
a19276 5
if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>
d19278 8
a19286 2
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :
a19287 2
else
  ac_cv_header_stdc=no
a19288 1
rm -f conftest*
d19290 1
a19290 7
fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
d19292 8
a19300 2
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :
a19301 2
else
  ac_cv_header_stdc=no
a19302 1
rm -f conftest*
d19304 1
a19304 1
fi
d19306 7
a19312 31
if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
a19313 1
if ac_fn_c_try_run "$LINENO"; then :
a19314 5
else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d19317 1
a19317 5
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then
d19319 3
a19321 5
$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

for ac_header in bstring.h
d19323 2
a19324 2
  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
if test "x$ac_cv_header_bstring_h" = xyes; then :
d19326 1
a19326 1
#define HAVE_BSTRING_H 1
d19332 10
a19341 27

ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
if test "x$ac_cv_header_dns_sd_h" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceRegister in -ldns_sd" >&5
$as_echo_n "checking for DNSServiceRegister in -ldns_sd... " >&6; }
if ${ac_cv_lib_dns_sd_DNSServiceRegister+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldns_sd  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char DNSServiceRegister ();
int
main ()
{
return DNSServiceRegister ();
  ;
  return 0;
}
a19342 15
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dns_sd_DNSServiceRegister=yes
else
  ac_cv_lib_dns_sd_DNSServiceRegister=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5
$as_echo "$ac_cv_lib_dns_sd_DNSServiceRegister" >&6; }
if test "x$ac_cv_lib_dns_sd_DNSServiceRegister" = xyes; then :

$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h

d19346 1
d19348 1
a19348 6
fi


case "$ac_cv_lib_dns_sd_DNSServiceRegister" in
 yes)
    LIBS="-ldns_sd $LIBS"
d19350 2
a19351 1
for ac_header in errno.h fcntl.h ieeefp.h kvm.h math.h
d19355 2
a19356 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19365 4
a19368 2

for ac_header in md5.h
d19370 4
a19373 8
  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
	#ifdef HAVE_SYS_TYPES_H
	# include <sys/types.h>
	#endif


"
if test "x$ac_cv_header_md5_h" = xyes; then :
d19375 1
a19375 1
#define HAVE_MD5_H 1
d19382 3
a19384 1
for ac_header in memory.h netdb.h poll.h
d19388 2
a19389 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19398 1
a19398 1
for ac_header in sgtty.h stdlib.h string.h termio.h
d19402 2
a19403 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19412 1
a19412 1
for ac_header in termios.h timepps.h timex.h unistd.h
d19416 2
a19417 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19426 12
d19439 4
a19442 3
case "$host" in
 *-*-aix*)
    for ac_header in utmpx.h
d19444 9
a19452 2
  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
if test "x$ac_cv_header_utmpx_h" = xyes; then :
d19454 1
a19454 1
#define HAVE_UTMPX_H 1
a19460 11
    case "$ac_cv_header_utmpx_h" in
     yes)
	;;
     *)
	for ac_header in utmp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
if test "x$ac_cv_header_utmp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMP_H 1
_ACEOF
d19463 1
d19465 1
a19465 7
done

	;;
    esac
    ;;
 *)
    for ac_header in utmp.h utmpx.h
d19469 2
a19470 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19479 10
a19488 20
    ;;
esac

#
# On Suns only (so far) getpass() truncates the typed password to 8
# characters, but getpassphrase() allows up to 257.  Most systems'
# getpass() does not truncate, at least not so as to affect ntpq and
# ntpdc password prompts.
#
# So check for getpassphrase(), but only on Sun operating systems.
#
case "$host" in
 *-*-sunos*|*-*-solaris*)
    for ac_func in getpassphrase
do :
  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
if test "x$ac_cv_func_getpassphrase" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETPASSPHRASE 1
_ACEOF
d19490 15
d19506 3
a19508 1
done
d19510 1
a19510 9
esac

for ac_header in arpa/nameser.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ARPA_NAMESER_H 1
_ACEOF
d19514 3
a19516 3
done

for ac_header in sys/socket.h
d19518 4
a19521 2
  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_socket_h" = xyes; then :
d19523 1
a19523 1
#define HAVE_SYS_SOCKET_H 1
d19530 3
a19532 5

#
case "$host" in
 *-hp-hpux*)
    for ac_header in net/netmp.h
d19534 4
a19537 2
  ac_fn_c_check_header_mongrel "$LINENO" "net/netmp.h" "ac_cv_header_net_netmp_h" "$ac_includes_default"
if test "x$ac_cv_header_net_netmp_h" = xyes; then :
d19539 1
a19539 1
#define HAVE_NET_NETMP_H 1
a19540 3
 netmp_h_works=yes
else
  netmp_h_works=no
d19546 1
a19546 15
    case "$netmp_h_works" in
     no)
	cat >>confdefs.h <<_ACEOF
#ifndef MPINFOU_PREDECLARED
# define MPINFOU_PREDECLARED
typedef union mpinfou {		/* For lint */
	struct pdk_mpinfo *pdkptr;
	struct mpinfo *pikptr;
} mpinfou_t;
#endif
_ACEOF

	;;
    esac
    ;;
d19550 2
a19551 2
 *-linux*)
    for ac_header in linux/if_addr.h
d19553 4
a19556 7
  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
	#ifdef HAVE_SYS_SOCKET_H
	# include <sys/socket.h>
	#endif

"
if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
d19558 1
a19558 1
#define HAVE_LINUX_IF_ADDR_H 1
a19561 1

d19564 1
d19566 12
d19579 5
a19583 4
for ac_header in net/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
d19585 8
a19592 5

"
if test "x$ac_cv_header_net_if_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_H 1
d19594 8
a19601 1

d19603 3
a19605 7

done

for ac_header in net/if6.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
if test "x$ac_cv_header_net_if6_h" = xyes; then :
d19607 1
a19607 1
#define HAVE_NET_IF6_H 1
d19610 2
d19613 9
a19622 1
done
d19624 7
a19630 11
for ac_header in net/route.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>

"
if test "x$ac_cv_header_net_route_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_ROUTE_H 1
d19632 8
a19639 1

d19641 3
a19643 8

done

for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19645 1
a19645 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d19648 2
d19651 9
d19661 5
a19665 6
done

for ac_header in net/if_var.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "#if HAVE_SYS_TYPES_H
#include <sys/types.h>
d19667 8
a19674 14
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NET_IF_H
#include <net/if.h>
#endif

"
if test "x$ac_cv_header_net_if_var_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_VAR_H 1
d19676 8
a19683 1

d19685 3
a19687 27

done

for ac_header in netinet/ip.h netinet/in_var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NET_IF_H
#include <net/if.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NET_IF_VAR_H
#include <net/if_var.h>
#endif
#ifdef HAVE_NETINET_IN_SYSTM_H
#include <netinet/in_systm.h>
#endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19689 1
a19689 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d19692 2
d19696 3
a19698 7
done


# Check for IPTOS_PREC
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY" >&5
$as_echo_n "checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY... " >&6; }
if ${ntp_cv_ip_tos+:} false; then :
d19701 3
a19703 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19706 14
a19719 11
	    #ifdef HAVE_SYS_TYPES_H
	    # include <sys/types.h>
	    #endif
	    #ifdef HAVE_NETINET_IP_H
	    # include <netinet/in.h>
	    # include <netinet/ip.h>
	    #endif
	    #if defined(IPPROTO_IP) && defined(IP_TOS) && defined(IPTOS_LOWDELAY)
		yes
	    #endif

d19721 2
a19722 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_ip_tos=yes
d19724 1
a19724 2
  ntp_cv_ip_tos=no

d19726 3
a19728 3
rm -f conftest*


d19730 3
a19732 13
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_ip_tos" >&5
$as_echo "$ntp_cv_ip_tos" >&6; }
case "$ntp_cv_ip_tos" in
 yes)

$as_echo "#define HAVE_IPTOS_SUPPORT 1" >>confdefs.h

esac

for ac_header in netinfo/ni.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
d19734 1
a19734 1
#define HAVE_NETINFO_NI_H 1
d19737 2
d19741 2
a19742 1
done
d19744 1
a19744 2
case "$ac_cv_header_netinfo_ni_h" in
 yes)
d19746 15
a19760 10
$as_echo "#define HAVE_NETINFO 1" >>confdefs.h

esac
for ac_header in sun/audioio.h sys/audioio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d19762 4
a19765 1

d19767 1
a19767 12

done

for ac_header in sys/clkdefs.h sys/file.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

d19769 3
d19773 1
a19773 1
done
d19775 1
a19775 11
case "$host" in
 *-*-sunos4*)
    ;;
 *)
    for ac_header in sys/ioctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_IOCTL_H 1
_ACEOF
a19778 2
done

a19780 8
for ac_header in sys/ipc.h sys/lock.h sys/mman.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a19781 1
fi
d19783 8
a19790 1
done
d19792 2
a19793 5
for ac_header in sys/modem.h sys/param.h sys/ppsclock.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19795 1
a19795 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d19802 2
a19803 2
# HMS: Check sys/proc.h and sys/resource.h after some others
for ac_header in sys/ppstime.h sched.h
d19805 6
a19810 3
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19812 1
a19812 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d19819 2
a19820 5
case "$ac_cv_header_sched_h" in
 yes)
    ;;
 *)
    for ac_header in sys/sched.h
d19822 9
a19830 2
  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sched_h" = xyes; then :
d19832 1
a19832 1
#define HAVE_SYS_SCHED_H 1
a19838 13
    ;;
esac
case "$host" in
 *-*-sco*)
    for ac_header in sys/sio.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/sio.h" "ac_cv_header_sys_sio_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sio_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SIO_H 1
_ACEOF

fi
d19840 1
a19840 6
done

    ;;
esac
# HMS: Check sys/shm.h after some others
for ac_header in sys/select.h sys/signal.h sys/sockio.h
d19842 3
a19844 6
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d19846 2
a19847 14
fi

done

# HMS: Checked sys/socket.h earlier
case "$host" in
 *-*-netbsd*)
    ;;
 *)
    for ac_header in machine/soundcard.h sys/soundcard.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19849 1
a19849 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a19855 12
    ;;
esac
for ac_header in sys/stat.h sys/stream.h sys/stropts.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi
d19857 1
a19857 4
done

# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
for ac_header in sys/sysctl.h
d19859 5
a19863 2
  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
# include <sys/param.h>
d19865 4
d19870 1
a19870 1
if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
d19872 1
a19872 1
#define HAVE_SYS_SYSCTL_H 1
a19878 8
for ac_header in sys/syssgi.h sys/systune.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d19880 7
a19886 1
fi
d19888 3
a19890 1
done
d19892 4
a19895 7
for ac_header in sys/termios.h sys/time.h sys/signal.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d19897 6
d19905 7
d19913 2
a19914 1
done
d19916 6
a19921 1
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19924 27
a19950 10
	#ifdef HAVE_SYS_TIME_H
	# include <sys/time.h>
	#endif
	#ifdef HAVE_ERRNO_H
	# include <errno.h>
	#endif
	#include <sys/timepps.h>
	#ifdef PPS_API_VERS_1
	    yes
	#endif
d19952 24
a19975 12
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  for ac_header in sys/timepps.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
	    #ifdef HAVE_SYS_TIME_H
	    # include <sys/time.h>
	    #endif
	    #ifdef HAVE_ERRNO_H
	    # include <errno.h>
	    #endif
d19977 3
a19979 5

"
if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEPPS_H 1
d19981 6
a19986 1

d19988 3
d19992 1
a19992 1
done
d19994 1
d19996 13
a20008 2
fi
rm -f conftest*
a20009 7
for ac_header in sys/timers.h sys/tpro.h sys/types.h sys/wait.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d20011 1
d20013 21
d20035 7
d20043 8
a20050 1
done
d20052 7
a20058 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if ${ac_cv_header_time+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20061 1
a20061 2
#include <sys/time.h>
#include <time.h>
d20066 4
a20069 2
if ((struct tm *) 0)
return 0;
d20075 1
a20075 1
  ac_cv_header_time=yes
d20077 1
a20077 1
  ac_cv_header_time=no
d20081 7
a20087 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then
d20089 6
a20094 1
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
d20096 3
a20098 11
fi

case "$host" in
*-convex-*)
    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d20100 3
a20102 51

fi

done

    ;;
*-*-bsdi*)
    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ;;
esac

case "$host" in
 *-*-*linux*)
    for ac_func in __adjtimex __ntp_gettime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac
case "$ac_cv_func___adjtimex" in
 yes)
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
$as_echo_n "checking for nlist in -lelf... " >&6; }
if ${ac_cv_lib_elf_nlist+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelf  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20104 1
a20105 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
d20109 4
a20112 1
return nlist ();
d20117 2
a20118 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_elf_nlist=yes
d20120 1
a20120 1
  ac_cv_lib_elf_nlist=no
d20122 1
a20122 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d20124 7
a20130 18
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
$as_echo "$ac_cv_lib_elf_nlist" >&6; }
if test "x$ac_cv_lib_elf_nlist" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBELF 1
_ACEOF

  LIBS="-lelf $LIBS"

fi
	        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkvm" >&5
$as_echo_n "checking for main in -lkvm... " >&6; }
if ${ac_cv_lib_kvm_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lkvm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20132 15
a20146 1

d20151 1
a20151 1
return main ();
d20156 12
a20167 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_kvm_main=yes
else
  ac_cv_lib_kvm_main=no
d20169 1
a20169 18
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_main" >&5
$as_echo "$ac_cv_lib_kvm_main" >&6; }
if test "x$ac_cv_lib_kvm_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBKVM 1
_ACEOF

  LIBS="-lkvm $LIBS"

fi
		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lld" >&5
$as_echo_n "checking for nlist in -lld... " >&6; }
if ${ac_cv_lib_ld_nlist+:} false; then :
  $as_echo_n "(cached) " >&6
d20171 1
a20171 3
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20173 1
a20173 8

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
d20177 10
a20186 1
return nlist ();
d20191 2
a20192 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ld_nlist=yes
d20194 4
a20197 1
  ac_cv_lib_ld_nlist=no
d20199 2
a20200 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d20202 9
a20210 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ld_nlist" >&5
$as_echo "$ac_cv_lib_ld_nlist" >&6; }
if test "x$ac_cv_lib_ld_nlist" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLD 1
_ACEOF
d20212 1
a20212 1
  LIBS="-lld $LIBS"
d20214 5
a20218 1
fi
d20220 3
a20222 3
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lmld" >&5
$as_echo_n "checking for nlist in -lmld... " >&6; }
if ${ac_cv_lib_mld_nlist+:} false; then :
d20225 1
a20225 3
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20227 2
a20229 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
d20233 1
a20233 1
return nlist ();
d20238 2
a20239 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_mld_nlist=yes
d20241 1
a20241 1
  ac_cv_lib_mld_nlist=no
d20243 1
a20243 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d20245 5
a20249 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mld_nlist" >&5
$as_echo "$ac_cv_lib_mld_nlist" >&6; }
if test "x$ac_cv_lib_mld_nlist" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBMLD 1
a20251 1
  LIBS="-lmld $LIBS"
d20253 4
a20256 1
fi
d20258 2
a20259 7
    for ac_header in nlist.h sys/var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d20264 2
a20265 1
done
d20267 1
a20267 2
    case "$ac_cv_header_nlist_h" in
     yes)
d20269 3
a20271 1
$as_echo "#define NLIST_STRUCT 1" >>confdefs.h
d20273 1
a20273 8
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
$as_echo_n "checking for n_un in struct nlist... " >&6; }
if ${ntp_cv_struct_nlist_n_un+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d20275 2
a20276 1
		    #include <nlist.h>
d20278 1
a20278 3
int
main ()
{
d20280 3
a20282 2
		    struct nlist n;
		    n.n_un.n_name = 0;
d20284 1
d20286 10
a20295 7
  ;
  return 0;
}
	    ntp_cv_struct_nlist_n_un=yes
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_nlist_n_un=no
d20297 10
a20307 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d20310 4
a20313 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
    case "$ntp_cv_struct_nlist_n_un" in
     yes)
d20315 3
a20317 1
$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
a20318 3
    esac
    ;;
esac
d20320 2
a20321 8
for ac_header in sys/proc.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
d20323 2
a20324 4
"
if test "x$ac_cv_header_sys_proc_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PROC_H 1
d20327 1
a20329 1
done
a20331 5
for ac_header in sys/resource.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
d20333 19
a20351 4
"
if test "x$ac_cv_header_sys_resource_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_RESOURCE_H 1
d20353 6
a20358 1

d20360 3
d20364 1
a20364 1
done
d20366 1
a20367 8
for ac_header in sys/shm.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_IPC_H
# include <sys/ipc.h>
#endif
d20369 15
a20383 4
"
if test "x$ac_cv_header_sys_shm_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SHM_H 1
d20385 6
d20393 3
d20397 1
a20397 1
done
d20399 1
d20401 15
a20415 10
for ac_header in sys/timex.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "#if HAVE_SYS_TIME_H
# include <sys/time.h>
#endif

"
if test "x$ac_cv_header_sys_timex_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEX_H 1
d20417 6
d20425 3
d20429 1
a20429 1
done
d20431 1
d20433 17
a20449 11
for ac_header in resolv.h
do :
  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
d20451 2
a20452 4
"
if test "x$ac_cv_header_resolv_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RESOLV_H 1
d20455 21
d20477 9
a20486 1
done
d20489 3
a20491 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic volatile support" >&5
$as_echo_n "checking for basic volatile support... " >&6; }
if ${ntp_cv_c_volatile+:} false; then :
d20497 4
a20500 1

d20504 1
a20504 4

		volatile int x;


a20507 1
	ntp_cv_c_volatile=yes
d20510 3
a20512 2
  ntp_cv_c_volatile=no

d20517 2
a20518 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_c_volatile" >&5
$as_echo "$ntp_cv_c_volatile" >&6; }
case "$ntp_cv_c_volatile" in
 yes)
    ;;
 *)
d20520 3
a20522 8
$as_echo "#define volatile /**/" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
d20528 1
d20532 1
a20532 50
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

d20538 1
a20538 1
  ac_cv_c_const=yes
d20540 1
a20540 1
  ac_cv_c_const=no
d20543 1
d20545 8
a20552 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then
d20554 1
a20554 1
$as_echo "#define const /**/" >>confdefs.h
d20556 1
d20559 3
a20561 3
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :
d20564 1
a20564 2
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
d20567 8
a20574 5
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;

d20577 16
d20594 6
a20599 26
	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20601 1
d20603 9
a20611 2
	     #include <sys/param.h>

a20614 5
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif
d20616 2
d20623 22
a20644 2
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20646 10
a20655 2
#include <sys/types.h>
		#include <sys/param.h>
d20660 2
a20661 3
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif
d20668 1
a20668 1
  ac_cv_c_bigendian=yes
d20670 2
a20671 1
  ac_cv_c_bigendian=no
d20674 2
d20677 8
a20684 7
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
d20686 5
a20690 6
int
main ()
{
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif
d20692 1
a20692 7
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20694 10
a20703 1
#include <limits.h>
d20708 3
a20710 3
#ifndef _BIG_ENDIAN
		 not big endian
		#endif
d20717 1
a20717 1
  ac_cv_c_bigendian=yes
d20719 2
a20720 1
  ac_cv_c_bigendian=no
d20723 2
d20726 12
a20737 7
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20739 10
a20748 15
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;
d20753 4
a20756 1
return use_ascii (foo) == use_ebcdic (foo);
d20762 4
a20765 11
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
d20768 19
d20788 2
a20789 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20791 11
a20801 1
$ac_includes_default
d20806 2
a20807 8
	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;
d20813 2
a20814 2
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
d20816 2
a20817 1
  ac_cv_c_bigendian=yes
d20819 3
a20821 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d20823 2
d20826 5
a20830 23
    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)

$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h

     ;; #(
   *)
     as_fn_error $? "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
if ${ac_cv_type_signal+:} false; then :
d20833 2
a20834 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20836 10
a20845 2
#include <sys/types.h>
#include <signal.h>
d20850 4
a20853 1
return *(signal (0, 0)) (0) == 1;
d20859 1
a20859 1
  ac_cv_type_signal=int
d20861 2
a20862 1
  ac_cv_type_signal=void
a20864 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }
a20865 3
cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
_ACEOF
d20867 5
d20873 1
a20873 2
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
if test "x$ac_cv_type_off_t" = xyes; then :
d20875 2
a20876 5
else

cat >>confdefs.h <<_ACEOF
#define off_t long int
_ACEOF
a20877 1
fi
a20878 2
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :
d20880 7
d20889 5
a20893 3
cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF
d20895 3
a20897 1
fi
d20899 2
a20900 2
ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
if test "x$ac_cv_type_time_t" = xyes; then :
d20902 3
a20904 2
cat >>confdefs.h <<_ACEOF
#define HAVE_TIME_T 1
d20906 4
a20909 1

d20912 1
a20912 6
ac_fn_c_check_type "$LINENO" "long" "ac_cv_type_long" "$ac_includes_default"
if test "x$ac_cv_type_long" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG 1
_ACEOF
d20916 4
a20919 2
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :
d20921 1
a20921 3
cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF
d20923 1
d20925 5
a20929 9
fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
$as_echo_n "checking size of time_t... " >&6; }
if ${ac_cv_sizeof_time_t+:} false; then :
d20932 12
a20943 1
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
d20945 8
d20954 1
a20954 8
  if test "$ac_cv_type_time_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (time_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_time_t=0
   fi
d20956 1
d20959 9
a20967 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
$as_echo "$ac_cv_sizeof_time_t" >&6; }
d20969 3
a20971 13


cat >>confdefs.h <<_ACEOF
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
_ACEOF





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if ${ac_cv_struct_tm+:} false; then :
a20975 2
#include <sys/types.h>
#include <time.h>
d20977 1
d20981 3
a20983 3
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
d20989 1
a20989 1
  ac_cv_struct_tm=time.h
d20991 1
a20991 1
  ac_cv_struct_tm=sys/time.h
d20994 1
d20996 3
a20998 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then
d21000 1
a21000 1
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
d21004 3
a21006 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t" >&5
$as_echo_n "checking for u_int8_t... " >&6; }
if ${ntp_cv_type_u_int8_t+:} false; then :
d21012 1
a21012 4
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif

d21017 2
a21018 3
		u_int8_t len = 42;


d21024 1
a21024 1
  ntp_cv_type_u_int8_t=yes
d21026 1
a21026 2
  ntp_cv_type_u_int8_t=no

d21031 3
a21033 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int8_t" >&5
$as_echo "$ntp_cv_type_u_int8_t" >&6; }
case "$ntp_cv_type_u_int8_t" in
 yes)
d21035 1
a21035 1
$as_echo "#define HAVE_TYPE_U_INT8_T 1" >>confdefs.h
d21037 1
a21037 1
esac
d21039 3
a21041 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t" >&5
$as_echo_n "checking for u_int64_t... " >&6; }
if ${ntp_cv_type_u_int64_t+:} false; then :
d21047 9
a21055 4
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif

d21059 1
a21059 4

		u_int64_t len = 42;


d21065 1
a21065 1
  ntp_cv_type_u_int64_t=yes
d21067 1
a21067 2
  ntp_cv_type_u_int64_t=no

a21069 1

d21071 3
a21073 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int64_t" >&5
$as_echo "$ntp_cv_type_u_int64_t" >&6; }
case "$ntp_cv_type_u_int64_t" in
 yes)
d21075 1
a21075 1
$as_echo "#define HAVE_TYPE_U_INT64_T 1" >>confdefs.h
d21077 1
a21077 1
esac
d21079 3
a21081 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
$as_echo_n "checking for a fallback value for HZ... " >&6; }
if ${ntp_cv_default_hz+:} false; then :
d21084 2
d21087 20
a21106 9
	ntp_cv_default_hz=100
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_default_hz=1024
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_default_hz=256
	    ;;
	esac
d21108 1
d21111 17
a21127 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
$as_echo "$ntp_cv_default_hz" >&6; }
d21130 1
a21130 1
#define DEFAULT_HZ $ntp_cv_default_hz
d21134 6
a21139 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
if ${ntp_cv_override_hz+:} false; then :
d21142 9
d21152 11
a21162 18
	ntp_cv_override_hz=no
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_override_hz=yes
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-freebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-sunos4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-kfreebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	esac
d21164 14
a21178 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
$as_echo "$ntp_cv_override_hz" >&6; }
case "$ntp_cv_override_hz" in
 yes)
d21180 4
a21183 1
$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
d21185 1
a21185 1
esac
d21188 1
d21190 3
a21192 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
$as_echo_n "checking for struct rt_msghdr... " >&6; }
if ${ntp_cv_struct_rt_msghdr+:} false; then :
d21197 1
a21197 6

		#include <sys/types.h>
		#include <sys/socket.h>
		#include <net/if.h>
		#include <net/route.h>

d21201 2
a21202 3

		struct rt_msghdr p;

d21209 1
a21209 1
  ntp_cv_struct_rt_msghdr=yes
d21211 1
a21211 2
  ntp_cv_struct_rt_msghdr=no

d21214 5
d21221 7
a21227 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
$as_echo_n "checking for struct rtattr... " >&6; }
if ${ntp_cv_rtattr+:} false; then :
d21230 1
a21230 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d21232 11
a21242 3
		#include <stddef.h>
		#include <sys/socket.h>
		#include <linux/rtnetlink.h>
d21244 3
a21246 3
int
main ()
{
a21247 1
		struct rtattr p;
d21250 2
a21251 3
  ;
  return 0;
}
d21253 10
a21262 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rtattr=yes
d21264 1
a21264 1
  ntp_cv_rtattr=no
d21266 10
a21276 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21279 2
a21280 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
$as_echo "$ntp_cv_rtattr" >&6; }
a21281 2
case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
 *yes*)
a21282 1
$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
d21284 3
a21286 2
    case "$ntp_cv_rtattr" in
     yes)
a21287 1
$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
d21289 10
a21298 2
    esac
esac
a21299 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
  $as_echo_n "(cached) " >&6
d21301 16
a21316 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d21318 3
a21320 1
		#include <signal.h>
a21321 3
int
main ()
{
a21322 2
		struct sigaction act;
		act.sa_sigaction = 0;
d21324 2
d21327 2
a21328 3
  ;
  return 0;
}
d21330 1
a21330 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_sigaction_has_sa_sigaction=yes
else
  ntp_cv_struct_sigaction_has_sa_sigaction=no
a21332 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21334 13
a21346 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
 yes)
d21348 8
a21355 1
$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
d21357 1
d21359 3
a21361 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
$as_echo_n "checking for struct ppsclockev... " >&6; }
if ${ntp_cv_struct_ppsclockev+:} false; then :
d21366 1
a21367 24
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TERMIOS_H
		# include <sys/termios.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_PPSCLOCK_H
		# include <sys/ppsclock.h>
		#endif

int
main ()
{

		extern struct ppsclockev *pce;
		return pce->serial;


  ;
  return 0;
}
d21369 3
a21371 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ppsclockev=yes
d21373 3
a21375 1
  ntp_cv_struct_ppsclockev=no
d21378 5
a21382 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a21383 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
case "$ntp_cv_struct_ppsclockev" in
 yes)
d21385 1
a21385 1
$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
d21387 1
a21387 1
esac
a21388 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
if ${ntp_cv_sockaddr_storage+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d21390 17
a21406 9
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif
d21408 7
d21418 1
a21418 4

		struct sockaddr_storage n;


d21423 9
a21431 5
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_sockaddr_storage=yes
else
  ntp_cv_sockaddr_storage=no

d21433 4
a21436 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d21438 2
a21439 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
$as_echo "$ntp_cv_sockaddr_storage" >&6; }
case "$ntp_cv_sockaddr_storage" in
 yes)

$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h

esac
a21440 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_family" >&5
$as_echo_n "checking for sockaddr_storage.ss_family... " >&6; }
if ${ntp_cv_have_ss_family+:} false; then :
  $as_echo_n "(cached) " >&6
d21442 10
a21451 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d21453 1
a21453 9
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif
d21455 9
a21463 3
int
main ()
{
d21465 2
a21466 2
		struct sockaddr_storage s;
		s.ss_family = 1;
d21468 8
a21475 4

  ;
  return 0;
}
a21476 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have_ss_family=yes
else
  ntp_cv_have_ss_family=no
d21479 9
a21487 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21489 8
a21496 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_family" >&5
$as_echo "$ntp_cv_have_ss_family" >&6; }
a21497 6
case "$ntp_cv_have_ss_family" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
if ${ntp_cv_have___ss_family+:} false; then :
  $as_echo_n "(cached) " >&6
d21499 5
a21503 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d21505 1
a21505 11

		    #ifdef HAVE_SYS_TYPES_H
		    # include <sys/types.h>
		    #endif
		    #ifdef HAVE_SYS_SOCKET_H
		    # include <sys/socket.h>
		    #endif
		    #ifdef HAVE_NETINET_IN_H
		    # include <netinet/in.h>
		    #endif

d21509 1
a21509 5

		    struct sockaddr_storage s;
		    s.__ss_family = 1;


d21514 5
a21518 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have___ss_family=yes
d21520 8
a21527 1
  ntp_cv_have___ss_family=no
d21530 11
a21540 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21543 2
a21544 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
$as_echo "$ntp_cv_have___ss_family" >&6; }
    case "$ntp_cv_have___ss_family" in
     yes)
d21546 6
a21551 1
$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
a21552 2
    esac
esac
d21554 21
d21576 2
d21579 6
a21584 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_len" >&5
$as_echo_n "checking for sockaddr_storage.ss_len... " >&6; }
if ${ntp_cv_have_ss_len+:} false; then :
d21587 3
a21589 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d21592 7
a21598 10
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif

d21602 1
a21602 5

		struct sockaddr_storage s;
		s.ss_len = 1;


d21607 2
a21608 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have_ss_len=yes
d21610 5
a21614 2
  ntp_cv_have_ss_len=no

d21616 5
a21620 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21622 2
a21624 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_len" >&5
$as_echo "$ntp_cv_have_ss_len" >&6; }
d21626 9
a21634 31
case "$ntp_cv_have_ss_len" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_len" >&5
$as_echo_n "checking for sockaddr_storage.__ss_len... " >&6; }
if ${ntp_cv_have___ss_len+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_SYS_TYPES_H
		    # include <sys/types.h>
		    #endif
		    #ifdef HAVE_SYS_SOCKET_H
		    # include <sys/socket.h>
		    #endif
		    #ifdef HAVE_NETINET_IN_H
		    # include <netinet/in.h>
		    #endif

int
main ()
{

		    struct sockaddr_storage s;
		    s.__ss_len = 1;


  ;
  return 0;
}
a21635 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have___ss_len=yes
else
  ntp_cv_have___ss_len=no
d21638 1
a21638 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21640 5
a21644 9
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_len" >&5
$as_echo "$ntp_cv_have___ss_len" >&6; }
    case "$ntp_cv_have___ss_len" in
     yes)

$as_echo "#define HAVE___SS_LEN_IN_SS 1" >>confdefs.h

    esac
d21647 6
a21652 8


#
# Look for in_port_t.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
$as_echo_n "checking for in_port_t... " >&6; }
if ${isc_cv_have_in_port_t+:} false; then :
d21655 3
a21657 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d21659 7
a21665 4

		#include <sys/types.h>
		#include <netinet/in.h>

a21669 4
		in_port_t port = 25;
		return (0);


d21675 1
a21675 1
  isc_cv_have_in_port_t=yes
d21677 5
a21681 1
  isc_cv_have_in_port_t=no
a21683 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21686 5
a21690 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
$as_echo "$isc_cv_have_in_port_t" >&6; }
case "$isc_cv_have_in_port_t" in
 no)
d21692 3
a21694 1
$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
a21695 1
esac
d21697 7
a21703 9
case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
  *yes*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
$as_echo_n "checking for struct snd_size... " >&6; }
if ${ntp_cv_struct_snd_size+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d21705 2
a21706 6
		    #ifdef HAVE_MACHINE_SOUNDCARD_H
		    # include <machine/soundcard.h>
		    #endif
		    #ifdef HAVE_SYS_SOUNDCARD_H
		    # include <sys/soundcard.h>
		    #endif
d21708 2
a21709 3
int
main ()
{
d21711 1
a21711 2
		    extern struct snd_size *ss;
		    return ss->rec_size;
d21713 5
d21719 9
a21727 3
  ;
  return 0;
}
a21728 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_snd_size=yes
else
  ntp_cv_struct_snd_size=no
d21731 11
a21741 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21744 1
a21744 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
$as_echo "$ntp_cv_struct_snd_size" >&6; }
    case "$ntp_cv_struct_snd_size" in
     yes)
a21745 1
$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
d21747 9
a21755 2
    esac
esac
d21757 7
a21763 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
$as_echo_n "checking struct clockinfo for hz... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
d21766 3
a21768 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d21771 7
a21777 2
		#include <sys/time.h>

d21781 1
a21781 5

		extern struct clockinfo *pc;
		return pc->hz;


d21786 2
a21787 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_clockinfo_has_hz=yes
d21789 11
a21799 2
  ntp_cv_struct_clockinfo_has_hz=no

a21800 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21802 4
a21805 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
d21808 1
a21808 1
$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
d21810 1
d21813 3
a21815 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
d21818 2
a21819 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d21822 7
a21828 2
		#include <sys/time.h>

d21832 1
a21832 5

		extern struct clockinfo *pc;
		return pc->tickadj;


d21837 18
a21854 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_clockinfo_has_hz=yes
d21856 4
a21859 2
  ntp_cv_struct_clockinfo_has_hz=no

d21861 5
a21865 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a21867 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)
d21869 2
a21870 3
$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h

esac
a21871 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
$as_echo_n "checking for struct timespec... " >&6; }
if ${ntp_cv_struct_timespec+:} false; then :
  $as_echo_n "(cached) " >&6
a21872 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d21874 1
a21874 10
		#include <sys/time.h>
		/* Under SunOS, timespec is in sys/timepps.h,
		   which needs errno.h and FRAC */
		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif
		#ifdef HAVE_SYS_TIMEPPS_H
		# define FRAC 4294967296
		# include <sys/timepps.h>
		#endif
d21876 1
a21876 3
int
main ()
{
d21878 2
a21879 1
		struct timespec n;
a21880 7

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_timespec=yes
a21881 1
  ntp_cv_struct_timespec=no
d21883 1
a21883 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a21885 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
$as_echo "$ntp_cv_struct_timespec" >&6; }
case "$ntp_cv_struct_timespec" in
 yes)
d21887 12
a21898 1
$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
d21900 1
d21902 27
d21930 9
a21938 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
$as_echo_n "checking for struct ntptimeval... " >&6; }
if ${ntp_cv_struct_ntptimeval+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d21940 2
a21941 2
		#include <sys/time.h>
		#include <sys/timex.h>
d21943 29
a21971 3
int
main ()
{
d21973 7
a21979 1
		struct ntptimeval n;
d21981 2
d21984 7
a21990 3
  ;
  return 0;
}
a21991 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ntptimeval=yes
else
  ntp_cv_struct_ntptimeval=no
d21994 13
a22006 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d22009 15
a22023 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
case "$ntp_cv_struct_ntptimeval" in
 yes)
d22025 2
a22026 1
$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
d22028 1
d22030 9
d22040 2
a22041 15
ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
	#ifdef HAVE_SYS_TIME_H
	#include <sys/time.h>
	#else
	# ifdef HAVE_TIME_H
	#  include <time.h>
	# endif
	#endif
	#ifdef HAVE_SYS_TIMEX_H
	# include <sys/timex.h>
	#else
	# ifdef HAVE_TIMEX_H
	#  include <timex.h>
	# endif
	#endif
d22043 14
d22058 2
a22059 2
"
if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
d22061 10
a22070 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
d22073 10
d22085 1
d22087 7
a22094 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if ${ac_cv_c_inline+:} false; then :
  $as_echo_n "(cached) " >&6
a22095 9
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif
d22097 4
a22100 3
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
a22101 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
d22104 10
d22115 1
a22115 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }
d22117 8
a22124 11
case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
a22125 2
    ;;
esac
d22127 2
d22130 9
a22138 4
case "$ac_cv_c_inline" in
 '')
    ;;
 *)
d22140 2
a22141 1
$as_echo "#define HAVE_INLINE 1" >>confdefs.h
d22143 7
d22151 2
a22152 1
esac
d22154 67
a22220 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
$as_echo_n "checking whether char is unsigned... " >&6; }
if ${ac_cv_c_char_unsigned+:} false; then :
d22223 2
a22224 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d22226 21
a22246 1
$ac_includes_default
a22249 2
static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0
d22256 1
a22256 1
  ac_cv_c_char_unsigned=no
d22258 1
a22258 1
  ac_cv_c_char_unsigned=yes
d22261 1
a22261 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
$as_echo "$ac_cv_c_char_unsigned" >&6; }
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
d22264 2
a22265 10
		# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
$as_echo_n "checking size of signed char... " >&6; }
if ${ac_cv_sizeof_signed_char+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :
d22267 1
a22267 10
else
  if test "$ac_cv_type_signed_char" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (signed char)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_signed_char=0
   fi
fi
d22269 8
a22276 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
$as_echo "$ac_cv_sizeof_signed_char" >&6; }
d22278 2
d22281 1
d22283 2
a22284 3
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
_ACEOF
d22286 11
d22298 2
a22299 2
ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
if test "x$ac_cv_type_s_char" = xyes; then :
d22301 3
a22303 2
cat >>confdefs.h <<_ACEOF
#define HAVE_S_CHAR 1
d22305 6
d22312 6
d22321 3
a22323 7
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
d22326 9
a22334 1
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
d22336 10
d22347 1
a22347 8
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
d22349 1
d22352 3
a22354 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }
d22356 1
d22358 1
d22360 2
a22361 4
cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF

d22363 3
a22365 7
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
d22368 2
a22369 1
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
d22371 1
a22371 10
else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi
d22373 5
a22377 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }
d22379 3
d22383 1
d22385 3
a22387 2
cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
d22389 6
d22396 5
d22402 1
a22403 3
case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
 *yes)
    # We have a typedef for s_char.  Might as well believe it...
d22405 1
a22405 2
 no0no)
    # We have signed chars, can't say 'signed char', no s_char typedef.
d22407 1
a22407 1
$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
d22409 3
a22411 21
    ;;
 no1no)
    # We have signed chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 yes0no)
    # We have unsigned chars, can't say 'signed char', no s_char typedef.
    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
    ;;
 yes1no)
    # We have unsigned chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
if ${ac_cv_type_uid_t+:} false; then :
d22416 10
a22425 2
#include <sys/types.h>

d22427 2
a22428 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "uid_t" >/dev/null 2>&1; then :
  ac_cv_type_uid_t=yes
d22430 1
a22430 1
  ac_cv_type_uid_t=no
d22432 1
a22432 2
rm -f conftest*

d22434 7
a22440 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; }
if test $ac_cv_type_uid_t = no; then
d22442 3
a22444 20
$as_echo "#define uid_t int" >>confdefs.h


$as_echo "#define gid_t int" >>confdefs.h

fi


case "$host" in
 *-*-aix[456]*)
	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
	# IBM pulls its thumbs out long enough to implement clock_settime,
	# this conditional will need to change.  Maybe use AC_TRY_RUN
	# instead to try to set the time to itself and check errno.
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
$as_echo_n "checking for library containing clock_gettime... " >&6; }
if ${ac_cv_search_clock_gettime+:} false; then :
d22447 1
a22447 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d22449 12
a22460 6

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
a22461 1
char clock_gettime ();
d22465 1
a22465 1
return clock_gettime ();
d22470 4
a22473 9
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_clock_gettime=$ac_res
d22475 1
a22475 4
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_clock_gettime+:} false; then :
  break
d22477 7
a22483 2
done
if ${ac_cv_search_clock_gettime+:} false; then :
d22485 4
d22490 10
a22499 10
  ac_cv_search_clock_gettime=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
$as_echo "$ac_cv_search_clock_gettime" >&6; }
ac_res=$ac_cv_search_clock_gettime
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d22501 8
d22510 1
a22510 10

    for ac_func in clock_gettime clock_settime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

d22512 6
a22517 3
done

    ;;
a22518 18
for ac_func in daemon
do :
  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
if test "x$ac_cv_func_daemon" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DAEMON 1
_ACEOF

fi
done

for ac_func in finite
do :
  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
if test "x$ac_cv_func_finite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FINITE 1
_ACEOF
d22520 4
d22525 1
a22525 15
  for ac_func in isfinite
do :
  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
if test "x$ac_cv_func_isfinite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ISFINITE 1
_ACEOF

else

	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
$as_echo_n "checking for isfinite with <math.h>... " >&6; }
	    _libs=$LIBS
	    LIBS="$LIBS -lm"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d22528 6
a22533 1
			#include <math.h>
d22538 1
a22538 5

			float f = 0.0;
			isfinite(f);


d22543 2
a22544 2
if ac_fn_c_try_link "$LINENO"; then :
  ans=yes
d22546 14
a22559 1
  ans=no
d22561 4
a22564 9
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    LIBS=$_libs
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
	    case "$ans" in
	     yes)
		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
d22566 1
a22566 1
	    esac
d22569 1
a22569 2
fi
done
d22572 1
a22572 2
fi
done
d22575 1
a22575 8
for ac_func in getbootfile getclock getdtablesize
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a22576 2
fi
done
d22578 1
a22579 5
# Check whether --enable-getifaddrs was given.
if test "${enable_getifaddrs+set}" = set; then :
  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
else
  want_getifaddrs="yes"
d22581 1
a22581 1
fi
d22584 1
a22584 21
case $want_getifaddrs in
 yes|glibc)
    #
    # Do we have getifaddrs() ?
    #
    case $host in
     *-*linux*)
	# Some recent versions of glibc support getifaddrs() which does not
	# provide AF_INET6 addresses while the function provided by the USAGI
	# project handles the AF_INET6 case correctly.  We need to avoid
	# using the former but prefer the latter unless overridden by
	# --enable-getifaddrs=glibc.
	case "$want_getifaddrs" in
	 glibc)
	    for ac_func in getifaddrs
do :
  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF
d22586 2
a22587 2
fi
done
d22589 1
a22589 13
	    ;;
	 *)
	    save_LIBS="$LIBS"
	    LIBS="-L/usr/local/v6/lib $LIBS"
	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs in -linet6" >&5
$as_echo_n "checking for getifaddrs in -linet6... " >&6; }
if ${ac_cv_lib_inet6_getifaddrs+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-linet6  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a22590 30
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getifaddrs ();
int
main ()
{
return getifaddrs ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_inet6_getifaddrs=yes
else
  ac_cv_lib_inet6_getifaddrs=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getifaddrs" >&5
$as_echo "$ac_cv_lib_inet6_getifaddrs" >&6; }
if test "x$ac_cv_lib_inet6_getifaddrs" = xyes; then :
  ans=yes
else
  ans=no
d22592 1
a22592 1
fi
d22594 4
a22597 4
	    case "$ans" in
	     yes)
		LIBS="$LIBS -linet6"
		$as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
a22598 9
		;;
	     *)
		LIBS=${save_LIBS}
		;;
	    esac
	    ;;
	esac
	;;
    esac
d22600 10
a22609 8
 *)
    for ac_func in getifaddrs
do :
  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF
d22611 1
a22611 2
fi
done
a22612 2
    ;;
esac
d22614 1
a22614 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
if ${ntp_cv_getsockname_socklen_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
a22615 5
    getsockname_socklen_type_found=no
    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d22617 1
a22617 6
			#ifdef HAVE_SYS_TYPES_H
			# include <sys/types.h>
			#endif
			#ifdef HAVE_SYS_SOCKET_H
			# include <sys/socket.h>
			#endif
a22618 3
int
main ()
{
d22620 1
a22620 3
			extern
			getsockname(int, $getsockname_arg2,
				$ntp_cv_getsockname_socklen_type *);
d22623 1
a22623 16
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  getsockname_socklen_type_found=yes ; break 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	done
    done
    case "$getsockname_socklen_type_found" in
     no)
	ntp_cv_getsockname_socklen_type='socklen_t'
    esac
    { getsockname_arg2=; unset getsockname_arg2;}
    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
d22626 1
a22626 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
a22627 3
cat >>confdefs.h <<_ACEOF
#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
_ACEOF
d22629 1
a22630 8
for ac_func in getuid getrusage hstrerror
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d22632 1
a22632 2
fi
done
a22633 2
ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
if test "x$ac_cv_func_gettimeofday" = xyes; then :
d22635 1
a22635 1
else
a22636 5
case "$host" in
  *-*-mpeix*) ac_cv_func_gettimeofday=yes
    ;;
esac
fi
d22638 1
a22639 13
#
# Check for if_nametoindex() for IPv6 scoped addresses support
#
case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
$as_echo_n "checking for library containing if_nametoindex... " >&6; }
if ${ac_cv_search_if_nametoindex+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d22641 1
a22641 32
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char if_nametoindex ();
int
main ()
{
return if_nametoindex ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' ipv6; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_if_nametoindex=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_if_nametoindex+:} false; then :
  break
fi
done
if ${ac_cv_search_if_nametoindex+:} false; then :
a22642 11
else
  ac_cv_search_if_nametoindex=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
$as_echo "$ac_cv_search_if_nametoindex" >&6; }
ac_res=$ac_cv_search_if_nametoindex
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d22644 1
a22644 1
fi
a22645 8
esac
for ac_func in if_nametoindex
do :
  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
if test "x$ac_cv_func_if_nametoindex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_IF_NAMETOINDEX 1
_ACEOF
d22647 1
a22647 2
fi
done
d22649 2
a22650 2
case "$ac_cv_func_if_nametoindex" in
 yes)
d22652 1
a22652 1
$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
a22653 1
esac
d22655 1
a22655 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
$as_echo_n "checking for library containing inet_ntop... " >&6; }
if ${ac_cv_search_inet_ntop+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d22657 2
a22658 32
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_ntop ();
int
main ()
{
return inet_ntop ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_ntop=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_ntop+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_ntop+:} false; then :
d22660 1
a22660 11
else
  ac_cv_search_inet_ntop=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
$as_echo "$ac_cv_search_inet_ntop" >&6; }
ac_res=$ac_cv_search_inet_ntop
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d22662 4
a22665 1
fi
d22667 1
a22667 2
ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
if test "x$ac_cv_func_inet_ntop" = xyes; then :
a22668 1
else
d22670 1
a22670 1
$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
a22671 1
fi
d22673 1
a22673 2
ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
if test "x$ac_cv_func_inet_pton" = xyes; then :
a22674 1
else
d22676 1
a22676 1
$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
a22677 1
fi
d22679 1
a22680 9
case "$ac_cv_header_kvm_h" in
 yes)
    for ac_func in kvm_open
do :
  ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
if test "x$ac_cv_func_kvm_open" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_KVM_OPEN 1
_ACEOF
d22682 1
a22682 2
fi
done
a22683 2
    ;;
esac
d22685 1
a22685 8
for ac_func in memcpy memmove memset
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a22686 2
fi
done
d22688 1
a22688 11
case "$host" in
 *-*-sco3.2v5.0.*)
    # Just stubs.  Idiots.
    ;;
 *) for ac_func in mkstemp
do :
  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
if test "x$ac_cv_func_mkstemp" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MKSTEMP 1
_ACEOF
a22689 2
fi
done
d22691 1
a22691 9
    ;;
esac
for ac_func in mktime
do :
  ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
if test "x$ac_cv_func_mktime" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MKTIME 1
_ACEOF
a22692 2
fi
done
d22694 20
a22713 29
case "$host" in
 *-*-aix[456]*)
    # Just a stub.  Idiots.
    ;;
 *-*-irix[45]*)
    # Just a stub in "old" Irix.  Idiots.
    ;;
 *-*-*linux*)
    # there, but more trouble than it is worth for now (resolver problems)
    ;;
 *-*-qnx*)
    # Apparently there but not working in QNX.  Idiots?
    ;;
 *-*-sco3.2v5.0.*)
    # Just a stub.  Idiots.
    ;;
 alpha*-dec-osf4*|alpha*-dec-osf5*)
    # mlockall is there, as a #define calling memlk via <sys/mman.h>
    # Not easy to test for - cheat.
    for ac_func in memlk
do :
  ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
if test "x$ac_cv_func_memlk" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MEMLK 1
_ACEOF
 ac_cv_func_mlockall=yes
fi
done
a22714 7
    for ac_func in mlockall
do :
  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MLOCKALL 1
_ACEOF
d22716 1
a22716 2
fi
done
a22717 8
    ;;
 *) for ac_func in mlockall
do :
  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MLOCKALL 1
_ACEOF
d22719 1
a22719 2
fi
done
a22720 10
    ;;
esac
for ac_func in nice nlist
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d22722 1
a22722 2
fi
done
a22723 12
case "$host" in
 *-*-solaris2.6)
    # Broken...
    ;;
 *) for ac_func in ntp_adjtime ntp_gettime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d22725 1
a22725 2
fi
done
a22726 10
    ;;
esac
for ac_func in plock pututline pututxline readlink recvmsg rtprio
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d22728 1
a22728 2
fi
done
a22729 14
case "$host" in
 *-*-aix[456]*)
    # Just a stub in AIX 4.  Idiots.
    ;;
 *-*-solaris2.5*)
    # Just stubs in solaris2.5.  Idiots.
    ;;
 *) for ac_func in sched_setscheduler
do :
  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_SETSCHEDULER 1
_ACEOF
d22731 1
a22731 2
fi
done
d22734 3
a22736 9
esac
for ac_func in setlinebuf setpgid setpriority setsid
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a22737 2
fi
done
d22739 1
a22739 7
for ac_func in setrlimit
do :
  ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
if test "x$ac_cv_func_setrlimit" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETRLIMIT 1
_ACEOF
a22740 2
fi
done
d22742 1
a22742 7
for ac_func in settimeofday
do :
  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
if test "x$ac_cv_func_settimeofday" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETTIMEOFDAY 1
_ACEOF
a22743 1
else
d22745 1
a22745 6
case "$host" in
  *-*-mpeix*) ac_cv_func_settimeofday=yes
    ;;
esac
fi
done
a22746 8
for ac_func in setvbuf sigaction sigvec sigset sigsuspend stime strchr
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d22748 1
a22748 2
fi
done
a22749 8
for ac_func in sysconf sysctl snprintf strdup strerror strstr timegm
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d22751 1
a22751 2
fi
done
a22752 21
case "$host" in
 *-*-aix[456]*)
    # Just stubs.  Idiots.
    ;;
 *-*-netbsd1*)
    # Just stubs.  Idiots.
    ;;
 *-*-netbsdelf1*)
    # Just stubs.  Idiots.
    ;;
 *-*-openbsd*)
    # Just stubs.  Idiots.
    ;;
 *) for ac_func in timer_create timer_settime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d22754 1
a22754 2
fi
done
a22755 10
    ;;
esac
for ac_func in umask uname updwtmp updwtmpx vsnprintf vsprintf
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d22757 1
a22757 2
fi
done
d22760 1
a22760 1
###
a22761 8
# http://bugs.ntp.org/737
case "$ac_cv_func_recvmsg" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
$as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
if ${ntp_cv_struct_iovec_help+:} false; then :
  $as_echo_n "(cached) " >&6
else
d22763 1
a22763 4
	    compiled=no
	    for ntp_cv_struct_iovec_help in '0' '1'; do
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a22764 9
			    #ifdef HAVE_SYS_TYPES_H
			    # include <sys/types.h>
			    #endif
			    #ifdef HAVE_SYS_SOCKET_H
			    # include <sys/socket.h>
			    #endif
			    #if $ntp_cv_struct_iovec_help
			    # include <sys/uio.h>
			    #endif
d22766 1
a22766 3
int
main ()
{
a22767 10
			    void foo(void) {
				ssize_t x;
				int s = 0;
				struct iovec iov;
				struct msghdr mh;
				int flags = 0;

				mh.msg_iov = &iov;
				x = recvmsg(s, &mh, flags);
			    }
d22769 1
a22770 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  compiled=yes ; break 1
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    done
	    case "$compiled" in
	     no)
		ntp_cv_struct_iovec_help=0
	    esac
	    { compiled=; unset compiled;}
d22772 1
a22773 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
$as_echo "$ntp_cv_struct_iovec_help" >&6; }
    case "$ntp_cv_struct_iovec_help" in
     1)
d22775 1
a22775 1
$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
d22777 1
a22777 1
    esac
d22781 1
a22781 1
 *-*-sunos4*)
d22783 1
a22783 1
$as_echo "#define SPRINTF_CHAR 1" >>confdefs.h
d22788 3
a22790 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
d22793 15
a22807 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d22809 20
a22828 1
		#include <sys/time.h>
d22830 4
a22833 14
int
main ()
{

		gettimeofday(0, 0);
		settimeofday(0, 0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_func_Xettimeofday_nargs=2
d22835 7
a22841 2
  ntp_cv_func_Xettimeofday_nargs=1

d22843 7
a22849 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d22851 26
d22878 6
a22883 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
case "$ntp_cv_func_Xettimeofday_nargs" in
 1)

$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h

d22886 3
a22888 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
if ${ntp_cv_func_setpgrp_nargs+:} false; then :
a22890 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d22892 31
a22922 6
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_UNISTD_H
		# include <unistd.h>
		#endif
d22924 5
a22928 3
int
main ()
{
d22930 1
a22930 1
		setpgrp(0, 0);
d22932 1
d22934 4
a22937 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_func_setpgrp_nargs=2
d22939 8
a22946 2
  ntp_cv_func_setpgrp_nargs=0

d22948 7
a22954 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d22956 13
d22970 7
a22976 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
$as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
case "$ntp_cv_func_setpgrp_nargs" in
 0)
d22978 31
a23008 1
$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
d23010 20
d23032 3
a23034 7

$as_echo "#define QSORT_USES_VOID_P 1" >>confdefs.h


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
$as_echo_n "checking if we need to declare 'errno'... " >&6; }
if ${ntp_cv_decl_errno+:} false; then :
d23039 4
a23043 14
		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif

int
main ()
{

		errno = 0;


  ;
  return 0;
}
d23045 3
a23047 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_decl_errno=no
d23049 3
a23051 1
  ntp_cv_decl_errno=yes
d23054 2
a23055 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d23057 44
d23102 3
a23104 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
$as_echo "$ntp_cv_decl_errno" >&6; }
case "$ntp_cv_decl_errno" in
d23106 2
a23107 3

$as_echo "#define DECL_ERRNO 1" >>confdefs.h

d23110 3
a23112 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
$as_echo_n "checking if we may declare 'h_errno'... " >&6; }
if ${ntp_cv_decl_h_errno+:} false; then :
d23117 4
d23122 8
a23129 13
		#include <sys/types.h>
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif
		#ifdef HAVE_ARPA_NAMESER_H
		# include <arpa/nameser.h>
		#endif
		#ifdef HAVE_NETDB_H
		# include <netdb.h>
		#endif
		#ifdef HAVE_RESOLV_H
		# include <resolv.h>
		#endif
d23131 3
a23133 3
int
main ()
{
d23135 11
a23145 1
		extern int h_errno;
a23146 4

  ;
  return 0;
}
d23148 3
a23150 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_decl_h_errno=yes
d23152 3
a23154 1
  ntp_cv_decl_h_errno=no
d23157 2
a23158 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d23160 54
d23215 3
a23217 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
$as_echo "$ntp_cv_decl_h_errno" >&6; }
case "$ntp_cv_decl_h_errno" in
d23219 3
d23223 58
a23280 2
$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h

d23283 5
a23287 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
if ${ntp_cv_decl_syscall+:} false; then :
d23292 4
a23296 18
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_UNISTD_H
		# include <unistd.h>
		#endif

int
main ()
{

		extern int syscall (int, ...);


  ;
  return 0;
}
	ntp_cv_decl_syscall=yes
d23298 7
a23304 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_decl_syscall=no
d23307 10
a23316 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d23318 12
d23331 3
a23333 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
$as_echo "$ntp_cv_decl_syscall" >&6; }
case "$ntp_cv_decl_syscall" in
d23335 3
d23339 22
a23360 2
$as_echo "#define DECL_SYSCALL 1" >>confdefs.h

d23363 6
d23370 13
a23382 4
 *-*-aix4.3.*)

$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
		# Needed for XLC under AIX 4.3.2
d23384 10
a23393 1
 *-*-mpeix*)
d23395 8
a23402 1
$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
d23404 1
d23406 1
a23406 1
$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
d23408 3
d23412 8
a23419 1
$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
d23421 1
d23423 1
a23423 1
$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
d23425 3
d23429 7
a23435 1
$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
d23437 1
a23438 1
$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
d23440 3
d23444 2
a23445 1
$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d23447 7
a23453 2
    ;;
 *-*-osf[45]*)
d23455 1
a23455 1
$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
d23457 2
d23460 1
a23460 1
$as_echo "#define DECL_STIME_1 1" >>confdefs.h
d23462 3
a23464 2
    ;;
 *-*-qnx*)
d23466 7
a23472 1
$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
d23474 1
a23474 2
    ;;
 *-*-riscos4*)
d23476 2
a23477 1
$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
d23479 1
d23481 3
a23483 1
$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
d23485 17
d23503 14
a23516 1
$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
d23518 14
d23533 13
a23545 1
$as_echo "#define DECL_IPC_0 1" >>confdefs.h
d23547 1
d23549 18
a23566 1
$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
d23568 3
d23572 2
a23573 1
$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
d23575 19
d23595 6
a23600 1
$as_echo "#define DECL_RENAME_0 1" >>confdefs.h
d23602 7
d23610 1
a23610 1
$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
d23612 2
d23615 1
a23615 1
$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
d23617 4
d23622 11
a23632 1
$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
d23634 8
d23643 3
a23645 1
$as_echo "#define DECL_STDIO_0 1" >>confdefs.h
d23647 17
d23665 1
a23665 1
$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
d23667 2
d23670 26
a23695 1
$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
d23698 10
a23707 1
$as_echo "#define DECL_TIME_0 1" >>confdefs.h
d23709 8
d23718 4
a23721 1
$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d23723 1
d23725 4
a23728 1
$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
d23730 10
a23739 2
    ;;
 *-*-solaris2*)
d23741 8
a23748 1
$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
d23750 3
d23754 1
a23754 1
$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
d23756 1
a23756 2
    case "$host" in
     *-*-solaris2.4)
d23758 3
a23760 1
$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d23762 10
a23771 4
	;;
    esac
    ;;
 *-*-sunos4*)
d23773 8
a23780 1
$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
d23782 5
d23788 1
a23788 1
$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
d23790 3
a23793 1
$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
d23795 1
d23797 1
a23797 1
$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
d23799 6
d23806 1
a23806 1
$as_echo "#define DECL_IPC_0 1" >>confdefs.h
d23808 1
d23810 1
a23810 1
$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
d23812 1
d23814 4
a23817 1
$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
d23819 1
d23821 8
a23828 1
$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
d23830 3
d23834 1
a23834 1
$as_echo "#define DECL_RENAME_0 1" >>confdefs.h
d23837 8
a23844 1
$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
d23846 2
d23849 11
a23859 1
$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
d23861 6
d23868 6
a23873 1
$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
d23875 1
d23877 3
a23879 1
$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
d23881 8
a23888 4
    case "`basename $ac_cv_prog_CC`" in
     acc*) ;;
     *)
$as_echo "#define DECL_STDIO_0 1" >>confdefs.h
d23890 1
a23890 2
	;;
    esac
d23892 3
a23894 1
$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
d23897 1
a23897 1
$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
d23899 9
d23909 2
a23910 1
$as_echo "#define DECL_TIME_0 1" >>confdefs.h
d23912 1
d23914 8
a23921 1
$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d23923 9
d23933 2
a23934 1
$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
d23936 1
d23938 8
a23945 1
$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
d23947 4
d23952 1
a23952 1
$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
d23954 4
d23959 3
a23961 1
 *-*-ultrix4*)
d23963 8
a23970 1
$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
d23972 2
d23975 12
a23986 1
$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
d23988 5
d23994 1
a23994 1
$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
d23996 5
d24002 10
a24011 1
$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
d24013 16
d24030 8
a24037 1
$as_echo "#define DECL_IPC_0 1" >>confdefs.h
d24039 1
d24041 2
a24042 1
$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
d24044 1
d24046 3
a24048 1
$as_echo "#define DECL_NLIST_0 1" >>confdefs.h
d24050 8
d24059 2
a24060 1
$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
d24062 1
d24064 3
a24066 1
$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
d24068 8
d24077 2
a24078 1
$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
d24080 1
d24082 3
a24084 1
$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
d24086 8
d24095 2
a24096 1
$as_echo "#define DECL_STIME_0 1" >>confdefs.h
d24098 1
d24100 3
a24102 1
$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
d24104 8
d24113 2
a24114 3
$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h

    ;;
d24116 2
d24119 1
a24119 2
case "$host" in
 *-*-sco3.2*)
d24121 3
a24123 1
$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
d24125 8
a24132 2
    ;;
esac
d24134 2
a24135 2
case "$host" in
 *-*-hpux[567]*)
d24137 1
a24137 1
$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
d24139 3
a24141 1
esac
d24143 5
a24147 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
$as_echo_n "checking if we will open the broadcast socket... " >&6; }
if ${ntp_cv_var_open_bcast_socket+:} false; then :
  $as_echo_n "(cached) " >&6
d24149 2
d24152 2
a24153 6
	ans=yes
	case "$host" in
	 *-*-domainos)
	    ans=no
	esac
	ntp_cv_var_open_bcast_socket=$ans
d24155 1
d24158 3
a24160 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
$as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
case "$ntp_cv_var_open_bcast_socket" in
 yes)

$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
d24162 9
d24172 1
d24174 1
a24174 2
case "$host" in
 *-*-hpux*)
d24176 1
a24176 1
$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
d24178 7
d24187 6
a24192 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
$as_echo_n "checking if process groups are set with -pid... " >&6; }
if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
  $as_echo_n "(cached) " >&6
d24194 8
d24203 2
a24204 21
	case "$host" in
	 *-*-hpux[567]*)
	    ans=no
	    ;;
	 *-*-hpux*)
	    ans=yes
	    ;;
	 *-*-*linux*)
	    ans=yes
	    ;;
	 *-*-sunos3*)
	    ans=yes
	    ;;
	 *-*-ultrix2*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_arg_setpgrp_negpid=$ans
d24206 1
d24209 2
a24210 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
$as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
case "$ntp_cv_arg_setpgrp_negpid" in
 yes)
d24212 5
a24216 8
$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
  $as_echo_n "(cached) " >&6
d24218 2
d24221 2
a24222 31
	case "$host" in
	 *-*-bsdi23*)
	    ans=yes
	    ;;
	 *-*-freebsd*)
	    ans=yes
	    ;;
	# NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
	# while later versions will fail a ioctl(TIOCSCTTY, 0) call in
	# some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
	# in $host may be followed by "aout", "ecoff", or "elf".
	 *-*-netbsd*a-z3.0-8*|*-*-netbsd*a-z0-2.*|*-*-netbsd*a-z3.99.0-7)
	    ans=yes
	    ;;
	 *-*-netbsd3.0-8*|*-*-netbsd0-2.*|*-*-netbsd3.99.0-7)
	    ans=yes
	    ;;
	 *-*-openbsd*)
	    ans=yes
	    ;;
	 *-*-osf*)
	    ans=yes
	    ;;
	 *-*-darwin*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_func_ctty_for_f_setown=$ans
d24224 1
d24227 2
a24228 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
case "$ntp_cv_func_ctty_for_f_setown" in
 yes)
d24230 5
a24234 8
$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
if ${ntp_cv_os_routeupdates+:} false; then :
  $as_echo_n "(cached) " >&6
d24236 1
a24236 12

	case "$host" in
	 *-*-netbsd*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_os_routeupdates=$ans


a24237 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
$as_echo "$ntp_cv_os_routeupdates" >&6; }
case "$ntp_cv_os_routeupdates" in
 yes)
d24239 2
a24240 18
$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
if ${ntp_cv_os_wildcardreuse+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-*linux*)
	    ans=yes
	    ;;
	 *) ans=no
	    ;;
	esac
	ntp_cv_os_wildcardreuse=$ans
d24242 1
d24245 2
a24246 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
case "$ntp_cv_os_wildcardreuse" in
 yes)
d24248 6
a24253 42
$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
ntp_warning='GRONK'
ans=none
case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
 yes*)
    ntp_warning=''
    ans='clock_settime()'
    ;;
 noyes*)
    ntp_warning='But clock_settime() would be better (if we had it)'
    ans='settimeofday()'
    ;;
 nonoyes)
    ntp_warning='Which is the worst of the three'
    ans='stime()'
    ;;
 *)
    case "$build" in
     $host)
	ntp_warning='Which leaves us with nothing to use!'
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ntp_warning" in
 '')
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
$as_echo_n "checking for SIGIO... " >&6; }
if ${ntp_cv_hdr_def_sigio+:} false; then :
  $as_echo_n "(cached) " >&6
d24257 7
a24263 6

	    #include <signal.h>

	    #ifdef SIGIO
		yes
	    #endif
d24268 1
a24268 1
  ntp_cv_hdr_def_sigio=yes
d24270 3
a24272 1
  ntp_cv_hdr_def_sigio=no
a24274 1
rm -f conftest*
d24276 4
d24282 2
a24283 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
$as_echo "$ntp_cv_hdr_def_sigio" >&6; }
d24285 5
a24289 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use signalled IO" >&5
$as_echo_n "checking if we want to use signalled IO... " >&6; }
if ${ntp_cv_var_signalled_io+:} false; then :
  $as_echo_n "(cached) " >&6
d24291 2
d24294 2
a24295 45
	ans=no
	case "$ntp_cv_hdr_def_sigio" in
	 yes)
	    ans=yes
	    case "$host" in
	     alpha*-dec-osf4*|alpha*-dec-osf5*)
		ans=no
		;;
	     *-convex-*)
		ans=no
		;;
	     *-dec-*)
		ans=no
		;;
	     *-pc-cygwin*)
		ans=no
		;;
	     *-sni-sysv*)
		ans=no
		;;
	     *-univel-sysv*)
		ans=no
		;;
	     *-*-irix6*)
		ans=no
		;;
	     *-*-freebsd*)
		ans=no
		;;
	     *-*-*linux*)
		ans=no
		;;
	     *-*-unicosmp*)
		ans=no
		;;
	     *-*-kfreebsd*)
		ans=no
		;;
	     m68k-*-mint*)
		ans=no
		;;
	    esac
	    ;;
	esac
	ntp_cv_var_signalled_io=$ans
d24297 1
d24300 2
a24301 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_signalled_io" >&5
$as_echo "$ntp_cv_var_signalled_io" >&6; }
case "$ntp_cv_var_signalled_io" in
 yes)
d24303 5
a24307 8
$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
$as_echo_n "checking for SIGPOLL... " >&6; }
if ${ntp_cv_hdr_def_sigpoll+:} false; then :
  $as_echo_n "(cached) " >&6
d24309 2
a24310 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24312 2
a24313 1
	    #include <signal.h>
d24315 1
a24315 10
	    #ifdef SIGPOLL
		yes
	    #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_hdr_def_sigpoll=yes
else
  ntp_cv_hdr_def_sigpoll=no
d24318 2
a24319 2
rm -f conftest*

d24321 7
a24328 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
d24330 2
a24331 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGSYS" >&5
$as_echo_n "checking for SIGSYS... " >&6; }
if ${ntp_cv_hdr_def_sigsys+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24333 1
a24333 1
	    #include <signal.h>
d24335 3
a24337 3
	    #ifdef SIGSYS
		yes
	    #endif
d24339 5
a24343 4
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_hdr_def_sigsys=yes
d24345 5
a24349 1
  ntp_cv_hdr_def_sigsys=no
d24351 2
a24352 2
fi
rm -f conftest*
d24354 1
d24357 6
a24362 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigsys" >&5
$as_echo "$ntp_cv_hdr_def_sigsys" >&6; }
d24364 5
a24368 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
if ${ntp_cv_var_use_udp_sigpoll+:} false; then :
  $as_echo_n "(cached) " >&6
d24370 2
d24373 2
a24374 52
	ans=no
	case "$ntp_cv_hdr_def_sigpoll" in
	 yes)
	    case "$host" in
	     mips-sgi-irix*)
		ans=no
		;;
	     vax-dec-bsd)
		ans=no
		;;
	     *-pc-cygwin*)
		ans=no
		;;
	     *-sni-sysv*)
		ans=no
		;;
	     *-*-aix[456]*)
		ans=no
		;;
	     *-*-hpux*)
		ans=no
		;;
	     *-*-*linux*)
		ans=no
		;;
	     *-*-osf*)
		ans=no
		;;
	     *-*-qnx*)
		ans=no
		;;
	     *-*-sunos*)
		ans=no
		;;
	     *-*-solaris*)
		ans=no
		;;
	     *-*-ultrix*)
		ans=no
		;;
	     *-*-unicosmp*)
		ans=no
		;;
	     *-*-kfreebsd*)
		ans=no
		;;
	     *) ans=yes
		;;
	    esac
	    ;;
	esac
	ntp_cv_var_use_udp_sigpoll=$ans
d24376 1
d24379 2
a24380 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_use_udp_sigpoll" >&5
$as_echo "$ntp_cv_var_use_udp_sigpoll" >&6; }
case "$ntp_cv_var_use_udp_sigpoll" in
 yes)
d24382 5
a24386 8
$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
if ${ntp_cv_var_use_tty_sigpoll+:} false; then :
  $as_echo_n "(cached) " >&6
d24388 1
a24388 52

	ans=no
	case "$ntp_cv_hdr_def_sigpoll" in
	 yes)
	    case "$host" in
	     mips-sgi-irix*)
		ans=no
		;;
	     vax-dec-bsd)
		ans=no
		;;
	     *-pc-cygwin*)
		ans=no
		;;
	     *-sni-sysv*)
		ans=no
		;;
	     *-*-aix[456]*)
		ans=no
		;;
	     *-*-hpux*)
		ans=no
		;;
	     *-*-*linux*)
		ans=no
		;;
	     *-*-osf*)
		ans=no
		;;
	     *-*-sunos*)
		ans=no
		;;
	     *-*-ultrix*)
		ans=no
		;;
	     *-*-qnx*)
		ans=no
		;;
	     *-*-unicosmp*)
		ans=no
		;;
	     *-*-kfreebsd*)
		ans=no
		;;
	     *) ans=yes
		;;
	    esac
	    ;;
	esac
	ntp_cv_var_use_tty_sigpoll=$ans


a24389 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_use_tty_sigpoll" >&5
$as_echo "$ntp_cv_var_use_tty_sigpoll" >&6; }
case "$ntp_cv_var_use_tty_sigpoll" in
 yes)

$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
d24391 2
d24394 2
d24397 1
a24397 2
case "$host" in
 *-*-aix*)
d24399 3
a24401 1
$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
d24403 5
a24407 6
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
if ${ntp_cv_var_min_rec_tickadj+:} false; then :
  $as_echo_n "(cached) " >&6
d24409 2
d24412 2
a24413 7
	ans=no
	case "$host" in
	 *-*-aix*)
	    ans=40
	    ;;
	esac
	ntp_cv_var_min_rec_tickadj=$ans
d24415 1
d24418 2
a24419 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
$as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
case "$ntp_cv_var_min_rec_tickadj" in
 ''|no)
    ;;
 *)
d24421 5
a24425 10
cat >>confdefs.h <<_ACEOF
#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
_ACEOF

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
if ${ntp_cv_no_parenb_ignpar+:} false; then :
  $as_echo_n "(cached) " >&6
d24427 2
d24430 2
a24431 18
	ans=no
	case "$host" in
	 i?86-*-*linux*)
	    ans=yes
	    ;;
	 mips-sgi-irix*)
	    ans=yes
	    ;;
	 i?86-*-freebsd[123].*)
	    ;;
	 i?86-*-freebsd*)
	    ans=yes
	    ;;
	 *-*-unicosmp*)
	    ans=yes
	    ;;
	esac
	ntp_cv_no_parenb_ignpar=$ans
d24433 1
d24436 2
a24437 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
$as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
case "$ntp_cv_no_parenb_ignpar" in
 yes)
a24438 1
$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
d24440 6
a24445 7
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including ntpd debugging code" >&5
$as_echo_n "checking if we're including ntpd debugging code... " >&6; }
# Check whether --enable-debugging was given.
if test "${enable_debugging+set}" = set; then :
  enableval=$enable_debugging; ntp_ok=$enableval
d24447 6
a24452 2
  ntp_ok=yes

d24455 2
a24456 2
case "$ntp_ok" in
 yes)
d24458 1
a24458 1
$as_echo "#define DEBUG 1" >>confdefs.h
d24460 1
a24460 1
esac
d24463 4
d24468 5
a24472 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
$as_echo_n "checking if we're including processing time debugging code... " >&6; }
# Check whether --enable-debug-timing was given.
if test "${enable_debug_timing+set}" = set; then :
  enableval=$enable_debug_timing; ntp_ok=$enableval
d24474 1
a24474 2
  ntp_ok=no

d24477 2
a24478 2
case "$ntp_ok" in
 yes)
d24480 1
a24480 1
$as_echo "#define DEBUG_TIMING 1" >>confdefs.h
d24482 1
a24482 1
esac
d24486 5
a24490 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
# Check whether --enable-dst-minutes was given.
if test "${enable_dst_minutes+set}" = set; then :
  enableval=$enable_dst_minutes; ans=$enableval
d24492 1
a24492 2
  ans=60

d24495 2
d24498 1
a24498 3
cat >>confdefs.h <<_ACEOF
#define DSTMINUTES $ans
_ACEOF
d24500 3
a24502 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d24504 5
a24508 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
# Check whether --enable-ignore-dns-errors was given.
if test "${enable_ignore_dns_errors+set}" = set; then :
  enableval=$enable_ignore_dns_errors; ans=$enableval
d24510 1
a24510 2
  ans=no

d24513 5
a24517 2
case "$ans" in
 yes)
d24519 1
a24519 1
$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
d24521 3
a24523 3
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d24525 5
a24529 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will use the deferred DNS lookup path" >&5
$as_echo_n "checking if ntpd will use the deferred DNS lookup path... " >&6; }
# Check whether --enable-force-defer-DNS was given.
if test "${enable_force_defer_DNS+set}" = set; then :
  enableval=$enable_force_defer_DNS; ans=$enableval
d24531 7
a24537 2
  ans=no

a24539 4
case "$ans" in
 yes)

$as_echo "#define FORCE_DEFER_DNS 1" >>confdefs.h
d24541 2
a24542 3
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d24544 1
a24544 9
case "$ac_cv_header_sys_sio_h" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
$as_echo_n "checking sys/sio.h for TIOCDCDTIMESTAMP... " >&6; }
if ${ntp_cv_hdr_def_tiocdcdtimestamp+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24546 3
a24548 1
		#include <sys/sio.h>
d24550 5
a24554 8
		#ifdef TIOCDCDTIMESTAMP
		    yes
		#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_hdr_def_tiocdcdtimestamp=yes
d24556 2
a24557 1
  ntp_cv_hdr_def_tiocdcdtimestamp=no
d24559 2
a24560 2
fi
rm -f conftest*
d24562 1
d24565 2
a24566 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_tiocdcdtimestamp" >&5
$as_echo "$ntp_cv_hdr_def_tiocdcdtimestamp" >&6; }
esac
d24568 5
a24572 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the tty_clk line discipline/streams module" >&5
$as_echo_n "checking if we have the tty_clk line discipline/streams module... " >&6; }
if ${ntp_cv_tty_clk+:} false; then :
  $as_echo_n "(cached) " >&6
d24574 2
d24577 2
a24578 8
	case "$ac_cv_header_sys_clkdefs_h$ntp_cv_hdr_def_tiocdcdtimestamp" in
	 *yes*)
	    ntp_cv_tty_clk=yes
	    ;;
	 *)
	    ntp_cv_tty_clk=no
	    ;;
	esac
d24580 1
d24583 2
a24584 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tty_clk" >&5
$as_echo "$ntp_cv_tty_clk" >&6; }
case "$ntp_cv_tty_clk" in
 yes)
d24586 8
a24593 1
$as_echo "#define TTYCLK 1" >>confdefs.h
d24595 3
d24599 2
d24602 1
a24602 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ppsclock streams module" >&5
$as_echo_n "checking for the ppsclock streams module... " >&6; }
case "$ntp_cv_struct_ppsclockev" in
 yes)
    ans=yes
d24604 3
a24606 1
$as_echo "#define PPS 1" >>confdefs.h
d24608 11
a24618 3
    ;;
 *)
    ans=no
d24620 1
a24620 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d24622 2
a24623 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
$as_echo_n "checking for multicast IP support... " >&6; }
if ${ntp_cv_multicast+:} false; then :
  $as_echo_n "(cached) " >&6
else
d24625 1
a24625 7
	ntp_cv_multicast=no
	case "$host" in
	 i386-sequent-sysv4)
	    ;;
	 *)
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24627 3
a24629 3
			#ifdef HAVE_NETINET_IN_H
			#include <netinet/in.h>
			#endif
d24631 8
a24638 3
int
main ()
{
d24640 2
a24641 13
			struct ip_mreq ipmr;
			ipmr.imr_interface.s_addr = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_multicast=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	esac
d24643 1
d24646 2
a24647 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
$as_echo "$ntp_cv_multicast" >&6; }
case "$ntp_cv_multicast" in
 yes)
d24649 5
a24653 6
$as_echo "#define MCAST 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
  $as_echo_n "(cached) " >&6
d24655 8
d24664 2
a24665 7
	    case "$host" in
	     *-*-netbsd*|*-*-*linux*)
		ntp_cv_typeof_ip_multicast_loop=u_int
		;;
	     *)
		ntp_cv_typeof_ip_multicast_loop=u_char
	    esac
d24667 1
d24670 6
a24675 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
a24676 3
cat >>confdefs.h <<_ACEOF
#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
_ACEOF
d24678 6
a24683 6
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
if ${ntp_cv_var_ntp_syscalls+:} false; then :
  $as_echo_n "(cached) " >&6
d24685 9
a24694 11
	ntp_cv_var_ntp_syscalls=no
	case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
	 yesyes*)
	    ntp_cv_var_ntp_syscalls=libc
	    ;;
	 *yes)
	    ntp_cv_var_ntp_syscalls=inline
	    ;;
	 *)
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24696 2
a24697 1
		    #include <sys/syscall.h>
d24699 1
a24699 3
		    #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
			yes
		    #endif
d24701 7
a24707 4
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_var_ntp_syscalls=kernel
d24709 7
a24716 1
rm -f conftest*
d24718 2
a24719 2
	    ;;
	 esac
d24721 1
d24724 2
a24725 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
$as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
case "$ntp_cv_var_ntp_syscalls" in
 libc)
d24727 8
a24734 1
$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
d24736 2
a24737 2
    ;;
 kernel)
d24739 1
a24739 1
$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
d24741 3
a24743 2
    ;;
esac
d24745 5
a24749 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
if ${ntp_cv_var_sta_fll+:} false; then :
  $as_echo_n "(cached) " >&6
d24751 8
a24758 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24760 1
a24760 1
	    #include <sys/timex.h>
d24762 7
a24768 3
	    #ifdef STA_FLL
		yes
	    #endif
d24770 5
a24774 4
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_var_sta_fll=yes
d24776 2
a24777 1
  ntp_cv_var_sta_fll=no
d24779 2
a24780 2
fi
rm -f conftest*
d24782 1
d24785 2
a24786 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
$as_echo "$ntp_cv_var_sta_fll" >&6; }
d24788 5
a24792 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
$as_echo_n "checking if we have kernel PLL support... " >&6; }
if ${ntp_cv_var_kernel_pll+:} false; then :
  $as_echo_n "(cached) " >&6
d24794 6
a24799 9
  	case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
	 *no*)
	    ntp_cv_var_kernel_pll=no
	    ;;
	 *) ntp_cv_var_kernel_pll=yes
	    ;;
	esac


a24800 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
$as_echo "$ntp_cv_var_kernel_pll" >&6; }
case "$ntp_cv_var_kernel_pll" in
 yes)
d24802 2
a24803 1
$as_echo "#define KERNEL_PLL 1" >>confdefs.h
d24805 8
d24815 9
a24823 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
if ${ntp_cv_size_returned_in_buffer+:} false; then :
  $as_echo_n "(cached) " >&6
d24825 2
d24828 3
a24830 13
	ans=no
	case "$host" in
	 *-fujitsu-uxp*)
	    ans=yes
	    ;;
	 *-ncr-sysv4*)
	    ans=yes
	    ;;
	 *-univel-sysv*)
	    ans=yes
	    ;;
	esac
	ntp_cv_size_returned_in_buffer=$ans
d24832 1
d24835 6
a24840 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
$as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
case "$ntp_cv_size_returned_in_buffer" in
 yes)

$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h

d24843 5
a24847 18
# Check for ioctls TIOCGPPSEV
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
$as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
case "$ac_cv_header_termios_h" in
 yes)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <termios.h>

	    #ifdef TIOCGPPSEV
		yes
	    #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_ok=yes
d24849 1
a24849 2
  ntp_ok=no

a24850 1
rm -f conftest*
d24852 3
a24854 7
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)
d24856 1
a24856 1
$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
d24858 1
a24858 1
esac
d24861 5
d24867 5
a24871 18
# Check for ioctls TIOCSPPS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
$as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
case "$ac_cv_header_termios_h" in
 yes)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <termios.h>

	    #ifdef TIOCSPPS
		yes
	    #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_ok=yes
d24873 1
a24873 2
  ntp_ok=no

a24874 1
rm -f conftest*
d24876 3
a24878 7
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)
d24880 1
a24880 1
$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
d24882 1
a24882 1
esac
d24885 5
d24891 8
a24898 7
# Check for ioctls CIOGETEV
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
$as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
case "$ac_cv_header_sys_ppsclock_h" in
 yes)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24900 3
a24902 1
	    #include <sys/ppsclock.h>
d24904 1
a24904 10
	    #ifdef CIOGETEV
		yes
	    #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_ok=yes
else
  ntp_ok=no
d24907 5
a24911 5
rm -f conftest*

    ;;
 *)
    ntp_ok=no
a24913 2
case "$ntp_ok" in
 yes)
d24915 16
a24930 1
$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
d24932 1
a24932 1
esac
d24935 5
d24941 23
a24963 1
# ATOM/PPSAPI stuff.
d24965 4
a24968 1
ntp_atom_ok=yes
d24970 8
a24977 1
# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
d24979 3
a24981 3
# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
# The PPSAPI needs struct timespec.
# The PPSAPI also needs a timepps header.
d24983 1
a24983 4
case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
 inlineyes)
    case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
     *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
d24985 6
a24990 8
$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h

	ntp_jupiter_ok=yes
	ntp_oncore_ok=yes
	ntp_parse_ok=yes
	ntp_ripe_ncc_ok=yes
	;;
    esac
d24994 7
a25000 4
# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
if test "x$ac_cv_header_linux_serial_h" = xyes; then :

d25003 3
d25007 1
a25007 6
case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
  yesyes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d25009 8
a25016 16
	    #include <sys/time.h>
	    typedef int u_int;
	    #include <sys/ppsclock.h>
	    #include <linux/serial.h>

	    #ifdef TIOCGSERIAL
	    #ifdef TIOCSSERIAL
	    #ifdef ASYNC_PPS_CD_POS
	    #ifdef ASYNC_PPS_CD_NEG
	    #ifdef CIOGETEV
		 yes
	    #endif
	    #endif
	    #endif
	    #endif
	    #endif
d25018 5
a25022 4
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_ok=yes
d25024 8
a25031 1
  ntp_ok=no
d25034 1
a25034 3
rm -f conftest*

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
d25036 3
a25038 3
    ;;
  *)
    ntp_ok=no
a25040 2
case "$ntp_ok" in
 yes)
d25042 8
a25049 1
$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
d25051 3
a25053 1
esac
d25055 1
a25055 13
# Check for SHMEM_STATUS support
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
$as_echo_n "checking SHMEM_STATUS support... " >&6; }
case "$ac_cv_header_sys_mman_h" in
 yes)
    ntp_ok=yes
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)
d25057 1
a25057 3
$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h

esac
d25060 5
d25066 5
a25070 8
ntp_refclock=no

# HPUX only, and by explicit request
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
# Check whether --enable-BANCOMM was given.
if test "${enable_BANCOMM+set}" = set; then :
  enableval=$enable_BANCOMM; ntp_ok=$enableval
d25072 1
a25072 2
  ntp_ok=no

d25076 1
d25079 1
a25079 1
$as_echo "#define CLOCK_BANC 1" >>confdefs.h
d25084 4
a25087 4
case "$ntp_ok$host" in
 yes*-*-hpux*) ;;
 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
d25090 5
a25094 6
#HPUX only, and only by explicit request
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
# Check whether --enable-GPSVME was given.
if test "${enable_GPSVME+set}" = set; then :
  enableval=$enable_GPSVME; ntp_ok=$enableval
d25096 1
a25096 2
  ntp_ok=no

d25100 1
d25103 1
a25103 1
$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
d25108 4
a25111 4
case "$ntp_ok$host" in
 yes*-*-hpux*) ;;
 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
a25113 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
$as_echo_n "checking for PCL720 clock support... " >&6; }
case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
 yesyesyes)
a25114 1
$as_echo "#define CLOCK_PPS720 1" >>confdefs.h
d25116 6
d25123 7
a25129 3
    ;;
 *)
    ans=no
a25134 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
# Check whether --enable-all-clocks was given.
if test "${enable_all_clocks+set}" = set; then :
  enableval=$enable_all_clocks; ntp_eac=$enableval
else
  ntp_eac=yes
d25136 6
a25141 1
fi
a25142 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
$as_echo "$ntp_eac" >&6; }
a25143 12
# HMS: Should we also require ntp_parse_ok?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
$as_echo_n "checking if we have support for PARSE clocks... " >&6; }
case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
 yes*yes*)
    ntp_canparse=yes
    ;;
 *) ntp_canparse=no
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
$as_echo "$ntp_canparse" >&6; }
a25144 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
$as_echo_n "checking if we have support for audio clocks... " >&6; }
case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
 *yes*)
    ntp_canaudio=yes
a25145 1
$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
d25147 19
a25166 1
 *) ntp_canaudio=no ;;
d25168 24
a25191 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
$as_echo "$ntp_canaudio" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
 yesyes)
    ntp_canshm=yes
a25192 1
 *) ntp_canshm=no ;;
d25194 2
a25195 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
$as_echo "$ntp_canshm" >&6; }
d25197 2
a25198 8
# Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
$as_echo_n "checking for termios modem control... " >&6; }
if ${ntp_cv_modem_control+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d25200 3
a25202 25
		#ifdef HAVE_UNISTD_H
		# include <unistd.h>
		#endif
		#ifdef HAVE_TERMIOS_H
		# include <termios.h>
		#endif
		#ifdef HAVE_SYS_IOCTL_H
		# include <sys/ioctl.h>
		#endif

int
main ()
{

		int	dtr = TIOCM_DTR;

		ioctl(1, TIOCMBIS, (char *)&dtr);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_modem_control=yes
d25204 4
a25207 2
  ntp_cv_modem_control=no

a25208 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25210 6
a25215 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
$as_echo "$ntp_cv_modem_control" >&6; }
case "$ntp_eac::$ntp_cv_modem_control" in
 yes::yes)
    ntp_enable_all_modem_control_clocks=yes
d25217 17
a25233 2
 *)
    ntp_enable_all_modem_control_clocks=no
d25236 2
d25239 6
a25244 6
# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
$as_echo_n "checking ACTS modem service... " >&6; }
# Check whether --enable-ACTS was given.
if test "${enable_ACTS+set}" = set; then :
  enableval=$enable_ACTS; ntp_ok=$enableval
d25246 1
a25246 2
  ntp_ok=$ntp_enable_all_modem_control_clocks

d25249 14
a25262 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25264 9
a25272 1
$as_echo "#define CLOCK_ACTS 1" >>confdefs.h
a25273 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25275 1
a25275 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
# Check whether --enable-ARBITER was given.
if test "${enable_ARBITER+set}" = set; then :
  enableval=$enable_ARBITER; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d25277 1
a25277 1
fi
d25279 19
a25297 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25299 2
a25300 1
$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
d25302 3
a25304 9
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
$as_echo_n "checking Arcron MSF receiver... " >&6; }
# Check whether --enable-ARCRON_MSF was given.
if test "${enable_ARCRON_MSF+set}" = set; then :
  enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
d25306 1
a25306 2
  ntp_ok=$ntp_eac

d25309 5
a25313 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25315 1
a25315 1
$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
d25317 5
a25321 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a25322 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
# Check whether --enable-AS2201 was given.
if test "${enable_AS2201+set}" = set; then :
  enableval=$enable_AS2201; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d25324 13
a25336 1
fi
a25337 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
a25338 1
$as_echo "#define CLOCK_AS2201 1" >>confdefs.h
a25339 11
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
$as_echo_n "checking ATOM PPS interface... " >&6; }
# Check whether --enable-ATOM was given.
if test "${enable_ATOM+set}" = set; then :
  enableval=$enable_ATOM; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d25341 11
d25353 2
a25355 5
case "$ntp_atom_ok" in
 no) ntp_ok=no ;;
esac
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25357 27
a25383 1
$as_echo "#define CLOCK_ATOM 1" >>confdefs.h
a25385 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25387 1
a25387 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
# Check whether --enable-CHRONOLOG was given.
if test "${enable_CHRONOLOG+set}" = set; then :
  enableval=$enable_CHRONOLOG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d25389 6
a25394 1
fi
d25396 3
a25398 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25400 1
a25400 1
$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
d25403 2
a25404 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a25405 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
$as_echo_n "checking CHU modem/decoder... " >&6; }
# Check whether --enable-CHU was given.
if test "${enable_CHU+set}" = set; then :
  enableval=$enable_CHU; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
a25406 1
fi
d25408 11
a25418 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25420 1
a25420 1
$as_echo "#define CLOCK_CHU 1" >>confdefs.h
d25423 2
a25424 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
ntp_refclock_chu=$ntp_ok
d25426 10
a25435 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
$as_echo_n "checking CHU audio/decoder... " >&6; }
# Check whether --enable-AUDIO-CHU was given.
if test "${enable_AUDIO_CHU+set}" = set; then :
  enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
else

	case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac
d25437 1
d25440 2
d25443 2
a25444 1
if test "$ntp_ok" = "yes"; then
d25446 1
a25446 1
$as_echo "#define AUDIO_CHU 1" >>confdefs.h
d25448 5
a25452 7
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
# We used to check for sunos/solaris target...
case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
d25455 20
a25474 15
# Not under HP-UX
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
$as_echo_n "checking Datum Programmable Time System... " >&6; }
# Check whether --enable-DATUM was given.
if test "${enable_DATUM+set}" = set; then :
  enableval=$enable_DATUM; ntp_ok=$enableval
else

	case "$ac_cv_header_termios_h" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *) ntp_ok=no
	    ;;
	esac
d25476 4
a25482 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25484 2
a25485 1
$as_echo "#define CLOCK_DATUM 1" >>confdefs.h
d25487 6
a25492 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25494 1
a25494 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
# Check whether --enable-DUMBCLOCK was given.
if test "${enable_DUMBCLOCK+set}" = set; then :
  enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d25496 1
a25496 1
fi
a25497 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25499 2
a25500 1
$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
d25502 1
a25502 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25504 30
a25533 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
$as_echo_n "checking Forum Graphic GPS... " >&6; }
# Check whether --enable-FG was given.
if test "${enable_FG+set}" = set; then :
  enableval=$enable_FG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d25535 5
a25541 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25543 2
a25544 1
$as_echo "#define CLOCK_FG 1" >>confdefs.h
d25546 2
a25547 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25549 1
a25549 8
# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
# Check whether --enable-HEATH was given.
if test "${enable_HEATH+set}" = set; then :
  enableval=$enable_HEATH; ntp_ok=$enableval
else
  ntp_ok=$ntp_enable_all_modem_control_clocks
d25551 5
a25555 1
fi
d25557 65
a25621 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25623 1
a25623 1
$as_echo "#define CLOCK_HEATH 1" >>confdefs.h
d25625 48
d25674 15
a25688 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
$as_echo_n "checking for hopf serial clock device... " >&6; }
# Check whether --enable-HOPFSERIAL was given.
if test "${enable_HOPFSERIAL+set}" = set; then :
  enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
d25690 7
a25696 2
  ntp_ok=$ntp_eac

d25698 4
d25703 1
a25703 4
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
d25705 47
d25753 8
a25760 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25762 7
a25768 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
$as_echo_n "checking for hopf PCI clock 6039... " >&6; }
# Check whether --enable-HOPFPCI was given.
if test "${enable_HOPFPCI+set}" = set; then :
  enableval=$enable_HOPFPCI; ntp_ok=$enableval
d25770 42
a25811 1
  ntp_ok=$ntp_eac
d25813 2
a25814 1
fi
a25815 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
a25816 1
$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
a25817 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25819 2
a25820 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
$as_echo_n "checking HP 58503A GPS receiver... " >&6; }
# Check whether --enable-HPGPS was given.
if test "${enable_HPGPS+set}" = set; then :
  enableval=$enable_HPGPS; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d25822 1
a25822 1
fi
d25824 26
a25849 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25851 3
a25853 1
$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
a25855 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a25856 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
$as_echo_n "checking IRIG audio decoder... " >&6; }
# Check whether --enable-IRIG was given.
if test "${enable_IRIG+set}" = set; then :
  enableval=$enable_IRIG; ntp_ok=$enableval
else
d25858 11
a25868 4
	case "$ntp_eac$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac
d25871 2
a25872 1
fi
d25874 1
a25874 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25876 1
a25876 1
$as_echo "#define CLOCK_IRIG 1" >>confdefs.h
d25878 45
a25922 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canaudio" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d25925 3
a25927 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
$as_echo_n "checking for JJY receiver... " >&6; }
# Check whether --enable-JJY was given.
if test "${enable_JJY+set}" = set; then :
  enableval=$enable_JJY; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
a25930 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25932 4
a25935 1
$as_echo "#define CLOCK_JJY 1" >>confdefs.h
d25937 8
a25944 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25946 9
a25954 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
# Check whether --enable-JUPITER was given.
if test "${enable_JUPITER+set}" = set; then :
  enableval=$enable_JUPITER; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi
d25956 4
a25959 2
case "$ntp_jupiter_ok" in
 no) ntp_ok=no ;;
a25960 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25962 33
a25994 1
$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
a25995 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25997 4
a26000 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
# Check whether --enable-LEITCH was given.
if test "${enable_LEITCH+set}" = set; then :
  enableval=$enable_LEITCH; ntp_ok=$enableval
d26002 20
a26021 1
  ntp_ok=$ntp_eac
a26022 1
fi
d26024 23
a26046 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26048 8
a26055 1
$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
d26057 6
d26064 8
a26071 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d26073 4
a26076 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
$as_echo_n "checking local clock reference... " >&6; }
# Check whether --enable-LOCAL-CLOCK was given.
if test "${enable_LOCAL_CLOCK+set}" = set; then :
  enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
d26078 11
a26088 2
  ntp_ok=$ntp_eac

d26090 7
a26097 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
a26098 1
$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
a26099 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d26101 2
d26104 3
a26106 6
# Not Ultrix
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
# Check whether --enable-MX4200 was given.
if test "${enable_MX4200+set}" = set; then :
  enableval=$enable_MX4200; ntp_ok=$enableval
d26108 1
a26108 10

	case "$ac_cv_var_ppsclock" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	    ;;
	esac

a26111 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26113 2
a26114 1
$as_echo "#define CLOCK_MX4200 1" >>confdefs.h
d26116 5
a26120 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d26123 10
a26132 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
$as_echo_n "checking for NeoClock4X receiver... " >&6; }
# Check whether --enable-NEOCLOCK4X was given.
if test "${enable_NEOCLOCK4X+set}" = set; then :
  enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
a26133 1
fi
d26135 2
a26136 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26138 3
a26140 11
$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
$as_echo_n "checking NMEA GPS receiver... " >&6; }
# Check whether --enable-NMEA was given.
if test "${enable_NMEA+set}" = set; then :
  enableval=$enable_NMEA; ntp_ok=$enableval
d26142 4
a26145 2
  ntp_ok=$ntp_eac

d26148 2
a26149 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26151 5
a26155 1
$as_echo "#define CLOCK_NMEA 1" >>confdefs.h
d26157 13
a26169 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a26170 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
# Check whether --enable-ONCORE was given.
if test "${enable_ONCORE+set}" = set; then :
  enableval=$enable_ONCORE; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
a26171 1
fi
d26173 5
a26177 5
case "$ntp_oncore_ok" in
 no) ntp_ok=no ;;
esac
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26179 3
a26181 12
$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
$as_echo_n "checking for Palisade clock... " >&6; }
# Check whether --enable-PALISADE was given.
if test "${enable_PALISADE+set}" = set; then :
  enableval=$enable_PALISADE; ntp_ok=$enableval
d26183 2
a26184 2
  ntp_ok=$ntp_enable_all_modem_control_clocks

a26186 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
a26187 1
$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
d26189 1
a26189 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d26191 6
a26196 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
$as_echo_n "checking Conrad parallel port radio clock... " >&6; }
# Check whether --enable-PCF was given.
if test "${enable_PCF+set}" = set; then :
  enableval=$enable_PCF; ntp_ok=$enableval
d26198 4
a26201 1
  ntp_ok=$ntp_eac
d26203 23
d26227 6
d26234 1
a26234 8
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_PCF 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a26235 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
# Check whether --enable-PST was given.
if test "${enable_PST+set}" = set; then :
  enableval=$enable_PST; ntp_ok=$enableval
a26236 1
  ntp_ok=$ntp_eac
d26238 1
a26238 6
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_PST 1" >>confdefs.h
a26240 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a26241 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
# Check whether --enable-RIPENCC was given.
if test "${enable_RIPENCC+set}" = set; then :
  enableval=$enable_RIPENCC; ntp_ok=$enableval
else
  ntp_ok=no
d26243 3
a26245 1
fi
d26247 6
a26252 3
# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
case "$ntp_ripe_ncc_ok" in
 no) ntp_ok=no ;;
a26253 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
a26254 1
$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
a26255 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d26257 2
a26258 8
# Danny Meyer says SHM compiles (with a few warnings) under Win32.
# For *IX, we need sys/ipc.h and sys/shm.h.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
# Check whether --enable-SHM was given.
if test "${enable_SHM+set}" = set; then :
  enableval=$enable_SHM; ntp_ok=$enableval
else
d26260 1
a26260 4
	case "$ntp_eac$ntp_canshm" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac
d26262 16
d26279 1
a26279 1
fi
d26281 3
a26283 4
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_SHM 1" >>confdefs.h
a26285 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a26286 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
# Check whether --enable-SPECTRACOM was given.
if test "${enable_SPECTRACOM+set}" = set; then :
  enableval=$enable_SPECTRACOM; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d26288 2
a26289 1
fi
d26291 5
a26295 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26297 2
a26298 1
$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
d26300 22
a26321 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a26322 15
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
# Check whether --enable-TPRO was given.
if test "${enable_TPRO+set}" = set; then :
  enableval=$enable_TPRO; ntp_ok=$enableval
else

	case "$ac_cv_header_sys_tpro_h" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	    ;;
	esac
d26324 3
a26329 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26331 2
a26332 1
$as_echo "#define CLOCK_TPRO 1" >>confdefs.h
d26334 4
a26337 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ac_cv_header_sys_tpro" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d26340 2
d26343 6
a26348 16
# Not on a vax-dec-bsd
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
# Check whether --enable-TRUETIME was given.
if test "${enable_TRUETIME+set}" = set; then :
  enableval=$enable_TRUETIME; ntp_ok=$enableval
else

	case "$host" in
	 vax-dec-bsd)
	    ntp_ok=no
	    ;;
	 *)
	    ntp_ok=$ntp_eac
	    ;;
	esac
d26350 3
a26355 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26357 2
a26358 1
$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
d26360 4
a26363 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
a26365 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
# Check whether --enable-TT560 was given.
if test "${enable_TT560+set}" = set; then :
  enableval=$enable_TT560; ntp_ok=$enableval
else
  ntp_ok=no
d26367 2
a26368 1
fi
d26370 10
a26379 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26381 3
a26383 1
$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
a26385 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a26386 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
# Check whether --enable-ULINK was given.
if test "${enable_ULINK+set}" = set; then :
  enableval=$enable_ULINK; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d26388 2
a26389 1
fi
d26391 5
a26395 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
a26396 1
$as_echo "#define CLOCK_ULINK 1" >>confdefs.h
d26398 2
a26399 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d26401 44
a26444 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
$as_echo_n "checking WWV receiver... " >&6; }
# Check whether --enable-WWV was given.
if test "${enable_WWV+set}" = set; then :
  enableval=$enable_WWV; ntp_ok=$enableval
else

	case "$ntp_eac$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac
d26446 3
a26451 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26453 2
a26454 1
$as_echo "#define CLOCK_WWV 1" >>confdefs.h
d26456 4
a26459 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canaudio" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d26462 7
a26468 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
$as_echo_n "checking for Zyfer receiver... " >&6; }
# Check whether --enable-ZYFER was given.
if test "${enable_ZYFER+set}" = set; then :
  enableval=$enable_ZYFER; ntp_ok=$enableval
d26470 1
a26470 1
  ntp_ok=$ntp_eac
a26473 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26475 2
a26476 1
$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
d26478 2
a26479 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d26481 1
a26481 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
# Check whether --enable-parse-clocks was given.
if test "${enable_parse_clocks+set}" = set; then :
  enableval=$enable_parse_clocks; ntp_eapc=$enableval
else
d26483 1
a26483 6
	case "$ntp_eac" in
	 yes)	ntp_eapc=$ntp_canparse ;;
	 *)	ntp_eapc=no ;;
	esac
	# Delete the next line one of these days
	ntp_eapc=no
d26486 2
a26487 1
fi
d26489 3
a26491 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
$as_echo "$ntp_eapc" >&6; }

case "$ntp_eac$ntp_eapc$ntp_canparse" in
 noyes*)
    as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
d26493 2
a26494 2
 yesyesno)
    as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
d26496 1
d26499 3
a26501 11
ntp_libparse=no
ntp_parseutil=no
ntp_rawdcf=no

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
$as_echo_n "checking Diem Computime Radio Clock... " >&6; }
# Check whether --enable-COMPUTIME was given.
if test "${enable_COMPUTIME+set}" = set; then :
  enableval=$enable_COMPUTIME; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
a26504 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d26506 2
a26507 1
$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
d26509 4
a26512 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d26515 7
a26521 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
$as_echo_n "checking ELV/DCF7000 clock... " >&6; }
# Check whether --enable-DCF7000 was given.
if test "${enable_DCF7000+set}" = set; then :
  enableval=$enable_DCF7000; ntp_ok=$enableval
d26523 1
a26523 1
  ntp_ok=$ntp_eapc
a26526 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d26528 2
a26529 1
$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
d26531 4
a26534 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d26537 7
a26543 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
$as_echo_n "checking HOPF 6021 clock... " >&6; }
# Check whether --enable-HOPF6021 was given.
if test "${enable_HOPF6021+set}" = set; then :
  enableval=$enable_HOPF6021; ntp_ok=$enableval
d26545 1
a26545 1
  ntp_ok=$ntp_eapc
a26548 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d26550 2
a26551 1
$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
d26553 9
a26561 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d26564 4
a26567 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
$as_echo_n "checking Meinberg clocks... " >&6; }
# Check whether --enable-MEINBERG was given.
if test "${enable_MEINBERG+set}" = set; then :
  enableval=$enable_MEINBERG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
d26569 1
a26569 1
fi
a26570 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d26572 3
a26574 1
$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
a26575 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d26578 8
a26585 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
$as_echo_n "checking DCF77 raw time code... " >&6; }
# Check whether --enable-RAWDCF was given.
if test "${enable_RAWDCF+set}" = set; then :
  enableval=$enable_RAWDCF; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
d26589 1
a26589 5
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_parseutil=yes
    ntp_refclock=yes
    ntp_rawdcf=yes
a26590 1
$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
d26592 6
a26597 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d26600 3
a26602 6
case "$ntp_rawdcf" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
if ${ntp_cv_rawdcf_parity+:} false; then :
  $as_echo_n "(cached) " >&6
d26604 1
d26606 1
a26606 7
	    ans=no
	    case "$host" in
	     *-*-*linux*)
		ans=yes
		;;
	    esac
	    ntp_cv_rawdcf_parity=$ans
d26609 4
a26612 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
$as_echo "$ntp_cv_rawdcf_parity" >&6; }
    case "$ntp_cv_rawdcf_parity" in
     yes)
a26613 4
$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
 ;;
    esac
esac
d26615 7
a26621 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
$as_echo_n "checking RCC 8000 clock... " >&6; }
# Check whether --enable-RCC8000 was given.
if test "${enable_RCC8000+set}" = set; then :
  enableval=$enable_RCC8000; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
d26625 1
a26625 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d26627 7
a26633 1
$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
a26635 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
d26637 1
a26637 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
$as_echo_n "checking Schmid DCF77 clock... " >&6; }
# Check whether --enable-SCHMID was given.
if test "${enable_SCHMID+set}" = set; then :
  enableval=$enable_SCHMID; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
a26638 1
fi
d26640 2
a26641 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d26643 6
a26648 8
$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d26651 3
a26653 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
# Check whether --enable-TRIMTAIP was given.
if test "${enable_TRIMTAIP+set}" = set; then :
  enableval=$enable_TRIMTAIP; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
a26656 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d26658 2
a26659 1
$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
d26661 2
a26662 7
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
d26664 1
a26664 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
# Check whether --enable-TRIMTSIP was given.
if test "${enable_TRIMTSIP+set}" = set; then :
  enableval=$enable_TRIMTSIP; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
d26666 2
a26667 1
fi
d26669 2
a26670 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d26672 1
a26672 1
$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
a26673 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
a26675 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
$as_echo_n "checking WHARTON 400A Series clock... " >&6; }
# Check whether --enable-WHARTON was given.
if test "${enable_WHARTON+set}" = set; then :
  enableval=$enable_WHARTON; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
d26677 7
a26683 7
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
a26685 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
d26687 1
a26687 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
$as_echo_n "checking VARITEXT clock... " >&6; }
# Check whether --enable-VARITEXT was given.
if test "${enable_VARITEXT+set}" = set; then :
  enableval=$enable_VARITEXT; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
a26688 1
fi
d26690 3
a26692 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
a26693 8
$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d26696 2
d26699 1
d26702 1
a26704 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
$as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
ans=no
case "$ntp_libparse" in
 yes)
    ans=yes
d26706 3
a26708 1
$as_echo "#define CLOCK_PARSE 1" >>confdefs.h
d26710 5
a26714 7
    LIBPARSE=../libparse/libparse.a
    MAKE_LIBPARSE=libparse.a
    # HMS: check_y2k trips the 34 year problem now...
    false && MAKE_CHECK_Y2K=check_y2k
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d26716 2
d26719 2
d26722 3
d26726 2
d26729 6
a26734 8


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
$as_echo_n "checking for openssl library directory... " >&6; }

# Check whether --with-openssl-libdir was given.
if test "${with_openssl_libdir+set}" = set; then :
  withval=$with_openssl_libdir; ans=$withval
d26736 1
d26738 2
a26739 4
	case "$build" in
	 $host) ans=yes ;;
	 *)     ans=no ;;
	esac
d26743 3
d26747 1
a26747 38
case "$ans" in
 no)
    ;;
 yes) # Look in:
    ans="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib /lib"
    ;;
 *) # Look where they said
    ;;
esac
case "$ans" in
 no)
    ;;
 *) # Look for libcrypto.a and libssl.a:
    for i in $ans no
    do
	case "$host" in
	 *-*-darwin*)
	    test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
	    ;;
	 *)
	    test -f $i/libcrypto.so -a -f $i/libssl.so && break
	    test -f $i/libcrypto.a -a -f $i/libssl.a && break
	    ;;
	esac
    done
    case "$i" in
     no)
	ans=no
	OPENSSL_LIB=
	;;
     *) ans=$i
	OPENSSL_LIB=$ans
	;;
    esac
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d26749 1
a26749 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
$as_echo_n "checking for openssl include directory... " >&6; }
d26751 4
a26754 4
# Check whether --with-openssl-incdir was given.
if test "${with_openssl_incdir+set}" = set; then :
  withval=$with_openssl_incdir; ans=$withval
else
a26755 4
	case "$build" in
	 $host) ans=yes ;;
	 *)     ans=no ;;
	esac
d26757 5
d26763 1
a26763 1
fi
a26764 24
case "$ans" in
 no)
    ;;
 yes) # look in:
    ans="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include"
    ;;
 *) # Look where they said
    ;;
esac
case "$ans" in
 no)
    ;;
 *) # look for openssl/opensslconf.h:
    for i in $ans no
    do
	test -f $i/openssl/opensslconf.h && break
    done
    case "$i" in
     no)
	ans=no
	OPENSSL_INC=
	;;
     *) ans=$i
	OPENSSL_INC=$ans
a26767 16
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
$as_echo_n "checking if we will use crypto... " >&6; }

# Check whether --with-crypto was given.
if test "${with_crypto+set}" = set; then :
  withval=$with_crypto; ans=$withval
else
  ans=yes

fi

case "$ans" in
a26769 7
 yes|openssl)
    if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
    then
	ans=no
    else
	ans=yes
    fi
a26770 26
ntp_openssl=$ans
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ntp_openssl" in
 yes)
    # We have OpenSSL inc/lib - use them.
    case "$OPENSSL_INC" in
     /usr/include)
	;;
     *)
	CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
	;;
    esac
    case "$OPENSSL_LIB" in
     /usr/lib)
	;;
     *)
	LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
	case "$need_dash_r" in
	 1)
	    LDFLAGS="$LDFLAGS -R$OPENSSL_LIB"
	esac
	;;
    esac
    LCRYPTO=-lcrypto
d26773 3
a26775 15
$as_echo "#define OPENSSL 1" >>confdefs.h

esac

#
# check for linking with -lcrypto failure, and try -lz -lcrypto.
# Helps m68k-atari-mint
#
case "$ntp_openssl" in
 yes)
    NTPO_SAVED_LIBS="$LIBS"
    LIBS="$NTPO_SAVED_LIBS $LCRYPTO"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with $LCRYPTO alone works" >&5
$as_echo_n "checking if linking with $LCRYPTO alone works... " >&6; }
if ${ntp_cv_bare_lcrypto+:} false; then :
d26778 2
a26779 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d26782 4
a26785 2
		    #include "openssl/err.h"
		    #include "openssl/evp.h"
d26791 1
a26791 2
		    ERR_load_crypto_strings();
		    OpenSSL_add_all_algorithms();
d26797 1
d26799 2
a26800 2
if ac_fn_c_try_link "$LINENO"; then :
  ntp_cv_bare_lcrypto=yes
d26802 1
a26802 1
  ntp_cv_bare_lcrypto=no
d26805 13
a26817 2
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d26819 5
d26825 78
a26902 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
$as_echo "$ntp_cv_bare_lcrypto" >&6; }
    case "$ntp_cv_bare_lcrypto" in
     no)
	LIBS="$NTPO_SAVED_LIBS $LCRYPTO -lz"
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with $LCRYPTO -lz works" >&5
$as_echo_n "checking if linking with $LCRYPTO -lz works... " >&6; }
if ${ntp_cv_lcrypto_lz+:} false; then :
d26905 2
a26906 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d26909 6
a26914 2
			#include "openssl/err.h"
			#include "openssl/evp.h"
d26920 1
a26920 2
			ERR_load_crypto_strings();
			OpenSSL_add_all_algorithms();
d26926 1
d26928 2
a26929 2
if ac_fn_c_try_link "$LINENO"; then :
  ntp_cv_lcrypto_lz=yes
d26931 1
a26931 1
  ntp_cv_lcrypto_lz=no
d26934 2
a26935 2
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d26938 8
a26945 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
$as_echo "$ntp_cv_lcrypto_lz" >&6; }
	case "$ntp_cv_lcrypto_lz" in
	 yes)
	     LCRYPTO="$LCRYPTO -lz"
	esac
a26946 3
    LIBS="$NTPO_SAVED_LIBS"
    { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
esac
a26947 15
#
# Older OpenSSL headers have a number of callback prototypes inside
# other function prototypes which trigger copious warnings with gcc's
# -Wstrict-prototypes, which is included in -Wall.
#
# An example:
#
# int i2d_RSA_NET(const RSA *a, unsigned char **pp,
#		  int (*cb)(), int sgckey);
#		  ^^^^^^^^^^^
#
#
#
openssl_triggers_warnings=unknown
SAVED_CFLAGS="$CFLAGS"
d26949 8
a26956 4
case "$GCC$ntp_openssl" in
 yesyes)
    CFLAGS="$CFLAGS -Werror"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d26960 6
d26970 2
a26971 1
		/* see if -Werror breaks gcc */
d26977 1
d26980 1
a26980 1
  gcc_handles_Werror=yes
d26982 1
a26982 1
  gcc_handles_Werror=no
d26986 7
a26992 6
    case "$gcc_handles_Werror" in
     no)
	# if this gcc doesn't do -Werror go ahead and use
	# -Wstrict-prototypes.
	openssl_triggers_warnings=yes
	;;
d26994 15
a27008 1
	CFLAGS="$CFLAGS -Wstrict-prototypes"
d27012 6
a27017 7
		    #include "openssl/asn1_mac.h"
		    #include "openssl/bn.h"
		    #include "openssl/err.h"
		    #include "openssl/evp.h"
		    #include "openssl/pem.h"
		    #include "openssl/rand.h"
		    #include "openssl/x509v3.h"
d27023 2
a27024 1
		    /* empty body */
d27030 1
d27032 2
a27033 2
if ac_fn_c_try_compile "$LINENO"; then :
  openssl_triggers_warnings=no
d27035 6
a27040 1
  openssl_triggers_warnings=yes
d27043 8
a27050 13
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    esac
    case "$openssl_triggers_warnings" in
     yes)
	CFLAGS="$SAVED_CFLAGS -Wno-strict-prototypes"
	;;
     *)
	CFLAGS="$SAVED_CFLAGS -Wstrict-prototypes"
    esac
    ;;
 yesno)
    # gcc without OpenSSL
    CFLAGS="$SAVED_CFLAGS -Wstrict-prototypes"
d27054 19
d27074 3
a27076 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to compile with ElectricFence" >&5
$as_echo_n "checking if we want to compile with ElectricFence... " >&6; }
d27078 3
a27080 3
# Check whether --with-electricfence was given.
if test "${with_electricfence+set}" = set; then :
  withval=$with_electricfence; ans=$withval
d27082 1
a27082 1
  ans=no
d27085 1
a27086 5
case "$ans" in
 no) ;;
 *)
    LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a"
    EF_PROGS="eftest tstheap"
d27088 3
a27090 1
    EF_LIBS=libefence.a
d27092 2
a27093 5
    ans=yes
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27095 1
a27096 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
$as_echo_n "checking if we want to run check-layout... " >&6; }
case "$cross_compiling$PATH_PERL" in
 no/*)
    MAKE_CHECK_LAYOUT=check-layout
    ans=yes
    ;;
 *)
    ans=no
    ;;
a27097 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27099 8
d27109 2
a27110 13
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
$as_echo_n "checking if we can make dcf parse utilities... " >&6; }
ans=no
if test "$ntp_parseutil" = "yes"; then
    case "$host" in
     *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
	ans="dcfd testdcf"
	DCFD=dcfd
        TESTDCF=testdcf
    esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27112 3
d27116 1
a27116 9
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
ans=no
case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
 yesyes)
    case "$host" in
     sparc-*-sunos4*)
        case "$ntp_cv_var_kernel_pll" in
	yes)
a27117 1
$as_echo "#define PPS_SYNC 1" >>confdefs.h
d27119 4
a27122 14
	    ;;
	esac
	ans=parsestreams
	MAKE_PARSEKMODULE=parsestreams.loadable_module.o
	;;
     sparc-*-solaris2*)
	ans=parsesolaris
	MAKE_PARSEKMODULE=parse
	for ac_header in strings.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
if test "x$ac_cv_header_strings_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRINGS_H 1
d27124 8
d27134 5
d27140 1
a27140 1
done
a27141 3
	;;
    esac
    ;;
a27142 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27144 27
a27170 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
$as_echo_n "checking if we need basic refclock support... " >&6; }
if test "$ntp_refclock" = "yes"; then
a27171 1
$as_echo "#define REFCLOCK 1" >>confdefs.h
d27174 2
a27175 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
$as_echo "$ntp_refclock" >&6; }
d27177 2
d27180 1
a27181 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
case "$host" in
 *-*-hpux[56789]*)
    ans=yes
    ;;
 *) ans=no
    ;;
a27182 2
if test "$ans" = "yes"; then
    MAKE_ADJTIMED=adjtimed
d27184 1
a27184 1
$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
d27186 7
a27193 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27195 3
a27197 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
$as_echo_n "checking if we want QNX adjtime support... " >&6; }
case "$host" in
 *-*-qnx*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac
if test "$ans" = "yes"; then
d27199 1
a27199 1
$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
d27202 7
a27208 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27210 2
a27211 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
$as_echo_n "checking if we can read kmem... " >&6; }
d27213 1
a27213 1
#  the default is to enable it if the system has the capability
a27214 6
case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
 *yes*)
    ans=yes
    ;;
 *) ans=no
esac
d27216 5
a27220 20
case "$host" in
 *-*-domainos)	# Won't be found...
    ans=no
    ;;
 *-*-hpux*)
    #ans=no
    ;;
 *-*-irix[456]*)
    ans=no
    ;;
 *-*-*linux*)
    ans=no
    ;;
 *-*-winnt3.5)
    ans=no
    ;;
 *-*-unicosmp*)
    ans=no
    ;;
esac
d27222 3
a27224 4
# --enable-kmem / --disable-kmem controls if present
# Check whether --enable-kmem was given.
if test "${enable_kmem+set}" = set; then :
  enableval=$enable_kmem; ans=$enableval
a27225 1
fi
d27228 1
a27228 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27230 1
a27230 6
case "$ans" in
 yes)
    can_kmem=yes
    ;;
 *)
    can_kmem=no
d27232 1
a27232 1
$as_echo "#define NOKMEM 1" >>confdefs.h
d27234 1
a27234 1
esac
d27236 1
d27238 1
a27238 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
$as_echo_n "checking if adjtime is accurate... " >&6; }
d27240 1
a27240 1
# target-dependent defaults
d27242 1
a27242 30
case "$host" in
 i386-sequent-ptx*)
    ans=no
    ;;
 i386-unknown-osf1*)
    ans=yes
    ;;
 mips-sgi-irix[456]*)
    ans=yes
    ;;
 *-fujitsu-uxp*)
    ans=yes
    ;;
 *-ibm-aix[456]*)
    ans=yes
    ;;
 *-*-*linux*)
    ans=yes
    ;;
 *-*-solaris2.[01])
    ans=no
    ;;
 *-*-solaris2*)
    ans=yes
    ;;
 *-*-unicosmp*)
    ans=yes
    ;;
 *) ans=no
esac
d27244 1
a27244 5
# --enable-accurate-adjtime / --disable-accurate-adjtime
# override the default
# Check whether --enable-accurate-adjtime was given.
if test "${enable_accurate_adjtime+set}" = set; then :
  enableval=$enable_accurate_adjtime; ans=$enableval
d27246 1
a27246 1
fi
d27248 1
d27250 1
a27250 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27252 1
a27252 2
case "$ans" in
 yes)
d27254 1
a27254 1
$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
d27256 1
a27256 6
    adjtime_is_accurate=yes
    ;;
 *)
    adjtime_is_accurate=no
    ;;
esac
d27258 1
a27258 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
$as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
if ${ntp_cv_nlist_tick+:} false; then :
  $as_echo_n "(cached) " >&6
else
d27260 1
a27260 31
	ans=_tick
	case "$host" in
	 m68*-hp-hpux*) # HP9000/300?
	    ans=_old_tick
	    ;;
	 *-apple-aux[23]*)
	    ans=tick
	    ;;
	 *-hp-hpux*)
	    ans=old_tick
	    ;;
	 *-ibm-aix[3456]*)
	    ans=no
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-ptx*)
	    ans=tick
	    ;;
	 *-*-sco3.2v[45]*)
	    ans=no
	    ;;
	 *-*-solaris2*)
	    ans=nsec_per_tick
	    ;;
	 *-*-sysv4*)
	    ans=tick
	    ;;
	esac
	ntp_cv_nlist_tick=$ans
d27262 1
d27264 1
a27264 7
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
$as_echo "$ntp_cv_nlist_tick" >&6; }
case "$ntp_cv_nlist_tick" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)
d27266 1
a27266 3
cat >>confdefs.h <<_ACEOF
#define K_TICK_NAME "$ntp_cv_nlist_tick"
_ACEOF
d27268 1
a27268 1
esac
d27270 1
a27270 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
$as_echo_n "checking for the units of 'tick'... " >&6; }
if ${ntp_cv_tick_nano+:} false; then :
  $as_echo_n "(cached) " >&6
else
d27272 1
a27272 7
	ans=usec
	case "$host" in
	 *-*-solaris2*)
	    ans=nsec
	    ;;
	esac
	ntp_cv_tick_nano=$ans
d27274 1
d27276 1
a27276 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
$as_echo "$ntp_cv_tick_nano" >&6; }
case "$ntp_cv_tick_nano" in
 nsec)
d27278 1
a27278 1
$as_echo "#define TICK_NANO 1" >>confdefs.h
d27280 1
a27280 1
esac
d27282 1
a27282 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
if ${ntp_cv_nlist_tickadj+:} false; then :
  $as_echo_n "(cached) " >&6
else
d27284 1
a27284 40
	ans=_tickadj
	case "$host" in
	 m68*-hp-hpux*) # HP9000/300?
	    ans=_tickadj
	    ;;
	 *-apple-aux[23]*)
	    ans=tickadj
	    ;;
	 *-hp-hpux10*)
	    ans=no
	    ;;
	 *-hp-hpux9*)
	    ans=no
	    ;;
	 *-hp-hpux*)
	    ans=tickadj
	    ;;
	 *-*-aix*)
	    ans=tickadj
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-ptx*)
	    ans=tickadj
	    ;;
	 *-*-sco3.2v4*)
	    ans=no
	    ;;
	 *-*-sco3.2v5.0*)
	    ans=clock_drift
	    ;;
	 *-*-solaris2*)
	    ans=no	# hrestime_adj
	    ;;
	 *-*-sysv4*)
	    ans=tickadj
	    ;;
	esac
	ntp_cv_nlist_tickadj=$ans
d27286 1
a27287 7
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
$as_echo "$ntp_cv_nlist_tickadj" >&6; }
case "$ntp_cv_nlist_tickadj" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)
d27289 1
a27289 3
cat >>confdefs.h <<_ACEOF
#define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
_ACEOF
a27290 1
esac
d27292 13
a27304 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
$as_echo_n "checking for the units of 'tickadj'... " >&6; }
if ${ntp_cv_tickadj_nano+:} false; then :
  $as_echo_n "(cached) " >&6
else
d27306 1
a27306 7
	ans=usec
	case "$host" in
	 *-*-solaris2*)
	    ans=nsec
	    ;;
	esac
	ntp_cv_tickadj_nano=$ans
d27308 21
d27330 34
d27365 1
a27365 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
$as_echo "$ntp_cv_tickadj_nano" >&6; }
case "$ntp_cv_tickadj_nano" in
 nsec)
d27367 3
a27369 1
$as_echo "#define TICKADJ_NANO 1" >>confdefs.h
d27371 1
a27371 1
esac
d27373 12
a27384 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
if ${ntp_cv_nlist_dosynctodr+:} false; then :
  $as_echo_n "(cached) " >&6
else
d27386 1
a27386 39
	case "$host" in
	 *-apple-aux[23]*)
	    ans=no
	    ;;
	 *-sni-sysv*)
	    ans=dosynctodr
	    ;;
	 *-*-aix*)
	    ans=dosynctodr
	    ;;
	 *-*-hpux*)
	    ans=no
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-nextstep*)
	    ans=_dosynctodr
	    ;;
	 *-*-ptx*)
	    ans=doresettodr
	    ;;
	 *-*-sco3.2v4*)
	    ans=no
	    ;;
	 *-*-sco3.2v5*)
	    ans=track_rtc
	    ;;
	 *-*-solaris2*)
	    ans=dosynctodr
	    ;;
	 *-*-sysv4*)
	    ans=doresettodr
	    ;;
	 *)
	    ans=_dosynctodr
	    ;;
	esac
	ntp_cv_nlist_dosynctodr=$ans
d27389 6
a27395 53
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
$as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
case "$ntp_cv_nlist_dosynctodr" in
 no)
    ;;
 *)

cat >>confdefs.h <<_ACEOF
#define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
_ACEOF

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
if ${ntp_cv_nlist_noprintf+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-apple-aux[23]*)
	    ans=no
	    ;;
	 *-sni-sysv*)
	    ans=noprintf
	    ;;
	 *-*-aix*)
	    ans=noprintf
	    ;;
	 *-*-hpux*)
	    ans=no
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-ptx*)
	    ans=noprintf
	    ;;
	 *-*-nextstep*)
	    ans=_noprintf
	    ;;
	 *-*-solaris2*)
	    ans=noprintf
	    ;;
	 *-*-sysv4*)
	    ans=noprintf
	    ;;
	 *)
	    ans=_noprintf
	    ;;
	esac
	ntp_cv_nlist_noprintf=$ans
d27397 28
d27426 3
a27429 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
$as_echo "$ntp_cv_nlist_noprintf" >&6; }
case "$ntp_cv_nlist_noprintf" in
 no)
    ;;
 *)
d27431 13
a27443 3
cat >>confdefs.h <<_ACEOF
#define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
_ACEOF
d27445 3
a27447 2
    ;;
esac
d27449 7
d27457 15
a27471 32


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
$as_echo_n "checking for a default value for 'tick'... " >&6; }

# target-dependent default for tick

case "$host" in
 *-*-pc-cygwin*)
    as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
    ;;
 *-univel-sysv*)
    ans=10000
    ;;
 *-*-irix*)
    ans=10000
    ;;
 *-*-*linux*)
    ans=txc.tick
    ;;
 *-*-mpeix*)
    ans=no
    ;;
 *-*-winnt3.5)
    ans='(every / 10)'
    ;;
 *-*-unicosmp*)
    ans=10000
    ;;
 *)
    ans='1000000L/hz'
    ;;
d27473 1
a27474 3
# Check whether --enable-tick was given.
if test "${enable_tick+set}" = set; then :
  enableval=$enable_tick; ans=$enableval
d27476 36
d27514 8
a27522 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27524 6
a27529 4
case "$ans" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)
d27531 11
a27541 3
cat >>confdefs.h <<_ACEOF
#define PRESET_TICK $ans
_ACEOF
d27543 1
d27545 9
d27555 11
a27565 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
$as_echo_n "checking for a default value for 'tickadj'... " >&6; }
d27567 5
a27571 45
# target-specific default
ans='500/hz'
case "$host" in
 *-fujitsu-uxp*)
    case "$adjtime_is_accurate" in
     yes)
	ans='tick/16'
    esac
    ;;
 *-univel-sysv*)
    ans=80
    ;;
 *-*-aix*)
    case "$can_kmem" in
     no)
	ans=1000
    esac
    ;;
 *-*-domainos)	# Skippy: won't be found...
    case "$can_kmem" in
     no)
	ans=668
    esac
    ;;
 *-*-hpux*)
    case "$adjtime_is_accurate" in
     yes)
	ans='tick/16'
    esac
    ;;
 *-*-irix*)
    ans=150
    ;;
 *-*-mpeix*)
    ans=no
    ;;
 *-*-sco3.2v5.0*)
    ans=10000L/hz
    ;;
 *-*-winnt3.5)
    ans=50
    ;;
 *-*-unicosmp*)
    ans=150
esac
d27573 2
a27574 3
# Check whether --enable-tickadj was given.
if test "${enable_tickadj+set}" = set; then :
  enableval=$enable_tickadj; ans=$enableval
a27575 1
fi
d27577 15
a27592 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27594 7
a27600 1
default_tickadj=$ans
d27602 9
a27610 4
case "$default_tickadj" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)
d27612 25
a27636 5
cat >>confdefs.h <<_ACEOF
#define PRESET_TICKADJ $default_tickadj
_ACEOF
 ;;
esac
d27638 16
a27653 6
# Newer versions of ReliantUNIX round adjtime() values down to
# 1/100s (system tick). Sigh ...
# Unfortunately, there is no easy way to know if particular release
# has this "feature" or any obvious way to test for it.
case "$host" in
 mips-sni-sysv4*)
a27654 1
$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
d27656 6
a27661 1
esac
d27663 5
a27667 2
case "$host" in
 *-*-sco3.2v5*)
d27669 2
a27670 43
$as_echo "#define SCO5_CLOCK 1" >>confdefs.h

esac

ntp_cv_make_tickadj=yes
case "$can_kmem$ac_cv_var_tick$default_tickadj" in
 nonono)	# Don't read KMEM, no presets.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&2;}
    ntp_cv_make_tickadj=no
    ;;
 nono*)		# Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
    ntp_cv_make_tickadj=no
    ;;
 no*no)		# Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
    ntp_cv_make_tickadj=no
    ;;
 no*)		# Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
    ;;
 yesnono)	# Read KMEM, no presets.  Cool.
    ;;
 yesno*)	# Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
    ;;
 yes*no)	# Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
    ;;
 yes*)		# READ KMEM, PRESET_TICK and PRESET_TICKADJ.
    ;;
 *)		# Generally bogus.
    as_fn_error $? "This shouldn't happen." "$LINENO" 5
    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
$as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
if ${ac_cv_make_ntptime+:} false; then :
  $as_echo_n "(cached) " >&6
d27672 1
a27672 12
  case "$host" in
 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
     yesyes)
	ans=yes
	;;
     *)
	ans=no
	;;
    esac
    ;;
esac
ac_cv_make_ntptime=$ans
a27673 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
$as_echo "$ac_cv_make_ntptime" >&6; }
case "$ac_cv_make_ntptime" in
 yes)
    MAKE_NTPTIME=ntptime
    ;;
esac
d27675 25
d27701 11
a27711 22
case "$host" in
 mips-sni-sysv4*)
    # tickadj is pretty useless on newer versions of ReliantUNIX
    # Do not bother
    ntp_cv_make_tickadj=no
    ;;
 *-*-irix*)
    ntp_cv_make_tickadj=no
    ;;
 *-*-solaris2*)
    # DLM says tickadj is a no-no starting with solaris2.5
    case "$host" in
     *-*-solaris2.1[0-9]*)
	ntp_cv_make_tickadj=no
	;;
     *-*-solaris2.[0-4]*) ;;
     *) ntp_cv_make_tickadj=no ;;
    esac
    ;;
 *-*-unicosmp*)
    ntp_cv_make_tickadj=no
    ;;
d27714 3
a27716 13
#
# Despite all the above, we always make tickadj.  Setting
# ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
# report that the configuration variable was cached.  It may
# be better to simply remove the hunk above, I did not want
# to remove it if there is hope it will be used again.
#
{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
$as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
if ${ntp_cv_make_tickadj+:} false; then :
  $as_echo_n "(cached) " >&6
d27718 2
a27719 2
  ntp_cv_make_tickadj=yes

d27721 14
a27734 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
$as_echo "$ntp_cv_make_tickadj" >&6; }
case "$ntp_cv_make_tickadj" in
 yes)
    MAKE_TICKADJ=tickadj
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
$as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
if ${ntp_cv_make_timetrim+:} false; then :
  $as_echo_n "(cached) " >&6
d27736 4
a27739 12

	case "$host" in
	 *-*-irix*)
	    ntp_cv_make_timetrim=yes
	    ;;
	 *-*-unicosmp*)
	    ntp_cv_make_timetrim=yes
	    ;;
	 *)
	    ntp_cv_make_timetrim=no
	    ;;
	esac
d27742 5
a27746 7
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
$as_echo "$ntp_cv_make_timetrim" >&6; }
case "$ntp_cv_make_timetrim" in
 yes)
    MAKE_TIMETRIM=timetrim
esac
d27748 38
d27788 3
a27790 6

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
$as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
# Check whether --enable-simulator was given.
if test "${enable_simulator+set}" = set; then :
  enableval=$enable_simulator; ans=$enableval
d27792 2
a27793 2
  ans=no

d27796 25
a27820 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 yes)
    MAKE_NTPDSIM=ntpdsim
    MAKE_LIBNTPSIM=libntpsim.a
esac
d27822 2
a27823 10
case "$build" in
 $host)
    ;;
 *) case "$host" in
     *-*-vxworks*)
	LDFLAGS="$LDFLAGS -r"
	;;
    esac
    ;;
esac
d27826 6
a27831 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
$as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
d27833 7
a27839 4
# Check whether --with-ntpsnmpd was given.
if test "${with_ntpsnmpd+set}" = set; then :
  withval=$with_ntpsnmpd; ans=$withval
else
d27841 5
a27845 4
	case "$PATH_NET_SNMP_CONFIG" in
	 /*)	ans=yes ;;
	 *)	ans=no  ;;
	esac
d27847 2
d27850 1
a27850 1
fi
d27852 3
a27854 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 yes)
    case "$PATH_NET_SNMP_CONFIG" in
     /*)
	SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
d27856 3
a27858 13
	# HMS: we really want to separate CPPFLAGS and CFLAGS
	foo=`$PATH_NET_SNMP_CONFIG --cflags`
	SNMP_CPPFLAGS=
	SNMP_CFLAGS=
	for i in $foo; do
	    case "$i" in
	     -D*|-U*|-I*)
		SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
		;;
	    *)	SNMP_CFLAGS="$SNMP_CFLAGS $i"
		;;
	    esac
	done
d27861 5
d27867 1
a27867 5
	save_CFLAGS=$CFLAGS
	save_CPPFLAGS=$CPPFLAGS
	save_LIBS=$LIBS
	CFLAGS=$SNMP_CFLAGS
	CPPFLAGS=$SNMP_CPPFLAGS
d27869 5
a27873 6
	ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
  MAKE_NTPSNMPD=ntpsnmpd
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
d27875 1
a27875 1
fi
d27877 11
d27889 2
d27892 2
a27893 12
	# Do this last, as we're messing up LIBS.
	# check -lnetsnmp for netsnmp_daemonize
	LIBS=`$PATH_NET_SNMP_CONFIG --libs`
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnetsnmp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d27895 2
a27896 30
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char netsnmp_daemonize ();
int
main ()
{
return netsnmp_daemonize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_netsnmp_netsnmp_daemonize=yes
else
  ac_cv_lib_netsnmp_netsnmp_daemonize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
  ans=yes
else
  ans=no
d27898 1
a27898 1
fi
d27900 7
a27906 2
	case "$ans" in
	 no)
d27908 3
a27910 1
$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
d27912 7
a27918 1
	esac
d27920 15
a27934 9
	CFLAGS=$save_CFLAGS
	CPPFLAGS=$save_CPPFLAGS
	LIBS=$save_LIBS
	;;
     *)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
$as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
	;;
    esac
d27936 1
a27936 1
esac
d27938 33
d27972 3
d27976 2
a27977 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
$as_echo_n "checking if we should always slew the time... " >&6; }
d27979 3
a27981 1
# target-specific defaults
d27983 1
a27983 16
case "$host" in
 *-apple-aux[23]*)
    ans=yes
    ;;
 *-*-bsdi[012]*)
    ans=no
    ;;
 *-*-bsdi*)
    ans=yes
    ;;
 *-*-openvms*)	# HMS: won't be found
    ans=yes
    ;;
 *) ans=no
    ;;
esac
d27985 4
a27988 5
# --enable-slew-always / --disable-slew-always overrides default

# Check whether --enable-slew-always was given.
if test "${enable_slew_always+set}" = set; then :
  enableval=$enable_slew_always; ans=$enableval
d27990 9
d28001 10
d28012 6
a28017 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d28019 1
a28019 2
case "$ans" in
 yes)
d28021 1
a28021 1
$as_echo "#define SLEWALWAYS 1" >>confdefs.h
d28023 37
a28059 1
esac
d28061 3
a28063 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
$as_echo_n "checking if we should step and slew the time... " >&6; }
a28064 26
case "$host" in
 *-sni-sysv*)
    ans=yes
    ;;
 *-univel-sysv*)
    ans=no
    ;;
 *-*-ptx*)
    ans=yes
    ;;
 *-*-solaris2.1[0-9]*)
    ans=no
    ;;
 *-*-solaris2.[012]*)
    ans=yes
    ;;
 *-*-sysv4*)	# HMS: Does this catch Fujitsu UXP?
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# Check whether --enable-step-slew was given.
if test "${enable_step_slew+set}" = set; then :
  enableval=$enable_step_slew; ans=$enableval
d28066 8
d28076 15
d28092 8
a28099 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d28101 4
a28104 2
case "$ans" in
 yes)
a28105 17
$as_echo "#define STEP_SLEW 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
$as_echo_n "checking if ntpdate should step the time... " >&6; }

case "$host" in
 *-apple-aux[23]*)
    ans=yes
    ;;
 *) ans=no
esac

# Check whether --enable-ntpdate-step was given.
if test "${enable_ntpdate_step+set}" = set; then :
  enableval=$enable_ntpdate_step; ans=$enableval
d28107 6
d28114 5
a28118 31


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
$as_echo_n "checking if we should sync TODR clock every hour... " >&6; }

case "$host" in
 *-*-nextstep*)
    ans=yes
    ;;
 *-*-openvms*)	# HMS: won't be found
    ans=yes
    ;;
 *)
    ans=no
esac

# Check whether --enable-hourly-todr-sync was given.
if test "${enable_hourly_todr_sync+set}" = set; then :
  enableval=$enable_hourly_todr_sync; ans=$enableval

d28121 2
a28123 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d28125 11
a28135 2
case "$ac_cv_var_sync_todr" in
 yes)
d28137 10
a28146 3
$as_echo "#define DOSYNCTODR 1" >>confdefs.h
 ;;
esac
d28148 52
d28201 17
a28217 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
d28219 2
a28220 44
case "$host" in
 *-*-solaris2.6)
    unamev=`uname -v`
    case "$unamev" in
     Generic_105181-*)
	old_IFS="$IFS"
	IFS="-"
	set $unamev
	IFS="$old_IFS"
	if test "$2" -ge 17
	then
	    # Generic_105181-17 and higher
	    ans=no
	else
	    ans=yes
	fi
	;;
     *)
	ans=yes
    esac
    ;;
 *-*-solaris2.7)
    unamev=`uname -v`
    case "$unamev" in
     Generic_106541-*)
	old_IFS="$IFS"
	IFS="-"
	set $unamev
	IFS="$old_IFS"
	if test "$2" -ge 07
	then
	    # Generic_106541-07 and higher
	    ans=no
	else
	    ans=yes
	fi
	;;
     *)
	ans=yes
    esac
    ;;
 *)
    ans=no
esac
d28222 10
a28231 3
# Check whether --enable-kernel-fll-bug was given.
if test "${enable_kernel_fll_bug+set}" = set; then :
  enableval=$enable_kernel_fll_bug; ans=$enableval
d28233 13
d28248 10
d28259 3
a28261 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d28263 13
a28275 2
case "$ans" in
 yes)
d28277 3
a28279 1
$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
d28281 39
a28319 1
esac
d28321 37
a28358 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
$as_echo_n "checking if we want new session key behavior... " >&6; }
# Check whether --enable-bug1243-fix was given.
if test "${enable_bug1243_fix+set}" = set; then :
  enableval=$enable_bug1243_fix; ans=$enableval
else
  ans=yes
d28360 20
a28379 1
fi
d28381 21
a28401 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 no)
d28403 18
a28420 1
$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
d28422 4
a28425 9
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }

case "$host" in
 *-*-solaris2.[89])
    ans=yes
d28427 1
a28427 5
 *-*-solaris2.1[0-9]*)
    ans=yes
    ;;
 *) ans=no
esac
d28429 25
a28453 14
# Check whether --enable-irig-sawtooth was given.
if test "${enable_irig_sawtooth+set}" = set; then :
  enableval=$enable_irig_sawtooth; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define IRIG_SUCKS 1" >>confdefs.h
d28455 10
d28466 4
d28471 13
a28483 21

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }

# Check whether --enable-nist was given.
if test "${enable_nist+set}" = set; then :
  enableval=$enable_nist; ans=$enableval
else
  ans=no

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define LOCKCLOCK 1" >>confdefs.h
 ;;
d28485 1
d28488 5
a28492 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
d28494 10
a28503 5
# Check whether --enable-ntp-signd was given.
if test "${enable_ntp_signd+set}" = set; then :
  enableval=$enable_ntp_signd; ans=$enableval
else
  ans=no
d28505 28
a28532 15
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 no)
    ntp_signd_path=
    ;;
 yes)
    ntp_signd_path=/var/run/ntp_signd
    ;;
 *)
    ntp_signd_path="$ans"
a28533 11

case "$ntp_signd_path" in
 '')
    ;;
 *)

$as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h


cat >>confdefs.h <<_ACEOF
#define NTP_SIGND_PATH "$ntp_signd_path"
d28536 6
a28541 9
esac


for ac_header in sys/clockctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_CLOCKCTL_H 1
d28543 19
d28563 7
a28569 1
fi
d28571 1
a28571 2277
done


case "$host" in
 *-*-netbsd*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# Check whether --enable-clockctl was given.
if test "${enable_clockctl+set}" = set; then :
  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
else
  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
$as_echo "$ntp_use_dev_clockctl" >&6; }


for ac_header in sys/capability.h sys/prctl.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }

case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
 yesyes)
    case "$host" in
     mips-sgi-irix*)
	ntp_have_linuxcaps=no
	;;
     *) ntp_have_linuxcaps=yes
	;;
    esac
    ;;
 *)
    ntp_have_linuxcaps=no
    ;;
esac

# Check whether --enable-linuxcaps was given.
if test "${enable_linuxcaps+set}" = set; then :
  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
$as_echo "$ntp_have_linuxcaps" >&6; }

case "$ntp_have_linuxcaps" in
 yes)

$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h

    LIBS="$LIBS -lcap"
esac

case "$ntp_use_dev_clockctl$ntp_have_linuxcaps" in
 *yes*)

$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h

esac


for ac_header in libscf.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
if test "x$ac_cv_header_libscf_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSCF_H 1
_ACEOF

fi

done

LSCF=
case "$ac_cv_header_libscf_h" in
 yes)
    LSCF='-lscf'
esac


ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
if test "x$ac_cv_func_setppriv" = xyes; then :
  ans=yes
else
  ans=no

fi

case "$ans" in
 yes)

$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
$as_echo_n "checking struct sockaddr for sa_len... " >&6; }
if ${isc_cv_platform_havesalen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <sys/socket.h>

int
main ()
{

		extern struct sockaddr *ps;
		return ps->sa_len;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_platform_havesalen=yes
else
  isc_cv_platform_havesalen=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
$as_echo "$isc_cv_platform_havesalen" >&6; }
case "$isc_cv_platform_havesalen" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h

esac

# Check whether --enable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then :
  enableval=$enable_ipv6;
fi


case "$enable_ipv6" in
 yes|''|autodetect)
    case "$host" in
     powerpc-ibm-aix4*)
	;;
     *)

$as_echo "#define WANT_IPV6 1" >>confdefs.h

	;;
    esac
    ;;
 no)
    ;;
esac


case "$host" in
 *-*-darwin*)

$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
$as_echo_n "checking for IPv6 structures... " >&6; }
if ${isc_cv_found_ipv6+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <sys/socket.h>
		#include <netinet/in.h>

int
main ()
{

		struct sockaddr_in6 sin6;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_found_ipv6=yes
else
  isc_cv_found_ipv6=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
$as_echo "$isc_cv_found_ipv6" >&6; }

#
# See whether IPv6 support is provided via a Kame add-on.
# This is done before other IPv6 linking tests so LIBS is properly set.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
$as_echo_n "checking for Kame IPv6 support... " >&6; }

# Check whether --with-kame was given.
if test "${with_kame+set}" = set; then :
  withval=$with_kame; use_kame="$withval"
else
  use_kame="no"

fi

case "$use_kame" in
 no)
    ;;
 yes)
    kame_path=/usr/local/v6
    ;;
 *)
    kame_path="$use_kame"
    ;;
esac
case "$use_kame" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
 *)
    if test -f $kame_path/lib/libinet6.a; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
$as_echo "$kame_path/lib/libinet6.a" >&6; }
	LIBS="-L$kame_path/lib -linet6 $LIBS"
    else
	as_fn_error $? "$kame_path/lib/libinet6.a not found.

Please choose the proper path with the following command:

    configure --with-kame=PATH
" "$LINENO" 5
    fi
    ;;
esac

#
# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
# Including it on Kame-using platforms is very bad, though, because
# Kame uses #error against direct inclusion.   So include it on only
# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
# This is done before the in6_pktinfo check because that's what
# netinet6/in6.h is needed for.
#
case "$host" in
 *-bsdi4.[01]*)

$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h

    isc_netinet6in6_hack="#include <netinet6/in6.h>"
    ;;
 *)
    isc_netinet6in6_hack=""
    ;;
esac

#
# This is similar to the netinet6/in6.h issue.
#
case "$host" in
 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)

$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h

    isc_netinetin6_hack="#include <netinet/in6.h>"
    ;;
 *)
    isc_netinetin6_hack=""
    ;;
esac


case "$isc_cv_found_ipv6" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
$as_echo_n "checking for in6_pktinfo... " >&6; }
if ${isc_cv_have_in6_pktinfo+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include <sys/types.h>
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack

int
main ()
{

		    struct in6_pktinfo xyzzy;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_in6_pktinfo=yes
else
  isc_cv_have_in6_pktinfo=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
$as_echo "$isc_cv_have_in6_pktinfo" >&6; }
    case "$isc_cv_have_in6_pktinfo" in
     yes)

$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h

    esac


    # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
if ${isc_cv_have_sin6_scope_id+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include <sys/types.h>
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack

int
main ()
{

		    struct sockaddr_in6 xyzzy;
		    xyzzy.sin6_scope_id = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_sin6_scope_id=yes
else
  isc_cv_have_sin6_scope_id=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
$as_echo "$isc_cv_have_sin6_scope_id" >&6; }

    case "$isc_cv_have_sin6_scope_id" in
     yes)

$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h

    esac
esac


# We need this check run even without isc_cv_found_ipv6=yes

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
$as_echo_n "checking for in6addr_any... " >&6; }
if ${isc_cv_have_in6addr_any+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <sys/socket.h>
		#include <netinet/in.h>
		$isc_netinetin6_hack
		$isc_netinet6in6_hack

int
main ()
{

		struct in6_addr in6;
		in6 = in6addr_any;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  isc_cv_have_in6addr_any=yes
else
  isc_cv_have_in6addr_any=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6addr_any" >&5
$as_echo "$isc_cv_have_in6addr_any" >&6; }

case "$isc_cv_have_in6addr_any" in
 no)

$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
$as_echo_n "checking for struct if_laddrconf... " >&6; }
if ${isc_cv_struct_if_laddrconf+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <net/if6.h>

int
main ()
{

		struct if_laddrconf a;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_struct_if_laddrconf=yes
else
  isc_cv_struct_if_laddrconf=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
$as_echo "$isc_cv_struct_if_laddrconf" >&6; }

case "$isc_cv_struct_if_laddrconf" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
$as_echo_n "checking for struct if_laddrreq... " >&6; }
if ${isc_cv_struct_if_laddrreq+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <net/if6.h>

int
main ()
{

		struct if_laddrreq a;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_struct_if_laddrreq=yes
else
  isc_cv_struct_if_laddrreq=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
$as_echo "$isc_cv_struct_if_laddrreq" >&6; }

case "$isc_cv_struct_if_laddrreq" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h

esac

#
# Look for a sysctl call to get the list of network interfaces.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
$as_echo_n "checking for interface list sysctl... " >&6; }
if ${ntp_cv_iflist_sysctl+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <sys/param.h>
	    #include <sys/sysctl.h>
	    #include <sys/socket.h>
	    #ifdef NET_RT_IFLIST
		found_rt_iflist
	    #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "found_rt_iflist" >/dev/null 2>&1; then :
  ntp_cv_iflist_sysctl=yes
else
  ntp_cv_iflist_sysctl=no

fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
$as_echo "$ntp_cv_iflist_sysctl" >&6; }
case "$ntp_cv_iflist_sysctl" in
 yes)

$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h

esac

###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
$as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
# Check whether --enable-saveconfig was given.
if test "${enable_saveconfig+set}" = set; then :
  enableval=$enable_saveconfig; ntp_ok=$enableval
else
  ntp_ok=yes

fi

ntp_saveconfig_enabled=0
if test "$ntp_ok" = "yes"; then
    ntp_saveconfig_enabled=1

$as_echo "#define SAVECONFIG 1" >>confdefs.h

fi
 if test x$ntp_saveconfig_enabled = x1; then
  SAVECONFIG_ENABLED_TRUE=
  SAVECONFIG_ENABLED_FALSE='#'
else
  SAVECONFIG_ENABLED_TRUE='#'
  SAVECONFIG_ENABLED_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

###


	ac_expanded=`(
	    test "x$prefix" = xNONE && prefix="$ac_default_prefix"
	    test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
	    eval echo \""$sysconfdir"\"
	)`

cat >>confdefs.h <<_ACEOF
#define NTP_KEYSDIR "$ac_expanded"
_ACEOF



ac_config_files="$ac_config_files Makefile"

ac_config_files="$ac_config_files ElectricFence/Makefile"

ac_config_files="$ac_config_files adjtimed/Makefile"

ac_config_files="$ac_config_files clockstuff/Makefile"

ac_config_files="$ac_config_files include/Makefile"

ac_config_files="$ac_config_files include/isc/Makefile"

ac_config_files="$ac_config_files kernel/Makefile"

ac_config_files="$ac_config_files kernel/sys/Makefile"

ac_config_files="$ac_config_files libntp/Makefile"

ac_config_files="$ac_config_files libparse/Makefile"

ac_config_files="$ac_config_files ntpd/Makefile"

ac_config_files="$ac_config_files ntpdate/Makefile"

ac_config_files="$ac_config_files ntpdc/Makefile"

ac_config_files="$ac_config_files ntpdc/nl.pl"

ac_config_files="$ac_config_files ntpq/Makefile"

ac_config_files="$ac_config_files ntpsnmpd/Makefile"

ac_config_files="$ac_config_files parseutil/Makefile"

ac_config_files="$ac_config_files scripts/Makefile"

ac_config_files="$ac_config_files scripts/calc_tickadj"

ac_config_files="$ac_config_files scripts/checktime"

ac_config_files="$ac_config_files scripts/freq_adj"

ac_config_files="$ac_config_files scripts/html2man"

ac_config_files="$ac_config_files scripts/mkver"

ac_config_files="$ac_config_files scripts/ntp-wait"

ac_config_files="$ac_config_files scripts/ntpsweep"

ac_config_files="$ac_config_files scripts/ntptrace"

ac_config_files="$ac_config_files scripts/ntpver"

ac_config_files="$ac_config_files scripts/plot_summary"

ac_config_files="$ac_config_files scripts/summary"

ac_config_files="$ac_config_files util/Makefile"




subdirs="$subdirs sntp"


cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    if test "x$cache_file" != "x/dev/null"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
      if test ! -f "$cache_file" || test -h "$cache_file"; then
	cat confcache >"$cache_file"
      else
        case $cache_file in #(
        */* | ?:*)
	  mv -f confcache "$cache_file"$$ &&
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
        *)
	  mv -f confcache "$cache_file" ;;
	esac
      fi
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
U=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


 if test -n "$EXEEXT"; then
  am__EXEEXT_TRUE=
  am__EXEEXT_FALSE='#'
else
  am__EXEEXT_TRUE='#'
  am__EXEEXT_FALSE=
fi

if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  as_fn_error $? "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
  as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
  as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NTP_BINSUBDIR_IS_BIN_TRUE}" && test -z "${NTP_BINSUBDIR_IS_BIN_FALSE}"; then
  as_fn_error $? "conditional \"NTP_BINSUBDIR_IS_BIN\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
  as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false

SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH


# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  $as_echo "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@@" || test $? -eq 1`
  }
fi # as_fn_arith


if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null


# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by ntp $as_me 4.2.6p5, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to the package provider."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
ntp config.status 4.2.6p5
configured by $0, generated by GNU Autoconf 2.68,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2010 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=?*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  --*=)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    $as_echo "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    $as_echo "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    '') as_fn_error $? "missing file argument" ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error $? "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
  --help | --hel | -h )
    $as_echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error $? "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#
# INIT-COMMANDS
#
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"


# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

sed_quote_subst='$sed_quote_subst'
double_quote_subst='$double_quote_subst'
delay_variable_subst='$delay_variable_subst'
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'

LTCC='$LTCC'
LTCFLAGS='$LTCFLAGS'
compiler='$compiler_DEFAULT'

# A function that is used when there is no print builtin or printf.
func_fallback_echo ()
{
  eval 'cat <<_LTECHO_EOF
\$1
_LTECHO_EOF'
}

# Quote evaled strings.
for var in SHELL \
ECHO \
SED \
GREP \
EGREP \
FGREP \
LD \
NM \
LN_S \
lt_SP2NL \
lt_NL2SP \
reload_flag \
OBJDUMP \
deplibs_check_method \
file_magic_cmd \
file_magic_glob \
want_nocaseglob \
DLLTOOL \
sharedlib_from_linklib_cmd \
AR \
AR_FLAGS \
archiver_list_spec \
STRIP \
RANLIB \
CC \
CFLAGS \
compiler \
lt_cv_sys_global_symbol_pipe \
lt_cv_sys_global_symbol_to_cdecl \
lt_cv_sys_global_symbol_to_c_name_address \
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
nm_file_list_spec \
lt_prog_compiler_no_builtin_flag \
lt_prog_compiler_pic \
lt_prog_compiler_wl \
lt_prog_compiler_static \
lt_cv_prog_compiler_c_o \
need_locks \
MANIFEST_TOOL \
DSYMUTIL \
NMEDIT \
LIPO \
OTOOL \
OTOOL64 \
shrext_cmds \
export_dynamic_flag_spec \
whole_archive_flag_spec \
compiler_needs_object \
with_gnu_ld \
allow_undefined_flag \
no_undefined_flag \
hardcode_libdir_flag_spec \
hardcode_libdir_flag_spec_ld \
hardcode_libdir_separator \
exclude_expsyms \
include_expsyms \
file_list_spec \
variables_saved_for_relink \
libname_spec \
library_names_spec \
soname_spec \
install_override_mode \
finish_eval \
old_striplib \
striplib; do
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

# Double-quote double-evaled strings.
for var in reload_cmds \
old_postinstall_cmds \
old_postuninstall_cmds \
old_archive_cmds \
extract_expsyms_cmds \
old_archive_from_new_cmds \
old_archive_from_expsyms_cmds \
archive_cmds \
archive_expsym_cmds \
module_cmds \
module_expsym_cmds \
export_symbols_cmds \
prelink_cmds \
postlink_cmds \
postinstall_cmds \
postuninstall_cmds \
finish_cmds \
sys_lib_search_path_spec \
sys_lib_dlsearch_path_spec; do
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

ac_aux_dir='$ac_aux_dir'
xsi_shell='$xsi_shell'
lt_shell_append='$lt_shell_append'

# See if we are running on zsh, and set the options which allow our
# commands through without removal of \ escapes INIT.
if test -n "\${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi


    PACKAGE='$PACKAGE'
    VERSION='$VERSION'
    TIMESTAMP='$TIMESTAMP'
    RM='$RM'
    ofile='$ofile'




_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "ElectricFence/Makefile") CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;;
    "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
    "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
    "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
    "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
    "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
    "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
    "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
    "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
    "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
    "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
    "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
    "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
    "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
    "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
    "scripts/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;;
    "scripts/checktime") CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;;
    "scripts/freq_adj") CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;;
    "scripts/html2man") CONFIG_FILES="$CONFIG_FILES scripts/html2man" ;;
    "scripts/mkver") CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;;
    "scripts/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;;
    "scripts/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;;
    "scripts/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace" ;;
    "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
    "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
    "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;

  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp= ac_tmp=
  trap 'exit_status=$?
  : "${ac_tmp:=$tmp}"
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ac_tmp=$tmp

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then


ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
_ACEOF


{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""

}
{
  line = $ 0
  nfields = split(line, field, "@@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }

  print line
}

_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
_ACEOF

# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
# ${srcdir} and @@srcdir@@ entries from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
h
s///
s/^/:/
s/[	 ]*$/:/
s/:\$(srcdir):/:/g
s/:\${srcdir}:/:/g
s/:@@srcdir@@:/:/g
s/^:*//
s/:*$//
x
s/\(=[	 ]*\).*/\1/
G
s/\n//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_tt"; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$ac_tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@@datadir@@/p
/@@docdir@@/p
/@@infodir@@/p
/@@localedir@@/p
/@@mandir@@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@@datadir@@*|*@@docdir@@*|*@@infodir@@*|*@@localedir@@*|*@@mandir@@*)
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@@datadir@@&$datadir&g
  s&@@docdir@@&$docdir&g
  s&@@infodir@@&$infodir&g
  s&@@localedir@@&$localedir&g
  s&@@mandir@@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s|@@configure_input@@|$ac_sed_conf_input|;t t
s&@@top_builddir@@&$ac_top_builddir_sub&;t t
s&@@top_build_prefix@@&$ac_top_build_prefix&;t t
s&@@srcdir@@&$ac_srcdir&;t t
s&@@abs_srcdir@@&$ac_abs_srcdir&;t t
s&@@top_srcdir@@&$ac_top_srcdir&;t t
s&@@abs_top_srcdir@@&$ac_abs_top_srcdir&;t t
s&@@builddir@@&$ac_builddir&;t t
s&@@abs_builddir@@&$ac_abs_builddir&;t t
s&@@abs_top_builddir@@&$ac_abs_top_builddir&;t t
s&@@INSTALL@@&$ac_INSTALL&;t t
s&@@MKDIR_P@@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&2;}

  rm -f "$ac_tmp/stdin"
d28573 2
a28574 2
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
d28576 1
a28576 1
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d28585 4
a28588 4
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
    } >"$ac_tmp/config.h" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
d28593 2
a28594 2
      mv "$ac_tmp/config.h" "$ac_file" \
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
d28598 2
a28599 2
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error $? "could not create -" "$LINENO" 5
d28637 4
a28640 365
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
  # are listed without --file.  Let's play safe and only enable the eval
  # if we detect the quoting.
  case $CONFIG_FILES in
  *\'*) eval set x "$CONFIG_FILES" ;;
  *)   set x $CONFIG_FILES ;;
  esac
  shift
  for mf
  do
    # Strip MF so we end up with the name of the file.
    mf=`echo "$mf" | sed -e 's/:.*$//'`
    # Check whether this is an Automake generated Makefile or not.
    # We used to match only the files named `Makefile.in', but
    # some people rename them; so instead we look at the file content.
    # Grep'ing the first line is not enough: some people post-process
    # each Makefile.in and add a new line on top of each file to say so.
    # Grep'ing the whole file is not good either: AIX grep has a line
    # limit of 2048, but all sed's we know have understand at least 4000.
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
      dirpart=`$as_dirname -- "$mf" ||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$mf" : 'X\(//\)[^/]' \| \
	 X"$mf" : 'X\(//\)$' \| \
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
    else
      continue
    fi
    # Extract the definition of DEPDIR, am__include, and am__quote
    # from the Makefile without running `make'.
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    test -z "$DEPDIR" && continue
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
    test -z "am__include" && continue
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
    # When using ansi2knr, U may be empty or an underscore; expand it
    U=`sed -n 's/^U = //p' < "$mf"`
    # Find all dependency output files, they are included files with
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
    # simplest approach to changing $(DEPDIR) to its actual value in the
    # expansion.
    for file in `sed -n "
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
      # Make sure the directory exists.
      test -f "$dirpart/$file" && continue
      fdir=`$as_dirname -- "$file" ||
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$file" : 'X\(//\)[^/]' \| \
	 X"$file" : 'X\(//\)$' \| \
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
      # echo "creating $dirpart/$file"
      echo '# dummy' > "$dirpart/$file"
    done
  done
}
 ;;
    "libtool":C)

    # See if we are running on zsh, and set the options which allow our
    # commands through without removal of \ escapes.
    if test -n "${ZSH_VERSION+set}" ; then
      setopt NO_GLOB_SUBST
    fi

    cfgfile="${ofile}T"
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
    $RM "$cfgfile"

    cat <<_LT_EOF >> "$cfgfile"
#! $SHELL

# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
#                 Inc.
#   Written by Gordon Matzigkeit, 1996
#
#   This file is part of GNU Libtool.
#
# GNU Libtool is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# As a special exception to the GNU General Public License,
# if you distribute this file as part of a program or library that
# is built using GNU Libtool, you may include this file under the
# same distribution terms that you use for the rest of that program.
#
# GNU Libtool is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Libtool; see the file COPYING.  If not, a copy
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
# obtained by writing to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


# The names of the tagged configurations supported by this script.
available_tags=""

# ### BEGIN LIBTOOL CONFIG

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Which release of libtool.m4 was used?
macro_version=$macro_version
macro_revision=$macro_revision

# Whether or not to build static libraries.
build_old_libs=$enable_static

# What type of objects to build.
pic_mode=$pic_mode

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# An echo program that protects backslashes.
ECHO=$lt_ECHO

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# A sed program that does not truncate output.
SED=$lt_SED

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="\$SED -e 1s/^X//"

# A grep program that handles long lines.
GREP=$lt_GREP

# An ERE matcher.
EGREP=$lt_EGREP

# A literal string matcher.
FGREP=$lt_FGREP

# A BSD- or MS-compatible name lister.
NM=$lt_NM

# Whether we need soft or hard links.
LN_S=$lt_LN_S

# What is the maximum length of a command?
max_cmd_len=$max_cmd_len

# Object file suffix (normally "o").
objext=$ac_objext

# Executable file suffix (normally "").
exeext=$exeext

# whether the shell understands "unset".
lt_unset=$lt_unset

# turn spaces into newlines.
SP2NL=$lt_lt_SP2NL

# turn newlines into spaces.
NL2SP=$lt_lt_NL2SP

# convert \$build file names to \$host format.
to_host_file_cmd=$lt_cv_to_host_file_cmd

# convert \$build files to toolchain format.
to_tool_file_cmd=$lt_cv_to_tool_file_cmd

# An object symbol dumper.
OBJDUMP=$lt_OBJDUMP

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method = "file_magic".
file_magic_cmd=$lt_file_magic_cmd

# How to find potential files when deplibs_check_method = "file_magic".
file_magic_glob=$lt_file_magic_glob

# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
want_nocaseglob=$lt_want_nocaseglob

# DLL creation program.
DLLTOOL=$lt_DLLTOOL

# Command to associate shared and link libraries.
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd

# The archiver.
AR=$lt_AR

# Flags to create an archive.
AR_FLAGS=$lt_AR_FLAGS

# How to feed a file listing to the archiver.
archiver_list_spec=$lt_archiver_list_spec

# A symbol stripping program.
STRIP=$lt_STRIP

# Commands used to install an old-style archive.
RANLIB=$lt_RANLIB
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Whether to use a lock for old archive extraction.
lock_old_archive_extraction=$lock_old_archive_extraction

# A C compiler.
LTCC=$lt_CC

# LTCC compiler flags.
LTCFLAGS=$lt_CFLAGS

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration.
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair.
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# Transform the output of nm in a C name address pair when lib prefix is needed.
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix

# Specify filename containing input files for \$NM.
nm_file_list_spec=$lt_nm_file_list_spec

# The root where to search for dependent libraries,and in which our libraries should be installed.
lt_sysroot=$lt_sysroot

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# Used to examine libraries when file_magic_cmd begins with "file".
MAGIC_CMD=$MAGIC_CMD

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Manifest tool.
MANIFEST_TOOL=$lt_MANIFEST_TOOL

# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
DSYMUTIL=$lt_DSYMUTIL

# Tool to change global to local symbols on Mac OS X.
NMEDIT=$lt_NMEDIT

# Tool to manipulate fat objects and archives on Mac OS X.
LIPO=$lt_LIPO

# ldd/readelf like tool for Mach-O binaries on Mac OS X.
OTOOL=$lt_OTOOL

# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
OTOOL64=$lt_OTOOL64

# Old archive suffix (normally "a").
libext=$libext

# Shared library suffix (normally ".so").
shrext_cmds=$lt_shrext_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Variables whose values should be saved in libtool wrapper scripts and
# restored at link time.
variables_saved_for_relink=$lt_variables_saved_for_relink

# Do we need the "lib" prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Library versioning type.
version_type=$version_type

# Shared library runtime path variable.
runpath_var=$runpath_var

# Shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec
a28641 2
# Permission mode override for installation of shared libraries.
install_override_mode=$lt_install_override_mode
d28643 8
a28650 187
# Command to use after installation of a shared archive.
postinstall_cmds=$lt_postinstall_cmds

# Command to use after uninstallation of a shared archive.
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# As "finish_cmds", except a single script fragment to be evaled but
# not shown.
finish_eval=$lt_finish_eval

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Compile-time system search path for libraries.
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib


# The linker used to build libraries.
LD=$lt_LD

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds

# A language specific compiler.
CC=$lt_compiler

# Is the compiler the GNU compiler?
with_gcc=$GCC

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds

# Commands necessary for finishing linking programs.
postlink_cmds=$lt_postlink_cmds

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# ### END LIBTOOL CONFIG

_LT_EOF

  case $host_os in
  aix3*)
    cat <<\_LT_EOF >> "$cfgfile"
# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
_LT_EOF
    ;;
d28652 86
a28737 175


ltmain="$ac_aux_dir/ltmain.sh"


  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '$q' "$ltmain" >> "$cfgfile" \
     || (rm -f "$cfgfile"; exit 1)

  if test x"$xsi_shell" = xyes; then
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
func_dirname ()\
{\
\    case ${1} in\
\      */*) func_dirname_result="${1%/*}${2}" ;;\
\      *  ) func_dirname_result="${3}" ;;\
\    esac\
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_basename ()$/,/^} # func_basename /c\
func_basename ()\
{\
\    func_basename_result="${1##*/}"\
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
func_dirname_and_basename ()\
{\
\    case ${1} in\
\      */*) func_dirname_result="${1%/*}${2}" ;;\
\      *  ) func_dirname_result="${3}" ;;\
\    esac\
\    func_basename_result="${1##*/}"\
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
func_stripname ()\
{\
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
\    # positional parameters, so assign one to ordinary parameter first.\
\    func_stripname_result=${3}\
\    func_stripname_result=${func_stripname_result#"${1}"}\
\    func_stripname_result=${func_stripname_result%"${2}"}\
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
func_split_long_opt ()\
{\
\    func_split_long_opt_name=${1%%=*}\
\    func_split_long_opt_arg=${1#*=}\
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
func_split_short_opt ()\
{\
\    func_split_short_opt_arg=${1#??}\
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
func_lo2o ()\
{\
\    case ${1} in\
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
\      *)    func_lo2o_result=${1} ;;\
\    esac\
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_xform ()$/,/^} # func_xform /c\
func_xform ()\
{\
    func_xform_result=${1%.*}.lo\
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_arith ()$/,/^} # func_arith /c\
func_arith ()\
{\
    func_arith_result=$(( $* ))\
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_len ()$/,/^} # func_len /c\
func_len ()\
{\
    func_len_result=${#1}\
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:

fi

if test x"$lt_shell_append" = xyes; then
  sed -e '/^func_append ()$/,/^} # func_append /c\
func_append ()\
{\
    eval "${1}+=\\${2}"\
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
func_append_quoted ()\
{\
\    func_quote_for_eval "${2}"\
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  # Save a `func_append' function call where possible by direct use of '+='
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
    && mv -f "$cfgfile.tmp" "$cfgfile" \
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  test 0 -eq $? || _lt_function_replace_fail=:
else
  # Save a `func_append' function call even when '+=' is not available
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
    && mv -f "$cfgfile.tmp" "$cfgfile" \
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  test 0 -eq $? || _lt_function_replace_fail=:
fi

if test x"$_lt_function_replace_fail" = x":"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
fi


   mv -f "$cfgfile" "$ofile" ||
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"

d28761 1
a28761 1
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
d28782 1
a28782 1
  $ac_cs_success || as_fn_exit 1
d28923 1
a28923 1
	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
@


1.1.1.1.6.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d3 1
a3 3
# Generated by GNU Autoconf 2.68 for ntp 4.2.7p404.
#
# Report bugs to <http://bugs.ntp.org./>.
d247 4
a250 5
    $as_echo "$0: Please tell bug-autoconf@@gnu.org and
$0: http://bugs.ntp.org./ about your system, including any
$0: error possibly output before this message. Then install
$0: a modern shell, or manually run the script under such a
$0: shell if you do have one."
d570 4
a573 4
PACKAGE_VERSION='4.2.7p404'
PACKAGE_STRING='ntp 4.2.7p404'
PACKAGE_BUGREPORT='http://bugs.ntp.org./'
PACKAGE_URL='http://www.ntp.org./'
a610 1
ac_header_list=
d615 1
a616 9
PERLLIBDIR
NTP_KEYSDIR
GTEST_AVAILABLE_FALSE
GTEST_AVAILABLE_TRUE
GTEST_CPPFLAGS
GTEST_CXXFLAGS
GTEST_LIBS
GTEST_LDFLAGS
GTEST_CONFIG
a623 3
BUILD_SNTP_FALSE
BUILD_SNTP_TRUE
SNTP
d630 1
d637 6
a642 2
VER_SUFFIX
PKG_CONFIG
d647 2
a648 3
HAVE_RLIMIT_STACK
HAVE_RLIMIT_MEMLOCK
LDADD_NLIST
a649 1
CONFIG_SHELL
d651 1
a652 22
LIBOBJS
PTHREADS_FALSE
PTHREADS_TRUE
LIBISC_PTHREADS_NOTHREADS
PTHREAD_LIBS
HAVE_INLINE
ALLOCA
LIBM
EDITLINE_LIBS
LDADD_LIBNTP
NTP_CROSSCOMPILE_FALSE
NTP_CROSSCOMPILE_TRUE
LIBOPTS_DIR
LIBOPTS_CFLAGS
LIBOPTS_LDADD
NEED_LIBOPTS_FALSE
NEED_LIBOPTS_TRUE
INSTALL_LIBOPTS_FALSE
INSTALL_LIBOPTS_TRUE
POSIX_SHELL
LIBTOOL_DEPS
CXXCPP
d670 14
a684 60
LIBTOOL
TIMETRIM_MS
TIMETRIM_DS
TIMETRIM_DL
TIMETRIM_DB
TICKADJ_MS
TICKADJ_DS
TICKADJ_DL
TICKADJ_DB
SNTP_MS
SNTP_DS
SNTP_DL
SNTP_DB
NTP_WAIT_MS
NTP_WAIT_DS
NTP_WAIT_DL
NTP_WAIT_DB
NTP_KEYGEN_MS
NTP_KEYGEN_DS
NTP_KEYGEN_DL
NTP_KEYGEN_DB
NTPTRACE_MS
NTPTRACE_DS
NTPTRACE_DL
NTPTRACE_DB
NTPTIME_MS
NTPTIME_DS
NTPTIME_DL
NTPTIME_DB
NTPSNMPD_MS
NTPSNMPD_DS
NTPSNMPD_DL
NTPSNMPD_DB
NTPQ_MS
NTPQ_DS
NTPQ_DL
NTPQ_DB
NTPD_MS
NTPD_DS
NTPD_DL
NTPD_DB
NTPDSIM_MS
NTPDSIM_DS
NTPDSIM_DL
NTPDSIM_DB
NTPDC_MS
NTPDC_DS
NTPDC_DL
NTPDC_DB
NTPDATE_MS
NTPDATE_DS
NTPDATE_DL
NTPDATE_DB
MANTAGFMT
CALC_TICKADJ_MS
CALC_TICKADJ_DS
CALC_TICKADJ_DL
CALC_TICKADJ_DB
WANT_CALC_TICKADJ_MS_FALSE
WANT_CALC_TICKADJ_MS_TRUE
a688 10
am__fastdepCXX_FALSE
am__fastdepCXX_TRUE
CXXDEPMODE
ac_ct_CXX
CXXFLAGS
CXX
LDFLAGS_NTP
LDADD_NTP
CPPFLAGS_NTP
CFLAGS_NTP
a715 2
AM_BACKSLASH
AM_DEFAULT_VERBOSITY
d777 1
a777 6
ac_subst_files='calc_tickadj_opts
ntp_wait_opts
ntpsweep_opts
ntptrace_opts
summary_opts
plot_summary_opts'
a779 1
enable_silent_rules
a780 1
with_locfile
d782 6
d794 1
a794 5
enable_nls
enable_local_libopts
enable_libopts_install
with_autoopts_config
enable_local_libevent
d796 1
a797 10
enable_thread_support
with_threads
enable_c99_snprintf
enable_clockctl
enable_linuxcaps
enable_solarisprivs
with_arlib
with_net_snmp_config
with_stack_limit
with_memlock
d801 1
a838 1
enable_TSYNCPCI
a852 2
enable_SEL240X
with_crypto
d855 2
a856 2
with_rpath
enable_autokey
a861 1
with_sntp
d872 2
a875 1
enable_getifaddrs
a876 1
with_gtest
a886 3
CXX
CXXFLAGS
CCC
d888 1
a888 2
YFLAGS
CXXCPP'
d1431 1
a1431 1
\`configure' configures ntp 4.2.7p404 to adapt to many kinds of systems.
d1501 1
a1501 1
     short | recursive ) echo "Configuration of ntp 4.2.7p404:";;
d1505 1
a1505 1
Optional Features and Packages:
a1508 4
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --enable-silent-rules          less verbose build output (undo: `make V=1')
  --disable-silent-rules         verbose build output (undo: `make V=0')
a1510 1
  --with-locfile=XXX      os-specific or "legacy"
d1512 3
a1515 2
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
a1517 3
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
d1519 3
a1521 8
  --disable-nls           disable nls support in libopts
  --enable-local-libopts  Use the supplied libopts tearoff code
  --enable-libopts-install
                          Install libopts with client installation
  --with-autoopts-config  specify the config-info script
  --enable-local-libevent Force using the supplied libevent tearoff code
  --with-lineeditlibs     edit,editline (readline may be specified if desired)
  defaults:               + yes, - no, s system-specific
a1522 10
  --enable-thread-support s use threads (+ if available)
  --with-threads	  with threads [auto]
  --enable-c99-snprintf   s force replacement
  --enable-clockctl       s Use /dev/clockctl for non-root clock control
  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
  --with-arlib            - deprecated, arlib not distributed
  --with-net-snmp-config  + =net-snmp-config
  --with-stack-limit      ? =50 (200 for openbsd) 4k pages
  --with-memlock          ? =32 (megabytes)
d1525 1
a1525 1
  --enable-dst-minutes    =60 minutes per DST adjustment
d1528 2
a1566 1
  --enable-TSYNCPCI       s Spectracom TSYNC timing board
a1580 10
  --enable-SEL240X        s SEL240X clock
  --with-crypto           + =openssl,libcrypto

  --with-openssl-libdir   + =/something/reasonable

  --with-openssl-incdir   + =/something/reasonable

  --without-rpath         s Disable auto-added -R linker paths

  --enable-autokey        + support NTP Autokey protocol
a1586 2
  --without-sntp          - disable building sntp and sntp/tests
  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
d1598 2
d1602 21
a1623 3
  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
  --enable-saveconfig     + saveconfig mechanism
  --with-gtest            Use the gtest framework (Default: if it's available)
a1633 2
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
a1639 1
  CXXCPP      C++ preprocessor
d1644 1
a1644 2
Report bugs to <http://bugs.ntp.org./>.
ntp home page: <http://www.ntp.org./>.
d1707 1
a1707 1
ntp configure 4.2.7p404
a1865 4
( $as_echo "## ------------------------------------ ##
## Report this to http://bugs.ntp.org./ ##
## ------------------------------------ ##"
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d2002 5
a2006 42
# ac_fn_cxx_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_compile

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
d2014 14
d2030 1
a2030 31
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

d2034 2
a2035 1
return $2 ();
d2040 3
a2042 1
if ac_fn_c_try_link "$LINENO"; then :
a2043 2
else
  eval "$3=no"
d2045 3
a2047 2
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d2054 1
a2054 1
} # ac_fn_c_check_func
d2056 6
a2061 4
# ac_fn_cxx_try_cpp LINENO
# ------------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_cpp ()
d2064 10
a2073 23
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d2075 15
a2089 4
    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval
d2091 3
a2093 140
} # ac_fn_cxx_try_cpp

# ac_fn_cxx_try_link LINENO
# -------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_link

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_type

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
d2234 4
a2237 5
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
# ---------------------------------------------
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
# accordingly.
ac_fn_c_check_decl ()
d2240 2
a2241 4
  as_decl_name=`echo $2|sed 's/ *(.*//'`
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d2247 20
a2266 5
$4
int
main ()
{
#ifndef $as_decl_name
d2268 1
a2268 3
  (void) $as_decl_use;
#else
  (void) $as_decl_name;
d2270 6
d2278 4
d2286 1
a2286 1
if ac_fn_c_try_compile "$LINENO"; then :
d2291 2
a2292 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d2299 1
a2299 1
} # ac_fn_c_check_decl
d2361 1
a2361 1
It was created by ntp $as_me 4.2.7p404, which was
a2640 1
as_fn_append ac_header_list " stdarg.h"
d2711 1
a2711 1
for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
d2727 1
a2727 1
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
d2740 3
a2742 7




# Bump ntp_configure_cache_version for each change to configure.ac or
# .m4 files which invalidates cached values from previous configure
# runs.
d2752 2
a2753 2
# please bump the version numbers of each.  If you are not sure, the
# safe choice is to bump all on any cache-invalidating change.
d2760 1
a2760 1
ntp_configure_cache_version=20120806
a2797 1
		;;
a2802 1
	;;
d2839 1
a2839 1
	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
d3301 1
a3301 1
 VERSION='4.2.7p404'
a3340 14

# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in
yes) AM_DEFAULT_VERBOSITY=0;;
no)  AM_DEFAULT_VERBOSITY=1;;
*)   AM_DEFAULT_VERBOSITY=0;;
esac
AM_BACKSLASH='\'


a4803 2


a4823 8
        case "$host_os" in
    hpux*)

$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h

      ;;
  esac

d4833 2
a4834 2
#         define __EXTENSIONS__ 1
          $ac_includes_default
d4864 24
a4887 3
if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
d4889 1
a4889 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
a4890 7
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a4891 3
int
main ()
{
d4893 13
a4905 193
  ;
  return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
else
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi






ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d5570 6
a5575 12
# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
if test "$am_t" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
d5577 3
a5579 6


if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
a5581 1
    ac_pattern="Autoconf.*'x'"
a5583 10
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
else
  ac_cv_prog_gcc_traditional=no
fi
rm -f conftest*
d5585 3
d5589 3
a5591 5
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
d5593 73
a5665 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5667 1
a5667 1
rm -f conftest*
a5668 7
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d5670 6
d5677 1
d5679 1
d5681 13
a5694 4
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d5696 13
a5708 16




case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d5711 12
d5725 8
a5733 10
int
main ()
{
#warning foo
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cpp_warning=yes
d5735 2
a5736 2
  ntp_cv_cpp_warning=no

d5738 1
a5738 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5740 2
a5741 15
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
  $as_echo_n "(cached) " >&6
else
d5744 1
a5744 9

int
main ()
{
void foo(void) __attribute__((__noreturn__));

  ;
  return 0;
}
d5746 3
a5748 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cc_attribute=yes
d5750 3
a5752 2
  ntp_cv_cc_attribute=no

d5754 1
a5754 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5756 5
a5761 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)
d5763 2
a5764 1
$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
d5766 2
a5767 11
esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
d5769 13
d5784 8
d5793 5
a5797 3
int
main ()
{
d5799 5
a5803 3
  ;
  return 0;
}
d5805 3
a5807 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Wstrict_overflow=yes
d5809 3
a5811 2
  ntp_cv_gcc_Wstrict_overflow=no

d5813 1
a5813 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5815 10
d5826 14
a5839 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
d5842 34
d5877 18
a5894 1
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5896 93
d5994 35
d6033 5
a6037 5
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

d6039 5
a6043 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d6046 19
a6064 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
d6067 26
d6094 8
a6101 4
	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6103 4
a6106 2
			#include <stdlib.h>
			#include <stdio.h>
d6108 6
d6117 1
a6117 23

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


d6122 12
a6133 8
if ac_fn_c_try_link "$LINENO"; then :

		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d6135 16
d6152 2
a6153 1
  ntp_cv_gc_sections_runs=no
d6156 20
a6175 4
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    CFLAGS="$origCFLAGS"
	    { origCFLAGS=; unset origCFLAGS;}
d6177 7
d6185 9
a6193 10
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
$as_echo "$ntp_cv_gc_sections_runs" >&6; }
    case "$ntp_cv_gc_sections_runs" in
     yes)
	LDADD_LIBNTP="-Wl,--gc-sections"
	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
	;;
     no)
	LDADD_LIBNTP=
d6196 14
a6209 21
    CFLAGS_NTP="$CFLAGS_NTP -Wall"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
    case "$ntp_cv_gcc_Winit_self" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
    esac
    case "$ntp_cv_gcc_Wstrict_overflow" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
    esac
    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
d6220 1
a6220 1
	ntp_os_cflags=
a6233 2
	    # XXX Only verified thru AIX6.
	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
d6235 1
a6235 4
	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
d6304 1
a6305 1
    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
d6311 3
a6313 4

 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :
a6315 8
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;
d6317 19
a6336 1
if ac_fn_c_try_compile "$LINENO"; then :
d6338 25
a6362 21
	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
a6363 7
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>
a6364 8
int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif
d6366 21
a6386 3
  ;
  return 0;
}
d6388 14
a6401 3
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6404 1
a6404 1
		#include <sys/param.h>
d6409 2
a6410 4
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

d6416 1
a6416 1
  ac_cv_c_bigendian=yes
d6418 1
a6418 1
  ac_cv_c_bigendian=no
d6422 21
a6442 5
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6443 1
#include <limits.h>
d6445 7
d6455 1
a6455 4
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

d6460 40
a6499 3
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6500 1
#include <limits.h>
d6502 7
d6512 1
a6512 4
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

d6517 18
a6534 2
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
d6536 1
a6536 1
  ac_cv_c_bigendian=no
d6538 9
a6546 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6547 23
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;
a6548 20
int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
a6549 8
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
a6550 8
	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;
d6552 15
a6566 3
  ;
  return 0;
}
a6567 8
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a6568 1
    fi
a6569 9
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)
d6571 1
a6571 1
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
a6572 5
     ;; #(
   *)
     as_fn_error $? "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac
d6574 9
a6582 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
$as_echo_n "checking for working volatile... " >&6; }
if ${ac_cv_c_volatile+:} false; then :
  $as_echo_n "(cached) " >&6
d6584 4
a6587 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a6588 3
int
main ()
{
d6590 7
a6596 6
volatile int x;
int * volatile y = (int *) 0;
return !x && !y;
  ;
  return 0;
}
d6598 1
a6598 2
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_volatile=yes
d6600 1
a6600 3
  ac_cv_c_volatile=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6601 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
$as_echo "$ac_cv_c_volatile" >&6; }
if test $ac_cv_c_volatile = no; then
d6603 1
a6603 1
$as_echo "#define volatile /**/" >>confdefs.h
a6604 1
fi
d6606 7
a6612 35
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
d6614 1
a6614 2
if ac_fn_c_try_cpp "$LINENO"; then :

d6616 1
a6616 2
  # Broken: fails on valid input.
continue
a6617 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6619 10
a6628 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
d6630 1
a6630 3
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
d6632 1
a6632 3
  # Passes both tests.
ac_preproc_ok=:
break
a6633 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6636 21
a6656 4
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
d6659 1
a6659 2
    done
    ac_cv_prog_CPP=$CPP
d6661 32
a6692 24
fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6693 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6695 1
a6695 3
else
  # Broken: fails on valid input.
continue
a6696 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6698 14
a6711 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
a6712 9
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext
a6713 4
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
a6714 5
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
d6717 2
a6718 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6720 3
a6724 10
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
d6726 5
a6730 24
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6731 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6733 1
a6733 3
else
  # Broken: fails on valid input.
continue
d6735 2
a6736 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6738 2
a6739 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
d6741 2
a6742 7
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
d6744 7
a6750 1
rm -f conftest.err conftest.i conftest.$ac_ext
a6751 5
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
d6753 6
a6759 2
    done
    ac_cv_prog_CPP=$CPP
d6762 8
a6769 3
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
d6771 5
a6775 19
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6776 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6778 1
a6778 3
else
  # Broken: fails on valid input.
continue
d6780 2
a6781 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6783 29
a6811 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
a6812 9
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext
a6813 4
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
a6814 5
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
a6816 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6818 10
a6827 17
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CXX+:} false; then :
d6830 2
a6831 2
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
d6833 9
a6841 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d6844 30
d6875 1
a6875 7
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d6877 8
d6887 7
a6893 12
    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
d6896 2
a6897 2
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
d6899 9
a6907 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d6910 2
a6911 9
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a6913 2
  test -n "$ac_ct_CXX" && break
done
d6915 3
a6917 12
  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi
a6918 26
  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done
d6920 7
a6926 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if ${ac_cv_cxx_compiler_gnu+:} false; then :
d6929 1
a6929 9
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif
a6930 6
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
d6932 8
a6939 1
  ac_compiler_gnu=no
a6940 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d6943 17
a6959 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if ${ac_cv_prog_cxx_g+:} false; then :
d6962 3
a6964 5
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6967 7
d6977 1
a6977 1

d6982 2
a6983 2
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
d6985 11
a6995 11
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
a6996 1
if ac_fn_cxx_try_compile "$LINENO"; then :
d6998 1
a6998 5
else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d7000 1
a7000 3
int
main ()
{
d7002 6
a7007 3
  ;
  return 0;
}
a7008 32
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7010 2
a7011 1
depcc="$CXX"  am_compiler_list=
d7013 1
a7013 23
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub
d7015 1
a7015 8
  am_cv_CXX_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac
d7017 2
a7018 69
  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CXX_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done
a7019 5
  cd ..
  rm -rf conftest.dir
else
  am_cv_CXX_dependencies_compiler_type=none
fi
d7021 7
a7027 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a7028 8
 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  am__fastdepCXX_TRUE=
  am__fastdepCXX_FALSE='#'
else
  am__fastdepCXX_TRUE='#'
  am__fastdepCXX_FALSE=
d7031 1
d7033 8
a7040 26
for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_YACC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a7042 12
fi
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$YACC" && break
a7043 1
test -n "$YACC" || YACC="yacc"
d7045 5
a7049 3
if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
d7051 2
a7052 7
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
fi
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
d7056 1
a7056 1

d7061 3
d7068 13
a7080 71
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
d7082 1
a7082 1
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
d7084 12
a7095 2
rm -f core conftest*

d7097 6
a7102 3
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
d7104 2
a7105 29
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
ntp_vpath_hack="no"
case "$srcdir::${force_ntp_vpath_hack-no}" in
 .::*)
    ;; # VPATH_HACK path is for VPATH builds only.
 *::yes)
    ntp_vpath_hack="yes"
    ;;
 *::*)
    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	ntp_vpath_hack="yes"
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
$as_echo "$ntp_vpath_hack" >&6; }
 if test x$ntp_vpath_hack = xyes; then
  VPATH_HACK_TRUE=
  VPATH_HACK_FALSE='#'
d7107 35
a7141 3
  VPATH_HACK_TRUE='#'
  VPATH_HACK_FALSE=
fi
d7143 5
d7149 1
d7151 1
d7153 18
a7170 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
$as_echo_n "checking for install dir and man conventions... " >&6; }
d7172 8
d7181 5
a7185 5
# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
else
  with_locfile=no
d7187 2
a7188 1
fi
d7190 2
d7193 8
a7200 30
(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genLocInfo -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genLocInfo.i 2> genLocInfo.err
. ./genLocInfo.i

case "$GENLOCINFO" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
$as_echo "in file $GENLOCINFOFILE" >&6; }
    rm genLocInfo.err genLocInfo.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
    ;;
esac

 if test "$CALC_TICKADJ_MS" ; then
  WANT_CALC_TICKADJ_MS_TRUE=
  WANT_CALC_TICKADJ_MS_FALSE='#'
d7202 4
a7205 2
  WANT_CALC_TICKADJ_MS_TRUE='#'
  WANT_CALC_TICKADJ_MS_FALSE=
d7208 3
d7212 6
d7219 1
d7221 1
d7223 1
d7225 1
d7227 2
d7230 1
d7232 1
d7234 9
d7244 2
d7247 11
a7257 189



















































# So far, the only shared library we might use is libopts.
# It's a small library - we might as well use a static version of it.
# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then :
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_shared=no
fi









case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac



macro_version='2.4'
macro_revision='1.3293'













ltmain="$ac_aux_dir/ltmain.sh"

# Backslashify metacharacters that are still active within
# double-quoted strings.
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\(["`\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
$as_echo_n "checking how to print strings... " >&6; }
# Test print first, because it will be a builtin if present.
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='print -r --'
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='printf %s\n'
else
  # Use this function as a fallback that always works.
  func_fallback_echo ()
  {
    eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
  }
  ECHO='func_fallback_echo'
fi

# func_echo_all arg...
# Invoke $ECHO with all args, space-separated.
func_echo_all ()
{
    $ECHO ""
}

case "$ECHO" in
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
$as_echo "printf" >&6; } ;;
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
$as_echo "print -r" >&6; } ;;
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
$as_echo "cat" >&6; } ;;
esac














{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
d7316 22
a7337 2
test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"
d7340 1
d7343 1
d7345 11
d7358 4
d7363 7
d7372 3
d7376 7
a7382 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if ${ac_cv_path_FGREP+:} false; then :
d7385 8
a7392 42
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  ac_path_FGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in fgrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
# Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
a7393 10
      $ac_path_FGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_FGREP"; then
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_FGREP=$FGREP
d7395 1
d7397 3
a7399 5
   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"
d7401 13
d7415 4
a7418 2
test -z "$GREP" && GREP=grep

d7420 20
d7443 1
d7446 1
d7448 1
d7451 7
d7459 1
d7461 1
d7463 8
d7472 2
d7475 15
d7491 2
d7494 12
d7507 3
a7510 3
# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d7512 1
a7512 1
  with_gnu_ld=no
d7514 1
a7514 6

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
d7516 6
a7521 16
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
a7522 8
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
d7524 2
a7525 6
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
d7527 5
a7531 1
if ${lt_cv_path_LD+:} false; then :
d7534 2
a7535 21
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
d7537 96
a7632 1
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
d7634 2
a7637 7
LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d7639 8
a7646 15
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
a7647 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld
d7649 1
d7651 1
d7653 1
d7655 1
d7657 2
d7660 1
d7662 1
d7665 3
a7667 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if ${lt_cv_path_NM+:} false; then :
d7670 13
a7682 3
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
d7684 2
a7685 38
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
d7687 2
d7690 16
a7705 17
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$DUMPBIN"; then :
    # Let the user override the test.
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in dumpbin "link -dump"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DUMPBIN+:} false; then :
d7708 13
a7720 2
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7722 1
a7722 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d7725 1
a7725 10
fi
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

a7726 2
    test -n "$DUMPBIN" && break
  done
d7728 145
a7872 3
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in dumpbin "link -dump"
d7878 1
a7878 1
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
d7881 2
a7882 2
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d7891 1
a7891 1
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
d7901 4
a7904 4
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
d7911 1
a7911 1
  test -n "$ac_ct_DUMPBIN" && break
d7914 18
a7931 8
  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
d7933 10
a7942 2
    DUMPBIN=$ac_ct_DUMPBIN
  fi
d7945 53
a7997 7
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
    *COFF*)
      DUMPBIN="$DUMPBIN -symbols"
      ;;
    *)
      DUMPBIN=:
      ;;
d7999 3
a8001 1
  fi
a8002 5
  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
fi
test -z "$NM" && NM=nm
d8005 5
d8013 2
a8015 22
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if ${lt_cv_nm_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }
a8016 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi
a8017 8
# find the maximum length of command line arguments
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if ${lt_cv_sys_max_cmd_len+:} false; then :
  $as_echo_n "(cached) " >&6
else
    i=0
  teststring="ABCD"
a8018 8
  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;
a8019 6
  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;
a8020 10
  cygwin* | mingw* | cegcc*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8021 4
  mint*)
    # On MiNT this can take a long time and run out of memory.
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8022 5
  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8023 13
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;
a8024 4
  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;
a8025 56
  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n "$lt_cv_sys_max_cmd_len"; then
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    else
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      for i in 1 2 3 4 5 6 7 8 ; do
        teststring=$teststring$teststring
      done
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
      # If test is not a shell built-in, we'll probably end up computing a
      # maximum length that is only half of the actual maximum length, but
      # we can't tell.
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
	      test $i != 17 # 1/2 MB should be enough
      do
        i=`expr $i + 1`
        teststring=$teststring$teststring
      done
      # Only check the string length outside the loop.
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
      teststring=
      # Add a significant safety factor because C++ compilers can tack on
      # massive amounts of additional arguments before passing them to the
      # linker.  It appears as though 1/2 is a usable value.
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    fi
    ;;
  esac
a8026 1
fi
d8028 1
a8028 8
if test -n $lt_cv_sys_max_cmd_len ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi
max_cmd_len=$lt_cv_sys_max_cmd_len
d8030 3
d8034 2
d8037 3
d8041 2
d8044 2
d8047 3
a8049 3
: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}
d8051 8
a8058 26
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,b/c, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }


if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
d8060 8
a8067 1
  lt_unset=false
d8070 6
d8077 7
a8083 14



# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
a8093 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
if ${lt_cv_to_host_file_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
        ;;
    esac
    ;;
  *-*-cygwin* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_noop
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
        ;;
    esac
    ;;
  * ) # unhandled hosts (and "normal" native builds)
    lt_cv_to_host_file_cmd=func_convert_file_noop
    ;;
esac
a8094 1
fi
a8095 3
to_host_file_cmd=$lt_cv_to_host_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
d8099 4
a8102 6


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
if ${lt_cv_to_tool_file_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
d8104 44
a8147 10
  #assume ordinary cross tools, or native build.
lt_cv_to_tool_file_cmd=func_convert_file_noop
case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
        ;;
    esac
    ;;
d8150 10
d8162 5
a8166 3
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
d8168 2
a8173 31
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
$as_echo_n "checking for $LD option to reload object files... " >&6; }
if ${lt_cv_ld_reload_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_reload_flag='-r'
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
$as_echo "$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    if test "$GCC" != yes; then
      reload_cmds=false
    fi
    ;;
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac


d8181 3
a8183 6
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OBJDUMP+:} false; then :
d8186 8
a8193 5
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
d8197 1
d8199 33
a8231 6
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d8234 6
d8241 1
d8243 11
a8253 9
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a8255 27
fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a8256 10
fi
fi
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a8257 14
  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi
a8258 1
test -z "$OBJDUMP" && OBJDUMP=objdump
d8268 6
a8273 18
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
if ${lt_cv_deplibs_check_method+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
d8275 22
a8296 55
case $host_os in
aix[4-9]*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    # Keep this pattern in sync with the one in func_win32_libid.
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;

cegcc*)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

freebsd* | dragonfly*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
d8298 3
a8300 24
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

haiku*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
d8303 2
a8304 2
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
d8307 35
a8341 1
  ;;
d8343 18
a8360 3
interix[3-9]*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d8362 2
a8363 9

irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
d8365 5
a8370 4
# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8371 7
netbsd*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;
a8372 5
newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;
a8373 3
*nto* | *qnx*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8374 7
openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;
a8375 3
osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8376 3
rdos*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8377 39
solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
  esac
  ;;

tpf*)
  lt_cv_deplibs_check_method=pass_all
  ;;
esac
d8379 47
a8426 15
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
$as_echo "$lt_cv_deplibs_check_method" >&6; }

file_magic_glob=
want_nocaseglob=no
if test "$build" = "$host"; then
  case $host_os in
  mingw* | pw32*)
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
      want_nocaseglob=yes
    else
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
    fi
    ;;
  esac
d8428 14
a8441 29

file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown






















if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
d8444 1
a8444 1
if ${ac_cv_prog_DLLTOOL+:} false; then :
d8447 2
a8448 2
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
d8457 1
a8457 1
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
d8467 4
a8470 4
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
d8477 2
d8480 6
a8485 4
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
d8488 1
a8488 1
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
d8491 2
a8492 2
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
d8501 1
a8501 1
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
d8511 4
a8514 4
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
d8520 6
a8525 2
  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
d8533 1
a8533 1
    DLLTOOL=$ac_ct_DLLTOOL
a8534 2
else
  DLLTOOL="$ac_cv_prog_DLLTOOL"
d8537 9
a8545 1
test -z "$DLLTOOL" && DLLTOOL=dlltool
d8547 5
d8558 22
d8581 10
d8592 4
a8595 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
d8598 11
a8608 1
  lt_cv_sharedlib_from_linklib_cmd='unknown'
d8610 71
a8680 7
case $host_os in
cygwin* | mingw* | pw32* | cegcc*)
  # two different shell functions defined in ltmain.sh
  # decide which to use based on capabilities of $DLLTOOL
  case `$DLLTOOL --help 2>&1` in
  *--identify-strict*)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
d8683 29
a8711 1
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
a8713 6
  ;;
*)
  # fallback: assume linklib IS sharedlib
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  ;;
esac
d8716 9
a8724 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
d8731 3
d8735 12
a8746 27
if test -n "$ac_tool_prefix"; then
  for ac_prog in ar
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a8747 10
fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d8749 8
a8757 31
    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d8759 2
a8760 6
fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
d8762 1
a8762 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
a8765 15
  test -n "$ac_ct_AR" && break
done

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
fi
a8766 2
: ${AR=ar}
: ${AR_FLAGS=cru}
d8769 12
d8790 3
a8792 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @@FILE support" >&5
$as_echo_n "checking for archiver @@FILE support... " >&6; }
if ${lt_cv_ar_at_file+:} false; then :
d8795 40
a8834 3
  lt_cv_ar_at_file=no
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a8835 3
int
main ()
{
d8837 16
a8852 25
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  echo conftest.$ac_objext > conftest.lst
      lt_ar_try='$AR $AR_FLAGS libconftest.a @@conftest.lst >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
	# Ensure the archiver fails upon bogus file names.
	rm -f conftest.$ac_objext libconftest.a
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	if test "$ac_status" -ne 0; then
          lt_cv_ar_at_file=@@
        fi
      fi
      rm -f conftest.* libconftest.a
a8854 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d8856 7
a8862 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
$as_echo "$lt_cv_ar_at_file" >&6; }
d8864 4
a8867 2
if test "x$lt_cv_ar_at_file" = xno; then
  archiver_list_spec=
d8869 1
a8869 1
  archiver_list_spec=$lt_cv_ar_at_file
d8871 24
d8903 2
a8904 2
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
d8907 1
a8907 1
if ${ac_cv_prog_STRIP+:} false; then :
d8910 2
a8911 2
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d8920 1
a8920 1
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
d8930 4
a8933 4
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
d8941 4
a8944 4
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
d8947 1
a8947 1
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d8950 2
a8951 2
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d8960 1
a8960 1
    ac_cv_prog_ac_ct_STRIP="strip"
d8970 4
a8973 4
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
d8979 2
a8980 2
  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
d8988 1
a8988 1
    STRIP=$ac_ct_STRIP
d8991 1
a8991 1
  STRIP="$ac_cv_prog_STRIP"
d8994 1
a8994 1
test -z "$STRIP" && STRIP=:
a9000 25
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9001 10
fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9004 3
a9006 8
fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
d9009 13
a9021 17
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d9023 20
a9042 10
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9044 8
a9051 2
  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
d9053 3
a9055 7
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
d9057 1
a9057 3
else
  RANLIB="$ac_cv_prog_RANLIB"
fi
d9059 5
a9063 1
test -z "$RANLIB" && RANLIB=:
d9065 3
d9069 15
d9085 3
d9089 3
d9093 10
a9102 10

# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=

if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
d9105 2
a9106 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
d9109 1
a9109 2
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi
d9111 4
a9114 6
case $host_os in
  darwin*)
    lock_old_archive_extraction=yes ;;
  *)
    lock_old_archive_extraction=no ;;
esac
d9116 9
d9126 4
d9131 7
d9139 5
d9145 3
d9149 7
d9157 3
d9161 3
d9165 3
d9169 3
d9173 26
d9200 4
d9205 3
d9209 13
d9223 3
d9248 94
a9343 2
# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}
a9344 2
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
a9345 2
# Allow CC to be a program name with arguments.
compiler=$CC
a9347 6
# Check for command to grab the raw symbol name followed by C symbol from nm.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  $as_echo_n "(cached) " >&6
else
a9348 2
# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
a9349 2
# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'
d9351 6
a9356 2
# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
a9357 1
# Define system-specific variables.
a9358 3
aix*)
  symcode='[BCDT]'
  ;;
d9360 10
a9369 1
  symcode='[ABCDGISTW]'
d9371 3
a9373 25
hpux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris*)
  symcode='[BDRT]'
  ;;
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
d9377 6
a9382 5
# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac
a9383 4
# Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently,
# so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
a9384 3
# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
a9385 7
# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac
a9386 2
# Try without a prefix underscore, then with it.
for ac_symprfx in "" "_"; do
a9387 2
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"
d9389 23
a9411 19
  # Write the raw and C identifiers.
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
    # Fake it for dumpbin and say T for any non-static function
    # and D for any global variable.
    # Also find C++ and __fastcall symbols from MSVC++,
    # which start with @@ or ?.
    lt_cv_sys_global_symbol_pipe="$AWK '"\
"     {last_section=section; section=\$ 3};"\
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
"     \$ 0!~/External *\|/{next};"\
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
"     {if(hide[section]) next};"\
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
"     s[1]~/^[@@?]/{print s[1], s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print t[1], substr(t[1],length(prfx))}"\
"     ' prfx=^$ac_symprfx"
  else
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
d9413 14
a9426 1
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
a9427 2
  # Check to see that the pipe works correctly.
  pipe_works=no
d9429 31
a9459 13
  rm -f conftest*
  cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(void);
void nm_test_func(void){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
_LT_EOF
d9461 10
a9470 34
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<_LT_EOF > conftest.$ac_ext
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
/* DATA imports from DLLs on WIN32 con't be const, because runtime
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
# define LT_DLSYM_CONST
#elif defined(__osf__)
/* This system does not cope well with relocations in const data.  */
# define LT_DLSYM_CONST
#else
# define LT_DLSYM_CONST const
#endif
a9471 3
#ifdef __cplusplus
extern "C" {
#endif
d9473 2
a9474 3
_LT_EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9476 2
a9477 51
	  cat <<_LT_EOF >> conftest.$ac_ext

/* The mapping between symbol names and symbols.  */
LT_DLSYM_CONST struct {
  const char *name;
  void       *address;
}
lt__PROGRAM__LTX_preloaded_symbols[] =
{
  { "@@PROGRAM@@", (void *) 0 },
_LT_EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
	  cat <<\_LT_EOF >> conftest.$ac_ext
  {0, (void *) 0}
};

/* This works around a problem in FreeBSD linker */
#ifdef FREEBSD_WORKAROUND
static const void *lt_preloaded_setup() {
  return lt__PROGRAM__LTX_preloaded_symbols;
}
#endif

#ifdef __cplusplus
}
#endif
_LT_EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_globsym_save_LIBS=$LIBS
	  lt_globsym_save_CFLAGS=$CFLAGS
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
	    pipe_works=yes
	  fi
	  LIBS=$lt_globsym_save_LIBS
	  CFLAGS=$lt_globsym_save_CFLAGS
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
d9479 7
a9485 10
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -rf conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
a9486 2
done

d9489 2
a9490 17
if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
fi

# Response file support.
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  nm_file_list_spec='@@'
elif $NM --help 2>/dev/null | grep '[@@]FILE' >/dev/null; then
  nm_file_list_spec='@@'
fi
d9502 8
d9511 3
d9515 25
d9541 2
d9544 3
d9548 5
d9560 25
d9586 10
d9598 27
d9626 9
a9634 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
$as_echo_n "checking for sysroot... " >&6; }

# Check whether --with-sysroot was given.
if test "${with_sysroot+set}" = set; then :
  withval=$with_sysroot;
else
  with_sysroot=no
d9637 8
a9644 18

lt_sysroot=
case ${with_sysroot} in #(
 yes)
   if test "$GCC" = yes; then
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   fi
   ;; #(
 /*)
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   ;; #(
 no|'')
   ;; #(
 *)
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
$as_echo "${with_sysroot}" >&6; }
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   ;;
d9646 4
a9649 11

 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
$as_echo "${lt_sysroot:-no}" >&6; }





# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then :
  enableval=$enable_libtool_lock;
d9652 1
a9652 128
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.$ac_objext` in
      *ELF-32*)
	HPUX_IA64_MODE="32"
	;;
      *ELF-64*)
	HPUX_IA64_MODE="64"
	;;
    esac
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    if test "$lt_cv_prog_gnu_ld" = yes; then
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -melf32bsmip"
	  ;;
	*N32*)
	  LD="${LD-ld} -melf32bmipn32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -melf64bmip"
	;;
      esac
    else
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -32"
	  ;;
	*N32*)
	  LD="${LD-ld} -n32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -64"
	  ;;
      esac
    fi
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
      *32-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_i386_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_i386"
	    ;;
	  ppc64-*linux*|powerpc64-*linux*)
	    LD="${LD-ld} -m elf32ppclinux"
	    ;;
	  s390x-*linux*)
	    LD="${LD-ld} -m elf_s390"
	    ;;
	  sparc64-*linux*)
	    LD="${LD-ld} -m elf32_sparc"
	    ;;
	esac
	;;
      *64-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_x86_64_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_x86_64"
	    ;;
	  ppc*-*linux*|powerpc*-*linux*)
	    LD="${LD-ld} -m elf64ppc"
	    ;;
	  s390*-*linux*|s390*-*tpf*)
	    LD="${LD-ld} -m elf64_s390"
	    ;;
	  sparc*-*linux*)
	    LD="${LD-ld} -m elf64_sparc"
	    ;;
	esac
	;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
if ${lt_cv_cc_needs_belf+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
a9653 2
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a9654 3
int
main ()
{
a9655 16
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_cc_needs_belf=yes
else
  lt_cv_cc_needs_belf=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
a9656 32
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
$as_echo "$lt_cv_cc_needs_belf" >&6; }
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
	  LD="${LD-ld} -64"
	fi
	;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;
esac
a9657 1
need_locks="$enable_libtool_lock"
d9660 2
a9661 2
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
set dummy ${ac_tool_prefix}mt; ac_word=$2
d9664 1
a9664 1
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
d9667 2
a9668 2
  if test -n "$MANIFEST_TOOL"; then
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
d9677 1
a9677 1
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
d9687 4
a9690 4
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
if test -n "$MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
$as_echo "$MANIFEST_TOOL" >&6; }
d9698 4
a9701 4
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  # Extract the first word of "mt", so it can be a program name with args.
set dummy mt; ac_word=$2
d9704 1
a9704 1
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
d9707 2
a9708 2
  if test -n "$ac_ct_MANIFEST_TOOL"; then
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
d9717 1
a9717 1
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
d9727 4
a9730 4
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
if test -n "$ac_ct_MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
d9736 2
a9737 2
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
    MANIFEST_TOOL=":"
d9745 1
a9745 1
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
d9748 1
a9748 1
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
d9751 22
a9772 19
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
if ${lt_cv_path_mainfest_tool+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_path_mainfest_tool=no
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  cat conftest.err >&5
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
    lt_cv_path_mainfest_tool=yes
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
if test "x$lt_cv_path_mainfest_tool" != xyes; then
  MANIFEST_TOOL=:
d9774 20
a9799 27
  case $host_os in
    rhapsody* | darwin*)
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DSYMUTIL"; then
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9800 10
fi
fi
DSYMUTIL=$ac_cv_prog_DSYMUTIL
if test -n "$DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
$as_echo "$DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9802 27
fi
if test -z "$ac_cv_prog_DSYMUTIL"; then
  ac_ct_DSYMUTIL=$DSYMUTIL
  # Extract the first word of "dsymutil", so it can be a program name with args.
set dummy dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DSYMUTIL"; then
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9803 10
fi
fi
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
if test -n "$ac_ct_DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
$as_echo "$ac_ct_DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9804 14
  if test "x$ac_ct_DSYMUTIL" = x; then
    DSYMUTIL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DSYMUTIL=$ac_ct_DSYMUTIL
  fi
else
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
fi
a9805 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NMEDIT"; then
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9806 10
fi
fi
NMEDIT=$ac_cv_prog_NMEDIT
if test -n "$NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
$as_echo "$NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9808 27
fi
if test -z "$ac_cv_prog_NMEDIT"; then
  ac_ct_NMEDIT=$NMEDIT
  # Extract the first word of "nmedit", so it can be a program name with args.
set dummy nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_NMEDIT"; then
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9809 10
fi
fi
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
if test -n "$ac_ct_NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
$as_echo "$ac_ct_NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9810 14
  if test "x$ac_ct_NMEDIT" = x; then
    NMEDIT=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    NMEDIT=$ac_ct_NMEDIT
  fi
else
  NMEDIT="$ac_cv_prog_NMEDIT"
fi
a9811 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
set dummy ${ac_tool_prefix}lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$LIPO"; then
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9812 10
fi
fi
LIPO=$ac_cv_prog_LIPO
if test -n "$LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
$as_echo "$LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9814 27
fi
if test -z "$ac_cv_prog_LIPO"; then
  ac_ct_LIPO=$LIPO
  # Extract the first word of "lipo", so it can be a program name with args.
set dummy lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_LIPO"; then
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_LIPO="lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9815 10
fi
fi
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
if test -n "$ac_ct_LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
$as_echo "$ac_ct_LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9816 14
  if test "x$ac_ct_LIPO" = x; then
    LIPO=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    LIPO=$ac_ct_LIPO
  fi
else
  LIPO="$ac_cv_prog_LIPO"
fi
a9817 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL"; then
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9818 10
fi
fi
OTOOL=$ac_cv_prog_OTOOL
if test -n "$OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
$as_echo "$OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9820 2
d9823 2
a9824 27
fi
if test -z "$ac_cv_prog_OTOOL"; then
  ac_ct_OTOOL=$OTOOL
  # Extract the first word of "otool", so it can be a program name with args.
set dummy otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL"; then
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL="otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d9826 2
a9827 10
fi
fi
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
if test -n "$ac_ct_OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
$as_echo "$ac_ct_OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9828 14
  if test "x$ac_ct_OTOOL" = x; then
    OTOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL=$ac_ct_OTOOL
  fi
else
  OTOOL="$ac_cv_prog_OTOOL"
fi
d9830 4
a9833 6
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OTOOL64+:} false; then :
a9835 17
  if test -n "$OTOOL64"; then
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d9837 2
a9838 10
fi
fi
OTOOL64=$ac_cv_prog_OTOOL64
if test -n "$OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
$as_echo "$OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9840 2
d9843 214
a10056 27
fi
if test -z "$ac_cv_prog_OTOOL64"; then
  ac_ct_OTOOL64=$OTOOL64
  # Extract the first word of "otool64", so it can be a program name with args.
set dummy otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL64"; then
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL64="otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d10059 3
d10063 3
a10065 4
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
if test -n "$ac_ct_OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
$as_echo "$ac_ct_OTOOL64" >&6; }
d10067 2
a10068 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d10071 5
a10075 13
  if test "x$ac_ct_OTOOL64" = x; then
    OTOOL64=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL64=$ac_ct_OTOOL64
  fi
else
  OTOOL64="$ac_cv_prog_OTOOL64"
d10104 6
a10109 4
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
$as_echo_n "checking for -single_module linker flag... " >&6; }
if ${lt_cv_apple_cc_single_mod+:} false; then :
  $as_echo_n "(cached) " >&6
d10111 33
a10143 21
  lt_cv_apple_cc_single_mod=no
      if test -z "${LT_MULTI_MODULE}"; then
	# By default we will add the -single_module flag. You can override
	# by either setting the environment variable LT_MULTI_MODULE
	# non-empty at configure time, or by adding -multi_module to the
	# link flags.
	rm -rf libconftest.dylib*
	echo "int foo(void){return 1;}" > conftest.c
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-dynamiclib -Wl,-single_module conftest.c" >&5
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
        _lt_result=$?
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
	  lt_cv_apple_cc_single_mod=yes
	else
	  cat conftest.err >&5
	fi
	rm -rf libconftest.dylib*
	rm -f conftest.*
      fi
d10145 122
a10266 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
if ${lt_cv_ld_exported_symbols_list+:} false; then :
d10269 7
a10275 5
  lt_cv_ld_exported_symbols_list=no
      save_LDFLAGS=$LDFLAGS
      echo "_main" > conftest.sym
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d10287 1
a10287 1
  lt_cv_ld_exported_symbols_list=yes
d10289 1
a10289 1
  lt_cv_ld_exported_symbols_list=no
d10293 5
a10297 1
	LDFLAGS="$save_LDFLAGS"
d10300 40
a10339 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
$as_echo_n "checking for -force_load linker flag... " >&6; }
if ${lt_cv_ld_force_load+:} false; then :
d10342 17
a10358 23
  lt_cv_ld_force_load=no
      cat > conftest.c << _LT_EOF
int forced_loaded() { return 2;}
_LT_EOF
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
      echo "$AR cru libconftest.a conftest.o" >&5
      $AR cru libconftest.a conftest.o 2>&5
      echo "$RANLIB libconftest.a" >&5
      $RANLIB libconftest.a 2>&5
      cat > conftest.c << _LT_EOF
int main() { return 0;}
_LT_EOF
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
      _lt_result=$?
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
	lt_cv_ld_force_load=yes
      else
	cat conftest.err >&5
      fi
        rm -f conftest.err libconftest.a conftest conftest.c
        rm -rf conftest.dSYM
d10361 9
a10369 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
$as_echo "$lt_cv_ld_force_load" >&6; }
    case $host_os in
    rhapsody* | darwin1.[012])
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
    darwin1.*)
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    darwin*) # darwin 5.x on
      # if running on 10.5 or later, the deployment target defaults
      # to the OS version, if on x86, and 10.4, the deployment
      # target defaults to 10.4. Don't you love it?
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
	10.[012]*)
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
	10.*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
      esac
    ;;
  esac
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
      _lt_dar_single_mod='$single_module'
    fi
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
    else
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    fi
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
      _lt_dsymutil='~$DSYMUTIL $lib || :'
    else
      _lt_dsymutil=
    fi
    ;;
  esac
a10370 8
for ac_header in dlfcn.h
do :
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
"
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLFCN_H 1
_ACEOF
d10373 23
a10395 1

d10397 2
d10400 10
d10411 14
d10426 20
a10446 7
func_stripname_cnf ()
{
  case ${2} in
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  esac
} # func_stripname_cnf
d10452 27
a10478 1
# Set options
d10480 10
d10492 27
a10518 1
        enable_dlopen=no
d10520 6
a10525 24

  enable_win32_dll=no



  # Check whether --enable-static was given.
if test "${enable_static+set}" = set; then :
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
d10527 2
a10528 1
  enable_static=yes
d10531 14
d10546 25
d10572 10
d10584 27
d10612 10
d10623 14
d10638 25
d10664 6
a10669 4

# Check whether --with-pic was given.
if test "${with_pic+set}" = set; then :
  withval=$with_pic; pic_mode="$withval"
d10671 2
a10672 1
  pic_mode=default
d10676 27
a10702 1
test -z "$pic_mode" && pic_mode=default
d10704 10
d10715 14
d10730 25
d10756 6
a10761 22



  # Check whether --enable-fast-install was given.
if test "${enable_fast_install+set}" = set; then :
  enableval=$enable_fast_install; p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
    *)
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
d10763 2
a10764 1
  enable_fast_install=yes
d10768 27
d10796 10
d10807 14
d10822 25
d10848 10
d10860 27
d10888 10
d10899 14
a10913 5
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ltmain"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d10940 26
a10965 17
test -z "$LN_S" && LN_S="ln -s"














if test -n "${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
d10967 5
a10971 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
$as_echo_n "checking for objdir... " >&6; }
if ${lt_cv_objdir+:} false; then :
d10974 6
a10979 13
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
fi
rmdir .libs 2>/dev/null
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
$as_echo "$lt_cv_objdir" >&6; }
objdir=$lt_cv_objdir
d10981 3
d10985 267
a11251 5



cat >>confdefs.h <<_ACEOF
#define LT_OBJDIR "$lt_cv_objdir/"
d14012 2
a14013 8249
  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




























































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" ||
   test -n "$runpath_var" ||
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi






  if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

    ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if ${ac_cv_lib_dld_shl_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if ${ac_cv_lib_svld_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if ${ac_cv_lib_dld_dld_link+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi

















striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP" ; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi












  # Report which library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test "$can_build_shared" = "no" && enable_shared=no

  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test "$enable_shared" = yes && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;

  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }




fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if ${ac_cv_prog_CXXCPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
$as_echo "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
  _lt_caught_CXX_error=yes
fi

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

archive_cmds_need_lc_CXX=no
allow_undefined_flag_CXX=
always_export_symbols_CXX=no
archive_expsym_cmds_CXX=
compiler_needs_object_CXX=no
export_dynamic_flag_spec_CXX=
hardcode_direct_CXX=no
hardcode_direct_absolute_CXX=no
hardcode_libdir_flag_spec_CXX=
hardcode_libdir_flag_spec_ld_CXX=
hardcode_libdir_separator_CXX=
hardcode_minus_L_CXX=no
hardcode_shlibpath_var_CXX=unsupported
hardcode_automatic_CXX=no
inherit_rpath_CXX=no
module_cmds_CXX=
module_expsym_cmds_CXX=
link_all_deplibs_CXX=unknown
old_archive_cmds_CXX=$old_archive_cmds
reload_flag_CXX=$reload_flag
reload_cmds_CXX=$reload_cmds
no_undefined_flag_CXX=
whole_archive_flag_spec_CXX=
enable_shared_with_static_runtimes_CXX=no

# Source file extension for C++ test sources.
ac_ext=cpp

# Object file extension for compiled C++ test sources.
objext=o
objext_CXX=$objext

# No sense in running all these tests if we already determined that
# the CXX compiler isn't working.  Some variables (like enable_shared)
# are currently assumed to apply to all compilers on this platform,
# and will be corrupted by setting them based on a non-working compiler.
if test "$_lt_caught_CXX_error" != yes; then
  # Code to be used in simple compile tests
  lt_simple_compile_test_code="int some_variable = 0;"

  # Code to be used in simple link tests
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'

  # ltmain only uses $CC for tagged configurations so make sure $CC is set.






# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


  # save warnings/boilerplate of simple test code
  ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

  ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


  # Allow CC to be a program name with arguments.
  lt_save_CC=$CC
  lt_save_CFLAGS=$CFLAGS
  lt_save_LD=$LD
  lt_save_GCC=$GCC
  GCC=$GXX
  lt_save_with_gnu_ld=$with_gnu_ld
  lt_save_path_LD=$lt_cv_path_LD
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  else
    $as_unset lt_cv_prog_gnu_ld
  fi
  if test -n "${lt_cv_path_LDCXX+set}"; then
    lt_cv_path_LD=$lt_cv_path_LDCXX
  else
    $as_unset lt_cv_path_LD
  fi
  test -z "${LDCXX+set}" || LD=$LDCXX
  CC=${CXX-"c++"}
  CFLAGS=$CXXFLAGS
  compiler=$CC
  compiler_CXX=$CC
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`


  if test -n "$compiler"; then
    # We don't want -fno-exception when compiling C++ code, so set the
    # no_builtin_flag separately
    if test "$GXX" = yes; then
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
    else
      lt_prog_compiler_no_builtin_flag_CXX=
    fi

    if test "$GXX" = yes; then
      # Set up default GNU C++ configuration



# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld







      # Check if GNU C++ uses GNU ld as the underlying linker, since the
      # archiving commands below assume that GNU ld is being used.
      if test "$with_gnu_ld" = yes; then
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'

        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

        # If archive_cmds runs LD, not CC, wlarc should be empty
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
        #     investigate it a little bit more. (MM)
        wlarc='${wl}'

        # ancient GNU ld didn't support --whole-archive et. al.
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
	  $GREP 'no-whole-archive' > /dev/null; then
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
        else
          whole_archive_flag_spec_CXX=
        fi
      else
        with_gnu_ld=no
        wlarc=

        # A generic and very simple default shared library creation
        # command for GNU C++ for the case where it uses the native
        # linker, instead of GNU ld.  If possible, this setting should
        # overridden to take advantage of the native linker features on
        # the platform it is being used on.
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
      fi

      # Commands to make compiler produce verbose output that lists
      # what "hidden" libraries, object files and flags are used when
      # linking a shared library.
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

    else
      GXX=no
      with_gnu_ld=no
      wlarc=
    fi

    # PORTME: fill in a description of your system's C++ link characteristics
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
    ld_shlibs_CXX=yes
    case $host_os in
      aix3*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
      aix[4-9]*)
        if test "$host_cpu" = ia64; then
          # On IA64, the linker does run time linking by default, so we don't
          # have to do anything special.
          aix_use_runtimelinking=no
          exp_sym_flag='-Bexport'
          no_entry_flag=""
        else
          aix_use_runtimelinking=no

          # Test if we are trying to use run time linking or normal
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
          # need to do runtime linking.
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	    for ld_flag in $LDFLAGS; do
	      case $ld_flag in
	      *-brtl*)
	        aix_use_runtimelinking=yes
	        break
	        ;;
	      esac
	    done
	    ;;
          esac

          exp_sym_flag='-bexport'
          no_entry_flag='-bnoentry'
        fi

        # When large executables or shared objects are built, AIX ld can
        # have problems creating the table of contents.  If linking a library
        # or program results in "error TOC overflow" add -mminimal-toc to
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

        archive_cmds_CXX=''
        hardcode_direct_CXX=yes
        hardcode_direct_absolute_CXX=yes
        hardcode_libdir_separator_CXX=':'
        link_all_deplibs_CXX=yes
        file_list_spec_CXX='${wl}-f,'

        if test "$GXX" = yes; then
          case $host_os in aix4.[012]|aix4.[012].*)
          # We only want to do this on AIX 4.2 and lower, the check
          # below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	    # We have reworked collect2
	    :
	  else
	    # We have old collect2
	    hardcode_direct_CXX=unsupported
	    # It fails to find uninstalled libraries when the uninstalled
	    # path is not listed in the libpath.  Setting hardcode_minus_L
	    # to unsupported forces relinking
	    hardcode_minus_L_CXX=yes
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
	    hardcode_libdir_separator_CXX=
	  fi
          esac
          shared_flag='-shared'
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag="$shared_flag "'${wl}-G'
	  fi
        else
          # not using gcc
          if test "$host_cpu" = ia64; then
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	  # chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
          else
	    if test "$aix_use_runtimelinking" = yes; then
	      shared_flag='${wl}-G'
	    else
	      shared_flag='${wl}-bM:SRE'
	    fi
          fi
        fi

        export_dynamic_flag_spec_CXX='${wl}-bexpall'
        # It seems that -bexpall does not export symbols beginning with
        # underscore (_), so it is better to generate a list of symbols to
	# export.
        always_export_symbols_CXX=yes
        if test "$aix_use_runtimelinking" = yes; then
          # Warning - without using the other runtime loading flags (-brtl),
          # -berok will link without error, but may produce a broken library.
          allow_undefined_flag_CXX='-berok'
          # Determine the default libpath from the value encoded in an empty
          # executable.
          if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"

          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
        else
          if test "$host_cpu" = ia64; then
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
	    allow_undefined_flag_CXX="-z nodefs"
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
          else
	    # Determine the default libpath from the value encoded in an
	    # empty executable.
	    if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
	    # Warning - without using the other run time loading flags,
	    # -berok will link without error, but may produce a broken library.
	    no_undefined_flag_CXX=' ${wl}-bernotok'
	    allow_undefined_flag_CXX=' ${wl}-berok'
	    if test "$with_gnu_ld" = yes; then
	      # We only use this code for GNU lds that support --whole-archive.
	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    else
	      # Exported symbols can be pulled into shared objects from archives
	      whole_archive_flag_spec_CXX='$convenience'
	    fi
	    archive_cmds_need_lc_CXX=yes
	    # This is similar to how AIX traditionally builds its shared
	    # libraries.
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
          fi
        fi
        ;;

      beos*)
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	  allow_undefined_flag_CXX=unsupported
	  # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	  # support --undefined.  This deserves some investigation.  FIXME
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	else
	  ld_shlibs_CXX=no
	fi
	;;

      chorus*)
        case $cc_basename in
          *)
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	  ;;
        esac
        ;;

      cygwin* | mingw* | pw32* | cegcc*)
	case $GXX,$cc_basename in
	,cl* | no,cl*)
	  # Native MSVC
	  # hardcode_libdir_flag_spec is actually meaningless, as there is
	  # no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX=' '
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=yes
	  file_list_spec_CXX='@@'
	  # Tell ltmain to make .lib files, not .a files.
	  libext=lib
	  # Tell ltmain to make .dll files, not .so files.
	  shrext_cmds=".dll"
	  # FIXME: Setting linknames here is a bad hack.
	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	    else
	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	    fi~
	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	    linknames='
	  # The linker will not automatically build a static lib if we build a DLL.
	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
	  enable_shared_with_static_runtimes_CXX=yes
	  # Don't use ranlib
	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
	  postlink_cmds_CXX='lt_outputfile="@@OUTPUT@@"~
	    lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	    case $lt_outputfile in
	      *.exe|*.EXE) ;;
	      *)
		lt_outputfile="$lt_outputfile.exe"
		lt_tool_outputfile="$lt_tool_outputfile.exe"
		;;
	    esac~
	    func_to_tool_file "$lt_outputfile"~
	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	      $RM "$lt_outputfile.manifest";
	    fi'
	  ;;
	*)
	  # g++
	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
	  # as there is no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=no
	  enable_shared_with_static_runtimes_CXX=yes

	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	    # If the export-symbols file already is a .def file (1st line
	    # is EXPORTS), use it as is; otherwise, prepend...
	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      cp $export_symbols $output_objdir/$soname.def;
	    else
	      echo EXPORTS > $output_objdir/$soname.def;
	      cat $export_symbols >> $output_objdir/$soname.def;
	    fi~
	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	  else
	    ld_shlibs_CXX=no
	  fi
	  ;;
	esac
	;;
      darwin* | rhapsody*)


  archive_cmds_need_lc_CXX=no
  hardcode_direct_CXX=no
  hardcode_automatic_CXX=yes
  hardcode_shlibpath_var_CXX=unsupported
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  else
    whole_archive_flag_spec_CXX=''
  fi
  link_all_deplibs_CXX=yes
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=func_echo_all
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
    fi

  else
  ld_shlibs_CXX=no
  fi

	;;

      dgux*)
        case $cc_basename in
          ec++*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          ghcx*)
	    # Green Hills C++ Compiler
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      freebsd[12]*)
        # C++ shared libraries reported to be fairly broken before
	# switch to ELF
        ld_shlibs_CXX=no
        ;;

      freebsd-elf*)
        archive_cmds_need_lc_CXX=no
        ;;

      freebsd* | dragonfly*)
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
        # conventions
        ld_shlibs_CXX=yes
        ;;

      gnu*)
        ;;

      haiku*)
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
        link_all_deplibs_CXX=yes
        ;;

      hpux9*)
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        export_dynamic_flag_spec_CXX='${wl}-E'
        hardcode_direct_CXX=yes
        hardcode_minus_L_CXX=yes # Not in the search PATH,
				             # but as the default
				             # location of the library.

        case $cc_basename in
          CC*)
            # FIXME: insert proper C++ library support
            ld_shlibs_CXX=no
            ;;
          aCC*)
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            # Commands to make compiler produce verbose output that lists
            # what "hidden" libraries, object files and flags are used when
            # linking a shared library.
            #
            # There doesn't appear to be a way to prevent this compiler from
            # explicitly linking system object files so we need to strip them
            # from the output so that they don't get included in the library
            # dependencies.
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
            ;;
          *)
            if test "$GXX" = yes; then
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            else
              # FIXME: insert proper C++ library support
              ld_shlibs_CXX=no
            fi
            ;;
        esac
        ;;

      hpux10*|hpux11*)
        if test $with_gnu_ld = no; then
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

          case $host_cpu in
            hppa*64*|ia64*)
              ;;
            *)
	      export_dynamic_flag_spec_CXX='${wl}-E'
              ;;
          esac
        fi
        case $host_cpu in
          hppa*64*|ia64*)
            hardcode_direct_CXX=no
            hardcode_shlibpath_var_CXX=no
            ;;
          *)
            hardcode_direct_CXX=yes
            hardcode_direct_absolute_CXX=yes
            hardcode_minus_L_CXX=yes # Not in the search PATH,
					         # but as the default
					         # location of the library.
            ;;
        esac

        case $cc_basename in
          CC*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          aCC*)
	    case $host_cpu in
	      hppa*64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      ia64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      *)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	    esac
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test $with_gnu_ld = no; then
	        case $host_cpu in
	          hppa*64*)
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          ia64*)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          *)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	        esac
	      fi
	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      interix[3-9]*)
	hardcode_direct_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}-E'
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
	# Instead, shared libraries are loaded at an image base (0x10000000 by
	# default) and relocated if they conflict, which is a slow very memory
	# consuming and fragmenting process.  To avoid this, we pick a random,
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	;;
      irix5* | irix6*)
        case $cc_basename in
          CC*)
	    # SGI C++
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'

	    # Archives containing C++ object files must be created using
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test "$with_gnu_ld" = no; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	      else
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
	      fi
	    fi
	    link_all_deplibs_CXX=yes
	    ;;
        esac
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        inherit_rpath_CXX=yes
        ;;

      linux* | k*bsd*-gnu | kopensolaris*-gnu)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

	    # Archives containing C++ object files must be created using
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
	    ;;
	  icpc* | ecpc* )
	    # Intel C++
	    with_gnu_ld=yes
	    # version 8.0 and above of icpc choke on multiply defined symbols
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
	    # earlier do not add the objects themselves.
	    case `$CC -V 2>&1` in
	      *"Version 7."*)
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	      *)  # Version 8.0 or newer
	        tmp_idyn=
	        case $host_cpu in
		  ia64*) tmp_idyn=' -i_dynamic';;
		esac
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	    esac
	    archive_cmds_need_lc_CXX=no
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    ;;
          pgCC* | pgcpp*)
            # Portland Group C++ compiler
	    case `$CC -V` in
	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
	      prelink_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
	      old_archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
		$RANLIB $oldlib'
	      archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    *) # Version 6 and above use weak symbols
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    esac

	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
            ;;
	  cxx*)
	    # Compaq C++
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'

	    runpath_var=LD_RUN_PATH
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
	    ;;
	  xl* | mpixl* | bgxl*)
	    # IBM XL 8.0 on PPC, with GNU ld
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    if test "x$supports_anon_versioning" = xyes; then
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
		echo "local: *; };" >> $output_objdir/$libname.ver~
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	    fi
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      no_undefined_flag_CXX=' -zdefs'
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	      compiler_needs_object_CXX=yes

	      # Not sure whether something based on
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
	      # would be better.
	      output_verbose_link_cmd='func_echo_all'

	      # Archives containing C++ object files must be created using
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	      # necessary to make sure instantiated templates are included
	      # in the archive.
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	      ;;
	    esac
	    ;;
	esac
	;;

      lynxos*)
        # FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;

      m88k*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
	;;

      mvs*)
        case $cc_basename in
          cxx*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	  *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	esac
	;;

      netbsd*)
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
	  wlarc=
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	fi
	# Workaround some broken pre-1.5 toolchains
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
	;;

      *nto* | *qnx*)
        ld_shlibs_CXX=yes
	;;

      openbsd2*)
        # C++ shared libraries are fairly broken
	ld_shlibs_CXX=no
	;;

      openbsd*)
	if test -f /usr/libexec/ld.so; then
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	  hardcode_direct_absolute_CXX=yes
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
	    export_dynamic_flag_spec_CXX='${wl}-E'
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
	  fi
	  output_verbose_link_cmd=func_echo_all
	else
	  ld_shlibs_CXX=no
	fi
	;;

      osf3* | osf4* | osf5*)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    hardcode_libdir_separator_CXX=:

	    # Archives containing C++ object files must be created using
	    # the KAI C++ compiler.
	    case $host in
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
	    esac
	    ;;
          RCC*)
	    # Rational C++ 2.4.1
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          cxx*)
	    case $host in
	      osf3*)
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
		;;
	      *)
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
	          echo "-hidden">> $lib.exp~
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
	          $RM $lib.exp'
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
		;;
	    esac

	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
	  *)
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	      case $host in
	        osf3*)
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	        *)
	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	      esac

	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	      hardcode_libdir_separator_CXX=:

	      # Commands to make compiler produce verbose output that lists
	      # what "hidden" libraries, object files and flags are used when
	      # linking a shared library.
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      psos*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      sunos4*)
        case $cc_basename in
          CC*)
	    # Sun C++ 4.x
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          lcc*)
	    # Lucid
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      solaris*)
        case $cc_basename in
          CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
            archive_cmds_need_lc_CXX=yes
	    no_undefined_flag_CXX=' -zdefs'
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	    hardcode_libdir_flag_spec_CXX='-R$libdir'
	    hardcode_shlibpath_var_CXX=no
	    case $host_os in
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
	      *)
		# The compiler driver will combine and reorder linker options,
		# but understands `-z linker_flag'.
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
	        ;;
	    esac
	    link_all_deplibs_CXX=yes

	    output_verbose_link_cmd='func_echo_all'

	    # Archives containing C++ object files must be created using
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	    ;;
          gcx*)
	    # Green Hills C++ Compiler
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'

	    # The C++ compiler must be used to create the archive.
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
	    ;;
          *)
	    # GNU C++ compiler with Solaris linker
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      else
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
	        # platform.
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      fi

	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
	      case $host_os in
		solaris2.[0-5] | solaris2.[0-5].*) ;;
		*)
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
		  ;;
	      esac
	    fi
	    ;;
        esac
        ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag_CXX='${wl}-z,text'
      archive_cmds_need_lc_CXX=no
      hardcode_shlibpath_var_CXX=no
      runpath_var='LD_RUN_PATH'

      case $cc_basename in
        CC*)
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
      esac
      ;;

      sysv5* | sco3.2v5* | sco5v6*)
	# Note: We can NOT use -z defs as we might desire, because we do not
	# link with -lc, and that would cause any symbols used from libc to
	# always be unresolved, which means just about no library would
	# ever link correctly.  If we're not using GNU ld we use -z text
	# though, which does catch some bad symbols but isn't as heavy-handed
	# as -z defs.
	no_undefined_flag_CXX='${wl}-z,text'
	allow_undefined_flag_CXX='${wl}-z,nodefs'
	archive_cmds_need_lc_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
	hardcode_libdir_separator_CXX=':'
	link_all_deplibs_CXX=yes
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
	runpath_var='LD_RUN_PATH'

	case $cc_basename in
          CC*)
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
	      '"$old_archive_cmds_CXX"
	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
	      '"$reload_cmds_CXX"
	    ;;
	  *)
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    ;;
	esac
      ;;

      tandem*)
        case $cc_basename in
          NCC*)
	    # NonStop-UX NCC 3.20
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      vxworks*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      *)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
    test "$ld_shlibs_CXX" = no && can_build_shared=no

    GCC_CXX="$GXX"
    LD_CXX="$LD"

    ## CAVEAT EMPTOR:
    ## There is no encapsulation within the following macros, do not change
    ## the running order or otherwise move them around unless you know exactly
    ## what you are doing...
    # Dependencies to place before and after the object being linked:
predep_objects_CXX=
postdep_objects_CXX=
predeps_CXX=
postdeps_CXX=
compiler_lib_search_path_CXX=

cat > conftest.$ac_ext <<_LT_EOF
class Foo
{
public:
  Foo (void) { a = 0; }
private:
  int a;
};
_LT_EOF


_lt_libdeps_save_CFLAGS=$CFLAGS
case "$CC $CFLAGS " in #(
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
esac

if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # Parse the compiler output and extract the necessary
  # objects, libraries and library flags.

  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  pre_test_object_deps_done=no

  for p in `eval "$output_verbose_link_cmd"`; do
    case ${prev}${p} in

    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       if test $p = "-L" ||
          test $p = "-R"; then
	 prev=$p
	 continue
       fi

       # Expand the sysroot to ease extracting the directories later.
       if test -z "$prev"; then
         case $p in
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
         esac
       fi
       case $p in
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
       esac
       if test "$pre_test_object_deps_done" = no; then
	 case ${prev} in
	 -L | -R)
	   # Internal compiler library paths should come after those
	   # provided the user.  The postdeps already come after the
	   # user supplied libs so there is no need to process them.
	   if test -z "$compiler_lib_search_path_CXX"; then
	     compiler_lib_search_path_CXX="${prev}${p}"
	   else
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
	   fi
	   ;;
	 # The "-l" case would never come before the object being
	 # linked, so don't bother handling this case.
	 esac
       else
	 if test -z "$postdeps_CXX"; then
	   postdeps_CXX="${prev}${p}"
	 else
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
	 fi
       fi
       prev=
       ;;

    *.lto.$objext) ;; # Ignore GCC LTO objects
    *.$objext)
       # This assumes that the test object file only shows up
       # once in the compiler output.
       if test "$p" = "conftest.$objext"; then
	 pre_test_object_deps_done=yes
	 continue
       fi

       if test "$pre_test_object_deps_done" = no; then
	 if test -z "$predep_objects_CXX"; then
	   predep_objects_CXX="$p"
	 else
	   predep_objects_CXX="$predep_objects_CXX $p"
	 fi
       else
	 if test -z "$postdep_objects_CXX"; then
	   postdep_objects_CXX="$p"
	 else
	   postdep_objects_CXX="$postdep_objects_CXX $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling CXX test program"
fi

$RM -f confest.$objext
CFLAGS=$_lt_libdeps_save_CFLAGS

# PORTME: override above test on systems where it is broken
case $host_os in
interix[3-9]*)
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  # hack all around it, let's just trust "g++" to DTRT.
  predep_objects_CXX=
  postdep_objects_CXX=
  postdeps_CXX=
  ;;

linux*)
  case `$CC -V 2>&1 | sed 5q` in
  *Sun\ C*)
    # Sun C++ 5.9

    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;

solaris*)
  case $cc_basename in
  CC* | sunCC*)
    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;
esac


case " $postdeps_CXX " in
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
esac
 compiler_lib_search_dirs_CXX=
if test -n "${compiler_lib_search_path_CXX}"; then
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
fi































    lt_prog_compiler_wl_CXX=
lt_prog_compiler_pic_CXX=
lt_prog_compiler_static_CXX=


  # C++ specific cases for pic, static, wl, etc.
  if test "$GXX" = yes; then
    lt_prog_compiler_wl_CXX='-Wl,'
    lt_prog_compiler_static_CXX='-static'

    case $host_os in
    aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_CXX='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic_CXX='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | cygwin* | os2* | pw32* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_CXX='-fno-common'
      ;;
    *djgpp*)
      # DJGPP does not support shared libraries at all
      lt_prog_compiler_pic_CXX=
      ;;
    haiku*)
      # PIC is the default for Haiku.
      # The "-static" flag exists, but is broken.
      lt_prog_compiler_static_CXX=
      ;;
    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_CXX=-Kconform_pic
      fi
      ;;
    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	;;
      *)
	lt_prog_compiler_pic_CXX='-fPIC'
	;;
      esac
      ;;
    *qnx* | *nto*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_CXX='-fPIC -shared'
      ;;
    *)
      lt_prog_compiler_pic_CXX='-fPIC'
      ;;
    esac
  else
    case $host_os in
      aix[4-9]*)
	# All AIX code is PIC.
	if test "$host_cpu" = ia64; then
	  # AIX 5 now supports IA64 processor
	  lt_prog_compiler_static_CXX='-Bstatic'
	else
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
	fi
	;;
      chorus*)
	case $cc_basename in
	cxch68*)
	  # Green Hills C++ Compiler
	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
	  ;;
	esac
	;;
      mingw* | cygwin* | os2* | pw32* | cegcc*)
	# This hack is so that the source file can tell whether it is being
	# built for inclusion in a dll (and should export symbols for example).
	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
	;;
      dgux*)
	case $cc_basename in
	  ec++*)
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  ghcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      freebsd* | dragonfly*)
	# FreeBSD uses GNU C++
	;;
      hpux9* | hpux10* | hpux11*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    if test "$host_cpu" != ia64; then
	      lt_prog_compiler_pic_CXX='+Z'
	    fi
	    ;;
	  aCC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    case $host_cpu in
	    hppa*64*|ia64*)
	      # +Z the default
	      ;;
	    *)
	      lt_prog_compiler_pic_CXX='+Z'
	      ;;
	    esac
	    ;;
	  *)
	    ;;
	esac
	;;
      interix*)
	# This is c89, which is MS Visual C++ (no shared libs)
	# Anyone wants to do a port?
	;;
      irix5* | irix6* | nonstopux*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='-non_shared'
	    # CC pic flag -KPIC is the default.
	    ;;
	  *)
	    ;;
	esac
	;;
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
	case $cc_basename in
	  KCC*)
	    # KAI C++ Compiler
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  ecpc* )
	    # old Intel C++ for x86_64 which still supported -KPIC.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  icpc* )
	    # Intel C++, used to be incompatible with GCC.
	    # ICC 10 doesn't accept -KPIC any more.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  pgCC* | pgcpp*)
	    # Portland Group C++ compiler
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fpic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  cxx*)
	    # Compaq C++
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
	    # IBM XL 8.0, 9.0 on PPC and BlueGene
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-qpic'
	    lt_prog_compiler_static_CXX='-qstaticlink'
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      lt_prog_compiler_pic_CXX='-KPIC'
	      lt_prog_compiler_static_CXX='-Bstatic'
	      lt_prog_compiler_wl_CXX='-Qoption ld '
	      ;;
	    esac
	    ;;
	esac
	;;
      lynxos*)
	;;
      m88k*)
	;;
      mvs*)
	case $cc_basename in
	  cxx*)
	    lt_prog_compiler_pic_CXX='-W c,exportall'
	    ;;
	  *)
	    ;;
	esac
	;;
      netbsd*)
	;;
      *qnx* | *nto*)
        # QNX uses GNU C++, but need to define -shared option too, otherwise
        # it will coredump.
        lt_prog_compiler_pic_CXX='-fPIC -shared'
        ;;
      osf3* | osf4* | osf5*)
	case $cc_basename in
	  KCC*)
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    ;;
	  RCC*)
	    # Rational C++ 2.4.1
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  cxx*)
	    # Digital/Compaq C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      psos*)
	;;
      solaris*)
	case $cc_basename in
	  CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    lt_prog_compiler_wl_CXX='-Qoption ld '
	    ;;
	  gcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-PIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sunos4*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.x
	    lt_prog_compiler_pic_CXX='-pic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  lcc*)
	    # Lucid
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	esac
	;;
      tandem*)
	case $cc_basename in
	  NCC*)
	    # NonStop-UX NCC 3.20
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      vxworks*)
	;;
      *)
	lt_prog_compiler_can_build_shared_CXX=no
	;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_CXX=
    ;;
  *)
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works_CXX=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works_CXX=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
    case $lt_prog_compiler_pic_CXX in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
     esac
else
    lt_prog_compiler_pic_CXX=
     lt_prog_compiler_can_build_shared_CXX=no
fi

fi





#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works_CXX=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_cv_prog_compiler_static_works_CXX=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  case $host_os in
  aix[4-9]*)
    # If we're using GNU nm, then we don't want the "-C" option.
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    # Also, AIX nm treats weak defined symbols like other global defined
    # symbols, whereas GNU nm marks them as "W".
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    else
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    fi
    ;;
  pw32*)
    export_symbols_cmds_CXX="$ltdll_cmds"
    ;;
  cygwin* | mingw* | cegcc*)
    case $cc_basename in
    cl*) ;;
    *)
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
      ;;
    esac
    ;;
  *)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    ;;
  esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
test "$ld_shlibs_CXX" = no && can_build_shared=no

with_gnu_ld_CXX=$with_gnu_ld






#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_CXX" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_CXX=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_CXX in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  $RM conftest*
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext

	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
	  soname=conftest
	  lib=conftest
	  libobjs=conftest.$ac_objext
	  deplibs=
	  wl=$lt_prog_compiler_wl_CXX
	  pic_flag=$lt_prog_compiler_pic_CXX
	  compiler_flags=-v
	  linker_flags=-v
	  verstring=
	  output_objdir=.
	  libname=conftest
	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
	  allow_undefined_flag_CXX=
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	  then
	    lt_cv_archive_cmds_need_lc_CXX=no
	  else
	    lt_cv_archive_cmds_need_lc_CXX=yes
	  fi
	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
	else
	  cat conftest.err 1>&5
	fi
	$RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
      ;;
    esac
  fi
  ;;
esac
































































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$cc_basename in
  yes,*)
    # gcc
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'

      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    dynamic_linker='Win32 ld.exe'
    ;;

  *,cl*)
    # Native MSVC
    libname_spec='$name'
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'

    case $build_os in
    mingw*)
      sys_lib_search_path_spec=
      lt_save_ifs=$IFS
      IFS=';'
      for lt_path in $LIB
      do
        IFS=$lt_save_ifs
        # Let DOS variable expansion print the short 8.3 style file name.
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @@echo %~si"`
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
      done
      IFS=$lt_save_ifs
      # Convert to MSYS style.
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
      ;;
    cygwin*)
      # Convert to unix form, then to dos form, then back to unix form
      # but this time dos style (no spaces!) so that the unix form looks
      # like /cygdrive/c/PROGRA~1:/cygdr...
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      ;;
    *)
      sys_lib_search_path_spec="$LIB"
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      fi
      # FIXME: find the short name or the path components, as spaces are
      # common. (e.g. "Program Files" -> "PROGRA~1")
      ;;
    esac

    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
    dynamic_linker='Win32 link.exe'
    ;;

  *)
    # Assume MSVC wrapper
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    dynamic_linker='Win32 ld.exe'
    ;;
  esac
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

haiku*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  dynamic_linker="$host_os runtime_loader"
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  postinstall_cmds='chmod 555 $lib'
  # or fails outright, so override atomically:
  install_override_mode=555
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no

  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi






































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action_CXX=
if test -n "$hardcode_libdir_flag_spec_CXX" ||
   test -n "$runpath_var_CXX" ||
   test "X$hardcode_automatic_CXX" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct_CXX" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_CXX=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_CXX=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_CXX=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
$as_echo "$hardcode_action_CXX" >&6; }

if test "$hardcode_action_CXX" = relink ||
   test "$inherit_rpath_CXX" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi







  fi # test -n "$compiler"

  CC=$lt_save_CC
  CFLAGS=$lt_save_CFLAGS
  LDCXX=$LD
  LD=$lt_save_LD
  GCC=$lt_save_GCC
  with_gnu_ld=$lt_save_with_gnu_ld
  lt_cv_path_LDCXX=$lt_cv_path_LD
  lt_cv_path_LD=$lt_save_path_LD
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
fi # test "$_lt_caught_CXX_error" != yes

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu













        ac_config_commands="$ac_config_commands libtool"




# Only expand once:




# NTP has (so far) been relying on leading-edge autogen, which
# means we need the appropriate corresponding libopts as well.
# Therefore, by default:
# - use the version of libopts we ship with
# - do not install it
# - build a static copy (AC_DISABLE_SHARED - done earlier)
case "${enable_local_libopts+set}" in
 set) ;;
 *) enable_local_libopts=yes ;;
esac
case "${enable_libopts_install+set}" in
 set) ;;
 *) enable_libopts_install=no ;;
esac
enable_nls=no
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi



  ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
if eval \${$as_ac_Header+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$as_ac_Header=yes"
else
  eval "$as_ac_Header=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_ac_Header
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dir; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' x; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi


  # =================
  # AC_CHECK_HEADERS
  # =================
  for ac_header in  \
      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
      fcntl.h       libgen.h      libintl.h     memory.h \
      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
      unistd.h      utime.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  for ac_header in stdarg.h     varargs.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_arg_hdr=true;break
else
  lo_have_arg_hdr=false
fi

done


  for ac_header in string.h     strings.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_str_hdr=true;break
else
  lo_have_str_hdr=false
fi

done


  for ac_header in limits.h     sys/limits.h  values.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_lim_hdr=true;break
else
  lo_have_lim_hdr=false
fi

done


  for ac_header in inttypes.h   stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_typ_hdr=true;break
else
  lo_have_typ_hdr=false
fi

done


  # ----------------------------------------------------------------------
  # check for various programs used during the build.
  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  # ----------------------------------------------------------------------
  for ac_header in runetype.h wchar.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  $ac_includes_default
  #if HAVE_RUNETYPE_H
  # include <runetype.h>
  #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  # Check whether --enable-nls was given.
if test "${enable_nls+set}" = set; then :
  enableval=$enable_nls;
fi

  if test "x$enable_nls" != "xno" && \
  test "X${ac_cv_header_libintl_h}" = Xyes; then :


$as_echo "#define ENABLE_NLS 1" >>confdefs.h

fi

  # --------------------------------------------
  # Verify certain entries from AC_CHECK_HEADERS
  # --------------------------------------------
  ${lo_have_arg_hdr} || \
    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5

  ${lo_have_str_hdr} || \
    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5

  ${lo_have_lim_hdr} || \
    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5

  ${lo_have_typ_hdr} || \
    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5

  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  do eval as_ac_var=\${ac_cv_header_${f}_h}
     test "X${as_ac_var}" = Xyes || {
       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
     }
  done
  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
    echo '#include <stdint.h>' > inttypes.h

  # ----------------------------------------------------------------------
  # Checks for typedefs
  # ----------------------------------------------------------------------
  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
if test "x$ac_cv_type_wchar_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WCHAR_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
    $ac_includes_default
    #if HAVE_RUNETYPE_H
    # include <runetype.h>
    #endif
    #if HAVE_WCHAR_H
    # include <wchar.h>
    #endif

"
if test "x$ac_cv_type_wint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WINT_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
if test "x$ac_cv_type_int8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
if test "x$ac_cv_type_uint8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
if test "x$ac_cv_type_int16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
if test "x$ac_cv_type_uint16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
if test "x$ac_cv_type_int32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
if test "x$ac_cv_type_uint32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
if test "x$ac_cv_type_intptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
if test "x$ac_cv_type_uint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PID_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SIZE_T 1
_ACEOF


fi

  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
$as_echo_n "checking size of char*... " >&6; }
if ${ac_cv_sizeof_charp+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_charp" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (char*)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_charp=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
$as_echo "$ac_cv_sizeof_charp" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHARP $ac_cv_sizeof_charp
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF



  # ------------
  # AC_CHECK_LIB
  # ------------
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
$as_echo_n "checking for pathfind in -lgen... " >&6; }
if ${ac_cv_lib_gen_pathfind+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgen  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pathfind ();
int
main ()
{
return pathfind ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gen_pathfind=yes
else
  ac_cv_lib_gen_pathfind=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGEN 1
_ACEOF

  LIBS="-lgen $LIBS"

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
$as_echo_n "checking for gettext in -lintl... " >&6; }
if ${ac_cv_lib_intl_gettext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lintl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gettext ();
int
main ()
{
return gettext ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_intl_gettext=yes
else
  ac_cv_lib_intl_gettext=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
$as_echo "$ac_cv_lib_intl_gettext" >&6; }
if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBINTL 1
_ACEOF

  LIBS="-lintl $LIBS"

fi

  for ac_func in vprintf
do :
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
if test "x$ac_cv_func_vprintf" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VPRINTF 1
_ACEOF

ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
if test "x$ac_cv_func__doprnt" = xyes; then :

$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h

fi

fi
done


  for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
                 strrchr strsignal fchmod fstat chmod
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

  while :
  do
      POSIX_SHELL=`which bash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`which dash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=/usr/xpg4/bin/sh
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`/bin/sh -c '
          exec 2>/dev/null
          if ! true ; then exit 1 ; fi
          echo /bin/sh'`
      test -x "$POSIX_SHELL" && break
      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  done

cat >>confdefs.h <<_ACEOF
#define POSIX_SHELL "${POSIX_SHELL}"
_ACEOF





  LIBOPTS_BUILD_BLOCKED=true


  NEED_LIBOPTS_DIR=''

  # Check whether --enable-local-libopts was given.
if test "${enable_local_libopts+set}" = set; then :
  enableval=$enable_local_libopts;
    if test x$enableval = xyes ; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
       NEED_LIBOPTS_DIR=true
       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
    fi
fi


  # Check whether --enable-libopts-install was given.
if test "${enable_libopts_install+set}" = set; then :
  enableval=$enable_libopts_install;
fi

   if test "X${enable_libopts_install}" = Xyes; then
  INSTALL_LIBOPTS_TRUE=
  INSTALL_LIBOPTS_FALSE='#'
else
  INSTALL_LIBOPTS_TRUE='#'
  INSTALL_LIBOPTS_FALSE=
fi


  if test -z "${NEED_LIBOPTS_DIR}" ; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
$as_echo_n "checking whether autoopts-config can be found... " >&6; }

# Check whether --with-autoopts-config was given.
if test "${with_autoopts_config+set}" = set; then :
  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
$as_echo_n "checking whether autoopts-config is specified... " >&6; }
if ${lo_cv_with_autoopts_config+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if autoopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=autoopts-config
        elif libopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=libopts-config
        else lo_cv_with_autoopts_config=no ; fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
$as_echo "$lo_cv_with_autoopts_config" >&6; }

fi
 # end of AC_ARG_WITH

     if ${lo_cv_test_autoopts+:} false; then :
  $as_echo_n "(cached) " >&6
else

        if test -z "${lo_cv_with_autoopts_config}" \
                -o X"${lo_cv_with_autoopts_config}" = Xno
        then
           if autoopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=autoopts-config
           elif libopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=libopts-config
           else lo_cv_with_autoopts_config=false ; fi
        fi
        lo_cv_test_autoopts=`
            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
        then lo_cv_test_autoopts=no ; fi

fi
 # end of CACHE_VAL
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
$as_echo "${lo_cv_test_autoopts}" >&6; }

     if test "X${lo_cv_test_autoopts}" != Xno
     then
        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
     else
        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
        NEED_LIBOPTS_DIR=true
     fi
  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
    NEED_LIBOPTS_DIR=''
  fi
   if test -n "${NEED_LIBOPTS_DIR}"; then
  NEED_LIBOPTS_TRUE=
  NEED_LIBOPTS_FALSE='#'
else
  NEED_LIBOPTS_TRUE='#'
  NEED_LIBOPTS_FALSE=
fi



  LIBOPTS_DIR=sntp/libopts


# end of AC_DEFUN of LIBOPTS_CHECK_COMMON

  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD




# Check whether --enable-local-libevent was given.
if test "${enable_local_libevent+set}" = set; then :
  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
else
  ntp_use_local_libevent=${ntp_use_local_libevent-detect}

fi






# Expose a cross-compilation indicator to makefiles
 if test $build != $host; then
  NTP_CROSSCOMPILE_TRUE=
  NTP_CROSSCOMPILE_FALSE='#'
else
  NTP_CROSSCOMPILE_TRUE='#'
  NTP_CROSSCOMPILE_FALSE=
fi



ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi


            # Check whether --enable-c99-snprintf was given.
if test "${enable_c99_snprintf+set}" = set; then :
  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
else
  force_c99_snprintf=no

fi

    case "$force_c99_snprintf" in
     yes)
	hw_force_rpl_snprintf=yes
	hw_force_rpl_vsnprintf=yes
    esac






  for ac_header in $ac_header_list
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done







      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
if test "x$ac_cv_func_vsnprintf" = xyes; then :
  hw_cv_func_vsnprintf=yes
else
  hw_cv_func_vsnprintf=no
fi

  if test "$hw_cv_func_vsnprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
if ${hw_cv_func_vsnprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_vsnprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if HAVE_STDARG_H
          #include <stdarg.h>
          #endif
          #include <stdio.h>
          static int testprintf(char *buf, size_t size, const char *format, ...)
          {
            int result;
            va_list ap;
            va_start(ap, format);
            result = vsnprintf(buf, size, format, ap);
            va_end(ap);
            return result;
          }
int
main ()
{
char buf[43];
          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_vsnprintf_c99=yes
else
  hw_cv_func_vsnprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
else
  hw_cv_func_vsnprintf_c99=no
fi

$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
  hw_use_rpl_vsnprintf=yes
else
  hw_use_rpl_vsnprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
$as_echo "$hw_use_rpl_vsnprintf" >&6; }
  if test "$hw_use_rpl_vsnprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_vsnprintf=no} = no; then :

$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h

fi
    for ac_header in inttypes.h locale.h stddef.h stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
_ACEOF


fi
ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
_ACEOF


fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
$as_echo_n "checking for long double... " >&6; }
if ${ac_cv_type_long_double+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$GCC" = yes; then
       ac_cv_type_long_double=yes
     else
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* The Stardent Vistra knows sizeof (long double), but does
		 not support it.  */
	      long double foo = 0.0L;
int
main ()
{
static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
	      sizeof (double) <= sizeof (long double))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_long_double=yes
else
  ac_cv_type_long_double=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
$as_echo "$ac_cv_type_long_double" >&6; }
  if test $ac_cv_type_long_double = yes; then

$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
$as_echo_n "checking for long long int... " >&6; }
if ${ac_cv_type_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  			if test "$cross_compiling" = yes; then :
  ac_cv_type_long_long_int=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
	       #ifndef LLONG_MAX
	       # define HALF \
			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
	       # define LLONG_MAX (HALF - 1 + HALF)
	       #endif
int
main ()
{
long long int n = 1;
	       int i;
	       for (i = 0; ; i++)
		 {
		   long long int m = n << i;
		   if (m >> i != n)
		     return 1;
		   if (LLONG_MAX / 2 < m)
		     break;
		 }
	       return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_type_long_long_int=yes
else
  ac_cv_type_long_long_int=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

else
  ac_cv_type_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
$as_echo "$ac_cv_type_long_long_int" >&6; }
  if test $ac_cv_type_long_long_int = yes; then

$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
$as_echo_n "checking for unsigned long long int... " >&6; }
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_type_unsigned_long_long_int=yes
else
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h

  fi

    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
if test "x$ac_cv_type_intmax_t" = xyes; then :

$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_long_long_int = yes \
       && ac_type='long long int' \
       || ac_type='long int'

cat >>confdefs.h <<_ACEOF
#define intmax_t $ac_type
_ACEOF

fi




  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
if test "x$ac_cv_type_uintmax_t" = xyes; then :

$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_unsigned_long_long_int = yes \
       && ac_type='unsigned long long int' \
       || ac_type='unsigned long int'

cat >>confdefs.h <<_ACEOF
#define uintmax_t $ac_type
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h

else
  for ac_type in 'unsigned int' 'unsigned long int' \
	'unsigned long long int'; do
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

cat >>confdefs.h <<_ACEOF
#define uintptr_t $ac_type
_ACEOF

	  ac_type=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       test -z "$ac_type" && break
     done
fi


    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi

    for ac_func in localeconv
do :
  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
if test "x$ac_cv_func_localeconv" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LOCALECONV 1
_ACEOF

fi
done


  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi


    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
if test "x$ac_cv_func_snprintf" = xyes; then :
  hw_cv_func_snprintf=yes
else
  hw_cv_func_snprintf=no
fi

  if test "$hw_cv_func_snprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
if ${hw_cv_func_snprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_snprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
char buf[43];
          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_snprintf_c99=yes
else
  hw_cv_func_snprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
$as_echo "$hw_cv_func_snprintf_c99" >&6; }
else
  hw_cv_func_snprintf_c99=no
fi

$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
  hw_use_rpl_snprintf=yes
else
  hw_use_rpl_snprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
$as_echo "$hw_use_rpl_snprintf" >&6; }
  if test "$hw_use_rpl_snprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_snprintf=no} = no; then :

$as_echo "#define snprintf rpl_snprintf" >>confdefs.h

fi

  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi





# HMS: Save $LIBS and empty it.
# any LIBS we add here should go in to LDADD_LIBNTP

__LIBS=$LIBS
LIBS=





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
$as_echo_n "checking for directory path separator... " >&6; }
if ${ntp_cv_dir_sep+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$ntp_cv_dir_sep" in
	 '')
	    case "$target_os" in
	     *djgpp | *mingw32* | *emx*)
		ntp_cv_dir_sep="'\\'"
		;;
	     *)
		ntp_cv_dir_sep="'/'"
		;;
	    esac
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
$as_echo "$ntp_cv_dir_sep" >&6; }

cat >>confdefs.h <<_ACEOF
#define DIR_SEP $ntp_cv_dir_sep
_ACEOF



    NTP_ORIG_LIBS="$LIBS"

# Check whether --with-lineeditlibs was given.
if test "${with_lineeditlibs+set}" = set; then :
  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
else
  use_lineeditlibs="edit,editline"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
$as_echo_n "checking line editing libraries... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
$as_echo "$use_lineeditlibs" >&6; }
    case "$use_lineeditlibs" in
     no)
	ntp_lib_lineedit=no
	;;
     *)
	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
	    for term_lib in "" termcap curses ncurses; do
		case "$term_lib" in
		 '')
		    TRY_LIB="-l$lineedit_lib"
		    ;;
		 *)
		    TRY_LIB="-l$lineedit_lib -l$term_lib"
		    ;;
		esac
		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char readline ();
int
main ()
{
return readline ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		case "$ntp_lib_lineedit" in
		 '')
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		    ;;
		 *)
		    # Use readline()
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
		    break
		esac
		case "$term_lib" in
		 '')
		    # do not try el_gets without a terminal library
		    ;;
		 *)
		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char el_gets ();
int
main ()
{
return el_gets ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		    case "$ntp_lib_lineedit" in
		     '')
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			;;
		     *) # Use el_gets()
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			break
			;;
		    esac	# $ntp_lib_lineedit
		esac		# $term_lib
	    done
	    case "$ntp_lib_lineedit" in
	     '')
		;;
	     *)
		break
		;;
	    esac
	done
	LIBS="$NTP_ORIG_LIBS"
	;;
    esac	# $use_lineeditlibs

    case "$ntp_lib_lineedit" in
     '')
	ntp_lib_lineedit="no"
	;;
     no)
	;;
     *)
	EDITLINE_LIBS="$ntp_lib_lineedit"

	;;
    esac	# $ntp_lib_lineedit

    case "$ntp_lib_lineedit" in
     no)
	;;
     *)
	for ac_header in readline.h readline/readline.h histedit.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	for ac_header in history.h readline/history.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


	case "$ac_cv_header_histedit_h" in
	 yes)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
$as_echo_n "checking number of arguments to el_init()... " >&6; }
if ${ntp_cv_el_init_args+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    #include <stdio.h>
			    #include <histedit.h>

int
main ()
{

			    el_init("conftest", stdin, stdout, stderr);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_el_init_args=4
else
  ntp_cv_el_init_args=3

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
$as_echo "$ntp_cv_el_init_args" >&6; }

cat >>confdefs.h <<_ACEOF
#define EL_INIT_ARGS $ntp_cv_el_init_args
_ACEOF

	esac

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
$as_echo_n "checking whether readline supports history... " >&6; }

	ntp_lib_lineedit_history="no"
	ORIG_LIBS="$LIBS"
	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char add_history ();
int
main ()
{
return add_history ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit_history="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LIBS="$ORIG_LIBS"

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
$as_echo "$ntp_lib_lineedit_history" >&6; }

	case "$ntp_lib_lineedit_history" in
	 yes)

$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h

	esac
    esac	# $ntp_lib_lineedit
    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
    { ORIG_LIBS=; unset ORIG_LIBS;}
    { TRY_LIB=; unset TRY_LIB;}
    { use_lineeditlibs=; unset use_lineeditlibs;}


LIBM=
case "$host" in
 *-*-darwin*)
    ;;
 *)
    _libs=$LIBS
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
$as_echo_n "checking for library containing cos... " >&6; }
if ${ac_cv_search_cos+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cos ();
int
main ()
{
return cos ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' m; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_cos=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_cos+:} false; then :
  break
fi
done
if ${ac_cv_search_cos+:} false; then :

else
  ac_cv_search_cos=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
$as_echo "$ac_cv_search_cos" >&6; }
ac_res=$ac_cv_search_cos
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  LIBM="-lm"
fi

    LIBS=$_libs
    ;;
esac

{ _libs=; unset _libs;}


for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
$as_echo_n "checking for working alloca.h... " >&6; }
if ${ac_cv_working_alloca_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <alloca.h>
int
main ()
{
char *p = (char *) alloca (2 * sizeof (int));
			  if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_working_alloca_h=yes
else
  ac_cv_working_alloca_h=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
$as_echo "$ac_cv_working_alloca_h" >&6; }
if test $ac_cv_working_alloca_h = yes; then

$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
$as_echo_n "checking for alloca... " >&6; }
if ${ac_cv_func_alloca_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  ifdef HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
void *alloca (size_t);
#    endif
#   endif
#  endif
# endif
#endif

int
main ()
{
char *p = (char *) alloca (1);
				    if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_func_alloca_works=yes
else
  ac_cv_func_alloca_works=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
$as_echo "$ac_cv_func_alloca_works" >&6; }

if test $ac_cv_func_alloca_works = yes; then

$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h

else
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble.  Some versions do not even contain alloca or
# contain a buggy version.  If you still want to use their alloca,
# use ar to extract alloca.o from them instead of compiling alloca.c.

ALLOCA=\${LIBOBJDIR}alloca.$ac_objext

$as_echo "#define C_ALLOCA 1" >>confdefs.h


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
if ${ac_cv_os_cray+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if defined CRAY && ! defined CRAY2
webecray
#else
wenotbecray
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "webecray" >/dev/null 2>&1; then :
  ac_cv_os_cray=yes
else
  ac_cv_os_cray=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
$as_echo "$ac_cv_os_cray" >&6; }
if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :

cat >>confdefs.h <<_ACEOF
#define CRAY_STACKSEG_END $ac_func
_ACEOF

    break
fi

  done
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
$as_echo_n "checking stack direction for C alloca... " >&6; }
if ${ac_cv_c_stack_direction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_c_stack_direction=0
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}

int
main ()
{
  return find_stack_direction () < 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_stack_direction=1
else
  ac_cv_c_stack_direction=-1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
$as_echo "$ac_cv_c_stack_direction" >&6; }
cat >>confdefs.h <<_ACEOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
_ACEOF


fi

ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRERROR_R $ac_have_decl
_ACEOF

for ac_func in strerror_r
do :
  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
if test "x$ac_cv_func_strerror_r" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRERROR_R 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
if ${ac_cv_func_strerror_r_char_p+:} false; then :
  $as_echo_n "(cached) " >&6
else

    ac_cv_func_strerror_r_char_p=no
    if test $ac_cv_have_decl_strerror_r = yes; then
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  char *p = strerror_r (0, buf, sizeof buf);
	  return !p || x;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    else
      # strerror_r is not declared.  Choose between
      # systems that have relatively inaccessible declarations for the
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
      # former has a strerror_r that returns char*, while the latter
      # has a strerror_r that returns `int'.
      # This test should segfault on the DEC system.
      if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
	extern char *strerror_r ();
int
main ()
{
char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  return ! isalpha (x);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
if test $ac_cv_func_strerror_r_char_p = yes; then

$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h

fi


ac_busted_vpath_in_make=no
case "$build" in
 *-*-irix6.1*)	# 64 bit only
    # busted vpath?
    ;;
 *-*-irix6*)	# 6.2 (and later?)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-solaris2.5.1)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-unicosmp*)
    ac_busted_vpath_in_make=yes
    ;;
esac

case "$ac_busted_vpath_in_make$srcdir" in
 yes.|no*)
    ;;
 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
    esac
    ;;
esac

case "$host" in
 *-*-aix4*)
	# Bug 2516:
	# Was *-*-aix[[4-9]]*
	# XXX only verified thru AIX6.  But...
	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
	# that this support would be in 5.3, removed in 6, and added back.
	#
	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
	# IBM pulls its thumbs out long enough to implement clock_settime,
	# this conditional will need to change.  Maybe use AC_TRY_RUN
	# instead to try to set the time to itself and check errno.
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
$as_echo_n "checking for library containing clock_gettime... " >&6; }
if ${ac_cv_search_clock_gettime+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char clock_gettime ();
int
main ()
{
return clock_gettime ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_clock_gettime=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_clock_gettime+:} false; then :
  break
fi
done
if ${ac_cv_search_clock_gettime+:} false; then :

else
  ac_cv_search_clock_gettime=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
$as_echo "$ac_cv_search_clock_gettime" >&6; }
ac_res=$ac_cv_search_clock_gettime
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_clock_gettime" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
 esac

fi

    for ac_func in clock_getres clock_gettime clock_settime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac

for ac_func in getclock stime timegm strlcpy strlcat
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


#
for ac_header in errno.h sys/socket.h sys/types.h time.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in net/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif

"
if test "x$ac_cv_header_net_if_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_H 1
_ACEOF

fi

done

case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
if ${ntp_cv_predecl_mpinfou+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    np_cv_predecl_mpinfou=no
	    case "$ac_cv_header_net_if_h" in
	     no)
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    typedef union mpinfou {
				    struct pdk_mpinfo *pdkptr;
				    struct mpinfo *pikptr;
			    } mpinfou_t;
			    #ifdef HAVE_SYS_SOCKET_H
			    # include <sys/socket.h>
			    #endif
			    #include <net/if.h>

int
main ()
{



  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

			ntp_cv_predecl_mpinfou=yes
			ac_cv_header_net_if_h=yes


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
$as_echo "$ntp_cv_predecl_mpinfou" >&6; }
    case "$ntp_cv_predecl_mpinfou" in
     yes)
	cat >>confdefs.h <<_ACEOF
#ifndef MPINFOU_PREDECLARED
# define MPINFOU_PREDECLARED
typedef union mpinfou {
	struct pdk_mpinfo *pdkptr;
	struct mpinfo *pikptr;
} mpinfou_t;
#endif
_ACEOF

    esac
esac

case "$host" in
 *-linux*)
    for ac_header in linux/if_addr.h
do :
  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
	#ifdef HAVE_SYS_SOCKET_H
	# include <sys/socket.h>
	#endif

"
if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LINUX_IF_ADDR_H 1
_ACEOF

fi

done

esac

for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
for ac_header in sys/sysctl.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
    #if defined HAVE_SYS_PARAM_H
    # include <sys/param.h>
    #endif

"
if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SYSCTL_H 1
_ACEOF

fi

done

for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in resolv.h
do :
  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_ARPA_NAMESER_H
    # include <arpa/nameser.h>
    #endif

"
if test "x$ac_cv_header_resolv_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RESOLV_H 1
_ACEOF

fi

done


for ac_header in net/if_var.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
    #if HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif

"
if test "x$ac_cv_header_net_if_var_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_VAR_H 1
_ACEOF

fi

done


for ac_header in netinet/ip.h netinet/in_var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_VAR_H
    # include <net/if_var.h>
    #endif
    #ifdef HAVE_NETINET_IN_SYSTM_H
    # include <netinet/in_systm.h>
    #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


# HMS: Do we need to check for -lsocket before or after these tests?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
$as_echo_n "checking for library containing inet_pton... " >&6; }
if ${ac_cv_search_inet_pton+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_pton ();
int
main ()
{
return inet_pton ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' nsl; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_pton=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_pton+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_pton+:} false; then :

else
  ac_cv_search_inet_pton=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
$as_echo "$ac_cv_search_inet_pton" >&6; }
ac_res=$ac_cv_search_inet_pton
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_pton" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
 esac

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
$as_echo_n "checking for library containing inet_ntop... " >&6; }
if ${ac_cv_search_inet_ntop+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_ntop ();
int
main ()
{
return inet_ntop ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_ntop=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_ntop+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_ntop+:} false; then :

else
  ac_cv_search_inet_ntop=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
$as_echo "$ac_cv_search_inet_ntop" >&6; }
ac_res=$ac_cv_search_inet_ntop
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_ntop" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
 esac

fi


# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
# avoid keying on the OS name:  If we find socket functions in
# libsocket, next try for them in libxnet without libsocket, if found,
# list both.  If we simply tested libxnet first, we would find the
# functions there and never add libsocket.  See also [Bug 660]
# http://bugs.ntp.org/show_bug.cgi?id=660#c9
saved_LIBS=$LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
$as_echo_n "checking for library containing setsockopt... " >&6; }
if ${ac_cv_search_setsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char setsockopt ();
int
main ()
{
return setsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' socket; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_setsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_setsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_setsockopt+:} false; then :

else
  ac_cv_search_setsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
$as_echo "$ac_cv_search_setsockopt" >&6; }
ac_res=$ac_cv_search_setsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_setsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
 esac

fi

case "$ac_cv_search_setsockopt" in
 -lsocket)
    LIBS="$saved_LIBS"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
$as_echo_n "checking for library containing getsockopt... " >&6; }
if ${ac_cv_search_getsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getsockopt ();
int
main ()
{
return getsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' xnet; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_getsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_getsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_getsockopt+:} false; then :

else
  ac_cv_search_getsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
$as_echo "$ac_cv_search_getsockopt" >&6; }
ac_res=$ac_cv_search_getsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_getsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
 esac

fi

    # XXX Possible trouble here - reading the comments above and looking at the
    # code below I wonder if we'll add -lxnet when we don't need it.
    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
    # there when it is not needed?
    case "$ac_cv_search_getsockopt" in
     -lxnet)
	LIBS="-lxnet -lsocket $saved_LIBS"
	;;
     *) LIBS="-lsocket $saved_LIBS"
	;;
    esac
    ;;
esac
{ saved_LIBS=; unset saved_LIBS;}

# Bug 2427 - look for recvmsg here.
for ac_func in recvmsg
do :
  ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
if test "x$ac_cv_func_recvmsg" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RECVMSG 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if ${ac_cv_c_inline+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }

case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac


case "$ac_cv_c_inline" in
 '')
    ;;
 *)

$as_echo "#define HAVE_INLINE 1" >>confdefs.h


esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if ${ac_cv_header_time+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_time=yes
else
  ac_cv_header_time=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h

fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
$as_echo_n "checking size of time_t... " >&6; }
if ${ac_cv_sizeof_time_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_time_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (time_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_time_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
$as_echo "$ac_cv_sizeof_time_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
$as_echo_n "checking whether char is unsigned... " >&6; }
if ${ac_cv_c_char_unsigned+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_char_unsigned=no
else
  ac_cv_c_char_unsigned=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
$as_echo "$ac_cv_c_char_unsigned" >&6; }
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h

fi
		# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
$as_echo_n "checking size of signed char... " >&6; }
if ${ac_cv_sizeof_signed_char+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_signed_char" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (signed char)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_signed_char=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
$as_echo "$ac_cv_sizeof_signed_char" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
_ACEOF


ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
if test "x$ac_cv_type_s_char" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_S_CHAR 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
if test "x$ac_cv_type_long_long" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF



case "$ac_cv_type_long_long" in
 no)
    ;;
 *)
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
if ${ac_cv_sizeof_long_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF


    ;;
esac

case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
 *yes)
    # We have a typedef for s_char.  Might as well believe it...
    ;;
 no0no)
    # We have signed chars, can't say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 no1no)
    # We have signed chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 yes0no)
    # We have unsigned chars, can't say 'signed char', no s_char typedef.
    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
    ;;
 yes1no)
    # We have unsigned chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
if ${ac_cv_type_uid_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "uid_t" >/dev/null 2>&1; then :
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; }
if test $ac_cv_type_uid_t = no; then

$as_echo "#define uid_t int" >>confdefs.h


$as_echo "#define gid_t int" >>confdefs.h

fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
$as_echo_n "checking if we're including debugging code... " >&6; }
# Check whether --enable-debugging was given.
if test "${enable_debugging+set}" = set; then :
  enableval=$enable_debugging; ntp_ok=$enableval
else
  ntp_ok=yes

fi

case "$ntp_ok" in
 yes)

$as_echo "#define DEBUG 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }



# check if we can compile with pthreads
for ac_header in semaphore.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
if test "x$ac_cv_header_semaphore_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SEMAPHORE_H 1
_ACEOF

fi

done

for ac_func in socketpair
do :
  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
if test "x$ac_cv_func_socketpair" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKETPAIR 1
_ACEOF

fi
done

# Check whether --enable-thread-support was given.
if test "${enable_thread_support+set}" = set; then :
  enableval=$enable_thread_support;
else
  enable_thread_support=yes

fi

have_pthreads=no
case "$enable_thread_support" in
 yes)
    ol_found_pthreads=no



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

# OpenLDAP --with-threads

# Check whether --with-threads was given.
if test "${with_threads+set}" = set; then :
  withval=$with_threads;
	ol_arg=invalid
	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
	fi
	ol_with_threads="$ol_arg"

else
  	ol_with_threads="auto"
fi
# end --with-threads


case "$ol_with_threads$host" in
 auto*-*-solaris2.[0-6])
        ol_with_threads=no
    ;;
esac


ol_aix_threads=no
case "$host" in
*-*-aix*) 	if test -z "$CC" ; then
		case "$ol_with_threads" in
		auto | yes |  posix) ol_aix_threads=yes ;;
		esac
	fi
;;
esac

if test $ol_aix_threads = yes ; then
	if test -z "${CC}" ; then
		for ac_prog in cc_r xlc_r cc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$CC" && break
done


		if test "$CC" = cc ; then
						if test $ol_with_threads != auto ; then
				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
			fi
			ol_with_threads=no
  		fi
	fi

	case ${CC} in cc_r | xlc_r)
		ol_with_threads=posix
		ol_cv_pthread_create=yes
		;;
	esac
fi

ol_link_threads=no
ol_with_yielding_select=${ol_with_yielding_select-auto}

case $ol_with_threads in auto | yes | nt)


	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
if test "x$ac_cv_func__beginthread" = xyes; then :

fi


	if test $ac_cv_func__beginthread = yes ; then

$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h

		ol_cv_nt_threads=yes
	fi


	if test "$ol_cv_nt_threads" = yes ; then
		ol_link_threads=nt
		ol_with_threads=found
		ol_with_yielding_select=yes


$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h


$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h

	fi

	if test $ol_with_threads = nt ; then
		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | posix)

	for ac_header in pthread.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_H 1
_ACEOF

fi

done


	if test $ac_cv_header_pthread_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
$as_echo_n "checking POSIX thread version... " >&6; }
if ${ol_cv_pthread_version+:} false; then :
d14016 6
a14021 2

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a14023 2
#		include <pthread.h>

a14027 2
		int i = PTHREAD_CREATE_JOINABLE;

d14032 51
a14082 1
if ac_fn_c_try_compile "$LINENO"; then :
d14084 6
a14089 3
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
d14091 11
a14101 8
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_detach" >/dev/null 2>&1; then :
  ol_cv_pthread_version=10
else
  ol_cv_pthread_version=8
fi
rm -f conftest*
d14103 25
a14127 1
else
d14129 8
a14136 2
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14138 10
a14147 4
#		include <pthread.h>
#		ifdef PTHREAD_CREATE_UNDETACHED
		draft7
#		endif
d14149 3
a14151 5
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft7" >/dev/null 2>&1; then :
  ol_cv_pthread_version=7
else
d14153 12
a14164 3
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
d14166 11
a14176 5
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
  ol_cv_pthread_version=6
else
d14178 22
a14199 2
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14201 8
a14208 4
#		include <pthread.h>
#ifdef		PTHREAD_MUTEX_INITIALIZER
		draft5
#endif
d14210 21
a14230 8
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft5" >/dev/null 2>&1; then :
  ol_cv_pthread_version=5
else
  ol_cv_pthread_version=4
fi
rm -f conftest*
d14232 10
a14241 2
fi
rm -f conftest*
d14243 6
a14248 2
fi
rm -f conftest*
d14250 7
a14256 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d14258 3
a14261 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
$as_echo "$ol_cv_pthread_version" >&6; }
d14263 2
a14264 29

		if test $ol_cv_pthread_version != 0 ; then

cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREADS $ol_cv_pthread_version
_ACEOF

		else
			as_fn_error $? "unknown pthread version" "$LINENO" 5
		fi

		# consider threads found
		ol_with_threads=found


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
d14266 2
a14267 3
rm -f conftest*


a14268 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then
a14269 1
$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
a14270 1
	fi
a14272 11
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
#ifdef _POSIX_THREAD_IS_GNU_PTH
	__gnu_pth__;
#endif
a14273 8
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
  ol_cv_header_gnu_pth_pthread_h=yes
else
  ol_cv_header_gnu_pth_pthread_h=no
fi
rm -f conftest*
a14275 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
a14277 8
		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
			for ac_header in sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_H 1
_ACEOF
a14278 1
fi
a14279 1
done
a14280 1
		fi
a14282 5
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
$as_echo_n "checking for pthread_create in default libraries... " >&6; }
if ${ol_cv_pthread_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14283 3
			if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14284 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14285 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14286 3
int
main ()
{
a14287 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14288 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14289 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14290 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14291 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14292 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14293 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14294 1
	return 0;
a14295 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14297 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14298 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14300 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14301 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14302 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14303 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14304 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14305 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14306 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14307 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14308 1
	return 0;
a14309 1
}
a14310 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14311 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
$as_echo "$ol_cv_pthread_create" >&6; }
a14312 4
		if test $ol_cv_pthread_create != no ; then
			ol_link_threads=posix
			ol_link_pthreads=""
		fi
a14313 8
		# Pthread try link: -kthread (ol_cv_pthread_kthread)
if test "$ol_link_threads" = no ; then
	# try -kthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
$as_echo_n "checking for pthread link with -kthread... " >&6; }
if ${ol_cv_pthread_kthread+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14314 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-kthread $LIBS"
a14315 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14316 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14317 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14318 3
int
main ()
{
a14319 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14320 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14321 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14322 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14323 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14324 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14325 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14326 1
	return 0;
a14327 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14329 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14330 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14332 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14333 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14334 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14335 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14336 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14337 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14338 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14339 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14340 1
	return 0;
a14341 1
}
a14342 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14344 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14345 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
$as_echo "$ol_cv_pthread_kthread" >&6; }
a14346 5
	if test $ol_cv_pthread_kthread = yes ; then
		ol_link_pthreads="-kthread"
		ol_link_threads=posix
	fi
fi
a14347 8
		# Pthread try link: -pthread (ol_cv_pthread_pthread)
if test "$ol_link_threads" = no ; then
	# try -pthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
$as_echo_n "checking for pthread link with -pthread... " >&6; }
if ${ol_cv_pthread_pthread+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14348 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthread $LIBS"
a14349 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14350 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14351 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14352 3
int
main ()
{
a14353 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14354 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14355 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14356 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14357 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14358 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14359 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14361 6
a14366 1
	return 0;
d14368 13
a14380 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_pthread=yes
d14382 15
a14396 1
  ol_cv_pthread_pthread=no
a14397 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14399 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14400 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14402 4
int main(argc, argv)
	int argc;
	char **argv;
{
d14404 7
a14410 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14412 6
a14417 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14419 4
a14422 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d14424 4
a14427 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14429 11
a14439 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d14441 5
a14445 6
	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
d14447 7
a14453 3

	return 0;

a14454 1

d14456 2
a14457 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthread=yes
d14459 1
a14459 1
  ol_cv_pthread_pthread=no
d14461 3
a14463 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14465 5
d14471 3
a14473 3

		# restore the LIBS
		LIBS="$ol_LIBS"
a14475 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
$as_echo "$ol_cv_pthread_pthread" >&6; }
d14477 1
a14477 5
	if test $ol_cv_pthread_pthread = yes ; then
		ol_link_pthreads="-pthread"
		ol_link_threads=posix
	fi
fi
d14479 8
a14486 6
		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
if test "$ol_link_threads" = no ; then
	# try -pthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
$as_echo_n "checking for pthread link with -pthreads... " >&6; }
if ${ol_cv_pthread_pthreads+:} false; then :
d14489 3
a14491 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthreads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14494 5
a14498 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14500 1
a14500 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d14504 1
a14504 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d14510 1
a14510 1
  ol_cv_pthread_pthreads=yes
d14512 1
a14512 1
  ol_cv_pthread_pthreads=no
d14516 15
d14532 3
a14534 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14537 5
a14541 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14543 3
a14545 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d14547 3
a14549 55
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

a14550 1

d14552 2
a14553 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthreads=yes
d14555 1
a14555 1
  ol_cv_pthread_pthreads=no
d14557 3
a14559 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14561 8
a14568 21


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
$as_echo "$ol_cv_pthread_pthreads" >&6; }

	if test $ol_cv_pthread_pthreads = yes ; then
		ol_link_pthreads="-pthreads"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
if test "$ol_link_threads" = no ; then
	# try -mthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
$as_echo_n "checking for pthread link with -mthreads... " >&6; }
if ${ol_cv_pthread_mthreads+:} false; then :
d14571 3
a14573 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-mthreads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14576 5
a14580 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14582 1
a14582 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d14586 1
a14586 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d14592 1
a14592 1
  ol_cv_pthread_mthreads=yes
d14594 1
a14594 1
  ol_cv_pthread_mthreads=no
d14598 11
d14610 3
a14612 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14615 5
a14619 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14621 3
a14623 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d14625 3
a14627 1
	return (void *) (p == NULL);
d14629 15
d14646 1
a14646 16
int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14647 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14648 38
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_mthreads=yes
else
  ol_cv_pthread_mthreads=no
d14650 2
a14651 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14655 1
a14655 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14656 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
$as_echo "$ol_cv_pthread_mthreads" >&6; }
a14657 4
	if test $ol_cv_pthread_mthreads = yes ; then
		ol_link_pthreads="-mthreads"
		ol_link_threads=posix
	fi
d14660 2
a14661 8
		# Pthread try link: -thread (ol_cv_pthread_thread)
if test "$ol_link_threads" = no ; then
	# try -thread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
$as_echo_n "checking for pthread link with -thread... " >&6; }
if ${ol_cv_pthread_thread+:} false; then :
  $as_echo_n "(cached) " >&6
else
d14663 5
a14667 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-thread $LIBS"
d14669 4
a14672 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14674 2
a14675 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d14677 2
a14678 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d14680 13
a14692 3
int
main ()
{
d14694 2
a14695 3
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
a14696 3
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14698 1
a14698 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14700 2
a14701 6
	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
d14703 5
a14707 1
	status = pthread_attr_setdetachstate(&attr, detach);
d14709 21
a14729 4
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
a14730 5
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14732 4
a14735 6
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
d14738 5
a14742 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14744 12
a14755 1
	return 0;
d14757 1
a14757 2
  ;
  return 0;
d14759 17
a14775 5
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_thread=yes
else
  ol_cv_pthread_thread=no
d14777 1
a14777 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14780 3
a14782 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d14784 15
a14798 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d14800 2
a14801 9

int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
a14802 3
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14804 1
a14804 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14806 2
a14807 6
	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
d14809 5
a14813 1
	status = pthread_attr_setdetachstate(&attr, detach);
d14815 21
a14835 4
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
a14836 5
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14838 4
a14841 6
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
d14844 5
a14848 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14850 12
a14861 1
	return 0;
d14863 1
d14865 20
a14885 8
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_thread=yes
else
  ol_cv_pthread_thread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14887 9
d14897 4
d14902 4
a14905 3
		# restore the LIBS
		LIBS="$ol_LIBS"

a14906 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
$as_echo "$ol_cv_pthread_thread" >&6; }
a14907 5
	if test $ol_cv_pthread_thread = yes ; then
		ol_link_pthreads="-thread"
		ol_link_threads=posix
	fi
fi
a14909 8
		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14910 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
a14911 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14912 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14913 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14914 3
int
main ()
{
a14915 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14916 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14917 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14918 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14919 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14920 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14921 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14922 1
	return 0;
d14924 9
a14932 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
d14934 18
a14951 1
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
a14952 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14954 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14955 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14957 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14958 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14959 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14960 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14961 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14962 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14963 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d14965 9
a14973 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14975 10
a14984 1
	return 0;
d14986 8
a14993 1
}
d14995 6
a15000 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a15002 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a15003 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
a15004 4
	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
d15006 5
d15012 1
a15012 12
		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc $LIBS"
a15013 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a15014 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a15015 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a15016 3
int
main ()
{
a15017 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a15018 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a15019 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a15020 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a15021 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a15022 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a15023 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a15024 1
	return 0;
d15026 1
a15026 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
else
  ol_cv_pthread_lpthread_lmach_lexc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a15028 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a15029 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15031 1
a15032 4
int main(argc, argv)
	int argc;
	char **argv;
{
a15033 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15035 10
a15044 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d15046 19
a15064 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a15065 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d15067 11
a15077 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d15079 8
a15086 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d15088 7
a15094 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d15096 3
a15098 1
	return 0;
d15100 5
a15105 1

d15107 2
a15108 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
d15110 1
a15110 1
  ol_cv_pthread_lpthread_lmach_lexc=no
d15112 1
a15112 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15114 3
d15118 1
a15118 3

		# restore the LIBS
		LIBS="$ol_LIBS"
a15120 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
d15122 3
a15124 13
	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
if test "$ol_link_threads" = no ; then
	# try -lpthread -Wl,-woff,85
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
d15127 3
d15131 5
a15135 12
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -Wl,-woff,85 $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15137 1
a15137 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15141 1
a15141 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15146 9
a15154 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
else
  ol_cv_pthread_lib_lpthread_woff=no
d15157 7
a15163 1
    conftest$ac_exeext conftest.$ac_ext
d15165 10
a15174 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d15176 1
a15177 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d15179 26
a15204 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15206 7
a15212 57

int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
d15214 2
a15215 4
  ol_cv_pthread_lib_lpthread_woff=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15219 26
a15244 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15246 2
d15249 7
a15255 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }

	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
		ol_link_pthreads="-lpthread -Wl,-woff,85"
		ol_link_threads=posix
	fi
d15259 5
a15263 6
		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
if test "$ol_link_threads" = no ; then
	# try -lpthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
$as_echo_n "checking for pthread link with -lpthread... " >&6; }
if ${ol_cv_pthread_lpthread+:} false; then :
d15266 19
d15286 11
a15296 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread $LIBS"
a15297 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a15298 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a15299 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15301 5
a15305 3
int
main ()
{
d15307 1
a15307 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15309 49
a15357 27
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d15359 7
a15365 16
	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
d15367 2
a15368 1
  ol_cv_pthread_lpthread=no
a15369 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d15372 4
a15375 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d15377 5
a15381 51
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a15382 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a15383 1
	return 0;
d15385 2
a15386 1
}
a15387 3
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
d15389 3
a15391 26
  ol_cv_pthread_lpthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
$as_echo "$ol_cv_pthread_lpthread" >&6; }

	if test $ol_cv_pthread_lpthread = yes ; then
		ol_link_pthreads="-lpthread"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
$as_echo_n "checking for pthread link with -lc_r... " >&6; }
if ${ol_cv_pthread_lc_r+:} false; then :
d15394 2
a15395 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15398 5
a15402 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15404 1
a15404 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15408 1
a15408 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15413 9
a15421 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
else
  ol_cv_pthread_lc_r=no
d15424 6
a15429 34
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a15430 43
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
d15432 1
a15432 1
  ol_cv_pthread_lc_r=no
d15434 2
a15435 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15437 5
a15441 4


		# restore the LIBS
		LIBS="$ol_LIBS"
a15443 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
$as_echo "$ol_cv_pthread_lc_r" >&6; }
a15444 4
	if test $ol_cv_pthread_lc_r = yes ; then
		ol_link_pthreads="-lc_r"
		ol_link_threads=posix
	fi
d15447 2
d15450 4
a15453 6
		# Pthread try link: -threads (ol_cv_pthread_threads)
if test "$ol_link_threads" = no ; then
	# try -threads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
$as_echo_n "checking for pthread link with -threads... " >&6; }
if ${ol_cv_pthread_threads+:} false; then :
d15456 2
a15457 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-threads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15460 5
a15464 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15466 1
a15466 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15470 1
a15470 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15475 9
a15483 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_threads=yes
else
  ol_cv_pthread_threads=no
d15486 6
a15491 41
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;
a15492 36
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_threads=yes
d15494 1
a15494 1
  ol_cv_pthread_threads=no
d15496 2
a15497 16
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
$as_echo "$ol_cv_pthread_threads" >&6; }

	if test $ol_cv_pthread_threads = yes ; then
		ol_link_pthreads="-threads"
		ol_link_threads=posix
	fi
d15499 5
d15505 4
a15508 7

		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
d15511 2
a15512 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15515 5
a15519 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15521 1
a15521 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15525 1
a15525 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15530 9
a15538 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
d15541 6
a15546 21
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

a15547 56
int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
d15549 1
a15549 1
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
d15551 2
a15552 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15554 5
d15560 1
a15560 3

		# restore the LIBS
		LIBS="$ol_LIBS"
a15562 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
a15563 4
	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
d15566 3
a15568 6
		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
d15571 2
a15572 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15575 5
a15579 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15581 1
a15581 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15585 1
a15585 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15590 9
a15598 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc=no
d15601 6
a15606 72
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;
a15607 5
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
d15609 1
a15609 1
  ol_cv_pthread_lpthreads_lmach_lexc=no
d15611 2
a15612 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15614 5
d15620 1
d15622 7
a15628 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15631 2
a15632 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
a15633 5
	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc"
		ol_link_threads=posix
	fi
fi
d15635 5
a15639 7
		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
  $as_echo_n "(cached) " >&6
d15641 1
d15643 1
a15643 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lexc $LIBS"
d15645 23
a15667 2
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15670 5
a15674 61
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
d15676 5
a15680 3

	return 0;

d15686 1
a15686 3
  ol_cv_pthread_lpthreads_lexc=yes
else
  ol_cv_pthread_lpthreads_lexc=no
d15690 19
a15708 2
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15711 5
a15715 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15717 3
a15719 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d15721 3
a15723 1
	return (void *) (p == NULL);
d15725 30
d15756 8
d15765 2
a15766 4
int main(argc, argv)
	int argc;
	char **argv;
{
d15768 12
a15779 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15781 1
a15781 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d15783 1
a15783 35
	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}
d15785 7
a15792 12
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lexc=yes
else
  ol_cv_pthread_lpthreads_lexc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"
a15794 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
d15796 1
a15796 5
	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lexc"
		ol_link_threads=posix
	fi
fi
d15799 5
a15803 6
		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
if test "$ol_link_threads" = no ; then
	# try -lpthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
if ${ol_cv_pthread_lib_lpthreads+:} false; then :
a15805 6

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads $LIBS"

		if test "$cross_compiling" = yes; then :
d15809 2
a15810 14
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15816 1
a15816 35
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a15817 9
	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;
d15823 2
a15824 2
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
d15826 2
a15827 1
  ol_cv_pthread_lib_lpthreads=no
d15829 1
a15829 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d15831 3
d15835 3
a15837 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d15839 1
a15839 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15841 2
d15844 5
a15848 4
int main(argc, argv)
	int argc;
	char **argv;
{
d15850 5
a15854 3
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
d15856 7
a15862 42
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

a15863 1

d15865 2
a15866 7
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
else
  ol_cv_pthread_lib_lpthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15868 3
d15872 2
d15875 2
a15876 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15878 1
a15878 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
d15880 6
a15885 22
	if test $ol_cv_pthread_lib_lpthreads = yes ; then
		ol_link_pthreads="-lpthreads"
		ol_link_threads=posix
	fi
fi


		if test $ol_link_threads != no ; then
			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"

						save_CPPFLAGS="$CPPFLAGS"
			save_LIBS="$LIBS"
			LIBS="$LTHREAD_LIBS $LIBS"

												for ac_func in sched_yield pthread_yield thr_yield
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a15886 2
fi
done
d15889 8
a15896 6
			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test $ac_cv_func_thr_yield = no ; then
								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
$as_echo_n "checking for sched_yield in -lrt... " >&6; }
if ${ac_cv_lib_rt_sched_yield+:} false; then :
d15910 1
a15910 1
char sched_yield ();
d15914 1
a15914 1
return sched_yield ();
d15920 1
a15920 1
  ac_cv_lib_rt_sched_yield=yes
d15922 1
a15922 1
  ac_cv_lib_rt_sched_yield=no
d15928 3
a15930 24
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"

$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h

					ac_cv_func_sched_yield=yes
else
  ac_cv_func_sched_yield=no
fi

			fi
			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test "$ac_cv_func_thr_yield" = no ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
			fi

						for ac_func in pthread_kill
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
if test "x$ac_cv_func_pthread_kill" = xyes; then :
d15932 1
a15932 1
#define HAVE_PTHREAD_KILL 1
d15935 1
a15935 3
fi
done

d15937 4
a15940 3
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
d15943 3
a15945 2

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15948 7
a15954 3
#include <pthread.h>
pthread_rwlock_t rwlock;

d15958 1
a15958 1
pthread_rwlock_destroy(&rwlock);
d15964 1
a15964 1
  ol_cv_func_pthread_rwlock_destroy=yes
d15966 1
a15966 1
  ol_cv_func_pthread_rwlock_destroy=no
d15970 10
a15981 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
d15983 1
a15983 1
$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
d15985 2
a15986 1
			fi
d15988 3
a15990 3
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_detach+:} false; then :
d15993 2
a15994 2

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15997 5
a16001 3
#include <pthread.h>
#ifndef NULL
#define NULL (void*)0
d16003 1
a16003 1

d16007 1
a16007 1
pthread_detach(NULL);
d16012 9
a16020 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_func_pthread_detach=yes
else
  ol_cv_func_pthread_detach=no
d16023 3
a16025 28
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
$as_echo "$ol_cv_func_pthread_detach" >&6; }

			if test $ol_cv_func_pthread_detach = no ; then
				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
			fi


$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h


						for ac_func in \
				pthread_setconcurrency \
				pthread_getconcurrency \
				thr_setconcurrency \
				thr_getconcurrency \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

d16028 1
d16030 2
a16031 10


	for ac_func in pthread_kill_other_threads_np
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
_ACEOF

d16033 2
a16034 8
done

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
$as_echo_n "checking for LinuxThreads implementation... " >&6; }
if ${ol_cv_sys_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
d16036 5
a16040 21
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
$as_echo "$ol_cv_sys_linux_threads" >&6; }




	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
$as_echo_n "checking for LinuxThreads consistency... " >&6; }
if ${ol_cv_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		if test $ol_cv_header_linux_threads = yes &&
		   test $ol_cv_sys_linux_threads = yes; then
			ol_cv_linux_threads=yes
		elif test $ol_cv_header_linux_threads = no &&
		     test $ol_cv_sys_linux_threads = no; then
			ol_cv_linux_threads=no
		else
			ol_cv_linux_threads=error
		fi
a16042 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
$as_echo "$ol_cv_linux_threads" >&6; }
d16044 3
a16046 8

			if test $ol_cv_linux_threads = error; then
				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
			fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
$as_echo_n "checking if pthread_create() works... " >&6; }
if ${ol_cv_pthread_create_works+:} false; then :
d16049 2
a16050 5

			if test "$cross_compiling" = yes; then :
  				ol_cv_pthread_create_works=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16053 5
a16057 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d16059 3
a16061 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d16063 3
a16065 55
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d16067 18
a16085 3
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create_works=yes
d16087 1
a16087 1
  ol_cv_pthread_create_works=no
d16089 2
a16090 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d16092 5
a16098 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
$as_echo "$ol_cv_pthread_create_works" >&6; }
d16100 5
a16104 16
			if test $ol_cv_pthread_create_works = no ; then
				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
			fi

			ol_replace_broken_yield=no

			if test $ol_replace_broken_yield = yes ; then

$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h

			fi

						if test x$ol_with_yielding_select = xauto ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
$as_echo_n "checking if select yields when using pthreads... " >&6; }
if ${ol_cv_pthread_select_yields+:} false; then :
d16107 3
a16109 5

				if test "$cross_compiling" = yes; then :
  ol_cv_pthread_select_yields=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16112 5
a16116 6
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#ifndef NULL
#define NULL (void*) 0
d16118 3
a16120 5

static int fildes[2];

static void *task(p)
	void *p;
d16122 3
a16124 59
	int i;
	struct timeval tv;

	fd_set rfds;

	tv.tv_sec=10;
	tv.tv_usec=0;

	FD_ZERO(&rfds);
	FD_SET(fildes[0], &rfds);

	/* we're not interested in any fds */
	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);

	if(i < 0) {
		perror("select");
		exit(10);
	}

	exit(0); /* if we exit here, the select blocked the whole process */
}

int main(argc, argv)
	int argc;
	char **argv;
{
	pthread_t t;

	/* create a pipe to select */
	if(pipe(&fildes[0])) {
		perror("select");
		exit(1);
	}

#ifdef HAVE_PTHREAD_SETCONCURRENCY
	(void) pthread_setconcurrency(2);
#else
#ifdef HAVE_THR_SETCONCURRENCY
	/* Set Solaris LWP concurrency to 2 */
	thr_setconcurrency(2);
#endif
#endif

#if HAVE_PTHREADS < 6
	pthread_create(&t, pthread_attr_default, task, NULL);
#else
	pthread_create(&t, NULL, task, NULL);
#endif

	/* make sure task runs first */
#ifdef HAVE_THR_YIELD
	thr_yield();
#elif defined( HAVE_SCHED_YIELD )
	sched_yield();
#elif defined( HAVE_PTHREAD_YIELD )
	pthread_yield();
#endif

	exit(2);
d16127 2
a16128 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_select_yields=no
d16130 1
a16130 1
  ol_cv_pthread_select_yields=yes
d16132 3
a16134 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d16136 8
a16145 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
$as_echo "$ol_cv_pthread_select_yields" >&6; }
d16147 1
a16147 20
				if test $ol_cv_pthread_select_yields = cross ; then
					as_fn_error $? "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
				fi

				if test $ol_cv_pthread_select_yields = yes ; then
					ol_with_yielding_select=yes
				fi
			fi

						CPPFLAGS="$save_CPPFLAGS"
			LIBS="$save_LIBS"
		else
			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
		fi
	fi

	if test $ol_with_threads = posix ; then
		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
	fi
	;;
d16149 1
a16149 4

case $ol_with_threads in auto | yes | mach)

		for ac_header in mach/cthreads.h cthreads.h
d16152 13
a16164 1
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
a16173 2
	if test $ac_cv_header_mach_cthreads_h = yes ; then
		ol_with_threads=found
d16175 9
a16183 3
				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
d16185 1
d16188 3
a16190 4
		if test $ol_link_threads = no ; then
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
$as_echo_n "checking for cthread_fork with -all_load... " >&6; }
if ${ol_cv_cthread_all_load+:} false; then :
d16193 6
a16199 5
								save_LIBS="$LIBS"
				LIBS="-all_load $LIBS"
				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <mach/cthreads.h>
a16203 2
					cthread_fork((void *)0, (void *)0);

d16208 2
a16209 2
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_cthread_all_load=yes
d16211 1
a16211 1
  ol_cv_cthread_all_load=no
d16213 11
a16223 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
								LIBS="$save_LIBS"
d16225 2
d16228 1
a16228 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
$as_echo "$ol_cv_cthread_all_load" >&6; }
d16230 1
a16230 6
			if test $ol_cv_cthread_all_load = yes ; then
				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
				ol_link_threads=mach
				ol_with_threads=found
			fi
		fi
d16232 5
a16236 1
	elif test $ac_cv_header_cthreads_h = yes ; then
d16238 3
a16240 1
		ol_with_threads=found
d16242 2
a16243 5
				save_LIBS="$LIBS"
		LIBS="$LIBS -lthreads"
		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
d16245 1
d16247 1
a16247 1
		LIBS="$save_LIBS"
d16249 19
a16267 7
		if test $ol_link_threads = yes ; then
			LTHREAD_LIBS="-lthreads"
			ol_link_threads=mach
			ol_with_threads=found
		else
			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
		fi
d16269 13
a16281 3
	elif test $ol_with_threads = mach ; then
		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
	fi
d16283 6
a16288 1
	if test $ol_link_threads = mach ; then
d16290 5
a16294 1
$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
d16296 1
a16296 5
	elif test $ol_with_threads = found ; then
		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
	fi
	;;
esac
d16298 1
a16298 1
case $ol_with_threads in auto | yes | pth)
d16300 1
a16300 1
	for ac_header in pth.h
d16302 2
a16303 2
  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
if test "x$ac_cv_header_pth_h" = xyes; then :
d16305 1
a16305 1
#define HAVE_PTH_H 1
d16312 5
a16316 5

	if test $ac_cv_header_pth_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
$as_echo_n "checking for pth_version in -lpth... " >&6; }
if ${ac_cv_lib_pth_pth_version+:} false; then :
d16320 1
a16320 1
LIBS="-lpth  $LIBS"
d16330 1
a16330 1
char pth_version ();
d16334 1
a16334 1
return pth_version ();
d16340 1
a16340 1
  ac_cv_lib_pth_pth_version=yes
d16342 1
a16342 1
  ac_cv_lib_pth_pth_version=no
d16348 45
a16392 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
  have_pth=yes
else
  have_pth=no
d16395 10
d16406 1
a16406 1
		if test $have_pth = yes ; then
d16408 1
a16408 1
$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
d16410 8
a16417 3
			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
			ol_link_threads=pth
			ol_with_threads=found
d16419 1
a16419 7
			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi
		fi
	fi
	;;
esac
d16421 1
a16421 1
case $ol_with_threads in auto | yes | lwp)
d16423 1
a16423 1
		for ac_header in thread.h synch.h
a16435 11
	if test $ac_cv_header_thread_h = yes &&
	   test $ac_cv_header_synch_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
$as_echo_n "checking for thr_create in -lthread... " >&6; }
if ${ac_cv_lib_thread_thr_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16437 24
a16460 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char thr_create ();
int
main ()
{
return thr_create ();
  ;
  return 0;
}
d16462 1
a16462 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_thread_thr_create=yes
else
  ac_cv_lib_thread_thr_create=no
d16464 16
a16479 10
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
  have_thr=yes
else
  have_thr=no
d16482 1
d16484 2
a16485 1
		if test $have_thr = yes ; then
d16487 17
a16503 1
$as_echo "#define HAVE_THR 1" >>confdefs.h
d16505 2
a16506 2
			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
			ol_link_threads=thr
d16508 1
a16508 7
			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi

						for ac_func in \
				thr_setconcurrency \
				thr_getconcurrency \
d16510 1
d16512 2
a16513 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d16515 1
a16515 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16519 1
d16522 1
a16522 4
		fi
	fi

		for ac_header in lwp/lwp.h
d16524 2
a16525 2
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
d16527 1
a16527 1
#define HAVE_LWP_LWP_H 1
a16533 10
	if test $ac_cv_header_lwp_lwp_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
$as_echo_n "checking for lwp_create in -llwp... " >&6; }
if ${ac_cv_lib_lwp_lwp_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llwp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16535 9
a16543 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lwp_create ();
int
main ()
{
return lwp_create ();
  ;
  return 0;
}
d16545 1
a16545 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_lwp_lwp_create=yes
d16547 2
a16548 12
  ac_cv_lib_lwp_lwp_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
  have_lwp=yes
else
  have_lwp=no
d16551 1
d16553 11
a16563 3
		if test $have_lwp = yes ; then

$as_echo "#define HAVE_LWP 1" >>confdefs.h
a16564 8
			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
			ol_link_threads=lwp

			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=no
			fi
		fi
	fi
d16566 2
d16570 8
a16577 1
if test $ol_with_yielding_select = yes ; then
d16579 5
a16583 1
$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
d16587 1
a16587 2
if test $ol_with_threads = manual ; then
		ol_link_threads=yes
d16589 1
a16589 2
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
d16591 1
a16591 1
	for ac_header in pthread.h sched.h
d16593 6
a16598 3
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d16600 1
a16600 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d16607 1
a16607 1
	for ac_func in sched_yield pthread_yield
d16609 2
a16610 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d16612 1
a16612 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16616 1
d16619 6
d16626 4
a16629 8
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
a16630 8
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
fi
rm -f conftest*

a16632 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then
d16634 1
a16634 1
$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
d16636 1
a16636 4
	fi


	for ac_header in mach/cthreads.h
d16638 3
a16640 2
  ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
d16642 1
a16642 1
#define HAVE_MACH_CTHREADS_H 1
d16649 1
a16649 1
	for ac_header in lwp/lwp.h
d16651 15
a16665 2
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
d16667 1
a16667 1
#define HAVE_LWP_LWP_H 1
d16674 1
a16674 1
	for ac_header in thread.h synch.h
d16677 20
a16696 1
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
a16705 14
fi

if test $ol_link_threads != no && test $ol_link_threads != nt ; then

$as_echo "#define REENTRANT 1" >>confdefs.h


$as_echo "#define _REENTRANT 1" >>confdefs.h


$as_echo "#define THREAD_SAFE 1" >>confdefs.h


$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
d16707 4
a16710 13

$as_echo "#define THREADSAFE 1" >>confdefs.h


$as_echo "#define _THREADSAFE 1" >>confdefs.h


$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h


			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
$as_echo_n "checking for thread specific errno... " >&6; }
if ${ol_cv_errno_thread_specific+:} false; then :
d16713 13
a16726 10
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <errno.h>
int
main ()
{
errno = 0;
  ;
  return 0;
}
d16728 3
a16730 2
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_errno_thread_specific=yes
d16732 2
a16733 1
  ol_cv_errno_thread_specific=no
d16735 2
a16736 2
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d16739 6
a16744 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
$as_echo "$ol_cv_errno_thread_specific" >&6; }
d16746 1
a16746 5
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
$as_echo_n "checking for thread specific h_errno... " >&6; }
if ${ol_cv_h_errno_thread_specific+:} false; then :
  $as_echo_n "(cached) " >&6
else
d16748 6
a16753 10
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netdb.h>
int
main ()
{
h_errno = 0;
  ;
  return 0;
}
a16754 7
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_h_errno_thread_specific=yes
else
  ol_cv_h_errno_thread_specific=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
a16756 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
$as_echo "$ol_cv_h_errno_thread_specific" >&6; }
d16758 1
a16758 5
	if test $ol_cv_errno_thread_specific != yes ||
	   test $ol_cv_h_errno_thread_specific != yes ; then
		LIBS="$LTHREAD_LIBS $LIBS"
		LTHREAD_LIBS=""
	fi
d16760 2
a16761 1
fi
d16763 1
a16763 4
if test $ol_link_threads = no ; then
	if test $ol_with_threads = yes ; then
		as_fn_error $? "no suitable thread support" "$LINENO" 5
	fi
d16765 9
a16773 5
	if test $ol_with_threads = auto ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
		ol_with_threads=no
	fi
d16775 1
d16777 1
a16777 1
$as_echo "#define NO_THREADS 1" >>confdefs.h
d16779 8
a16786 9
	LTHREAD_LIBS=""
	BUILD_THREAD=no
else
	BUILD_THREAD=yes
fi

if test $ol_link_threads != no ; then

$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
d16790 1
a16790 4
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
case "$ol_with_threads" in
 no)
    ol_pthread_ok=no
d16792 2
d16796 1
a16796 18
    ol_found_pthreads=yes
    ;;
esac

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    case "$ol_found_pthreads" in
     yes)
	saved_LIBS="$LIBS"
	LIBS="$LTHREAD_LIBS $LIBS"
	saved_CFLAGS="$CFLAGS"
	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
	for ac_func in sem_timedwait
d16798 2
a16799 2
  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
if test "x$ac_cv_func_sem_timedwait" = xyes; then :
d16801 1
a16801 1
#define HAVE_SEM_TIMEDWAIT 1
d16805 1
d16808 1
a16808 10
	LIBS="$saved_LIBS"
	{ saved_LIBS=; unset saved_LIBS;}
	CFLAGS="$saved_CFLAGS"
	{ saved_CFLAGS=; unset saved_CFLAGS;}
	case "$ac_cv_func_sem_timedwait" in
	 yes)
	    PTHREAD_LIBS="$LTHREAD_LIBS"
	    have_pthreads=yes
	esac
    esac
d16810 8
d16819 1
a16819 19
case "$have_pthreads" in
 yes)
    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
    saved_LIBS="$LIBS"
    LIBS="$LTHREAD_LIBS $LIBS"
    saved_CFLAGS="$CFLAGS"
    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
$as_echo_n "checking size of pthread_t... " >&6; }
if ${ac_cv_sizeof_pthread_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
	    $ac_includes_default
	    #include <pthread.h>
d16821 1
d16823 8
a16830 1
"; then :
a16831 9
else
  if test "$ac_cv_type_pthread_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (pthread_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_pthread_t=0
   fi
d16834 1
a16834 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
d16836 8
a16843 4


cat >>confdefs.h <<_ACEOF
#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
d16846 1
d16848 1
a16848 1
    LIBISC_PTHREADS_NOTHREADS=pthreads
d16850 11
a16860 18
$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h

    #
    # We'd like to use sigwait() too
    #
    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
if test "x$ac_cv_func_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
$as_echo_n "checking for sigwait in -lc... " >&6; }
if ${ac_cv_lib_c_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a16861 19
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_sigwait=yes
else
  ac_cv_lib_c_sigwait=no
a16862 18
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
$as_echo "$ac_cv_lib_c_sigwait" >&6; }
if test "x$ac_cv_lib_c_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
$as_echo_n "checking for sigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16864 1
a16864 38
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread_sigwait=yes
else
  ac_cv_lib_pthread_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread__Psigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16866 10
a16875 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char _Psigwait ();
int
main ()
{
return _Psigwait ();
  ;
  return 0;
}
a16876 15
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread__Psigwait=yes
else
  ac_cv_lib_pthread__Psigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
  have_sigwait=yes
else
  have_sigwait=no
d16880 1
d16882 11
a16892 2
fi

d16896 1
d16898 12
a16909 28
fi

    case "$host:$have_sigwait" in
     *-freebsd*:no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
$as_echo_n "checking for sigwait in -lc_r... " >&6; }
if ${ac_cv_lib_c_r_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc_r  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
a16910 13
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_r_sigwait=yes
else
  ac_cv_lib_c_r_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
  have_sigwait=yes
d16914 1
a16914 4
    esac
    case "$have_sigwait" in
     yes)
	ac_cv_func_sigwait=yes
d16916 3
a16918 5
$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h

    esac

    for ac_func in pthread_attr_getstacksize
d16920 3
a16922 2
  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
d16924 1
a16924 1
#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
d16928 1
d16931 2
a16932 1
    for ac_func in pthread_attr_setstacksize sysconf
d16934 5
a16938 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d16940 1
a16940 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16944 1
d16947 8
d16956 1
a16956 14
    case "$host" in
     *-freebsd5.[012]|*-freebsd5.[012].*)
	;;
     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)

$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h

	;;
     *-bsdi3.*|*-bsdi4.0*)

$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h

	;;
     *-linux*)
d16958 1
a16958 5
$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h

	;;
     *-solaris*)
	$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d16960 1
a16960 1
	for ac_func in pthread_setconcurrency
d16962 3
a16964 2
  ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
d16966 1
a16966 1
#define HAVE_PTHREAD_SETCONCURRENCY 1
d16970 1
d16973 1
a16973 28
	case "$ac_cv_func_pthread_setconcurrency" in
	 yes)

$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h

	esac
	;;
     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)

$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h

	;;
    esac
    hack_shutup_pthreadonceinit=no
    case "$host" in
     *-aix5.[123].*)
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.[89])
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.1[0-9])
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16976 10
a16985 1
			#include <pthread.h>
d16987 12
a16998 3
int
main ()
{
a16999 2
		        static pthread_once_t once_test =
						PTHREAD_ONCE_INIT;
d17001 4
a17004 4

  ;
  return 0;
}
a17005 7
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_braces_around_pthread_once_init=no
else
  ntp_cv_braces_around_pthread_once_init=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a17007 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
	case "$ntp_cv_braces_around_pthread_once_init" in
	 yes)
	    hack_shutup_pthreadonceinit=yes
	esac
	;;
    esac
    case "$hack_shutup_pthreadonceinit" in
     yes)
d17009 1
a17009 1
$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
a17010 10
    esac
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
    CFLAGS="$saved_CFLAGS"
    { saved_CFLAGS=; unset saved_CFLAGS;}
    ;;
 *)
    LIBISC_PTHREADS_NOTHREADS=nothreads
    ;;
esac
a17011 6
 if test "$have_pthreads" != "no"; then
  PTHREADS_TRUE=
  PTHREADS_FALSE='#'
else
  PTHREADS_TRUE='#'
  PTHREADS_FALSE=
d17013 1
d17015 8
d17024 1
d17026 1
d17028 3
a17030 8



case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
 no:yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
if ${ntp_cv_vsnprintf_percent_m+:} false; then :
a17032 4
  if test "$cross_compiling" = yes; then :
  ntp_cv_vsnprintf_percent_m=no

else
d17035 3
a17037 29

		    #include <stdarg.h>
		    #include <errno.h>
		    #include <stdio.h>
		    #include <string.h>

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    );

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    )
		    {
			    va_list	ap;
			    int		rc;

			    va_start(ap, fmt);
			    rc = vsnprintf(dst, sz, fmt, ap);
			    va_end(ap);

			    return rc;
		    }
d17042 2
a17043 12

		    char	sbuf[512];
		    char	pbuf[512];
		    int		slen;

		    strcpy(sbuf, strerror(ENOENT));
		    errno = ENOENT;
		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
					  "wrong");
		    return strcmp(sbuf, pbuf);


d17048 2
a17049 2
if ac_fn_c_try_run "$LINENO"; then :
  ntp_cv_vsnprintf_percent_m=yes
d17051 1
a17051 1
  ntp_cv_vsnprintf_percent_m=no
d17053 1
a17053 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d17055 3
d17059 1
a17061 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
    case "$ntp_cv_vsnprintf_percent_m" in
     yes)
d17063 3
a17065 6
$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h

    esac
esac

for ac_header in sys/clockctl.h
d17067 3
a17069 2
  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
d17071 1
a17071 1
#define HAVE_SYS_CLOCKCTL_H 1
d17078 3
a17080 17

# Check whether --enable-clockctl was given.
if test "${enable_clockctl+set}" = set; then :
  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
else
  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
$as_echo "$ntp_use_dev_clockctl" >&6; }


for ac_header in sys/capability.h sys/prctl.h
a17092 35

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }

case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
 yesyes)
    case "$host" in
     mips-sgi-irix*)
	ntp_have_linuxcaps=no
	;;
     *) ntp_have_linuxcaps=yes
	;;
    esac
    ;;
 *)
    ntp_have_linuxcaps=no
    ;;
esac

# Check whether --enable-linuxcaps was given.
if test "${enable_linuxcaps+set}" = set; then :
  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
$as_echo "$ntp_have_linuxcaps" >&6; }

case "$ntp_have_linuxcaps" in
 yes)

$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h

    LIBS="$LIBS -lcap"
d17096 3
a17098 2

for ac_header in priv.h
d17100 3
a17102 2
  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
if test "x$ac_cv_header_priv_h" = xyes; then :
d17104 1
a17104 1
#define HAVE_PRIV_H 1
a17107 1

d17110 3
a17112 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }

case "$ac_cv_header_priv_h" in
d17114 6
a17119 5
    case "$host" in
     *-solaris*)
	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
if test "x$ac_cv_func_setppriv" = xyes; then :
  ntp_have_solarisprivs=yes
d17121 4
a17124 1
  ntp_have_solarisprivs=no
d17126 23
d17150 6
d17157 1
a17157 7
	;;
    esac
esac

# Check whether --enable-solarisprivs was given.
if test "${enable_solarisprivs+set}" = set; then :
  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
d17160 9
d17171 23
d17195 1
a17195 9
case "$ntp_have_solarisprivs" in
 yes)

$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
$as_echo "$ntp_have_solarisprivs" >&6; }
d17197 4
a17200 12
case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
 *yes*)

$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h

esac

case "$host" in
 *-*-darwin*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
$as_echo_n "checking for library containing res_9_init... " >&6; }
if ${ac_cv_search_res_9_init+:} false; then :
d17203 2
a17204 1
  ac_func_search_save_LIBS=$LIBS
d17214 1
a17214 1
char res_9_init ();
d17218 1
a17218 1
return res_9_init ();
d17223 4
a17226 9
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_9_init=$ac_res
d17229 2
a17230 3
    conftest$ac_exeext
  if ${ac_cv_search_res_9_init+:} false; then :
  break
d17232 6
a17237 2
done
if ${ac_cv_search_res_9_init+:} false; then :
d17239 1
a17239 11
else
  ac_cv_search_res_9_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
$as_echo "$ac_cv_search_res_9_init" >&6; }
ac_res=$ac_cv_search_res_9_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17243 3
a17245 4
    ;;
 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
$as_echo_n "checking for library containing res_init... " >&6; }
if ${ac_cv_search_res_init+:} false; then :
d17248 2
a17249 1
  ac_func_search_save_LIBS=$LIBS
d17259 1
a17259 1
char res_init ();
d17263 1
a17263 1
return res_init ();
d17268 4
a17271 9
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_init=$ac_res
d17274 2
a17275 3
    conftest$ac_exeext
  if ${ac_cv_search_res_init+:} false; then :
  break
d17277 6
a17282 2
done
if ${ac_cv_search_res_init+:} false; then :
d17284 1
a17284 11
else
  ac_cv_search_res_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
$as_echo "$ac_cv_search_res_init" >&6; }
ac_res=$ac_cv_search_res_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17288 1
a17288 3
    ;;
esac
for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
d17291 1
a17291 13
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
d17301 2
d17304 1
a17304 8
#HMS: Why do we do this check so "early"?
for ac_func in res_init
do :
  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
if test "x$ac_cv_func_res_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RES_INIT 1
_ACEOF
d17306 4
a17309 72
else
  for ac_func in __res_init
do :
  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
if test "x$ac_cv_func___res_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___RES_INIT 1
_ACEOF

fi
done

fi
done


# We also need -lsocket, but we have tested for that already.
ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
if test "x$ac_cv_func_inet_ntop" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
if test "x$ac_cv_func_inet_pton" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h

fi


ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
if test "x$ac_cv_type_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
if test "x$ac_cv_type_u_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT32 1
_ACEOF


fi




case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
$as_echo_n "checking for int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_int32_with_dns+:} false; then :
d17315 1
a17315 4
		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>
d17321 2
a17322 1
		    size_t cb = sizeof(int32);
d17328 1
d17331 1
a17331 3
  ntp_cv_type_int32_with_dns=yes
else
  ntp_cv_type_int32_with_dns=no
d17337 3
a17339 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
$as_echo "$ntp_cv_type_int32_with_dns" >&6; }
    case "$ntp_cv_type_int32_with_dns" in
d17342 1
a17342 1
$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
d17345 1
d17348 14
a17361 9
case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
$as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_u_int32_with_dns+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d17363 1
a17363 4
		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>
d17365 1
a17365 3
int
main ()
{
a17366 1
		    size_t cb = sizeof(u_int32);
d17368 5
d17374 4
a17377 3
  ;
  return 0;
}
a17378 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_type_u_int32_with_dns=yes
else
  ntp_cv_type_u_int32_with_dns=no
d17381 18
a17398 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a17400 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
    case "$ntp_cv_type_u_int32_with_dns" in
     yes)
d17402 1
a17402 1
$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
a17403 2
    esac
esac
d17405 1
a17405 1
for ac_header in sys/timepps.h
d17407 14
a17420 7
  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
	#ifdef HAVE_SYS_TIME_H
	# include <sys/time.h>
	#endif
	#ifdef HAVE_ERRNO_H
	# include <errno.h>
	#endif
d17422 11
d17435 1
a17435 1
if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
d17437 1
a17437 1
#define HAVE_SYS_TIMEPPS_H 1
d17445 3
a17447 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
$as_echo_n "checking for struct timespec... " >&6; }
if ${ntp_cv_struct_timespec+:} false; then :
a17452 10
		#include <sys/time.h>
		/* Under SunOS, timespec is in sys/timepps.h,
		   which needs errno.h and FRAC */
		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif
		#ifdef HAVE_SYS_TIMEPPS_H
		# define FRAC 4294967296
		# include <sys/timepps.h>
		#endif
d17458 1
a17458 1
		struct timespec n;
d17464 1
d17467 1
a17467 3
  ntp_cv_struct_timespec=yes
else
  ntp_cv_struct_timespec=no
d17473 3
a17475 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
$as_echo "$ntp_cv_struct_timespec" >&6; }
case "$ntp_cv_struct_timespec" in
d17477 2
d17480 1
a17480 1
$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
d17482 1
d17485 3
a17487 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
$as_echo_n "checking for struct ntptimeval... " >&6; }
if ${ntp_cv_struct_ntptimeval+:} false; then :
a17492 3
		#include <sys/time.h>
		#include <sys/timex.h>

d17496 24
d17521 24
a17544 2
		struct ntptimeval n;

d17551 1
a17551 1
  ntp_cv_struct_ntptimeval=yes
d17553 1
a17553 2
  ntp_cv_struct_ntptimeval=no

d17556 6
a17563 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
case "$ntp_cv_struct_ntptimeval" in
 yes)
d17565 13
a17577 1
$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
d17579 2
a17580 1
esac
d17582 29
a17610 6
for ac_header in md5.h
do :
  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
	#ifdef HAVE_SYS_TYPES_H
	# include <sys/types.h>
	#endif
d17612 8
d17621 3
a17623 4
"
if test "x$ac_cv_header_md5_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MD5_H 1
d17625 13
d17639 10
d17650 14
d17665 9
a17673 1
done
d17675 6
d17682 6
a17687 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
$as_echo_n "checking for library containing MD5Init... " >&6; }
if ${ac_cv_search_MD5Init+:} false; then :
  $as_echo_n "(cached) " >&6
d17689 27
a17715 3
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a17716 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char MD5Init ();
d17720 1
a17720 1
return MD5Init ();
d17725 12
a17736 9
for ac_lib in '' md5 md; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_MD5Init=$ac_res
d17738 1
a17738 39
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_MD5Init+:} false; then :
  break
fi
done
if ${ac_cv_search_MD5Init+:} false; then :

else
  ac_cv_search_MD5Init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
$as_echo "$ac_cv_search_MD5Init" >&6; }
ac_res=$ac_cv_search_MD5Init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
$as_echo_n "checking for SIGIO... " >&6; }
if ${ntp_cv_hdr_def_sigio+:} false; then :
  $as_echo_n "(cached) " >&6
d17742 4
d17747 8
a17754 5
	    #include <signal.h>

	    #ifdef SIGIO
		yes
	    #endif
d17756 3
d17760 2
a17761 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_hdr_def_sigio=yes
d17763 1
a17763 2
  ntp_cv_hdr_def_sigio=no

d17765 2
a17766 3
rm -f conftest*


a17767 78
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
$as_echo "$ntp_cv_hdr_def_sigio" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
$as_echo_n "checking if we want to use SIGIO... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigio" in
 yes)
    ans=yes
    case "$host" in
     alpha*-dec-osf4*|alpha*-dec-osf5*)
	ans=no
	;;
     *-convex-*)
	ans=no
	;;
     *-dec-*)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-univel-sysv*)
	ans=no
	;;
     *-*-irix6*)
	ans=no
	;;
     *-*-freebsd*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     m68k-*-mint*)
	ans=no
	;;
    esac
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
$as_echo_n "checking for SIGPOLL... " >&6; }
if ${ntp_cv_hdr_def_sigpoll+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <signal.h>

	    #ifdef SIGPOLL
		yes
	    #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_hdr_def_sigpoll=yes
else
  ntp_cv_hdr_def_sigpoll=no
d17769 1
d17771 9
a17779 123
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-solaris*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)
d17781 1
a17781 1
$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
d17783 5
a17787 3
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d17789 3
a17791 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
d17796 2
a17797 2

		#include <sys/time.h>
d17802 1
a17802 5

		gettimeofday(0, 0);
		settimeofday(0, 0);


d17808 1
a17808 1
  ntp_cv_func_Xettimeofday_nargs=2
d17810 1
a17810 2
  ntp_cv_func_Xettimeofday_nargs=1

a17812 1

d17814 2
a17815 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
case "$ntp_cv_func_Xettimeofday_nargs" in
 1)
d17817 2
a17818 10
$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h

esac

for ac_func in settimeofday
do :
  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
if test "x$ac_cv_func_settimeofday" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETTIMEOFDAY 1
a17820 1
else
d17822 2
a17823 51
    case "$host" in
     *-*-mpeix*) ac_cv_func_settimeofday=yes
    esac

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
ntp_warning='GRONK'
ans=none
case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
 yes*)
    ntp_warning=''
    ans='clock_settime()'
    ;;
 noyes*)
    ntp_warning='But clock_settime() would be better (if we had it)'
    ans='settimeofday()'
    ;;
 nonoyes)
    ntp_warning='Which is the worst of the three'
    ans='stime()'
    ;;
 *)
    case "$build" in
     $host)
	ntp_warning='Which leaves us with nothing to use!'
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ntp_warning" in
 '')
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
    ;;
esac


LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
LIBS=$__LIBS
{ __LIBS=; unset __LIBS;}



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
$as_echo_n "checking for deprecated --with-arlib... " >&6; }
a17824 3
# Check whether --with-arlib was given.
if test "${with_arlib+set}" = set; then :
  withval=$with_arlib; ans=$withval
a17825 2
  ans=no
fi
d17827 3
a17829 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&5
$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&2;}
    ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a17831 46
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi

d17833 2
a17835 8


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
a17836 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi
d17838 2
a17839 23
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
$as_echo_n "checking for library containing strerror... " >&6; }
if ${ac_cv_search_strerror+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strerror ();
int
main ()
{
return strerror ();
  ;
  return 0;
}
a17840 17
for ac_lib in '' cposix; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_strerror=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_strerror+:} false; then :
  break
fi
done
if ${ac_cv_search_strerror+:} false; then :
a17841 2
else
  ac_cv_search_strerror=no
d17843 9
a17851 2
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
d17853 7
a17859 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
$as_echo "$ac_cv_search_strerror" >&6; }
ac_res=$ac_cv_search_strerror
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17862 6
d17870 1
d17872 7
a17878 5
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_PERL+:} false; then :
d17881 1
a17881 19
  case $PATH_PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a17882 7
  ;;
esac
fi
PATH_PERL=$ac_cv_path_PATH_PERL
if test -n "$PATH_PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
$as_echo "$PATH_PERL" >&6; }
d17884 8
a17891 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d17894 3
a17897 27
{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
# Extract the first word of "test", so it can be a program name with args.
set dummy test; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_TEST+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_TEST in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a17898 11
  ;;
esac
fi
PATH_TEST=$ac_cv_path_PATH_TEST
if test -n "$PATH_TEST"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
$as_echo "$PATH_TEST" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d17900 3
a17903 2
{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
a17905 5
# Check whether --with-net-snmp-config was given.
if test "${with_net_snmp_config+set}" = set; then :
  withval=$with_net_snmp_config; ans=$withval
else
  ans=yes
a17906 1
fi
d17908 3
a17910 28
case "$ans" in
 no)
    ;;
 yes)
    ans=net-snmp-config
    ;;
 /*)
    ;;
 */*)
    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
    ;;
 *)
    ;;
esac
PROG_NET_SNMP_CONFIG=$ans
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
case "$PROG_NET_SNMP_CONFIG" in
 no) ;;
 /*)
    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
    ;;
 *)
    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
d17913 4
a17916 19
  case $PATH_NET_SNMP_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d17918 14
a17931 2
  ;;
esac
d17933 1
a17933 7
PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
if test -n "$PATH_NET_SNMP_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d17935 3
d17939 1
d17941 1
a17941 5
    { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
a17942 5
case "$host" in
 *-*-vxworks*)
    ac_link="$ac_link $VX_KERNEL"
    ;;
esac
d17944 3
a17946 4
# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
$as_echo_n "checking for library containing openlog... " >&6; }
if ${ac_cv_search_openlog+:} false; then :
d17949 1
a17949 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17952 4
a17955 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char openlog ();
d17959 4
a17962 1
return openlog ();
d17967 4
a17970 17
for ac_lib in '' gen syslog; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_openlog=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_openlog+:} false; then :
  break
fi
done
if ${ac_cv_search_openlog+:} false; then :
a17971 2
else
  ac_cv_search_openlog=no
d17973 1
a17973 8
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
$as_echo "$ac_cv_search_openlog" >&6; }
ac_res=$ac_cv_search_openlog
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17976 4
d17981 1
a17981 1
# XXX library list will be in ac_cv_search_openlog
d17983 1
d17985 3
a17987 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
$as_echo_n "checking for facilitynames in syslog.h... " >&6; }
if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
d17990 1
a17990 2

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17993 3
a17995 3
#define SYSLOG_NAMES
#include <stdlib.h>
#include <syslog.h>
d18000 4
a18003 1
 void *fnames; fnames = facilitynames;
d18009 1
a18009 1
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
d18011 2
a18012 1
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
d18015 63
d18079 3
a18081 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
d18084 1
a18084 1
$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
a18085 9
    ;;
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
    ;;
 cross)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
    ;;
d18090 3
a18092 12
case "$host" in
 *-*-*linux*) ;;
 *-*-osf4*) ;;
 *-*-osf5*) ;;
 *)
    # HMS: Make sure we check for -lrt for clock_* before this...
    case "$ac_cv_search_clock_gettime" in
     '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
$as_echo_n "checking for library containing sched_setscheduler... " >&6; }
if ${ac_cv_search_sched_setscheduler+:} false; then :
d18095 1
a18095 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18098 5
a18102 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_setscheduler ();
d18106 4
a18109 1
return sched_setscheduler ();
d18114 2
a18115 18
for ac_lib in '' rt posix4; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_sched_setscheduler=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_sched_setscheduler+:} false; then :
  break
fi
done
if ${ac_cv_search_sched_setscheduler+:} false; then :

d18117 1
a18117 10
  ac_cv_search_sched_setscheduler=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
$as_echo "$ac_cv_search_sched_setscheduler" >&6; }
ac_res=$ac_cv_search_sched_setscheduler
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18120 1
a18120 11

    ;;
esac

for ac_header in bstring.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
if test "x$ac_cv_header_bstring_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_BSTRING_H 1
_ACEOF
d18123 2
d18126 3
a18128 7
done

ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
if test "x$ac_cv_header_dns_sd_h" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
$as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
if ${ac_cv_search_DNSServiceRegister+:} false; then :
d18131 1
a18131 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18134 4
a18137 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char DNSServiceRegister ();
d18141 4
a18144 1
return DNSServiceRegister ();
d18149 5
a18153 9
for ac_lib in '' dns_sd; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_DNSServiceRegister=$ac_res
d18155 1
a18155 7
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_DNSServiceRegister+:} false; then :
  break
fi
done
if ${ac_cv_search_DNSServiceRegister+:} false; then :
a18156 2
else
  ac_cv_search_DNSServiceRegister=no
d18158 2
a18159 8
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
$as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
ac_res=$ac_cv_search_DNSServiceRegister
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18161 2
a18162 1
$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
d18164 1
d18166 2
a18167 1
fi
d18169 1
d18171 2
a18172 1
fi
d18174 7
d18182 1
a18182 8
for ac_header in fcntl.h ieeefp.h inttypes.h kvm.h math.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18184 3
a18186 1
fi
d18188 2
a18189 1
done
d18192 3
a18194 7
for ac_header in memory.h netdb.h poll.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18196 7
d18205 4
d18210 1
a18210 1
done
d18212 1
a18212 8
for ac_header in sgtty.h stdlib.h string.h termio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18214 7
a18220 1
fi
d18222 12
a18233 1
done
d18235 3
a18237 8
for ac_header in termios.h timepps.h timex.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18239 2
a18240 1
fi
a18241 1
done
d18243 3
a18245 9

case "$host" in
 *-*-aix*)
    for ac_header in utmpx.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
if test "x$ac_cv_header_utmpx_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMPX_H 1
d18247 4
d18253 1
d18255 5
a18259 1
done
d18261 1
a18261 11
    case "$ac_cv_header_utmpx_h" in
     yes)
	;;
     *)
	for ac_header in utmp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
if test "x$ac_cv_header_utmp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMP_H 1
_ACEOF
d18263 1
a18263 1
fi
d18265 7
a18271 1
done
d18273 9
a18281 12
	;;
    esac
    ;;
 *)
    for ac_header in utmp.h utmpx.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18283 3
a18285 1
fi
d18287 1
a18287 1
done
a18288 2
    ;;
esac
d18290 3
a18292 16
#
# On Suns only (so far) getpass() truncates the typed password to 8
# characters, but getpassphrase() allows up to 257.  Most systems'
# getpass() does not truncate, at least not so as to affect ntpq and
# ntpdc password prompts.
#
# So check for getpassphrase(), but only on Sun operating systems.
#
case "$host" in
 *-*-sunos*|*-*-solaris*)
    for ac_func in getpassphrase
do :
  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
if test "x$ac_cv_func_getpassphrase" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETPASSPHRASE 1
d18294 4
d18300 9
a18308 1
done
d18312 7
d18320 9
a18328 7
for ac_header in net/if6.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
if test "x$ac_cv_header_net_if6_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF6_H 1
_ACEOF
d18330 3
a18332 1
fi
d18334 2
a18335 1
done
a18336 6
for ac_header in net/route.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <net/if.h>
d18338 3
a18340 4
"
if test "x$ac_cv_header_net_route_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_ROUTE_H 1
d18342 4
d18348 1
d18350 3
a18352 1
done
d18354 9
d18364 9
a18372 7
for ac_header in netinfo/ni.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NETINFO_NI_H 1
_ACEOF
d18374 3
a18376 1
fi
d18378 2
a18379 1
done
a18380 2
case "$ac_cv_header_netinfo_ni_h" in
 yes)
d18382 3
a18384 10
$as_echo "#define HAVE_NETINFO 1" >>confdefs.h

esac
for ac_header in sun/audioio.h sys/audioio.h sys/file.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18386 4
d18392 1
a18392 14

done

case "$host" in
 *-*-sunos4*)
    ;;
 *)
    for ac_header in sys/ioctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_IOCTL_H 1
_ACEOF
d18395 4
d18400 1
a18400 1
done
d18402 1
a18402 1
    ;;
a18403 8
for ac_header in sys/ipc.h sys/lock.h sys/mman.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a18404 1
fi
a18405 1
done
d18407 21
a18427 9
# HMS: Check sys/proc.h and sys/resource.h after some others
for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18429 2
a18430 1
fi
a18431 1
done
d18433 3
a18435 10
case "$ac_cv_header_sched_h" in
 yes)
    ;;
 *)
    for ac_header in sys/sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SCHED_H 1
d18437 7
d18446 12
d18459 9
a18467 1
done
d18469 3
a18471 11
    ;;
esac
# HMS: Check sys/shm.h after some others
for ac_header in sys/select.h sys/signal.h sys/sockio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18473 2
a18474 1
fi
a18475 1
done
d18477 3
a18479 12
# HMS: Checked sys/socket.h earlier
case "$host" in
 *-*-netbsd*)
    ;;
 *)
    for ac_header in machine/soundcard.h sys/soundcard.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18481 4
d18487 7
d18495 1
a18495 1
done
d18497 1
a18497 1
    ;;
a18498 8
for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a18499 1
fi
a18500 1
done
d18502 10
a18511 8
for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18513 2
a18514 1
fi
d18516 3
a18518 1
done
d18520 2
a18521 10
case "$host" in
*-convex-*)
    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a18522 1
fi
d18524 3
a18526 11
done

    ;;
*-*-bsdi*)
    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18528 4
d18534 1
d18536 5
a18540 1
done
d18542 1
a18542 19
    ;;
esac

case "$host" in
 *-*-solaris2.6)
    # Broken...
    ;;
 *)
    for ac_func in ntp_adjtime ntp_gettime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done
a18543 1
    ;;
d18546 9
a18554 13
case "$host" in
 *-*-*linux*)
    case "$ac_cv_func_ntp_gettime" in
     yes)
	;;
     *)
	for ac_func in __ntp_gettime
do :
  ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
if test "x$ac_cv_func___ntp_gettime" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___NTP_GETTIME 1
_ACEOF
d18556 6
a18561 2
fi
done
d18563 3
a18565 2
	case "$ac_cv_func___ntp_gettime" in
	 yes)
d18567 2
a18568 1
$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
d18571 3
a18573 11
$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h

	esac
	;;
    esac
    for ac_func in adjtimex
do :
  ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
if test "x$ac_cv_func_adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ADJTIMEX 1
d18575 4
d18581 1
a18581 1
done
d18583 4
a18586 1
    case "$ac_cv_func_adjtimex" in
d18589 1
a18589 1
$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
d18591 2
d18594 7
a18600 1
$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
d18602 1
a18602 10
	have_adjtimex=1
	;;
     *)
	for ac_func in __adjtimex
do :
  ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
if test "x$ac_cv_func___adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___ADJTIMEX 1
_ACEOF
d18604 3
a18606 2
fi
done
d18608 2
a18609 2
	case "$ac_cv_func___adjtimex" in
	 yes)
a18610 1
$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
d18612 8
d18621 2
a18622 1
$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
d18624 5
d18630 1
a18630 1
$as_echo "#define adjtimex __adjtimex" >>confdefs.h
d18632 1
d18634 3
a18636 15
$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h

	    have_adjtimex=1
	esac
	;;
    esac
esac
case "$have_adjtimex" in
 '')
    # nlist stuff is only needed for tickadj.
    saved_LIBS="$LIBS"
    LIBS=
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
$as_echo_n "checking for library containing nlist... " >&6; }
if ${ac_cv_search_nlist+:} false; then :
d18639 1
a18639 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18642 2
a18643 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
d18647 5
a18651 1
return nlist ();
d18656 5
a18660 9
for ac_lib in '' elf ld mld; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_nlist=$ac_res
d18662 2
a18663 4
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_nlist+:} false; then :
  break
d18665 4
a18668 2
done
if ${ac_cv_search_nlist+:} false; then :
d18670 1
a18670 11
else
  ac_cv_search_nlist=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
$as_echo "$ac_cv_search_nlist" >&6; }
ac_res=$ac_cv_search_nlist
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18672 1
a18672 1
fi
d18674 3
a18676 4
    # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
$as_echo_n "checking for library containing kvm_open... " >&6; }
if ${ac_cv_search_kvm_open+:} false; then :
d18679 1
a18679 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18682 11
a18692 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char kvm_open ();
d18696 4
a18699 1
return kvm_open ();
d18704 2
a18705 18
for ac_lib in '' kvm; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_kvm_open=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_kvm_open+:} false; then :
  break
fi
done
if ${ac_cv_search_kvm_open+:} false; then :

d18707 1
a18707 10
  ac_cv_search_kvm_open=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
$as_echo "$ac_cv_search_kvm_open" >&6; }
ac_res=$ac_cv_search_kvm_open
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18710 1
a18710 9
	    # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
    for ac_header in nlist.h sys/var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18713 4
d18718 1
a18718 1
done
d18720 1
a18720 2
    case "$ac_cv_header_nlist_h" in
     yes)
d18722 3
a18724 5
$as_echo "#define NLIST_STRUCT 1" >>confdefs.h

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
$as_echo_n "checking for n_un in struct nlist... " >&6; }
if ${ntp_cv_struct_nlist_n_un+:} false; then :
d18730 2
a18731 1
			#include <nlist.h>
d18737 1
a18737 2
			struct nlist n;
			n.n_un.n_name = 0;
a18742 1
		ntp_cv_struct_nlist_n_un=yes
d18745 3
a18747 1
  ntp_cv_struct_nlist_n_un=no
d18753 4
a18756 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
	case "$ntp_cv_struct_nlist_n_un" in
	 yes)
d18758 1
a18758 1
$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
d18760 1
a18760 2
	esac
    esac
d18762 15
a18776 4
    LDADD_NLIST="$LIBS"
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
esac
a18777 9
for ac_header in sys/proc.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif
d18780 4
a18783 3
if test "x$ac_cv_header_sys_proc_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PROC_H 1
d18786 1
a18788 1
done
d18790 14
a18804 11
for ac_header in sys/resource.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif

"
if test "x$ac_cv_header_sys_resource_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_RESOURCE_H 1
d18806 2
a18807 1

d18809 2
a18810 1

a18812 17

for ac_header in sys/shm.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_IPC_H
    # include <sys/ipc.h>
    #endif

"
if test "x$ac_cv_header_sys_shm_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SHM_H 1
_ACEOF

d18814 2
d18817 14
a18830 1
done
d18833 4
a18836 6
for ac_header in sys/timex.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif
d18838 1
a18838 7
"
if test "x$ac_cv_header_sys_timex_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEX_H 1
_ACEOF

fi
a18839 1
done
d18841 1
d18843 3
a18845 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
if ${ac_cv_type_signal+:} false; then :
d18850 1
a18850 3
#include <sys/types.h>
#include <signal.h>

d18854 3
a18856 1
return *(signal (0, 0)) (0) == 1;
d18862 1
a18862 1
  ac_cv_type_signal=int
d18864 1
a18864 1
  ac_cv_type_signal=void
d18868 33
a18900 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }
d18903 1
a18903 1
#define RETSIGTYPE $ac_cv_type_signal
d18907 2
a18908 4
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
if test "x$ac_cv_type_off_t" = xyes; then :

else
d18911 1
a18911 1
#define off_t long int
d18914 1
d18917 7
a18923 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if ${ac_cv_struct_tm+:} false; then :
d18926 1
a18926 4
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>
a18927 12
int
main ()
{
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_tm=time.h
d18929 8
a18936 1
  ac_cv_struct_tm=sys/time.h
d18938 1
a18938 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d18940 4
a18943 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then
d18945 3
a18947 1
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a18948 1
fi
d18950 7
a18956 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
$as_echo_n "checking for a fallback value for HZ... " >&6; }
if ${ntp_cv_default_hz+:} false; then :
d18959 12
d18972 3
a18974 9
	ntp_cv_default_hz=100
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_default_hz=1024
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_default_hz=256
	    ;;
	esac
a18976 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
$as_echo "$ntp_cv_default_hz" >&6; }
d18979 1
a18979 1
#define DEFAULT_HZ $ntp_cv_default_hz
a18982 24
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
if ${ntp_cv_override_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_override_hz=no
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_override_hz=yes
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-freebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-sunos4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-kfreebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	esac
d18984 6
d18991 1
a18991 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
$as_echo "$ntp_cv_override_hz" >&6; }
case "$ntp_cv_override_hz" in
 yes)
d18993 3
a18995 1
$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
d18997 1
a18997 1
esac
d18999 7
d19007 1
d19009 5
a19013 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
$as_echo_n "checking for struct rt_msghdr... " >&6; }
if ${ntp_cv_struct_rt_msghdr+:} false; then :
d19018 10
d19029 4
a19032 4
		#include <sys/types.h>
		#include <sys/socket.h>
		#include <net/if.h>
		#include <net/route.h>
d19034 1
a19034 3
int
main ()
{
a19035 1
		struct rt_msghdr p;
d19037 1
a19037 9

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_rt_msghdr=yes
else
  ntp_cv_struct_rt_msghdr=no
a19039 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19040 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
d19042 12
a19053 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
$as_echo_n "checking for struct rtattr... " >&6; }
if ${ntp_cv_rtattr+:} false; then :
d19056 2
a19057 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19060 7
a19066 4
		#include <stddef.h>
		#include <sys/socket.h>
		#include <linux/rtnetlink.h>

d19070 1
a19070 4

		struct rtattr p;


d19075 18
a19092 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rtattr=yes
d19094 10
a19103 1
  ntp_cv_rtattr=no
d19106 9
a19114 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19117 1
a19117 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
$as_echo "$ntp_cv_rtattr" >&6; }
d19119 9
a19127 2
case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
 *yes*)
d19129 2
a19130 1
$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
d19132 7
a19138 2
    case "$ntp_cv_rtattr" in
     yes)
d19140 8
a19147 1
$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
d19149 1
a19149 2
    esac
esac
d19151 5
a19155 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19158 1
a19158 1
		#include <signal.h>
d19164 2
a19165 2
		struct sigaction act;
		act.sa_sigaction = 0;
d19172 2
a19173 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_sigaction_has_sa_sigaction=yes
d19175 1
a19175 1
  ntp_cv_struct_sigaction_has_sa_sigaction=no
d19178 11
a19188 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19191 1
a19191 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
 yes)
a19192 1
$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
d19194 2
a19195 1
esac
a19196 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
$as_echo_n "checking for struct ppsclockev... " >&6; }
if ${ntp_cv_struct_ppsclockev+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d19198 8
a19205 12
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TERMIOS_H
		# include <sys/termios.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_PPSCLOCK_H
		# include <sys/ppsclock.h>
		#endif
d19207 2
a19208 3
int
main ()
{
a19209 2
		extern struct ppsclockev *pce;
		return pce->serial;
d19211 3
a19213 7

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ppsclockev=yes
d19215 1
a19215 1
  ntp_cv_struct_ppsclockev=no
a19217 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19218 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
case "$ntp_cv_struct_ppsclockev" in
 yes)
d19220 21
a19240 1
$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
d19242 2
a19243 1
esac
d19245 7
a19251 5
case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
  *yes*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
$as_echo_n "checking for struct snd_size... " >&6; }
if ${ntp_cv_struct_snd_size+:} false; then :
d19253 4
a19256 2
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19259 7
a19265 7
		    #ifdef HAVE_MACHINE_SOUNDCARD_H
		    # include <machine/soundcard.h>
		    #endif
		    #ifdef HAVE_SYS_SOUNDCARD_H
		    # include <sys/soundcard.h>
		    #endif

d19269 1
a19269 5

		    extern struct snd_size *ss;
		    return ss->rec_size;


d19274 2
a19275 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_snd_size=yes
d19277 5
a19281 2
  ntp_cv_struct_snd_size=no

d19283 6
a19288 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19290 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
$as_echo "$ntp_cv_struct_snd_size" >&6; }
    case "$ntp_cv_struct_snd_size" in
     yes)
d19292 4
a19295 1
$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
d19297 8
d19306 14
d19322 3
a19324 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
$as_echo_n "checking struct clockinfo for hz... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
d19327 5
a19331 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19334 6
a19339 1
		#include <sys/time.h>
d19345 3
a19347 2
		extern struct clockinfo *pc;
		return pc->hz;
d19355 12
a19366 3
  ntp_cv_struct_clockinfo_has_hz=yes
else
  ntp_cv_struct_clockinfo_has_hz=no
d19369 16
a19384 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19387 4
a19390 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)
d19392 1
a19392 1
$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
d19394 3
d19398 2
d19401 8
a19408 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
d19411 2
a19412 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19415 7
a19421 2
		#include <sys/time.h>

d19425 1
a19425 5

		extern struct clockinfo *pc;
		return pc->tickadj;


d19430 18
a19447 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_clockinfo_has_hz=yes
d19449 1
a19449 2
  ntp_cv_struct_clockinfo_has_hz=no

d19451 2
a19452 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d19454 5
a19458 35
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)

$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h

esac

case "$ntp_cv_struct_ntptimeval" in
 yes)
    ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
	    #ifdef HAVE_SYS_TIME_H
	    # include <sys/time.h>
	    #else
	    # ifdef HAVE_TIME_H
	    #  include <time.h>
	    # endif
	    #endif
	    #ifdef HAVE_SYS_TIMEX_H
	    # include <sys/timex.h>
	    #else
	    # ifdef HAVE_TIMEX_H
	    #  include <timex.h>
	    # endif
	    #endif


"
if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
_ACEOF

d19463 1
a19463 6

####

saved_LIBS="$LIBS"
LIBS="$LIBS $LDADD_LIBNTP"
for ac_func in daemon
d19465 2
a19466 2
  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
if test "x$ac_cv_func_daemon" = xyes; then :
d19468 1
a19468 1
#define HAVE_DAEMON 1
d19474 2
a19475 3
# XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
LIBS="$saved_LIBS"
{ saved_LIBS=; unset saved_LIBS;}
d19477 1
a19477 7
for ac_func in finite
do :
  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
if test "x$ac_cv_func_finite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FINITE 1
_ACEOF
d19479 1
a19479 8
else
  for ac_func in isfinite
do :
  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
if test "x$ac_cv_func_isfinite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ISFINITE 1
_ACEOF
d19481 4
d19486 2
a19487 7

	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
$as_echo_n "checking for isfinite with <math.h>... " >&6; }
	    _libs=$LIBS
	    # XXX
	    LIBS="$LIBS -lm"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19490 7
a19496 2
			#include <math.h>

d19500 1
a19500 5

			float f = 0.0;
			isfinite(f);


d19505 18
a19522 2
if ac_fn_c_try_link "$LINENO"; then :
  ans=yes
d19524 10
a19533 1
  ans=no
a19535 8
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    LIBS=$_libs
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
	    case "$ans" in
	     yes)
		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
d19537 4
a19540 1
	    esac
d19542 1
a19544 1
done
d19546 2
d19549 1
a19549 2
fi
done
d19551 1
a19551 9

for ac_func in getbootfile getuid getrusage nanosleep strsignal
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a19553 1
done
a19555 1
# kvm_open() is only used by tickadj.  Also see above.
d19572 12
d19586 1
a19586 1
    # Just stubs.  Sigh.
d19613 2
a19614 3
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub.  Sigh.
d19617 4
a19620 1
    # Just a stub in "old" Irix.  Sigh.
a19621 4
# In the belief that the fix for bug 1223 fixes mlockall() under linux...
# *-*-*linux*)
#    # there, but more trouble than it is worth for now (resolver problems)
#    ;;
d19623 1
a19623 1
    # Apparently there but not working in QNX.  Sigh?
d19626 1
a19626 1
    # Just a stub.  Sigh.
d19667 1
a19667 1
for ac_func in nice plock pututline pututxline readlink rtprio
d19680 2
a19681 18
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub in AIX 4.  Sigh.
    ;;
 *-*-solaris2.5*)
    # Just stubs in solaris2.5.  Sigh.
    ;;
 *) for ac_func in sched_setscheduler
do :
  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_SETSCHEDULER 1
_ACEOF

fi
done

d19683 1
a19683 2
esac
for ac_func in setlinebuf setpgid setpriority setsid setvbuf
d19695 3
a19697 1
for ac_func in strdup strerror setrlimit strchr
d19710 2
a19711 3
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just stubs.  Sigh.
d19713 2
a19714 2
 *-*-netbsd1*)
    # Just stubs.  Sigh.
d19716 1
a19716 8
 *-*-netbsdelf1*)
    # Just stubs.  Sigh.
    ;;
 *-*-openbsd*)
    # Just stubs.  Sigh.
    ;;
 *)
    for ac_func in timer_create
d19718 2
a19719 2
  ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
if test "x$ac_cv_func_timer_create" = xyes; then :
d19721 1
a19721 1
#define HAVE_TIMER_CREATE 1
d19729 7
a19735 31



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
if ${ntp_cv_rlimit_memlock+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif

int
main ()
{

		getrlimit(RLIMIT_MEMLOCK, 0);


  ;
  return 0;
}
a19736 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_memlock=yes
else
  ntp_cv_rlimit_memlock=no
d19739 1
a19739 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19741 6
a19746 37
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
$as_echo "$ntp_cv_rlimit_memlock" >&6; }
case "$ntp_cv_rlimit_memlock" in
 yes)

    HAVE_RLIMIT_MEMLOCK=" memlock 32"
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
$as_echo_n "checking for RLIMIT_STACK... " >&6; }
if ${ntp_cv_rlimit_stack+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif

int
main ()
{

		getrlimit(RLIMIT_STACK, 0);


  ;
  return 0;
}
a19747 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_stack=yes
else
  ntp_cv_rlimit_stack=no
d19750 1
a19750 10
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
$as_echo "$ntp_cv_rlimit_stack" >&6; }
case "$ntp_cv_rlimit_stack" in
 yes)

    HAVE_RLIMIT_STACK=" stacksize 50"
esac
d19752 7
a19759 8

# HMS: Only if we are doing the MLOCKALL stuff...
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
$as_echo_n "checking for the default number of 4k stack pages... " >&6; }

# Check whether --with-stack-limit was given.
if test "${with_stack_limit+set}" = set; then :
  withval=$with_stack_limit; ans=$withval
a19760 1
  ans=yes
d19762 2
a19763 15
fi

case "$ans" in
 yes | no)
    case "$host" in
     *-*-openbsd*)
	ans=200
	;;
     *) ans=50
        ;;
    esac
    ;;
 [1-9][0-9]*)
    ;;
 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
d19766 2
a19767 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d19769 7
a19775 2
cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_STACK $ans
a19777 11

# HMS: only if we have RLIMIT_MEMLOCK
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }

# Check whether --with-memlock was given.
if test "${with_memlock+set}" = set; then :
  withval=$with_memlock; ans=$withval
else
  ans=yes

d19779 1
d19781 1
a19781 19
case "$ans" in
 yes | no)
    ans=32
    ;;
 [1-9][0-9]*) ;;
 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
     ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_MEMLOCK $ans
_ACEOF



# some OSes prefer _exit() in forked children to exit()
for ac_func in _exit
d19783 3
a19785 2
  ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
if test "x$ac_cv_func__exit" = xyes; then :
d19787 1
a19787 1
#define HAVE__EXIT 1
d19793 9
a19801 4
ntp_worker_child_exit=exit
case "$ac_cv_func__exit::$host_os" in
 yes::netbsd*)
    ntp_worker_child_exit=_exit
d19803 2
a19804 2
 yes::openbsd*)
    ntp_worker_child_exit=_exit
d19806 7
a19812 4
esac

cat >>confdefs.h <<_ACEOF
#define WORKER_CHILD_EXIT $ntp_worker_child_exit
d19815 2
d19818 3
a19820 1
for ac_func in umask uname updwtmp updwtmpx
d19902 48
d19994 4
d20447 1
a20447 1
	 *-*-bsdi[23]*)
d20457 1
a20457 1
	 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
d20460 1
a20460 1
	 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
d20488 241
a20728 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
if ${ntp_cv_os_routeupdates+:} false; then :
d20732 49
a20780 6
	case "$host" in
	 *-*-netbsd*)
	    ans=yes
	    ;;
	 *)
	    ans=no
d20783 1
a20783 1
	ntp_cv_os_routeupdates=$ans
d20787 3
a20789 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
$as_echo "$ntp_cv_os_routeupdates" >&6; }
case "$ntp_cv_os_routeupdates" in
d20792 1
a20792 1
$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
d20796 3
a20798 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
if ${ntp_cv_os_wildcardreuse+:} false; then :
d20802 46
a20847 5
	case "$host" in
	 *-*-*linux*)
	    ans=yes
	    ;;
	 *) ans=no
d20850 1
a20850 1
	ntp_cv_os_wildcardreuse=$ans
d20854 3
a20856 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
case "$ntp_cv_os_wildcardreuse" in
d20859 1
a20859 1
$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
d20935 19
d21010 162
d21536 1
a21536 2
case "$ntp_ok" in
 yes)
d21541 1
a21541 2
    ;;
esac
d21561 1
a21561 2
case "$ntp_ok" in
 yes)
d21566 1
a21566 2
    ;;
esac
d21705 1
a21705 2
case "$ntp_ok" in
 yes)
d21710 1
a21710 2
    ;;
esac
d21724 1
a21724 2
case "$ntp_ok" in
 yes)
d21729 1
a21729 2
    ;;
esac
d21743 1
a21743 2
case "$ntp_ok" in
 yes)
d21748 1
a21748 2
    ;;
esac
d21762 1
a21762 2
case "$ntp_ok" in
 yes)
d21767 1
a21767 2
    ;;
esac
d21784 1
a21784 2
case "$ntp_ok" in
 yes)
d21789 1
a21789 2
    ;;
esac
d21803 1
a21803 2
case "$ntp_ok" in
 yes)
d21808 1
a21808 2
    ;;
esac
d21822 1
a21822 2
case "$ntp_ok" in
 yes)
d21827 1
a21827 2
    ;;
esac
d21847 5
d21879 1
a21879 2
case "$ntp_ok" in
 yes)
d21884 1
a21884 2
    ;;
esac
d21898 1
a21898 2
case "$ntp_ok" in
 yes)
d21903 1
a21903 2
    ;;
esac
d21917 1
a21917 2
case "$ntp_ok" in
 yes)
d21922 1
a21922 2
    ;;
esac
d21937 1
a21937 2
case "$ntp_ok" in
 yes)
d21942 1
a21942 2
    ;;
esac
d21956 1
a21956 2
case "$ntp_ok" in
 yes)
d21961 1
a21961 2
    ;;
esac
d21975 1
a21975 2
case "$ntp_ok" in
 yes)
d21980 1
a21980 2
    ;;
esac
d21994 1
a21994 2
case "$ntp_ok" in
 yes)
d21999 1
a21999 2
    ;;
esac
d22018 1
a22018 2
case "$ntp_ok" in
 yes)
d22023 1
a22023 2
    ;;
esac
d22041 1
a22041 2
case "$ntp_ok" in
 yes)
d22046 1
a22046 2
    ;;
esac
d22062 1
a22062 2
case "$ntp_ok" in
 yes)
d22067 1
a22067 2
    ;;
esac
d22081 1
a22081 2
case "$ntp_ok" in
 yes)
d22086 1
a22086 2
    ;;
esac
d22100 1
a22100 2
case "$ntp_ok" in
 yes)
d22105 1
a22105 2
    ;;
esac
d22130 1
a22130 2
case "$ntp_ok" in
 yes)
d22135 1
a22135 2
    ;;
esac
d22153 1
a22153 2
case "$ntp_ok" in
 yes)
d22158 1
a22158 2
    ;;
esac
d22172 1
a22172 2
case "$ntp_ok" in
 yes)
d22177 1
a22177 2
    ;;
esac
d22194 1
a22194 2
case "$ntp_ok" in
 yes)
d22199 1
a22199 2
    ;;
esac
d22214 1
a22214 2
case "$ntp_ok" in
 yes)
d22219 1
a22219 2
    ;;
esac
d22233 1
a22233 2
case "$ntp_ok" in
 yes)
d22238 1
a22238 2
    ;;
esac
d22252 1
a22252 2
case "$ntp_ok" in
 yes)
d22257 1
a22257 2
    ;;
esac
d22275 1
a22275 2
case "$ntp_ok" in
 yes)
d22280 1
a22280 2
    ;;
esac
d22301 1
a22301 2
case "$ntp_ok" in
 yes)
d22306 1
a22306 2
    ;;
esac
d22320 1
a22320 2
case "$ntp_ok" in
 yes)
d22325 1
a22325 2
    ;;
esac
d22348 1
a22348 2
case "$ntp_ok" in
 yes)
d22353 1
a22353 2
    ;;
esac
d22361 1
d22382 1
a22382 2
case "$ntp_ok" in
 yes)
d22387 1
a22387 2
    ;;
esac
d22405 1
a22405 2
case "$ntp_ok" in
 yes)
d22410 1
a22410 2
    ;;
esac
d22424 1
a22424 2
case "$ntp_ok" in
 yes)
a22428 21
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
# Check whether --enable-TSYNCPCI was given.
if test "${enable_TSYNCPCI+set}" = set; then :
  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
else

	case "$host" in
	 *-*-*linux*)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	esac


a22429 9

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h

    ;;
esac
d22448 1
a22448 2
case "$ntp_ok" in
 yes)
d22453 1
a22453 2
    ;;
esac
d22471 1
a22471 2
case "$ntp_ok" in
 yes)
d22476 1
a22476 2
    ;;
esac
d22523 1
a22523 2
case "$ntp_ok" in
 yes)
d22529 1
a22529 2
    ;;
esac
d22547 1
a22547 2
case "$ntp_ok" in
 yes)
d22553 1
a22553 2
    ;;
esac
d22571 1
a22571 2
case "$ntp_ok" in
 yes)
d22577 1
a22577 2
    ;;
esac
d22595 1
a22595 2
case "$ntp_ok" in
 yes)
d22601 1
a22601 2
    ;;
esac
d22619 1
a22619 2
case "$ntp_ok" in
 yes)
d22627 1
a22627 2
    ;;
esac
d22673 1
a22673 2
case "$ntp_ok" in
 yes)
d22679 1
a22679 2
    ;;
esac
d22697 1
a22697 2
case "$ntp_ok" in
 yes)
d22703 1
a22703 2
    ;;
esac
d22721 1
a22721 2
case "$ntp_ok" in
 yes)
d22727 1
a22727 2
    ;;
esac
d22745 1
a22745 2
case "$ntp_ok" in
 yes)
d22751 1
a22751 2
    ;;
esac
d22769 1
a22769 2
case "$ntp_ok" in
 yes)
d22775 1
a22775 2
    ;;
esac
d22793 1
a22793 2
case "$ntp_ok" in
 yes)
a22798 24
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
$as_echo_n "checking SEL240X clock... " >&6; }
# Check whether --enable-SEL240X was given.
if test "${enable_SEL240X+set}" = set; then :
  enableval=$enable_SEL240X; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h

a22804 1
    ;;
a22830 119
ntp_pkgconfig_min_version='0.15.0'
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}

case "$PKG_CONFIG" in
 /*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	PKG_CONFIG=""
    fi
    ;;
esac



a22832 1
VER_SUFFIX=
d22835 2
a22836 7


# Check whether --with-crypto was given.
if test "${with_crypto+set}" = set; then :
  withval=$with_crypto;
fi

d22840 2
a22841 2
  withval=$with_openssl_libdir;
fi
d22843 4
a22846 5

# Check whether --with-openssl-incdir was given.
if test "${with_openssl_incdir+set}" = set; then :
  withval=$with_openssl_incdir;
fi
a22848 3
# Check whether --with-rpath was given.
if test "${with_rpath+set}" = set; then :
  withval=$with_rpath;
d22851 8
a22858 30
ntp_openssl=no
ntp_openssl_from_pkg_config=no
with_crypto=${with_crypto:-openssl,libcrypto}
case "$with_crypto" in
 yes)
    with_crypto=openssl,libcrypto
esac
case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
 no:*) ;;
 *:notempty:notgiven:notgiven)
    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
$as_echo_n "checking pkg-config for $pkg... " >&6; }
	if $PKG_CONFIG --exists $pkg ; then
	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
	    VER_SUFFIX=o
	    ntp_openssl=yes
	    ntp_openssl_from_pkg_config=yes
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

	    break
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    done
d22860 6
a22865 11
case "$with_crypto:$ntp_openssl" in
 no:*) ;;
 *:no)
    need_dash_r=
    need_dash_Wlrpath=
    case "${with_rpath-notgiven}" in
     yes)
	# Lame - what to do if we need -Wl... but not -R?
	need_dash_r=1
	;;
     notgiven)
d22867 2
a22868 22
	 *-*-linux*)
	    # This may really only be true for gcc
	    need_dash_Wlrpath=1
	    ;;
	 *-*-netbsd*)
	    need_dash_r=1
	    ;;
	 *-*-solaris*)
	    need_dash_r=1
	    ;;
	esac
	;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
$as_echo_n "checking for openssl library directory... " >&6; }
    with_openssl_libdir=${with_openssl_libdir-notgiven}
    case "$with_openssl_libdir" in
     notgiven)
	case "$build" in
	 $host)
	    with_openssl_libdir=default
d22871 2
a22872 1
	    with_openssl_libdir=no
d22875 2
a22876 9
    esac
    case "$with_openssl_libdir" in
     default)
	# Look in:
	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
    esac
    case "$with_openssl_libdir" in
d22878 2
d22881 2
a22882 14
     *) # Look for libcrypto.a and libssl.a:
	for i in $with_openssl_libdir no
	do
	    case "$host" in
	     *-*-darwin*)
		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
		;;
	     *)
		test -f $i/libcrypto.so -a -f $i/libssl.so && break
		test -f $i/libcrypto.a -a -f $i/libssl.a && break
		;;
	    esac
	done
	openssl_libdir=$i
d22885 4
a22888 8
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
$as_echo "$openssl_libdir" >&6; }
    case "$openssl_libdir" in
     no)
	openssl_libdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
    esac
d22890 1
a22890 1
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
d22892 32
a22923 9
    with_openssl_incdir=${with_openssl_incdir-notgiven}
    case "$with_openssl_incdir" in
     notgiven)
	# Look in:
	with_openssl_incdir="/usr/include /usr/sfw/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
    esac
    case "$with_openssl_incdir" in
d22925 2
d22928 2
a22929 6
     *) # look for openssl/evp.h:
	for i in $with_openssl_incdir no
	do
	    test -f $i/openssl/evp.h && break
	done
	openssl_incdir=$i
d22932 21
a22952 10
    { i=; unset i;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
$as_echo "$openssl_incdir" >&6; }
    case "$openssl_incdir" in
     no)
	openssl_incdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
    esac
    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
d22954 1
a22954 1
	ntp_openssl=no
d22956 1
a22956 2
	ntp_openssl=yes
	VER_SUFFIX=o
d22958 23
a22980 9
    case "$ntp_openssl" in
     yes)
	# We have OpenSSL inc/lib dirs - use them.
	case "$openssl_incdir" in
	 /usr/include)
	    ;;
	 *)
	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
	    ;;
d22982 1
a22982 16
	case "$openssl_libdir" in
	 /usr/lib)
	    ;;
	 *)
	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
	    case "$need_dash_r" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
	    esac
	    case "$need_dash_Wlrpath" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
	    esac
	    ;;
	esac
	LDADD_NTP="$LDADD_NTP -lcrypto"
d22984 1
a22984 6
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
$as_echo_n "checking if we will use crypto... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
$as_echo "$ntp_openssl" >&6; }
a22985 2
case "$ntp_openssl" in
 yes)
d22987 1
a22987 1
$as_echo "#define OPENSSL /**/" >>confdefs.h
a22988 5
    case "$VER_SUFFIX" in
     *o*) ;;
     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
    esac
    ;;
a22990 4
NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
NTPO_SAVED_LIBS="$LIBS"

d22992 1
a22992 1
# check for linking with -lcrypto failure, and try -lcrypto -lz.
d22995 6
a23000 5
case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
 yes:no)
    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
$as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
d23036 3
a23038 3
	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
d23074 1
a23074 1
	     LDADD_NTP="$LDADD_NTP -lz"
d23077 2
d23095 1
a23095 1
NTPO_SAVED_CFLAGS="$CFLAGS"
d23097 2
a23098 2
case "$ntp_openssl:$GCC" in
 yes:yes)
d23162 1
a23162 1
	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
d23165 1
a23165 1
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
d23168 1
a23168 1
 no:yes)
d23170 1
a23170 1
    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
a23172 8
CFLAGS="$NTPO_SAVED_CFLAGS"
CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
LIBS="$NTPO_SAVED_LIBS"
{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
d23175 6
a23180 6
# if we are using OpenSSL (--with-crypto), by default Autokey is enabled
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
# Check whether --enable-autokey was given.
if test "${enable_autokey+set}" = set; then :
  enableval=$enable_autokey; ntp_autokey=$enableval
d23182 1
a23182 1
  ntp_autokey=$ntp_openssl
d23186 2
a23187 3
case "$ntp_autokey" in
 no)
    ;;
d23189 2
a23190 7
    case "$ntp_openssl" in
     no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
	ntp_autokey=no
	;;
     *)
d23192 1
a23192 1
$as_echo "#define AUTOKEY 1" >>confdefs.h
d23194 1
a23194 3
	ntp_autokey=yes
	;;
    esac
d23197 2
a23198 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
$as_echo "$ntp_autokey" >&6; }
d23220 1
a23220 2
case "$ntp_parseutil" in
 yes)
d23225 1
a23225 1
	TESTDCF=testdcf
d23227 1
a23227 2
    ;;
esac
d23273 1
a23273 2
case "$ntp_refclock" in
 yes)
d23277 1
a23277 2
    ;;
esac
a23280 2
PROPDELAY=propdelay

d23292 1
a23292 2
case "$ans" in
 yes)
d23297 1
a23297 7
    ;;
 *) ADJTIMED_DB=
    ADJTIMED_DL=
    ADJTIMED_DS=
    ADJTIMED_MS=
    ;;
esac
d23310 1
a23310 2
case "$ans" in
 yes)
d23314 1
a23314 2
    ;;
esac
a23327 1
    ;;
d23392 1
a23392 2
 *-ibm-aix[4-9]*)
    # XXX only verified thru AIX6.
a23407 1
    ;;
d23451 1
a23451 2
	 *-ibm-aix[3-9]*)
	    # XXX only verified thru AIX6.
a23791 1
	;;
a23797 1
	;;
a23803 1
	;;
a23819 1
    ;;
a23921 6
 *)
    NTPTIME_DB=
    NTPTIME_DL=
    NTPTIME_DS=
    NTPTIME_MS=
    ;;
a23970 11
    ;;
 *)
    CALC_TICKADJ_DB=
    CALC_TICKADJ_DL=
    CALC_TICKADJ_DS=
    CALC_TICKADJ_MS=
    TICKADJ_DB=
    TICKADJ_DL=
    TICKADJ_DS=
    TICKADJ_MS=
    ;;
a23998 6
    ;;
 *) TIMETRIM_DB=
    TIMETRIM_DL=
    TIMETRIM_DS=
    TIMETRIM_MS=
    ;;
a24019 7
    ;;
 *)
    NTPDSIM_DB=
    NTPDSIM_DL=
    NTPDSIM_DS=
    NTPDSIM_MS=
    ;;
a24033 34

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
$as_echo_n "checking if sntp will be built... " >&6; }

# Check whether --with-sntp was given.
if test "${with_sntp+set}" = set; then :
  withval=$with_sntp;
else
  with_sntp="${withsntp=yes}"

fi

case "$with_sntp" in
 no)
    SNTP=
    ;;
 *)
    SNTP=sntp
    ;;
esac

 if test -n "$SNTP"; then
  BUILD_SNTP_TRUE=
  BUILD_SNTP_FALSE='#'
else
  BUILD_SNTP_TRUE='#'
  BUILD_SNTP_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
$as_echo "$with_sntp" >&6; }



a24144 1
	{ save_CFLAGS=; unset save_CFLAGS;}
a24145 1
	{ save_CPPFLAGS=; unset save_CPPFLAGS;}
a24146 1
	{ save_LIBS=; unset save_LIBS;}
a24156 8
case "$MAKE_NTPSNMPD" in
 '')
    NTPSNMPD_DB=
    NTPSNMPD_DL=
    NTPSNMPD_DS=
    NTPSNMPD_MS=
    ;;
esac
a24249 1
    ;;
a24281 1
    ;;
a24323 1
	;;
a24343 1
	;;
a24347 1
    ;;
a24398 1
    ;;
d24418 1
d24441 1
a24479 1
    ;;
d24482 2
a24483 1
for ac_header in libscf.h
d24485 2
a24486 2
  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
if test "x$ac_cv_header_libscf_h" = xyes; then :
d24488 1
a24488 1
#define HAVE_LIBSCF_H 1
d24495 7
a24501 4
LSCF=
case "$ac_cv_header_libscf_h" in
 yes)
    LSCF='-lscf'
d24504 3
a24506 7



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
if ${ntp_cv_sockaddr_storage+:} false; then :
  $as_echo_n "(cached) " >&6
d24508 1
a24508 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24510 1
a24510 9
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif
a24511 3
int
main ()
{
d24513 4
a24516 1
		struct sockaddr_storage n;
d24519 7
a24525 3
  ;
  return 0;
}
a24526 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_sockaddr_storage=yes
else
  ntp_cv_sockaddr_storage=no
a24528 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24530 1
a24530 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
$as_echo "$ntp_cv_sockaddr_storage" >&6; }
case "$ntp_cv_sockaddr_storage" in
 yes)
a24531 1
$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
d24533 2
a24534 45
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
if ${ntp_cv_have___ss_family+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_SYS_TYPES_H
		    # include <sys/types.h>
		    #endif
		    #ifdef HAVE_SYS_SOCKET_H
		    # include <sys/socket.h>
		    #endif
		    #ifdef HAVE_NETINET_IN_H
		    # include <netinet/in.h>
		    #endif

int
main ()
{

		    struct sockaddr_storage s;
		    s.__ss_family = 1;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have___ss_family=yes
else
  ntp_cv_have___ss_family=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
$as_echo "$ntp_cv_have___ss_family" >&6; }
    case "$ntp_cv_have___ss_family" in
     yes)

$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
d24536 8
d24545 4
a24548 1

d24551 3
d24555 1
a24555 10
#
# Look for in_port_t.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
$as_echo_n "checking for in_port_t... " >&6; }
if ${isc_cv_have_in_port_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a24556 2
		#include <sys/types.h>
		#include <netinet/in.h>
d24558 2
a24559 3
int
main ()
{
d24561 2
a24562 2
		in_port_t port = 25;
		return (0);
d24564 1
d24566 2
a24567 11
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_in_port_t=yes
else
  isc_cv_have_in_port_t=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24569 2
a24570 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
$as_echo "$isc_cv_have_in_port_t" >&6; }
case "$isc_cv_have_in_port_t" in
 no)
d24572 1
a24572 1
$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
a24575 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
if ${ntp_cv_getsockname_socklen_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
d24577 9
a24585 5
    getsockname_socklen_type_found=no
    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24587 1
a24587 6
			#ifdef HAVE_SYS_TYPES_H
			# include <sys/types.h>
			#endif
			#ifdef HAVE_SYS_SOCKET_H
			# include <sys/socket.h>
			#endif
d24589 5
a24593 3
int
main ()
{
a24594 3
			extern
			getsockname(int, $getsockname_arg2,
				$ntp_cv_getsockname_socklen_type *);
d24596 5
a24601 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  getsockname_socklen_type_found=yes ; break 2
a24602 9
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	done
    done
    case "$getsockname_socklen_type_found" in
     no)
	ntp_cv_getsockname_socklen_type='socklen_t'
    esac
    { getsockname_arg2=; unset getsockname_arg2;}
    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
d24604 2
d24607 1
a24607 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
d24609 1
a24609 3
cat >>confdefs.h <<_ACEOF
#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
_ACEOF
d24902 1
a24902 1
if ${isc_cv_in6addr_any_links+:} false; then :
d24905 2
d24908 5
a24912 9
	SAVED_LIBS="$LIBS"
	LIBS="$LDADD_LIBNTP $LIBS"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack
d24918 2
a24919 1
		    printf("%x", in6addr_any.s6_addr[15]);
d24927 1
a24927 1
  isc_cv_in6addr_any_links=yes
d24929 1
a24929 1
  isc_cv_in6addr_any_links=no
a24933 3
	LIBS="$SAVED_LIBS"
	{ SAVED_LIBS=; unset SAVED_LIBS;}

d24936 2
a24937 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
$as_echo "$isc_cv_in6addr_any_links" >&6; }
d24939 1
a24939 1
case "$isc_cv_in6addr_any_links" in
d25006 6
a25011 178
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_struct_if_laddrreq=yes
else
  isc_cv_struct_if_laddrreq=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
$as_echo "$isc_cv_struct_if_laddrreq" >&6; }

case "$isc_cv_struct_if_laddrreq" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
$as_echo_n "checking for multicast IP support... " >&6; }
if ${ntp_cv_multicast+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_multicast=no
	case "$host" in
	 i386-sequent-sysv4)
	    ;;
	 *)
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#ifdef HAVE_NETINET_IN_H
			# include <netinet/in.h>
			#endif

int
main ()
{

			struct ip_mreq ipmr;
			ipmr.imr_interface.s_addr = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_multicast=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
$as_echo "$ntp_cv_multicast" >&6; }
case "$ntp_cv_multicast" in
 yes)

$as_echo "#define MCAST 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    case "$host" in
	     *-*-netbsd*|*-*-*linux*)
		ntp_cv_typeof_ip_multicast_loop=u_int
		;;
	     *)
		ntp_cv_typeof_ip_multicast_loop=u_char
		;;
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }

cat >>confdefs.h <<_ACEOF
#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
_ACEOF

esac

# Check whether --enable-getifaddrs was given.
if test "${enable_getifaddrs+set}" = set; then :
  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
else
  want_getifaddrs="yes"

fi


case $want_getifaddrs in
 glibc)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
esac
case $want_getifaddrs in
 no)
    ;;
 *)
    SAVED_LIBS="$LIBS"
    LIBS="$LDADD_LIBNTP $LIBS"
    for ac_func in getifaddrs
do :
  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF

fi
done

    LIBS="$SAVED_LIBS"
    { SAVED_LIBS=; unset SAVED_LIBS;}
    ;;
esac

#
# Check for if_nametoindex() for IPv6 scoped addresses support
#
case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
$as_echo_n "checking for library containing if_nametoindex... " >&6; }
if ${ac_cv_search_if_nametoindex+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char if_nametoindex ();
int
main ()
{
return if_nametoindex ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' ipv6; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_if_nametoindex=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_if_nametoindex+:} false; then :
  break
fi
done
if ${ac_cv_search_if_nametoindex+:} false; then :

d25013 1
a25013 10
  ac_cv_search_if_nametoindex=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
$as_echo "$ac_cv_search_if_nametoindex" >&6; }
ac_res=$ac_cv_search_if_nametoindex
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d25016 1
a25016 11

esac
SAVED_LIBS="$LIBS"
LIBS="$LDADD_LIBNTP $LIBS"
for ac_func in if_nametoindex
do :
  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
if test "x$ac_cv_func_if_nametoindex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_IF_NAMETOINDEX 1
_ACEOF
d25019 2
a25020 1
done
d25022 1
a25022 3
LIBS="$SAVED_LIBS"
{ SAVED_LIBS=; unset SAVED_LIBS;}
case "$ac_cv_func_if_nametoindex" in
d25025 1
a25025 1
$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
a25028 3



d25081 1
a25081 2
case "$ntp_ok" in
 yes)
d25086 1
a25086 2
    ;;
esac
a25097 100

gta=false

# Check whether --with-gtest was given.
if test "${with_gtest+set}" = set; then :
  withval=$with_gtest; try_gtest=$withval
else
  try_gtest=yes

fi

case "$try_gtest" in
 yes)
    # Extract the first word of "gtest-config", so it can be a program name with args.
set dummy gtest-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_GTEST_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $GTEST_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
if test -n "$GTEST_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
$as_echo "$GTEST_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
    case x${GTEST_CONFIG} in
     x) ;;
     *)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
$as_echo_n "checking gtest version... " >&6; }
	gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
	case "$gtest_version_test" in
	 toolow*)
	    ;;
	 *)
	    GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
	    GTEST_LIBS=`$GTEST_CONFIG --libs`
	    GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
	    GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`




	    gta=true
	    ;;
	esac
	gtest_version=`$GTEST_CONFIG --version`
	case "$gta" in
	 true)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
$as_echo "($gtest_version) ok" >&6; }
	    ;;
	 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
$as_echo "($gtest_version) not ok" >&6; }
	    ;;
	esac
	{ gtest_version_test=; unset gtest_version_test;}
	{ gtest_version=; unset gtest_version;}
    esac
esac
 if $gta; then
  GTEST_AVAILABLE_TRUE=
  GTEST_AVAILABLE_FALSE='#'
else
  GTEST_AVAILABLE_TRUE='#'
  GTEST_AVAILABLE_FALSE=
fi




d25101 5
a25105 8
  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$sysconfdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  NTP_KEYSDIR="$ac_define_dir"

d25108 1
a25108 1
#define NTP_KEYSDIR "$ac_define_dir"
a25110 2
  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE
d25115 2
a25134 2
ac_config_files="$ac_config_files ntpd/complete.conf"

d25149 1
a25149 5
ac_config_files="$ac_config_files scripts/lib/Makefile"

ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"

ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
d25151 1
a25151 1
ac_config_files="$ac_config_files scripts/build/mkver"
d25153 1
a25153 1
ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
d25155 1
a25155 1
ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
d25157 1
a25157 1
ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
d25159 1
a25159 1
ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
d25161 1
a25161 1
ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
d25163 1
a25163 1
ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
a25170 8
ac_config_files="$ac_config_files scripts/build/Makefile"

ac_config_files="$ac_config_files tests/Makefile"

ac_config_files="$ac_config_files tests/libntp/Makefile"

ac_config_files="$ac_config_files tests/ntpd/Makefile"

a25173 32
perllibdir="${datadir}/ntp/lib"

  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$perllibdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  PERLLIBDIR="$ac_define_dir"


cat >>confdefs.h <<_ACEOF
#define PERLLIBDIR "$ac_define_dir"
_ACEOF

  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE


calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"

ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"

ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"

ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"

summary_opts="$srcdir/scripts/summary-opts"

plot_summary_opts="$srcdir/scripts/plot_summary-opts"


a25307 5

if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a25311 4
if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d25324 2
a25325 6
if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
  as_fn_error $? "conditional \"PTHREADS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
d25328 1
a25332 4
if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
  as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d25742 1
a25742 1
This file was extended by ntp $as_me 4.2.7p404, which was
d25802 1
a25802 2
Report bugs to <http://bugs.ntp.org./>.
ntp home page: <http://www.ntp.org./>."
d25808 1
a25808 1
ntp config.status 4.2.7p404
a26066 55
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d26145 1
a26145 33
striplib \
compiler_lib_search_dirs \
predep_objects \
postdep_objects \
predeps \
postdeps \
compiler_lib_search_path \
LD_CXX \
reload_flag_CXX \
compiler_CXX \
lt_prog_compiler_no_builtin_flag_CXX \
lt_prog_compiler_pic_CXX \
lt_prog_compiler_wl_CXX \
lt_prog_compiler_static_CXX \
lt_cv_prog_compiler_c_o_CXX \
export_dynamic_flag_spec_CXX \
whole_archive_flag_spec_CXX \
compiler_needs_object_CXX \
with_gnu_ld_CXX \
allow_undefined_flag_CXX \
no_undefined_flag_CXX \
hardcode_libdir_flag_spec_CXX \
hardcode_libdir_flag_spec_ld_CXX \
hardcode_libdir_separator_CXX \
exclude_expsyms_CXX \
include_expsyms_CXX \
file_list_spec_CXX \
compiler_lib_search_dirs_CXX \
predep_objects_CXX \
postdep_objects_CXX \
predeps_CXX \
postdeps_CXX \
compiler_lib_search_path_CXX; do
d26175 1
a26175 12
sys_lib_dlsearch_path_spec \
reload_cmds_CXX \
old_archive_cmds_CXX \
old_archive_from_new_cmds_CXX \
old_archive_from_expsyms_cmds_CXX \
archive_cmds_CXX \
archive_expsym_cmds_CXX \
module_cmds_CXX \
module_expsym_cmds_CXX \
export_symbols_cmds_CXX \
prelink_cmds_CXX \
postlink_cmds_CXX; do
a26205 2


d26218 1
a26227 1
    "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
d26235 8
a26242 10
    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
    "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
    "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
    "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
    "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
a26245 4
    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
    "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
    "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
d26295 1
a26295 18
if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  ac_cs_awk_getline=:
  ac_cs_awk_pipe_init=
  ac_cs_awk_read_file='
      while ((getline aline < (F[key])) > 0)
	print(aline)
      close(F[key])'
  ac_cs_awk_pipe_fini=
else
  ac_cs_awk_getline=false
  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  ac_cs_awk_read_file='
      print "|#_!!_#|"
      print "cat " F[key] " &&"
      '$ac_cs_awk_pipe_init
  # The final `:' finishes the AND list.
  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
fi
a26312 11
# Create commands to substitute file output variables.
{
  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  echo "_ACAWK" &&
  echo "_ACEOF"
} >conf$$files.sh &&
. ./conf$$files.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
rm -f conf$$files.sh
d26389 1
a26389 1
  \$ac_cs_awk_pipe_init
d26407 1
a26407 7
  if (nfields == 3 && !substed) {
    key = field[2]
    if (F[key] != "" && line ~ /^[	 ]*@@.*@@[	 ]*$/) {
      \$ac_cs_awk_read_file
      next
    }
  }
d26410 1
a26410 1
\$ac_cs_awk_pipe_fini
d26757 1
a26757 6
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
if $ac_cs_awk_getline; then
  $AWK -f "$ac_tmp/subs.awk"
else
  $AWK -f "$ac_tmp/subs.awk" | $SHELL
fi \
d26987 1
a26987 1
available_tags="CXX "
a27374 14
# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects
postdep_objects=$lt_postdep_objects
predeps=$lt_predeps
postdeps=$lt_postdeps

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path

a27566 157

    cat <<_LT_EOF >> "$ofile"

# ### BEGIN LIBTOOL TAG CONFIG: CXX

# The linker used to build libraries.
LD=$lt_LD_CXX

# How to create reloadable object files.
reload_flag=$lt_reload_flag_CXX
reload_cmds=$lt_reload_cmds_CXX

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds_CXX

# A language specific compiler.
CC=$lt_compiler_CXX

# Is the compiler the GNU compiler?
with_gcc=$GCC_CXX

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object_CXX

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld_CXX

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute_CXX

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic_CXX

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath_CXX

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds_CXX

# Commands necessary for finishing linking programs.
postlink_cmds=$lt_postlink_cmds_CXX

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec_CXX

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects_CXX
postdep_objects=$lt_postdep_objects_CXX
predeps=$lt_predeps_CXX
postdeps=$lt_postdeps_CXX

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX

# ### END LIBTOOL TAG CONFIG: CXX
_LT_EOF

a27567 1
    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
d27569 8
a27576 5
    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
    "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
    "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
    "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
    "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
@


1.1.1.2
log
@Import ntp 4.2.6p5
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.68 for ntp 4.2.6p5.
d7 2
a8 2
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
# Foundation, Inc.
a91 1
as_myself=
d174 1
a174 9
test \$(( 1 + 1 )) = 2 || exit 1

  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    PATH=/empty FPATH=/empty; export PATH FPATH
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
a216 1
	# Preserve -v and -x to the replacement shell.
d221 1
a221 7
	case $- in # ((((
	  *v*x* | *x*v* ) as_opts=-vx ;;
	  *v* ) as_opts=-v ;;
	  *x* ) as_opts=-x ;;
	  * ) as_opts= ;;
	esac
	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@@"}
d319 1
a319 1
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
d359 2
a360 2
# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
d363 1
a363 1
# script with STATUS, using 1 if that was 0.
d366 4
a369 4
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
d371 1
a371 1
  $as_echo "$as_me: error: $2" >&2
d528 3
d533 145
d683 1
a683 1
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
d702 2
a703 2
PACKAGE_VERSION='4.2.6p5'
PACKAGE_STRING='ntp 4.2.6p5'
a747 1
subdirs
d781 1
a781 1
PATH_TEST
d783 1
a783 7
PATH_PERL
OTOOL64
OTOOL
LIPO
NMEDIT
DSYMUTIL
MANIFEST_TOOL
a784 1
ac_ct_AR
d786 1
a786 2
DLLTOOL
OBJDUMP
d788 2
a789 8
NM
ac_ct_DUMPBIN
DUMPBIN
LD
FGREP
LIBTOOL
NTP_BINSUBDIR_IS_BIN_FALSE
NTP_BINSUBDIR_IS_BIN_TRUE
a792 1
LIBOPTS_DIR
d799 1
a799 2
POSIX_SHELL
SED
d900 5
a908 1
with_pic
a910 1
with_sysroot
d912 2
d1009 2
a1010 1
ac_subdirs_all='sntp'
d1072 2
a1073 3
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *=)   ac_optarg= ;;
  *)    ac_optarg=yes ;;
d1118 1
a1118 1
      as_fn_error $? "invalid feature name: $ac_useropt"
d1144 1
a1144 1
      as_fn_error $? "invalid feature name: $ac_useropt"
d1348 1
a1348 1
      as_fn_error $? "invalid package name: $ac_useropt"
d1364 1
a1364 1
      as_fn_error $? "invalid package name: $ac_useropt"
d1394 2
a1395 2
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information"
d1403 1
a1403 1
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
d1413 1
a1413 1
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d1421 1
a1421 1
  as_fn_error $? "missing argument to $ac_option"
d1427 1
a1427 1
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
d1450 1
a1450 1
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d1464 2
a1465 2
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used" >&2
d1480 1
a1480 1
  as_fn_error $? "working directory cannot be determined"
d1482 1
a1482 1
  as_fn_error $? "pwd does not report name of working directory"
d1521 1
a1521 1
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d1525 1
a1525 1
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
d1551 1
a1551 1
\`configure' configures ntp 4.2.6p5 to adapt to many kinds of systems.
d1565 1
a1565 1
  -q, --quiet, --silent   do not print \`checking ...' messages
d1621 1
a1621 1
     short | recursive ) echo "Configuration of ntp 4.2.6p5:";;
d1635 1
a1721 1

d1728 4
d1733 1
a1733 1
  --with-arlib            - deprecated, arlib not distributed
d1735 1
d1738 1
a1738 3
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
d1757 2
a1758 3
  YACC        The `Yet Another Compiler Compiler' implementation to use.
              Defaults to the first program found out of: `bison -y', `byacc',
              `yacc'.
d1829 2
a1830 2
ntp configure 4.2.6p5
generated by GNU Autoconf 2.68
d1832 1
a1832 1
Copyright (C) 2010 Free Software Foundation, Inc.
d1876 1
a1876 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d1902 1
a1902 1
  test $ac_status = 0; } > conftest.i && {
d1913 1
a1913 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d1926 1
a1926 1
  if eval \${$3+:} false; then :
d1929 1
a1929 1
if eval \${$3+:} false; then :
d1965 1
a1965 1
rm -f conftest.err conftest.i conftest.$ac_ext
d1992 1
a1992 1
if eval \${$3+:} false; then :
d2001 1
a2001 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d2042 1
a2042 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d2056 1
a2056 1
if eval \${$3+:} false; then :
d2074 1
a2074 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d2119 1
a2119 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d2133 1
a2133 1
if eval \${$3+:} false; then :
d2174 1
a2174 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d2351 1
a2351 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d2364 1
a2364 1
if eval \${$3+:} false; then :
d2419 1
a2419 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d2432 1
a2432 1
if eval \${$4+:} false; then :
d2476 1
a2476 1
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d2483 2
a2484 2
It was created by ntp $as_me 4.2.6p5, which was
generated by GNU Autoconf 2.68.  Invocation command line was
d2594 2
a2595 1
    $as_echo "## ---------------- ##
d2597 2
a2598 1
## ---------------- ##"
d2632 2
a2633 1
    $as_echo "## ----------------- ##
d2635 2
a2636 1
## ----------------- ##"
d2649 2
a2650 1
      $as_echo "## ------------------- ##
d2652 2
a2653 1
## ------------------- ##"
d2667 2
a2668 1
      $as_echo "## ----------- ##
d2670 2
a2671 1
## ----------- ##"
d2726 1
a2726 6
  # We do not want a PATH search for config.site.
  case $CONFIG_SITE in #((
    -*)  ac_site_file1=./$CONFIG_SITE;;
    */*) ac_site_file1=$CONFIG_SITE;;
    *)   ac_site_file1=./$CONFIG_SITE;;
  esac
d2741 1
a2741 5
    . "$ac_site_file" \
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "failed to load site script $ac_site_file
See \`config.log' for more details" "$LINENO" 5; }
d2817 1
a2817 1
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d2833 7
a2839 13
  if test -f "$ac_dir/install-sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f "$ac_dir/install.sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f "$ac_dir/shtool"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
d2842 1
a2842 1
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
d2954 1
a2954 1
	    { eval $c_varname=; unset $c_varname;}
d2957 2
d2965 1
a2965 3
	{ c_varname=; unset c_varname;}
	{ c_varname_list=; unset c_varname_list;}
	{ c_version=; unset c_version;}
a2967 2
    { ntp_cache_flush=; unset ntp_cache_flush;}

d2971 2
d2997 1
a2997 1
if ${ac_cv_path_install+:} false; then :
d3084 1
a3084 1
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
d3088 1
a3088 1
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
d3110 1
a3110 1
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
d3120 1
a3120 1
   as_fn_error $? "newly created file is older than distributed files!
d3174 1
a3174 1
if ${ac_cv_prog_STRIP+:} false; then :
d3214 1
a3214 1
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d3267 1
a3267 1
  if ${ac_cv_path_mkdir+:} false; then :
d3318 1
a3318 1
if ${ac_cv_prog_AWK+:} false; then :
d3358 1
a3358 1
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
d3366 1
a3366 1
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
d3400 1
a3400 1
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
d3416 1
a3416 1
 VERSION='4.2.6p5'
d3458 1
a3458 1
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
d3462 1
a3462 1
if ${ac_cv_build+:} false; then :
d3469 1
a3469 1
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
d3471 1
a3471 1
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
d3478 1
a3478 1
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
d3496 1
a3496 1
if ${ac_cv_host+:} false; then :
d3503 1
a3503 1
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
d3511 1
a3511 1
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
d3535 7
a3541 5
ntp_atom_ok=${ntp_atom_ok=no}
ntp_oncore_ok=${ntp_oncore_ok=no}
ntp_parse_ok=${ntp_parse_ok=no}
ntp_ripe_ncc_ok=${ntp_parse_ok=no}
ntp_jupiter_ok=${ntp_jupiter_ok=no}
d3615 1
a3615 1
if ${ac_cv_prog_CC+:} false; then :
d3655 1
a3655 1
if ${ac_cv_prog_ac_ct_CC+:} false; then :
d3708 1
a3708 1
if ${ac_cv_prog_CC+:} false; then :
d3748 1
a3748 1
if ${ac_cv_prog_CC+:} false; then :
d3807 1
a3807 1
if ${ac_cv_prog_CC+:} false; then :
d3851 1
a3851 1
if ${ac_cv_prog_ac_ct_CC+:} false; then :
d3905 2
a3906 2
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }
d4020 3
a4022 2
as_fn_error 77 "C compiler cannot create executables
See \`config.log' for more details" "$LINENO" 5; }
d4064 2
a4065 2
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details" "$LINENO" 5; }
d4122 1
a4122 1
as_fn_error $? "cannot run C compiled programs.
d4124 1
a4124 1
See \`config.log' for more details" "$LINENO" 5; }
d4135 1
a4135 1
if ${ac_cv_objext+:} false; then :
d4175 2
a4176 2
as_fn_error $? "cannot compute suffix of object files: cannot compile
See \`config.log' for more details" "$LINENO" 5; }
d4186 1
a4186 1
if ${ac_cv_c_compiler_gnu+:} false; then :
d4223 1
a4223 1
if ${ac_cv_prog_cc_g+:} false; then :
d4301 1
a4301 1
if ${ac_cv_prog_cc_c89+:} false; then :
d4400 1
a4400 1
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
d4536 1
a4536 1
  if ${ac_cv_prog_CPP+:} false; then :
d4566 1
a4566 1
rm -f conftest.err conftest.i conftest.$ac_ext
d4582 1
a4582 1
rm -f conftest.err conftest.i conftest.$ac_ext
d4586 1
a4586 1
rm -f conftest.i conftest.err conftest.$ac_ext
d4625 1
a4625 1
rm -f conftest.err conftest.i conftest.$ac_ext
d4641 1
a4641 1
rm -f conftest.err conftest.i conftest.$ac_ext
d4645 1
a4645 1
rm -f conftest.i conftest.err conftest.$ac_ext
d4651 2
a4652 2
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
d4664 1
a4664 1
if ${ac_cv_path_GREP+:} false; then :
d4713 1
a4713 1
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
d4727 1
a4727 1
if ${ac_cv_path_EGREP+:} false; then :
d4779 1
a4779 1
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
d4794 1
a4794 1
if ${ac_cv_header_stdc+:} false; then :
d4911 2
a4912 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d4924 1
a4924 1
if test "x$ac_cv_header_minix_config_h" = xyes; then :
d4946 1
a4946 1
if ${ac_cv_safe_to_define___extensions__+:} false; then :
a5013 6






d5024 1
a5024 1
if ${ac_cv_prog_CC+:} false; then :
d5064 1
a5064 1
if ${ac_cv_prog_ac_ct_CC+:} false; then :
d5117 1
a5117 1
if ${ac_cv_prog_CC+:} false; then :
d5157 1
a5157 1
if ${ac_cv_prog_CC+:} false; then :
d5216 1
a5216 1
if ${ac_cv_prog_CC+:} false; then :
d5260 1
a5260 1
if ${ac_cv_prog_ac_ct_CC+:} false; then :
d5314 2
a5315 2
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }
d5344 1
a5344 1
if ${ac_cv_c_compiler_gnu+:} false; then :
d5381 1
a5381 1
if ${ac_cv_prog_cc_g+:} false; then :
d5459 1
a5459 1
if ${ac_cv_prog_cc_c89+:} false; then :
d5558 1
a5558 1
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
d5692 1
a5692 1
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
d5821 1
a5821 1
  if ${ac_cv_prog_CPP+:} false; then :
d5851 1
a5851 1
rm -f conftest.err conftest.i conftest.$ac_ext
d5867 1
a5867 1
rm -f conftest.err conftest.i conftest.$ac_ext
d5871 1
a5871 1
rm -f conftest.i conftest.err conftest.$ac_ext
d5910 1
a5910 1
rm -f conftest.err conftest.i conftest.$ac_ext
d5926 1
a5926 1
rm -f conftest.err conftest.i conftest.$ac_ext
d5930 1
a5930 1
rm -f conftest.i conftest.err conftest.$ac_ext
d5936 2
a5937 2
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
d5952 1
a5952 1
if ${ac_cv_prog_YACC+:} false; then :
d6002 1
a6002 1
if ${ac_cv_prog_cc_c99+:} false; then :
d6177 1
a6177 1
if ${ac_cv_prog_cc_c89+:} false; then :
d6273 1
a6273 1
  if ${ac_cv_prog_cc_stdc+:} false; then :
d6300 11
d6337 1
a6337 1
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
d6339 49
a6387 32
    # allow ntp_os_flags to be preset to skip this stuff
    case "${ntp_os_cflags+set}" in
     set)
	;;
     *)
	ntp_os_cflags=""
	case "$host_os" in
	 aix[1-3]*)
	    ;;
	 aix4.[0-2]*)
	    # turn on additional headers
	    ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
	    ;;
	 aix5.3*)
	    # avoid circular dependencies in yp headers, and more
	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
	    ;;
	 aix*)
	    # avoid circular dependencies in yp headers
	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
	    ;;
	 amigaos)
	    ntp_os_cflags="-DSYS_AMIGA"
	    ;;
	 darwin*|macosx*|rhapsody*)
	    ntp_os_cflags="-D_P1003_1B_VISIBLE"
	    ;;
	 hpux10.*)		# at least for hppa2.0-hp-hpux10.20
	    case "$GCC" in
	     yes)
d6389 7
a6395 3
	     *)
		# use Ansi compiler on HPUX, and some -Wp magic
		ntp_os_cflags="-Ae -Wp,-H18816"
d6397 9
a6405 6
	    esac
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
	    ;;
	 hpux*)
	    case "$GCC" in
	     yes)
d6407 1
a6407 1
	     *)
d6409 11
a6419 25
		ntp_os_cflags="-Ae"
	    esac
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
	    ;;
	 irix6*)
	    case "$CC" in
	     cc)
		# do not use 64-bit compiler
		ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
	    esac
	    ;;
	 nextstep3)
	    ntp_os_cflags="-posix"
	    ;;
	 solaris1*|solaris2.[0-5]|solaris2.5.*)
	    ;;
	 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
	    ;;
	 solaris2*|sunos5*)
	    # turn on 64-bit file offset interface
	    ntp_os_cflags="-D_LARGEFILE64_SOURCE"
	    ;;
	 vxworks*)
	    case "$build" in
	     $host)
d6421 6
a6426 22
	     *)
		# Quick and dirty sanity check
		case "$VX_KERNEL" in
		 '')
		    as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
		esac
		ntp_os_cflags="-DSYS_VXWORKS"
	    esac
	    ;;
	esac
    esac
    case "$ntp_os_flags" in
     '')
	ntp_os_cflags_msg="none needed"
	;;
     *)
	ntp_os_cflags_msg="$ntp_os_cflags"
	CFLAGS="$CFLAGS $ntp_os_cflags"
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
$as_echo "$ntp_os_cflags_msg" >&6; }
    { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
d6431 1
a6431 1
if ${ntp_cv_dir_sep+:} false; then :
d6435 8
a6442 12
	case "$ntp_cv_dir_sep" in
	 '')
	    case "$target_os" in
	     *djgpp | *mingw32* | *emx*)
		ntp_cv_dir_sep="'\\'"
		;;
	     *)
		ntp_cv_dir_sep="'/'"
		;;
	    esac
	esac

d6445 2
a6446 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
$as_echo "$ntp_cv_dir_sep" >&6; }
d6449 1
a6449 1
#define DIR_SEP $ntp_cv_dir_sep
a6452 1

d6494 1
a6494 1
if test "x$ac_cv_type_pid_t" = xyes; then :
d6505 21
d6527 3
a6529 7
  ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
if eval \${$as_ac_Header+:} false; then :
  $as_echo_n "(cached) " >&6
d6531 8
a6538 4
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>
d6540 8
a6547 11
int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$as_ac_Header=yes"
d6549 5
a6553 1
  eval "$as_ac_Header=no"
d6555 2
a6556 9
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_ac_Header
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF
a6557 1
ac_header_dirent=$ac_hdr; break
d6559 1
d6561 1
a6561 6
done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
d6564 215
a6778 3
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6807 1
a6807 1
  if ${ac_cv_search_opendir+:} false; then :
d6811 1
a6811 1
if ${ac_cv_search_opendir+:} false; then :
d6830 1
a6830 1
if ${ac_cv_search_opendir+:} false; then :
d6864 1
a6864 1
  if ${ac_cv_search_opendir+:} false; then :
d6868 1
a6868 1
if ${ac_cv_search_opendir+:} false; then :
d6890 4
a6893 6
  for ac_header in  \
      dlfcn.h      errno.h       fcntl.h       libgen.h     \
      memory.h     netinet/in.h  setjmp.h      sys/mman.h   \
      sys/param.h  sys/poll.h    sys/procset.h sys/select.h \
      sys/socket.h sys/stropts.h sys/time.h    sys/un.h     \
      sys/wait.h   unistd.h      utime.h       sysexits.h
d6897 2
a6898 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d6908 9
a6916 12
  for ac_header in stdarg.h     varargs.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_arg_hdr=true;break
else
  lo_have_arg_hdr=false
fi
d6918 5
a6922 4
done


  for ac_header in string.h     strings.h
d6926 2
a6927 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d6931 1
a6931 3
 lo_have_str_hdr=true;break
else
  lo_have_str_hdr=false
d6936 3
d6940 4
a6943 1
  for ac_header in limits.h     sys/limits.h  values.h
d6947 2
a6948 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d6952 1
a6952 3
 lo_have_lim_hdr=true;break
else
  lo_have_lim_hdr=false
d6957 3
d6961 4
a6964 1
  for ac_header in inttypes.h   stdint.h
d6968 2
a6969 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d6973 1
a6973 3
 lo_have_typ_hdr=true;break
else
  lo_have_typ_hdr=false
d6978 3
d6996 2
a6997 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a7006 23
  # --------------------------------------------
  # Verify certain entries from AC_CHECK_HEADERS
  # --------------------------------------------
  for f in sys_types sys_mman sys_param sys_stat sys_wait \
           string errno stdlib memory setjmp
  do eval as_ac_var=\${ac_cv_header_${f}_h+set}
     test "${as_ac_var}" = set || {
       as_fn_error $? "You must have ${f}.h on your system" "$LINENO" 5
     }
  done

  ${lo_have_arg_hdr} || \
    as_fn_error $? "You must have stdarg.h or varargs.h on your system" "$LINENO" 5

  ${lo_have_str_hdr} || \
    as_fn_error $? "You must have string.h or strings.h on your system" "$LINENO" 5

  ${lo_have_lim_hdr} || \
    as_fn_error $? "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5

  ${lo_have_typ_hdr} || \
    as_fn_error $? "You must have inttypes.h or stdint.h on your system" "$LINENO" 5

d7011 1
a7011 1
if test "x$ac_cv_type_wchar_t" = xyes; then :
d7030 1
a7030 1
if test "x$ac_cv_type_wint_t" = xyes; then :
d7039 18
d7058 1
a7058 1
if test "x$ac_cv_type_int8_t" = xyes; then :
d7067 1
a7067 1
if test "x$ac_cv_type_uint8_t" = xyes; then :
d7076 1
a7076 1
if test "x$ac_cv_type_int16_t" = xyes; then :
d7085 1
a7085 1
if test "x$ac_cv_type_uint16_t" = xyes; then :
d7094 1
a7094 1
if test "x$ac_cv_type_int32_t" = xyes; then :
d7103 1
a7103 1
if test "x$ac_cv_type_uint32_t" = xyes; then :
d7112 1
a7112 1
if test "x$ac_cv_type_intptr_t" = xyes; then :
d7121 1
a7121 1
if test "x$ac_cv_type_uintptr_t" = xyes; then :
d7130 1
a7130 1
if test "x$ac_cv_type_uint_t" = xyes; then :
d7139 1
a7139 1
if test "x$ac_cv_type_pid_t" = xyes; then :
d7148 1
a7148 1
if test "x$ac_cv_type_size_t" = xyes; then :
d7167 1
a7167 1
if ${ac_cv_sizeof_charp+:} false; then :
d7176 3
a7178 2
as_fn_error 77 "cannot compute sizeof (char*)
See \`config.log' for more details" "$LINENO" 5; }
d7201 1
a7201 1
if ${ac_cv_sizeof_int+:} false; then :
d7210 3
a7212 2
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
d7235 1
a7235 1
if ${ac_cv_sizeof_long+:} false; then :
d7244 3
a7246 2
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
d7269 1
a7269 1
if ${ac_cv_sizeof_short+:} false; then :
d7278 3
a7280 2
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
d7303 1
a7303 1
if ${ac_cv_lib_gen_pathfind+:} false; then :
d7337 1
a7337 1
if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
d7349 1
a7349 1
if test "x$ac_cv_func_vprintf" = xyes; then :
d7355 1
a7355 1
if test "x$ac_cv_func__doprnt" = xyes; then :
d7368 1
a7368 1
if test "x$ac_cv_header_vfork_h" = xyes; then :
d7381 2
a7382 1
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d7393 1
a7393 1
if ${ac_cv_func_fork_works+:} false; then :
d7446 1
a7446 1
if ${ac_cv_func_vfork_works+:} false; then :
d7584 2
a7585 1
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d7593 12
a7604 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
d7607 24
a7630 45
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
d7632 8
a7639 8
      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
d7641 1
a7641 1
  ac_cv_path_SED=$SED
d7643 2
d7647 1
a7647 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed
d7649 7
a7655 15
  while :
  do
      POSIX_SHELL=`which bash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`which dash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=/usr/xpg4/bin/sh
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`/bin/sh -c '
          exec 2>/dev/null
          if ! true ; then exit 1 ; fi
          echo /bin/sh'`
      test -x "$POSIX_SHELL" && break
      as_fn_error $? "Cannot locate a working POSIX shell" "$LINENO" 5
  done
a7656 3
cat >>confdefs.h <<_ACEOF
#define POSIX_SHELL "${POSIX_SHELL}"
_ACEOF
d7658 13
d7672 2
d7676 13
d7690 2
a7691 1
  LIBOPTS_BUILD_BLOCKED=true
d7693 36
d7730 35
a7764 1
  NEED_LIBOPTS_DIR=''
a7765 10
  # Check whether --enable-local-libopts was given.
if test "${enable_local_libopts+set}" = set; then :
  enableval=$enable_local_libopts;
    if test x$enableval = xyes ; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
       NEED_LIBOPTS_DIR=true
    fi
d7767 14
d7783 1
a7783 4
  # Check whether --enable-libopts-install was given.
if test "${enable_libopts_install+set}" = set; then :
  enableval=$enable_libopts_install;
fi
d7785 4
a7788 3
   if test "X${enable_libopts_install}" != Xno; then
  INSTALL_LIBOPTS_TRUE=
  INSTALL_LIBOPTS_FALSE='#'
a7789 3
  INSTALL_LIBOPTS_TRUE='#'
  INSTALL_LIBOPTS_FALSE=
fi
d7791 2
a7793 7
  if test -z "${NEED_LIBOPTS_DIR}" ; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
$as_echo_n "checking whether autoopts-config can be found... " >&6; }

# Check whether --with-autoopts-config was given.
if test "${with_autoopts_config+set}" = set; then :
  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
d7795 11
a7805 4
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
$as_echo_n "checking whether autoopts-config is specified... " >&6; }
if ${lo_cv_with_autoopts_config+:} false; then :
  $as_echo_n "(cached) " >&6
d7807 4
a7810 5
  if autoopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=autoopts-config
        elif libopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=libopts-config
        else lo_cv_with_autoopts_config=no ; fi
d7812 1
a7812 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
$as_echo "$lo_cv_with_autoopts_config" >&6; }
d7815 14
a7828 1
 # end of AC_ARG_WITH
d7830 3
a7832 1
     if ${lo_cv_test_autoopts+:} false; then :
d7836 9
a7844 13
        if test -z "${lo_cv_with_autoopts_config}" \
                -o X"${lo_cv_with_autoopts_config}" = Xno
        then
           if autoopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=autoopts-config
           elif libopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=libopts-config
           else lo_cv_with_autoopts_config=false ; fi
        fi
        lo_cv_test_autoopts=`
            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
        then lo_cv_test_autoopts=no ; fi
d7847 8
a7854 3
 # end of CACHE_VAL
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
$as_echo "${lo_cv_test_autoopts}" >&6; }
a7855 12
     if test "X${lo_cv_test_autoopts}" != Xno
     then
        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
     else
        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
        NEED_LIBOPTS_DIR=true
     fi
  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
    NEED_LIBOPTS_DIR=''
d7857 31
a7887 3
   if test -n "${NEED_LIBOPTS_DIR}"; then
  NEED_LIBOPTS_TRUE=
  NEED_LIBOPTS_FALSE='#'
d7889 7
a7895 2
  NEED_LIBOPTS_TRUE='#'
  NEED_LIBOPTS_FALSE=
d7897 6
d7904 1
d7906 1
a7907 1
  LIBOPTS_DIR=sntp/libopts
d7910 1
a7910 1
# end of AC_DEFUN of LIBOPTS_CHECK_COMMON
d7912 5
a7916 1
  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
d7918 2
d7921 20
a7940 6
for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
d7942 9
d7953 10
a7963 1
done
a7964 8
for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d7966 1
a7966 2
fi
done
d7968 3
a7970 4
if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
d7973 1
d7975 2
a7976 1
  ac_cv_func_fork_works=cross
d7980 4
a7983 11
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
d7986 1
a7986 1
  ac_cv_func_fork_works=yes
d7988 1
a7988 1
  ac_cv_func_fork_works=no
d7993 1
d7996 15
a8010 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }
d8012 6
a8017 21
else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
d8020 1
d8022 2
a8023 1
  ac_cv_func_vfork_works=cross
d8027 19
a8045 33
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}
d8047 2
a8048 5
int
main ()
{
  pid_t parent = getpid ();
  pid_t child;
d8050 1
a8050 1
  sparc_address_test (0);
d8052 1
a8052 1
  child = vfork ();
d8054 1
a8054 18
  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);
d8056 1
a8056 8
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;
a8057 5
    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0
a8058 2
	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status
d8060 1
a8060 2
	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()
d8062 8
a8069 8
	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
d8071 1
a8071 6
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

d8073 2
a8074 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }
a8075 5
fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
d8077 1
d8079 2
a8080 1
if test "x$ac_cv_func_vfork_works" = xyes; then
d8082 1
a8082 1
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
d8084 1
a8084 1
else
a8085 1
$as_echo "#define vfork fork" >>confdefs.h
a8086 2
fi
if test "x$ac_cv_func_fork_works" = xyes; then
a8087 1
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
d8089 1
a8089 1
fi
d8091 4
a8094 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d8099 4
d8107 1
a8107 1
#warning foo
d8113 1
a8113 1
  ntp_cv_cpp_warning=yes
d8115 13
a8127 1
  ntp_cv_cpp_warning=no
d8129 2
d8132 1
a8132 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a8134 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)
d8136 14
a8149 1
$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
d8151 1
a8151 1
esac
d8153 4
a8156 8
case "$GCC" in
 yes)
    SAVED_CFLAGS_NTP="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
d8160 12
d8173 1
d8177 5
a8181 2

  ;
d8185 2
a8186 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Wstrict_overflow=yes
d8188 5
a8192 1
  ntp_cv_gcc_Wstrict_overflow=no
d8195 6
a8200 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d8203 7
a8209 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS_NTP -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
d8212 1
a8212 2

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d8214 2
d8220 2
a8221 1

d8227 1
a8227 1
  ntp_cv_gcc_Winit_self=yes
d8229 12
a8240 1
  ntp_cv_gcc_Winit_self=no
d8242 1
a8243 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d8245 11
d8257 29
d8287 2
a8288 9
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS_NTP"
    { SAVED_CFLAGS_NTP=; unset SAVED_CFLAGS_NTP;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS.
    #
esac
a8289 4
# Expose a cross-compilation indicator to makefiles
 if test $build != $host; then
  NTP_CROSSCOMPILE_TRUE=
  NTP_CROSSCOMPILE_FALSE='#'
d8291 4
a8294 2
  NTP_CROSSCOMPILE_TRUE='#'
  NTP_CROSSCOMPILE_FALSE=
d8296 5
d8302 1
a8303 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
$as_echo_n "checking for bin subdirectory... " >&6; }

# Check whether --with-binsubdir was given.
if test "${with_binsubdir+set}" = set; then :
  withval=$with_binsubdir; use_binsubdir="$withval"
d8305 8
a8312 1
  use_binsubdir="bin"
d8314 29
d8344 2
d8347 11
a8357 11
case "$use_binsubdir" in
 bin)
    ;;
 sbin)
    ;;
 *)
    as_fn_error $? "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
$as_echo "$use_binsubdir" >&6; }
d8359 1
a8359 1
BINSUBDIR=$use_binsubdir
a8360 6
 if test "bin" = "$BINSUBDIR"; then
  NTP_BINSUBDIR_IS_BIN_TRUE=
  NTP_BINSUBDIR_IS_BIN_FALSE='#'
else
  NTP_BINSUBDIR_IS_BIN_TRUE='#'
  NTP_BINSUBDIR_IS_BIN_FALSE=
d8364 15
a8378 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
$as_echo_n "checking for deprecated --with-arlib... " >&6; }
a8379 5
# Check whether --with-arlib was given.
if test "${with_arlib+set}" = set; then :
  withval=$with_arlib; ans=$withval
else
  ans=no
d8382 1
a8382 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
a8383 5
case "$ans" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&5
$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&2;}
esac
d8385 9
d8395 14
a8408 5
# Check whether --with-rpath was given.
if test "${with_rpath+set}" = set; then :
  withval=$with_rpath; ans=$withval
else
  ans=x
d8411 1
a8411 28
case "$ans" in
 no)
    need_dash_r=
    ;;
 yes)
    need_dash_r=1
    ;;
esac
# HMS: Why isn't this $build?
# Well, that depends on if we need this for the build toolchain or
# for info in the host executable...
# I still have no idea which way this should go, but nobody has complained.
case "$host" in
 *-*-netbsd*)
    case "$need_dash_r" in
     no) ;;
     *)  need_dash_r=1
	 ;;
    esac
    ;;
 *-*-solaris*)
    case "$need_dash_r" in
     no) ;;
     *)  need_dash_r=1
	 ;;
    esac
    ;;
esac
d8413 2
a8414 22
for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
d8416 16
a8432 2
  done
IFS=$as_save_IFS
d8434 17
a8450 9
fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
a8452 2

  test -n "$AWK" && break
d8455 22
a8476 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
d8478 1
a8478 17
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
d8480 2
d8484 5
a8488 1
rm -f conftest*
d8490 3
a8492 24
case "$GCC" in
 yes)
    CFLAGS="$CFLAGS -Wall"
    # CFLAGS="$CFLAGS -Wcast-align"
    CFLAGS="$CFLAGS -Wcast-qual"
    # CFLAGS="$CFLAGS -Wconversion"
    # CFLAGS="$CFLAGS -Werror"
    # CFLAGS="$CFLAGS -Wextra"
    # CFLAGS="$CFLAGS -Wfloat-equal"
    CFLAGS="$CFLAGS -Wmissing-prototypes"
    CFLAGS="$CFLAGS -Wpointer-arith"
    CFLAGS="$CFLAGS -Wshadow"
    # CFLAGS="$CFLAGS -Wtraditional"
    # CFLAGS="$CFLAGS -Wwrite-strings"
    case "$ntp_cv_gcc_Winit_self" in
     yes)
	CFLAGS="$CFLAGS -Winit-self"
    esac
    case "$ntp_cv_gcc_Wstrict_overflow" in
     yes)
	CFLAGS="$CFLAGS -Wstrict-overflow"
    esac
    # -W[no-]strict-prototypes is added later depending on OpenSSL
esac
a8493 1
ac_busted_vpath_in_make=no
d8495 1
a8495 14
case "$build" in
 *-*-irix6.1*)	# 64 bit only
    # busted vpath?
    ;;
 *-*-irix6*)	# 6.2 (and later?)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-solaris2.5.1)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-unicosmp*)
    ac_busted_vpath_in_make=yes
    ;;
esac
d8497 8
a8504 11
case "$ac_busted_vpath_in_make$srcdir" in
 no*) ;;
 yes.) ;;
 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
     '')
	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
	;;
     *) ;;
    esac
    ;;
esac
d8506 2
d8509 3
d8514 1
a8514 5
case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac
d8517 14
d8532 1
a8532 2
macro_version='2.4'
macro_revision='1.3293'
d8534 2
d8537 3
d8542 3
d8546 3
d8551 3
d8555 3
d8560 3
d8564 3
d8569 3
a8571 1
ltmain="$ac_aux_dir/ltmain.sh"
d8573 3
a8575 3
# Backslashify metacharacters that are still active within
# double-quoted strings.
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a8576 2
# Same as above, but do not quote variable references.
double_quote_subst='s/\(["`\\]\)/\\\1/g'
d8578 3
a8580 3
# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d8582 3
a8584 2
# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
a8585 2
# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'
a8586 21
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
$as_echo_n "checking how to print strings... " >&6; }
# Test print first, because it will be a builtin if present.
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='print -r --'
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='printf %s\n'
else
  # Use this function as a fallback that always works.
  func_fallback_echo ()
  {
    eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
  }
  ECHO='func_fallback_echo'
d8588 6
a8594 6
# func_echo_all arg...
# Invoke $ECHO with all args, space-separated.
func_echo_all ()
{
    $ECHO ""
}
d8596 3
a8598 8
case "$ECHO" in
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
$as_echo "printf" >&6; } ;;
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
$as_echo "print -r" >&6; } ;;
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
$as_echo "cat" >&6; } ;;
esac
d8600 3
d8605 3
d8609 3
d8614 3
d8618 3
d8623 3
d8627 3
d8632 1
d8635 10
a8644 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
d8647 1
a8647 45
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
a8648 8
      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
d8650 9
a8658 1
  ac_cv_path_SED=$SED
d8662 2
a8663 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed
a8664 2
test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"
d8667 3
d8672 10
d8683 11
d8695 3
d8701 3
d8706 7
a8712 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if ${ac_cv_path_FGREP+:} false; then :
d8715 1
a8715 42
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  ac_path_FGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in fgrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
# Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
a8716 8
      $ac_path_FGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_FGREP"; then
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
d8718 9
a8726 1
  ac_cv_path_FGREP=$FGREP
a8728 1
   fi
d8730 2
a8731 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"
a8733 2
test -z "$GREP" && GREP=grep

d8735 3
d8740 10
d8751 11
d8763 3
d8769 3
d8775 12
d8788 30
d8819 1
d8821 1
d8823 7
d8831 2
d8834 1
a8835 5
# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
a8837 38
ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
d8839 1
a8839 56
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld
d8842 7
d8850 1
d8852 1
d8854 9
d8864 2
d8867 4
a8870 5


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if ${lt_cv_path_NM+:} false; then :
d8873 19
a8891 3
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
d8893 1
a8893 38
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
d8895 2
a8897 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$DUMPBIN"; then :
    # Let the user override the test.
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in dumpbin "link -dump"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DUMPBIN+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d8900 3
a8902 5
fi
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
d8904 1
a8904 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d8906 12
a8917 4


    test -n "$DUMPBIN" && break
  done
d8919 5
a8923 9
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in dumpbin "link -dump"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
d8926 2
a8927 2
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d8929 73
a9001 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d9003 5
a9007 10
fi
fi
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9009 2
d9012 2
a9013 2
  test -n "$ac_ct_DUMPBIN" && break
done
d9015 13
a9027 11
  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DUMPBIN=$ac_ct_DUMPBIN
  fi
d9030 3
a9032 9
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
    *COFF*)
      DUMPBIN="$DUMPBIN -symbols"
      ;;
    *)
      DUMPBIN=:
      ;;
    esac
  fi
d9034 5
a9038 3
  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
a9039 1
test -z "$NM" && NM=nm
d9041 1
d9043 1
d9045 1
d9047 1
d9049 2
d9052 1
a9052 22
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if ${lt_cv_nm_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }
a9053 9
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
d9056 13
a9068 8
# find the maximum length of command line arguments
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if ${lt_cv_sys_max_cmd_len+:} false; then :
  $as_echo_n "(cached) " >&6
else
    i=0
  teststring="ABCD"
d9070 4
a9073 8
  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;
a9074 6
  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;
d9076 7
a9082 10
  cygwin* | mingw* | cegcc*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;
d9084 1
a9084 4
  mint*)
    # On MiNT this can take a long time and run out of memory.
    lt_cv_sys_max_cmd_len=8192;
    ;;
d9086 1
a9086 5
  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;
d9088 9
a9096 13
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;
d9098 2
a9099 4
  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;
d9101 15
a9115 56
  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n "$lt_cv_sys_max_cmd_len"; then
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    else
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      for i in 1 2 3 4 5 6 7 8 ; do
        teststring=$teststring$teststring
      done
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
      # If test is not a shell built-in, we'll probably end up computing a
      # maximum length that is only half of the actual maximum length, but
      # we can't tell.
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
	      test $i != 17 # 1/2 MB should be enough
      do
        i=`expr $i + 1`
        teststring=$teststring$teststring
      done
      # Only check the string length outside the loop.
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
      teststring=
      # Add a significant safety factor because C++ compilers can tack on
      # massive amounts of additional arguments before passing them to the
      # linker.  It appears as though 1/2 is a usable value.
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    fi
    ;;
  esac
d9117 2
a9118 1
fi
d9120 6
a9125 3
if test -n $lt_cv_sys_max_cmd_len ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
d9127 4
a9130 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
a9131 1
max_cmd_len=$lt_cv_sys_max_cmd_len
d9133 3
d9137 61
d9199 5
d9205 1
d9207 1
d9209 18
a9226 3
: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}
d9228 8
a9235 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,b/c, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }
d9237 5
d9243 2
a9244 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }
d9246 2
d9249 8
a9256 2
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
d9258 4
a9261 1
  lt_unset=false
d9264 18
d9283 2
d9286 1
d9288 1
a9289 12
# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
esac
d9291 5
d9297 2
d9300 14
d9316 3
d9320 2
d9323 1
d9325 1
d9327 7
a9333 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
if ${lt_cv_to_host_file_cmd+:} false; then :
d9336 16
a9351 31
  case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
        ;;
    esac
    ;;
  *-*-cygwin* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_noop
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
        ;;
    esac
    ;;
  * ) # unhandled hosts (and "normal" native builds)
    lt_cv_to_host_file_cmd=func_convert_file_noop
    ;;
esac
d9354 1
d9356 11
a9366 3
to_host_file_cmd=$lt_cv_to_host_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
d9369 9
d9379 2
d9382 3
d9386 6
a9391 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
if ${lt_cv_to_tool_file_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
d9393 1
a9393 11
  #assume ordinary cross tools, or native build.
lt_cv_to_tool_file_cmd=func_convert_file_noop
case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
        ;;
    esac
    ;;
esac
d9396 1
a9397 3
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
d9399 10
d9410 8
d9420 2
d9423 3
a9425 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
$as_echo_n "checking for $LD option to reload object files... " >&6; }
if ${lt_cv_ld_reload_flag+:} false; then :
  $as_echo_n "(cached) " >&6
d9427 1
a9427 1
  lt_cv_ld_reload_flag='-r'
d9429 6
a9434 13
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
$as_echo "$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    if test "$GCC" != yes; then
      reload_cmds=false
    fi
d9436 2
a9437 6
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
d9440 3
d9445 9
d9455 2
d9458 5
d9465 1
d9467 3
a9471 25
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OBJDUMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d9473 3
a9475 6
fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
d9477 1
a9477 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d9480 44
d9525 4
a9528 5
fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
d9531 1
a9531 1
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
d9534 2
a9535 2
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
d9544 1
a9544 1
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
d9554 4
a9557 4
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
d9563 22
a9584 8
  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
d9586 6
a9591 2
    OBJDUMP=$ac_ct_OBJDUMP
  fi
d9593 3
a9595 1
  OBJDUMP="$ac_cv_prog_OBJDUMP"
a9597 1
test -z "$OBJDUMP" && OBJDUMP=objdump
d9599 32
d9632 1
d9634 14
d9649 11
d9665 19
a9683 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
if ${lt_cv_deplibs_check_method+:} false; then :
  $as_echo_n "(cached) " >&6
d9685 2
a9686 13
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
a9687 4
case $host_os in
aix[4-9]*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9689 22
a9710 3
beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a9711 5
bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;
d9713 33
a9745 18
cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    # Keep this pattern in sync with the one in func_win32_libid.
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
d9747 16
a9762 1
  ;;
d9764 1
a9764 9
cegcc*)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9766 3
a9768 15
freebsd* | dragonfly*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;
a9769 3
gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9771 6
a9776 3
haiku*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9778 26
a9803 10
hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
d9806 2
a9807 2
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
d9810 216
d10028 16
a10043 3
interix[3-9]*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d10057 1
a10057 1
linux* | k*bsd*-gnu | kopensolaris*-gnu)
d10062 1
a10062 1
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
d10075 2
a10076 2
*nto* | *qnx*)
  lt_cv_deplibs_check_method=pass_all
d10080 1
a10080 1
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d10091 1
a10091 1
rdos*)
d10099 1
a10099 5
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.3*)
a10119 3
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
d10123 1
a10123 1
tpf*)
a10130 15

file_magic_glob=
want_nocaseglob=no
if test "$build" = "$host"; then
  case $host_os in
  mingw* | pw32*)
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
      want_nocaseglob=yes
    else
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
    fi
    ;;
  esac
fi

d10138 2
d10141 2
d10144 4
d10149 1
d10151 58
d10210 60
d10271 2
d10274 3
d10278 16
d10295 8
d10304 1
d10306 1
d10309 7
d10317 1
d10319 1
d10322 1
d10324 4
a10327 6
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DLLTOOL+:} false; then :
d10330 18
a10347 17
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d10349 10
a10358 10
fi
fi
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d10360 5
d10366 47
a10412 27
fi
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a10414 9
fi
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d10416 3
a10418 11
  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DLLTOOL=$ac_ct_DLLTOOL
  fi
d10420 2
a10421 1
  DLLTOOL="$ac_cv_prog_DLLTOOL"
a10423 1
test -z "$DLLTOOL" && DLLTOOL=dlltool
d10427 6
d10434 2
d10437 2
d10440 2
d10443 2
d10446 2
d10449 1
a10449 8

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_sharedlib_from_linklib_cmd='unknown'

d10451 28
a10478 11
cygwin* | mingw* | pw32* | cegcc*)
  # two different shell functions defined in ltmain.sh
  # decide which to use based on capabilities of $DLLTOOL
  case `$DLLTOOL --help 2>&1` in
  *--identify-strict*)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
    ;;
  *)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
    ;;
  esac
d10480 2
a10481 3
*)
  # fallback: assume linklib IS sharedlib
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
d10485 7
a10491 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
d10493 5
d10499 2
d10502 2
d10505 2
d10508 2
d10511 183
d10696 2
a10697 4
  for ac_prog in ar
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
d10700 1
a10700 1
if ${ac_cv_prog_AR+:} false; then :
d10713 1
a10713 1
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
a10732 2
    test -n "$AR" && break
  done
d10734 1
a10734 1
if test -z "$AR"; then
d10736 2
a10737 4
  for ac_prog in ar
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
d10740 1
a10740 1
if ${ac_cv_prog_ac_ct_AR+:} false; then :
d10753 1
a10753 1
    ac_cv_prog_ac_ct_AR="$ac_prog"
a10771 4

  test -n "$ac_ct_AR" && break
done

a10782 63
fi

: ${AR=ar}
: ${AR_FLAGS=cru}











{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @@FILE support" >&5
$as_echo_n "checking for archiver @@FILE support... " >&6; }
if ${lt_cv_ar_at_file+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ar_at_file=no
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  echo conftest.$ac_objext > conftest.lst
      lt_ar_try='$AR $AR_FLAGS libconftest.a @@conftest.lst >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
	# Ensure the archiver fails upon bogus file names.
	rm -f conftest.$ac_objext libconftest.a
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	if test "$ac_status" -ne 0; then
          lt_cv_ar_at_file=@@
        fi
      fi
      rm -f conftest.* libconftest.a

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
$as_echo "$lt_cv_ar_at_file" >&6; }

if test "x$lt_cv_ar_at_file" = xno; then
  archiver_list_spec=
d10784 1
a10784 1
  archiver_list_spec=$lt_cv_ar_at_file
a10786 6






d10788 2
a10789 2
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
d10792 1
a10792 1
if ${ac_cv_prog_STRIP+:} false; then :
d10795 2
a10796 2
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d10805 1
a10805 1
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
d10815 4
a10818 4
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
d10826 4
a10829 4
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
d10832 1
a10832 1
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d10835 2
a10836 2
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d10845 1
a10845 1
    ac_cv_prog_ac_ct_STRIP="strip"
d10855 4
a10858 4
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
d10864 2
a10865 2
  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
d10873 1
a10873 1
    STRIP=$ac_ct_STRIP
d10876 1
a10876 1
  STRIP="$ac_cv_prog_STRIP"
a10878 7
test -z "$STRIP" && STRIP=:






d10880 2
a10881 2
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
d10884 1
a10884 1
if ${ac_cv_prog_RANLIB+:} false; then :
d10887 2
a10888 2
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
d10897 1
a10897 1
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
d10907 4
a10910 4
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
d10918 4
a10921 4
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
d10924 1
a10924 1
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
d10927 2
a10928 2
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d10937 1
a10937 1
    ac_cv_prog_ac_ct_RANLIB="ranlib"
d10947 4
a10950 4
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
d10956 2
a10957 2
  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
d10965 1
a10965 1
    RANLIB=$ac_ct_RANLIB
d10968 1
a10968 1
  RANLIB="$ac_cv_prog_RANLIB"
a10970 4
test -z "$RANLIB" && RANLIB=:



d10972 2
d10975 16
d10993 1
a10993 1
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d11000 1
a11000 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
d11003 1
a11003 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
d11009 9
a11017 20
case $host_os in
  darwin*)
    lock_old_archive_extraction=yes ;;
  *)
    lock_old_archive_extraction=no ;;
esac














d11020 32
d11053 8
d11062 12
d11075 8
d11084 30
d11115 8
d11124 12
d11137 8
d11146 4
d11151 3
d11155 2
d11158 4
d11163 1
d11166 6
d11173 1
d11175 8
d11185 2
d11188 3
d11192 2
d11195 2
a11201 3
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

d11206 6
a11211 6
# Check for command to grab the raw symbol name followed by C symbol from nm.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  $as_echo_n "(cached) " >&6
else
d11213 5
a11217 2
# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
a11218 2
# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'
d11220 15
a11234 85
# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32* | cegcc*)
  symcode='[ABCDGISTW]'
  ;;
hpux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris*)
  symcode='[BDRT]'
  ;;
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac

# Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently,
# so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"

# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"

# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# Try without a prefix underscore, then with it.
for ac_symprfx in "" "_"; do

  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"

  # Write the raw and C identifiers.
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
    # Fake it for dumpbin and say T for any non-static function
    # and D for any global variable.
    # Also find C++ and __fastcall symbols from MSVC++,
    # which start with @@ or ?.
    lt_cv_sys_global_symbol_pipe="$AWK '"\
"     {last_section=section; section=\$ 3};"\
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
"     \$ 0!~/External *\|/{next};"\
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
"     {if(hide[section]) next};"\
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
"     s[1]~/^[@@?]/{print s[1], s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print t[1], substr(t[1],length(prfx))}"\
"     ' prfx=^$ac_symprfx"
d11236 3
a11238 1
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
d11240 1
a11240 1
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
a11241 2
  # Check to see that the pipe works correctly.
  pipe_works=no
d11243 29
a11271 13
  rm -f conftest*
  cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(void);
void nm_test_func(void){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
_LT_EOF
d11273 3
a11275 18
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi
d11277 5
a11281 15
      # Make sure that we snagged all the symbols we need.
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<_LT_EOF > conftest.$ac_ext
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
/* DATA imports from DLLs on WIN32 con't be const, because runtime
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
# define LT_DLSYM_CONST
#elif defined(__osf__)
/* This system does not cope well with relocations in const data.  */
# define LT_DLSYM_CONST
#else
# define LT_DLSYM_CONST const
#endif
a11282 3
#ifdef __cplusplus
extern "C" {
#endif
a11283 3
_LT_EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
a11284 1
	  cat <<_LT_EOF >> conftest.$ac_ext
d11286 1
a11286 13
/* The mapping between symbol names and symbols.  */
LT_DLSYM_CONST struct {
  const char *name;
  void       *address;
}
lt__PROGRAM__LTX_preloaded_symbols[] =
{
  { "@@PROGRAM@@", (void *) 0 },
_LT_EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
	  cat <<\_LT_EOF >> conftest.$ac_ext
  {0, (void *) 0}
};
d11288 2
a11289 6
/* This works around a problem in FreeBSD linker */
#ifdef FREEBSD_WORKAROUND
static const void *lt_preloaded_setup() {
  return lt__PROGRAM__LTX_preloaded_symbols;
}
#endif
a11290 33
#ifdef __cplusplus
}
#endif
_LT_EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_globsym_save_LIBS=$LIBS
	  lt_globsym_save_CFLAGS=$CFLAGS
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
	    pipe_works=yes
	  fi
	  LIBS=$lt_globsym_save_LIBS
	  CFLAGS=$lt_globsym_save_CFLAGS
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -rf conftest* conftst*
d11292 33
a11324 7
  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done
d11327 2
d11330 2
a11331 6
if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
d11333 1
a11333 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
a11335 5
# Response file support.
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  nm_file_list_spec='@@'
elif $NM --help 2>/dev/null | grep '[@@]FILE' >/dev/null; then
  nm_file_list_spec='@@'
d11338 3
d11342 2
d11345 3
d11349 8
d11358 6
d11365 3
d11369 5
d11375 5
d11381 6
d11388 5
d11394 12
d11407 32
d11440 15
d11456 5
d11462 4
d11467 21
d11489 5
d11495 4
d11500 10
d11511 5
d11517 5
d11523 6
d11530 4
d11535 4
d11540 5
d11546 2
d11549 4
a11552 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
$as_echo_n "checking for sysroot... " >&6; }
d11554 4
a11557 3
# Check whether --with-sysroot was given.
if test "${with_sysroot+set}" = set; then :
  withval=$with_sysroot;
d11559 29
a11587 1
  with_sysroot=no
d11589 2
d11592 9
d11602 9
a11610 17
lt_sysroot=
case ${with_sysroot} in #(
 yes)
   if test "$GCC" = yes; then
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   fi
   ;; #(
 /*)
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   ;; #(
 no|'')
   ;; #(
 *)
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
$as_echo "${with_sysroot}" >&6; }
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   ;;
d11613 45
a11657 2
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
$as_echo "${lt_sysroot:-no}" >&6; }
d11659 3
d11664 21
d11686 2
d11689 46
a11734 4
# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then :
  enableval=$enable_libtool_lock;
fi
d11736 13
a11748 1
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d11750 24
a11773 18
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.$ac_objext` in
      *ELF-32*)
	HPUX_IA64_MODE="32"
	;;
      *ELF-64*)
	HPUX_IA64_MODE="64"
	;;
a11774 39
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    if test "$lt_cv_prog_gnu_ld" = yes; then
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -melf32bsmip"
	  ;;
	*N32*)
	  LD="${LD-ld} -melf32bmipn32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -melf64bmip"
	;;
      esac
    else
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -32"
	  ;;
	*N32*)
	  LD="${LD-ld} -n32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -64"
	  ;;
      esac
    fi
  fi
  rm -rf conftest*
  ;;
d11776 7
a11782 52
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
      *32-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_i386_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_i386"
	    ;;
	  ppc64-*linux*|powerpc64-*linux*)
	    LD="${LD-ld} -m elf32ppclinux"
	    ;;
	  s390x-*linux*)
	    LD="${LD-ld} -m elf_s390"
	    ;;
	  sparc64-*linux*)
	    LD="${LD-ld} -m elf32_sparc"
	    ;;
	esac
	;;
      *64-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_x86_64_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_x86_64"
	    ;;
	  ppc*-*linux*|powerpc*-*linux*)
	    LD="${LD-ld} -m elf64ppc"
	    ;;
	  s390*-*linux*|s390*-*tpf*)
	    LD="${LD-ld} -m elf64_s390"
	    ;;
	  sparc*-*linux*)
	    LD="${LD-ld} -m elf64_sparc"
	    ;;
	esac
	;;
    esac
  fi
  rm -rf conftest*
  ;;
d11784 5
a11788 14
*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
if ${lt_cv_cc_needs_belf+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d11790 3
a11792 2
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d11794 4
a11797 3
int
main ()
{
d11799 8
a11806 16
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_cc_needs_belf=yes
else
  lt_cv_cc_needs_belf=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d11808 9
a11816 26
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
$as_echo "$lt_cv_cc_needs_belf" >&6; }
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
	  LD="${LD-ld} -64"
	fi
	;;
      esac
a11817 5
    esac
  fi
  rm -rf conftest*
  ;;
esac
d11819 8
a11826 1
need_locks="$enable_libtool_lock"
d11828 15
a11842 25
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
set dummy ${ac_tool_prefix}mt; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MANIFEST_TOOL"; then
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d11844 19
a11862 10
fi
fi
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
if test -n "$MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
$as_echo "$MANIFEST_TOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d11864 10
d11875 9
a11883 27
fi
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  # Extract the first word of "mt", so it can be a program name with args.
set dummy mt; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_MANIFEST_TOOL"; then
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d11885 4
a11888 10
fi
fi
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
if test -n "$ac_ct_MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d11890 6
a11895 14
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
    MANIFEST_TOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  fi
else
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
fi
d11897 8
a11904 20
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
if ${lt_cv_path_mainfest_tool+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_path_mainfest_tool=no
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  cat conftest.err >&5
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
    lt_cv_path_mainfest_tool=yes
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
if test "x$lt_cv_path_mainfest_tool" != xyes; then
  MANIFEST_TOOL=:
fi
d11906 6
d11913 9
d11923 22
d11946 16
d11963 11
d11975 3
a11977 27
  case $host_os in
    rhapsody* | darwin*)
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DSYMUTIL"; then
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d11979 5
a11983 10
fi
fi
DSYMUTIL=$ac_cv_prog_DSYMUTIL
if test -n "$DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
$as_echo "$DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d11985 4
d11990 39
a12028 27
fi
if test -z "$ac_cv_prog_DSYMUTIL"; then
  ac_ct_DSYMUTIL=$DSYMUTIL
  # Extract the first word of "dsymutil", so it can be a program name with args.
set dummy dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DSYMUTIL"; then
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12030 10
a12039 10
fi
fi
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
if test -n "$ac_ct_DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
$as_echo "$ac_ct_DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12041 3
a12043 14
  if test "x$ac_ct_DSYMUTIL" = x; then
    DSYMUTIL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DSYMUTIL=$ac_ct_DSYMUTIL
  fi
else
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
fi
d12045 5
a12049 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NMEDIT"; then
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12051 5
d12057 15
a12071 9
fi
NMEDIT=$ac_cv_prog_NMEDIT
if test -n "$NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
$as_echo "$NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12073 3
d12077 5
a12081 27
fi
if test -z "$ac_cv_prog_NMEDIT"; then
  ac_ct_NMEDIT=$NMEDIT
  # Extract the first word of "nmedit", so it can be a program name with args.
set dummy nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_NMEDIT"; then
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12083 5
d12089 3
a12091 9
fi
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
if test -n "$ac_ct_NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
$as_echo "$ac_ct_NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12093 15
a12107 14
  if test "x$ac_ct_NMEDIT" = x; then
    NMEDIT=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    NMEDIT=$ac_ct_NMEDIT
  fi
else
  NMEDIT="$ac_cv_prog_NMEDIT"
fi
d12109 7
a12115 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
set dummy ${ac_tool_prefix}lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$LIPO"; then
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12117 3
a12119 10
fi
fi
LIPO=$ac_cv_prog_LIPO
if test -n "$LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
$as_echo "$LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12121 20
d12142 49
a12190 27
fi
if test -z "$ac_cv_prog_LIPO"; then
  ac_ct_LIPO=$LIPO
  # Extract the first word of "lipo", so it can be a program name with args.
set dummy lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_LIPO"; then
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_LIPO="lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12192 5
a12196 10
fi
fi
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
if test -n "$ac_ct_LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
$as_echo "$ac_ct_LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12198 3
a12200 14
  if test "x$ac_ct_LIPO" = x; then
    LIPO=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    LIPO=$ac_ct_LIPO
  fi
else
  LIPO="$ac_cv_prog_LIPO"
fi
d12202 10
a12211 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL"; then
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12213 7
a12219 10
fi
fi
OTOOL=$ac_cv_prog_OTOOL
if test -n "$OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
$as_echo "$OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12221 7
d12229 9
a12237 27
fi
if test -z "$ac_cv_prog_OTOOL"; then
  ac_ct_OTOOL=$OTOOL
  # Extract the first word of "otool", so it can be a program name with args.
set dummy otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL"; then
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL="otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12239 5
a12243 10
fi
fi
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
if test -n "$ac_ct_OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
$as_echo "$ac_ct_OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12245 33
a12277 14
  if test "x$ac_ct_OTOOL" = x; then
    OTOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL=$ac_ct_OTOOL
  fi
else
  OTOOL="$ac_cv_prog_OTOOL"
fi
d12279 9
a12287 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OTOOL64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL64"; then
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12289 7
a12295 10
fi
fi
OTOOL64=$ac_cv_prog_OTOOL64
if test -n "$OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
$as_echo "$OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12297 11
d12309 10
a12318 27
fi
if test -z "$ac_cv_prog_OTOOL64"; then
  ac_ct_OTOOL64=$OTOOL64
  # Extract the first word of "otool64", so it can be a program name with args.
set dummy otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL64"; then
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL64="otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d12320 7
a12326 10
fi
fi
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
if test -n "$ac_ct_OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
$as_echo "$ac_ct_OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d12328 21
a12348 14
  if test "x$ac_ct_OTOOL64" = x; then
    OTOOL64=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL64=$ac_ct_OTOOL64
  fi
else
  OTOOL64="$ac_cv_prog_OTOOL64"
fi
d12350 7
d12358 11
d12370 10
d12381 5
d12387 7
d12395 32
d12428 13
d12442 21
d12464 5
d12470 9
d12480 8
d12489 10
d12500 11
d12512 5
d12518 5
d12524 3
d12528 4
d12533 7
d12541 13
d12555 30
a12584 32







    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
$as_echo_n "checking for -single_module linker flag... " >&6; }
if ${lt_cv_apple_cc_single_mod+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_apple_cc_single_mod=no
      if test -z "${LT_MULTI_MODULE}"; then
	# By default we will add the -single_module flag. You can override
	# by either setting the environment variable LT_MULTI_MODULE
	# non-empty at configure time, or by adding -multi_module to the
	# link flags.
	rm -rf libconftest.dylib*
	echo "int foo(void){return 1;}" > conftest.c
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-dynamiclib -Wl,-single_module conftest.c" >&5
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
        _lt_result=$?
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
	  lt_cv_apple_cc_single_mod=yes
	else
	  cat conftest.err >&5
	fi
	rm -rf libconftest.dylib*
	rm -f conftest.*
d12586 8
a12593 14
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
if ${lt_cv_ld_exported_symbols_list+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_exported_symbols_list=no
      save_LDFLAGS=$LDFLAGS
      echo "_main" > conftest.sym
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d12595 26
a12620 10
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_ld_exported_symbols_list=yes
d12622 1
a12622 1
  lt_cv_ld_exported_symbols_list=no
d12624 16
a12639 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LDFLAGS="$save_LDFLAGS"
d12641 21
a12661 26
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
$as_echo_n "checking for -force_load linker flag... " >&6; }
if ${lt_cv_ld_force_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_force_load=no
      cat > conftest.c << _LT_EOF
int forced_loaded() { return 2;}
_LT_EOF
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
      echo "$AR cru libconftest.a conftest.o" >&5
      $AR cru libconftest.a conftest.o 2>&5
      echo "$RANLIB libconftest.a" >&5
      $RANLIB libconftest.a 2>&5
      cat > conftest.c << _LT_EOF
int main() { return 0;}
_LT_EOF
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
      _lt_result=$?
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
	lt_cv_ld_force_load=yes
d12663 1
a12663 1
	cat conftest.err >&5
d12665 10
a12674 30
        rm -f conftest.err libconftest.a conftest conftest.c
        rm -rf conftest.dSYM

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
$as_echo "$lt_cv_ld_force_load" >&6; }
    case $host_os in
    rhapsody* | darwin1.[012])
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
    darwin1.*)
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    darwin*) # darwin 5.x on
      # if running on 10.5 or later, the deployment target defaults
      # to the OS version, if on x86, and 10.4, the deployment
      # target defaults to 10.4. Don't you love it?
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
	10.[012]*)
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
	10.*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
      esac
    ;;
  esac
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
      _lt_dar_single_mod='$single_module'
    fi
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
d12676 4
a12679 1
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
d12681 3
a12683 7
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
      _lt_dsymutil='~$DSYMUTIL $lib || :'
    else
      _lt_dsymutil=
    fi
    ;;
  esac
d12685 5
a12689 8
for ac_header in dlfcn.h
do :
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
"
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLFCN_H 1
_ACEOF
d12691 5
a12695 1
fi
d12697 13
a12709 1
done
d12711 5
d12717 14
d12732 25
a12756 30


# Set options



        enable_dlopen=no


  enable_win32_dll=no



  # Check whether --enable-static was given.
if test "${enable_static+set}" = set; then :
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
d12759 1
a12759 3
else
  enable_static=yes
fi
d12761 8
d12770 18
d12789 8
d12798 3
d12802 11
d12814 38
d12853 9
d12863 45
d12909 3
a12911 23

# Check whether --with-pic was given.
if test "${with_pic+set}" = set; then :
  withval=$with_pic; pic_mode="$withval"
else
  pic_mode=default
fi


test -z "$pic_mode" && pic_mode=default







  # Check whether --enable-fast-install was given.
if test "${enable_fast_install+set}" = set; then :
  enableval=$enable_fast_install; p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
d12913 23
a12935 11
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
d12937 8
a12944 3
else
  enable_fast_install=yes
fi
d12946 4
d12951 14
d12966 5
d12972 8
d12981 11
d12993 17
d13011 6
d13018 9
d13028 24
d13053 8
d13062 10
a13071 2
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ltmain"
d13073 6
a13078 2
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d13080 12
d13093 11
d13105 23
d13129 8
d13138 6
d13145 7
d13153 6
d13160 20
d13181 8
d13190 28
d13219 7
d13227 6
d13234 4
d13239 4
d13244 11
d13256 29
d13286 3
d13290 1
d13292 1
d13294 14
d13309 23
a13331 22





test -z "$LN_S" && LN_S="ln -s"














if test -n "${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
d13333 12
a13344 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
$as_echo_n "checking for objdir... " >&6; }
if ${lt_cv_objdir+:} false; then :
d13347 22
a13368 4
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
d13370 1
a13370 2
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
d13372 3
a13374 1
rmdir .libs 2>/dev/null
d13376 53
a13428 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
$as_echo "$lt_cv_objdir" >&6; }
objdir=$lt_cv_objdir
d13430 29
d13461 1
d13464 1
a13464 3
cat >>confdefs.h <<_ACEOF
#define LT_OBJDIR "$lt_cv_objdir/"
_ACEOF
d13467 1
d13470 1
a13470 11
case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
esac
a13471 3
# Global variables:
ofile=libtool
can_build_shared=yes
d13473 1
a13473 3
# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a
d13475 2
a13476 1
with_gnu_ld="$lt_cv_prog_gnu_ld"
d13478 5
a13482 2
old_CC="$CC"
old_CFLAGS="$CFLAGS"
d13484 4
a13487 6
# Set sane defaults for various variables
test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
test -z "$LD" && LD=ld
test -z "$ac_objext" && ac_objext=o
d13489 2
a13490 9
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d13492 2
d13495 3
a13497 8
# Only perform the check for file, if the check method requires it
test -z "$MAGIC_CMD" && MAGIC_CMD=file
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
if ${lt_cv_path_MAGIC_CMD+:} false; then :
d13500 24
a13523 23
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2
d13525 21
a13545 8
*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org
d13547 3
a13549 12
_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi
d13551 5
a13555 8
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d13557 6
d13564 21
d13587 3
d13591 5
a13595 5
if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
$as_echo_n "checking for file... " >&6; }
if ${lt_cv_path_MAGIC_CMD+:} false; then :
d13598 56
a13653 23
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2
d13655 6
a13660 8
*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org
d13662 19
a13680 11
_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
d13682 2
a13684 7
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d13686 9
d13696 4
d13701 4
a13704 3
  else
    MAGIC_CMD=:
  fi
d13707 19
d13728 6
d13735 101
d13837 34
a13870 1
# Use C for the default configuration in the libtool script
d13872 2
a13873 6
lt_save_CC="$CC"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d13875 3
d13879 2
a13880 2
# Source file extension for C test sources.
ac_ext=c
d13882 1
a13882 3
# Object file extension for compiled C test sources.
objext=o
objext=$objext
d13884 1
a13884 2
# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;"
d13886 2
a13887 2
# Code to be used in simple link tests
lt_simple_link_test_code='int main(){return(0);}'
d13889 2
d13892 2
d13895 2
d13898 2
d13901 2
d13904 4
d13909 4
a13912 2
# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}
d13914 2
a13915 2
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d13917 3
a13919 2
# Allow CC to be a program name with arguments.
compiler=$CC
d13921 2
a13922 3
# Save the default compiler, since it gets overwritten when the other
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
compiler_DEFAULT=$CC
d13924 2
a13925 6
# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*
d13927 2
a13928 5
ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*
d13930 2
d13933 2
a13934 5
## CAVEAT EMPTOR:
## There is no encapsulation within the following macros, do not change
## the running order or otherwise move them around unless you know exactly
## what you are doing...
if test -n "$compiler"; then
d13936 2
a13937 1
lt_prog_compiler_no_builtin_flag=
d13939 2
a13940 7
if test "$GCC" = yes; then
  case $cc_basename in
  nvcc*)
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  *)
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  esac
d13942 5
a13946 33
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $RM conftest*
d13948 2
a13949 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d13951 2
a13952 5
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
else
    :
fi
d13954 2
a13955 1
fi
d13957 2
d13960 3
d13964 2
d13967 2
d13970 2
d13973 2
a13974 3
  lt_prog_compiler_wl=
lt_prog_compiler_pic=
lt_prog_compiler_static=
d13976 2
d13979 3
a13981 3
  if test "$GCC" = yes; then
    lt_prog_compiler_wl='-Wl,'
    lt_prog_compiler_static='-static'
d13983 2
a13984 8
    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;
d13986 2
a13987 14
    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;
d13989 2
a13990 3
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
d13992 2
a13993 7
    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;
d13995 2
a13996 5
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      ;;
d13998 2
a13999 5
    haiku*)
      # PIC is the default for Haiku.
      # The "-static" flag exists, but is broken.
      lt_prog_compiler_static=
      ;;
d14001 2
a14002 13
    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='-fPIC'
	;;
      esac
      ;;
d14004 2
a14005 4
    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
d14007 2
a14008 6
    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared=no
      enable_shared=no
      ;;
d14010 2
a14011 5
    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;
d14013 2
a14014 5
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic=-Kconform_pic
      fi
      ;;
d14016 2
a14017 4
    *)
      lt_prog_compiler_pic='-fPIC'
      ;;
    esac
d14019 2
a14020 18
    case $cc_basename in
    nvcc*) # Cuda Compiler Driver 2.2
      lt_prog_compiler_wl='-Xlinker '
      lt_prog_compiler_pic='-Xcompiler -fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      else
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
d14022 2
a14023 5
    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;
d14025 2
a14026 15
    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static='${wl}-a ${wl}archive'
      ;;
d14028 3
a14030 5
    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static='-non_shared'
      ;;
d14032 2
a14033 63
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
      case $cc_basename in
      # old Intel for x86_64 which still supported -KPIC.
      ecc*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-KPIC'
	lt_prog_compiler_static='-static'
        ;;
      # icc used to be incompatible with GCC.
      # ICC 10 doesn't accept -KPIC any more.
      icc* | ifort*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
        ;;
      # Lahey Fortran 8.1.
      lf95*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='--shared'
	lt_prog_compiler_static='--static'
	;;
      nagfor*)
	# NAG Fortran compiler
	lt_prog_compiler_wl='-Wl,-Wl,,'
	lt_prog_compiler_pic='-PIC'
	lt_prog_compiler_static='-Bstatic'
	;;
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fpic'
	lt_prog_compiler_static='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static='-non_shared'
        ;;
      xl* | bgxl* | bgf* | mpixl*)
	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-qpic'
	lt_prog_compiler_static='-qstaticlink'
	;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ F* | *Sun*Fortran*)
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl=''
	  ;;
	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Wl,'
	  ;;
	esac
	;;
      esac
      ;;
d14035 5
a14039 4
    newsos6)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;
d14041 2
a14042 5
    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;
d14044 2
a14045 5
    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static='-non_shared'
      ;;
d14047 5
a14051 3
    rdos*)
      lt_prog_compiler_static='-non_shared'
      ;;
d14053 3
a14055 10
    solaris*)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
	lt_prog_compiler_wl='-Qoption ld ';;
      *)
	lt_prog_compiler_wl='-Wl,';;
      esac
      ;;
d14057 3
a14059 5
    sunos4*)
      lt_prog_compiler_wl='-Qoption ld '
      lt_prog_compiler_pic='-PIC'
      lt_prog_compiler_static='-Bstatic'
      ;;
d14061 19
a14079 5
    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;
d14081 2
a14082 6
    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic='-Kconform_pic'
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;
d14084 2
a14085 5
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;
d14087 2
a14088 4
    unicos*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_can_build_shared=no
      ;;
d14090 2
a14091 4
    uts4*)
      lt_prog_compiler_pic='-pic'
      lt_prog_compiler_static='-Bstatic'
      ;;
d14093 2
a14094 5
    *)
      lt_prog_compiler_can_build_shared=no
      ;;
    esac
  fi
d14096 2
a14097 9
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic=
    ;;
  *)
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    ;;
esac
d14099 2
a14100 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
if ${lt_cv_prog_compiler_pic+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
d14102 2
a14103 37
#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
if ${lt_cv_prog_compiler_pic_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works=yes
     fi
   fi
   $RM conftest*
d14105 2
a14106 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d14108 2
a14109 9
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
    case $lt_prog_compiler_pic in
     "" | " "*) ;;
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
     esac
else
    lt_prog_compiler_pic=
     lt_prog_compiler_can_build_shared=no
fi
d14111 2
a14112 1
fi
d14114 2
d14117 2
d14120 2
d14123 3
d14127 4
d14132 2
d14135 3
d14139 3
d14143 3
d14147 3
d14151 3
a14153 30
#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if ${lt_cv_prog_compiler_static_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works=yes
       fi
     else
       lt_cv_prog_compiler_static_works=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"
d14155 2
a14156 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d14158 2
a14159 5
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi
d14161 2
d14164 2
d14167 2
d14170 2
d14173 2
d14176 2
d14179 2
a14180 11
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d14182 1
a14182 33
   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*
d14184 1
a14184 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d14187 3
d14191 10
d14202 5
d14208 3
a14211 4
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
d14213 9
a14221 6
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d14223 5
a14227 33
   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*
d14229 1
a14229 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d14232 4
d14238 4
a14241 17
hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
a14242 3
else
  need_locks=no
fi
d14244 10
d14255 3
d14259 9
d14269 4
d14274 36
d14311 24
a14334 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a14335 40
  runpath_var=
  allow_undefined_flag=
  always_export_symbols=no
  archive_cmds=
  archive_expsym_cmds=
  compiler_needs_object=no
  enable_shared_with_static_runtimes=no
  export_dynamic_flag_spec=
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  hardcode_automatic=no
  hardcode_direct=no
  hardcode_direct_absolute=no
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  inherit_rpath=no
  link_all_deplibs=unknown
  module_cmds=
  module_expsym_cmds=
  old_archive_from_new_cmds=
  old_archive_from_expsyms_cmds=
  thread_safe_flag_spec=
  whole_archive_flag_spec=
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  # Exclude shared library initialization/finalization symbols.
  extract_expsyms_cmds=
d14337 11
a14347 16
  case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
d14349 14
a14363 1
  ld_shlibs=yes
d14365 43
a14407 24
  # On some targets, GNU ld is compatible enough with the native linker
  # that we're better off using the native interface for both.
  lt_use_gnu_ld_interface=no
  if test "$with_gnu_ld" = yes; then
    case $host_os in
      aix*)
	# The AIX port of GNU ld has always aspired to compatibility
	# with the native linker.  However, as the warning in the GNU ld
	# block says, versions before 2.19.5* couldn't really create working
	# shared libraries, regardless of the interface used.
	case `$LD -v 2>&1` in
	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
	  *)
	    lt_use_gnu_ld_interface=yes
	    ;;
	esac
	;;
      *)
	lt_use_gnu_ld_interface=yes
	;;
    esac
  fi
d14409 1
a14409 3
  if test "$lt_use_gnu_ld_interface" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'
d14411 3
a14413 21
    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    else
      whole_archive_flag_spec=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>&1` in
      *GNU\ gold*) supports_anon_versioning=yes ;;
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac
d14415 2
a14416 7
    # See if GNU ld supports shared libraries.
    case $host_os in
    aix[3-9]*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2
d14418 3
a14420 6
*** Warning: the GNU linker, at least up to release 2.19, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to install binutils
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
*** You will then need to restart the configuration process.
d14422 6
a14427 1
_LT_EOF
d14432 4
a14435 12
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
d14438 2
a14439 9
    beos*)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs=no
      fi
d14442 4
a14445 25
    cygwin* | mingw* | pw32* | cegcc*)
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec='-L$libdir'
      export_dynamic_flag_spec='${wl}--export-all-symbols'
      allow_undefined_flag=unsupported
      always_export_symbols=no
      enable_shared_with_static_runtimes=yes
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'

      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs=no
      fi
d14448 4
a14451 3
    haiku*)
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      link_all_deplibs=yes
d14454 5
a14458 13
    interix[3-9]*)
      hardcode_direct=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d14461 3
a14463 6
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
      tmp_diet=no
      if test "$host_os" = linux-dietlibc; then
	case $cc_basename in
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
	esac
d14465 1
a14465 40
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
	 && test "$tmp_diet" = no
      then
	tmp_addflag=' $pic_flag'
	tmp_sharedflag='-shared'
	case $cc_basename,$host_cpu in
        pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95* | pgfortran*)
					# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	lf95*)				# Lahey Fortran 8.1
	  whole_archive_flag_spec=
	  tmp_sharedflag='--shared' ;;
	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
	  tmp_sharedflag='-qmkshrobj'
	  tmp_addflag= ;;
	nvcc*)	# Cuda Compiler Driver 2.2
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  ;;
	esac
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)			# Sun C 5.9
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  tmp_sharedflag='-G' ;;
	*Sun\ F*)			# Sun Fortran 8.3
	  tmp_sharedflag='-G' ;;
	esac
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d14467 11
a14477 25
        if test "x$supports_anon_versioning" = xyes; then
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	    echo "local: *; };" >> $output_objdir/$libname.ver~
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
        fi

	case $cc_basename in
	xlf* | bgf* | bgxlf* | mpixlf*)
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
	  hardcode_libdir_flag_spec=
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
	  if test "x$supports_anon_versioning" = xyes; then
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	      echo "local: *; };" >> $output_objdir/$libname.ver~
	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
	  fi
	  ;;
	esac
      else
        ld_shlibs=no
      fi
d14480 2
a14481 8
    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
d14483 9
a14491 17

    solaris*)
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d14493 1
a14493 1
	ld_shlibs=no
d14496 10
d14507 5
a14511 5
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs=no
	cat <<_LT_EOF 1>&2
d14513 7
a14519 8
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
d14521 2
a14522 12
	*)
	  # For security reasons, it is highly recommended that you always
	  # use absolute paths for naming shared libraries, and exclude the
	  # DT_RUNPATH tag from executables and libraries.  But doing so
	  # requires that you compile everything twice, which is a pain.
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  else
	    ld_shlibs=no
	  fi
d14525 2
d14529 4
a14532 5
    sunos4*)
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct=yes
      hardcode_shlibpath_var=no
d14535 3
a14537 7
    *)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
a14538 1
    esac
d14540 20
a14559 21
    if test "$ld_shlibs" = no; then
      runpath_var=
      hardcode_libdir_flag_spec=
      export_dynamic_flag_spec=
      whole_archive_flag_spec=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag=unsupported
      always_export_symbols=yes
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct=unsupported
      fi
d14562 5
a14566 18
    aix[4-9]*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	# Also, AIX nm treats weak defined symbols like other global
	# defined symbols, whereas GNU nm marks them as "W".
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no
d14568 4
a14571 12
	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	  for ld_flag in $LDFLAGS; do
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
	    aix_use_runtimelinking=yes
	    break
	  fi
	  done
	  ;;
	esac
d14573 10
a14582 3
	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi
d14584 5
a14588 5
      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d14590 5
a14594 6
      archive_cmds=''
      hardcode_direct=yes
      hardcode_direct_absolute=yes
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      file_list_spec='${wl}-f,'
d14596 4
a14599 39
      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	  # We have reworked collect2
	  :
	  else
	  # We have old collect2
	  hardcode_direct=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L=yes
	  hardcode_libdir_flag_spec='-L$libdir'
	  hardcode_libdir_separator=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
d14601 1
d14603 4
a14606 18
      export_dynamic_flag_spec='${wl}-bexpall'
      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='-berok'
        # Determine the default libpath from the value encoded in an
        # empty executable.
        if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath_+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14608 4
a14611 3
int
main ()
{
d14613 4
a14616 23
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_="/usr/lib:/lib"
d14619 2
a14620 1
fi
d14622 4
a14625 2
  aix_libpath=$lt_cv_aix_libpath_
fi
d14627 3
a14629 14
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
      else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag="-z nodefs"
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an
	 # empty executable.
	 if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath_+:} false; then :
d14632 28
a14659 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14661 3
a14663 3
int
main ()
{
d14665 8
a14672 18
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
a14673 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_="/usr/lib:/lib"
  fi
d14676 9
d14686 11
a14696 2
  aix_libpath=$lt_cv_aix_libpath_
fi
d14698 33
a14730 18
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag=' ${wl}-bernotok'
	  allow_undefined_flag=' ${wl}-berok'
	  if test "$with_gnu_ld" = yes; then
	    # We only use this code for GNU lds that support --whole-archive.
	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	  else
	    # Exported symbols can be pulled into shared objects from archives
	    whole_archive_flag_spec='$convenience'
	  fi
	  archive_cmds_need_lc=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;
d14732 3
a14734 14
    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
      ;;
a14735 3
    bsdi[45]*)
      export_dynamic_flag_spec=-rdynamic
      ;;
d14737 21
a14757 63
    cygwin* | mingw* | pw32* | cegcc*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      case $cc_basename in
      cl*)
	# Native MSVC
	hardcode_libdir_flag_spec=' '
	allow_undefined_flag=unsupported
	always_export_symbols=yes
	file_list_spec='@@'
	# Tell ltmain to make .lib files, not .a files.
	libext=lib
	# Tell ltmain to make .dll files, not .so files.
	shrext_cmds=".dll"
	# FIXME: Setting linknames here is a bad hack.
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	  else
	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	  fi~
	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	  linknames='
	# The linker will not automatically build a static lib if we build a DLL.
	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
	enable_shared_with_static_runtimes=yes
	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
	# Don't use ranlib
	old_postinstall_cmds='chmod 644 $oldlib'
	postlink_cmds='lt_outputfile="@@OUTPUT@@"~
	  lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	  case $lt_outputfile in
	    *.exe|*.EXE) ;;
	    *)
	      lt_outputfile="$lt_outputfile.exe"
	      lt_tool_outputfile="$lt_tool_outputfile.exe"
	      ;;
	  esac~
	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	    $RM "$lt_outputfile.manifest";
	  fi'
	;;
      *)
	# Assume MSVC wrapper
	hardcode_libdir_flag_spec=' '
	allow_undefined_flag=unsupported
	# Tell ltmain to make .lib files, not .a files.
	libext=lib
	# Tell ltmain to make .dll files, not .so files.
	shrext_cmds=".dll"
	# FIXME: Setting linknames here is a bad hack.
	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
	# The linker will automatically build a .lib file if we build a DLL.
	old_archive_from_new_cmds='true'
	# FIXME: Should let the user specify the lib program.
	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
	enable_shared_with_static_runtimes=yes
	;;
      esac
      ;;
d14759 2
a14760 1
    darwin* | rhapsody*)
d14762 46
d14809 13
a14821 21
  archive_cmds_need_lc=no
  hardcode_direct=no
  hardcode_automatic=yes
  hardcode_shlibpath_var=unsupported
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  else
    whole_archive_flag_spec=''
  fi
  link_all_deplibs=yes
  allow_undefined_flag="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=func_echo_all
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
d14823 4
a14826 3
  else
  ld_shlibs=no
  fi
d14828 20
a14847 1
      ;;
d14849 7
a14855 5
    dgux*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;
d14857 5
a14861 3
    freebsd1*)
      ld_shlibs=no
      ;;
d14863 2
a14864 9
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
d14867 12
a14878 6
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
d14881 6
a14886 11
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | dragonfly*)
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
d14888 1
a14888 1
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
d14890 1
a14890 3
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_direct=yes
d14892 8
a14899 5
      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L=yes
      export_dynamic_flag_spec='${wl}-E'
      ;;
d14901 11
a14911 3
    hpux10*)
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d14913 1
a14913 12
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_flag_spec_ld='+b $libdir'
	hardcode_libdir_separator=:
	hardcode_direct=yes
	hardcode_direct_absolute=yes
	export_dynamic_flag_spec='${wl}-E'
	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L=yes
d14917 7
a14923 11
    hpux11*)
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d14925 9
d14935 8
d14944 3
a14946 8
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
d14948 9
a14956 28
	  # Older versions of the 11.00 compiler do not understand -b yet
	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
$as_echo_n "checking if $CC understands -b... " >&6; }
if ${lt_cv_prog_compiler__b+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler__b=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS -b"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler__b=yes
       fi
     else
       lt_cv_prog_compiler__b=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"
d14958 4
a14961 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
$as_echo "$lt_cv_prog_compiler__b" >&6; }
d14963 6
a14968 5
if test x"$lt_cv_prog_compiler__b" = xyes; then
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
else
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
fi
d14970 6
a14975 2
	  ;;
	esac
d14977 8
a14984 3
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:
d14986 343
d15331 24
a15354 2
	  hardcode_direct=no
	  hardcode_shlibpath_var=no
d15357 4
a15360 3
	  hardcode_direct=yes
	  hardcode_direct_absolute=yes
	  export_dynamic_flag_spec='${wl}-E'
d15364 1
a15364 1
	  hardcode_minus_L=yes
d15372 1
a15372 30
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	# Try to use the -exported_symbol ld option, if it does not
	# work, assume that -exports_file does not work either and
	# implicitly export all symbols.
	# This should be the same for all languages, so no per-tag cache variable.
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
if ${lt_cv_irix_exported_symbol+:} false; then :
  $as_echo_n "(cached) " >&6
else
  save_LDFLAGS="$LDFLAGS"
	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo (void) { return 0; }
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_irix_exported_symbol=yes
else
  lt_cv_irix_exported_symbol=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
           LDFLAGS="$save_LDFLAGS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
	if test "$lt_cv_irix_exported_symbol" = yes; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
	fi
d15374 2
a15375 2
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
d15377 3
a15379 5
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      inherit_rpath=yes
      link_all_deplibs=yes
d15383 2
a15384 2
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
d15386 1
a15386 1
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
d15388 3
a15390 3
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
d15394 5
a15398 8
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_shlibpath_var=no
      ;;

    *nto* | *qnx*)
d15402 7
a15408 21
      if test -f /usr/libexec/ld.so; then
	hardcode_direct=yes
	hardcode_shlibpath_var=no
	hardcode_direct_absolute=yes
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	  export_dynamic_flag_spec='${wl}-E'
	else
	  case $host_os in
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	     hardcode_libdir_flag_spec='-R$libdir'
	     ;;
	   *)
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	     ;;
	  esac
	fi
d15410 10
a15419 1
	ld_shlibs=no
d15424 5
a15428 5
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
d15433 2
a15434 2
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d15436 2
a15437 2
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
d15439 2
a15440 3
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
d15445 3
a15447 3
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
d15449 4
a15452 4
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d15455 1
a15455 1
	hardcode_libdir_flag_spec='-rpath $libdir'
d15457 9
a15465 2
      archive_cmds_need_lc='no'
      hardcode_libdir_separator=:
d15469 1
a15469 1
      no_undefined_flag=' -z defs'
d15472 3
a15474 3
	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d15476 4
a15479 14
	case `$CC -V 2>&1` in
	*"Compilers 5.0"*)
	  wlarc=''
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
	  ;;
	*)
	  wlarc='${wl}'
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
	  ;;
	esac
d15481 2
a15482 2
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_shlibpath_var=no
d15486 11
a15496 10
	# The compiler driver will combine and reorder linker options,
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
	# but is careful enough not to reorder.
	# Supported since Solaris 2.6 (maybe 2.5.1?)
	if test "$GCC" = yes; then
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
	else
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
	fi
	;;
d15498 1
a15498 1
      link_all_deplibs=yes
d15505 1
a15505 1
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d15507 1
a15507 1
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d15509 4
a15512 4
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
d15518 2
a15519 2
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=yes # is this really true???
d15524 3
a15526 3
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds='$CC -r -o $output$reload_objs'
	  hardcode_direct=no
d15529 2
a15530 2
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
d15534 1
a15534 1
      hardcode_shlibpath_var=no
d15538 3
a15540 3
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='-Bexport'
d15545 2
a15546 2
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var=no
d15549 1
a15549 1
	ld_shlibs=yes
d15553 8
a15560 5
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag='${wl}-z,text'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      runpath_var='LD_RUN_PATH'
d15562 2
d15565 1
a15565 2
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d15567 1
a15567 2
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d15569 2
d15573 9
a15581 15
    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag='${wl}-z,text'
      allow_undefined_flag='${wl}-z,nodefs'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      export_dynamic_flag_spec='${wl}-Bexport'
a15582 8

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
d15586 3
a15588 3
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
d15592 1
a15592 1
      ld_shlibs=no
a15594 8

    if test x$host_vendor = xsni; then
      case $host in
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
	export_dynamic_flag_spec='${wl}-Blargedynsym'
	;;
      esac
    fi
d15597 3
a15599 18
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
$as_echo "$ld_shlibs" >&6; }
test "$ld_shlibs" = no && can_build_shared=no

with_gnu_ld=$with_gnu_ld













d15601 4
d15609 1
a15609 1
case "x$archive_cmds_need_lc" in
d15612 1
a15612 1
  archive_cmds_need_lc=yes
d15615 1
a15615 1
    case $archive_cmds in
d15625 2
a15626 5
if ${lt_cv_archive_cmds_need_lc+:} false; then :
  $as_echo_n "(cached) " >&6
else
  $RM conftest*
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d15628 1
a15628 1
	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d15633 14
a15646 15
	  soname=conftest
	  lib=conftest
	  libobjs=conftest.$ac_objext
	  deplibs=
	  wl=$lt_prog_compiler_wl
	  pic_flag=$lt_prog_compiler_pic
	  compiler_flags=-v
	  linker_flags=-v
	  verstring=
	  output_objdir=.
	  libname=conftest
	  lt_save_allow_undefined_flag=$allow_undefined_flag
	  allow_undefined_flag=
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
d15650 12
a15661 15
	  then
	    lt_cv_archive_cmds_need_lc=no
	  else
	    lt_cv_archive_cmds_need_lc=yes
	  fi
	  allow_undefined_flag=$lt_save_allow_undefined_flag
	else
	  cat conftest.err 1>&5
	fi
	$RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d15668 31
d15700 3
d15704 5
d15710 3
d15714 43
d15758 5
d15764 5
d15770 13
d15784 5
d15790 14
d15805 28
d15834 8
d15843 18
d15862 8
d15871 3
d15875 11
d15887 38
d15926 9
d15936 45
d15982 36
d16019 4
d16024 14
d16039 5
d16045 8
d16054 11
d16066 17
d16084 6
d16091 9
d16101 24
d16126 8
d16135 10
d16146 6
d16153 12
d16166 11
d16178 23
d16202 8
d16211 6
d16218 7
d16226 6
d16233 20
d16254 8
d16263 28
d16292 7
d16300 6
d16307 4
d16312 4
d16317 11
d16329 29
d16359 3
d16363 1
d16365 1
d16367 14
d16382 42
d16425 38
d16464 38
d16503 29
d16534 1
d16537 1
d16540 1
d16543 1
d16546 1
d16548 2
d16551 5
d16557 4
d16562 2
d16565 2
d16568 13
d16582 3
d16586 1
d16588 9
d16598 21
d16620 3
d16624 5
d16630 6
d16637 21
d16660 3
d16664 15
d16680 3
d16684 1
d16686 9
d16696 21
d16718 3
d16722 5
d16728 6
d16735 21
d16758 4
d16763 5
d16769 4
d16774 5
d16781 79
d16861 5
d16867 1
d16869 2
d16872 1
d16874 2
d16877 2
d16880 2
d16883 2
d16886 2
d16889 2
d16892 4
d16897 4
d16902 2
d16905 3
d16909 2
d16912 2
d16915 2
d16918 2
d16921 2
d16924 2
d16927 2
d16930 2
d16933 2
d16936 2
d16939 2
d16942 2
d16945 2
d16948 3
d16952 2
d16955 8
d16964 2
d16967 3
d16971 2
d16974 2
d16977 2
d16980 2
d16983 2
d16986 2
d16989 2
d16992 2
d16995 2
d16998 2
d17001 2
d17004 2
d17007 2
d17010 2
d17013 2
d17016 3
d17020 2
d17023 5
d17029 2
d17032 2
d17035 5
d17041 3
d17045 3
d17049 19
d17069 2
d17072 2
d17075 2
a17076 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }
d17078 2
a17079 79
if test "$GCC" = yes; then
  case $host_os in
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
    *) lt_awk_arg="/^libraries:/" ;;
  esac
  case $host_os in
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
    *) lt_sed_strip_eq="s,=/,/,g" ;;
  esac
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  case $lt_search_path_spec in
  *\;*)
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
    ;;
  *)
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
    ;;
  esac
  # Ok, now we have the path, separated by spaces, we can step through it
  # and add multilib dir if necessary.
  lt_tmp_lt_search_path_spec=
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  for lt_sys_path in $lt_search_path_spec; do
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
    else
      test -d "$lt_sys_path" && \
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
    fi
  done
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
BEGIN {RS=" "; FS="/|\n";} {
  lt_foo="";
  lt_count=0;
  for (lt_i = NF; lt_i > 0; lt_i--) {
    if ($lt_i != "" && $lt_i != ".") {
      if ($lt_i == "..") {
        lt_count++;
      } else {
        if (lt_count == 0) {
          lt_foo="/" $lt_i lt_foo;
        } else {
          lt_count--;
        }
      }
    }
  }
  if (lt_foo != "") { lt_freq[lt_foo]++; }
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
}'`
  # AWK program above erroneously prepends '/' to C:/dos/paths
  # for these hosts.
  case $host_os in
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  esac
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no
d17081 2
a17082 3
# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown
d17084 2
a17085 5
case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH
d17087 2
a17088 3
  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;
d17090 2
a17091 43
aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;
d17093 2
a17094 14
amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;
d17096 2
a17097 5
beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;
d17099 2
a17100 13
bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;
d17102 2
a17103 5
cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no
d17105 2
a17106 18
  case $GCC,$cc_basename in
  yes,*)
    # gcc
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
d17108 2
a17109 4
    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d17111 3
a17113 13
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    dynamic_linker='Win32 ld.exe'
    ;;
d17115 23
a17137 5
  *,cl*)
    # Native MSVC
    libname_spec='$name'
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'
d17139 3
a17141 36
    case $build_os in
    mingw*)
      sys_lib_search_path_spec=
      lt_save_ifs=$IFS
      IFS=';'
      for lt_path in $LIB
      do
        IFS=$lt_save_ifs
        # Let DOS variable expansion print the short 8.3 style file name.
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @@echo %~si"`
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
      done
      IFS=$lt_save_ifs
      # Convert to MSYS style.
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
      ;;
    cygwin*)
      # Convert to unix form, then to dos form, then back to unix form
      # but this time dos style (no spaces!) so that the unix form looks
      # like /cygdrive/c/PROGRA~1:/cygdr...
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      ;;
    *)
      sys_lib_search_path_spec="$LIB"
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      fi
      # FIXME: find the short name or the path components, as spaces are
      # common. (e.g. "Program Files" -> "PROGRA~1")
      ;;
    esac
d17143 2
a17144 12
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
    dynamic_linker='Win32 link.exe'
    ;;
d17146 2
a17147 9
  *)
    # Assume MSVC wrapper
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    dynamic_linker='Win32 ld.exe'
    ;;
  esac
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;
d17149 2
a17150 10
darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
d17152 2
a17153 3
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;
d17155 18
a17172 8
dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;
a17173 3
freebsd1*)
  dynamic_linker=no
  ;;
d17175 7
a17181 10
freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
d17183 47
a17229 32
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;
d17231 5
a17235 9
gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;
a17236 12
haiku*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  dynamic_linker="$host_os runtime_loader"
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  hardcode_into_libs=yes
  ;;
d17238 11
a17248 41
hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
d17250 2
a17251 5
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  postinstall_cmds='chmod 555 $lib'
  # or fails outright, so override atomically:
  install_override_mode=555
  ;;
d17253 1
a17253 11
interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;
d17255 74
a17328 3
irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
d17330 2
a17331 23
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
d17333 5
a17339 6
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;
d17341 1
a17341 4
# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;
d17343 2
a17344 10
# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
d17346 1
a17346 11
  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d17348 2
a17349 3
int
main ()
{
d17351 2
a17352 13
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir
d17354 2
a17355 1
fi
d17357 2
a17358 1
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d17360 2
a17361 4
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes
d17363 2
a17364 5
  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi
d17366 4
a17369 8
  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;
d17371 4
a17374 17
netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;
d17376 2
a17377 6
newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;
d17379 3
a17381 11
*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;
d17383 2
a17384 25
openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;
d17386 2
a17387 8
os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;
d17389 2
a17390 10
osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;
d17392 2
a17393 3
rdos*)
  dynamic_linker=no
  ;;
d17395 2
a17396 12
solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;
d17398 2
a17399 11
sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;
d17401 2
a17402 22
sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;
d17404 2
a17405 8
sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;
d17407 2
a17408 21
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;
d17410 2
a17411 10
tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;
d17413 2
a17414 26
uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi
d17416 2
d17419 2
d17422 3
d17426 2
d17429 2
d17432 2
d17435 2
d17438 2
d17441 3
d17445 2
d17448 2
d17451 2
d17454 2
d17457 2
d17460 2
d17463 2
d17466 2
d17469 2
d17472 2
d17475 2
d17478 2
d17481 2
d17484 2
d17487 2
d17490 3
d17494 2
d17497 5
d17503 2
d17506 2
d17509 5
d17515 3
d17519 3
d17523 19
d17543 2
d17546 2
d17549 2
d17552 2
d17555 2
d17558 2
d17561 2
d17564 2
d17567 2
d17570 2
d17573 2
d17576 2
d17579 2
d17582 2
d17585 3
d17589 23
d17613 3
d17617 2
d17620 2
d17623 2
d17626 2
d17629 2
d17632 2
d17635 2
d17638 2
d17641 2
d17644 1
d17646 1
d17649 9
d17660 5
d17666 1
d17668 1
d17670 4
d17675 7
d17683 9
d17695 2
d17698 2
d17701 1
d17712 10
d17723 19
d17744 11
a17755 22



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" ||
   test -n "$runpath_var" ||
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
a17756 4
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
d17758 5
a17762 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
d17765 3
a17767 35





  if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
d17770 1
a17770 3
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a17772 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
d17776 4
a17779 1
return dlopen ();
d17784 2
a17785 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
d17787 1
a17787 1
  ac_cv_lib_dl_dlopen=no
d17789 1
a17789 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d17791 3
a17793 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
d17795 1
a17795 3
    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
d17799 3
a17801 10
    ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if ${ac_cv_lib_dld_shl_load+:} false; then :
d17804 1
a17804 2
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
d17814 1
a17814 1
char shl_load ();
d17818 1
a17818 1
return shl_load ();
d17823 9
a17831 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
d17834 3
a17836 2
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d17838 2
a17839 18
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a17840 17
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
d17842 1
a17842 1
  ac_cv_lib_dl_dlopen=no
d17844 2
a17845 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d17847 151
a17997 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d17999 23
a18021 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if ${ac_cv_lib_svld_dlopen+:} false; then :
d18025 1
a18025 1
LIBS="-lsvld  $LIBS"
d18029 1
a18029 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
d18033 1
a18033 1
return dlopen ();
d18039 1
a18039 1
  ac_cv_lib_svld_dlopen=yes
d18041 1
a18041 1
  ac_cv_lib_svld_dlopen=no
d18047 17
a18063 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
d18065 3
a18067 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if ${ac_cv_lib_dld_dld_link+:} false; then :
d18070 1
a18070 2
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
d18080 1
a18080 1
char dld_link ();
d18084 1
a18084 1
return dld_link ();
d18089 9
a18097 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
d18100 3
a18102 7
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d18104 2
d18107 2
a18108 1

d18110 2
a18111 2


d18113 5
a18117 1

a18120 1

d18123 2
d18126 9
a18134 1
fi
d18136 18
a18153 5
    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
d18155 2
a18156 1
    enable_dlopen=no
d18158 10
d18169 11
a18179 4
  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d18181 9
a18189 2
    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d18191 32
a18222 2
    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"
a18223 4
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
d18225 10
a18234 8
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"
d18236 1
a18236 3
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d18238 1
a18238 1
#include <stdio.h>
d18240 1
a18240 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
d18242 8
a18249 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
d18251 5
a18255 4
/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
d18257 3
a18259 3

int fnord () { return 42; }
int main ()
d18261 22
a18282 2
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
d18284 11
a18294 12
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());
a18295 19
  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
a18296 1
rm -fr conftest*
d18298 7
d18307 2
a18308 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }
a18309 15
    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"
d18311 1
a18311 3
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d18313 6
a18318 1
#include <stdio.h>
a18319 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
d18321 28
a18348 20
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
d18350 34
d18385 5
a18389 4
/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
d18391 3
a18393 3

int fnord () { return 42; }
int main ()
d18395 3
a18397 17
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
d18399 3
a18401 17
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
d18403 23
a18425 1
rm -fr conftest*
d18427 8
d18436 2
a18437 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi
d18439 13
a18451 10
    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac
a18452 4
  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
d18455 1
d18457 9
d18467 1
d18469 1
d18472 2
d18475 5
d18481 21
d18503 2
d18506 2
d18509 1
d18511 3
d18517 14
d18532 19
a18550 29

striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP" ; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
d18552 3
a18554 52












  # Report which library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test "$can_build_shared" = "no" && enable_shared=no

  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test "$enable_shared" = yes && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;

  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }




d18556 6
a18561 14
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"







d18563 1
a18564 19




        ac_config_commands="$ac_config_commands libtool"




# Only expand once:



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
d18566 3
a18568 8
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
d18571 3
a18573 2
    ac_pattern="Autoconf.*'x'"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18575 15
a18589 2
#include <sgtty.h>
Autoconf TIOCGETP
d18591 2
a18592 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d18594 5
a18598 1
  ac_cv_prog_gcc_traditional=no
d18600 6
a18605 1
rm -f conftest*
d18607 1
a18608 9
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
a18609 1
rm -f conftest*
a18610 7
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d18613 6
a18618 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
$as_echo_n "checking for working volatile... " >&6; }
if ${ac_cv_c_volatile+:} false; then :
d18621 2
a18622 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18625 7
d18635 1
a18635 4

volatile int x;
int * volatile y = (int *) 0;
return !x && !y;
d18640 18
a18657 2
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_volatile=yes
d18659 1
a18659 1
  ac_cv_c_volatile=no
d18661 2
a18662 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d18664 5
a18668 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
$as_echo "$ac_cv_c_volatile" >&6; }
if test $ac_cv_c_volatile = no; then

$as_echo "#define volatile /**/" >>confdefs.h
d18672 3
a18674 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
$as_echo_n "checking for library containing strerror... " >&6; }
if ${ac_cv_search_strerror+:} false; then :
d18687 1
a18687 1
char strerror ();
d18691 1
a18691 1
return strerror ();
d18696 1
a18696 1
for ac_lib in '' cposix; do
d18701 1
a18701 1
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
d18704 1
a18704 1
  ac_cv_search_strerror=$ac_res
d18708 1
a18708 1
  if ${ac_cv_search_strerror+:} false; then :
d18712 1
a18712 1
if ${ac_cv_search_strerror+:} false; then :
d18715 1
a18715 1
  ac_cv_search_strerror=no
d18720 3
a18722 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
$as_echo "$ac_cv_search_strerror" >&6; }
ac_res=$ac_cv_search_strerror
d18728 12
a18740 26
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_PERL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d18742 22
a18763 7
  ;;
esac
fi
PATH_PERL=$ac_cv_path_PATH_PERL
if test -n "$PATH_PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
$as_echo "$PATH_PERL" >&6; }
d18765 1
a18765 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d18767 7
d18775 3
a18778 6
# Extract the first word of "sh", so it can be a program name with args.
set dummy sh; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_SH+:} false; then :
  $as_echo_n "(cached) " >&6
d18780 3
a18782 19
  case $PATH_SH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a18783 10
  ;;
esac
fi
PATH_SH=$ac_cv_path_PATH_SH
if test -n "$PATH_SH"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SH" >&5
$as_echo "$PATH_SH" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d18786 5
d18792 3
a18794 26
# Extract the first word of "test", so it can be a program name with args.
set dummy test; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_TEST+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_TEST in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a18795 7
  ;;
esac
fi
PATH_TEST=$ac_cv_path_PATH_TEST
if test -n "$PATH_TEST"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
$as_echo "$PATH_TEST" >&6; }
d18797 1
a18797 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d18799 1
d18801 1
d18803 19
d18823 13
a18836 3
# Check whether --with-net-snmp-config was given.
if test "${with_net_snmp_config+set}" = set; then :
  withval=$with_net_snmp_config; ans=$withval
d18838 4
a18841 2
  ans=yes

a18843 52
case "$ans" in
 no)
    ;;
 yes)
    ans=net-snmp-config
    ;;
 /*)
    ;;
 */*)
    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
    ;;
 *)
    ;;
esac
PROG_NET_SNMP_CONFIG=$ans
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
case "$PROG_NET_SNMP_CONFIG" in
 no) ;;
 /*)
    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
    ;;
 *)
    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_NET_SNMP_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
a18844 7
PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
if test -n "$PATH_NET_SNMP_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d18846 3
d18850 1
d18852 1
a18852 4
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
d18854 7
a18860 5
case "$host" in
 *-*-vxworks*)
    ac_link="$ac_link $VX_KERNEL"
    ;;
esac
d18862 1
d18864 1
d18866 6
a18871 3
ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
if test "x$ac_cv_func_gethostent" = xyes; then :

d18873 2
a18874 6
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
$as_echo_n "checking for library containing gethostent... " >&6; }
if ${ac_cv_search_gethostent+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
d18884 1
a18884 1
char gethostent ();
d18888 1
a18888 1
return gethostent ();
d18893 4
a18896 9
for ac_lib in '' nsl; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_gethostent=$ac_res
d18899 2
a18900 3
    conftest$ac_exeext
  if ${ac_cv_search_gethostent+:} false; then :
  break
d18902 3
a18904 2
done
if ${ac_cv_search_gethostent+:} false; then :
d18906 1
a18906 11
else
  ac_cv_search_gethostent=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
$as_echo "$ac_cv_search_gethostent" >&6; }
ac_res=$ac_cv_search_gethostent
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a18911 2
ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
if test "x$ac_cv_func_openlog" = xyes; then :
d18913 12
a18924 9
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
$as_echo_n "checking for library containing openlog... " >&6; }
if ${ac_cv_search_openlog+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a18925 29
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char openlog ();
int
main ()
{
return openlog ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' gen; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_openlog=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_openlog+:} false; then :
  break
d18927 1
a18928 13
if ${ac_cv_search_openlog+:} false; then :

else
  ac_cv_search_openlog=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
$as_echo "$ac_cv_search_openlog" >&6; }
ac_res=$ac_cv_search_openlog
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a18929 9
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
$as_echo_n "checking for library containing openlog... " >&6; }
if ${ac_cv_search_openlog+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d18931 4
a18934 5
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
d18936 5
a18940 8
char openlog ();
int
main ()
{
return openlog ();
  ;
  return 0;
}
a18941 17
for ac_lib in '' syslog; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_openlog=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_openlog+:} false; then :
  break
fi
done
if ${ac_cv_search_openlog+:} false; then :
a18942 5
else
  ac_cv_search_openlog=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
a18943 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
$as_echo "$ac_cv_search_openlog" >&6; }
ac_res=$ac_cv_search_openlog
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18945 1
a18945 1
fi
d18947 9
a18955 1
fi
d18959 1
a18959 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
$as_echo_n "checking for library containing MD5Init... " >&6; }
if ${ac_cv_search_MD5Init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d18961 8
a18968 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char MD5Init ();
int
main ()
{
return MD5Init ();
  ;
  return 0;
}
a18969 17
for ac_lib in '' md5 md; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_MD5Init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_MD5Init+:} false; then :
  break
fi
done
if ${ac_cv_search_MD5Init+:} false; then :
a18970 5
else
  ac_cv_search_MD5Init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
a18971 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
$as_echo "$ac_cv_search_MD5Init" >&6; }
ac_res=$ac_cv_search_MD5Init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18973 1
a18973 1
fi
d18975 1
a18975 1
for ac_func in MD5Init
d18977 4
a18980 2
  ac_fn_c_check_func "$LINENO" "MD5Init" "ac_cv_func_MD5Init"
if test "x$ac_cv_func_MD5Init" = xyes; then :
d18982 1
a18982 1
#define HAVE_MD5INIT 1
d18986 1
d18990 11
d19002 1
a19002 1
    NTP_ORIG_LIBS="$LIBS"
d19004 9
a19012 5
# Check whether --with-lineeditlibs was given.
if test "${with_lineeditlibs+set}" = set; then :
  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
else
  use_lineeditlibs="edit,editline"
d19016 12
a19027 39
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
$as_echo_n "checking line editing libraries... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
$as_echo "$use_lineeditlibs" >&6; }
    case "$use_lineeditlibs" in
     no)
	ntp_lib_lineedit=no
	;;
     *)
	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
	    for term_lib in "" termcap curses ncurses; do
		case "$term_lib" in
		 '')
		    TRY_LIB="-l$lineedit_lib"
		    ;;
		 *)
		    TRY_LIB="-l$lineedit_lib -l$term_lib"
		    ;;
		esac
		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char readline ();
int
main ()
{
return readline ();
  ;
  return 0;
}
a19028 25
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		case "$ntp_lib_lineedit" in
		 '')
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		    ;;
		 *)
		    # Use readline()
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
		    break
		esac
		case "$term_lib" in
		 '')
		    # do not try el_gets without a terminal library
		    ;;
		 *)
		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a19029 17
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char el_gets ();
int
main ()
{
return el_gets ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
a19030 26
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		    case "$ntp_lib_lineedit" in
		     '')
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			;;
		     *) # Use el_gets()
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			break
			;;
		    esac	# $ntp_lib_lineedit
		esac		# $term_lib
	    done
	    case "$ntp_lib_lineedit" in
	     '')
		;;
	     *)
		break
		;;
	    esac
	done
	LIBS="$NTP_ORIG_LIBS"
	;;
    esac	# $use_lineeditlibs
d19032 3
a19034 8
    case "$ntp_lib_lineedit" in
     '')
	ntp_lib_lineedit="no"
	;;
     no)
	;;
     *)
	EDITLINE_LIBS="$ntp_lib_lineedit"
d19036 8
a19043 2
	;;
    esac	# $ntp_lib_lineedit
d19045 3
a19047 5
    case "$ntp_lib_lineedit" in
     no)
	;;
     *)
	for ac_header in readline.h readline/readline.h histedit.h
d19049 2
a19050 3
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19052 1
a19052 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d19056 1
d19058 1
a19058 1
done
d19060 1
a19060 1
	for ac_header in history.h readline/history.h
d19062 2
a19063 3
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19065 1
a19065 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d19072 7
d19080 1
a19080 9
	case "$ac_cv_header_histedit_h" in
	 yes)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
$as_echo_n "checking number of arguments to el_init()... " >&6; }
if ${ntp_cv_el_init_args+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d19082 1
a19082 2
			    #include <stdio.h>
			    #include <histedit.h>
d19084 5
a19088 3
int
main ()
{
d19090 4
a19093 6
			    el_init("conftest", stdin, stdout, stderr);


  ;
  return 0;
}
a19094 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_el_init_args=4
else
  ntp_cv_el_init_args=3
a19096 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19098 1
a19098 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
$as_echo "$ntp_cv_el_init_args" >&6; }
d19100 6
a19105 2
cat >>confdefs.h <<_ACEOF
#define EL_INIT_ARGS $ntp_cv_el_init_args
d19108 1
a19108 1
	esac
d19110 1
a19110 2
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
$as_echo_n "checking whether readline supports history... " >&6; }
d19112 6
a19117 5
	ntp_lib_lineedit_history="no"
	ORIG_LIBS="$LIBS"
	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d19119 4
a19122 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char add_history ();
int
main ()
{
return add_history ();
  ;
  return 0;
}
d19124 1
a19124 2
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit_history="yes"
a19125 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LIBS="$ORIG_LIBS"
d19127 11
a19137 2
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
$as_echo "$ntp_lib_lineedit_history" >&6; }
d19139 1
a19139 2
	case "$ntp_lib_lineedit_history" in
	 yes)
d19141 1
a19141 1
$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
d19143 7
a19149 6
	esac
    esac	# $ntp_lib_lineedit
    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
    { ORIG_LIBS=; unset ORIG_LIBS;}
    { TRY_LIB=; unset TRY_LIB;}
    { use_lineeditlibs=; unset use_lineeditlibs;}
d19151 1
d19153 1
d19155 10
a19164 20
case "$host" in
 *-*-*linux*) ;;
 *-*-osf4*) ;;
 *-*-osf5*) ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lrt" >&5
$as_echo_n "checking for sched_setscheduler in -lrt... " >&6; }
if ${ac_cv_lib_rt_sched_setscheduler+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
a19165 24
char sched_setscheduler ();
int
main ()
{
return sched_setscheduler ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rt_sched_setscheduler=yes
else
  ac_cv_lib_rt_sched_setscheduler=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_setscheduler" >&5
$as_echo "$ac_cv_lib_rt_sched_setscheduler" >&6; }
if test "x$ac_cv_lib_rt_sched_setscheduler" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBRT 1
_ACEOF
d19167 2
a19168 40
  LIBS="-lrt $LIBS"

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lposix4" >&5
$as_echo_n "checking for sched_setscheduler in -lposix4... " >&6; }
if ${ac_cv_lib_posix4_sched_setscheduler+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lposix4  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_setscheduler ();
int
main ()
{
return sched_setscheduler ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_posix4_sched_setscheduler=yes
else
  ac_cv_lib_posix4_sched_setscheduler=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
$as_echo "$ac_cv_lib_posix4_sched_setscheduler" >&6; }
if test "x$ac_cv_lib_posix4_sched_setscheduler" = xyes; then :
d19170 1
a19170 1
#define HAVE_LIBPOSIX4 1
a19172 2
  LIBS="-lposix4 $LIBS"

d19175 1
a19175 1
fi
a19176 2
    ;;
esac
d19178 4
a19181 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
$as_echo_n "checking for library containing setsockopt... " >&6; }
if ${ac_cv_search_setsockopt+:} false; then :
d19184 2
a19185 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19188 11
a19198 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char setsockopt ();
int
main ()
{
return setsockopt ();
  ;
  return 0;
}
d19200 5
a19204 17
for ac_lib in '' socket xnet; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_setsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_setsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_setsockopt+:} false; then :
a19205 2
else
  ac_cv_search_setsockopt=no
d19207 1
a19207 8
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
$as_echo "$ac_cv_search_setsockopt" >&6; }
ac_res=$ac_cv_search_setsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a19208 1
fi
a19209 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
$as_echo_n "checking for library containing res_init... " >&6; }
if ${ac_cv_search_res_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a19210 29
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char res_init ();
int
main ()
{
return res_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_res_init+:} false; then :
  break
d19212 2
a19213 2
done
if ${ac_cv_search_res_init+:} false; then :
d19215 2
a19216 11
else
  ac_cv_search_res_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
$as_echo "$ac_cv_search_res_init" >&6; }
ac_res=$ac_cv_search_res_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d19218 1
a19218 1
fi
d19220 1
a19220 11
case "$host" in
 *-*-darwin*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_9_init in -lresolv" >&5
$as_echo_n "checking for res_9_init in -lresolv... " >&6; }
if ${ac_cv_lib_resolv_res_9_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lresolv  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d19222 4
a19225 27
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char res_9_init ();
int
main ()
{
return res_9_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_resolv_res_9_init=yes
else
  ac_cv_lib_resolv_res_9_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_9_init" >&5
$as_echo "$ac_cv_lib_resolv_res_9_init" >&6; }
if test "x$ac_cv_lib_resolv_res_9_init" = xyes; then :
d19227 1
a19227 1
#define HAVE_LIBRESOLV 1
d19230 1
a19230 1
  LIBS="-lresolv $LIBS"
d19234 3
a19236 3
    ;;
esac
for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
d19239 3
a19241 14
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19250 1
a19250 2

for ac_func in res_init __res_init
d19252 4
a19255 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d19257 1
a19257 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d19261 1
d19264 9
a19273 24
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if ${ac_cv_header_stdc+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
a19274 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19276 1
a19276 5
if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>
d19278 8
a19286 2
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :
a19287 2
else
  ac_cv_header_stdc=no
a19288 1
rm -f conftest*
d19290 1
a19290 7
fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
d19292 8
a19300 2
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :
a19301 2
else
  ac_cv_header_stdc=no
a19302 1
rm -f conftest*
d19304 1
a19304 1
fi
d19306 7
a19312 31
if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
a19313 1
if ac_fn_c_try_run "$LINENO"; then :
a19314 5
else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d19317 1
a19317 5
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then
d19319 3
a19321 5
$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

for ac_header in bstring.h
d19323 2
a19324 2
  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
if test "x$ac_cv_header_bstring_h" = xyes; then :
d19326 1
a19326 1
#define HAVE_BSTRING_H 1
d19332 10
a19341 27

ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
if test "x$ac_cv_header_dns_sd_h" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceRegister in -ldns_sd" >&5
$as_echo_n "checking for DNSServiceRegister in -ldns_sd... " >&6; }
if ${ac_cv_lib_dns_sd_DNSServiceRegister+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldns_sd  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char DNSServiceRegister ();
int
main ()
{
return DNSServiceRegister ();
  ;
  return 0;
}
a19342 15
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dns_sd_DNSServiceRegister=yes
else
  ac_cv_lib_dns_sd_DNSServiceRegister=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5
$as_echo "$ac_cv_lib_dns_sd_DNSServiceRegister" >&6; }
if test "x$ac_cv_lib_dns_sd_DNSServiceRegister" = xyes; then :

$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h

d19346 1
d19348 1
a19348 6
fi


case "$ac_cv_lib_dns_sd_DNSServiceRegister" in
 yes)
    LIBS="-ldns_sd $LIBS"
d19350 2
a19351 1
for ac_header in errno.h fcntl.h ieeefp.h kvm.h math.h
d19355 2
a19356 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19365 4
a19368 2

for ac_header in md5.h
d19370 4
a19373 8
  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
	#ifdef HAVE_SYS_TYPES_H
	# include <sys/types.h>
	#endif


"
if test "x$ac_cv_header_md5_h" = xyes; then :
d19375 1
a19375 1
#define HAVE_MD5_H 1
d19382 3
a19384 1
for ac_header in memory.h netdb.h poll.h
d19388 2
a19389 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19398 1
a19398 1
for ac_header in sgtty.h stdlib.h string.h termio.h
d19402 2
a19403 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19412 1
a19412 1
for ac_header in termios.h timepps.h timex.h unistd.h
d19416 2
a19417 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19426 12
d19439 4
a19442 3
case "$host" in
 *-*-aix*)
    for ac_header in utmpx.h
d19444 9
a19452 2
  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
if test "x$ac_cv_header_utmpx_h" = xyes; then :
d19454 1
a19454 1
#define HAVE_UTMPX_H 1
a19460 11
    case "$ac_cv_header_utmpx_h" in
     yes)
	;;
     *)
	for ac_header in utmp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
if test "x$ac_cv_header_utmp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMP_H 1
_ACEOF
d19463 1
d19465 1
a19465 7
done

	;;
    esac
    ;;
 *)
    for ac_header in utmp.h utmpx.h
d19469 2
a19470 1
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19479 10
a19488 20
    ;;
esac

#
# On Suns only (so far) getpass() truncates the typed password to 8
# characters, but getpassphrase() allows up to 257.  Most systems'
# getpass() does not truncate, at least not so as to affect ntpq and
# ntpdc password prompts.
#
# So check for getpassphrase(), but only on Sun operating systems.
#
case "$host" in
 *-*-sunos*|*-*-solaris*)
    for ac_func in getpassphrase
do :
  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
if test "x$ac_cv_func_getpassphrase" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETPASSPHRASE 1
_ACEOF
d19490 15
d19506 3
a19508 1
done
d19510 1
a19510 9
esac

for ac_header in arpa/nameser.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ARPA_NAMESER_H 1
_ACEOF
d19514 3
a19516 3
done

for ac_header in sys/socket.h
d19518 4
a19521 2
  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_socket_h" = xyes; then :
d19523 1
a19523 1
#define HAVE_SYS_SOCKET_H 1
d19530 3
a19532 5

#
case "$host" in
 *-hp-hpux*)
    for ac_header in net/netmp.h
d19534 4
a19537 2
  ac_fn_c_check_header_mongrel "$LINENO" "net/netmp.h" "ac_cv_header_net_netmp_h" "$ac_includes_default"
if test "x$ac_cv_header_net_netmp_h" = xyes; then :
d19539 1
a19539 1
#define HAVE_NET_NETMP_H 1
a19540 3
 netmp_h_works=yes
else
  netmp_h_works=no
d19546 1
a19546 15
    case "$netmp_h_works" in
     no)
	cat >>confdefs.h <<_ACEOF
#ifndef MPINFOU_PREDECLARED
# define MPINFOU_PREDECLARED
typedef union mpinfou {		/* For lint */
	struct pdk_mpinfo *pdkptr;
	struct mpinfo *pikptr;
} mpinfou_t;
#endif
_ACEOF

	;;
    esac
    ;;
d19550 2
a19551 2
 *-linux*)
    for ac_header in linux/if_addr.h
d19553 4
a19556 7
  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
	#ifdef HAVE_SYS_SOCKET_H
	# include <sys/socket.h>
	#endif

"
if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
d19558 1
a19558 1
#define HAVE_LINUX_IF_ADDR_H 1
a19561 1

d19564 1
d19566 12
d19579 5
a19583 4
for ac_header in net/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
d19585 8
a19592 5

"
if test "x$ac_cv_header_net_if_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_H 1
d19594 8
a19601 1

d19603 3
a19605 7

done

for ac_header in net/if6.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
if test "x$ac_cv_header_net_if6_h" = xyes; then :
d19607 1
a19607 1
#define HAVE_NET_IF6_H 1
d19610 2
d19613 9
a19622 1
done
d19624 7
a19630 11
for ac_header in net/route.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>

"
if test "x$ac_cv_header_net_route_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_ROUTE_H 1
d19632 8
a19639 1

d19641 3
a19643 8

done

for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19645 1
a19645 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d19648 2
d19651 9
d19661 5
a19665 6
done

for ac_header in net/if_var.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "#if HAVE_SYS_TYPES_H
#include <sys/types.h>
d19667 8
a19674 14
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NET_IF_H
#include <net/if.h>
#endif

"
if test "x$ac_cv_header_net_if_var_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_VAR_H 1
d19676 8
a19683 1

d19685 3
a19687 27

done

for ac_header in netinet/ip.h netinet/in_var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NET_IF_H
#include <net/if.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NET_IF_VAR_H
#include <net/if_var.h>
#endif
#ifdef HAVE_NETINET_IN_SYSTM_H
#include <netinet/in_systm.h>
#endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19689 1
a19689 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d19692 2
d19696 3
a19698 7
done


# Check for IPTOS_PREC
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY" >&5
$as_echo_n "checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY... " >&6; }
if ${ntp_cv_ip_tos+:} false; then :
d19701 3
a19703 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19706 14
a19719 11
	    #ifdef HAVE_SYS_TYPES_H
	    # include <sys/types.h>
	    #endif
	    #ifdef HAVE_NETINET_IP_H
	    # include <netinet/in.h>
	    # include <netinet/ip.h>
	    #endif
	    #if defined(IPPROTO_IP) && defined(IP_TOS) && defined(IPTOS_LOWDELAY)
		yes
	    #endif

d19721 2
a19722 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_ip_tos=yes
d19724 1
a19724 2
  ntp_cv_ip_tos=no

d19726 3
a19728 3
rm -f conftest*


d19730 3
a19732 13
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_ip_tos" >&5
$as_echo "$ntp_cv_ip_tos" >&6; }
case "$ntp_cv_ip_tos" in
 yes)

$as_echo "#define HAVE_IPTOS_SUPPORT 1" >>confdefs.h

esac

for ac_header in netinfo/ni.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
d19734 1
a19734 1
#define HAVE_NETINFO_NI_H 1
d19737 2
d19741 2
a19742 1
done
d19744 1
a19744 2
case "$ac_cv_header_netinfo_ni_h" in
 yes)
d19746 15
a19760 10
$as_echo "#define HAVE_NETINFO 1" >>confdefs.h

esac
for ac_header in sun/audioio.h sys/audioio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d19762 4
a19765 1

d19767 1
a19767 12

done

for ac_header in sys/clkdefs.h sys/file.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

d19769 3
d19773 1
a19773 1
done
d19775 1
a19775 11
case "$host" in
 *-*-sunos4*)
    ;;
 *)
    for ac_header in sys/ioctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_IOCTL_H 1
_ACEOF
a19778 2
done

a19780 8
for ac_header in sys/ipc.h sys/lock.h sys/mman.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a19781 1
fi
d19783 8
a19790 1
done
d19792 2
a19793 5
for ac_header in sys/modem.h sys/param.h sys/ppsclock.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19795 1
a19795 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d19802 2
a19803 2
# HMS: Check sys/proc.h and sys/resource.h after some others
for ac_header in sys/ppstime.h sched.h
d19805 6
a19810 3
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19812 1
a19812 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d19819 2
a19820 5
case "$ac_cv_header_sched_h" in
 yes)
    ;;
 *)
    for ac_header in sys/sched.h
d19822 9
a19830 2
  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sched_h" = xyes; then :
d19832 1
a19832 1
#define HAVE_SYS_SCHED_H 1
a19838 13
    ;;
esac
case "$host" in
 *-*-sco*)
    for ac_header in sys/sio.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/sio.h" "ac_cv_header_sys_sio_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sio_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SIO_H 1
_ACEOF

fi
d19840 1
a19840 6
done

    ;;
esac
# HMS: Check sys/shm.h after some others
for ac_header in sys/select.h sys/signal.h sys/sockio.h
d19842 3
a19844 6
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d19846 2
a19847 14
fi

done

# HMS: Checked sys/socket.h earlier
case "$host" in
 *-*-netbsd*)
    ;;
 *)
    for ac_header in machine/soundcard.h sys/soundcard.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d19849 1
a19849 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a19855 12
    ;;
esac
for ac_header in sys/stat.h sys/stream.h sys/stropts.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi
d19857 1
a19857 4
done

# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
for ac_header in sys/sysctl.h
d19859 5
a19863 2
  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
# include <sys/param.h>
d19865 4
d19870 1
a19870 1
if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
d19872 1
a19872 1
#define HAVE_SYS_SYSCTL_H 1
a19878 8
for ac_header in sys/syssgi.h sys/systune.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d19880 7
a19886 1
fi
d19888 3
a19890 1
done
d19892 4
a19895 7
for ac_header in sys/termios.h sys/time.h sys/signal.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d19897 6
d19905 7
d19913 2
a19914 1
done
d19916 6
a19921 1
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19924 27
a19950 10
	#ifdef HAVE_SYS_TIME_H
	# include <sys/time.h>
	#endif
	#ifdef HAVE_ERRNO_H
	# include <errno.h>
	#endif
	#include <sys/timepps.h>
	#ifdef PPS_API_VERS_1
	    yes
	#endif
d19952 24
a19975 12
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  for ac_header in sys/timepps.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
	    #ifdef HAVE_SYS_TIME_H
	    # include <sys/time.h>
	    #endif
	    #ifdef HAVE_ERRNO_H
	    # include <errno.h>
	    #endif
d19977 3
a19979 5

"
if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEPPS_H 1
d19981 6
a19986 1

d19988 3
d19992 1
a19992 1
done
d19994 1
d19996 13
a20008 2
fi
rm -f conftest*
a20009 7
for ac_header in sys/timers.h sys/tpro.h sys/types.h sys/wait.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d20011 1
d20013 21
d20035 7
d20043 8
a20050 1
done
d20052 7
a20058 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if ${ac_cv_header_time+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20061 1
a20061 2
#include <sys/time.h>
#include <time.h>
d20066 4
a20069 2
if ((struct tm *) 0)
return 0;
d20075 1
a20075 1
  ac_cv_header_time=yes
d20077 1
a20077 1
  ac_cv_header_time=no
d20081 7
a20087 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then
d20089 6
a20094 1
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
d20096 3
a20098 11
fi

case "$host" in
*-convex-*)
    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d20100 3
a20102 51

fi

done

    ;;
*-*-bsdi*)
    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ;;
esac

case "$host" in
 *-*-*linux*)
    for ac_func in __adjtimex __ntp_gettime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac
case "$ac_cv_func___adjtimex" in
 yes)
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
$as_echo_n "checking for nlist in -lelf... " >&6; }
if ${ac_cv_lib_elf_nlist+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelf  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20104 1
a20105 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
d20109 4
a20112 1
return nlist ();
d20117 2
a20118 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_elf_nlist=yes
d20120 1
a20120 1
  ac_cv_lib_elf_nlist=no
d20122 1
a20122 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d20124 7
a20130 18
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
$as_echo "$ac_cv_lib_elf_nlist" >&6; }
if test "x$ac_cv_lib_elf_nlist" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBELF 1
_ACEOF

  LIBS="-lelf $LIBS"

fi
	        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkvm" >&5
$as_echo_n "checking for main in -lkvm... " >&6; }
if ${ac_cv_lib_kvm_main+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lkvm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20132 15
a20146 1

d20151 1
a20151 1
return main ();
d20156 12
a20167 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_kvm_main=yes
else
  ac_cv_lib_kvm_main=no
d20169 1
a20169 18
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_main" >&5
$as_echo "$ac_cv_lib_kvm_main" >&6; }
if test "x$ac_cv_lib_kvm_main" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBKVM 1
_ACEOF

  LIBS="-lkvm $LIBS"

fi
		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lld" >&5
$as_echo_n "checking for nlist in -lld... " >&6; }
if ${ac_cv_lib_ld_nlist+:} false; then :
  $as_echo_n "(cached) " >&6
d20171 1
a20171 3
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20173 1
a20173 8

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
d20177 10
a20186 1
return nlist ();
d20191 2
a20192 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ld_nlist=yes
d20194 4
a20197 1
  ac_cv_lib_ld_nlist=no
d20199 2
a20200 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d20202 9
a20210 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ld_nlist" >&5
$as_echo "$ac_cv_lib_ld_nlist" >&6; }
if test "x$ac_cv_lib_ld_nlist" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLD 1
_ACEOF
d20212 1
a20212 1
  LIBS="-lld $LIBS"
d20214 5
a20218 1
fi
d20220 3
a20222 3
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lmld" >&5
$as_echo_n "checking for nlist in -lmld... " >&6; }
if ${ac_cv_lib_mld_nlist+:} false; then :
d20225 1
a20225 3
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20227 2
a20229 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
d20233 1
a20233 1
return nlist ();
d20238 2
a20239 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_mld_nlist=yes
d20241 1
a20241 1
  ac_cv_lib_mld_nlist=no
d20243 1
a20243 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
d20245 5
a20249 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mld_nlist" >&5
$as_echo "$ac_cv_lib_mld_nlist" >&6; }
if test "x$ac_cv_lib_mld_nlist" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBMLD 1
a20251 1
  LIBS="-lmld $LIBS"
d20253 4
a20256 1
fi
d20258 2
a20259 7
    for ac_header in nlist.h sys/var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d20264 2
a20265 1
done
d20267 1
a20267 2
    case "$ac_cv_header_nlist_h" in
     yes)
d20269 3
a20271 1
$as_echo "#define NLIST_STRUCT 1" >>confdefs.h
d20273 1
a20273 8
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
$as_echo_n "checking for n_un in struct nlist... " >&6; }
if ${ntp_cv_struct_nlist_n_un+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d20275 2
a20276 1
		    #include <nlist.h>
d20278 1
a20278 3
int
main ()
{
d20280 3
a20282 2
		    struct nlist n;
		    n.n_un.n_name = 0;
d20284 1
d20286 10
a20295 7
  ;
  return 0;
}
	    ntp_cv_struct_nlist_n_un=yes
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_nlist_n_un=no
d20297 10
a20307 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d20310 4
a20313 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
    case "$ntp_cv_struct_nlist_n_un" in
     yes)
d20315 3
a20317 1
$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
a20318 3
    esac
    ;;
esac
d20320 2
a20321 8
for ac_header in sys/proc.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
d20323 2
a20324 4
"
if test "x$ac_cv_header_sys_proc_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PROC_H 1
d20327 1
a20329 1
done
a20331 5
for ac_header in sys/resource.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
d20333 19
a20351 4
"
if test "x$ac_cv_header_sys_resource_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_RESOURCE_H 1
d20353 6
a20358 1

d20360 3
d20364 1
a20364 1
done
d20366 1
a20367 8
for ac_header in sys/shm.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_IPC_H
# include <sys/ipc.h>
#endif
d20369 15
a20383 4
"
if test "x$ac_cv_header_sys_shm_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SHM_H 1
d20385 6
d20393 3
d20397 1
a20397 1
done
d20399 1
d20401 15
a20415 10
for ac_header in sys/timex.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "#if HAVE_SYS_TIME_H
# include <sys/time.h>
#endif

"
if test "x$ac_cv_header_sys_timex_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEX_H 1
d20417 6
d20425 3
d20429 1
a20429 1
done
d20431 1
d20433 17
a20449 11
for ac_header in resolv.h
do :
  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
d20451 2
a20452 4
"
if test "x$ac_cv_header_resolv_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RESOLV_H 1
d20455 21
d20477 9
a20486 1
done
d20489 3
a20491 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic volatile support" >&5
$as_echo_n "checking for basic volatile support... " >&6; }
if ${ntp_cv_c_volatile+:} false; then :
d20497 4
a20500 1

d20504 1
a20504 4

		volatile int x;


a20507 1
	ntp_cv_c_volatile=yes
d20510 3
a20512 2
  ntp_cv_c_volatile=no

d20517 2
a20518 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_c_volatile" >&5
$as_echo "$ntp_cv_c_volatile" >&6; }
case "$ntp_cv_c_volatile" in
 yes)
    ;;
 *)
d20520 3
a20522 8
$as_echo "#define volatile /**/" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
d20528 1
d20532 1
a20532 50
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

d20538 1
a20538 1
  ac_cv_c_const=yes
d20540 1
a20540 1
  ac_cv_c_const=no
d20543 1
d20545 8
a20552 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then
d20554 1
a20554 1
$as_echo "#define const /**/" >>confdefs.h
d20556 1
d20559 3
a20561 3
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :
d20564 1
a20564 2
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
d20567 8
a20574 5
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;

d20577 16
d20594 6
a20599 26
	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20601 1
d20603 9
a20611 2
	     #include <sys/param.h>

a20614 5
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif
d20616 2
d20623 22
a20644 2
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20646 10
a20655 2
#include <sys/types.h>
		#include <sys/param.h>
d20660 2
a20661 3
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif
d20668 1
a20668 1
  ac_cv_c_bigendian=yes
d20670 2
a20671 1
  ac_cv_c_bigendian=no
d20674 2
d20677 8
a20684 7
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
d20686 5
a20690 6
int
main ()
{
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif
d20692 1
a20692 7
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20694 10
a20703 1
#include <limits.h>
d20708 3
a20710 3
#ifndef _BIG_ENDIAN
		 not big endian
		#endif
d20717 1
a20717 1
  ac_cv_c_bigendian=yes
d20719 2
a20720 1
  ac_cv_c_bigendian=no
d20723 2
d20726 12
a20737 7
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20739 10
a20748 15
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;
d20753 4
a20756 1
return use_ascii (foo) == use_ebcdic (foo);
d20762 4
a20765 11
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
d20768 19
d20788 2
a20789 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20791 11
a20801 1
$ac_includes_default
d20806 2
a20807 8
	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;
d20813 2
a20814 2
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
d20816 2
a20817 1
  ac_cv_c_bigendian=yes
d20819 3
a20821 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d20823 2
d20826 5
a20830 23
    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)

$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h

     ;; #(
   *)
     as_fn_error $? "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
if ${ac_cv_type_signal+:} false; then :
d20833 2
a20834 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20836 10
a20845 2
#include <sys/types.h>
#include <signal.h>
d20850 4
a20853 1
return *(signal (0, 0)) (0) == 1;
d20859 1
a20859 1
  ac_cv_type_signal=int
d20861 2
a20862 1
  ac_cv_type_signal=void
a20864 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }
a20865 3
cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
_ACEOF
d20867 5
d20873 1
a20873 2
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
if test "x$ac_cv_type_off_t" = xyes; then :
d20875 2
a20876 5
else

cat >>confdefs.h <<_ACEOF
#define off_t long int
_ACEOF
a20877 1
fi
a20878 2
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :
d20880 7
d20889 5
a20893 3
cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF
d20895 3
a20897 1
fi
d20899 2
a20900 2
ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
if test "x$ac_cv_type_time_t" = xyes; then :
d20902 3
a20904 2
cat >>confdefs.h <<_ACEOF
#define HAVE_TIME_T 1
d20906 4
a20909 1

d20912 1
a20912 6
ac_fn_c_check_type "$LINENO" "long" "ac_cv_type_long" "$ac_includes_default"
if test "x$ac_cv_type_long" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG 1
_ACEOF
d20916 4
a20919 2
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :
d20921 1
a20921 3
cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF
d20923 1
d20925 5
a20929 9
fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
$as_echo_n "checking size of time_t... " >&6; }
if ${ac_cv_sizeof_time_t+:} false; then :
d20932 12
a20943 1
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
d20945 8
d20954 1
a20954 8
  if test "$ac_cv_type_time_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (time_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_time_t=0
   fi
d20956 1
d20959 9
a20967 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
$as_echo "$ac_cv_sizeof_time_t" >&6; }
d20969 3
a20971 13


cat >>confdefs.h <<_ACEOF
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
_ACEOF





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if ${ac_cv_struct_tm+:} false; then :
a20975 2
#include <sys/types.h>
#include <time.h>
d20977 1
d20981 3
a20983 3
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
d20989 1
a20989 1
  ac_cv_struct_tm=time.h
d20991 1
a20991 1
  ac_cv_struct_tm=sys/time.h
d20994 1
d20996 3
a20998 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then
d21000 1
a21000 1
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
d21004 3
a21006 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t" >&5
$as_echo_n "checking for u_int8_t... " >&6; }
if ${ntp_cv_type_u_int8_t+:} false; then :
d21012 1
a21012 4
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif

d21017 2
a21018 3
		u_int8_t len = 42;


d21024 1
a21024 1
  ntp_cv_type_u_int8_t=yes
d21026 1
a21026 2
  ntp_cv_type_u_int8_t=no

d21031 3
a21033 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int8_t" >&5
$as_echo "$ntp_cv_type_u_int8_t" >&6; }
case "$ntp_cv_type_u_int8_t" in
 yes)
d21035 1
a21035 1
$as_echo "#define HAVE_TYPE_U_INT8_T 1" >>confdefs.h
d21037 1
a21037 1
esac
d21039 3
a21041 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t" >&5
$as_echo_n "checking for u_int64_t... " >&6; }
if ${ntp_cv_type_u_int64_t+:} false; then :
d21047 9
a21055 4
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif

d21059 1
a21059 4

		u_int64_t len = 42;


d21065 1
a21065 1
  ntp_cv_type_u_int64_t=yes
d21067 1
a21067 2
  ntp_cv_type_u_int64_t=no

a21069 1

d21071 3
a21073 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int64_t" >&5
$as_echo "$ntp_cv_type_u_int64_t" >&6; }
case "$ntp_cv_type_u_int64_t" in
 yes)
d21075 1
a21075 1
$as_echo "#define HAVE_TYPE_U_INT64_T 1" >>confdefs.h
d21077 1
a21077 1
esac
d21079 3
a21081 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
$as_echo_n "checking for a fallback value for HZ... " >&6; }
if ${ntp_cv_default_hz+:} false; then :
d21084 2
d21087 20
a21106 9
	ntp_cv_default_hz=100
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_default_hz=1024
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_default_hz=256
	    ;;
	esac
d21108 1
d21111 17
a21127 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
$as_echo "$ntp_cv_default_hz" >&6; }
d21130 1
a21130 1
#define DEFAULT_HZ $ntp_cv_default_hz
d21134 6
a21139 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
if ${ntp_cv_override_hz+:} false; then :
d21142 9
d21152 11
a21162 18
	ntp_cv_override_hz=no
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_override_hz=yes
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-freebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-sunos4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-kfreebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	esac
d21164 14
a21178 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
$as_echo "$ntp_cv_override_hz" >&6; }
case "$ntp_cv_override_hz" in
 yes)
d21180 4
a21183 1
$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
d21185 1
a21185 1
esac
d21188 1
d21190 3
a21192 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
$as_echo_n "checking for struct rt_msghdr... " >&6; }
if ${ntp_cv_struct_rt_msghdr+:} false; then :
d21197 1
a21197 6

		#include <sys/types.h>
		#include <sys/socket.h>
		#include <net/if.h>
		#include <net/route.h>

d21201 2
a21202 3

		struct rt_msghdr p;

d21209 1
a21209 1
  ntp_cv_struct_rt_msghdr=yes
d21211 1
a21211 2
  ntp_cv_struct_rt_msghdr=no

d21214 5
d21221 7
a21227 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
$as_echo_n "checking for struct rtattr... " >&6; }
if ${ntp_cv_rtattr+:} false; then :
d21230 1
a21230 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d21232 11
a21242 3
		#include <stddef.h>
		#include <sys/socket.h>
		#include <linux/rtnetlink.h>
d21244 3
a21246 3
int
main ()
{
a21247 1
		struct rtattr p;
d21250 2
a21251 3
  ;
  return 0;
}
d21253 10
a21262 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rtattr=yes
d21264 1
a21264 1
  ntp_cv_rtattr=no
d21266 10
a21276 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21279 2
a21280 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
$as_echo "$ntp_cv_rtattr" >&6; }
a21281 2
case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
 *yes*)
a21282 1
$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
d21284 3
a21286 2
    case "$ntp_cv_rtattr" in
     yes)
a21287 1
$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
d21289 10
a21298 2
    esac
esac
a21299 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
  $as_echo_n "(cached) " >&6
d21301 16
a21316 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d21318 3
a21320 1
		#include <signal.h>
a21321 3
int
main ()
{
a21322 2
		struct sigaction act;
		act.sa_sigaction = 0;
d21324 2
d21327 2
a21328 3
  ;
  return 0;
}
d21330 1
a21330 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_sigaction_has_sa_sigaction=yes
else
  ntp_cv_struct_sigaction_has_sa_sigaction=no
a21332 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21334 13
a21346 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
 yes)
d21348 8
a21355 1
$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
d21357 1
d21359 3
a21361 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
$as_echo_n "checking for struct ppsclockev... " >&6; }
if ${ntp_cv_struct_ppsclockev+:} false; then :
d21366 1
a21367 24
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TERMIOS_H
		# include <sys/termios.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_PPSCLOCK_H
		# include <sys/ppsclock.h>
		#endif

int
main ()
{

		extern struct ppsclockev *pce;
		return pce->serial;


  ;
  return 0;
}
d21369 3
a21371 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ppsclockev=yes
d21373 3
a21375 1
  ntp_cv_struct_ppsclockev=no
d21378 5
a21382 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a21383 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
case "$ntp_cv_struct_ppsclockev" in
 yes)
d21385 1
a21385 1
$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
d21387 1
a21387 1
esac
a21388 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
if ${ntp_cv_sockaddr_storage+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d21390 17
a21406 9
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif
d21408 7
d21418 1
a21418 4

		struct sockaddr_storage n;


d21423 9
a21431 5
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_sockaddr_storage=yes
else
  ntp_cv_sockaddr_storage=no

d21433 4
a21436 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d21438 2
a21439 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
$as_echo "$ntp_cv_sockaddr_storage" >&6; }
case "$ntp_cv_sockaddr_storage" in
 yes)

$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h

esac
a21440 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_family" >&5
$as_echo_n "checking for sockaddr_storage.ss_family... " >&6; }
if ${ntp_cv_have_ss_family+:} false; then :
  $as_echo_n "(cached) " >&6
d21442 10
a21451 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d21453 1
a21453 9
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif
d21455 9
a21463 3
int
main ()
{
d21465 2
a21466 2
		struct sockaddr_storage s;
		s.ss_family = 1;
d21468 8
a21475 4

  ;
  return 0;
}
a21476 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have_ss_family=yes
else
  ntp_cv_have_ss_family=no
d21479 9
a21487 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21489 8
a21496 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_family" >&5
$as_echo "$ntp_cv_have_ss_family" >&6; }
a21497 6
case "$ntp_cv_have_ss_family" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
if ${ntp_cv_have___ss_family+:} false; then :
  $as_echo_n "(cached) " >&6
d21499 5
a21503 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d21505 1
a21505 11

		    #ifdef HAVE_SYS_TYPES_H
		    # include <sys/types.h>
		    #endif
		    #ifdef HAVE_SYS_SOCKET_H
		    # include <sys/socket.h>
		    #endif
		    #ifdef HAVE_NETINET_IN_H
		    # include <netinet/in.h>
		    #endif

d21509 1
a21509 5

		    struct sockaddr_storage s;
		    s.__ss_family = 1;


d21514 5
a21518 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have___ss_family=yes
d21520 8
a21527 1
  ntp_cv_have___ss_family=no
d21530 11
a21540 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21543 2
a21544 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
$as_echo "$ntp_cv_have___ss_family" >&6; }
    case "$ntp_cv_have___ss_family" in
     yes)
d21546 6
a21551 1
$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
a21552 2
    esac
esac
d21554 21
d21576 2
d21579 6
a21584 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_len" >&5
$as_echo_n "checking for sockaddr_storage.ss_len... " >&6; }
if ${ntp_cv_have_ss_len+:} false; then :
d21587 3
a21589 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d21592 7
a21598 10
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif

d21602 1
a21602 5

		struct sockaddr_storage s;
		s.ss_len = 1;


d21607 2
a21608 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have_ss_len=yes
d21610 5
a21614 2
  ntp_cv_have_ss_len=no

d21616 5
a21620 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21622 2
a21624 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_len" >&5
$as_echo "$ntp_cv_have_ss_len" >&6; }
d21626 9
a21634 31
case "$ntp_cv_have_ss_len" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_len" >&5
$as_echo_n "checking for sockaddr_storage.__ss_len... " >&6; }
if ${ntp_cv_have___ss_len+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_SYS_TYPES_H
		    # include <sys/types.h>
		    #endif
		    #ifdef HAVE_SYS_SOCKET_H
		    # include <sys/socket.h>
		    #endif
		    #ifdef HAVE_NETINET_IN_H
		    # include <netinet/in.h>
		    #endif

int
main ()
{

		    struct sockaddr_storage s;
		    s.__ss_len = 1;


  ;
  return 0;
}
a21635 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have___ss_len=yes
else
  ntp_cv_have___ss_len=no
d21638 1
a21638 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21640 5
a21644 9
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_len" >&5
$as_echo "$ntp_cv_have___ss_len" >&6; }
    case "$ntp_cv_have___ss_len" in
     yes)

$as_echo "#define HAVE___SS_LEN_IN_SS 1" >>confdefs.h

    esac
d21647 6
a21652 8


#
# Look for in_port_t.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
$as_echo_n "checking for in_port_t... " >&6; }
if ${isc_cv_have_in_port_t+:} false; then :
d21655 3
a21657 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d21659 7
a21665 4

		#include <sys/types.h>
		#include <netinet/in.h>

a21669 4
		in_port_t port = 25;
		return (0);


d21675 1
a21675 1
  isc_cv_have_in_port_t=yes
d21677 5
a21681 1
  isc_cv_have_in_port_t=no
a21683 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21686 5
a21690 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
$as_echo "$isc_cv_have_in_port_t" >&6; }
case "$isc_cv_have_in_port_t" in
 no)
d21692 3
a21694 1
$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
a21695 1
esac
d21697 7
a21703 9
case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
  *yes*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
$as_echo_n "checking for struct snd_size... " >&6; }
if ${ntp_cv_struct_snd_size+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d21705 2
a21706 6
		    #ifdef HAVE_MACHINE_SOUNDCARD_H
		    # include <machine/soundcard.h>
		    #endif
		    #ifdef HAVE_SYS_SOUNDCARD_H
		    # include <sys/soundcard.h>
		    #endif
d21708 2
a21709 3
int
main ()
{
d21711 1
a21711 2
		    extern struct snd_size *ss;
		    return ss->rec_size;
d21713 5
d21719 9
a21727 3
  ;
  return 0;
}
a21728 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_snd_size=yes
else
  ntp_cv_struct_snd_size=no
d21731 11
a21741 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21744 1
a21744 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
$as_echo "$ntp_cv_struct_snd_size" >&6; }
    case "$ntp_cv_struct_snd_size" in
     yes)
a21745 1
$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
d21747 9
a21755 2
    esac
esac
d21757 7
a21763 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
$as_echo_n "checking struct clockinfo for hz... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
d21766 3
a21768 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d21771 7
a21777 2
		#include <sys/time.h>

d21781 1
a21781 5

		extern struct clockinfo *pc;
		return pc->hz;


d21786 2
a21787 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_clockinfo_has_hz=yes
d21789 11
a21799 2
  ntp_cv_struct_clockinfo_has_hz=no

a21800 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d21802 4
a21805 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
d21808 1
a21808 1
$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
d21810 1
d21813 3
a21815 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
d21818 2
a21819 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d21822 7
a21828 2
		#include <sys/time.h>

d21832 1
a21832 5

		extern struct clockinfo *pc;
		return pc->tickadj;


d21837 18
a21854 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_clockinfo_has_hz=yes
d21856 4
a21859 2
  ntp_cv_struct_clockinfo_has_hz=no

d21861 5
a21865 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a21867 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)
d21869 2
a21870 3
$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h

esac
a21871 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
$as_echo_n "checking for struct timespec... " >&6; }
if ${ntp_cv_struct_timespec+:} false; then :
  $as_echo_n "(cached) " >&6
a21872 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d21874 1
a21874 10
		#include <sys/time.h>
		/* Under SunOS, timespec is in sys/timepps.h,
		   which needs errno.h and FRAC */
		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif
		#ifdef HAVE_SYS_TIMEPPS_H
		# define FRAC 4294967296
		# include <sys/timepps.h>
		#endif
d21876 1
a21876 3
int
main ()
{
d21878 2
a21879 1
		struct timespec n;
a21880 7

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_timespec=yes
a21881 1
  ntp_cv_struct_timespec=no
d21883 1
a21883 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a21885 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
$as_echo "$ntp_cv_struct_timespec" >&6; }
case "$ntp_cv_struct_timespec" in
 yes)
d21887 12
a21898 1
$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
d21900 1
d21902 27
d21930 9
a21938 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
$as_echo_n "checking for struct ntptimeval... " >&6; }
if ${ntp_cv_struct_ntptimeval+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d21940 2
a21941 2
		#include <sys/time.h>
		#include <sys/timex.h>
d21943 29
a21971 3
int
main ()
{
d21973 7
a21979 1
		struct ntptimeval n;
d21981 2
d21984 7
a21990 3
  ;
  return 0;
}
a21991 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ntptimeval=yes
else
  ntp_cv_struct_ntptimeval=no
d21994 13
a22006 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d22009 15
a22023 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
case "$ntp_cv_struct_ntptimeval" in
 yes)
d22025 2
a22026 1
$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
d22028 1
d22030 9
d22040 2
a22041 15
ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
	#ifdef HAVE_SYS_TIME_H
	#include <sys/time.h>
	#else
	# ifdef HAVE_TIME_H
	#  include <time.h>
	# endif
	#endif
	#ifdef HAVE_SYS_TIMEX_H
	# include <sys/timex.h>
	#else
	# ifdef HAVE_TIMEX_H
	#  include <timex.h>
	# endif
	#endif
d22043 14
d22058 2
a22059 2
"
if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
d22061 10
a22070 2
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
d22073 10
d22085 1
d22087 7
a22094 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if ${ac_cv_c_inline+:} false; then :
  $as_echo_n "(cached) " >&6
a22095 9
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif
d22097 4
a22100 3
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
a22101 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
d22104 10
d22115 1
a22115 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }
d22117 8
a22124 11
case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
a22125 2
    ;;
esac
d22127 2
d22130 9
a22138 4
case "$ac_cv_c_inline" in
 '')
    ;;
 *)
d22140 2
a22141 1
$as_echo "#define HAVE_INLINE 1" >>confdefs.h
d22143 7
d22151 2
a22152 1
esac
d22154 67
a22220 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
$as_echo_n "checking whether char is unsigned... " >&6; }
if ${ac_cv_c_char_unsigned+:} false; then :
d22223 2
a22224 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d22226 21
a22246 1
$ac_includes_default
a22249 2
static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0
d22256 1
a22256 1
  ac_cv_c_char_unsigned=no
d22258 1
a22258 1
  ac_cv_c_char_unsigned=yes
d22261 1
a22261 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
$as_echo "$ac_cv_c_char_unsigned" >&6; }
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
d22264 2
a22265 10
		# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
$as_echo_n "checking size of signed char... " >&6; }
if ${ac_cv_sizeof_signed_char+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :
d22267 1
a22267 10
else
  if test "$ac_cv_type_signed_char" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (signed char)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_signed_char=0
   fi
fi
d22269 8
a22276 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
$as_echo "$ac_cv_sizeof_signed_char" >&6; }
d22278 2
d22281 1
d22283 2
a22284 3
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
_ACEOF
d22286 11
d22298 2
a22299 2
ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
if test "x$ac_cv_type_s_char" = xyes; then :
d22301 3
a22303 2
cat >>confdefs.h <<_ACEOF
#define HAVE_S_CHAR 1
d22305 6
d22312 6
d22321 3
a22323 7
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
d22326 9
a22334 1
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
d22336 10
d22347 1
a22347 8
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
d22349 1
d22352 3
a22354 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }
d22356 1
d22358 1
d22360 2
a22361 4
cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF

d22363 3
a22365 7
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
d22368 2
a22369 1
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
d22371 1
a22371 10
else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi
d22373 5
a22377 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }
d22379 3
d22383 1
d22385 3
a22387 2
cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
d22389 6
d22396 5
d22402 1
a22403 3
case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
 *yes)
    # We have a typedef for s_char.  Might as well believe it...
d22405 1
a22405 2
 no0no)
    # We have signed chars, can't say 'signed char', no s_char typedef.
d22407 1
a22407 1
$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
d22409 3
a22411 21
    ;;
 no1no)
    # We have signed chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 yes0no)
    # We have unsigned chars, can't say 'signed char', no s_char typedef.
    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
    ;;
 yes1no)
    # We have unsigned chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
if ${ac_cv_type_uid_t+:} false; then :
d22416 10
a22425 2
#include <sys/types.h>

d22427 2
a22428 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "uid_t" >/dev/null 2>&1; then :
  ac_cv_type_uid_t=yes
d22430 1
a22430 1
  ac_cv_type_uid_t=no
d22432 1
a22432 2
rm -f conftest*

d22434 7
a22440 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; }
if test $ac_cv_type_uid_t = no; then
d22442 3
a22444 20
$as_echo "#define uid_t int" >>confdefs.h


$as_echo "#define gid_t int" >>confdefs.h

fi


case "$host" in
 *-*-aix[456]*)
	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
	# IBM pulls its thumbs out long enough to implement clock_settime,
	# this conditional will need to change.  Maybe use AC_TRY_RUN
	# instead to try to set the time to itself and check errno.
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
$as_echo_n "checking for library containing clock_gettime... " >&6; }
if ${ac_cv_search_clock_gettime+:} false; then :
d22447 1
a22447 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d22449 12
a22460 6

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
a22461 1
char clock_gettime ();
d22465 1
a22465 1
return clock_gettime ();
d22470 4
a22473 9
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_clock_gettime=$ac_res
d22475 1
a22475 4
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_clock_gettime+:} false; then :
  break
d22477 7
a22483 2
done
if ${ac_cv_search_clock_gettime+:} false; then :
d22485 4
d22490 10
a22499 10
  ac_cv_search_clock_gettime=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
$as_echo "$ac_cv_search_clock_gettime" >&6; }
ac_res=$ac_cv_search_clock_gettime
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d22501 8
d22510 1
a22510 10

    for ac_func in clock_gettime clock_settime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

d22512 6
a22517 3
done

    ;;
a22518 18
for ac_func in daemon
do :
  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
if test "x$ac_cv_func_daemon" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DAEMON 1
_ACEOF

fi
done

for ac_func in finite
do :
  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
if test "x$ac_cv_func_finite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FINITE 1
_ACEOF
d22520 4
d22525 1
a22525 15
  for ac_func in isfinite
do :
  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
if test "x$ac_cv_func_isfinite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ISFINITE 1
_ACEOF

else

	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
$as_echo_n "checking for isfinite with <math.h>... " >&6; }
	    _libs=$LIBS
	    LIBS="$LIBS -lm"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d22528 6
a22533 1
			#include <math.h>
d22538 1
a22538 5

			float f = 0.0;
			isfinite(f);


d22543 2
a22544 2
if ac_fn_c_try_link "$LINENO"; then :
  ans=yes
d22546 14
a22559 1
  ans=no
d22561 4
a22564 9
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    LIBS=$_libs
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
	    case "$ans" in
	     yes)
		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
d22566 1
a22566 1
	    esac
d22569 1
a22569 2
fi
done
d22572 1
a22572 2
fi
done
d22575 1
a22575 8
for ac_func in getbootfile getclock getdtablesize
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a22576 2
fi
done
d22578 1
a22579 5
# Check whether --enable-getifaddrs was given.
if test "${enable_getifaddrs+set}" = set; then :
  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
else
  want_getifaddrs="yes"
d22581 1
a22581 1
fi
d22584 1
a22584 21
case $want_getifaddrs in
 yes|glibc)
    #
    # Do we have getifaddrs() ?
    #
    case $host in
     *-*linux*)
	# Some recent versions of glibc support getifaddrs() which does not
	# provide AF_INET6 addresses while the function provided by the USAGI
	# project handles the AF_INET6 case correctly.  We need to avoid
	# using the former but prefer the latter unless overridden by
	# --enable-getifaddrs=glibc.
	case "$want_getifaddrs" in
	 glibc)
	    for ac_func in getifaddrs
do :
  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF
d22586 2
a22587 2
fi
done
d22589 1
a22589 13
	    ;;
	 *)
	    save_LIBS="$LIBS"
	    LIBS="-L/usr/local/v6/lib $LIBS"
	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs in -linet6" >&5
$as_echo_n "checking for getifaddrs in -linet6... " >&6; }
if ${ac_cv_lib_inet6_getifaddrs+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-linet6  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a22590 30
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getifaddrs ();
int
main ()
{
return getifaddrs ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_inet6_getifaddrs=yes
else
  ac_cv_lib_inet6_getifaddrs=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getifaddrs" >&5
$as_echo "$ac_cv_lib_inet6_getifaddrs" >&6; }
if test "x$ac_cv_lib_inet6_getifaddrs" = xyes; then :
  ans=yes
else
  ans=no
d22592 1
a22592 1
fi
d22594 4
a22597 4
	    case "$ans" in
	     yes)
		LIBS="$LIBS -linet6"
		$as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
a22598 9
		;;
	     *)
		LIBS=${save_LIBS}
		;;
	    esac
	    ;;
	esac
	;;
    esac
d22600 10
a22609 8
 *)
    for ac_func in getifaddrs
do :
  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF
d22611 1
a22611 2
fi
done
a22612 2
    ;;
esac
d22614 1
a22614 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
if ${ntp_cv_getsockname_socklen_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
a22615 5
    getsockname_socklen_type_found=no
    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d22617 1
a22617 6
			#ifdef HAVE_SYS_TYPES_H
			# include <sys/types.h>
			#endif
			#ifdef HAVE_SYS_SOCKET_H
			# include <sys/socket.h>
			#endif
a22618 3
int
main ()
{
d22620 1
a22620 3
			extern
			getsockname(int, $getsockname_arg2,
				$ntp_cv_getsockname_socklen_type *);
d22623 1
a22623 16
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  getsockname_socklen_type_found=yes ; break 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	done
    done
    case "$getsockname_socklen_type_found" in
     no)
	ntp_cv_getsockname_socklen_type='socklen_t'
    esac
    { getsockname_arg2=; unset getsockname_arg2;}
    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
d22626 1
a22626 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
a22627 3
cat >>confdefs.h <<_ACEOF
#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
_ACEOF
d22629 1
a22630 8
for ac_func in getuid getrusage hstrerror
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d22632 1
a22632 2
fi
done
a22633 2
ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
if test "x$ac_cv_func_gettimeofday" = xyes; then :
d22635 1
a22635 1
else
a22636 5
case "$host" in
  *-*-mpeix*) ac_cv_func_gettimeofday=yes
    ;;
esac
fi
d22638 1
a22639 13
#
# Check for if_nametoindex() for IPv6 scoped addresses support
#
case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
$as_echo_n "checking for library containing if_nametoindex... " >&6; }
if ${ac_cv_search_if_nametoindex+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d22641 1
a22641 32
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char if_nametoindex ();
int
main ()
{
return if_nametoindex ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' ipv6; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_if_nametoindex=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_if_nametoindex+:} false; then :
  break
fi
done
if ${ac_cv_search_if_nametoindex+:} false; then :
a22642 11
else
  ac_cv_search_if_nametoindex=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
$as_echo "$ac_cv_search_if_nametoindex" >&6; }
ac_res=$ac_cv_search_if_nametoindex
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d22644 1
a22644 1
fi
a22645 8
esac
for ac_func in if_nametoindex
do :
  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
if test "x$ac_cv_func_if_nametoindex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_IF_NAMETOINDEX 1
_ACEOF
d22647 1
a22647 2
fi
done
d22649 2
a22650 2
case "$ac_cv_func_if_nametoindex" in
 yes)
d22652 1
a22652 1
$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
a22653 1
esac
d22655 1
a22655 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
$as_echo_n "checking for library containing inet_ntop... " >&6; }
if ${ac_cv_search_inet_ntop+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d22657 2
a22658 32
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_ntop ();
int
main ()
{
return inet_ntop ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_ntop=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_ntop+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_ntop+:} false; then :
d22660 1
a22660 11
else
  ac_cv_search_inet_ntop=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
$as_echo "$ac_cv_search_inet_ntop" >&6; }
ac_res=$ac_cv_search_inet_ntop
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d22662 4
a22665 1
fi
d22667 1
a22667 2
ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
if test "x$ac_cv_func_inet_ntop" = xyes; then :
a22668 1
else
d22670 1
a22670 1
$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
a22671 1
fi
d22673 1
a22673 2
ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
if test "x$ac_cv_func_inet_pton" = xyes; then :
a22674 1
else
d22676 1
a22676 1
$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
a22677 1
fi
d22679 1
a22680 9
case "$ac_cv_header_kvm_h" in
 yes)
    for ac_func in kvm_open
do :
  ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
if test "x$ac_cv_func_kvm_open" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_KVM_OPEN 1
_ACEOF
d22682 1
a22682 2
fi
done
a22683 2
    ;;
esac
d22685 1
a22685 8
for ac_func in memcpy memmove memset
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a22686 2
fi
done
d22688 1
a22688 11
case "$host" in
 *-*-sco3.2v5.0.*)
    # Just stubs.  Idiots.
    ;;
 *) for ac_func in mkstemp
do :
  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
if test "x$ac_cv_func_mkstemp" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MKSTEMP 1
_ACEOF
a22689 2
fi
done
d22691 1
a22691 9
    ;;
esac
for ac_func in mktime
do :
  ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
if test "x$ac_cv_func_mktime" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MKTIME 1
_ACEOF
a22692 2
fi
done
d22694 20
a22713 29
case "$host" in
 *-*-aix[456]*)
    # Just a stub.  Idiots.
    ;;
 *-*-irix[45]*)
    # Just a stub in "old" Irix.  Idiots.
    ;;
 *-*-*linux*)
    # there, but more trouble than it is worth for now (resolver problems)
    ;;
 *-*-qnx*)
    # Apparently there but not working in QNX.  Idiots?
    ;;
 *-*-sco3.2v5.0.*)
    # Just a stub.  Idiots.
    ;;
 alpha*-dec-osf4*|alpha*-dec-osf5*)
    # mlockall is there, as a #define calling memlk via <sys/mman.h>
    # Not easy to test for - cheat.
    for ac_func in memlk
do :
  ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
if test "x$ac_cv_func_memlk" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MEMLK 1
_ACEOF
 ac_cv_func_mlockall=yes
fi
done
a22714 7
    for ac_func in mlockall
do :
  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MLOCKALL 1
_ACEOF
d22716 1
a22716 2
fi
done
a22717 8
    ;;
 *) for ac_func in mlockall
do :
  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MLOCKALL 1
_ACEOF
d22719 1
a22719 2
fi
done
a22720 10
    ;;
esac
for ac_func in nice nlist
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d22722 1
a22722 2
fi
done
a22723 12
case "$host" in
 *-*-solaris2.6)
    # Broken...
    ;;
 *) for ac_func in ntp_adjtime ntp_gettime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d22725 1
a22725 2
fi
done
a22726 10
    ;;
esac
for ac_func in plock pututline pututxline readlink recvmsg rtprio
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d22728 1
a22728 2
fi
done
a22729 14
case "$host" in
 *-*-aix[456]*)
    # Just a stub in AIX 4.  Idiots.
    ;;
 *-*-solaris2.5*)
    # Just stubs in solaris2.5.  Idiots.
    ;;
 *) for ac_func in sched_setscheduler
do :
  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_SETSCHEDULER 1
_ACEOF
d22731 1
a22731 2
fi
done
d22734 3
a22736 9
esac
for ac_func in setlinebuf setpgid setpriority setsid
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a22737 2
fi
done
d22739 1
a22739 7
for ac_func in setrlimit
do :
  ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
if test "x$ac_cv_func_setrlimit" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETRLIMIT 1
_ACEOF
a22740 2
fi
done
d22742 1
a22742 7
for ac_func in settimeofday
do :
  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
if test "x$ac_cv_func_settimeofday" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETTIMEOFDAY 1
_ACEOF
a22743 1
else
d22745 1
a22745 6
case "$host" in
  *-*-mpeix*) ac_cv_func_settimeofday=yes
    ;;
esac
fi
done
a22746 8
for ac_func in setvbuf sigaction sigvec sigset sigsuspend stime strchr
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d22748 1
a22748 2
fi
done
a22749 8
for ac_func in sysconf sysctl snprintf strdup strerror strstr timegm
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d22751 1
a22751 2
fi
done
a22752 21
case "$host" in
 *-*-aix[456]*)
    # Just stubs.  Idiots.
    ;;
 *-*-netbsd1*)
    # Just stubs.  Idiots.
    ;;
 *-*-netbsdelf1*)
    # Just stubs.  Idiots.
    ;;
 *-*-openbsd*)
    # Just stubs.  Idiots.
    ;;
 *) for ac_func in timer_create timer_settime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d22754 1
a22754 2
fi
done
a22755 10
    ;;
esac
for ac_func in umask uname updwtmp updwtmpx vsnprintf vsprintf
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
d22757 1
a22757 2
fi
done
d22760 1
a22760 1
###
a22761 8
# http://bugs.ntp.org/737
case "$ac_cv_func_recvmsg" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
$as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
if ${ntp_cv_struct_iovec_help+:} false; then :
  $as_echo_n "(cached) " >&6
else
d22763 1
a22763 4
	    compiled=no
	    for ntp_cv_struct_iovec_help in '0' '1'; do
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a22764 9
			    #ifdef HAVE_SYS_TYPES_H
			    # include <sys/types.h>
			    #endif
			    #ifdef HAVE_SYS_SOCKET_H
			    # include <sys/socket.h>
			    #endif
			    #if $ntp_cv_struct_iovec_help
			    # include <sys/uio.h>
			    #endif
d22766 1
a22766 3
int
main ()
{
a22767 10
			    void foo(void) {
				ssize_t x;
				int s = 0;
				struct iovec iov;
				struct msghdr mh;
				int flags = 0;

				mh.msg_iov = &iov;
				x = recvmsg(s, &mh, flags);
			    }
d22769 1
a22770 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  compiled=yes ; break 1
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    done
	    case "$compiled" in
	     no)
		ntp_cv_struct_iovec_help=0
	    esac
	    { compiled=; unset compiled;}
d22772 1
a22773 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
$as_echo "$ntp_cv_struct_iovec_help" >&6; }
    case "$ntp_cv_struct_iovec_help" in
     1)
d22775 1
a22775 1
$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
d22777 1
a22777 1
    esac
d22781 1
a22781 1
 *-*-sunos4*)
d22783 1
a22783 1
$as_echo "#define SPRINTF_CHAR 1" >>confdefs.h
d22788 3
a22790 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
d22793 15
a22807 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d22809 20
a22828 1
		#include <sys/time.h>
d22830 4
a22833 14
int
main ()
{

		gettimeofday(0, 0);
		settimeofday(0, 0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_func_Xettimeofday_nargs=2
d22835 7
a22841 2
  ntp_cv_func_Xettimeofday_nargs=1

d22843 7
a22849 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d22851 26
d22878 6
a22883 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
case "$ntp_cv_func_Xettimeofday_nargs" in
 1)

$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h

d22886 3
a22888 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
if ${ntp_cv_func_setpgrp_nargs+:} false; then :
a22890 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d22892 31
a22922 6
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_UNISTD_H
		# include <unistd.h>
		#endif
d22924 5
a22928 3
int
main ()
{
d22930 1
a22930 1
		setpgrp(0, 0);
d22932 1
d22934 4
a22937 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_func_setpgrp_nargs=2
d22939 8
a22946 2
  ntp_cv_func_setpgrp_nargs=0

d22948 7
a22954 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d22956 13
d22970 7
a22976 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
$as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
case "$ntp_cv_func_setpgrp_nargs" in
 0)
d22978 31
a23008 1
$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
d23010 20
d23032 3
a23034 7

$as_echo "#define QSORT_USES_VOID_P 1" >>confdefs.h


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
$as_echo_n "checking if we need to declare 'errno'... " >&6; }
if ${ntp_cv_decl_errno+:} false; then :
d23039 4
a23043 14
		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif

int
main ()
{

		errno = 0;


  ;
  return 0;
}
d23045 3
a23047 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_decl_errno=no
d23049 3
a23051 1
  ntp_cv_decl_errno=yes
d23054 2
a23055 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d23057 44
d23102 3
a23104 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
$as_echo "$ntp_cv_decl_errno" >&6; }
case "$ntp_cv_decl_errno" in
d23106 2
a23107 3

$as_echo "#define DECL_ERRNO 1" >>confdefs.h

d23110 3
a23112 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
$as_echo_n "checking if we may declare 'h_errno'... " >&6; }
if ${ntp_cv_decl_h_errno+:} false; then :
d23117 4
d23122 8
a23129 13
		#include <sys/types.h>
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif
		#ifdef HAVE_ARPA_NAMESER_H
		# include <arpa/nameser.h>
		#endif
		#ifdef HAVE_NETDB_H
		# include <netdb.h>
		#endif
		#ifdef HAVE_RESOLV_H
		# include <resolv.h>
		#endif
d23131 3
a23133 3
int
main ()
{
d23135 11
a23145 1
		extern int h_errno;
a23146 4

  ;
  return 0;
}
d23148 3
a23150 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_decl_h_errno=yes
d23152 3
a23154 1
  ntp_cv_decl_h_errno=no
d23157 2
a23158 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d23160 54
d23215 3
a23217 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
$as_echo "$ntp_cv_decl_h_errno" >&6; }
case "$ntp_cv_decl_h_errno" in
d23219 3
d23223 58
a23280 2
$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h

d23283 5
a23287 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
if ${ntp_cv_decl_syscall+:} false; then :
d23292 4
a23296 18
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_UNISTD_H
		# include <unistd.h>
		#endif

int
main ()
{

		extern int syscall (int, ...);


  ;
  return 0;
}
	ntp_cv_decl_syscall=yes
d23298 7
a23304 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_decl_syscall=no
d23307 10
a23316 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d23318 12
d23331 3
a23333 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
$as_echo "$ntp_cv_decl_syscall" >&6; }
case "$ntp_cv_decl_syscall" in
d23335 3
d23339 22
a23360 2
$as_echo "#define DECL_SYSCALL 1" >>confdefs.h

d23363 6
d23370 13
a23382 4
 *-*-aix4.3.*)

$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
		# Needed for XLC under AIX 4.3.2
d23384 10
a23393 1
 *-*-mpeix*)
d23395 8
a23402 1
$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
d23404 1
d23406 1
a23406 1
$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
d23408 3
d23412 8
a23419 1
$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
d23421 1
d23423 1
a23423 1
$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
d23425 3
d23429 7
a23435 1
$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
d23437 1
a23438 1
$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
d23440 3
d23444 2
a23445 1
$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d23447 7
a23453 2
    ;;
 *-*-osf[45]*)
d23455 1
a23455 1
$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
d23457 2
d23460 1
a23460 1
$as_echo "#define DECL_STIME_1 1" >>confdefs.h
d23462 3
a23464 2
    ;;
 *-*-qnx*)
d23466 7
a23472 1
$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
d23474 1
a23474 2
    ;;
 *-*-riscos4*)
d23476 2
a23477 1
$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
d23479 1
d23481 3
a23483 1
$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
d23485 17
d23503 14
a23516 1
$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
d23518 14
d23533 13
a23545 1
$as_echo "#define DECL_IPC_0 1" >>confdefs.h
d23547 1
d23549 18
a23566 1
$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
d23568 3
d23572 2
a23573 1
$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
d23575 19
d23595 6
a23600 1
$as_echo "#define DECL_RENAME_0 1" >>confdefs.h
d23602 7
d23610 1
a23610 1
$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
d23612 2
d23615 1
a23615 1
$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
d23617 4
d23622 11
a23632 1
$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
d23634 8
d23643 3
a23645 1
$as_echo "#define DECL_STDIO_0 1" >>confdefs.h
d23647 17
d23665 1
a23665 1
$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
d23667 2
d23670 26
a23695 1
$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
d23698 10
a23707 1
$as_echo "#define DECL_TIME_0 1" >>confdefs.h
d23709 8
d23718 4
a23721 1
$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d23723 1
d23725 4
a23728 1
$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
d23730 10
a23739 2
    ;;
 *-*-solaris2*)
d23741 8
a23748 1
$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
d23750 3
d23754 1
a23754 1
$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
d23756 1
a23756 2
    case "$host" in
     *-*-solaris2.4)
d23758 3
a23760 1
$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d23762 10
a23771 4
	;;
    esac
    ;;
 *-*-sunos4*)
d23773 8
a23780 1
$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
d23782 5
d23788 1
a23788 1
$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
d23790 3
a23793 1
$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
d23795 1
d23797 1
a23797 1
$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
d23799 6
d23806 1
a23806 1
$as_echo "#define DECL_IPC_0 1" >>confdefs.h
d23808 1
d23810 1
a23810 1
$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
d23812 1
d23814 4
a23817 1
$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
d23819 1
d23821 8
a23828 1
$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
d23830 3
d23834 1
a23834 1
$as_echo "#define DECL_RENAME_0 1" >>confdefs.h
d23837 8
a23844 1
$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
d23846 2
d23849 11
a23859 1
$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
d23861 6
d23868 6
a23873 1
$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
d23875 1
d23877 3
a23879 1
$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
d23881 8
a23888 4
    case "`basename $ac_cv_prog_CC`" in
     acc*) ;;
     *)
$as_echo "#define DECL_STDIO_0 1" >>confdefs.h
d23890 1
a23890 2
	;;
    esac
d23892 3
a23894 1
$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
d23897 1
a23897 1
$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
d23899 9
d23909 2
a23910 1
$as_echo "#define DECL_TIME_0 1" >>confdefs.h
d23912 1
d23914 8
a23921 1
$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d23923 9
d23933 2
a23934 1
$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
d23936 1
d23938 8
a23945 1
$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
d23947 4
d23952 1
a23952 1
$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
d23954 4
d23959 3
a23961 1
 *-*-ultrix4*)
d23963 8
a23970 1
$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
d23972 2
d23975 12
a23986 1
$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
d23988 5
d23994 1
a23994 1
$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
d23996 5
d24002 10
a24011 1
$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
d24013 16
d24030 8
a24037 1
$as_echo "#define DECL_IPC_0 1" >>confdefs.h
d24039 1
d24041 2
a24042 1
$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
d24044 1
d24046 3
a24048 1
$as_echo "#define DECL_NLIST_0 1" >>confdefs.h
d24050 8
d24059 2
a24060 1
$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
d24062 1
d24064 3
a24066 1
$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
d24068 8
d24077 2
a24078 1
$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
d24080 1
d24082 3
a24084 1
$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
d24086 8
d24095 2
a24096 1
$as_echo "#define DECL_STIME_0 1" >>confdefs.h
d24098 1
d24100 3
a24102 1
$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
d24104 8
d24113 2
a24114 3
$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h

    ;;
d24116 2
d24119 1
a24119 2
case "$host" in
 *-*-sco3.2*)
d24121 3
a24123 1
$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
d24125 8
a24132 2
    ;;
esac
d24134 2
a24135 2
case "$host" in
 *-*-hpux[567]*)
d24137 1
a24137 1
$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
d24139 3
a24141 1
esac
d24143 5
a24147 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
$as_echo_n "checking if we will open the broadcast socket... " >&6; }
if ${ntp_cv_var_open_bcast_socket+:} false; then :
  $as_echo_n "(cached) " >&6
d24149 2
d24152 2
a24153 6
	ans=yes
	case "$host" in
	 *-*-domainos)
	    ans=no
	esac
	ntp_cv_var_open_bcast_socket=$ans
d24155 1
d24158 3
a24160 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
$as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
case "$ntp_cv_var_open_bcast_socket" in
 yes)

$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
d24162 9
d24172 1
d24174 1
a24174 2
case "$host" in
 *-*-hpux*)
d24176 1
a24176 1
$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
d24178 7
d24187 6
a24192 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
$as_echo_n "checking if process groups are set with -pid... " >&6; }
if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
  $as_echo_n "(cached) " >&6
d24194 8
d24203 2
a24204 21
	case "$host" in
	 *-*-hpux[567]*)
	    ans=no
	    ;;
	 *-*-hpux*)
	    ans=yes
	    ;;
	 *-*-*linux*)
	    ans=yes
	    ;;
	 *-*-sunos3*)
	    ans=yes
	    ;;
	 *-*-ultrix2*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_arg_setpgrp_negpid=$ans
d24206 1
d24209 2
a24210 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
$as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
case "$ntp_cv_arg_setpgrp_negpid" in
 yes)
d24212 5
a24216 8
$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
  $as_echo_n "(cached) " >&6
d24218 2
d24221 2
a24222 31
	case "$host" in
	 *-*-bsdi23*)
	    ans=yes
	    ;;
	 *-*-freebsd*)
	    ans=yes
	    ;;
	# NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
	# while later versions will fail a ioctl(TIOCSCTTY, 0) call in
	# some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
	# in $host may be followed by "aout", "ecoff", or "elf".
	 *-*-netbsd*a-z3.0-8*|*-*-netbsd*a-z0-2.*|*-*-netbsd*a-z3.99.0-7)
	    ans=yes
	    ;;
	 *-*-netbsd3.0-8*|*-*-netbsd0-2.*|*-*-netbsd3.99.0-7)
	    ans=yes
	    ;;
	 *-*-openbsd*)
	    ans=yes
	    ;;
	 *-*-osf*)
	    ans=yes
	    ;;
	 *-*-darwin*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_func_ctty_for_f_setown=$ans
d24224 1
d24227 2
a24228 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
case "$ntp_cv_func_ctty_for_f_setown" in
 yes)
d24230 5
a24234 8
$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
if ${ntp_cv_os_routeupdates+:} false; then :
  $as_echo_n "(cached) " >&6
d24236 1
a24236 12

	case "$host" in
	 *-*-netbsd*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_os_routeupdates=$ans


a24237 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
$as_echo "$ntp_cv_os_routeupdates" >&6; }
case "$ntp_cv_os_routeupdates" in
 yes)
d24239 2
a24240 18
$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
if ${ntp_cv_os_wildcardreuse+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-*linux*)
	    ans=yes
	    ;;
	 *) ans=no
	    ;;
	esac
	ntp_cv_os_wildcardreuse=$ans
d24242 1
d24245 2
a24246 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
case "$ntp_cv_os_wildcardreuse" in
 yes)
d24248 6
a24253 42
$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
ntp_warning='GRONK'
ans=none
case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
 yes*)
    ntp_warning=''
    ans='clock_settime()'
    ;;
 noyes*)
    ntp_warning='But clock_settime() would be better (if we had it)'
    ans='settimeofday()'
    ;;
 nonoyes)
    ntp_warning='Which is the worst of the three'
    ans='stime()'
    ;;
 *)
    case "$build" in
     $host)
	ntp_warning='Which leaves us with nothing to use!'
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ntp_warning" in
 '')
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
$as_echo_n "checking for SIGIO... " >&6; }
if ${ntp_cv_hdr_def_sigio+:} false; then :
  $as_echo_n "(cached) " >&6
d24257 7
a24263 6

	    #include <signal.h>

	    #ifdef SIGIO
		yes
	    #endif
d24268 1
a24268 1
  ntp_cv_hdr_def_sigio=yes
d24270 3
a24272 1
  ntp_cv_hdr_def_sigio=no
a24274 1
rm -f conftest*
d24276 4
d24282 2
a24283 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
$as_echo "$ntp_cv_hdr_def_sigio" >&6; }
d24285 5
a24289 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use signalled IO" >&5
$as_echo_n "checking if we want to use signalled IO... " >&6; }
if ${ntp_cv_var_signalled_io+:} false; then :
  $as_echo_n "(cached) " >&6
d24291 2
d24294 2
a24295 45
	ans=no
	case "$ntp_cv_hdr_def_sigio" in
	 yes)
	    ans=yes
	    case "$host" in
	     alpha*-dec-osf4*|alpha*-dec-osf5*)
		ans=no
		;;
	     *-convex-*)
		ans=no
		;;
	     *-dec-*)
		ans=no
		;;
	     *-pc-cygwin*)
		ans=no
		;;
	     *-sni-sysv*)
		ans=no
		;;
	     *-univel-sysv*)
		ans=no
		;;
	     *-*-irix6*)
		ans=no
		;;
	     *-*-freebsd*)
		ans=no
		;;
	     *-*-*linux*)
		ans=no
		;;
	     *-*-unicosmp*)
		ans=no
		;;
	     *-*-kfreebsd*)
		ans=no
		;;
	     m68k-*-mint*)
		ans=no
		;;
	    esac
	    ;;
	esac
	ntp_cv_var_signalled_io=$ans
d24297 1
d24300 2
a24301 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_signalled_io" >&5
$as_echo "$ntp_cv_var_signalled_io" >&6; }
case "$ntp_cv_var_signalled_io" in
 yes)
d24303 5
a24307 8
$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
$as_echo_n "checking for SIGPOLL... " >&6; }
if ${ntp_cv_hdr_def_sigpoll+:} false; then :
  $as_echo_n "(cached) " >&6
d24309 2
a24310 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24312 2
a24313 1
	    #include <signal.h>
d24315 1
a24315 10
	    #ifdef SIGPOLL
		yes
	    #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_hdr_def_sigpoll=yes
else
  ntp_cv_hdr_def_sigpoll=no
d24318 2
a24319 2
rm -f conftest*

d24321 7
a24328 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
d24330 2
a24331 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGSYS" >&5
$as_echo_n "checking for SIGSYS... " >&6; }
if ${ntp_cv_hdr_def_sigsys+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24333 1
a24333 1
	    #include <signal.h>
d24335 3
a24337 3
	    #ifdef SIGSYS
		yes
	    #endif
d24339 5
a24343 4
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_hdr_def_sigsys=yes
d24345 5
a24349 1
  ntp_cv_hdr_def_sigsys=no
d24351 2
a24352 2
fi
rm -f conftest*
d24354 1
d24357 6
a24362 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigsys" >&5
$as_echo "$ntp_cv_hdr_def_sigsys" >&6; }
d24364 5
a24368 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
if ${ntp_cv_var_use_udp_sigpoll+:} false; then :
  $as_echo_n "(cached) " >&6
d24370 2
d24373 2
a24374 52
	ans=no
	case "$ntp_cv_hdr_def_sigpoll" in
	 yes)
	    case "$host" in
	     mips-sgi-irix*)
		ans=no
		;;
	     vax-dec-bsd)
		ans=no
		;;
	     *-pc-cygwin*)
		ans=no
		;;
	     *-sni-sysv*)
		ans=no
		;;
	     *-*-aix[456]*)
		ans=no
		;;
	     *-*-hpux*)
		ans=no
		;;
	     *-*-*linux*)
		ans=no
		;;
	     *-*-osf*)
		ans=no
		;;
	     *-*-qnx*)
		ans=no
		;;
	     *-*-sunos*)
		ans=no
		;;
	     *-*-solaris*)
		ans=no
		;;
	     *-*-ultrix*)
		ans=no
		;;
	     *-*-unicosmp*)
		ans=no
		;;
	     *-*-kfreebsd*)
		ans=no
		;;
	     *) ans=yes
		;;
	    esac
	    ;;
	esac
	ntp_cv_var_use_udp_sigpoll=$ans
d24376 1
d24379 2
a24380 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_use_udp_sigpoll" >&5
$as_echo "$ntp_cv_var_use_udp_sigpoll" >&6; }
case "$ntp_cv_var_use_udp_sigpoll" in
 yes)
d24382 5
a24386 8
$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
if ${ntp_cv_var_use_tty_sigpoll+:} false; then :
  $as_echo_n "(cached) " >&6
d24388 1
a24388 52

	ans=no
	case "$ntp_cv_hdr_def_sigpoll" in
	 yes)
	    case "$host" in
	     mips-sgi-irix*)
		ans=no
		;;
	     vax-dec-bsd)
		ans=no
		;;
	     *-pc-cygwin*)
		ans=no
		;;
	     *-sni-sysv*)
		ans=no
		;;
	     *-*-aix[456]*)
		ans=no
		;;
	     *-*-hpux*)
		ans=no
		;;
	     *-*-*linux*)
		ans=no
		;;
	     *-*-osf*)
		ans=no
		;;
	     *-*-sunos*)
		ans=no
		;;
	     *-*-ultrix*)
		ans=no
		;;
	     *-*-qnx*)
		ans=no
		;;
	     *-*-unicosmp*)
		ans=no
		;;
	     *-*-kfreebsd*)
		ans=no
		;;
	     *) ans=yes
		;;
	    esac
	    ;;
	esac
	ntp_cv_var_use_tty_sigpoll=$ans


a24389 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_use_tty_sigpoll" >&5
$as_echo "$ntp_cv_var_use_tty_sigpoll" >&6; }
case "$ntp_cv_var_use_tty_sigpoll" in
 yes)

$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
d24391 2
d24394 2
d24397 1
a24397 2
case "$host" in
 *-*-aix*)
d24399 3
a24401 1
$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
d24403 5
a24407 6
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
if ${ntp_cv_var_min_rec_tickadj+:} false; then :
  $as_echo_n "(cached) " >&6
d24409 2
d24412 2
a24413 7
	ans=no
	case "$host" in
	 *-*-aix*)
	    ans=40
	    ;;
	esac
	ntp_cv_var_min_rec_tickadj=$ans
d24415 1
d24418 2
a24419 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
$as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
case "$ntp_cv_var_min_rec_tickadj" in
 ''|no)
    ;;
 *)
d24421 5
a24425 10
cat >>confdefs.h <<_ACEOF
#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
_ACEOF

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
if ${ntp_cv_no_parenb_ignpar+:} false; then :
  $as_echo_n "(cached) " >&6
d24427 2
d24430 2
a24431 18
	ans=no
	case "$host" in
	 i?86-*-*linux*)
	    ans=yes
	    ;;
	 mips-sgi-irix*)
	    ans=yes
	    ;;
	 i?86-*-freebsd[123].*)
	    ;;
	 i?86-*-freebsd*)
	    ans=yes
	    ;;
	 *-*-unicosmp*)
	    ans=yes
	    ;;
	esac
	ntp_cv_no_parenb_ignpar=$ans
d24433 1
d24436 2
a24437 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
$as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
case "$ntp_cv_no_parenb_ignpar" in
 yes)
a24438 1
$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
d24440 6
a24445 7
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including ntpd debugging code" >&5
$as_echo_n "checking if we're including ntpd debugging code... " >&6; }
# Check whether --enable-debugging was given.
if test "${enable_debugging+set}" = set; then :
  enableval=$enable_debugging; ntp_ok=$enableval
d24447 6
a24452 2
  ntp_ok=yes

d24455 2
a24456 2
case "$ntp_ok" in
 yes)
d24458 1
a24458 1
$as_echo "#define DEBUG 1" >>confdefs.h
d24460 1
a24460 1
esac
d24463 4
d24468 5
a24472 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
$as_echo_n "checking if we're including processing time debugging code... " >&6; }
# Check whether --enable-debug-timing was given.
if test "${enable_debug_timing+set}" = set; then :
  enableval=$enable_debug_timing; ntp_ok=$enableval
d24474 1
a24474 2
  ntp_ok=no

d24477 2
a24478 2
case "$ntp_ok" in
 yes)
d24480 1
a24480 1
$as_echo "#define DEBUG_TIMING 1" >>confdefs.h
d24482 1
a24482 1
esac
d24486 5
a24490 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
# Check whether --enable-dst-minutes was given.
if test "${enable_dst_minutes+set}" = set; then :
  enableval=$enable_dst_minutes; ans=$enableval
d24492 1
a24492 2
  ans=60

d24495 2
d24498 1
a24498 3
cat >>confdefs.h <<_ACEOF
#define DSTMINUTES $ans
_ACEOF
d24500 3
a24502 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d24504 5
a24508 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
# Check whether --enable-ignore-dns-errors was given.
if test "${enable_ignore_dns_errors+set}" = set; then :
  enableval=$enable_ignore_dns_errors; ans=$enableval
d24510 1
a24510 2
  ans=no

d24513 5
a24517 2
case "$ans" in
 yes)
d24519 1
a24519 1
$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
d24521 3
a24523 3
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d24525 5
a24529 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will use the deferred DNS lookup path" >&5
$as_echo_n "checking if ntpd will use the deferred DNS lookup path... " >&6; }
# Check whether --enable-force-defer-DNS was given.
if test "${enable_force_defer_DNS+set}" = set; then :
  enableval=$enable_force_defer_DNS; ans=$enableval
d24531 7
a24537 2
  ans=no

a24539 4
case "$ans" in
 yes)

$as_echo "#define FORCE_DEFER_DNS 1" >>confdefs.h
d24541 2
a24542 3
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d24544 1
a24544 9
case "$ac_cv_header_sys_sio_h" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
$as_echo_n "checking sys/sio.h for TIOCDCDTIMESTAMP... " >&6; }
if ${ntp_cv_hdr_def_tiocdcdtimestamp+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24546 3
a24548 1
		#include <sys/sio.h>
d24550 5
a24554 8
		#ifdef TIOCDCDTIMESTAMP
		    yes
		#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_hdr_def_tiocdcdtimestamp=yes
d24556 2
a24557 1
  ntp_cv_hdr_def_tiocdcdtimestamp=no
d24559 2
a24560 2
fi
rm -f conftest*
d24562 1
d24565 2
a24566 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_tiocdcdtimestamp" >&5
$as_echo "$ntp_cv_hdr_def_tiocdcdtimestamp" >&6; }
esac
d24568 5
a24572 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the tty_clk line discipline/streams module" >&5
$as_echo_n "checking if we have the tty_clk line discipline/streams module... " >&6; }
if ${ntp_cv_tty_clk+:} false; then :
  $as_echo_n "(cached) " >&6
d24574 2
d24577 2
a24578 8
	case "$ac_cv_header_sys_clkdefs_h$ntp_cv_hdr_def_tiocdcdtimestamp" in
	 *yes*)
	    ntp_cv_tty_clk=yes
	    ;;
	 *)
	    ntp_cv_tty_clk=no
	    ;;
	esac
d24580 1
d24583 2
a24584 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tty_clk" >&5
$as_echo "$ntp_cv_tty_clk" >&6; }
case "$ntp_cv_tty_clk" in
 yes)
d24586 8
a24593 1
$as_echo "#define TTYCLK 1" >>confdefs.h
d24595 3
d24599 2
d24602 1
a24602 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ppsclock streams module" >&5
$as_echo_n "checking for the ppsclock streams module... " >&6; }
case "$ntp_cv_struct_ppsclockev" in
 yes)
    ans=yes
d24604 3
a24606 1
$as_echo "#define PPS 1" >>confdefs.h
d24608 11
a24618 3
    ;;
 *)
    ans=no
d24620 1
a24620 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d24622 2
a24623 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
$as_echo_n "checking for multicast IP support... " >&6; }
if ${ntp_cv_multicast+:} false; then :
  $as_echo_n "(cached) " >&6
else
d24625 1
a24625 7
	ntp_cv_multicast=no
	case "$host" in
	 i386-sequent-sysv4)
	    ;;
	 *)
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24627 3
a24629 3
			#ifdef HAVE_NETINET_IN_H
			#include <netinet/in.h>
			#endif
d24631 8
a24638 3
int
main ()
{
d24640 2
a24641 13
			struct ip_mreq ipmr;
			ipmr.imr_interface.s_addr = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_multicast=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	esac
d24643 1
d24646 2
a24647 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
$as_echo "$ntp_cv_multicast" >&6; }
case "$ntp_cv_multicast" in
 yes)
d24649 5
a24653 6
$as_echo "#define MCAST 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
  $as_echo_n "(cached) " >&6
d24655 8
d24664 2
a24665 7
	    case "$host" in
	     *-*-netbsd*|*-*-*linux*)
		ntp_cv_typeof_ip_multicast_loop=u_int
		;;
	     *)
		ntp_cv_typeof_ip_multicast_loop=u_char
	    esac
d24667 1
d24670 6
a24675 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
a24676 3
cat >>confdefs.h <<_ACEOF
#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
_ACEOF
d24678 6
a24683 6
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
if ${ntp_cv_var_ntp_syscalls+:} false; then :
  $as_echo_n "(cached) " >&6
d24685 9
a24694 11
	ntp_cv_var_ntp_syscalls=no
	case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
	 yesyes*)
	    ntp_cv_var_ntp_syscalls=libc
	    ;;
	 *yes)
	    ntp_cv_var_ntp_syscalls=inline
	    ;;
	 *)
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24696 2
a24697 1
		    #include <sys/syscall.h>
d24699 1
a24699 3
		    #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
			yes
		    #endif
d24701 7
a24707 4
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_var_ntp_syscalls=kernel
d24709 7
a24716 1
rm -f conftest*
d24718 2
a24719 2
	    ;;
	 esac
d24721 1
d24724 2
a24725 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
$as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
case "$ntp_cv_var_ntp_syscalls" in
 libc)
d24727 8
a24734 1
$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
d24736 2
a24737 2
    ;;
 kernel)
d24739 1
a24739 1
$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
d24741 3
a24743 2
    ;;
esac
d24745 5
a24749 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
if ${ntp_cv_var_sta_fll+:} false; then :
  $as_echo_n "(cached) " >&6
d24751 8
a24758 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24760 1
a24760 1
	    #include <sys/timex.h>
d24762 7
a24768 3
	    #ifdef STA_FLL
		yes
	    #endif
d24770 5
a24774 4
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_var_sta_fll=yes
d24776 2
a24777 1
  ntp_cv_var_sta_fll=no
d24779 2
a24780 2
fi
rm -f conftest*
d24782 1
d24785 2
a24786 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
$as_echo "$ntp_cv_var_sta_fll" >&6; }
d24788 5
a24792 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
$as_echo_n "checking if we have kernel PLL support... " >&6; }
if ${ntp_cv_var_kernel_pll+:} false; then :
  $as_echo_n "(cached) " >&6
d24794 6
a24799 9
  	case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
	 *no*)
	    ntp_cv_var_kernel_pll=no
	    ;;
	 *) ntp_cv_var_kernel_pll=yes
	    ;;
	esac


a24800 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
$as_echo "$ntp_cv_var_kernel_pll" >&6; }
case "$ntp_cv_var_kernel_pll" in
 yes)
d24802 2
a24803 1
$as_echo "#define KERNEL_PLL 1" >>confdefs.h
d24805 8
d24815 9
a24823 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
if ${ntp_cv_size_returned_in_buffer+:} false; then :
  $as_echo_n "(cached) " >&6
d24825 2
d24828 3
a24830 13
	ans=no
	case "$host" in
	 *-fujitsu-uxp*)
	    ans=yes
	    ;;
	 *-ncr-sysv4*)
	    ans=yes
	    ;;
	 *-univel-sysv*)
	    ans=yes
	    ;;
	esac
	ntp_cv_size_returned_in_buffer=$ans
d24832 1
d24835 6
a24840 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
$as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
case "$ntp_cv_size_returned_in_buffer" in
 yes)

$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h

d24843 5
a24847 18
# Check for ioctls TIOCGPPSEV
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
$as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
case "$ac_cv_header_termios_h" in
 yes)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <termios.h>

	    #ifdef TIOCGPPSEV
		yes
	    #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_ok=yes
d24849 1
a24849 2
  ntp_ok=no

a24850 1
rm -f conftest*
d24852 3
a24854 7
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)
d24856 1
a24856 1
$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
d24858 1
a24858 1
esac
d24861 5
d24867 5
a24871 18
# Check for ioctls TIOCSPPS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
$as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
case "$ac_cv_header_termios_h" in
 yes)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <termios.h>

	    #ifdef TIOCSPPS
		yes
	    #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_ok=yes
d24873 1
a24873 2
  ntp_ok=no

a24874 1
rm -f conftest*
d24876 3
a24878 7
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)
d24880 1
a24880 1
$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
d24882 1
a24882 1
esac
d24885 5
d24891 8
a24898 7
# Check for ioctls CIOGETEV
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
$as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
case "$ac_cv_header_sys_ppsclock_h" in
 yes)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24900 3
a24902 1
	    #include <sys/ppsclock.h>
d24904 1
a24904 10
	    #ifdef CIOGETEV
		yes
	    #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_ok=yes
else
  ntp_ok=no
d24907 5
a24911 5
rm -f conftest*

    ;;
 *)
    ntp_ok=no
a24913 2
case "$ntp_ok" in
 yes)
d24915 16
a24930 1
$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
d24932 1
a24932 1
esac
d24935 5
d24941 23
a24963 1
# ATOM/PPSAPI stuff.
d24965 4
a24968 1
ntp_atom_ok=yes
d24970 8
a24977 1
# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
d24979 3
a24981 3
# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
# The PPSAPI needs struct timespec.
# The PPSAPI also needs a timepps header.
d24983 1
a24983 4
case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
 inlineyes)
    case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
     *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
d24985 6
a24990 8
$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h

	ntp_jupiter_ok=yes
	ntp_oncore_ok=yes
	ntp_parse_ok=yes
	ntp_ripe_ncc_ok=yes
	;;
    esac
d24994 7
a25000 4
# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
if test "x$ac_cv_header_linux_serial_h" = xyes; then :

d25003 3
d25007 1
a25007 6
case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
  yesyes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d25009 8
a25016 16
	    #include <sys/time.h>
	    typedef int u_int;
	    #include <sys/ppsclock.h>
	    #include <linux/serial.h>

	    #ifdef TIOCGSERIAL
	    #ifdef TIOCSSERIAL
	    #ifdef ASYNC_PPS_CD_POS
	    #ifdef ASYNC_PPS_CD_NEG
	    #ifdef CIOGETEV
		 yes
	    #endif
	    #endif
	    #endif
	    #endif
	    #endif
d25018 5
a25022 4
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_ok=yes
d25024 8
a25031 1
  ntp_ok=no
d25034 1
a25034 3
rm -f conftest*

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
d25036 3
a25038 3
    ;;
  *)
    ntp_ok=no
a25040 2
case "$ntp_ok" in
 yes)
d25042 8
a25049 1
$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
d25051 3
a25053 1
esac
d25055 1
a25055 13
# Check for SHMEM_STATUS support
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
$as_echo_n "checking SHMEM_STATUS support... " >&6; }
case "$ac_cv_header_sys_mman_h" in
 yes)
    ntp_ok=yes
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)
d25057 1
a25057 3
$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h

esac
d25060 5
d25066 5
a25070 8
ntp_refclock=no

# HPUX only, and by explicit request
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
# Check whether --enable-BANCOMM was given.
if test "${enable_BANCOMM+set}" = set; then :
  enableval=$enable_BANCOMM; ntp_ok=$enableval
d25072 1
a25072 2
  ntp_ok=no

d25076 1
d25079 1
a25079 1
$as_echo "#define CLOCK_BANC 1" >>confdefs.h
d25084 4
a25087 4
case "$ntp_ok$host" in
 yes*-*-hpux*) ;;
 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
d25090 5
a25094 6
#HPUX only, and only by explicit request
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
# Check whether --enable-GPSVME was given.
if test "${enable_GPSVME+set}" = set; then :
  enableval=$enable_GPSVME; ntp_ok=$enableval
d25096 1
a25096 2
  ntp_ok=no

d25100 1
d25103 1
a25103 1
$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
d25108 4
a25111 4
case "$ntp_ok$host" in
 yes*-*-hpux*) ;;
 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
a25113 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
$as_echo_n "checking for PCL720 clock support... " >&6; }
case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
 yesyesyes)
a25114 1
$as_echo "#define CLOCK_PPS720 1" >>confdefs.h
d25116 6
d25123 7
a25129 3
    ;;
 *)
    ans=no
a25134 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
# Check whether --enable-all-clocks was given.
if test "${enable_all_clocks+set}" = set; then :
  enableval=$enable_all_clocks; ntp_eac=$enableval
else
  ntp_eac=yes
d25136 6
a25141 1
fi
a25142 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
$as_echo "$ntp_eac" >&6; }
a25143 12
# HMS: Should we also require ntp_parse_ok?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
$as_echo_n "checking if we have support for PARSE clocks... " >&6; }
case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
 yes*yes*)
    ntp_canparse=yes
    ;;
 *) ntp_canparse=no
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
$as_echo "$ntp_canparse" >&6; }
a25144 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
$as_echo_n "checking if we have support for audio clocks... " >&6; }
case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
 *yes*)
    ntp_canaudio=yes
a25145 1
$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
d25147 19
a25166 1
 *) ntp_canaudio=no ;;
d25168 24
a25191 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
$as_echo "$ntp_canaudio" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
 yesyes)
    ntp_canshm=yes
a25192 1
 *) ntp_canshm=no ;;
d25194 2
a25195 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
$as_echo "$ntp_canshm" >&6; }
d25197 2
a25198 8
# Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
$as_echo_n "checking for termios modem control... " >&6; }
if ${ntp_cv_modem_control+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d25200 3
a25202 25
		#ifdef HAVE_UNISTD_H
		# include <unistd.h>
		#endif
		#ifdef HAVE_TERMIOS_H
		# include <termios.h>
		#endif
		#ifdef HAVE_SYS_IOCTL_H
		# include <sys/ioctl.h>
		#endif

int
main ()
{

		int	dtr = TIOCM_DTR;

		ioctl(1, TIOCMBIS, (char *)&dtr);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_modem_control=yes
d25204 4
a25207 2
  ntp_cv_modem_control=no

a25208 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d25210 6
a25215 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
$as_echo "$ntp_cv_modem_control" >&6; }
case "$ntp_eac::$ntp_cv_modem_control" in
 yes::yes)
    ntp_enable_all_modem_control_clocks=yes
d25217 17
a25233 2
 *)
    ntp_enable_all_modem_control_clocks=no
d25236 2
d25239 6
a25244 6
# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
$as_echo_n "checking ACTS modem service... " >&6; }
# Check whether --enable-ACTS was given.
if test "${enable_ACTS+set}" = set; then :
  enableval=$enable_ACTS; ntp_ok=$enableval
d25246 1
a25246 2
  ntp_ok=$ntp_enable_all_modem_control_clocks

d25249 14
a25262 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25264 9
a25272 1
$as_echo "#define CLOCK_ACTS 1" >>confdefs.h
a25273 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25275 1
a25275 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
# Check whether --enable-ARBITER was given.
if test "${enable_ARBITER+set}" = set; then :
  enableval=$enable_ARBITER; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d25277 1
a25277 1
fi
d25279 19
a25297 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25299 2
a25300 1
$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
d25302 3
a25304 9
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
$as_echo_n "checking Arcron MSF receiver... " >&6; }
# Check whether --enable-ARCRON_MSF was given.
if test "${enable_ARCRON_MSF+set}" = set; then :
  enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
d25306 1
a25306 2
  ntp_ok=$ntp_eac

d25309 5
a25313 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25315 1
a25315 1
$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
d25317 5
a25321 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a25322 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
# Check whether --enable-AS2201 was given.
if test "${enable_AS2201+set}" = set; then :
  enableval=$enable_AS2201; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d25324 13
a25336 1
fi
a25337 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
a25338 1
$as_echo "#define CLOCK_AS2201 1" >>confdefs.h
a25339 11
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
$as_echo_n "checking ATOM PPS interface... " >&6; }
# Check whether --enable-ATOM was given.
if test "${enable_ATOM+set}" = set; then :
  enableval=$enable_ATOM; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d25341 11
d25353 2
a25355 5
case "$ntp_atom_ok" in
 no) ntp_ok=no ;;
esac
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25357 27
a25383 1
$as_echo "#define CLOCK_ATOM 1" >>confdefs.h
a25385 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25387 1
a25387 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
# Check whether --enable-CHRONOLOG was given.
if test "${enable_CHRONOLOG+set}" = set; then :
  enableval=$enable_CHRONOLOG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d25389 6
a25394 1
fi
d25396 3
a25398 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25400 1
a25400 1
$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
d25403 2
a25404 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a25405 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
$as_echo_n "checking CHU modem/decoder... " >&6; }
# Check whether --enable-CHU was given.
if test "${enable_CHU+set}" = set; then :
  enableval=$enable_CHU; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
a25406 1
fi
d25408 11
a25418 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25420 1
a25420 1
$as_echo "#define CLOCK_CHU 1" >>confdefs.h
d25423 2
a25424 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
ntp_refclock_chu=$ntp_ok
d25426 10
a25435 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
$as_echo_n "checking CHU audio/decoder... " >&6; }
# Check whether --enable-AUDIO-CHU was given.
if test "${enable_AUDIO_CHU+set}" = set; then :
  enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
else

	case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac
d25437 1
d25440 2
d25443 2
a25444 1
if test "$ntp_ok" = "yes"; then
d25446 1
a25446 1
$as_echo "#define AUDIO_CHU 1" >>confdefs.h
d25448 5
a25452 7
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
# We used to check for sunos/solaris target...
case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
d25455 20
a25474 15
# Not under HP-UX
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
$as_echo_n "checking Datum Programmable Time System... " >&6; }
# Check whether --enable-DATUM was given.
if test "${enable_DATUM+set}" = set; then :
  enableval=$enable_DATUM; ntp_ok=$enableval
else

	case "$ac_cv_header_termios_h" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *) ntp_ok=no
	    ;;
	esac
d25476 4
a25482 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25484 2
a25485 1
$as_echo "#define CLOCK_DATUM 1" >>confdefs.h
d25487 6
a25492 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25494 1
a25494 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
# Check whether --enable-DUMBCLOCK was given.
if test "${enable_DUMBCLOCK+set}" = set; then :
  enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d25496 1
a25496 1
fi
a25497 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25499 2
a25500 1
$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
d25502 1
a25502 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25504 30
a25533 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
$as_echo_n "checking Forum Graphic GPS... " >&6; }
# Check whether --enable-FG was given.
if test "${enable_FG+set}" = set; then :
  enableval=$enable_FG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d25535 5
a25541 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25543 2
a25544 1
$as_echo "#define CLOCK_FG 1" >>confdefs.h
d25546 2
a25547 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25549 1
a25549 8
# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
# Check whether --enable-HEATH was given.
if test "${enable_HEATH+set}" = set; then :
  enableval=$enable_HEATH; ntp_ok=$enableval
else
  ntp_ok=$ntp_enable_all_modem_control_clocks
d25551 5
a25555 1
fi
d25557 65
a25621 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25623 1
a25623 1
$as_echo "#define CLOCK_HEATH 1" >>confdefs.h
d25625 48
d25674 15
a25688 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
$as_echo_n "checking for hopf serial clock device... " >&6; }
# Check whether --enable-HOPFSERIAL was given.
if test "${enable_HOPFSERIAL+set}" = set; then :
  enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
d25690 7
a25696 2
  ntp_ok=$ntp_eac

d25698 4
d25703 1
a25703 4
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
d25705 47
d25753 8
a25760 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25762 7
a25768 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
$as_echo_n "checking for hopf PCI clock 6039... " >&6; }
# Check whether --enable-HOPFPCI was given.
if test "${enable_HOPFPCI+set}" = set; then :
  enableval=$enable_HOPFPCI; ntp_ok=$enableval
d25770 42
a25811 1
  ntp_ok=$ntp_eac
d25813 2
a25814 1
fi
a25815 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
a25816 1
$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
a25817 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25819 2
a25820 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
$as_echo_n "checking HP 58503A GPS receiver... " >&6; }
# Check whether --enable-HPGPS was given.
if test "${enable_HPGPS+set}" = set; then :
  enableval=$enable_HPGPS; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d25822 1
a25822 1
fi
d25824 26
a25849 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25851 3
a25853 1
$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
a25855 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a25856 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
$as_echo_n "checking IRIG audio decoder... " >&6; }
# Check whether --enable-IRIG was given.
if test "${enable_IRIG+set}" = set; then :
  enableval=$enable_IRIG; ntp_ok=$enableval
else
d25858 11
a25868 4
	case "$ntp_eac$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac
d25871 2
a25872 1
fi
d25874 1
a25874 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25876 1
a25876 1
$as_echo "#define CLOCK_IRIG 1" >>confdefs.h
d25878 45
a25922 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canaudio" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d25925 3
a25927 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
$as_echo_n "checking for JJY receiver... " >&6; }
# Check whether --enable-JJY was given.
if test "${enable_JJY+set}" = set; then :
  enableval=$enable_JJY; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
a25930 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25932 4
a25935 1
$as_echo "#define CLOCK_JJY 1" >>confdefs.h
d25937 8
a25944 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25946 9
a25954 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
# Check whether --enable-JUPITER was given.
if test "${enable_JUPITER+set}" = set; then :
  enableval=$enable_JUPITER; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi
d25956 4
a25959 2
case "$ntp_jupiter_ok" in
 no) ntp_ok=no ;;
a25960 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d25962 33
a25994 1
$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
a25995 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d25997 4
a26000 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
# Check whether --enable-LEITCH was given.
if test "${enable_LEITCH+set}" = set; then :
  enableval=$enable_LEITCH; ntp_ok=$enableval
d26002 20
a26021 1
  ntp_ok=$ntp_eac
a26022 1
fi
d26024 23
a26046 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26048 8
a26055 1
$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
d26057 6
d26064 8
a26071 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d26073 4
a26076 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
$as_echo_n "checking local clock reference... " >&6; }
# Check whether --enable-LOCAL-CLOCK was given.
if test "${enable_LOCAL_CLOCK+set}" = set; then :
  enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
d26078 11
a26088 2
  ntp_ok=$ntp_eac

d26090 7
a26097 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
a26098 1
$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
a26099 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d26101 2
d26104 3
a26106 6
# Not Ultrix
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
# Check whether --enable-MX4200 was given.
if test "${enable_MX4200+set}" = set; then :
  enableval=$enable_MX4200; ntp_ok=$enableval
d26108 1
a26108 10

	case "$ac_cv_var_ppsclock" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	    ;;
	esac

a26111 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26113 2
a26114 1
$as_echo "#define CLOCK_MX4200 1" >>confdefs.h
d26116 5
a26120 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d26123 10
a26132 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
$as_echo_n "checking for NeoClock4X receiver... " >&6; }
# Check whether --enable-NEOCLOCK4X was given.
if test "${enable_NEOCLOCK4X+set}" = set; then :
  enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
a26133 1
fi
d26135 2
a26136 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26138 3
a26140 11
$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
$as_echo_n "checking NMEA GPS receiver... " >&6; }
# Check whether --enable-NMEA was given.
if test "${enable_NMEA+set}" = set; then :
  enableval=$enable_NMEA; ntp_ok=$enableval
d26142 4
a26145 2
  ntp_ok=$ntp_eac

d26148 2
a26149 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26151 5
a26155 1
$as_echo "#define CLOCK_NMEA 1" >>confdefs.h
d26157 13
a26169 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a26170 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
# Check whether --enable-ONCORE was given.
if test "${enable_ONCORE+set}" = set; then :
  enableval=$enable_ONCORE; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
a26171 1
fi
d26173 5
a26177 5
case "$ntp_oncore_ok" in
 no) ntp_ok=no ;;
esac
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26179 3
a26181 12
$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
$as_echo_n "checking for Palisade clock... " >&6; }
# Check whether --enable-PALISADE was given.
if test "${enable_PALISADE+set}" = set; then :
  enableval=$enable_PALISADE; ntp_ok=$enableval
d26183 2
a26184 2
  ntp_ok=$ntp_enable_all_modem_control_clocks

a26186 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
a26187 1
$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
d26189 1
a26189 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d26191 6
a26196 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
$as_echo_n "checking Conrad parallel port radio clock... " >&6; }
# Check whether --enable-PCF was given.
if test "${enable_PCF+set}" = set; then :
  enableval=$enable_PCF; ntp_ok=$enableval
d26198 4
a26201 1
  ntp_ok=$ntp_eac
d26203 23
d26227 6
d26234 1
a26234 8
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_PCF 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a26235 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
# Check whether --enable-PST was given.
if test "${enable_PST+set}" = set; then :
  enableval=$enable_PST; ntp_ok=$enableval
a26236 1
  ntp_ok=$ntp_eac
d26238 1
a26238 6
fi

if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_PST 1" >>confdefs.h
a26240 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a26241 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
# Check whether --enable-RIPENCC was given.
if test "${enable_RIPENCC+set}" = set; then :
  enableval=$enable_RIPENCC; ntp_ok=$enableval
else
  ntp_ok=no
d26243 3
a26245 1
fi
d26247 6
a26252 3
# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
case "$ntp_ripe_ncc_ok" in
 no) ntp_ok=no ;;
a26253 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
a26254 1
$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
a26255 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d26257 2
a26258 8
# Danny Meyer says SHM compiles (with a few warnings) under Win32.
# For *IX, we need sys/ipc.h and sys/shm.h.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
# Check whether --enable-SHM was given.
if test "${enable_SHM+set}" = set; then :
  enableval=$enable_SHM; ntp_ok=$enableval
else
d26260 1
a26260 4
	case "$ntp_eac$ntp_canshm" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac
d26262 16
d26279 1
a26279 1
fi
d26281 3
a26283 4
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes

$as_echo "#define CLOCK_SHM 1" >>confdefs.h
a26285 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a26286 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
# Check whether --enable-SPECTRACOM was given.
if test "${enable_SPECTRACOM+set}" = set; then :
  enableval=$enable_SPECTRACOM; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d26288 2
a26289 1
fi
d26291 5
a26295 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26297 2
a26298 1
$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
d26300 22
a26321 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a26322 15
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
# Check whether --enable-TPRO was given.
if test "${enable_TPRO+set}" = set; then :
  enableval=$enable_TPRO; ntp_ok=$enableval
else

	case "$ac_cv_header_sys_tpro_h" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	    ;;
	esac
d26324 3
a26329 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26331 2
a26332 1
$as_echo "#define CLOCK_TPRO 1" >>confdefs.h
d26334 4
a26337 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ac_cv_header_sys_tpro" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d26340 2
d26343 6
a26348 16
# Not on a vax-dec-bsd
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
# Check whether --enable-TRUETIME was given.
if test "${enable_TRUETIME+set}" = set; then :
  enableval=$enable_TRUETIME; ntp_ok=$enableval
else

	case "$host" in
	 vax-dec-bsd)
	    ntp_ok=no
	    ;;
	 *)
	    ntp_ok=$ntp_eac
	    ;;
	esac
d26350 3
a26355 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26357 2
a26358 1
$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
d26360 4
a26363 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
a26365 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
# Check whether --enable-TT560 was given.
if test "${enable_TT560+set}" = set; then :
  enableval=$enable_TT560; ntp_ok=$enableval
else
  ntp_ok=no
d26367 2
a26368 1
fi
d26370 10
a26379 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26381 3
a26383 1
$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
a26385 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
a26386 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
# Check whether --enable-ULINK was given.
if test "${enable_ULINK+set}" = set; then :
  enableval=$enable_ULINK; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
d26388 2
a26389 1
fi
d26391 5
a26395 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
a26396 1
$as_echo "#define CLOCK_ULINK 1" >>confdefs.h
d26398 2
a26399 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d26401 44
a26444 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
$as_echo_n "checking WWV receiver... " >&6; }
# Check whether --enable-WWV was given.
if test "${enable_WWV+set}" = set; then :
  enableval=$enable_WWV; ntp_ok=$enableval
else

	case "$ntp_eac$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac
d26446 3
a26451 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26453 2
a26454 1
$as_echo "#define CLOCK_WWV 1" >>confdefs.h
d26456 4
a26459 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canaudio" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d26462 7
a26468 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
$as_echo_n "checking for Zyfer receiver... " >&6; }
# Check whether --enable-ZYFER was given.
if test "${enable_ZYFER+set}" = set; then :
  enableval=$enable_ZYFER; ntp_ok=$enableval
d26470 1
a26470 1
  ntp_ok=$ntp_eac
a26473 2
if test "$ntp_ok" = "yes"; then
    ntp_refclock=yes
d26475 2
a26476 1
$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
d26478 2
a26479 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
d26481 1
a26481 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
# Check whether --enable-parse-clocks was given.
if test "${enable_parse_clocks+set}" = set; then :
  enableval=$enable_parse_clocks; ntp_eapc=$enableval
else
d26483 1
a26483 6
	case "$ntp_eac" in
	 yes)	ntp_eapc=$ntp_canparse ;;
	 *)	ntp_eapc=no ;;
	esac
	# Delete the next line one of these days
	ntp_eapc=no
d26486 2
a26487 1
fi
d26489 3
a26491 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
$as_echo "$ntp_eapc" >&6; }

case "$ntp_eac$ntp_eapc$ntp_canparse" in
 noyes*)
    as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
d26493 2
a26494 2
 yesyesno)
    as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
d26496 1
d26499 3
a26501 11
ntp_libparse=no
ntp_parseutil=no
ntp_rawdcf=no

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
$as_echo_n "checking Diem Computime Radio Clock... " >&6; }
# Check whether --enable-COMPUTIME was given.
if test "${enable_COMPUTIME+set}" = set; then :
  enableval=$enable_COMPUTIME; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
a26504 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d26506 2
a26507 1
$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
d26509 4
a26512 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d26515 7
a26521 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
$as_echo_n "checking ELV/DCF7000 clock... " >&6; }
# Check whether --enable-DCF7000 was given.
if test "${enable_DCF7000+set}" = set; then :
  enableval=$enable_DCF7000; ntp_ok=$enableval
d26523 1
a26523 1
  ntp_ok=$ntp_eapc
a26526 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d26528 2
a26529 1
$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
d26531 4
a26534 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d26537 7
a26543 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
$as_echo_n "checking HOPF 6021 clock... " >&6; }
# Check whether --enable-HOPF6021 was given.
if test "${enable_HOPF6021+set}" = set; then :
  enableval=$enable_HOPF6021; ntp_ok=$enableval
d26545 1
a26545 1
  ntp_ok=$ntp_eapc
a26548 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d26550 2
a26551 1
$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
d26553 9
a26561 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d26564 4
a26567 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
$as_echo_n "checking Meinberg clocks... " >&6; }
# Check whether --enable-MEINBERG was given.
if test "${enable_MEINBERG+set}" = set; then :
  enableval=$enable_MEINBERG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
d26569 1
a26569 1
fi
a26570 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d26572 3
a26574 1
$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
a26575 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d26578 8
a26585 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
$as_echo_n "checking DCF77 raw time code... " >&6; }
# Check whether --enable-RAWDCF was given.
if test "${enable_RAWDCF+set}" = set; then :
  enableval=$enable_RAWDCF; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
d26589 1
a26589 5
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_parseutil=yes
    ntp_refclock=yes
    ntp_rawdcf=yes
a26590 1
$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
d26592 6
a26597 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d26600 3
a26602 6
case "$ntp_rawdcf" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
if ${ntp_cv_rawdcf_parity+:} false; then :
  $as_echo_n "(cached) " >&6
d26604 1
d26606 1
a26606 7
	    ans=no
	    case "$host" in
	     *-*-*linux*)
		ans=yes
		;;
	    esac
	    ntp_cv_rawdcf_parity=$ans
d26609 4
a26612 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
$as_echo "$ntp_cv_rawdcf_parity" >&6; }
    case "$ntp_cv_rawdcf_parity" in
     yes)
a26613 4
$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
 ;;
    esac
esac
d26615 7
a26621 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
$as_echo_n "checking RCC 8000 clock... " >&6; }
# Check whether --enable-RCC8000 was given.
if test "${enable_RCC8000+set}" = set; then :
  enableval=$enable_RCC8000; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
d26625 1
a26625 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d26627 7
a26633 1
$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
a26635 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
d26637 1
a26637 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
$as_echo_n "checking Schmid DCF77 clock... " >&6; }
# Check whether --enable-SCHMID was given.
if test "${enable_SCHMID+set}" = set; then :
  enableval=$enable_SCHMID; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
a26638 1
fi
d26640 2
a26641 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d26643 6
a26648 8
$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d26651 3
a26653 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
# Check whether --enable-TRIMTAIP was given.
if test "${enable_TRIMTAIP+set}" = set; then :
  enableval=$enable_TRIMTAIP; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
a26656 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d26658 2
a26659 1
$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
d26661 2
a26662 7
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
d26664 1
a26664 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
# Check whether --enable-TRIMTSIP was given.
if test "${enable_TRIMTSIP+set}" = set; then :
  enableval=$enable_TRIMTSIP; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
d26666 2
a26667 1
fi
d26669 2
a26670 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d26672 1
a26672 1
$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
a26673 6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
a26675 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
$as_echo_n "checking WHARTON 400A Series clock... " >&6; }
# Check whether --enable-WHARTON was given.
if test "${enable_WHARTON+set}" = set; then :
  enableval=$enable_WHARTON; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
d26677 7
a26683 7
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
a26685 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
d26687 1
a26687 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
$as_echo_n "checking VARITEXT clock... " >&6; }
# Check whether --enable-VARITEXT was given.
if test "${enable_VARITEXT+set}" = set; then :
  enableval=$enable_VARITEXT; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
a26688 1
fi
d26690 3
a26692 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
a26693 8
$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d26696 2
d26699 1
d26702 1
a26704 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
$as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
ans=no
case "$ntp_libparse" in
 yes)
    ans=yes
d26706 3
a26708 1
$as_echo "#define CLOCK_PARSE 1" >>confdefs.h
d26710 5
a26714 7
    LIBPARSE=../libparse/libparse.a
    MAKE_LIBPARSE=libparse.a
    # HMS: check_y2k trips the 34 year problem now...
    false && MAKE_CHECK_Y2K=check_y2k
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d26716 2
d26719 2
d26722 3
d26726 2
d26729 6
a26734 8


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
$as_echo_n "checking for openssl library directory... " >&6; }

# Check whether --with-openssl-libdir was given.
if test "${with_openssl_libdir+set}" = set; then :
  withval=$with_openssl_libdir; ans=$withval
d26736 1
d26738 2
a26739 4
	case "$build" in
	 $host) ans=yes ;;
	 *)     ans=no ;;
	esac
d26743 3
d26747 1
a26747 38
case "$ans" in
 no)
    ;;
 yes) # Look in:
    ans="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib /lib"
    ;;
 *) # Look where they said
    ;;
esac
case "$ans" in
 no)
    ;;
 *) # Look for libcrypto.a and libssl.a:
    for i in $ans no
    do
	case "$host" in
	 *-*-darwin*)
	    test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
	    ;;
	 *)
	    test -f $i/libcrypto.so -a -f $i/libssl.so && break
	    test -f $i/libcrypto.a -a -f $i/libssl.a && break
	    ;;
	esac
    done
    case "$i" in
     no)
	ans=no
	OPENSSL_LIB=
	;;
     *) ans=$i
	OPENSSL_LIB=$ans
	;;
    esac
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d26749 1
a26749 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
$as_echo_n "checking for openssl include directory... " >&6; }
d26751 4
a26754 4
# Check whether --with-openssl-incdir was given.
if test "${with_openssl_incdir+set}" = set; then :
  withval=$with_openssl_incdir; ans=$withval
else
a26755 4
	case "$build" in
	 $host) ans=yes ;;
	 *)     ans=no ;;
	esac
d26757 5
d26763 1
a26763 1
fi
a26764 24
case "$ans" in
 no)
    ;;
 yes) # look in:
    ans="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include"
    ;;
 *) # Look where they said
    ;;
esac
case "$ans" in
 no)
    ;;
 *) # look for openssl/opensslconf.h:
    for i in $ans no
    do
	test -f $i/openssl/opensslconf.h && break
    done
    case "$i" in
     no)
	ans=no
	OPENSSL_INC=
	;;
     *) ans=$i
	OPENSSL_INC=$ans
a26767 16
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
$as_echo_n "checking if we will use crypto... " >&6; }

# Check whether --with-crypto was given.
if test "${with_crypto+set}" = set; then :
  withval=$with_crypto; ans=$withval
else
  ans=yes

fi

case "$ans" in
a26769 7
 yes|openssl)
    if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
    then
	ans=no
    else
	ans=yes
    fi
a26770 26
ntp_openssl=$ans
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ntp_openssl" in
 yes)
    # We have OpenSSL inc/lib - use them.
    case "$OPENSSL_INC" in
     /usr/include)
	;;
     *)
	CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
	;;
    esac
    case "$OPENSSL_LIB" in
     /usr/lib)
	;;
     *)
	LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
	case "$need_dash_r" in
	 1)
	    LDFLAGS="$LDFLAGS -R$OPENSSL_LIB"
	esac
	;;
    esac
    LCRYPTO=-lcrypto
d26773 3
a26775 15
$as_echo "#define OPENSSL 1" >>confdefs.h

esac

#
# check for linking with -lcrypto failure, and try -lz -lcrypto.
# Helps m68k-atari-mint
#
case "$ntp_openssl" in
 yes)
    NTPO_SAVED_LIBS="$LIBS"
    LIBS="$NTPO_SAVED_LIBS $LCRYPTO"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with $LCRYPTO alone works" >&5
$as_echo_n "checking if linking with $LCRYPTO alone works... " >&6; }
if ${ntp_cv_bare_lcrypto+:} false; then :
d26778 2
a26779 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d26782 4
a26785 2
		    #include "openssl/err.h"
		    #include "openssl/evp.h"
d26791 1
a26791 2
		    ERR_load_crypto_strings();
		    OpenSSL_add_all_algorithms();
d26797 1
d26799 2
a26800 2
if ac_fn_c_try_link "$LINENO"; then :
  ntp_cv_bare_lcrypto=yes
d26802 1
a26802 1
  ntp_cv_bare_lcrypto=no
d26805 13
a26817 2
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d26819 5
d26825 78
a26902 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
$as_echo "$ntp_cv_bare_lcrypto" >&6; }
    case "$ntp_cv_bare_lcrypto" in
     no)
	LIBS="$NTPO_SAVED_LIBS $LCRYPTO -lz"
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with $LCRYPTO -lz works" >&5
$as_echo_n "checking if linking with $LCRYPTO -lz works... " >&6; }
if ${ntp_cv_lcrypto_lz+:} false; then :
d26905 2
a26906 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d26909 6
a26914 2
			#include "openssl/err.h"
			#include "openssl/evp.h"
d26920 1
a26920 2
			ERR_load_crypto_strings();
			OpenSSL_add_all_algorithms();
d26926 1
d26928 2
a26929 2
if ac_fn_c_try_link "$LINENO"; then :
  ntp_cv_lcrypto_lz=yes
d26931 1
a26931 1
  ntp_cv_lcrypto_lz=no
d26934 2
a26935 2
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d26938 8
a26945 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
$as_echo "$ntp_cv_lcrypto_lz" >&6; }
	case "$ntp_cv_lcrypto_lz" in
	 yes)
	     LCRYPTO="$LCRYPTO -lz"
	esac
a26946 3
    LIBS="$NTPO_SAVED_LIBS"
    { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
esac
a26947 15
#
# Older OpenSSL headers have a number of callback prototypes inside
# other function prototypes which trigger copious warnings with gcc's
# -Wstrict-prototypes, which is included in -Wall.
#
# An example:
#
# int i2d_RSA_NET(const RSA *a, unsigned char **pp,
#		  int (*cb)(), int sgckey);
#		  ^^^^^^^^^^^
#
#
#
openssl_triggers_warnings=unknown
SAVED_CFLAGS="$CFLAGS"
d26949 8
a26956 4
case "$GCC$ntp_openssl" in
 yesyes)
    CFLAGS="$CFLAGS -Werror"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d26960 6
d26970 2
a26971 1
		/* see if -Werror breaks gcc */
d26977 1
d26980 1
a26980 1
  gcc_handles_Werror=yes
d26982 1
a26982 1
  gcc_handles_Werror=no
d26986 7
a26992 6
    case "$gcc_handles_Werror" in
     no)
	# if this gcc doesn't do -Werror go ahead and use
	# -Wstrict-prototypes.
	openssl_triggers_warnings=yes
	;;
d26994 15
a27008 1
	CFLAGS="$CFLAGS -Wstrict-prototypes"
d27012 6
a27017 7
		    #include "openssl/asn1_mac.h"
		    #include "openssl/bn.h"
		    #include "openssl/err.h"
		    #include "openssl/evp.h"
		    #include "openssl/pem.h"
		    #include "openssl/rand.h"
		    #include "openssl/x509v3.h"
d27023 2
a27024 1
		    /* empty body */
d27030 1
d27032 2
a27033 2
if ac_fn_c_try_compile "$LINENO"; then :
  openssl_triggers_warnings=no
d27035 6
a27040 1
  openssl_triggers_warnings=yes
d27043 8
a27050 13
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    esac
    case "$openssl_triggers_warnings" in
     yes)
	CFLAGS="$SAVED_CFLAGS -Wno-strict-prototypes"
	;;
     *)
	CFLAGS="$SAVED_CFLAGS -Wstrict-prototypes"
    esac
    ;;
 yesno)
    # gcc without OpenSSL
    CFLAGS="$SAVED_CFLAGS -Wstrict-prototypes"
d27054 19
d27074 3
a27076 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to compile with ElectricFence" >&5
$as_echo_n "checking if we want to compile with ElectricFence... " >&6; }
d27078 3
a27080 3
# Check whether --with-electricfence was given.
if test "${with_electricfence+set}" = set; then :
  withval=$with_electricfence; ans=$withval
d27082 1
a27082 1
  ans=no
d27085 1
a27086 5
case "$ans" in
 no) ;;
 *)
    LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a"
    EF_PROGS="eftest tstheap"
d27088 3
a27090 1
    EF_LIBS=libefence.a
d27092 2
a27093 5
    ans=yes
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27095 1
a27096 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
$as_echo_n "checking if we want to run check-layout... " >&6; }
case "$cross_compiling$PATH_PERL" in
 no/*)
    MAKE_CHECK_LAYOUT=check-layout
    ans=yes
    ;;
 *)
    ans=no
    ;;
a27097 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27099 8
d27109 2
a27110 13
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
$as_echo_n "checking if we can make dcf parse utilities... " >&6; }
ans=no
if test "$ntp_parseutil" = "yes"; then
    case "$host" in
     *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
	ans="dcfd testdcf"
	DCFD=dcfd
        TESTDCF=testdcf
    esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27112 3
d27116 1
a27116 9
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
ans=no
case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
 yesyes)
    case "$host" in
     sparc-*-sunos4*)
        case "$ntp_cv_var_kernel_pll" in
	yes)
a27117 1
$as_echo "#define PPS_SYNC 1" >>confdefs.h
d27119 4
a27122 14
	    ;;
	esac
	ans=parsestreams
	MAKE_PARSEKMODULE=parsestreams.loadable_module.o
	;;
     sparc-*-solaris2*)
	ans=parsesolaris
	MAKE_PARSEKMODULE=parse
	for ac_header in strings.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
if test "x$ac_cv_header_strings_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRINGS_H 1
d27124 8
d27134 5
d27140 1
a27140 1
done
a27141 3
	;;
    esac
    ;;
a27142 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27144 27
a27170 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
$as_echo_n "checking if we need basic refclock support... " >&6; }
if test "$ntp_refclock" = "yes"; then
a27171 1
$as_echo "#define REFCLOCK 1" >>confdefs.h
d27174 2
a27175 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
$as_echo "$ntp_refclock" >&6; }
d27177 2
d27180 1
a27181 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
case "$host" in
 *-*-hpux[56789]*)
    ans=yes
    ;;
 *) ans=no
    ;;
a27182 2
if test "$ans" = "yes"; then
    MAKE_ADJTIMED=adjtimed
d27184 1
a27184 1
$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
d27186 7
a27193 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27195 3
a27197 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
$as_echo_n "checking if we want QNX adjtime support... " >&6; }
case "$host" in
 *-*-qnx*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac
if test "$ans" = "yes"; then
d27199 1
a27199 1
$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
d27202 7
a27208 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27210 2
a27211 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
$as_echo_n "checking if we can read kmem... " >&6; }
d27213 1
a27213 1
#  the default is to enable it if the system has the capability
a27214 6
case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
 *yes*)
    ans=yes
    ;;
 *) ans=no
esac
d27216 5
a27220 20
case "$host" in
 *-*-domainos)	# Won't be found...
    ans=no
    ;;
 *-*-hpux*)
    #ans=no
    ;;
 *-*-irix[456]*)
    ans=no
    ;;
 *-*-*linux*)
    ans=no
    ;;
 *-*-winnt3.5)
    ans=no
    ;;
 *-*-unicosmp*)
    ans=no
    ;;
esac
d27222 3
a27224 4
# --enable-kmem / --disable-kmem controls if present
# Check whether --enable-kmem was given.
if test "${enable_kmem+set}" = set; then :
  enableval=$enable_kmem; ans=$enableval
a27225 1
fi
d27228 1
a27228 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27230 1
a27230 6
case "$ans" in
 yes)
    can_kmem=yes
    ;;
 *)
    can_kmem=no
d27232 1
a27232 1
$as_echo "#define NOKMEM 1" >>confdefs.h
d27234 1
a27234 1
esac
d27236 1
d27238 1
a27238 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
$as_echo_n "checking if adjtime is accurate... " >&6; }
d27240 1
a27240 1
# target-dependent defaults
d27242 1
a27242 30
case "$host" in
 i386-sequent-ptx*)
    ans=no
    ;;
 i386-unknown-osf1*)
    ans=yes
    ;;
 mips-sgi-irix[456]*)
    ans=yes
    ;;
 *-fujitsu-uxp*)
    ans=yes
    ;;
 *-ibm-aix[456]*)
    ans=yes
    ;;
 *-*-*linux*)
    ans=yes
    ;;
 *-*-solaris2.[01])
    ans=no
    ;;
 *-*-solaris2*)
    ans=yes
    ;;
 *-*-unicosmp*)
    ans=yes
    ;;
 *) ans=no
esac
d27244 1
a27244 5
# --enable-accurate-adjtime / --disable-accurate-adjtime
# override the default
# Check whether --enable-accurate-adjtime was given.
if test "${enable_accurate_adjtime+set}" = set; then :
  enableval=$enable_accurate_adjtime; ans=$enableval
d27246 1
a27246 1
fi
d27248 1
d27250 1
a27250 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27252 1
a27252 2
case "$ans" in
 yes)
d27254 1
a27254 1
$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
d27256 1
a27256 6
    adjtime_is_accurate=yes
    ;;
 *)
    adjtime_is_accurate=no
    ;;
esac
d27258 1
a27258 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
$as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
if ${ntp_cv_nlist_tick+:} false; then :
  $as_echo_n "(cached) " >&6
else
d27260 1
a27260 31
	ans=_tick
	case "$host" in
	 m68*-hp-hpux*) # HP9000/300?
	    ans=_old_tick
	    ;;
	 *-apple-aux[23]*)
	    ans=tick
	    ;;
	 *-hp-hpux*)
	    ans=old_tick
	    ;;
	 *-ibm-aix[3456]*)
	    ans=no
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-ptx*)
	    ans=tick
	    ;;
	 *-*-sco3.2v[45]*)
	    ans=no
	    ;;
	 *-*-solaris2*)
	    ans=nsec_per_tick
	    ;;
	 *-*-sysv4*)
	    ans=tick
	    ;;
	esac
	ntp_cv_nlist_tick=$ans
d27262 1
d27264 1
a27264 7
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
$as_echo "$ntp_cv_nlist_tick" >&6; }
case "$ntp_cv_nlist_tick" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)
d27266 1
a27266 3
cat >>confdefs.h <<_ACEOF
#define K_TICK_NAME "$ntp_cv_nlist_tick"
_ACEOF
d27268 1
a27268 1
esac
d27270 1
a27270 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
$as_echo_n "checking for the units of 'tick'... " >&6; }
if ${ntp_cv_tick_nano+:} false; then :
  $as_echo_n "(cached) " >&6
else
d27272 1
a27272 7
	ans=usec
	case "$host" in
	 *-*-solaris2*)
	    ans=nsec
	    ;;
	esac
	ntp_cv_tick_nano=$ans
d27274 1
d27276 1
a27276 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
$as_echo "$ntp_cv_tick_nano" >&6; }
case "$ntp_cv_tick_nano" in
 nsec)
d27278 1
a27278 1
$as_echo "#define TICK_NANO 1" >>confdefs.h
d27280 1
a27280 1
esac
d27282 1
a27282 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
if ${ntp_cv_nlist_tickadj+:} false; then :
  $as_echo_n "(cached) " >&6
else
d27284 1
a27284 40
	ans=_tickadj
	case "$host" in
	 m68*-hp-hpux*) # HP9000/300?
	    ans=_tickadj
	    ;;
	 *-apple-aux[23]*)
	    ans=tickadj
	    ;;
	 *-hp-hpux10*)
	    ans=no
	    ;;
	 *-hp-hpux9*)
	    ans=no
	    ;;
	 *-hp-hpux*)
	    ans=tickadj
	    ;;
	 *-*-aix*)
	    ans=tickadj
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-ptx*)
	    ans=tickadj
	    ;;
	 *-*-sco3.2v4*)
	    ans=no
	    ;;
	 *-*-sco3.2v5.0*)
	    ans=clock_drift
	    ;;
	 *-*-solaris2*)
	    ans=no	# hrestime_adj
	    ;;
	 *-*-sysv4*)
	    ans=tickadj
	    ;;
	esac
	ntp_cv_nlist_tickadj=$ans
d27286 1
a27287 7
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
$as_echo "$ntp_cv_nlist_tickadj" >&6; }
case "$ntp_cv_nlist_tickadj" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)
d27289 1
a27289 3
cat >>confdefs.h <<_ACEOF
#define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
_ACEOF
a27290 1
esac
d27292 13
a27304 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
$as_echo_n "checking for the units of 'tickadj'... " >&6; }
if ${ntp_cv_tickadj_nano+:} false; then :
  $as_echo_n "(cached) " >&6
else
d27306 1
a27306 7
	ans=usec
	case "$host" in
	 *-*-solaris2*)
	    ans=nsec
	    ;;
	esac
	ntp_cv_tickadj_nano=$ans
d27308 21
d27330 34
d27365 1
a27365 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
$as_echo "$ntp_cv_tickadj_nano" >&6; }
case "$ntp_cv_tickadj_nano" in
 nsec)
d27367 3
a27369 1
$as_echo "#define TICKADJ_NANO 1" >>confdefs.h
d27371 1
a27371 1
esac
d27373 12
a27384 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
if ${ntp_cv_nlist_dosynctodr+:} false; then :
  $as_echo_n "(cached) " >&6
else
d27386 1
a27386 39
	case "$host" in
	 *-apple-aux[23]*)
	    ans=no
	    ;;
	 *-sni-sysv*)
	    ans=dosynctodr
	    ;;
	 *-*-aix*)
	    ans=dosynctodr
	    ;;
	 *-*-hpux*)
	    ans=no
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-nextstep*)
	    ans=_dosynctodr
	    ;;
	 *-*-ptx*)
	    ans=doresettodr
	    ;;
	 *-*-sco3.2v4*)
	    ans=no
	    ;;
	 *-*-sco3.2v5*)
	    ans=track_rtc
	    ;;
	 *-*-solaris2*)
	    ans=dosynctodr
	    ;;
	 *-*-sysv4*)
	    ans=doresettodr
	    ;;
	 *)
	    ans=_dosynctodr
	    ;;
	esac
	ntp_cv_nlist_dosynctodr=$ans
d27389 6
a27395 53
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
$as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
case "$ntp_cv_nlist_dosynctodr" in
 no)
    ;;
 *)

cat >>confdefs.h <<_ACEOF
#define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
_ACEOF

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
if ${ntp_cv_nlist_noprintf+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-apple-aux[23]*)
	    ans=no
	    ;;
	 *-sni-sysv*)
	    ans=noprintf
	    ;;
	 *-*-aix*)
	    ans=noprintf
	    ;;
	 *-*-hpux*)
	    ans=no
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-ptx*)
	    ans=noprintf
	    ;;
	 *-*-nextstep*)
	    ans=_noprintf
	    ;;
	 *-*-solaris2*)
	    ans=noprintf
	    ;;
	 *-*-sysv4*)
	    ans=noprintf
	    ;;
	 *)
	    ans=_noprintf
	    ;;
	esac
	ntp_cv_nlist_noprintf=$ans
d27397 28
d27426 3
a27429 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
$as_echo "$ntp_cv_nlist_noprintf" >&6; }
case "$ntp_cv_nlist_noprintf" in
 no)
    ;;
 *)
d27431 13
a27443 3
cat >>confdefs.h <<_ACEOF
#define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
_ACEOF
d27445 3
a27447 2
    ;;
esac
d27449 7
d27457 15
a27471 32


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
$as_echo_n "checking for a default value for 'tick'... " >&6; }

# target-dependent default for tick

case "$host" in
 *-*-pc-cygwin*)
    as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
    ;;
 *-univel-sysv*)
    ans=10000
    ;;
 *-*-irix*)
    ans=10000
    ;;
 *-*-*linux*)
    ans=txc.tick
    ;;
 *-*-mpeix*)
    ans=no
    ;;
 *-*-winnt3.5)
    ans='(every / 10)'
    ;;
 *-*-unicosmp*)
    ans=10000
    ;;
 *)
    ans='1000000L/hz'
    ;;
d27473 1
a27474 3
# Check whether --enable-tick was given.
if test "${enable_tick+set}" = set; then :
  enableval=$enable_tick; ans=$enableval
d27476 36
d27514 8
a27522 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27524 6
a27529 4
case "$ans" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)
d27531 11
a27541 3
cat >>confdefs.h <<_ACEOF
#define PRESET_TICK $ans
_ACEOF
d27543 1
d27545 9
d27555 11
a27565 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
$as_echo_n "checking for a default value for 'tickadj'... " >&6; }
d27567 5
a27571 45
# target-specific default
ans='500/hz'
case "$host" in
 *-fujitsu-uxp*)
    case "$adjtime_is_accurate" in
     yes)
	ans='tick/16'
    esac
    ;;
 *-univel-sysv*)
    ans=80
    ;;
 *-*-aix*)
    case "$can_kmem" in
     no)
	ans=1000
    esac
    ;;
 *-*-domainos)	# Skippy: won't be found...
    case "$can_kmem" in
     no)
	ans=668
    esac
    ;;
 *-*-hpux*)
    case "$adjtime_is_accurate" in
     yes)
	ans='tick/16'
    esac
    ;;
 *-*-irix*)
    ans=150
    ;;
 *-*-mpeix*)
    ans=no
    ;;
 *-*-sco3.2v5.0*)
    ans=10000L/hz
    ;;
 *-*-winnt3.5)
    ans=50
    ;;
 *-*-unicosmp*)
    ans=150
esac
d27573 2
a27574 3
# Check whether --enable-tickadj was given.
if test "${enable_tickadj+set}" = set; then :
  enableval=$enable_tickadj; ans=$enableval
a27575 1
fi
d27577 15
a27592 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d27594 7
a27600 1
default_tickadj=$ans
d27602 9
a27610 4
case "$default_tickadj" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)
d27612 25
a27636 5
cat >>confdefs.h <<_ACEOF
#define PRESET_TICKADJ $default_tickadj
_ACEOF
 ;;
esac
d27638 16
a27653 6
# Newer versions of ReliantUNIX round adjtime() values down to
# 1/100s (system tick). Sigh ...
# Unfortunately, there is no easy way to know if particular release
# has this "feature" or any obvious way to test for it.
case "$host" in
 mips-sni-sysv4*)
a27654 1
$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
d27656 6
a27661 1
esac
d27663 5
a27667 2
case "$host" in
 *-*-sco3.2v5*)
d27669 2
a27670 43
$as_echo "#define SCO5_CLOCK 1" >>confdefs.h

esac

ntp_cv_make_tickadj=yes
case "$can_kmem$ac_cv_var_tick$default_tickadj" in
 nonono)	# Don't read KMEM, no presets.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&2;}
    ntp_cv_make_tickadj=no
    ;;
 nono*)		# Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
    ntp_cv_make_tickadj=no
    ;;
 no*no)		# Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
    ntp_cv_make_tickadj=no
    ;;
 no*)		# Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
    ;;
 yesnono)	# Read KMEM, no presets.  Cool.
    ;;
 yesno*)	# Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
    ;;
 yes*no)	# Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
    ;;
 yes*)		# READ KMEM, PRESET_TICK and PRESET_TICKADJ.
    ;;
 *)		# Generally bogus.
    as_fn_error $? "This shouldn't happen." "$LINENO" 5
    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
$as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
if ${ac_cv_make_ntptime+:} false; then :
  $as_echo_n "(cached) " >&6
d27672 1
a27672 12
  case "$host" in
 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
     yesyes)
	ans=yes
	;;
     *)
	ans=no
	;;
    esac
    ;;
esac
ac_cv_make_ntptime=$ans
a27673 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
$as_echo "$ac_cv_make_ntptime" >&6; }
case "$ac_cv_make_ntptime" in
 yes)
    MAKE_NTPTIME=ntptime
    ;;
esac
d27675 25
d27701 11
a27711 22
case "$host" in
 mips-sni-sysv4*)
    # tickadj is pretty useless on newer versions of ReliantUNIX
    # Do not bother
    ntp_cv_make_tickadj=no
    ;;
 *-*-irix*)
    ntp_cv_make_tickadj=no
    ;;
 *-*-solaris2*)
    # DLM says tickadj is a no-no starting with solaris2.5
    case "$host" in
     *-*-solaris2.1[0-9]*)
	ntp_cv_make_tickadj=no
	;;
     *-*-solaris2.[0-4]*) ;;
     *) ntp_cv_make_tickadj=no ;;
    esac
    ;;
 *-*-unicosmp*)
    ntp_cv_make_tickadj=no
    ;;
d27714 3
a27716 13
#
# Despite all the above, we always make tickadj.  Setting
# ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
# report that the configuration variable was cached.  It may
# be better to simply remove the hunk above, I did not want
# to remove it if there is hope it will be used again.
#
{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
$as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
if ${ntp_cv_make_tickadj+:} false; then :
  $as_echo_n "(cached) " >&6
d27718 2
a27719 2
  ntp_cv_make_tickadj=yes

d27721 14
a27734 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
$as_echo "$ntp_cv_make_tickadj" >&6; }
case "$ntp_cv_make_tickadj" in
 yes)
    MAKE_TICKADJ=tickadj
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
$as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
if ${ntp_cv_make_timetrim+:} false; then :
  $as_echo_n "(cached) " >&6
d27736 4
a27739 12

	case "$host" in
	 *-*-irix*)
	    ntp_cv_make_timetrim=yes
	    ;;
	 *-*-unicosmp*)
	    ntp_cv_make_timetrim=yes
	    ;;
	 *)
	    ntp_cv_make_timetrim=no
	    ;;
	esac
d27742 5
a27746 7
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
$as_echo "$ntp_cv_make_timetrim" >&6; }
case "$ntp_cv_make_timetrim" in
 yes)
    MAKE_TIMETRIM=timetrim
esac
d27748 38
d27788 3
a27790 6

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
$as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
# Check whether --enable-simulator was given.
if test "${enable_simulator+set}" = set; then :
  enableval=$enable_simulator; ans=$enableval
d27792 2
a27793 2
  ans=no

d27796 25
a27820 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 yes)
    MAKE_NTPDSIM=ntpdsim
    MAKE_LIBNTPSIM=libntpsim.a
esac
d27822 2
a27823 10
case "$build" in
 $host)
    ;;
 *) case "$host" in
     *-*-vxworks*)
	LDFLAGS="$LDFLAGS -r"
	;;
    esac
    ;;
esac
d27826 6
a27831 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
$as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
d27833 7
a27839 4
# Check whether --with-ntpsnmpd was given.
if test "${with_ntpsnmpd+set}" = set; then :
  withval=$with_ntpsnmpd; ans=$withval
else
d27841 5
a27845 4
	case "$PATH_NET_SNMP_CONFIG" in
	 /*)	ans=yes ;;
	 *)	ans=no  ;;
	esac
d27847 2
d27850 1
a27850 1
fi
d27852 3
a27854 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 yes)
    case "$PATH_NET_SNMP_CONFIG" in
     /*)
	SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
d27856 3
a27858 13
	# HMS: we really want to separate CPPFLAGS and CFLAGS
	foo=`$PATH_NET_SNMP_CONFIG --cflags`
	SNMP_CPPFLAGS=
	SNMP_CFLAGS=
	for i in $foo; do
	    case "$i" in
	     -D*|-U*|-I*)
		SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
		;;
	    *)	SNMP_CFLAGS="$SNMP_CFLAGS $i"
		;;
	    esac
	done
d27861 5
d27867 1
a27867 5
	save_CFLAGS=$CFLAGS
	save_CPPFLAGS=$CPPFLAGS
	save_LIBS=$LIBS
	CFLAGS=$SNMP_CFLAGS
	CPPFLAGS=$SNMP_CPPFLAGS
d27869 5
a27873 6
	ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
  MAKE_NTPSNMPD=ntpsnmpd
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
d27875 1
a27875 1
fi
d27877 11
d27889 2
d27892 2
a27893 12
	# Do this last, as we're messing up LIBS.
	# check -lnetsnmp for netsnmp_daemonize
	LIBS=`$PATH_NET_SNMP_CONFIG --libs`
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnetsnmp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d27895 2
a27896 30
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char netsnmp_daemonize ();
int
main ()
{
return netsnmp_daemonize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_netsnmp_netsnmp_daemonize=yes
else
  ac_cv_lib_netsnmp_netsnmp_daemonize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
  ans=yes
else
  ans=no
d27898 1
a27898 1
fi
d27900 7
a27906 2
	case "$ans" in
	 no)
d27908 3
a27910 1
$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
d27912 7
a27918 1
	esac
d27920 15
a27934 9
	CFLAGS=$save_CFLAGS
	CPPFLAGS=$save_CPPFLAGS
	LIBS=$save_LIBS
	;;
     *)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
$as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
	;;
    esac
d27936 1
a27936 1
esac
d27938 33
d27972 3
d27976 2
a27977 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
$as_echo_n "checking if we should always slew the time... " >&6; }
d27979 3
a27981 1
# target-specific defaults
d27983 1
a27983 16
case "$host" in
 *-apple-aux[23]*)
    ans=yes
    ;;
 *-*-bsdi[012]*)
    ans=no
    ;;
 *-*-bsdi*)
    ans=yes
    ;;
 *-*-openvms*)	# HMS: won't be found
    ans=yes
    ;;
 *) ans=no
    ;;
esac
d27985 4
a27988 5
# --enable-slew-always / --disable-slew-always overrides default

# Check whether --enable-slew-always was given.
if test "${enable_slew_always+set}" = set; then :
  enableval=$enable_slew_always; ans=$enableval
d27990 9
d28001 10
d28012 6
a28017 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d28019 1
a28019 2
case "$ans" in
 yes)
d28021 1
a28021 1
$as_echo "#define SLEWALWAYS 1" >>confdefs.h
d28023 37
a28059 1
esac
d28061 3
a28063 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
$as_echo_n "checking if we should step and slew the time... " >&6; }
a28064 26
case "$host" in
 *-sni-sysv*)
    ans=yes
    ;;
 *-univel-sysv*)
    ans=no
    ;;
 *-*-ptx*)
    ans=yes
    ;;
 *-*-solaris2.1[0-9]*)
    ans=no
    ;;
 *-*-solaris2.[012]*)
    ans=yes
    ;;
 *-*-sysv4*)	# HMS: Does this catch Fujitsu UXP?
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# Check whether --enable-step-slew was given.
if test "${enable_step_slew+set}" = set; then :
  enableval=$enable_step_slew; ans=$enableval
d28066 8
d28076 15
d28092 8
a28099 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d28101 4
a28104 2
case "$ans" in
 yes)
a28105 17
$as_echo "#define STEP_SLEW 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
$as_echo_n "checking if ntpdate should step the time... " >&6; }

case "$host" in
 *-apple-aux[23]*)
    ans=yes
    ;;
 *) ans=no
esac

# Check whether --enable-ntpdate-step was given.
if test "${enable_ntpdate_step+set}" = set; then :
  enableval=$enable_ntpdate_step; ans=$enableval
d28107 6
d28114 5
a28118 31


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
$as_echo_n "checking if we should sync TODR clock every hour... " >&6; }

case "$host" in
 *-*-nextstep*)
    ans=yes
    ;;
 *-*-openvms*)	# HMS: won't be found
    ans=yes
    ;;
 *)
    ans=no
esac

# Check whether --enable-hourly-todr-sync was given.
if test "${enable_hourly_todr_sync+set}" = set; then :
  enableval=$enable_hourly_todr_sync; ans=$enableval

d28121 2
a28123 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d28125 11
a28135 2
case "$ac_cv_var_sync_todr" in
 yes)
d28137 10
a28146 3
$as_echo "#define DOSYNCTODR 1" >>confdefs.h
 ;;
esac
d28148 52
d28201 17
a28217 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
d28219 2
a28220 44
case "$host" in
 *-*-solaris2.6)
    unamev=`uname -v`
    case "$unamev" in
     Generic_105181-*)
	old_IFS="$IFS"
	IFS="-"
	set $unamev
	IFS="$old_IFS"
	if test "$2" -ge 17
	then
	    # Generic_105181-17 and higher
	    ans=no
	else
	    ans=yes
	fi
	;;
     *)
	ans=yes
    esac
    ;;
 *-*-solaris2.7)
    unamev=`uname -v`
    case "$unamev" in
     Generic_106541-*)
	old_IFS="$IFS"
	IFS="-"
	set $unamev
	IFS="$old_IFS"
	if test "$2" -ge 07
	then
	    # Generic_106541-07 and higher
	    ans=no
	else
	    ans=yes
	fi
	;;
     *)
	ans=yes
    esac
    ;;
 *)
    ans=no
esac
d28222 10
a28231 3
# Check whether --enable-kernel-fll-bug was given.
if test "${enable_kernel_fll_bug+set}" = set; then :
  enableval=$enable_kernel_fll_bug; ans=$enableval
d28233 13
d28248 10
d28259 3
a28261 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d28263 13
a28275 2
case "$ans" in
 yes)
d28277 3
a28279 1
$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
d28281 39
a28319 1
esac
d28321 37
a28358 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
$as_echo_n "checking if we want new session key behavior... " >&6; }
# Check whether --enable-bug1243-fix was given.
if test "${enable_bug1243_fix+set}" = set; then :
  enableval=$enable_bug1243_fix; ans=$enableval
else
  ans=yes
d28360 20
a28379 1
fi
d28381 21
a28401 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 no)
d28403 18
a28420 1
$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
d28422 4
a28425 9
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }

case "$host" in
 *-*-solaris2.[89])
    ans=yes
d28427 1
a28427 5
 *-*-solaris2.1[0-9]*)
    ans=yes
    ;;
 *) ans=no
esac
d28429 25
a28453 14
# Check whether --enable-irig-sawtooth was given.
if test "${enable_irig_sawtooth+set}" = set; then :
  enableval=$enable_irig_sawtooth; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define IRIG_SUCKS 1" >>confdefs.h
d28455 10
d28466 4
d28471 13
a28483 21

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }

# Check whether --enable-nist was given.
if test "${enable_nist+set}" = set; then :
  enableval=$enable_nist; ans=$enableval
else
  ans=no

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define LOCKCLOCK 1" >>confdefs.h
 ;;
d28485 1
d28488 5
a28492 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
d28494 10
a28503 5
# Check whether --enable-ntp-signd was given.
if test "${enable_ntp_signd+set}" = set; then :
  enableval=$enable_ntp_signd; ans=$enableval
else
  ans=no
d28505 28
a28532 15
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 no)
    ntp_signd_path=
    ;;
 yes)
    ntp_signd_path=/var/run/ntp_signd
    ;;
 *)
    ntp_signd_path="$ans"
a28533 11

case "$ntp_signd_path" in
 '')
    ;;
 *)

$as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h


cat >>confdefs.h <<_ACEOF
#define NTP_SIGND_PATH "$ntp_signd_path"
d28536 6
a28541 9
esac


for ac_header in sys/clockctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_CLOCKCTL_H 1
d28543 19
d28563 7
a28569 1
fi
d28571 1
a28571 2277
done


case "$host" in
 *-*-netbsd*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# Check whether --enable-clockctl was given.
if test "${enable_clockctl+set}" = set; then :
  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
else
  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
$as_echo "$ntp_use_dev_clockctl" >&6; }


for ac_header in sys/capability.h sys/prctl.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }

case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
 yesyes)
    case "$host" in
     mips-sgi-irix*)
	ntp_have_linuxcaps=no
	;;
     *) ntp_have_linuxcaps=yes
	;;
    esac
    ;;
 *)
    ntp_have_linuxcaps=no
    ;;
esac

# Check whether --enable-linuxcaps was given.
if test "${enable_linuxcaps+set}" = set; then :
  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
$as_echo "$ntp_have_linuxcaps" >&6; }

case "$ntp_have_linuxcaps" in
 yes)

$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h

    LIBS="$LIBS -lcap"
esac

case "$ntp_use_dev_clockctl$ntp_have_linuxcaps" in
 *yes*)

$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h

esac


for ac_header in libscf.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
if test "x$ac_cv_header_libscf_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSCF_H 1
_ACEOF

fi

done

LSCF=
case "$ac_cv_header_libscf_h" in
 yes)
    LSCF='-lscf'
esac


ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
if test "x$ac_cv_func_setppriv" = xyes; then :
  ans=yes
else
  ans=no

fi

case "$ans" in
 yes)

$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
$as_echo_n "checking struct sockaddr for sa_len... " >&6; }
if ${isc_cv_platform_havesalen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <sys/socket.h>

int
main ()
{

		extern struct sockaddr *ps;
		return ps->sa_len;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_platform_havesalen=yes
else
  isc_cv_platform_havesalen=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
$as_echo "$isc_cv_platform_havesalen" >&6; }
case "$isc_cv_platform_havesalen" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h

esac

# Check whether --enable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then :
  enableval=$enable_ipv6;
fi


case "$enable_ipv6" in
 yes|''|autodetect)
    case "$host" in
     powerpc-ibm-aix4*)
	;;
     *)

$as_echo "#define WANT_IPV6 1" >>confdefs.h

	;;
    esac
    ;;
 no)
    ;;
esac


case "$host" in
 *-*-darwin*)

$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
$as_echo_n "checking for IPv6 structures... " >&6; }
if ${isc_cv_found_ipv6+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <sys/socket.h>
		#include <netinet/in.h>

int
main ()
{

		struct sockaddr_in6 sin6;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_found_ipv6=yes
else
  isc_cv_found_ipv6=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
$as_echo "$isc_cv_found_ipv6" >&6; }

#
# See whether IPv6 support is provided via a Kame add-on.
# This is done before other IPv6 linking tests so LIBS is properly set.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
$as_echo_n "checking for Kame IPv6 support... " >&6; }

# Check whether --with-kame was given.
if test "${with_kame+set}" = set; then :
  withval=$with_kame; use_kame="$withval"
else
  use_kame="no"

fi

case "$use_kame" in
 no)
    ;;
 yes)
    kame_path=/usr/local/v6
    ;;
 *)
    kame_path="$use_kame"
    ;;
esac
case "$use_kame" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
 *)
    if test -f $kame_path/lib/libinet6.a; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
$as_echo "$kame_path/lib/libinet6.a" >&6; }
	LIBS="-L$kame_path/lib -linet6 $LIBS"
    else
	as_fn_error $? "$kame_path/lib/libinet6.a not found.

Please choose the proper path with the following command:

    configure --with-kame=PATH
" "$LINENO" 5
    fi
    ;;
esac

#
# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
# Including it on Kame-using platforms is very bad, though, because
# Kame uses #error against direct inclusion.   So include it on only
# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
# This is done before the in6_pktinfo check because that's what
# netinet6/in6.h is needed for.
#
case "$host" in
 *-bsdi4.[01]*)

$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h

    isc_netinet6in6_hack="#include <netinet6/in6.h>"
    ;;
 *)
    isc_netinet6in6_hack=""
    ;;
esac

#
# This is similar to the netinet6/in6.h issue.
#
case "$host" in
 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)

$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h

    isc_netinetin6_hack="#include <netinet/in6.h>"
    ;;
 *)
    isc_netinetin6_hack=""
    ;;
esac


case "$isc_cv_found_ipv6" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
$as_echo_n "checking for in6_pktinfo... " >&6; }
if ${isc_cv_have_in6_pktinfo+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include <sys/types.h>
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack

int
main ()
{

		    struct in6_pktinfo xyzzy;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_in6_pktinfo=yes
else
  isc_cv_have_in6_pktinfo=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
$as_echo "$isc_cv_have_in6_pktinfo" >&6; }
    case "$isc_cv_have_in6_pktinfo" in
     yes)

$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h

    esac


    # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
if ${isc_cv_have_sin6_scope_id+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include <sys/types.h>
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack

int
main ()
{

		    struct sockaddr_in6 xyzzy;
		    xyzzy.sin6_scope_id = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_sin6_scope_id=yes
else
  isc_cv_have_sin6_scope_id=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
$as_echo "$isc_cv_have_sin6_scope_id" >&6; }

    case "$isc_cv_have_sin6_scope_id" in
     yes)

$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h

    esac
esac


# We need this check run even without isc_cv_found_ipv6=yes

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
$as_echo_n "checking for in6addr_any... " >&6; }
if ${isc_cv_have_in6addr_any+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <sys/socket.h>
		#include <netinet/in.h>
		$isc_netinetin6_hack
		$isc_netinet6in6_hack

int
main ()
{

		struct in6_addr in6;
		in6 = in6addr_any;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  isc_cv_have_in6addr_any=yes
else
  isc_cv_have_in6addr_any=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6addr_any" >&5
$as_echo "$isc_cv_have_in6addr_any" >&6; }

case "$isc_cv_have_in6addr_any" in
 no)

$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
$as_echo_n "checking for struct if_laddrconf... " >&6; }
if ${isc_cv_struct_if_laddrconf+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <net/if6.h>

int
main ()
{

		struct if_laddrconf a;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_struct_if_laddrconf=yes
else
  isc_cv_struct_if_laddrconf=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
$as_echo "$isc_cv_struct_if_laddrconf" >&6; }

case "$isc_cv_struct_if_laddrconf" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
$as_echo_n "checking for struct if_laddrreq... " >&6; }
if ${isc_cv_struct_if_laddrreq+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <net/if6.h>

int
main ()
{

		struct if_laddrreq a;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_struct_if_laddrreq=yes
else
  isc_cv_struct_if_laddrreq=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
$as_echo "$isc_cv_struct_if_laddrreq" >&6; }

case "$isc_cv_struct_if_laddrreq" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h

esac

#
# Look for a sysctl call to get the list of network interfaces.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
$as_echo_n "checking for interface list sysctl... " >&6; }
if ${ntp_cv_iflist_sysctl+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <sys/param.h>
	    #include <sys/sysctl.h>
	    #include <sys/socket.h>
	    #ifdef NET_RT_IFLIST
		found_rt_iflist
	    #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "found_rt_iflist" >/dev/null 2>&1; then :
  ntp_cv_iflist_sysctl=yes
else
  ntp_cv_iflist_sysctl=no

fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
$as_echo "$ntp_cv_iflist_sysctl" >&6; }
case "$ntp_cv_iflist_sysctl" in
 yes)

$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h

esac

###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
$as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
# Check whether --enable-saveconfig was given.
if test "${enable_saveconfig+set}" = set; then :
  enableval=$enable_saveconfig; ntp_ok=$enableval
else
  ntp_ok=yes

fi

ntp_saveconfig_enabled=0
if test "$ntp_ok" = "yes"; then
    ntp_saveconfig_enabled=1

$as_echo "#define SAVECONFIG 1" >>confdefs.h

fi
 if test x$ntp_saveconfig_enabled = x1; then
  SAVECONFIG_ENABLED_TRUE=
  SAVECONFIG_ENABLED_FALSE='#'
else
  SAVECONFIG_ENABLED_TRUE='#'
  SAVECONFIG_ENABLED_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

###


	ac_expanded=`(
	    test "x$prefix" = xNONE && prefix="$ac_default_prefix"
	    test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
	    eval echo \""$sysconfdir"\"
	)`

cat >>confdefs.h <<_ACEOF
#define NTP_KEYSDIR "$ac_expanded"
_ACEOF



ac_config_files="$ac_config_files Makefile"

ac_config_files="$ac_config_files ElectricFence/Makefile"

ac_config_files="$ac_config_files adjtimed/Makefile"

ac_config_files="$ac_config_files clockstuff/Makefile"

ac_config_files="$ac_config_files include/Makefile"

ac_config_files="$ac_config_files include/isc/Makefile"

ac_config_files="$ac_config_files kernel/Makefile"

ac_config_files="$ac_config_files kernel/sys/Makefile"

ac_config_files="$ac_config_files libntp/Makefile"

ac_config_files="$ac_config_files libparse/Makefile"

ac_config_files="$ac_config_files ntpd/Makefile"

ac_config_files="$ac_config_files ntpdate/Makefile"

ac_config_files="$ac_config_files ntpdc/Makefile"

ac_config_files="$ac_config_files ntpdc/nl.pl"

ac_config_files="$ac_config_files ntpq/Makefile"

ac_config_files="$ac_config_files ntpsnmpd/Makefile"

ac_config_files="$ac_config_files parseutil/Makefile"

ac_config_files="$ac_config_files scripts/Makefile"

ac_config_files="$ac_config_files scripts/calc_tickadj"

ac_config_files="$ac_config_files scripts/checktime"

ac_config_files="$ac_config_files scripts/freq_adj"

ac_config_files="$ac_config_files scripts/html2man"

ac_config_files="$ac_config_files scripts/mkver"

ac_config_files="$ac_config_files scripts/ntp-wait"

ac_config_files="$ac_config_files scripts/ntpsweep"

ac_config_files="$ac_config_files scripts/ntptrace"

ac_config_files="$ac_config_files scripts/ntpver"

ac_config_files="$ac_config_files scripts/plot_summary"

ac_config_files="$ac_config_files scripts/summary"

ac_config_files="$ac_config_files util/Makefile"




subdirs="$subdirs sntp"


cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    if test "x$cache_file" != "x/dev/null"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
      if test ! -f "$cache_file" || test -h "$cache_file"; then
	cat confcache >"$cache_file"
      else
        case $cache_file in #(
        */* | ?:*)
	  mv -f confcache "$cache_file"$$ &&
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
        *)
	  mv -f confcache "$cache_file" ;;
	esac
      fi
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
U=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


 if test -n "$EXEEXT"; then
  am__EXEEXT_TRUE=
  am__EXEEXT_FALSE='#'
else
  am__EXEEXT_TRUE='#'
  am__EXEEXT_FALSE=
fi

if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  as_fn_error $? "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
  as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
  as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NTP_BINSUBDIR_IS_BIN_TRUE}" && test -z "${NTP_BINSUBDIR_IS_BIN_FALSE}"; then
  as_fn_error $? "conditional \"NTP_BINSUBDIR_IS_BIN\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
  as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false

SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH


# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  $as_echo "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@@" || test $? -eq 1`
  }
fi # as_fn_arith


if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null


# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by ntp $as_me 4.2.6p5, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to the package provider."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
ntp config.status 4.2.6p5
configured by $0, generated by GNU Autoconf 2.68,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2010 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=?*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  --*=)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    $as_echo "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    $as_echo "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    '') as_fn_error $? "missing file argument" ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error $? "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
  --help | --hel | -h )
    $as_echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error $? "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#
# INIT-COMMANDS
#
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"


# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

sed_quote_subst='$sed_quote_subst'
double_quote_subst='$double_quote_subst'
delay_variable_subst='$delay_variable_subst'
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'

LTCC='$LTCC'
LTCFLAGS='$LTCFLAGS'
compiler='$compiler_DEFAULT'

# A function that is used when there is no print builtin or printf.
func_fallback_echo ()
{
  eval 'cat <<_LTECHO_EOF
\$1
_LTECHO_EOF'
}

# Quote evaled strings.
for var in SHELL \
ECHO \
SED \
GREP \
EGREP \
FGREP \
LD \
NM \
LN_S \
lt_SP2NL \
lt_NL2SP \
reload_flag \
OBJDUMP \
deplibs_check_method \
file_magic_cmd \
file_magic_glob \
want_nocaseglob \
DLLTOOL \
sharedlib_from_linklib_cmd \
AR \
AR_FLAGS \
archiver_list_spec \
STRIP \
RANLIB \
CC \
CFLAGS \
compiler \
lt_cv_sys_global_symbol_pipe \
lt_cv_sys_global_symbol_to_cdecl \
lt_cv_sys_global_symbol_to_c_name_address \
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
nm_file_list_spec \
lt_prog_compiler_no_builtin_flag \
lt_prog_compiler_pic \
lt_prog_compiler_wl \
lt_prog_compiler_static \
lt_cv_prog_compiler_c_o \
need_locks \
MANIFEST_TOOL \
DSYMUTIL \
NMEDIT \
LIPO \
OTOOL \
OTOOL64 \
shrext_cmds \
export_dynamic_flag_spec \
whole_archive_flag_spec \
compiler_needs_object \
with_gnu_ld \
allow_undefined_flag \
no_undefined_flag \
hardcode_libdir_flag_spec \
hardcode_libdir_flag_spec_ld \
hardcode_libdir_separator \
exclude_expsyms \
include_expsyms \
file_list_spec \
variables_saved_for_relink \
libname_spec \
library_names_spec \
soname_spec \
install_override_mode \
finish_eval \
old_striplib \
striplib; do
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

# Double-quote double-evaled strings.
for var in reload_cmds \
old_postinstall_cmds \
old_postuninstall_cmds \
old_archive_cmds \
extract_expsyms_cmds \
old_archive_from_new_cmds \
old_archive_from_expsyms_cmds \
archive_cmds \
archive_expsym_cmds \
module_cmds \
module_expsym_cmds \
export_symbols_cmds \
prelink_cmds \
postlink_cmds \
postinstall_cmds \
postuninstall_cmds \
finish_cmds \
sys_lib_search_path_spec \
sys_lib_dlsearch_path_spec; do
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

ac_aux_dir='$ac_aux_dir'
xsi_shell='$xsi_shell'
lt_shell_append='$lt_shell_append'

# See if we are running on zsh, and set the options which allow our
# commands through without removal of \ escapes INIT.
if test -n "\${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi


    PACKAGE='$PACKAGE'
    VERSION='$VERSION'
    TIMESTAMP='$TIMESTAMP'
    RM='$RM'
    ofile='$ofile'




_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "ElectricFence/Makefile") CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;;
    "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
    "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
    "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
    "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
    "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
    "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
    "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
    "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
    "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
    "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
    "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
    "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
    "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
    "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
    "scripts/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;;
    "scripts/checktime") CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;;
    "scripts/freq_adj") CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;;
    "scripts/html2man") CONFIG_FILES="$CONFIG_FILES scripts/html2man" ;;
    "scripts/mkver") CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;;
    "scripts/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;;
    "scripts/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;;
    "scripts/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace" ;;
    "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
    "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
    "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;

  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp= ac_tmp=
  trap 'exit_status=$?
  : "${ac_tmp:=$tmp}"
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ac_tmp=$tmp

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then


ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
_ACEOF


{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""

}
{
  line = $ 0
  nfields = split(line, field, "@@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }

  print line
}

_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
_ACEOF

# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
# ${srcdir} and @@srcdir@@ entries from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
h
s///
s/^/:/
s/[	 ]*$/:/
s/:\$(srcdir):/:/g
s/:\${srcdir}:/:/g
s/:@@srcdir@@:/:/g
s/^:*//
s/:*$//
x
s/\(=[	 ]*\).*/\1/
G
s/\n//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_tt"; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$ac_tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@@datadir@@/p
/@@docdir@@/p
/@@infodir@@/p
/@@localedir@@/p
/@@mandir@@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@@datadir@@*|*@@docdir@@*|*@@infodir@@*|*@@localedir@@*|*@@mandir@@*)
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@@datadir@@&$datadir&g
  s&@@docdir@@&$docdir&g
  s&@@infodir@@&$infodir&g
  s&@@localedir@@&$localedir&g
  s&@@mandir@@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s|@@configure_input@@|$ac_sed_conf_input|;t t
s&@@top_builddir@@&$ac_top_builddir_sub&;t t
s&@@top_build_prefix@@&$ac_top_build_prefix&;t t
s&@@srcdir@@&$ac_srcdir&;t t
s&@@abs_srcdir@@&$ac_abs_srcdir&;t t
s&@@top_srcdir@@&$ac_top_srcdir&;t t
s&@@abs_top_srcdir@@&$ac_abs_top_srcdir&;t t
s&@@builddir@@&$ac_builddir&;t t
s&@@abs_builddir@@&$ac_abs_builddir&;t t
s&@@abs_top_builddir@@&$ac_abs_top_builddir&;t t
s&@@INSTALL@@&$ac_INSTALL&;t t
s&@@MKDIR_P@@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&2;}

  rm -f "$ac_tmp/stdin"
d28573 2
a28574 2
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
d28576 1
a28576 1
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d28585 4
a28588 4
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
    } >"$ac_tmp/config.h" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
d28593 2
a28594 2
      mv "$ac_tmp/config.h" "$ac_file" \
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
d28598 2
a28599 2
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error $? "could not create -" "$LINENO" 5
d28637 4
a28640 365
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
  # are listed without --file.  Let's play safe and only enable the eval
  # if we detect the quoting.
  case $CONFIG_FILES in
  *\'*) eval set x "$CONFIG_FILES" ;;
  *)   set x $CONFIG_FILES ;;
  esac
  shift
  for mf
  do
    # Strip MF so we end up with the name of the file.
    mf=`echo "$mf" | sed -e 's/:.*$//'`
    # Check whether this is an Automake generated Makefile or not.
    # We used to match only the files named `Makefile.in', but
    # some people rename them; so instead we look at the file content.
    # Grep'ing the first line is not enough: some people post-process
    # each Makefile.in and add a new line on top of each file to say so.
    # Grep'ing the whole file is not good either: AIX grep has a line
    # limit of 2048, but all sed's we know have understand at least 4000.
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
      dirpart=`$as_dirname -- "$mf" ||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$mf" : 'X\(//\)[^/]' \| \
	 X"$mf" : 'X\(//\)$' \| \
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
    else
      continue
    fi
    # Extract the definition of DEPDIR, am__include, and am__quote
    # from the Makefile without running `make'.
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    test -z "$DEPDIR" && continue
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
    test -z "am__include" && continue
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
    # When using ansi2knr, U may be empty or an underscore; expand it
    U=`sed -n 's/^U = //p' < "$mf"`
    # Find all dependency output files, they are included files with
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
    # simplest approach to changing $(DEPDIR) to its actual value in the
    # expansion.
    for file in `sed -n "
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
      # Make sure the directory exists.
      test -f "$dirpart/$file" && continue
      fdir=`$as_dirname -- "$file" ||
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$file" : 'X\(//\)[^/]' \| \
	 X"$file" : 'X\(//\)$' \| \
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
      # echo "creating $dirpart/$file"
      echo '# dummy' > "$dirpart/$file"
    done
  done
}
 ;;
    "libtool":C)

    # See if we are running on zsh, and set the options which allow our
    # commands through without removal of \ escapes.
    if test -n "${ZSH_VERSION+set}" ; then
      setopt NO_GLOB_SUBST
    fi

    cfgfile="${ofile}T"
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
    $RM "$cfgfile"

    cat <<_LT_EOF >> "$cfgfile"
#! $SHELL

# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
#                 Inc.
#   Written by Gordon Matzigkeit, 1996
#
#   This file is part of GNU Libtool.
#
# GNU Libtool is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# As a special exception to the GNU General Public License,
# if you distribute this file as part of a program or library that
# is built using GNU Libtool, you may include this file under the
# same distribution terms that you use for the rest of that program.
#
# GNU Libtool is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Libtool; see the file COPYING.  If not, a copy
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
# obtained by writing to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


# The names of the tagged configurations supported by this script.
available_tags=""

# ### BEGIN LIBTOOL CONFIG

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Which release of libtool.m4 was used?
macro_version=$macro_version
macro_revision=$macro_revision

# Whether or not to build static libraries.
build_old_libs=$enable_static

# What type of objects to build.
pic_mode=$pic_mode

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# An echo program that protects backslashes.
ECHO=$lt_ECHO

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# A sed program that does not truncate output.
SED=$lt_SED

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="\$SED -e 1s/^X//"

# A grep program that handles long lines.
GREP=$lt_GREP

# An ERE matcher.
EGREP=$lt_EGREP

# A literal string matcher.
FGREP=$lt_FGREP

# A BSD- or MS-compatible name lister.
NM=$lt_NM

# Whether we need soft or hard links.
LN_S=$lt_LN_S

# What is the maximum length of a command?
max_cmd_len=$max_cmd_len

# Object file suffix (normally "o").
objext=$ac_objext

# Executable file suffix (normally "").
exeext=$exeext

# whether the shell understands "unset".
lt_unset=$lt_unset

# turn spaces into newlines.
SP2NL=$lt_lt_SP2NL

# turn newlines into spaces.
NL2SP=$lt_lt_NL2SP

# convert \$build file names to \$host format.
to_host_file_cmd=$lt_cv_to_host_file_cmd

# convert \$build files to toolchain format.
to_tool_file_cmd=$lt_cv_to_tool_file_cmd

# An object symbol dumper.
OBJDUMP=$lt_OBJDUMP

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method = "file_magic".
file_magic_cmd=$lt_file_magic_cmd

# How to find potential files when deplibs_check_method = "file_magic".
file_magic_glob=$lt_file_magic_glob

# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
want_nocaseglob=$lt_want_nocaseglob

# DLL creation program.
DLLTOOL=$lt_DLLTOOL

# Command to associate shared and link libraries.
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd

# The archiver.
AR=$lt_AR

# Flags to create an archive.
AR_FLAGS=$lt_AR_FLAGS

# How to feed a file listing to the archiver.
archiver_list_spec=$lt_archiver_list_spec

# A symbol stripping program.
STRIP=$lt_STRIP

# Commands used to install an old-style archive.
RANLIB=$lt_RANLIB
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Whether to use a lock for old archive extraction.
lock_old_archive_extraction=$lock_old_archive_extraction

# A C compiler.
LTCC=$lt_CC

# LTCC compiler flags.
LTCFLAGS=$lt_CFLAGS

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration.
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair.
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# Transform the output of nm in a C name address pair when lib prefix is needed.
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix

# Specify filename containing input files for \$NM.
nm_file_list_spec=$lt_nm_file_list_spec

# The root where to search for dependent libraries,and in which our libraries should be installed.
lt_sysroot=$lt_sysroot

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# Used to examine libraries when file_magic_cmd begins with "file".
MAGIC_CMD=$MAGIC_CMD

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Manifest tool.
MANIFEST_TOOL=$lt_MANIFEST_TOOL

# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
DSYMUTIL=$lt_DSYMUTIL

# Tool to change global to local symbols on Mac OS X.
NMEDIT=$lt_NMEDIT

# Tool to manipulate fat objects and archives on Mac OS X.
LIPO=$lt_LIPO

# ldd/readelf like tool for Mach-O binaries on Mac OS X.
OTOOL=$lt_OTOOL

# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
OTOOL64=$lt_OTOOL64

# Old archive suffix (normally "a").
libext=$libext

# Shared library suffix (normally ".so").
shrext_cmds=$lt_shrext_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Variables whose values should be saved in libtool wrapper scripts and
# restored at link time.
variables_saved_for_relink=$lt_variables_saved_for_relink

# Do we need the "lib" prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Library versioning type.
version_type=$version_type

# Shared library runtime path variable.
runpath_var=$runpath_var

# Shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec
a28641 2
# Permission mode override for installation of shared libraries.
install_override_mode=$lt_install_override_mode
d28643 8
a28650 187
# Command to use after installation of a shared archive.
postinstall_cmds=$lt_postinstall_cmds

# Command to use after uninstallation of a shared archive.
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# As "finish_cmds", except a single script fragment to be evaled but
# not shown.
finish_eval=$lt_finish_eval

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Compile-time system search path for libraries.
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib


# The linker used to build libraries.
LD=$lt_LD

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds

# A language specific compiler.
CC=$lt_compiler

# Is the compiler the GNU compiler?
with_gcc=$GCC

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds

# Commands necessary for finishing linking programs.
postlink_cmds=$lt_postlink_cmds

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# ### END LIBTOOL CONFIG

_LT_EOF

  case $host_os in
  aix3*)
    cat <<\_LT_EOF >> "$cfgfile"
# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
_LT_EOF
    ;;
d28652 86
a28737 175


ltmain="$ac_aux_dir/ltmain.sh"


  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '$q' "$ltmain" >> "$cfgfile" \
     || (rm -f "$cfgfile"; exit 1)

  if test x"$xsi_shell" = xyes; then
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
func_dirname ()\
{\
\    case ${1} in\
\      */*) func_dirname_result="${1%/*}${2}" ;;\
\      *  ) func_dirname_result="${3}" ;;\
\    esac\
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_basename ()$/,/^} # func_basename /c\
func_basename ()\
{\
\    func_basename_result="${1##*/}"\
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
func_dirname_and_basename ()\
{\
\    case ${1} in\
\      */*) func_dirname_result="${1%/*}${2}" ;;\
\      *  ) func_dirname_result="${3}" ;;\
\    esac\
\    func_basename_result="${1##*/}"\
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
func_stripname ()\
{\
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
\    # positional parameters, so assign one to ordinary parameter first.\
\    func_stripname_result=${3}\
\    func_stripname_result=${func_stripname_result#"${1}"}\
\    func_stripname_result=${func_stripname_result%"${2}"}\
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
func_split_long_opt ()\
{\
\    func_split_long_opt_name=${1%%=*}\
\    func_split_long_opt_arg=${1#*=}\
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
func_split_short_opt ()\
{\
\    func_split_short_opt_arg=${1#??}\
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
func_lo2o ()\
{\
\    case ${1} in\
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
\      *)    func_lo2o_result=${1} ;;\
\    esac\
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_xform ()$/,/^} # func_xform /c\
func_xform ()\
{\
    func_xform_result=${1%.*}.lo\
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_arith ()$/,/^} # func_arith /c\
func_arith ()\
{\
    func_arith_result=$(( $* ))\
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_len ()$/,/^} # func_len /c\
func_len ()\
{\
    func_len_result=${#1}\
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:

fi

if test x"$lt_shell_append" = xyes; then
  sed -e '/^func_append ()$/,/^} # func_append /c\
func_append ()\
{\
    eval "${1}+=\\${2}"\
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
func_append_quoted ()\
{\
\    func_quote_for_eval "${2}"\
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  # Save a `func_append' function call where possible by direct use of '+='
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
    && mv -f "$cfgfile.tmp" "$cfgfile" \
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  test 0 -eq $? || _lt_function_replace_fail=:
else
  # Save a `func_append' function call even when '+=' is not available
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
    && mv -f "$cfgfile.tmp" "$cfgfile" \
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  test 0 -eq $? || _lt_function_replace_fail=:
fi

if test x"$_lt_function_replace_fail" = x":"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
fi


   mv -f "$cfgfile" "$ofile" ||
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"

d28761 1
a28761 1
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
d28782 1
a28782 1
  $ac_cs_success || as_fn_exit 1
d28923 1
a28923 1
	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
@


1.1.1.2.2.1
log
@Apply patch (requested by christos in ticket #1221):
Update ntp to 4.2.8.
@
text
@d3 1
a3 3
# Generated by GNU Autoconf 2.68 for ntp4 4.2.8.
#
# Report bugs to <http://bugs.ntp.org./>.
d247 4
a250 5
    $as_echo "$0: Please tell bug-autoconf@@gnu.org and
$0: http://bugs.ntp.org./ about your system, including any
$0: error possibly output before this message. Then install
$0: a modern shell, or manually run the script under such a
$0: shell if you do have one."
d568 6
a573 6
PACKAGE_NAME='ntp4'
PACKAGE_TARNAME='ntp4'
PACKAGE_VERSION='4.2.8'
PACKAGE_STRING='ntp4 4.2.8'
PACKAGE_BUGREPORT='http://bugs.ntp.org./'
PACKAGE_URL='http://www.ntp.org./'
a610 1
ac_header_list=
d615 1
a616 9
PERLLIBDIR
NTP_KEYSDIR
GTEST_AVAILABLE_FALSE
GTEST_AVAILABLE_TRUE
GTEST_CPPFLAGS
GTEST_CXXFLAGS
GTEST_LIBS
GTEST_LDFLAGS
GTEST_CONFIG
a623 3
BUILD_SNTP_FALSE
BUILD_SNTP_TRUE
SNTP
d630 1
d637 6
a642 2
VER_SUFFIX
PKG_CONFIG
d647 2
a648 3
HAVE_RLIMIT_STACK
HAVE_RLIMIT_MEMLOCK
LDADD_NLIST
a649 1
CONFIG_SHELL
d651 1
a652 25
LIBOBJS
PTHREADS_FALSE
PTHREADS_TRUE
LIBISC_PTHREADS_NOTHREADS
PTHREAD_LIBS
HAVE_INLINE
ALLOCA
LIBM
EDITLINE_LIBS
LDADD_LIBNTP
NTP_CROSSCOMPILE_FALSE
NTP_CROSSCOMPILE_TRUE
LIBOPTS_DIR
LIBOPTS_CFLAGS
LIBOPTS_LDADD
NEED_LIBOPTS_FALSE
NEED_LIBOPTS_TRUE
INSTALL_LIBOPTS_FALSE
INSTALL_LIBOPTS_TRUE
POSIX_SHELL
GL_GENERATE_STDNORETURN_H_FALSE
GL_GENERATE_STDNORETURN_H_TRUE
STDNORETURN_H
LIBTOOL_DEPS
CXXCPP
d670 14
a684 81
LIBTOOL
TIMETRIM_NI
TIMETRIM_MS
TIMETRIM_DS
TIMETRIM_DL
TIMETRIM_DB
TICKADJ_NI
TICKADJ_MS
TICKADJ_DS
TICKADJ_DL
TICKADJ_DB
SNTP_NI
SNTP_MS
SNTP_DS
SNTP_DL
SNTP_DB
NTP_WAIT_NI
NTP_WAIT_MS
NTP_WAIT_DS
NTP_WAIT_DL
NTP_WAIT_DB
NTP_KEYGEN_NI
NTP_KEYGEN_MS
NTP_KEYGEN_DS
NTP_KEYGEN_DL
NTP_KEYGEN_DB
NTPTRACE_NI
NTPTRACE_MS
NTPTRACE_DS
NTPTRACE_DL
NTPTRACE_DB
NTPTIME_NI
NTPTIME_MS
NTPTIME_DS
NTPTIME_DL
NTPTIME_DB
INSTALL_NTPSWEEP_FALSE
INSTALL_NTPSWEEP_TRUE
NTPSWEEP_NI
NTPSWEEP_MS
NTPSWEEP_DS
NTPSWEEP_DL
NTPSWEEP_DB
NTPSNMPD_NI
NTPSNMPD_MS
NTPSNMPD_DS
NTPSNMPD_DL
NTPSNMPD_DB
NTPQ_NI
NTPQ_MS
NTPQ_DS
NTPQ_DL
NTPQ_DB
NTPD_NI
NTPD_MS
NTPD_DS
NTPD_DL
NTPD_DB
NTPDSIM_NI
NTPDSIM_MS
NTPDSIM_DS
NTPDSIM_DL
NTPDSIM_DB
NTPDC_NI
NTPDC_MS
NTPDC_DS
NTPDC_DL
NTPDC_DB
NTPDATE_NI
NTPDATE_MS
NTPDATE_DS
NTPDATE_DL
NTPDATE_DB
MANTAGFMT
CALC_TICKADJ_NI
CALC_TICKADJ_MS
CALC_TICKADJ_DS
CALC_TICKADJ_DL
CALC_TICKADJ_DB
WANT_CALC_TICKADJ_MS_FALSE
WANT_CALC_TICKADJ_MS_TRUE
a688 10
am__fastdepCXX_FALSE
am__fastdepCXX_TRUE
CXXDEPMODE
ac_ct_CXX
CXXFLAGS
CXX
LDFLAGS_NTP
LDADD_NTP
CPPFLAGS_NTP
CFLAGS_NTP
a715 2
AM_BACKSLASH
AM_DEFAULT_VERBOSITY
d777 1
a777 6
ac_subst_files='calc_tickadj_opts
ntp_wait_opts
ntpsweep_opts
ntptrace_opts
summary_opts
plot_summary_opts'
a779 1
enable_silent_rules
a780 1
with_locfile
d782 6
d794 1
a794 5
enable_nls
enable_local_libopts
enable_libopts_install
with_autoopts_config
enable_local_libevent
d796 1
a797 12
enable_thread_support
with_threads
with_yielding_select
enable_c99_snprintf
enable_clockctl
enable_linuxcaps
enable_solarisprivs
with_arlib
with_net_snmp_config
enable_libseccomp
with_stack_limit
with_memlock
d801 1
a827 1
enable_GPSD
a838 1
enable_TSYNCPCI
a852 2
enable_SEL240X
with_crypto
d855 2
a856 3
with_rpath
enable_openssl_random
enable_autokey
a861 1
with_sntp
d872 2
a875 1
enable_getifaddrs
a876 1
with_gtest
a886 3
CXX
CXXFLAGS
CCC
d888 1
a888 2
YFLAGS
CXXCPP'
d1431 1
a1431 1
\`configure' configures ntp4 4.2.8 to adapt to many kinds of systems.
d1479 1
a1479 1
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp4]
d1501 1
a1501 1
     short | recursive ) echo "Configuration of ntp4 4.2.8:";;
d1505 1
a1505 1
Optional Features and Packages:
a1508 4
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --enable-silent-rules          less verbose build output (undo: `make V=1')
  --disable-silent-rules         verbose build output (undo: `make V=0')
a1510 1
  --with-locfile=XXX      os-specific or "legacy"
d1512 3
a1515 2
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
a1517 3
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
d1519 3
a1521 8
  --disable-nls           disable nls support in libopts
  --enable-local-libopts  Use the supplied libopts tearoff code
  --enable-libopts-install
                          Install libopts with client installation
  --with-autoopts-config  specify the config-info script
  --enable-local-libevent Force using the supplied libevent tearoff code
  --with-lineeditlibs     edit,editline (readline may be specified if desired)
  defaults:               + yes, - no, s system-specific
a1522 13
  --enable-thread-support s use threads (+ if available)
  --with-threads	  with threads [auto]
  --with-yielding-select  with yielding select [auto]
  --enable-c99-snprintf   s force replacement
  --enable-clockctl       s Use /dev/clockctl for non-root clock control
  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
  --with-arlib            - deprecated, arlib not distributed
  --with-net-snmp-config  + =net-snmp-config
  --enable-libseccomp     EXPERIMENTAL: enable support for libseccomp
                          sandboxing (default is no)
  --with-stack-limit      ? =50 (200 for openbsd) 4k pages
  --with-memlock          ? =32 (megabytes)
d1525 1
a1525 1
  --enable-dst-minutes    =60 minutes per DST adjustment
d1528 2
a1555 1
  --enable-GPSD           + GPSD JSON receiver
a1566 1
  --enable-TSYNCPCI       s Spectracom TSYNC timing board
a1580 12
  --enable-SEL240X        s SEL240X clock
  --with-crypto           + =openssl,libcrypto

  --with-openssl-libdir   + =/something/reasonable

  --with-openssl-incdir   + =/something/reasonable

  --without-rpath         s Disable auto-added -R linker paths

  --enable-openssl-random Use OpenSSL's crypto random number functions, if
                          available (default is yes)
  --enable-autokey        + support NTP Autokey protocol
a1586 2
  --without-sntp          - disable building sntp and sntp/tests
  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
d1598 2
d1602 21
a1623 3
  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
  --enable-saveconfig     + saveconfig mechanism
  --with-gtest            Use the gtest framework (Default: if it's available)
a1633 2
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
a1639 1
  CXXCPP      C++ preprocessor
d1644 1
a1644 2
Report bugs to <http://bugs.ntp.org./>.
ntp4 home page: <http://www.ntp.org./>.
d1707 1
a1707 1
ntp4 configure 4.2.8
a1865 4
( $as_echo "## ------------------------------------ ##
## Report this to http://bugs.ntp.org./ ##
## ------------------------------------ ##"
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d2002 5
a2006 42
# ac_fn_cxx_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_compile

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
d2014 14
d2030 1
a2030 31
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

d2034 2
a2035 1
return $2 ();
d2040 3
a2042 1
if ac_fn_c_try_link "$LINENO"; then :
a2043 2
else
  eval "$3=no"
d2045 3
a2047 2
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d2054 1
a2054 1
} # ac_fn_c_check_func
d2056 6
a2061 4
# ac_fn_cxx_try_cpp LINENO
# ------------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_cpp ()
d2064 10
a2073 23
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d2075 15
a2089 4
    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval
d2091 3
a2093 140
} # ac_fn_cxx_try_cpp

# ac_fn_cxx_try_link LINENO
# -------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_link

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_type

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
d2234 4
a2237 5
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
# ---------------------------------------------
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
# accordingly.
ac_fn_c_check_decl ()
d2240 2
a2241 4
  as_decl_name=`echo $2|sed 's/ *(.*//'`
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d2247 20
a2266 5
$4
int
main ()
{
#ifndef $as_decl_name
d2268 1
a2268 3
  (void) $as_decl_use;
#else
  (void) $as_decl_name;
d2270 6
d2278 4
d2286 1
a2286 1
if ac_fn_c_try_compile "$LINENO"; then :
d2291 2
a2292 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d2299 1
a2299 1
} # ac_fn_c_check_decl
d2361 1
a2361 1
It was created by ntp4 $as_me 4.2.8, which was
a2640 1
as_fn_append ac_header_list " stdarg.h"
d2711 1
a2711 1
for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
d2727 1
a2727 1
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
d2740 3
a2742 7




# Bump ntp_configure_cache_version for each change to configure.ac or
# .m4 files which invalidates cached values from previous configure
# runs.
d2752 2
a2753 2
# please bump the version numbers of each.  If you are not sure, the
# safe choice is to bump all on any cache-invalidating change.
d2760 1
a2760 1
ntp_configure_cache_version=20120806
a2797 1
		;;
a2802 1
	;;
d2839 1
a2839 1
	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
d3300 2
a3301 2
 PACKAGE='ntp4'
 VERSION='4.2.8'
a3340 14

# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in
yes) AM_DEFAULT_VERBOSITY=0;;
no)  AM_DEFAULT_VERBOSITY=1;;
*)   AM_DEFAULT_VERBOSITY=0;;
esac
AM_BACKSLASH='\'


a4803 2


a4823 8
        case "$host_os" in
    hpux*)

$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h

      ;;
  esac

d4833 2
a4834 2
#         define __EXTENSIONS__ 1
          $ac_includes_default
d4864 24
a4887 3
if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
d4889 1
a4889 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
a4890 7
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a4891 3
int
main ()
{
d4893 13
a4905 193
  ;
  return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
else
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi






ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d5570 6
a5575 12
# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
if test "$am_t" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
d5577 3
a5579 6


if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
a5581 1
    ac_pattern="Autoconf.*'x'"
a5583 10
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
else
  ac_cv_prog_gcc_traditional=no
fi
rm -f conftest*
d5585 3
d5589 3
a5591 5
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
d5593 73
a5665 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5667 1
a5667 1
rm -f conftest*
a5668 7
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d5670 6
d5677 1
d5679 1
d5681 13
a5694 4
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d5696 13
a5708 16




case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d5711 12
d5725 8
a5733 10
int
main ()
{
#warning foo
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cpp_warning=yes
d5735 2
a5736 2
  ntp_cv_cpp_warning=no

d5738 1
a5738 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5740 2
a5741 15
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
  $as_echo_n "(cached) " >&6
else
d5744 1
a5744 9

int
main ()
{
void foo(void) __attribute__((__noreturn__));

  ;
  return 0;
}
d5746 3
a5748 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cc_attribute=yes
d5750 3
a5752 2
  ntp_cv_cc_attribute=no

d5754 1
a5754 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5756 5
a5761 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)
d5763 2
a5764 1
$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
d5766 2
a5767 11
esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
d5769 13
d5784 8
d5793 5
a5797 3
int
main ()
{
d5799 5
a5803 3
  ;
  return 0;
}
d5805 3
a5807 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Wstrict_overflow=yes
d5809 3
a5811 2
  ntp_cv_gcc_Wstrict_overflow=no

d5813 1
a5813 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5815 10
d5826 14
a5839 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
d5842 34
d5877 18
a5894 1
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5896 93
d5994 35
d6033 5
a6037 5
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

d6039 5
a6043 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d6046 19
a6064 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
d6067 26
d6094 8
a6101 4
	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6103 4
a6106 2
			#include <stdlib.h>
			#include <stdio.h>
d6108 6
d6117 1
a6117 23

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


d6122 12
a6133 8
if ac_fn_c_try_link "$LINENO"; then :

		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d6135 16
d6152 2
a6153 1
  ntp_cv_gc_sections_runs=no
d6156 20
a6175 4
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    CFLAGS="$origCFLAGS"
	    { origCFLAGS=; unset origCFLAGS;}
d6177 7
d6185 9
a6193 10
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
$as_echo "$ntp_cv_gc_sections_runs" >&6; }
    case "$ntp_cv_gc_sections_runs" in
     yes)
	LDADD_LIBNTP="-Wl,--gc-sections"
	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
	;;
     no)
	LDADD_LIBNTP=
d6196 14
a6209 21
    CFLAGS_NTP="$CFLAGS_NTP -Wall"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
    case "$ntp_cv_gcc_Winit_self" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
    esac
    case "$ntp_cv_gcc_Wstrict_overflow" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
    esac
    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
d6220 1
a6220 1
	ntp_os_cflags=
a6233 2
	    # XXX Only verified thru AIX6.
	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
d6235 1
a6235 4
	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
d6304 1
a6305 1
    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
d6311 3
a6313 4

 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :
a6315 8
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;
d6317 19
a6336 1
if ac_fn_c_try_compile "$LINENO"; then :
d6338 25
a6362 21
	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
a6363 7
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>
a6364 8
int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif
d6366 21
a6386 3
  ;
  return 0;
}
d6388 14
a6401 3
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6404 1
a6404 1
		#include <sys/param.h>
d6409 2
a6410 4
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

d6416 1
a6416 1
  ac_cv_c_bigendian=yes
d6418 1
a6418 1
  ac_cv_c_bigendian=no
d6422 21
a6442 5
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6443 1
#include <limits.h>
d6445 7
d6455 1
a6455 4
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

d6460 40
a6499 3
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6500 1
#include <limits.h>
d6502 7
d6512 1
a6512 4
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

d6517 18
a6534 2
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
d6536 1
a6536 1
  ac_cv_c_bigendian=no
d6538 9
a6546 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6547 23
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;
a6548 20
int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
a6549 8
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
a6550 8
	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;
d6552 15
a6566 3
  ;
  return 0;
}
a6567 8
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a6568 1
    fi
a6569 9
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)
d6571 1
a6571 1
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
a6572 5
     ;; #(
   *)
     as_fn_error $? "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac
d6574 9
a6582 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
$as_echo_n "checking for working volatile... " >&6; }
if ${ac_cv_c_volatile+:} false; then :
  $as_echo_n "(cached) " >&6
d6584 4
a6587 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a6588 3
int
main ()
{
d6590 7
a6596 6
volatile int x;
int * volatile y = (int *) 0;
return !x && !y;
  ;
  return 0;
}
d6598 1
a6598 2
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_volatile=yes
d6600 1
a6600 3
  ac_cv_c_volatile=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6601 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
$as_echo "$ac_cv_c_volatile" >&6; }
if test $ac_cv_c_volatile = no; then
d6603 1
a6603 1
$as_echo "#define volatile /**/" >>confdefs.h
a6604 1
fi
d6606 7
a6612 35
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
d6614 1
a6614 2
if ac_fn_c_try_cpp "$LINENO"; then :

d6616 1
a6616 2
  # Broken: fails on valid input.
continue
a6617 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6619 10
a6628 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
d6630 1
a6630 3
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
d6632 1
a6632 3
  # Passes both tests.
ac_preproc_ok=:
break
a6633 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6636 21
a6656 4
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
d6659 1
a6659 2
    done
    ac_cv_prog_CPP=$CPP
d6661 32
a6692 24
fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6693 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6695 1
a6695 3
else
  # Broken: fails on valid input.
continue
a6696 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6698 14
a6711 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
a6712 9
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext
a6713 4
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
a6714 5
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
d6717 2
a6718 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6720 3
a6724 10
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
d6726 5
a6730 24
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6731 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6733 1
a6733 3
else
  # Broken: fails on valid input.
continue
d6735 2
a6736 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6738 2
a6739 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
d6741 2
a6742 7
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
d6744 7
a6750 1
rm -f conftest.err conftest.i conftest.$ac_ext
a6751 5
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
d6753 6
a6759 2
    done
    ac_cv_prog_CPP=$CPP
d6762 8
a6769 3
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
d6771 5
a6775 19
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6776 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6778 1
a6778 3
else
  # Broken: fails on valid input.
continue
d6780 2
a6781 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6783 29
a6811 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
a6812 9
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext
a6813 4
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
a6814 5
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
a6816 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6818 10
a6827 17
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CXX+:} false; then :
d6830 2
a6831 2
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
d6833 9
a6841 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d6844 30
d6875 1
a6875 7
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d6877 8
d6887 7
a6893 12
    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
d6896 2
a6897 2
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
d6899 9
a6907 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d6910 2
a6911 9
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a6913 2
  test -n "$ac_ct_CXX" && break
done
d6915 3
a6917 12
  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi
a6918 26
  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done
d6920 7
a6926 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if ${ac_cv_cxx_compiler_gnu+:} false; then :
d6929 1
a6929 9
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif
a6930 6
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
d6932 8
a6939 1
  ac_compiler_gnu=no
a6940 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d6943 17
a6959 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if ${ac_cv_prog_cxx_g+:} false; then :
d6962 3
a6964 5
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6967 7
d6977 1
a6977 1

d6982 2
a6983 2
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
d6985 11
a6995 11
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
a6996 1
if ac_fn_cxx_try_compile "$LINENO"; then :
d6998 1
a6998 5
else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d7000 1
a7000 3
int
main ()
{
d7002 6
a7007 3
  ;
  return 0;
}
a7008 32
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7010 2
a7011 1
depcc="$CXX"  am_compiler_list=
d7013 1
a7013 23
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub
d7015 1
a7015 8
  am_cv_CXX_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac
d7017 2
a7018 69
  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CXX_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done
a7019 5
  cd ..
  rm -rf conftest.dir
else
  am_cv_CXX_dependencies_compiler_type=none
fi
d7021 7
a7027 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a7028 8
 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  am__fastdepCXX_TRUE=
  am__fastdepCXX_FALSE='#'
else
  am__fastdepCXX_TRUE='#'
  am__fastdepCXX_FALSE=
d7031 1
d7033 8
a7040 26
for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_YACC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a7042 12
fi
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$YACC" && break
a7043 1
test -n "$YACC" || YACC="yacc"
d7045 5
a7049 3
if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
d7051 2
a7052 7
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
fi
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
d7056 1
a7056 1

d7061 3
d7068 13
a7080 71
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
d7082 1
a7082 1
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
d7084 12
a7095 2
rm -f core conftest*

d7097 6
a7102 3
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
d7104 2
a7105 29
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
ntp_vpath_hack="no"
case "$srcdir::${force_ntp_vpath_hack-no}" in
 .::*)
    ;; # VPATH_HACK path is for VPATH builds only.
 *::yes)
    ntp_vpath_hack="yes"
    ;;
 *::*)
    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	ntp_vpath_hack="yes"
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
$as_echo "$ntp_vpath_hack" >&6; }
 if test x$ntp_vpath_hack = xyes; then
  VPATH_HACK_TRUE=
  VPATH_HACK_FALSE='#'
d7107 35
a7141 3
  VPATH_HACK_TRUE='#'
  VPATH_HACK_FALSE=
fi
d7143 5
d7149 1
d7151 1
d7153 18
a7170 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
$as_echo_n "checking for install dir and man conventions... " >&6; }
d7172 8
d7181 5
a7185 5
# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
else
  with_locfile=no
d7187 2
a7188 1
fi
d7190 2
d7193 8
a7200 30
(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genLocInfo -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genLocInfo.i 2> genLocInfo.err
. ./genLocInfo.i

case "$GENLOCINFO" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
$as_echo "in file $GENLOCINFOFILE" >&6; }
    rm genLocInfo.err genLocInfo.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
    ;;
esac

 if test "$CALC_TICKADJ_MS" ; then
  WANT_CALC_TICKADJ_MS_TRUE=
  WANT_CALC_TICKADJ_MS_FALSE='#'
d7202 4
a7205 2
  WANT_CALC_TICKADJ_MS_TRUE='#'
  WANT_CALC_TICKADJ_MS_FALSE=
d7208 3
d7212 6
d7219 1
d7221 1
d7223 1
d7225 1
d7227 2
d7230 1
d7232 1
d7234 9
d7244 2
d7247 11
a7257 216































 if test -z "$NTPSWEEP_NI" ; then
  INSTALL_NTPSWEEP_TRUE=
  INSTALL_NTPSWEEP_FALSE='#'
else
  INSTALL_NTPSWEEP_TRUE='#'
  INSTALL_NTPSWEEP_FALSE=
fi








































# So far, the only shared library we might use is libopts.
# It's a small library - we might as well use a static version of it.
# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then :
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_shared=no
fi









case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac



macro_version='2.4'
macro_revision='1.3293'













ltmain="$ac_aux_dir/ltmain.sh"

# Backslashify metacharacters that are still active within
# double-quoted strings.
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\(["`\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
$as_echo_n "checking how to print strings... " >&6; }
# Test print first, because it will be a builtin if present.
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='print -r --'
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='printf %s\n'
else
  # Use this function as a fallback that always works.
  func_fallback_echo ()
  {
    eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
  }
  ECHO='func_fallback_echo'
fi

# func_echo_all arg...
# Invoke $ECHO with all args, space-separated.
func_echo_all ()
{
    $ECHO ""
}

case "$ECHO" in
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
$as_echo "printf" >&6; } ;;
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
$as_echo "print -r" >&6; } ;;
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
$as_echo "cat" >&6; } ;;
esac














{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
d7316 19
a7334 2
test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"
d7340 1
d7343 1
d7345 11
d7358 4
d7363 3
a7365 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if ${ac_cv_path_FGREP+:} false; then :
  $as_echo_n "(cached) " >&6
d7367 8
a7374 42
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  ac_path_FGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in fgrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
# Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
d7376 8
a7383 8
      $ac_path_FGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_FGREP"; then
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
d7385 5
a7389 1
  ac_cv_path_FGREP=$FGREP
d7391 2
a7393 1
   fi
d7395 1
a7395 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"
d7397 3
d7401 13
a7413 1
test -z "$GREP" && GREP=grep
d7415 4
d7420 20
d7443 1
d7446 1
d7448 1
d7451 7
d7459 1
d7461 1
d7463 8
d7472 2
d7475 15
d7491 2
d7494 12
d7507 3
a7510 3
# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d7512 1
a7512 1
  with_gnu_ld=no
d7514 1
a7514 6

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
d7516 6
a7521 16
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
a7522 8
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
d7524 2
a7525 6
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
d7527 5
a7531 1
if ${lt_cv_path_LD+:} false; then :
d7534 2
a7535 21
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
d7537 35
a7571 3
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi
d7573 5
a7577 27
LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld
d7579 1
d7581 1
d7583 18
d7602 8
d7611 5
d7617 2
d7620 2
d7623 8
a7630 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if ${lt_cv_path_NM+:} false; then :
  $as_echo_n "(cached) " >&6
d7632 1
a7632 42
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
d7634 2
a7636 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$DUMPBIN"; then :
    # Let the user override the test.
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in dumpbin "link -dump"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DUMPBIN+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d7639 8
d7648 5
a7652 4
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
d7654 3
a7656 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d7658 1
d7660 1
a7661 2
    test -n "$DUMPBIN" && break
  done
d7663 5
a7667 9
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in dumpbin "link -dump"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
d7670 213
a7882 2
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d7891 1
a7891 1
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
d7901 4
a7904 4
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
d7911 1
a7911 1
  test -n "$ac_ct_DUMPBIN" && break
d7914 18
a7931 8
  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
d7933 10
a7942 2
    DUMPBIN=$ac_ct_DUMPBIN
  fi
d7945 24
a7968 7
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
    *COFF*)
      DUMPBIN="$DUMPBIN -symbols"
      ;;
    *)
      DUMPBIN=:
      ;;
d7970 2
a7971 1
  fi
d7973 1
a7973 5
  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
fi
test -z "$NM" && NM=nm
d7975 14
d7990 11
d8005 5
a8009 22
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if ${lt_cv_nm_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }
a8010 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi
a8011 8
# find the maximum length of command line arguments
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if ${lt_cv_sys_max_cmd_len+:} false; then :
  $as_echo_n "(cached) " >&6
else
    i=0
  teststring="ABCD"
d8013 2
a8014 8
  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;
a8015 6
  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;
a8016 10
  cygwin* | mingw* | cegcc*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8017 4
  mint*)
    # On MiNT this can take a long time and run out of memory.
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8018 5
  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8019 13
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;
a8020 4
  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;
a8021 56
  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n "$lt_cv_sys_max_cmd_len"; then
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    else
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      for i in 1 2 3 4 5 6 7 8 ; do
        teststring=$teststring$teststring
      done
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
      # If test is not a shell built-in, we'll probably end up computing a
      # maximum length that is only half of the actual maximum length, but
      # we can't tell.
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
	      test $i != 17 # 1/2 MB should be enough
      do
        i=`expr $i + 1`
        teststring=$teststring$teststring
      done
      # Only check the string length outside the loop.
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
      teststring=
      # Add a significant safety factor because C++ compilers can tack on
      # massive amounts of additional arguments before passing them to the
      # linker.  It appears as though 1/2 is a usable value.
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    fi
    ;;
  esac
a8022 1
fi
a8023 8
if test -n $lt_cv_sys_max_cmd_len ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi
max_cmd_len=$lt_cv_sys_max_cmd_len
d8028 1
d8030 3
d8034 2
a8035 3
: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}
d8037 3
a8039 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,b/c, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }
d8041 2
d8044 2
a8045 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }
d8047 3
d8051 8
a8058 2
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
d8060 8
a8067 1
  lt_unset=false
d8070 16
a8089 12
# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
esac
d8099 3
a8101 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
if ${lt_cv_to_host_file_cmd+:} false; then :
d8104 44
a8147 30
  case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
        ;;
    esac
    ;;
  *-*-cygwin* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_noop
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
        ;;
    esac
    ;;
  * ) # unhandled hosts (and "normal" native builds)
    lt_cv_to_host_file_cmd=func_convert_file_noop
    ;;
d8150 12
d8163 12
a8175 3
to_host_file_cmd=$lt_cv_to_host_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
d8181 3
a8183 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
if ${lt_cv_to_tool_file_cmd+:} false; then :
d8186 41
a8226 10
  #assume ordinary cross tools, or native build.
lt_cv_to_tool_file_cmd=func_convert_file_noop
case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
        ;;
    esac
    ;;
d8229 13
d8243 9
a8252 3
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
a8257 29
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
$as_echo_n "checking for $LD option to reload object files... " >&6; }
if ${lt_cv_ld_reload_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_reload_flag='-r'
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
$as_echo "$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    if test "$GCC" != yes; then
      reload_cmds=false
    fi
    ;;
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac
a8266 25
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OBJDUMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d8268 3
a8270 6
fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
d8272 1
a8272 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d8275 200
d8476 3
d8480 6
a8485 4
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
d8488 1
a8488 1
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
d8491 2
a8492 2
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
d8501 1
a8501 1
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
d8511 4
a8514 4
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
d8520 6
a8525 2
  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
d8533 1
a8533 1
    OBJDUMP=$ac_ct_OBJDUMP
a8534 2
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
d8537 9
a8545 1
test -z "$OBJDUMP" && OBJDUMP=objdump
d8547 5
d8558 3
a8560 5


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
if ${lt_cv_deplibs_check_method+:} false; then :
d8563 17
a8579 13
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
d8581 10
a8590 4
case $host_os in
aix[4-9]*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d8592 8
a8599 3
beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d8601 8
a8608 5
bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;
d8610 6
a8615 5
cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;
d8617 10
a8626 14
mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    # Keep this pattern in sync with the one in func_win32_libid.
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;
d8628 4
a8631 5
cegcc*)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;
d8633 5
a8637 3
darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d8639 13
a8651 15
freebsd* | dragonfly*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;
d8653 4
a8656 3
gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d8658 15
a8672 10
haiku*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
d8674 7
a8680 3
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
d8683 29
a8711 2
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
a8713 1
  ;;
d8715 1
a8715 4
interix[3-9]*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  ;;
d8717 8
a8724 9
irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
  ;;
a8725 4
# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8726 7
netbsd*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;
a8727 5
newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;
d8729 50
a8778 2
*nto* | *qnx*)
  lt_cv_deplibs_check_method=pass_all
d8780 4
a8784 7
openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;
a8785 3
osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8786 3
rdos*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8787 3
solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8788 3
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d8790 18
a8807 5
sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
d8809 12
a8820 2
  ncr)
    lt_cv_deplibs_check_method=pass_all
d8822 2
a8823 14
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
a8824 6
  esac
  ;;

tpf*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8827 20
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
$as_echo "$lt_cv_deplibs_check_method" >&6; }

file_magic_glob=
want_nocaseglob=no
if test "$build" = "$host"; then
  case $host_os in
  mingw* | pw32*)
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
      want_nocaseglob=yes
    else
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
    fi
    ;;
  esac
fi

file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown
d8829 3
d8837 16
d8854 1
d8856 3
d8864 29
d8903 2
a8904 2
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
d8907 1
a8907 1
if ${ac_cv_prog_DLLTOOL+:} false; then :
d8910 2
a8911 2
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
d8920 1
a8920 1
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
d8930 4
a8933 4
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
d8941 4
a8944 4
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
d8947 1
a8947 1
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
d8950 2
a8951 2
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
d8960 1
a8960 1
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
d8970 4
a8973 4
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
d8979 2
a8980 2
  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
d8988 1
a8988 1
    DLLTOOL=$ac_ct_DLLTOOL
d8991 1
a8991 1
  DLLTOOL="$ac_cv_prog_DLLTOOL"
d8994 1
a8994 1
test -z "$DLLTOOL" && DLLTOOL=dlltool
d9004 3
a9006 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
d9009 13
a9021 1
  lt_cv_sharedlib_from_linklib_cmd='unknown'
d9024 2
a9025 11
cygwin* | mingw* | pw32* | cegcc*)
  # two different shell functions defined in ltmain.sh
  # decide which to use based on capabilities of $DLLTOOL
  case `$DLLTOOL --help 2>&1` in
  *--identify-strict*)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
    ;;
  *)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
    ;;
  esac
d9027 3
a9029 3
*)
  # fallback: assume linklib IS sharedlib
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
a9030 1
esac
d9032 5
a9036 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
d9038 5
d9044 14
d9059 5
d9065 3
d9069 13
a9081 25


if test -n "$ac_tool_prefix"; then
  for ac_prog in ar
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
d9083 1
a9083 3
done
  done
IFS=$as_save_IFS
d9085 3
a9087 10
fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9089 3
d9093 17
a9109 31
    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d9111 4
a9114 10
fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9116 9
d9126 4
a9129 2
  test -n "$ac_ct_AR" && break
done
d9131 3
a9133 2
  if test "x$ac_ct_AR" = x; then
    AR="false"
d9135 1
a9135 7
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
d9137 1
a9137 1
fi
d9139 5
a9143 2
: ${AR=ar}
: ${AR_FLAGS=cru}
d9145 81
a9235 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @@FILE support" >&5
$as_echo_n "checking for archiver @@FILE support... " >&6; }
if ${lt_cv_ar_at_file+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ar_at_file=no
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a9236 3
int
main ()
{
a9237 25
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  echo conftest.$ac_objext > conftest.lst
      lt_ar_try='$AR $AR_FLAGS libconftest.a @@conftest.lst >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
	# Ensure the archiver fails upon bogus file names.
	rm -f conftest.$ac_objext libconftest.a
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	if test "$ac_status" -ne 0; then
          lt_cv_ar_at_file=@@
        fi
      fi
      rm -f conftest.* libconftest.a
a9238 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a9239 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
$as_echo "$lt_cv_ar_at_file" >&6; }
a9240 5
if test "x$lt_cv_ar_at_file" = xno; then
  archiver_list_spec=
else
  archiver_list_spec=$lt_cv_ar_at_file
fi
d9249 2
a9250 2
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
d9253 1
a9253 1
if ${ac_cv_prog_STRIP+:} false; then :
d9256 2
a9257 2
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d9266 1
a9266 1
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
d9276 4
a9279 4
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
d9287 4
a9290 4
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
d9293 1
a9293 1
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d9296 2
a9297 2
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d9306 1
a9306 1
    ac_cv_prog_ac_ct_STRIP="strip"
d9316 4
a9319 4
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
d9325 2
a9326 2
  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
d9334 1
a9334 1
    STRIP=$ac_ct_STRIP
d9337 40
a9376 1
  STRIP="$ac_cv_prog_STRIP"
d9378 4
a9382 1
test -z "$STRIP" && STRIP=:
d9390 4
a9393 2
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
d9396 1
a9396 1
if ${ac_cv_prog_RANLIB+:} false; then :
d9399 2
a9400 2
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
d9409 1
a9409 1
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
d9419 4
a9422 4
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
d9429 2
d9432 6
a9437 4
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
d9440 1
a9440 1
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
d9443 2
a9444 2
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d9453 1
a9453 1
    ac_cv_prog_ac_ct_RANLIB="ranlib"
d9463 4
a9466 4
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
d9472 6
a9477 2
  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
d9485 1
a9485 1
    RANLIB=$ac_ct_RANLIB
a9486 2
else
  RANLIB="$ac_cv_prog_RANLIB"
d9489 2
a9490 1
test -z "$RANLIB" && RANLIB=:
a9496 4
# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=
a9497 11
if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    ;;
  *)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi
d9499 282
a9780 6
case $host_os in
  darwin*)
    lock_old_archive_extraction=yes ;;
  *)
    lock_old_archive_extraction=no ;;
esac
a11083 11
func_stripname_cnf ()
{
  case ${2} in
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  esac
} # func_stripname_cnf




d14024 3
a14026 8765
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




























































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" ||
   test -n "$runpath_var" ||
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi






  if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

    ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if ${ac_cv_lib_dld_shl_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if ${ac_cv_lib_svld_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if ${ac_cv_lib_dld_dld_link+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi

















striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP" ; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi












  # Report which library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test "$can_build_shared" = "no" && enable_shared=no

  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test "$enable_shared" = yes && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;

  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }




fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if ${ac_cv_prog_CXXCPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
$as_echo "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
  _lt_caught_CXX_error=yes
fi

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

archive_cmds_need_lc_CXX=no
allow_undefined_flag_CXX=
always_export_symbols_CXX=no
archive_expsym_cmds_CXX=
compiler_needs_object_CXX=no
export_dynamic_flag_spec_CXX=
hardcode_direct_CXX=no
hardcode_direct_absolute_CXX=no
hardcode_libdir_flag_spec_CXX=
hardcode_libdir_flag_spec_ld_CXX=
hardcode_libdir_separator_CXX=
hardcode_minus_L_CXX=no
hardcode_shlibpath_var_CXX=unsupported
hardcode_automatic_CXX=no
inherit_rpath_CXX=no
module_cmds_CXX=
module_expsym_cmds_CXX=
link_all_deplibs_CXX=unknown
old_archive_cmds_CXX=$old_archive_cmds
reload_flag_CXX=$reload_flag
reload_cmds_CXX=$reload_cmds
no_undefined_flag_CXX=
whole_archive_flag_spec_CXX=
enable_shared_with_static_runtimes_CXX=no

# Source file extension for C++ test sources.
ac_ext=cpp

# Object file extension for compiled C++ test sources.
objext=o
objext_CXX=$objext

# No sense in running all these tests if we already determined that
# the CXX compiler isn't working.  Some variables (like enable_shared)
# are currently assumed to apply to all compilers on this platform,
# and will be corrupted by setting them based on a non-working compiler.
if test "$_lt_caught_CXX_error" != yes; then
  # Code to be used in simple compile tests
  lt_simple_compile_test_code="int some_variable = 0;"

  # Code to be used in simple link tests
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'

  # ltmain only uses $CC for tagged configurations so make sure $CC is set.






# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


  # save warnings/boilerplate of simple test code
  ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

  ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


  # Allow CC to be a program name with arguments.
  lt_save_CC=$CC
  lt_save_CFLAGS=$CFLAGS
  lt_save_LD=$LD
  lt_save_GCC=$GCC
  GCC=$GXX
  lt_save_with_gnu_ld=$with_gnu_ld
  lt_save_path_LD=$lt_cv_path_LD
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  else
    $as_unset lt_cv_prog_gnu_ld
  fi
  if test -n "${lt_cv_path_LDCXX+set}"; then
    lt_cv_path_LD=$lt_cv_path_LDCXX
  else
    $as_unset lt_cv_path_LD
  fi
  test -z "${LDCXX+set}" || LD=$LDCXX
  CC=${CXX-"c++"}
  CFLAGS=$CXXFLAGS
  compiler=$CC
  compiler_CXX=$CC
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`


  if test -n "$compiler"; then
    # We don't want -fno-exception when compiling C++ code, so set the
    # no_builtin_flag separately
    if test "$GXX" = yes; then
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
    else
      lt_prog_compiler_no_builtin_flag_CXX=
    fi

    if test "$GXX" = yes; then
      # Set up default GNU C++ configuration



# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld







      # Check if GNU C++ uses GNU ld as the underlying linker, since the
      # archiving commands below assume that GNU ld is being used.
      if test "$with_gnu_ld" = yes; then
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'

        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

        # If archive_cmds runs LD, not CC, wlarc should be empty
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
        #     investigate it a little bit more. (MM)
        wlarc='${wl}'

        # ancient GNU ld didn't support --whole-archive et. al.
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
	  $GREP 'no-whole-archive' > /dev/null; then
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
        else
          whole_archive_flag_spec_CXX=
        fi
      else
        with_gnu_ld=no
        wlarc=

        # A generic and very simple default shared library creation
        # command for GNU C++ for the case where it uses the native
        # linker, instead of GNU ld.  If possible, this setting should
        # overridden to take advantage of the native linker features on
        # the platform it is being used on.
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
      fi

      # Commands to make compiler produce verbose output that lists
      # what "hidden" libraries, object files and flags are used when
      # linking a shared library.
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

    else
      GXX=no
      with_gnu_ld=no
      wlarc=
    fi

    # PORTME: fill in a description of your system's C++ link characteristics
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
    ld_shlibs_CXX=yes
    case $host_os in
      aix3*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
      aix[4-9]*)
        if test "$host_cpu" = ia64; then
          # On IA64, the linker does run time linking by default, so we don't
          # have to do anything special.
          aix_use_runtimelinking=no
          exp_sym_flag='-Bexport'
          no_entry_flag=""
        else
          aix_use_runtimelinking=no

          # Test if we are trying to use run time linking or normal
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
          # need to do runtime linking.
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	    for ld_flag in $LDFLAGS; do
	      case $ld_flag in
	      *-brtl*)
	        aix_use_runtimelinking=yes
	        break
	        ;;
	      esac
	    done
	    ;;
          esac

          exp_sym_flag='-bexport'
          no_entry_flag='-bnoentry'
        fi

        # When large executables or shared objects are built, AIX ld can
        # have problems creating the table of contents.  If linking a library
        # or program results in "error TOC overflow" add -mminimal-toc to
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

        archive_cmds_CXX=''
        hardcode_direct_CXX=yes
        hardcode_direct_absolute_CXX=yes
        hardcode_libdir_separator_CXX=':'
        link_all_deplibs_CXX=yes
        file_list_spec_CXX='${wl}-f,'

        if test "$GXX" = yes; then
          case $host_os in aix4.[012]|aix4.[012].*)
          # We only want to do this on AIX 4.2 and lower, the check
          # below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	    # We have reworked collect2
	    :
	  else
	    # We have old collect2
	    hardcode_direct_CXX=unsupported
	    # It fails to find uninstalled libraries when the uninstalled
	    # path is not listed in the libpath.  Setting hardcode_minus_L
	    # to unsupported forces relinking
	    hardcode_minus_L_CXX=yes
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
	    hardcode_libdir_separator_CXX=
	  fi
          esac
          shared_flag='-shared'
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag="$shared_flag "'${wl}-G'
	  fi
        else
          # not using gcc
          if test "$host_cpu" = ia64; then
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	  # chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
          else
	    if test "$aix_use_runtimelinking" = yes; then
	      shared_flag='${wl}-G'
	    else
	      shared_flag='${wl}-bM:SRE'
	    fi
          fi
        fi

        export_dynamic_flag_spec_CXX='${wl}-bexpall'
        # It seems that -bexpall does not export symbols beginning with
        # underscore (_), so it is better to generate a list of symbols to
	# export.
        always_export_symbols_CXX=yes
        if test "$aix_use_runtimelinking" = yes; then
          # Warning - without using the other runtime loading flags (-brtl),
          # -berok will link without error, but may produce a broken library.
          allow_undefined_flag_CXX='-berok'
          # Determine the default libpath from the value encoded in an empty
          # executable.
          if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"

          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
        else
          if test "$host_cpu" = ia64; then
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
	    allow_undefined_flag_CXX="-z nodefs"
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
          else
	    # Determine the default libpath from the value encoded in an
	    # empty executable.
	    if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
	    # Warning - without using the other run time loading flags,
	    # -berok will link without error, but may produce a broken library.
	    no_undefined_flag_CXX=' ${wl}-bernotok'
	    allow_undefined_flag_CXX=' ${wl}-berok'
	    if test "$with_gnu_ld" = yes; then
	      # We only use this code for GNU lds that support --whole-archive.
	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    else
	      # Exported symbols can be pulled into shared objects from archives
	      whole_archive_flag_spec_CXX='$convenience'
	    fi
	    archive_cmds_need_lc_CXX=yes
	    # This is similar to how AIX traditionally builds its shared
	    # libraries.
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
          fi
        fi
        ;;

      beos*)
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	  allow_undefined_flag_CXX=unsupported
	  # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	  # support --undefined.  This deserves some investigation.  FIXME
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	else
	  ld_shlibs_CXX=no
	fi
	;;

      chorus*)
        case $cc_basename in
          *)
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	  ;;
        esac
        ;;

      cygwin* | mingw* | pw32* | cegcc*)
	case $GXX,$cc_basename in
	,cl* | no,cl*)
	  # Native MSVC
	  # hardcode_libdir_flag_spec is actually meaningless, as there is
	  # no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX=' '
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=yes
	  file_list_spec_CXX='@@'
	  # Tell ltmain to make .lib files, not .a files.
	  libext=lib
	  # Tell ltmain to make .dll files, not .so files.
	  shrext_cmds=".dll"
	  # FIXME: Setting linknames here is a bad hack.
	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	    else
	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	    fi~
	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	    linknames='
	  # The linker will not automatically build a static lib if we build a DLL.
	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
	  enable_shared_with_static_runtimes_CXX=yes
	  # Don't use ranlib
	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
	  postlink_cmds_CXX='lt_outputfile="@@OUTPUT@@"~
	    lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	    case $lt_outputfile in
	      *.exe|*.EXE) ;;
	      *)
		lt_outputfile="$lt_outputfile.exe"
		lt_tool_outputfile="$lt_tool_outputfile.exe"
		;;
	    esac~
	    func_to_tool_file "$lt_outputfile"~
	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	      $RM "$lt_outputfile.manifest";
	    fi'
	  ;;
	*)
	  # g++
	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
	  # as there is no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=no
	  enable_shared_with_static_runtimes_CXX=yes

	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	    # If the export-symbols file already is a .def file (1st line
	    # is EXPORTS), use it as is; otherwise, prepend...
	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      cp $export_symbols $output_objdir/$soname.def;
	    else
	      echo EXPORTS > $output_objdir/$soname.def;
	      cat $export_symbols >> $output_objdir/$soname.def;
	    fi~
	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	  else
	    ld_shlibs_CXX=no
	  fi
	  ;;
	esac
	;;
      darwin* | rhapsody*)


  archive_cmds_need_lc_CXX=no
  hardcode_direct_CXX=no
  hardcode_automatic_CXX=yes
  hardcode_shlibpath_var_CXX=unsupported
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  else
    whole_archive_flag_spec_CXX=''
  fi
  link_all_deplibs_CXX=yes
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=func_echo_all
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
    fi

  else
  ld_shlibs_CXX=no
  fi

	;;

      dgux*)
        case $cc_basename in
          ec++*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          ghcx*)
	    # Green Hills C++ Compiler
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      freebsd[12]*)
        # C++ shared libraries reported to be fairly broken before
	# switch to ELF
        ld_shlibs_CXX=no
        ;;

      freebsd-elf*)
        archive_cmds_need_lc_CXX=no
        ;;

      freebsd* | dragonfly*)
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
        # conventions
        ld_shlibs_CXX=yes
        ;;

      gnu*)
        ;;

      haiku*)
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
        link_all_deplibs_CXX=yes
        ;;

      hpux9*)
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        export_dynamic_flag_spec_CXX='${wl}-E'
        hardcode_direct_CXX=yes
        hardcode_minus_L_CXX=yes # Not in the search PATH,
				             # but as the default
				             # location of the library.

        case $cc_basename in
          CC*)
            # FIXME: insert proper C++ library support
            ld_shlibs_CXX=no
            ;;
          aCC*)
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            # Commands to make compiler produce verbose output that lists
            # what "hidden" libraries, object files and flags are used when
            # linking a shared library.
            #
            # There doesn't appear to be a way to prevent this compiler from
            # explicitly linking system object files so we need to strip them
            # from the output so that they don't get included in the library
            # dependencies.
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
            ;;
          *)
            if test "$GXX" = yes; then
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            else
              # FIXME: insert proper C++ library support
              ld_shlibs_CXX=no
            fi
            ;;
        esac
        ;;

      hpux10*|hpux11*)
        if test $with_gnu_ld = no; then
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

          case $host_cpu in
            hppa*64*|ia64*)
              ;;
            *)
	      export_dynamic_flag_spec_CXX='${wl}-E'
              ;;
          esac
        fi
        case $host_cpu in
          hppa*64*|ia64*)
            hardcode_direct_CXX=no
            hardcode_shlibpath_var_CXX=no
            ;;
          *)
            hardcode_direct_CXX=yes
            hardcode_direct_absolute_CXX=yes
            hardcode_minus_L_CXX=yes # Not in the search PATH,
					         # but as the default
					         # location of the library.
            ;;
        esac

        case $cc_basename in
          CC*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          aCC*)
	    case $host_cpu in
	      hppa*64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      ia64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      *)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	    esac
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test $with_gnu_ld = no; then
	        case $host_cpu in
	          hppa*64*)
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          ia64*)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          *)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	        esac
	      fi
	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      interix[3-9]*)
	hardcode_direct_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}-E'
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
	# Instead, shared libraries are loaded at an image base (0x10000000 by
	# default) and relocated if they conflict, which is a slow very memory
	# consuming and fragmenting process.  To avoid this, we pick a random,
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	;;
      irix5* | irix6*)
        case $cc_basename in
          CC*)
	    # SGI C++
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'

	    # Archives containing C++ object files must be created using
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test "$with_gnu_ld" = no; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	      else
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
	      fi
	    fi
	    link_all_deplibs_CXX=yes
	    ;;
        esac
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        inherit_rpath_CXX=yes
        ;;

      linux* | k*bsd*-gnu | kopensolaris*-gnu)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

	    # Archives containing C++ object files must be created using
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
	    ;;
	  icpc* | ecpc* )
	    # Intel C++
	    with_gnu_ld=yes
	    # version 8.0 and above of icpc choke on multiply defined symbols
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
	    # earlier do not add the objects themselves.
	    case `$CC -V 2>&1` in
	      *"Version 7."*)
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	      *)  # Version 8.0 or newer
	        tmp_idyn=
	        case $host_cpu in
		  ia64*) tmp_idyn=' -i_dynamic';;
		esac
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	    esac
	    archive_cmds_need_lc_CXX=no
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    ;;
          pgCC* | pgcpp*)
            # Portland Group C++ compiler
	    case `$CC -V` in
	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
	      prelink_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
	      old_archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
		$RANLIB $oldlib'
	      archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    *) # Version 6 and above use weak symbols
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    esac

	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
            ;;
	  cxx*)
	    # Compaq C++
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'

	    runpath_var=LD_RUN_PATH
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
	    ;;
	  xl* | mpixl* | bgxl*)
	    # IBM XL 8.0 on PPC, with GNU ld
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    if test "x$supports_anon_versioning" = xyes; then
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
		echo "local: *; };" >> $output_objdir/$libname.ver~
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	    fi
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      no_undefined_flag_CXX=' -zdefs'
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	      compiler_needs_object_CXX=yes

	      # Not sure whether something based on
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
	      # would be better.
	      output_verbose_link_cmd='func_echo_all'

	      # Archives containing C++ object files must be created using
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	      # necessary to make sure instantiated templates are included
	      # in the archive.
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	      ;;
	    esac
	    ;;
	esac
	;;

      lynxos*)
        # FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;

      m88k*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
	;;

      mvs*)
        case $cc_basename in
          cxx*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	  *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	esac
	;;

      netbsd*)
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
	  wlarc=
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	fi
	# Workaround some broken pre-1.5 toolchains
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
	;;

      *nto* | *qnx*)
        ld_shlibs_CXX=yes
	;;

      openbsd2*)
        # C++ shared libraries are fairly broken
	ld_shlibs_CXX=no
	;;

      openbsd*)
	if test -f /usr/libexec/ld.so; then
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	  hardcode_direct_absolute_CXX=yes
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
	    export_dynamic_flag_spec_CXX='${wl}-E'
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
	  fi
	  output_verbose_link_cmd=func_echo_all
	else
	  ld_shlibs_CXX=no
	fi
	;;

      osf3* | osf4* | osf5*)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    hardcode_libdir_separator_CXX=:

	    # Archives containing C++ object files must be created using
	    # the KAI C++ compiler.
	    case $host in
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
	    esac
	    ;;
          RCC*)
	    # Rational C++ 2.4.1
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          cxx*)
	    case $host in
	      osf3*)
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
		;;
	      *)
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
	          echo "-hidden">> $lib.exp~
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
	          $RM $lib.exp'
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
		;;
	    esac

	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
	  *)
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	      case $host in
	        osf3*)
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	        *)
	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	      esac

	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	      hardcode_libdir_separator_CXX=:

	      # Commands to make compiler produce verbose output that lists
	      # what "hidden" libraries, object files and flags are used when
	      # linking a shared library.
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      psos*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      sunos4*)
        case $cc_basename in
          CC*)
	    # Sun C++ 4.x
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          lcc*)
	    # Lucid
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      solaris*)
        case $cc_basename in
          CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
            archive_cmds_need_lc_CXX=yes
	    no_undefined_flag_CXX=' -zdefs'
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	    hardcode_libdir_flag_spec_CXX='-R$libdir'
	    hardcode_shlibpath_var_CXX=no
	    case $host_os in
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
	      *)
		# The compiler driver will combine and reorder linker options,
		# but understands `-z linker_flag'.
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
	        ;;
	    esac
	    link_all_deplibs_CXX=yes

	    output_verbose_link_cmd='func_echo_all'

	    # Archives containing C++ object files must be created using
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	    ;;
          gcx*)
	    # Green Hills C++ Compiler
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'

	    # The C++ compiler must be used to create the archive.
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
	    ;;
          *)
	    # GNU C++ compiler with Solaris linker
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      else
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
	        # platform.
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      fi

	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
	      case $host_os in
		solaris2.[0-5] | solaris2.[0-5].*) ;;
		*)
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
		  ;;
	      esac
	    fi
	    ;;
        esac
        ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag_CXX='${wl}-z,text'
      archive_cmds_need_lc_CXX=no
      hardcode_shlibpath_var_CXX=no
      runpath_var='LD_RUN_PATH'

      case $cc_basename in
        CC*)
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
      esac
      ;;

      sysv5* | sco3.2v5* | sco5v6*)
	# Note: We can NOT use -z defs as we might desire, because we do not
	# link with -lc, and that would cause any symbols used from libc to
	# always be unresolved, which means just about no library would
	# ever link correctly.  If we're not using GNU ld we use -z text
	# though, which does catch some bad symbols but isn't as heavy-handed
	# as -z defs.
	no_undefined_flag_CXX='${wl}-z,text'
	allow_undefined_flag_CXX='${wl}-z,nodefs'
	archive_cmds_need_lc_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
	hardcode_libdir_separator_CXX=':'
	link_all_deplibs_CXX=yes
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
	runpath_var='LD_RUN_PATH'

	case $cc_basename in
          CC*)
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
	      '"$old_archive_cmds_CXX"
	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
	      '"$reload_cmds_CXX"
	    ;;
	  *)
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    ;;
	esac
      ;;

      tandem*)
        case $cc_basename in
          NCC*)
	    # NonStop-UX NCC 3.20
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      vxworks*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      *)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
    test "$ld_shlibs_CXX" = no && can_build_shared=no

    GCC_CXX="$GXX"
    LD_CXX="$LD"

    ## CAVEAT EMPTOR:
    ## There is no encapsulation within the following macros, do not change
    ## the running order or otherwise move them around unless you know exactly
    ## what you are doing...
    # Dependencies to place before and after the object being linked:
predep_objects_CXX=
postdep_objects_CXX=
predeps_CXX=
postdeps_CXX=
compiler_lib_search_path_CXX=

cat > conftest.$ac_ext <<_LT_EOF
class Foo
{
public:
  Foo (void) { a = 0; }
private:
  int a;
};
_LT_EOF


_lt_libdeps_save_CFLAGS=$CFLAGS
case "$CC $CFLAGS " in #(
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
esac

if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # Parse the compiler output and extract the necessary
  # objects, libraries and library flags.

  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  pre_test_object_deps_done=no

  for p in `eval "$output_verbose_link_cmd"`; do
    case ${prev}${p} in

    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       if test $p = "-L" ||
          test $p = "-R"; then
	 prev=$p
	 continue
       fi

       # Expand the sysroot to ease extracting the directories later.
       if test -z "$prev"; then
         case $p in
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
         esac
       fi
       case $p in
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
       esac
       if test "$pre_test_object_deps_done" = no; then
	 case ${prev} in
	 -L | -R)
	   # Internal compiler library paths should come after those
	   # provided the user.  The postdeps already come after the
	   # user supplied libs so there is no need to process them.
	   if test -z "$compiler_lib_search_path_CXX"; then
	     compiler_lib_search_path_CXX="${prev}${p}"
	   else
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
	   fi
	   ;;
	 # The "-l" case would never come before the object being
	 # linked, so don't bother handling this case.
	 esac
       else
	 if test -z "$postdeps_CXX"; then
	   postdeps_CXX="${prev}${p}"
	 else
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
	 fi
       fi
       prev=
       ;;

    *.lto.$objext) ;; # Ignore GCC LTO objects
    *.$objext)
       # This assumes that the test object file only shows up
       # once in the compiler output.
       if test "$p" = "conftest.$objext"; then
	 pre_test_object_deps_done=yes
	 continue
       fi

       if test "$pre_test_object_deps_done" = no; then
	 if test -z "$predep_objects_CXX"; then
	   predep_objects_CXX="$p"
	 else
	   predep_objects_CXX="$predep_objects_CXX $p"
	 fi
       else
	 if test -z "$postdep_objects_CXX"; then
	   postdep_objects_CXX="$p"
	 else
	   postdep_objects_CXX="$postdep_objects_CXX $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling CXX test program"
fi

$RM -f confest.$objext
CFLAGS=$_lt_libdeps_save_CFLAGS

# PORTME: override above test on systems where it is broken
case $host_os in
interix[3-9]*)
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  # hack all around it, let's just trust "g++" to DTRT.
  predep_objects_CXX=
  postdep_objects_CXX=
  postdeps_CXX=
  ;;

linux*)
  case `$CC -V 2>&1 | sed 5q` in
  *Sun\ C*)
    # Sun C++ 5.9

    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;

solaris*)
  case $cc_basename in
  CC* | sunCC*)
    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;
esac


case " $postdeps_CXX " in
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
esac
 compiler_lib_search_dirs_CXX=
if test -n "${compiler_lib_search_path_CXX}"; then
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
fi































    lt_prog_compiler_wl_CXX=
lt_prog_compiler_pic_CXX=
lt_prog_compiler_static_CXX=


  # C++ specific cases for pic, static, wl, etc.
  if test "$GXX" = yes; then
    lt_prog_compiler_wl_CXX='-Wl,'
    lt_prog_compiler_static_CXX='-static'

    case $host_os in
    aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_CXX='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic_CXX='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | cygwin* | os2* | pw32* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_CXX='-fno-common'
      ;;
    *djgpp*)
      # DJGPP does not support shared libraries at all
      lt_prog_compiler_pic_CXX=
      ;;
    haiku*)
      # PIC is the default for Haiku.
      # The "-static" flag exists, but is broken.
      lt_prog_compiler_static_CXX=
      ;;
    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_CXX=-Kconform_pic
      fi
      ;;
    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	;;
      *)
	lt_prog_compiler_pic_CXX='-fPIC'
	;;
      esac
      ;;
    *qnx* | *nto*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_CXX='-fPIC -shared'
      ;;
    *)
      lt_prog_compiler_pic_CXX='-fPIC'
      ;;
    esac
  else
    case $host_os in
      aix[4-9]*)
	# All AIX code is PIC.
	if test "$host_cpu" = ia64; then
	  # AIX 5 now supports IA64 processor
	  lt_prog_compiler_static_CXX='-Bstatic'
	else
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
	fi
	;;
      chorus*)
	case $cc_basename in
	cxch68*)
	  # Green Hills C++ Compiler
	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
	  ;;
	esac
	;;
      mingw* | cygwin* | os2* | pw32* | cegcc*)
	# This hack is so that the source file can tell whether it is being
	# built for inclusion in a dll (and should export symbols for example).
	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
	;;
      dgux*)
	case $cc_basename in
	  ec++*)
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  ghcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      freebsd* | dragonfly*)
	# FreeBSD uses GNU C++
	;;
      hpux9* | hpux10* | hpux11*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    if test "$host_cpu" != ia64; then
	      lt_prog_compiler_pic_CXX='+Z'
	    fi
	    ;;
	  aCC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    case $host_cpu in
	    hppa*64*|ia64*)
	      # +Z the default
	      ;;
	    *)
	      lt_prog_compiler_pic_CXX='+Z'
	      ;;
	    esac
	    ;;
	  *)
	    ;;
	esac
	;;
      interix*)
	# This is c89, which is MS Visual C++ (no shared libs)
	# Anyone wants to do a port?
	;;
      irix5* | irix6* | nonstopux*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='-non_shared'
	    # CC pic flag -KPIC is the default.
	    ;;
	  *)
	    ;;
	esac
	;;
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
	case $cc_basename in
	  KCC*)
	    # KAI C++ Compiler
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  ecpc* )
	    # old Intel C++ for x86_64 which still supported -KPIC.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  icpc* )
	    # Intel C++, used to be incompatible with GCC.
	    # ICC 10 doesn't accept -KPIC any more.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  pgCC* | pgcpp*)
	    # Portland Group C++ compiler
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fpic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  cxx*)
	    # Compaq C++
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
	    # IBM XL 8.0, 9.0 on PPC and BlueGene
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-qpic'
	    lt_prog_compiler_static_CXX='-qstaticlink'
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      lt_prog_compiler_pic_CXX='-KPIC'
	      lt_prog_compiler_static_CXX='-Bstatic'
	      lt_prog_compiler_wl_CXX='-Qoption ld '
	      ;;
	    esac
	    ;;
	esac
	;;
      lynxos*)
	;;
      m88k*)
	;;
      mvs*)
	case $cc_basename in
	  cxx*)
	    lt_prog_compiler_pic_CXX='-W c,exportall'
	    ;;
	  *)
	    ;;
	esac
	;;
      netbsd*)
	;;
      *qnx* | *nto*)
        # QNX uses GNU C++, but need to define -shared option too, otherwise
        # it will coredump.
        lt_prog_compiler_pic_CXX='-fPIC -shared'
        ;;
      osf3* | osf4* | osf5*)
	case $cc_basename in
	  KCC*)
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    ;;
	  RCC*)
	    # Rational C++ 2.4.1
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  cxx*)
	    # Digital/Compaq C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      psos*)
	;;
      solaris*)
	case $cc_basename in
	  CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    lt_prog_compiler_wl_CXX='-Qoption ld '
	    ;;
	  gcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-PIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sunos4*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.x
	    lt_prog_compiler_pic_CXX='-pic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  lcc*)
	    # Lucid
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	esac
	;;
      tandem*)
	case $cc_basename in
	  NCC*)
	    # NonStop-UX NCC 3.20
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      vxworks*)
	;;
      *)
	lt_prog_compiler_can_build_shared_CXX=no
	;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_CXX=
    ;;
  *)
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works_CXX=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works_CXX=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
    case $lt_prog_compiler_pic_CXX in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
     esac
else
    lt_prog_compiler_pic_CXX=
     lt_prog_compiler_can_build_shared_CXX=no
fi

fi





#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works_CXX=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_cv_prog_compiler_static_works_CXX=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  case $host_os in
  aix[4-9]*)
    # If we're using GNU nm, then we don't want the "-C" option.
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    # Also, AIX nm treats weak defined symbols like other global defined
    # symbols, whereas GNU nm marks them as "W".
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    else
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    fi
    ;;
  pw32*)
    export_symbols_cmds_CXX="$ltdll_cmds"
    ;;
  cygwin* | mingw* | cegcc*)
    case $cc_basename in
    cl*) ;;
    *)
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
      ;;
    esac
    ;;
  *)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    ;;
  esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
test "$ld_shlibs_CXX" = no && can_build_shared=no

with_gnu_ld_CXX=$with_gnu_ld






#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_CXX" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_CXX=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_CXX in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  $RM conftest*
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext

	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
	  soname=conftest
	  lib=conftest
	  libobjs=conftest.$ac_objext
	  deplibs=
	  wl=$lt_prog_compiler_wl_CXX
	  pic_flag=$lt_prog_compiler_pic_CXX
	  compiler_flags=-v
	  linker_flags=-v
	  verstring=
	  output_objdir=.
	  libname=conftest
	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
	  allow_undefined_flag_CXX=
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	  then
	    lt_cv_archive_cmds_need_lc_CXX=no
	  else
	    lt_cv_archive_cmds_need_lc_CXX=yes
	  fi
	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
	else
	  cat conftest.err 1>&5
	fi
	$RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
      ;;
    esac
  fi
  ;;
esac
































































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$cc_basename in
  yes,*)
    # gcc
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'

      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    dynamic_linker='Win32 ld.exe'
    ;;

  *,cl*)
    # Native MSVC
    libname_spec='$name'
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'

    case $build_os in
    mingw*)
      sys_lib_search_path_spec=
      lt_save_ifs=$IFS
      IFS=';'
      for lt_path in $LIB
      do
        IFS=$lt_save_ifs
        # Let DOS variable expansion print the short 8.3 style file name.
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @@echo %~si"`
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
      done
      IFS=$lt_save_ifs
      # Convert to MSYS style.
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
      ;;
    cygwin*)
      # Convert to unix form, then to dos form, then back to unix form
      # but this time dos style (no spaces!) so that the unix form looks
      # like /cygdrive/c/PROGRA~1:/cygdr...
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      ;;
    *)
      sys_lib_search_path_spec="$LIB"
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      fi
      # FIXME: find the short name or the path components, as spaces are
      # common. (e.g. "Program Files" -> "PROGRA~1")
      ;;
    esac

    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
    dynamic_linker='Win32 link.exe'
    ;;

  *)
    # Assume MSVC wrapper
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    dynamic_linker='Win32 ld.exe'
    ;;
  esac
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

haiku*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  dynamic_linker="$host_os runtime_loader"
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  postinstall_cmds='chmod 555 $lib'
  # or fails outright, so override atomically:
  install_override_mode=555
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no

  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi






































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action_CXX=
if test -n "$hardcode_libdir_flag_spec_CXX" ||
   test -n "$runpath_var_CXX" ||
   test "X$hardcode_automatic_CXX" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct_CXX" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_CXX=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_CXX=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_CXX=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
$as_echo "$hardcode_action_CXX" >&6; }

if test "$hardcode_action_CXX" = relink ||
   test "$inherit_rpath_CXX" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi







  fi # test -n "$compiler"

  CC=$lt_save_CC
  CFLAGS=$lt_save_CFLAGS
  LDCXX=$LD
  LD=$lt_save_LD
  GCC=$lt_save_GCC
  with_gnu_ld=$lt_save_with_gnu_ld
  lt_cv_path_LDCXX=$lt_cv_path_LD
  lt_cv_path_LD=$lt_save_path_LD
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
fi # test "$_lt_caught_CXX_error" != yes

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu













        ac_config_commands="$ac_config_commands libtool"




# Only expand once:




# NTP has (so far) been relying on leading-edge autogen, which
# means we need the appropriate corresponding libopts as well.
# Therefore, by default:
# - use the version of libopts we ship with
# - do not install it
# - build a static copy (AC_DISABLE_SHARED - done earlier)
case "${enable_local_libopts+set}" in
 set) ;;
 *) enable_local_libopts=yes ;;
esac
case "${enable_libopts_install+set}" in
 set) ;;
 *) enable_libopts_install=no ;;
esac
enable_nls=no
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi



  ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
if eval \${$as_ac_Header+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$as_ac_Header=yes"
else
  eval "$as_ac_Header=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_ac_Header
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dir; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' x; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi


  # =================
  # AC_CHECK_HEADERS
  # =================
  for ac_header in  \
      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
      fcntl.h       libgen.h      libintl.h     memory.h \
      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
      unistd.h      utime.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  for ac_header in stdarg.h     varargs.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_arg_hdr=true;break
else
  lo_have_arg_hdr=false
fi

done


  for ac_header in string.h     strings.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_str_hdr=true;break
else
  lo_have_str_hdr=false
fi

done


  for ac_header in limits.h     sys/limits.h  values.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_lim_hdr=true;break
else
  lo_have_lim_hdr=false
fi

done


  for ac_header in inttypes.h   stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_typ_hdr=true;break
else
  lo_have_typ_hdr=false
fi

done


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
$as_echo_n "checking for working stdnoreturn.h... " >&6; }
if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
            #include <stdnoreturn.h>
            /* Do not check for 'noreturn' after the return type.
               C11 allows it, but it's rarely done that way
               and circa-2012 bleeding-edge GCC rejects it when given
               -Werror=old-style-declaration.  */
            noreturn void foo1 (void) { exit (0); }
            _Noreturn void foo2 (void) { exit (0); }
            int testit (int argc, char **argv) {
              if (argc & 1)
                return 0;
              (argv[0][0] ? foo1 : foo2) ();
            }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  gl_cv_header_working_stdnoreturn_h=yes
else
  gl_cv_header_working_stdnoreturn_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }

  if test $gl_cv_header_working_stdnoreturn_h = yes; then
    STDNORETURN_H=''
  else
    STDNORETURN_H='stdnoreturn.h'
  fi


   if test -n "$STDNORETURN_H"; then
  GL_GENERATE_STDNORETURN_H_TRUE=
  GL_GENERATE_STDNORETURN_H_FALSE='#'
else
  GL_GENERATE_STDNORETURN_H_TRUE='#'
  GL_GENERATE_STDNORETURN_H_FALSE=
fi



  # ----------------------------------------------------------------------
  # check for various programs used during the build.
  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  # ----------------------------------------------------------------------
  for ac_header in runetype.h wchar.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  $ac_includes_default
  #if HAVE_RUNETYPE_H
  # include <runetype.h>
  #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  # Check whether --enable-nls was given.
if test "${enable_nls+set}" = set; then :
  enableval=$enable_nls;
fi

  if test "x$enable_nls" != "xno" && \
  test "X${ac_cv_header_libintl_h}" = Xyes; then :


$as_echo "#define ENABLE_NLS 1" >>confdefs.h

fi

  # --------------------------------------------
  # Verify certain entries from AC_CHECK_HEADERS
  # --------------------------------------------
  ${lo_have_arg_hdr} || \
    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5

  ${lo_have_str_hdr} || \
    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5

  ${lo_have_lim_hdr} || \
    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5

  ${lo_have_typ_hdr} || \
    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5

  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  do eval as_ac_var=\${ac_cv_header_${f}_h}
     test "X${as_ac_var}" = Xyes || {
       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
     }
  done
  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
    echo '#include <stdint.h>' > inttypes.h

  # ----------------------------------------------------------------------
  # Checks for typedefs
  # ----------------------------------------------------------------------
  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
if test "x$ac_cv_type_wchar_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WCHAR_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
    $ac_includes_default
    #if HAVE_RUNETYPE_H
    # include <runetype.h>
    #endif
    #if HAVE_WCHAR_H
    # include <wchar.h>
    #endif

"
if test "x$ac_cv_type_wint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WINT_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
if test "x$ac_cv_type_int8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
if test "x$ac_cv_type_uint8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
if test "x$ac_cv_type_int16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
if test "x$ac_cv_type_uint16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
if test "x$ac_cv_type_int32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
if test "x$ac_cv_type_uint32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
if test "x$ac_cv_type_intptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
if test "x$ac_cv_type_uint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PID_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SIZE_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi

  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
$as_echo_n "checking size of char*... " >&6; }
if ${ac_cv_sizeof_charp+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_charp" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (char*)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_charp=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
$as_echo "$ac_cv_sizeof_charp" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHARP $ac_cv_sizeof_charp
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF



  # ------------
  # AC_CHECK_LIB
  # ------------
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
$as_echo_n "checking for pathfind in -lgen... " >&6; }
if ${ac_cv_lib_gen_pathfind+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgen  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pathfind ();
int
main ()
{
return pathfind ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gen_pathfind=yes
else
  ac_cv_lib_gen_pathfind=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGEN 1
_ACEOF

  LIBS="-lgen $LIBS"

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
$as_echo_n "checking for gettext in -lintl... " >&6; }
if ${ac_cv_lib_intl_gettext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lintl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gettext ();
int
main ()
{
return gettext ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_intl_gettext=yes
else
  ac_cv_lib_intl_gettext=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
$as_echo "$ac_cv_lib_intl_gettext" >&6; }
if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBINTL 1
_ACEOF

  LIBS="-lintl $LIBS"

fi

  for ac_func in vprintf
do :
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
if test "x$ac_cv_func_vprintf" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VPRINTF 1
_ACEOF

ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
if test "x$ac_cv_func__doprnt" = xyes; then :

$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h

fi

fi
done


  for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
                 strrchr strsignal fchmod fstat chmod
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

  while :
  do
      POSIX_SHELL=`which bash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`which dash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=/usr/xpg4/bin/sh
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`/bin/sh -c '
          exec 2>/dev/null
          if ! true ; then exit 1 ; fi
          echo /bin/sh'`
      test -x "$POSIX_SHELL" && break
      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  done

cat >>confdefs.h <<_ACEOF
#define POSIX_SHELL "${POSIX_SHELL}"
_ACEOF





  LIBOPTS_BUILD_BLOCKED=true


  NEED_LIBOPTS_DIR=''

  # Check whether --enable-local-libopts was given.
if test "${enable_local_libopts+set}" = set; then :
  enableval=$enable_local_libopts;
    if test x$enableval = xyes ; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
       NEED_LIBOPTS_DIR=true
       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
    fi
fi


  # Check whether --enable-libopts-install was given.
if test "${enable_libopts_install+set}" = set; then :
  enableval=$enable_libopts_install;
fi

   if test "X${enable_libopts_install}" = Xyes; then
  INSTALL_LIBOPTS_TRUE=
  INSTALL_LIBOPTS_FALSE='#'
else
  INSTALL_LIBOPTS_TRUE='#'
  INSTALL_LIBOPTS_FALSE=
fi


  if test -z "${NEED_LIBOPTS_DIR}" ; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
$as_echo_n "checking whether autoopts-config can be found... " >&6; }

# Check whether --with-autoopts-config was given.
if test "${with_autoopts_config+set}" = set; then :
  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
$as_echo_n "checking whether autoopts-config is specified... " >&6; }
if ${lo_cv_with_autoopts_config+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if autoopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=autoopts-config
        elif libopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=libopts-config
        else lo_cv_with_autoopts_config=no ; fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
$as_echo "$lo_cv_with_autoopts_config" >&6; }

fi
 # end of AC_ARG_WITH

     if ${lo_cv_test_autoopts+:} false; then :
  $as_echo_n "(cached) " >&6
else

        if test -z "${lo_cv_with_autoopts_config}" \
                -o X"${lo_cv_with_autoopts_config}" = Xno
        then
           if autoopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=autoopts-config
           elif libopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=libopts-config
           else lo_cv_with_autoopts_config=false ; fi
        fi
        lo_cv_test_autoopts=`
            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
        then lo_cv_test_autoopts=no ; fi

fi
 # end of CACHE_VAL
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
$as_echo "${lo_cv_test_autoopts}" >&6; }

     if test "X${lo_cv_test_autoopts}" != Xno
     then
        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
     else
        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
        NEED_LIBOPTS_DIR=true
     fi
  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
    NEED_LIBOPTS_DIR=''
  fi
   if test -n "${NEED_LIBOPTS_DIR}"; then
  NEED_LIBOPTS_TRUE=
  NEED_LIBOPTS_FALSE='#'
else
  NEED_LIBOPTS_TRUE='#'
  NEED_LIBOPTS_FALSE=
fi



  LIBOPTS_DIR=sntp/libopts


# end of AC_DEFUN of LIBOPTS_CHECK_COMMON

  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD




# Check whether --enable-local-libevent was given.
if test "${enable_local_libevent+set}" = set; then :
  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
else
  ntp_use_local_libevent=${ntp_use_local_libevent-detect}

fi






# Expose a cross-compilation indicator to makefiles
 if test $build != $host; then
  NTP_CROSSCOMPILE_TRUE=
  NTP_CROSSCOMPILE_FALSE='#'
else
  NTP_CROSSCOMPILE_TRUE='#'
  NTP_CROSSCOMPILE_FALSE=
fi



ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi


            # Check whether --enable-c99-snprintf was given.
if test "${enable_c99_snprintf+set}" = set; then :
  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
else
  force_c99_snprintf=no

fi

    case "$force_c99_snprintf" in
     yes)
	hw_force_rpl_snprintf=yes
	hw_force_rpl_vsnprintf=yes
    esac






  for ac_header in $ac_header_list
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done







      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
if test "x$ac_cv_func_vsnprintf" = xyes; then :
  hw_cv_func_vsnprintf=yes
else
  hw_cv_func_vsnprintf=no
fi

  if test "$hw_cv_func_vsnprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
if ${hw_cv_func_vsnprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_vsnprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if HAVE_STDARG_H
          #include <stdarg.h>
          #endif
          #include <stdio.h>
          static int testprintf(char *buf, size_t size, const char *format, ...)
          {
            int result;
            va_list ap;
            va_start(ap, format);
            result = vsnprintf(buf, size, format, ap);
            va_end(ap);
            return result;
          }
int
main ()
{
char buf[43];
          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_vsnprintf_c99=yes
else
  hw_cv_func_vsnprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
else
  hw_cv_func_vsnprintf_c99=no
fi

$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
  hw_use_rpl_vsnprintf=yes
else
  hw_use_rpl_vsnprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
$as_echo "$hw_use_rpl_vsnprintf" >&6; }
  if test "$hw_use_rpl_vsnprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_vsnprintf=no} = no; then :

$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h

fi
    for ac_header in inttypes.h locale.h stddef.h stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
_ACEOF


fi
ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
_ACEOF


fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
$as_echo_n "checking for long double... " >&6; }
if ${ac_cv_type_long_double+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$GCC" = yes; then
       ac_cv_type_long_double=yes
     else
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* The Stardent Vistra knows sizeof (long double), but does
		 not support it.  */
	      long double foo = 0.0L;
int
main ()
{
static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
	      sizeof (double) <= sizeof (long double))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_long_double=yes
else
  ac_cv_type_long_double=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
$as_echo "$ac_cv_type_long_double" >&6; }
  if test $ac_cv_type_long_double = yes; then

$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
$as_echo_n "checking for long long int... " >&6; }
if ${ac_cv_type_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  			if test "$cross_compiling" = yes; then :
  ac_cv_type_long_long_int=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
	       #ifndef LLONG_MAX
	       # define HALF \
			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
	       # define LLONG_MAX (HALF - 1 + HALF)
	       #endif
int
main ()
{
long long int n = 1;
	       int i;
	       for (i = 0; ; i++)
		 {
		   long long int m = n << i;
		   if (m >> i != n)
		     return 1;
		   if (LLONG_MAX / 2 < m)
		     break;
		 }
	       return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_type_long_long_int=yes
else
  ac_cv_type_long_long_int=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

else
  ac_cv_type_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
$as_echo "$ac_cv_type_long_long_int" >&6; }
  if test $ac_cv_type_long_long_int = yes; then

$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
$as_echo_n "checking for unsigned long long int... " >&6; }
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_type_unsigned_long_long_int=yes
else
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h

  fi

    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
if test "x$ac_cv_type_intmax_t" = xyes; then :

$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_long_long_int = yes \
       && ac_type='long long int' \
       || ac_type='long int'

cat >>confdefs.h <<_ACEOF
#define intmax_t $ac_type
_ACEOF

fi




  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
if test "x$ac_cv_type_uintmax_t" = xyes; then :

$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_unsigned_long_long_int = yes \
       && ac_type='unsigned long long int' \
       || ac_type='unsigned long int'

cat >>confdefs.h <<_ACEOF
#define uintmax_t $ac_type
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h

else
  for ac_type in 'unsigned int' 'unsigned long int' \
	'unsigned long long int'; do
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

cat >>confdefs.h <<_ACEOF
#define uintptr_t $ac_type
_ACEOF

	  ac_type=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       test -z "$ac_type" && break
     done
fi


    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi

    for ac_func in localeconv
do :
  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
if test "x$ac_cv_func_localeconv" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LOCALECONV 1
_ACEOF

fi
done


  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi


    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
if test "x$ac_cv_func_snprintf" = xyes; then :
  hw_cv_func_snprintf=yes
else
  hw_cv_func_snprintf=no
fi

  if test "$hw_cv_func_snprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
if ${hw_cv_func_snprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_snprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
char buf[43];
          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_snprintf_c99=yes
else
  hw_cv_func_snprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
$as_echo "$hw_cv_func_snprintf_c99" >&6; }
else
  hw_cv_func_snprintf_c99=no
fi

$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
  hw_use_rpl_snprintf=yes
else
  hw_use_rpl_snprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
$as_echo "$hw_use_rpl_snprintf" >&6; }
  if test "$hw_use_rpl_snprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_snprintf=no} = no; then :

$as_echo "#define snprintf rpl_snprintf" >>confdefs.h

fi

  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi





# HMS: Save $LIBS and empty it.
# any LIBS we add here should go in to LDADD_LIBNTP

__LIBS=$LIBS
LIBS=



# [Bug 2332] because we need to know if we are using GNU ld...


# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld








{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
$as_echo_n "checking for directory path separator... " >&6; }
if ${ntp_cv_dir_sep+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$ntp_cv_dir_sep" in
	 '')
	    case "$host_os" in
	     *djgpp | *mingw32* | *emx*)
		ntp_cv_dir_sep="'\\'"
		;;
	     *)
		ntp_cv_dir_sep="'/'"
		;;
	    esac
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
$as_echo "$ntp_cv_dir_sep" >&6; }

cat >>confdefs.h <<_ACEOF
#define DIR_SEP $ntp_cv_dir_sep
_ACEOF



    NTP_ORIG_LIBS="$LIBS"

# Check whether --with-lineeditlibs was given.
if test "${with_lineeditlibs+set}" = set; then :
  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
else
  use_lineeditlibs="edit,editline"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
$as_echo_n "checking line editing libraries... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
$as_echo "$use_lineeditlibs" >&6; }
    case "$use_lineeditlibs" in
     no)
	ntp_lib_lineedit=no
	;;
     *)
	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
	    for term_lib in "" termcap curses ncurses; do
		case "$term_lib" in
		 '')
		    TRY_LIB="-l$lineedit_lib"
		    ;;
		 *)
		    TRY_LIB="-l$lineedit_lib -l$term_lib"
		    ;;
		esac
		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char readline ();
int
main ()
{
return readline ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		case "$ntp_lib_lineedit" in
		 '')
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		    ;;
		 *)
		    # Use readline()
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
		    break
		esac
		case "$term_lib" in
		 '')
		    # do not try el_gets without a terminal library
		    ;;
		 *)
		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char el_gets ();
int
main ()
{
return el_gets ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		    case "$ntp_lib_lineedit" in
		     '')
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			;;
		     *) # Use el_gets()
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			break
			;;
		    esac	# $ntp_lib_lineedit
		esac		# $term_lib
	    done
	    case "$ntp_lib_lineedit" in
	     '')
		;;
	     *)
		break
		;;
	    esac
	done
	LIBS="$NTP_ORIG_LIBS"
	;;
    esac	# $use_lineeditlibs

    case "$ntp_lib_lineedit" in
     '')
	ntp_lib_lineedit="no"
	;;
     no)
	;;
     *)
	EDITLINE_LIBS="$ntp_lib_lineedit"

	;;
    esac	# $ntp_lib_lineedit

    case "$ntp_lib_lineedit" in
     no)
	;;
     *)
	for ac_header in readline.h readline/readline.h histedit.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	for ac_header in history.h readline/history.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


	case "$ac_cv_header_histedit_h" in
	 yes)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
$as_echo_n "checking number of arguments to el_init()... " >&6; }
if ${ntp_cv_el_init_args+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    #include <stdio.h>
			    #include <histedit.h>

int
main ()
{

			    el_init("conftest", stdin, stdout, stderr);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_el_init_args=4
else
  ntp_cv_el_init_args=3

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
$as_echo "$ntp_cv_el_init_args" >&6; }

cat >>confdefs.h <<_ACEOF
#define EL_INIT_ARGS $ntp_cv_el_init_args
_ACEOF

	esac

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
$as_echo_n "checking whether readline supports history... " >&6; }

	ntp_lib_lineedit_history="no"
	ORIG_LIBS="$LIBS"
	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char add_history ();
int
main ()
{
return add_history ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit_history="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LIBS="$ORIG_LIBS"

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
$as_echo "$ntp_lib_lineedit_history" >&6; }

	case "$ntp_lib_lineedit_history" in
	 yes)

$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h

	esac
    esac	# $ntp_lib_lineedit
    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
    { ORIG_LIBS=; unset ORIG_LIBS;}
    { TRY_LIB=; unset TRY_LIB;}
    { use_lineeditlibs=; unset use_lineeditlibs;}


LIBM=
case "$host" in
 *-*-darwin*)
    ;;
 *)
    _libs=$LIBS
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
$as_echo_n "checking for library containing cos... " >&6; }
if ${ac_cv_search_cos+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cos ();
int
main ()
{
return cos ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' m; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_cos=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_cos+:} false; then :
  break
fi
done
if ${ac_cv_search_cos+:} false; then :

else
  ac_cv_search_cos=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
$as_echo "$ac_cv_search_cos" >&6; }
ac_res=$ac_cv_search_cos
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  LIBM="-lm"
fi

    LIBS=$_libs
    ;;
esac

{ _libs=; unset _libs;}


for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
$as_echo_n "checking for working alloca.h... " >&6; }
if ${ac_cv_working_alloca_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <alloca.h>
int
main ()
{
char *p = (char *) alloca (2 * sizeof (int));
			  if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_working_alloca_h=yes
else
  ac_cv_working_alloca_h=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
$as_echo "$ac_cv_working_alloca_h" >&6; }
if test $ac_cv_working_alloca_h = yes; then

$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
$as_echo_n "checking for alloca... " >&6; }
if ${ac_cv_func_alloca_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  ifdef HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
void *alloca (size_t);
#    endif
#   endif
#  endif
# endif
#endif

int
main ()
{
char *p = (char *) alloca (1);
				    if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_func_alloca_works=yes
else
  ac_cv_func_alloca_works=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
$as_echo "$ac_cv_func_alloca_works" >&6; }

if test $ac_cv_func_alloca_works = yes; then

$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h

else
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble.  Some versions do not even contain alloca or
# contain a buggy version.  If you still want to use their alloca,
# use ar to extract alloca.o from them instead of compiling alloca.c.

ALLOCA=\${LIBOBJDIR}alloca.$ac_objext

$as_echo "#define C_ALLOCA 1" >>confdefs.h


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
if ${ac_cv_os_cray+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if defined CRAY && ! defined CRAY2
webecray
#else
wenotbecray
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "webecray" >/dev/null 2>&1; then :
  ac_cv_os_cray=yes
else
  ac_cv_os_cray=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
$as_echo "$ac_cv_os_cray" >&6; }
if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :

cat >>confdefs.h <<_ACEOF
#define CRAY_STACKSEG_END $ac_func
_ACEOF

    break
fi

  done
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
$as_echo_n "checking stack direction for C alloca... " >&6; }
if ${ac_cv_c_stack_direction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_c_stack_direction=0
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}

int
main ()
{
  return find_stack_direction () < 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_stack_direction=1
else
  ac_cv_c_stack_direction=-1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
$as_echo "$ac_cv_c_stack_direction" >&6; }
cat >>confdefs.h <<_ACEOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
_ACEOF


fi

ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRERROR_R $ac_have_decl
_ACEOF

for ac_func in strerror_r
do :
  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
if test "x$ac_cv_func_strerror_r" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRERROR_R 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
if ${ac_cv_func_strerror_r_char_p+:} false; then :
  $as_echo_n "(cached) " >&6
else

    ac_cv_func_strerror_r_char_p=no
    if test $ac_cv_have_decl_strerror_r = yes; then
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  char *p = strerror_r (0, buf, sizeof buf);
	  return !p || x;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    else
      # strerror_r is not declared.  Choose between
      # systems that have relatively inaccessible declarations for the
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
      # former has a strerror_r that returns char*, while the latter
      # has a strerror_r that returns `int'.
      # This test should segfault on the DEC system.
      if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
	extern char *strerror_r ();
int
main ()
{
char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  return ! isalpha (x);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
if test $ac_cv_func_strerror_r_char_p = yes; then

$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h

fi


ac_busted_vpath_in_make=no
case "$build" in
 *-*-irix6.1*)	# 64 bit only
    # busted vpath?
    ;;
 *-*-irix6*)	# 6.2 (and later?)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-solaris2.5.1)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-unicosmp*)
    ac_busted_vpath_in_make=yes
    ;;
esac

case "$ac_busted_vpath_in_make$srcdir" in
 yes.|no*)
    ;;
 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
    esac
    ;;
esac

case "$host" in
 *-*-aix4*)
	# Bug 2516:
	# Was *-*-aix[[4-9]]*
	# XXX only verified thru AIX6.  But...
	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
	# that this support would be in 5.3, removed in 6, and added back.
	#
	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
	# IBM pulls its thumbs out long enough to implement clock_settime,
	# this conditional will need to change.  Maybe use AC_TRY_RUN
	# instead to try to set the time to itself and check errno.
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
$as_echo_n "checking for library containing clock_gettime... " >&6; }
if ${ac_cv_search_clock_gettime+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char clock_gettime ();
int
main ()
{
return clock_gettime ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_clock_gettime=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_clock_gettime+:} false; then :
  break
fi
done
if ${ac_cv_search_clock_gettime+:} false; then :

else
  ac_cv_search_clock_gettime=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
$as_echo "$ac_cv_search_clock_gettime" >&6; }
ac_res=$ac_cv_search_clock_gettime
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_clock_gettime" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
 esac

fi

    for ac_func in clock_getres clock_gettime clock_settime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac

for ac_func in getclock stime timegm strlcpy strlcat
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


#
for ac_header in errno.h sys/socket.h sys/types.h time.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in net/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif

"
if test "x$ac_cv_header_net_if_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_H 1
_ACEOF

fi

done

case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
if ${ntp_cv_predecl_mpinfou+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    np_cv_predecl_mpinfou=no
	    case "$ac_cv_header_net_if_h" in
	     no)
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    typedef union mpinfou {
				    struct pdk_mpinfo *pdkptr;
				    struct mpinfo *pikptr;
			    } mpinfou_t;
			    #ifdef HAVE_SYS_SOCKET_H
			    # include <sys/socket.h>
			    #endif
			    #include <net/if.h>

int
main ()
{



  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

			ntp_cv_predecl_mpinfou=yes
			ac_cv_header_net_if_h=yes


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
$as_echo "$ntp_cv_predecl_mpinfou" >&6; }
    case "$ntp_cv_predecl_mpinfou" in
     yes)
	cat >>confdefs.h <<_ACEOF
#ifndef MPINFOU_PREDECLARED
# define MPINFOU_PREDECLARED
typedef union mpinfou {
	struct pdk_mpinfo *pdkptr;
	struct mpinfo *pikptr;
} mpinfou_t;
#endif
_ACEOF

    esac
esac

case "$host" in
 *-linux*)
    for ac_header in linux/if_addr.h
do :
  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
	#ifdef HAVE_SYS_SOCKET_H
	# include <sys/socket.h>
	#endif

"
if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LINUX_IF_ADDR_H 1
_ACEOF

fi

done

esac

for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
for ac_header in sys/sysctl.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
    #if defined HAVE_SYS_PARAM_H
    # include <sys/param.h>
    #endif

"
if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SYSCTL_H 1
_ACEOF

fi

done

for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in resolv.h
do :
  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_ARPA_NAMESER_H
    # include <arpa/nameser.h>
    #endif

"
if test "x$ac_cv_header_resolv_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RESOLV_H 1
_ACEOF

fi

done


for ac_header in net/if_var.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
    #if HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif

"
if test "x$ac_cv_header_net_if_var_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_VAR_H 1
_ACEOF

fi

done


for ac_header in netinet/ip.h netinet/in_var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_VAR_H
    # include <net/if_var.h>
    #endif
    #ifdef HAVE_NETINET_IN_SYSTM_H
    # include <netinet/in_systm.h>
    #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


# HMS: Do we need to check for -lsocket before or after these tests?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
$as_echo_n "checking for library containing inet_pton... " >&6; }
if ${ac_cv_search_inet_pton+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_pton ();
int
main ()
{
return inet_pton ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' nsl; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_pton=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_pton+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_pton+:} false; then :

else
  ac_cv_search_inet_pton=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
$as_echo "$ac_cv_search_inet_pton" >&6; }
ac_res=$ac_cv_search_inet_pton
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_pton" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
 esac

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
$as_echo_n "checking for library containing inet_ntop... " >&6; }
if ${ac_cv_search_inet_ntop+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_ntop ();
int
main ()
{
return inet_ntop ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_ntop=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_ntop+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_ntop+:} false; then :

else
  ac_cv_search_inet_ntop=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
$as_echo "$ac_cv_search_inet_ntop" >&6; }
ac_res=$ac_cv_search_inet_ntop
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_ntop" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
 esac

fi


# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
# avoid keying on the OS name:  If we find socket functions in
# libsocket, next try for them in libxnet without libsocket, if found,
# list both.  If we simply tested libxnet first, we would find the
# functions there and never add libsocket.  See also [Bug 660]
# http://bugs.ntp.org/show_bug.cgi?id=660#c9
saved_LIBS=$LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
$as_echo_n "checking for library containing setsockopt... " >&6; }
if ${ac_cv_search_setsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char setsockopt ();
int
main ()
{
return setsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' socket; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_setsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_setsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_setsockopt+:} false; then :

else
  ac_cv_search_setsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
$as_echo "$ac_cv_search_setsockopt" >&6; }
ac_res=$ac_cv_search_setsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_setsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
 esac

fi

case "$ac_cv_search_setsockopt" in
 -lsocket)
    LIBS="$saved_LIBS"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
$as_echo_n "checking for library containing getsockopt... " >&6; }
if ${ac_cv_search_getsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getsockopt ();
int
main ()
{
return getsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' xnet; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_getsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_getsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_getsockopt+:} false; then :

else
  ac_cv_search_getsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
$as_echo "$ac_cv_search_getsockopt" >&6; }
ac_res=$ac_cv_search_getsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_getsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
 esac

fi

    # XXX Possible trouble here - reading the comments above and looking at the
    # code below I wonder if we'll add -lxnet when we don't need it.
    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
    # there when it is not needed?
    case "$ac_cv_search_getsockopt" in
     -lxnet)
	LIBS="-lxnet -lsocket $saved_LIBS"
	;;
     *) LIBS="-lsocket $saved_LIBS"
	;;
    esac
    ;;
esac
{ saved_LIBS=; unset saved_LIBS;}

# Bug 2427 - look for recvmsg here.
for ac_func in recvmsg
do :
  ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
if test "x$ac_cv_func_recvmsg" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RECVMSG 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if ${ac_cv_c_inline+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }

case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac


case "$ac_cv_c_inline" in
 '')
    ;;
 *)

$as_echo "#define HAVE_INLINE 1" >>confdefs.h


esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if ${ac_cv_header_time+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_time=yes
else
  ac_cv_header_time=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h

fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
$as_echo_n "checking size of time_t... " >&6; }
if ${ac_cv_sizeof_time_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_time_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (time_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_time_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
$as_echo "$ac_cv_sizeof_time_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
$as_echo_n "checking whether char is unsigned... " >&6; }
if ${ac_cv_c_char_unsigned+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_char_unsigned=no
else
  ac_cv_c_char_unsigned=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
$as_echo "$ac_cv_c_char_unsigned" >&6; }
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h

fi
		# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
$as_echo_n "checking size of signed char... " >&6; }
if ${ac_cv_sizeof_signed_char+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_signed_char" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (signed char)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_signed_char=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
$as_echo "$ac_cv_sizeof_signed_char" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
_ACEOF


ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
if test "x$ac_cv_type_s_char" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_S_CHAR 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
if test "x$ac_cv_type_long_long" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF



case "$ac_cv_type_long_long" in
 no)
    ;;
 *)
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
if ${ac_cv_sizeof_long_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF


    ;;
esac

case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
 *yes)
    # We have a typedef for s_char.  Might as well believe it...
    ;;
 no0no)
    # We have signed chars, can't say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 no1no)
    # We have signed chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 yes0no)
    # We have unsigned chars, can't say 'signed char', no s_char typedef.
    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
    ;;
 yes1no)
    # We have unsigned chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
if ${ac_cv_type_uid_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "uid_t" >/dev/null 2>&1; then :
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; }
if test $ac_cv_type_uid_t = no; then

$as_echo "#define uid_t int" >>confdefs.h


$as_echo "#define gid_t int" >>confdefs.h

fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
$as_echo_n "checking if we're including debugging code... " >&6; }
# Check whether --enable-debugging was given.
if test "${enable_debugging+set}" = set; then :
  enableval=$enable_debugging; ntp_ok=$enableval
else
  ntp_ok=yes

fi

case "$ntp_ok" in
 yes)

$as_echo "#define DEBUG 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }



# check if we can compile with pthreads
for ac_header in semaphore.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
if test "x$ac_cv_header_semaphore_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SEMAPHORE_H 1
_ACEOF

fi

done

for ac_func in socketpair
do :
  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
if test "x$ac_cv_func_socketpair" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKETPAIR 1
_ACEOF

fi
done

# Check whether --enable-thread-support was given.
if test "${enable_thread_support+set}" = set; then :
  enableval=$enable_thread_support;
else
  enable_thread_support=yes

fi

have_pthreads=no
case "$enable_thread_support" in
 yes)
    ol_found_pthreads=no



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

# OpenLDAP --with-threads

# Check whether --with-threads was given.
if test "${with_threads+set}" = set; then :
  withval=$with_threads;
	ol_arg=invalid
	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
	fi
	ol_with_threads="$ol_arg"

else
  	ol_with_threads="auto"
fi
# end --with-threads


case "$ol_with_threads$host" in
 auto*-*-solaris2.[0-6])
        ol_with_threads=no
    ;;
esac


ol_aix_threads=no
case "$host" in
*-*-aix*) 	if test -z "$CC" ; then
		case "$ol_with_threads" in
		auto | yes |  posix) ol_aix_threads=yes ;;
		esac
	fi
;;
esac

if test $ol_aix_threads = yes ; then
	if test -z "${CC}" ; then
		for ac_prog in cc_r xlc_r cc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$CC" && break
done


		if test "$CC" = cc ; then
						if test $ol_with_threads != auto ; then
				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
			fi
			ol_with_threads=no
  		fi
	fi

	case ${CC} in cc_r | xlc_r)
		ol_with_threads=posix
		ol_cv_pthread_create=yes
		;;
	esac
fi

ol_link_threads=no
# OpenLDAP --with-yielding_select

# Check whether --with-yielding_select was given.
if test "${with_yielding_select+set}" = set; then :
  withval=$with_yielding_select;
	ol_arg=invalid
	for ol_val in auto yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
	fi
	ol_with_yielding_select="$ol_arg"

else
  	ol_with_yielding_select="auto"
fi
# end --with-yielding_select


case $ol_with_threads in auto | yes | nt)


	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
if test "x$ac_cv_func__beginthread" = xyes; then :

fi


	if test $ac_cv_func__beginthread = yes ; then

$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h

		ol_cv_nt_threads=yes
	fi


	if test "$ol_cv_nt_threads" = yes ; then
		ol_link_threads=nt
		ol_with_threads=found
		ol_with_yielding_select=yes


$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h


$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h

	fi

	if test $ol_with_threads = nt ; then
		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | posix)

	for ac_header in pthread.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_H 1
_ACEOF

fi

done


	if test $ac_cv_header_pthread_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
$as_echo_n "checking POSIX thread version... " >&6; }
if ${ol_cv_pthread_version+:} false; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>

int
main ()
{

		int i = PTHREAD_CREATE_JOINABLE;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_detach" >/dev/null 2>&1; then :
  ol_cv_pthread_version=10
else
  ol_cv_pthread_version=8
fi
rm -f conftest*

else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>
#		ifdef PTHREAD_CREATE_UNDETACHED
		draft7
#		endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft7" >/dev/null 2>&1; then :
  ol_cv_pthread_version=7
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
  ol_cv_pthread_version=6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>
#ifdef		PTHREAD_MUTEX_INITIALIZER
		draft5
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft5" >/dev/null 2>&1; then :
  ol_cv_pthread_version=5
else
  ol_cv_pthread_version=4
fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
$as_echo "$ol_cv_pthread_version" >&6; }


		if test $ol_cv_pthread_version != 0 ; then

cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREADS $ol_cv_pthread_version
_ACEOF

		else
			as_fn_error $? "unknown pthread version" "$LINENO" 5
		fi

		# consider threads found
		ol_with_threads=found


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then

$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h

	fi


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
#ifdef _POSIX_THREAD_IS_GNU_PTH
	__gnu_pth__;
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
  ol_cv_header_gnu_pth_pthread_h=yes
else
  ol_cv_header_gnu_pth_pthread_h=no
fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }


		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
			for ac_header in sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_H 1
_ACEOF

fi

done

		fi


				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
$as_echo_n "checking for pthread_create in default libraries... " >&6; }
if ${ol_cv_pthread_create+:} false; then :
  $as_echo_n "(cached) " >&6
else

			if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;
d14028 2
a14030 1

d14032 3
a14034 4
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
a14035 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14037 4
a14042 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
$as_echo "$ol_cv_pthread_create" >&6; }
d14044 1
a14044 4
		if test $ol_cv_pthread_create != no ; then
			ol_link_threads=posix
			ol_link_pthreads=""
		fi
d14046 4
a14049 8
		# Pthread try link: -kthread (ol_cv_pthread_kthread)
if test "$ol_link_threads" = no ; then
	# try -kthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
$as_echo_n "checking for pthread link with -kthread... " >&6; }
if ${ol_cv_pthread_kthread+:} false; then :
  $as_echo_n "(cached) " >&6
else
d14051 5
a14055 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-kthread $LIBS"
d14057 8
a14064 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14066 17
a14082 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d14084 6
a14089 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d14091 11
a14101 3
int
main ()
{
d14103 25
a14127 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14129 8
a14136 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14138 10
a14147 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d14149 3
a14151 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14153 12
a14164 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d14166 11
a14176 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d14178 22
a14199 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14201 8
a14208 1
	return 0;
d14210 21
a14230 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14232 10
d14243 6
a14248 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d14250 7
a14256 23
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14258 4
a14261 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d14263 6
a14268 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14269 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14270 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14271 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14272 1
	return 0;
a14273 1
}
a14274 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14276 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14277 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
$as_echo "$ol_cv_pthread_kthread" >&6; }
a14278 5
	if test $ol_cv_pthread_kthread = yes ; then
		ol_link_pthreads="-kthread"
		ol_link_threads=posix
	fi
fi
a14279 8
		# Pthread try link: -pthread (ol_cv_pthread_pthread)
if test "$ol_link_threads" = no ; then
	# try -pthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
$as_echo_n "checking for pthread link with -pthread... " >&6; }
if ${ol_cv_pthread_pthread+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14280 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthread $LIBS"
a14281 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14282 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14283 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14284 3
int
main ()
{
a14285 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14286 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14287 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14288 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14289 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14290 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14291 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14292 1
	return 0;
a14293 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_pthread=yes
else
  ol_cv_pthread_pthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14295 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14296 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14298 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14299 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14300 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14301 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14302 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14303 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14304 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14305 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14306 1
	return 0;
a14307 1
}
a14308 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthread=yes
else
  ol_cv_pthread_pthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14310 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14311 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
$as_echo "$ol_cv_pthread_pthread" >&6; }
a14312 5
	if test $ol_cv_pthread_pthread = yes ; then
		ol_link_pthreads="-pthread"
		ol_link_threads=posix
	fi
fi
a14313 8
		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
if test "$ol_link_threads" = no ; then
	# try -pthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
$as_echo_n "checking for pthread link with -pthreads... " >&6; }
if ${ol_cv_pthread_pthreads+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14314 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthreads $LIBS"
a14315 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14316 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14317 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14318 3
int
main ()
{
a14319 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14320 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14321 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14322 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14323 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14324 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14325 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14326 1
	return 0;
a14327 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_pthreads=yes
else
  ol_cv_pthread_pthreads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14329 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14330 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14332 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14333 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14334 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14335 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14336 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14337 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14338 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14339 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14340 1
	return 0;
a14341 1
}
a14342 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthreads=yes
else
  ol_cv_pthread_pthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14344 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14345 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
$as_echo "$ol_cv_pthread_pthreads" >&6; }
a14346 5
	if test $ol_cv_pthread_pthreads = yes ; then
		ol_link_pthreads="-pthreads"
		ol_link_threads=posix
	fi
fi
a14347 8
		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
if test "$ol_link_threads" = no ; then
	# try -mthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
$as_echo_n "checking for pthread link with -mthreads... " >&6; }
if ${ol_cv_pthread_mthreads+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14348 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-mthreads $LIBS"
a14349 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14350 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14351 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14352 3
int
main ()
{
a14353 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14354 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14355 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14356 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14357 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14358 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14359 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14361 6
a14366 1
	return 0;
d14368 13
a14380 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_mthreads=yes
d14382 3
a14384 1
  ol_cv_pthread_mthreads=no
d14386 2
a14387 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14389 9
a14398 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14399 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14401 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14402 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14404 7
a14410 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14412 6
a14417 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d14419 4
a14422 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14424 4
a14427 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d14429 11
a14439 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d14441 5
a14445 2
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
d14447 7
a14453 3

	return 0;

a14454 1

d14456 2
a14457 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_mthreads=yes
d14459 1
a14459 1
  ol_cv_pthread_mthreads=no
d14461 3
a14463 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14465 5
d14471 3
a14473 3

		# restore the LIBS
		LIBS="$ol_LIBS"
a14475 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
$as_echo "$ol_cv_pthread_mthreads" >&6; }
d14477 1
a14477 5
	if test $ol_cv_pthread_mthreads = yes ; then
		ol_link_pthreads="-mthreads"
		ol_link_threads=posix
	fi
fi
d14479 8
a14486 6
		# Pthread try link: -thread (ol_cv_pthread_thread)
if test "$ol_link_threads" = no ; then
	# try -thread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
$as_echo_n "checking for pthread link with -thread... " >&6; }
if ${ol_cv_pthread_thread+:} false; then :
d14489 3
a14491 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-thread $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14494 5
a14498 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14500 1
a14500 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d14504 1
a14504 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d14510 1
a14510 1
  ol_cv_pthread_thread=yes
d14512 1
a14512 1
  ol_cv_pthread_thread=no
d14516 15
d14532 3
a14534 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14537 5
a14541 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14543 3
a14545 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d14547 3
a14549 55
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

a14550 1

d14552 2
a14553 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_thread=yes
d14555 1
a14555 1
  ol_cv_pthread_thread=no
d14557 3
a14559 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14561 8
a14568 22


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
$as_echo "$ol_cv_pthread_thread" >&6; }

	if test $ol_cv_pthread_thread = yes ; then
		ol_link_pthreads="-thread"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
d14571 3
a14573 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14576 5
a14580 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14582 1
a14582 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d14586 1
a14586 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d14592 1
a14592 1
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
d14594 1
a14594 1
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
d14598 11
d14610 3
a14612 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14615 5
a14619 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14621 3
a14623 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d14625 3
a14627 1
	return (void *) (p == NULL);
d14629 15
d14646 1
a14646 12
int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14647 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14649 1
a14649 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14650 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14652 1
a14652 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14653 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d14655 1
a14655 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14656 1
	return 0;
d14658 1
a14658 1
}
d14660 2
a14661 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
d14663 5
d14669 4
a14672 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d14674 2
a14675 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
d14677 2
a14678 5
	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
fi
d14680 3
a14682 6
		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
d14685 8
d14694 2
a14695 15
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
d14698 1
a14698 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d14700 8
a14707 7
int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
a14708 3
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14710 20
a14729 17
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
a14730 5
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14732 4
a14735 6
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
d14738 5
a14742 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14744 12
a14755 1
	return 0;
d14757 1
a14757 2
  ;
  return 0;
d14759 17
a14775 5
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
else
  ol_cv_pthread_lpthread_lmach_lexc=no
d14777 1
a14777 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14780 3
a14782 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d14784 15
a14798 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d14800 2
a14801 9

int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
a14802 3
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14804 1
a14804 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14806 2
a14807 6
	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
d14809 5
a14813 1
	status = pthread_attr_setdetachstate(&attr, detach);
d14815 21
a14835 4
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
a14836 5
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14838 4
a14841 6
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
d14844 5
a14848 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14850 12
a14861 1
	return 0;
d14863 1
d14865 17
a14881 9

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
else
  ol_cv_pthread_lpthread_lmach_lexc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14883 1
a14885 3
		# restore the LIBS
		LIBS="$ol_LIBS"

d14887 3
a14889 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
d14891 5
a14895 5
	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc"
		ol_link_threads=posix
	fi
fi
d14897 4
d14902 5
a14906 35
		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
if test "$ol_link_threads" = no ; then
	# try -lpthread -Wl,-woff,85
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -Wl,-woff,85 $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{
a14907 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14908 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14909 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14910 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14911 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14912 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14913 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14914 1
	return 0;
a14915 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
else
  ol_cv_pthread_lib_lpthread_woff=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14917 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14918 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14920 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14921 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14922 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14924 29
a14952 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14953 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14954 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14955 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14956 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14957 1
	return 0;
a14958 1
}
a14959 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
else
  ol_cv_pthread_lib_lpthread_woff=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14961 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14962 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
a14963 5
	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
		ol_link_pthreads="-lpthread -Wl,-woff,85"
		ol_link_threads=posix
	fi
fi
d14965 5
d14971 3
a14973 8
		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
if test "$ol_link_threads" = no ; then
	# try -lpthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
$as_echo_n "checking for pthread link with -lpthread... " >&6; }
if ${ol_cv_pthread_lpthread+:} false; then :
  $as_echo_n "(cached) " >&6
else
d14975 10
a14984 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread $LIBS"
d14986 8
a14993 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14995 6
a15000 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a15001 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a15002 3
int
main ()
{
a15003 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15005 6
a15010 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d15012 1
a15012 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a15013 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a15014 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a15015 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a15016 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a15017 1
	return 0;
a15018 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
else
  ol_cv_pthread_lpthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a15020 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a15021 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a15023 4
int main(argc, argv)
	int argc;
	char **argv;
{
a15024 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15026 1
a15026 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a15027 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a15028 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a15029 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d15031 1
a15031 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a15032 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a15033 1
	return 0;
d15035 10
a15044 1
}
d15046 11
d15058 3
a15060 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
d15062 1
a15062 4
  ol_cv_pthread_lpthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15064 1
d15067 11
a15077 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15079 1
d15081 5
a15085 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
$as_echo "$ol_cv_pthread_lpthread" >&6; }

	if test $ol_cv_pthread_lpthread = yes ; then
		ol_link_pthreads="-lpthread"
		ol_link_threads=posix
	fi
d15088 3
a15090 6
		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
$as_echo_n "checking for pthread link with -lc_r... " >&6; }
if ${ol_cv_pthread_lc_r+:} false; then :
a15092 6

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
a15095 15
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15100 17
a15116 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15118 1
a15118 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d15120 1
a15120 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d15122 8
a15129 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d15131 5
a15135 10
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
d15137 5
a15141 3

	return 0;

d15146 9
a15154 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
else
  ol_cv_pthread_lc_r=no
d15157 7
a15163 1
    conftest$ac_exeext conftest.$ac_ext
d15165 10
a15174 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d15176 1
a15177 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d15179 26
a15204 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15206 7
a15212 57

int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
d15214 2
a15215 4
  ol_cv_pthread_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15219 26
a15244 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15246 2
d15249 7
a15255 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
$as_echo "$ol_cv_pthread_lc_r" >&6; }

	if test $ol_cv_pthread_lc_r = yes ; then
		ol_link_pthreads="-lc_r"
		ol_link_threads=posix
	fi
d15259 5
a15263 6
		# Pthread try link: -threads (ol_cv_pthread_threads)
if test "$ol_link_threads" = no ; then
	# try -threads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
$as_echo_n "checking for pthread link with -threads... " >&6; }
if ${ol_cv_pthread_threads+:} false; then :
d15266 31
a15297 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-threads $LIBS"
a15298 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a15299 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d15301 5
a15305 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15307 1
a15307 3
int
main ()
{
d15309 49
a15357 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15359 11
a15369 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a15370 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d15372 4
a15375 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d15377 5
a15381 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a15382 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a15383 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d15385 2
a15386 1
	return 0;
a15387 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_threads=yes
d15389 4
a15392 4
  ol_cv_pthread_threads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d15394 2
a15395 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15398 5
a15402 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15404 3
a15406 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d15408 3
a15410 55
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15412 18
a15430 3
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_threads=yes
d15432 1
a15432 1
  ol_cv_pthread_threads=no
d15434 2
a15435 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15437 5
a15441 4


		# restore the LIBS
		LIBS="$ol_LIBS"
a15443 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
$as_echo "$ol_cv_pthread_threads" >&6; }
a15444 4
	if test $ol_cv_pthread_threads = yes ; then
		ol_link_pthreads="-threads"
		ol_link_threads=posix
	fi
d15447 2
d15450 4
a15453 6
		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
d15456 2
a15457 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15460 5
a15464 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15466 1
a15466 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15470 1
a15470 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15475 9
a15483 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
d15486 6
a15491 5
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

a15492 72
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
d15494 1
a15494 1
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
d15496 2
a15497 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15499 5
d15505 4
a15508 20

		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }

	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
d15511 2
a15512 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15515 5
a15519 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15521 1
a15521 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15525 1
a15525 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15530 9
a15538 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc=no
d15541 6
a15546 34
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a15547 43
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
d15549 1
a15549 1
  ol_cv_pthread_lpthreads_lmach_lexc=no
d15551 2
a15552 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15554 5
d15560 1
a15560 3

		# restore the LIBS
		LIBS="$ol_LIBS"
a15562 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
a15563 4
	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc"
		ol_link_threads=posix
	fi
d15566 3
a15568 6
		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
d15571 2
a15572 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15575 5
a15579 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15581 1
a15581 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15585 1
a15585 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15590 9
a15598 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lexc=yes
else
  ol_cv_pthread_lpthreads_lexc=no
d15601 6
a15606 72
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;
a15607 5
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lexc=yes
d15609 1
a15609 1
  ol_cv_pthread_lpthreads_lexc=no
d15611 2
a15612 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15614 5
d15620 1
d15622 7
a15628 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15631 2
a15632 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
a15633 5
	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lexc"
		ol_link_threads=posix
	fi
fi
d15635 1
d15637 3
a15639 7
		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
if test "$ol_link_threads" = no ; then
	# try -lpthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
if ${ol_cv_pthread_lib_lpthreads+:} false; then :
  $as_echo_n "(cached) " >&6
d15641 1
d15643 1
a15643 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads $LIBS"
d15645 23
a15667 2
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15670 5
a15674 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15676 3
a15678 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d15680 3
a15682 1
	return (void *) (p == NULL);
d15684 26
d15711 7
d15721 43
d15765 2
a15766 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15768 12
a15779 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d15781 1
a15781 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d15783 1
a15783 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d15785 8
a15792 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d15794 1
a15794 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d15796 1
a15796 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a15797 1
	return 0;
d15799 6
a15804 11
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
else
  ol_cv_pthread_lib_lpthreads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d15809 2
d15812 2
a15813 11
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
a15814 2
	return (void *) (p == NULL);
}
d15816 1
a15817 50
int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;
d15819 2
a15821 1

d15823 2
a15824 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
d15826 1
a15826 9
  ol_cv_pthread_lib_lpthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"
d15829 1
a15829 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
a15830 4
	if test $ol_cv_pthread_lib_lpthreads = yes ; then
		ol_link_pthreads="-lpthreads"
		ol_link_threads=posix
	fi
d15832 2
d15835 2
a15836 15

		if test $ol_link_threads != no ; then
			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"

						save_CPPFLAGS="$CPPFLAGS"
			save_LIBS="$LIBS"
			LIBS="$LTHREAD_LIBS $LIBS"

												for ac_func in sched_yield pthread_yield thr_yield
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d15839 1
a15839 2
fi
done
d15841 2
d15844 4
a15847 11
			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test $ac_cv_func_thr_yield = no ; then
								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
$as_echo_n "checking for sched_yield in -lrt... " >&6; }
if ${ac_cv_lib_rt_sched_yield+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15856 1
a15856 1
char sched_yield ();
d15860 1
a15860 1
return sched_yield ();
d15866 1
a15866 3
  ac_cv_lib_rt_sched_yield=yes
else
  ac_cv_lib_rt_sched_yield=no
d15870 1
a15870 6
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
d15872 2
a15873 1
$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
d15875 2
a15876 4
					ac_cv_func_sched_yield=yes
else
  ac_cv_func_sched_yield=no
fi
d15878 1
a15878 7
			fi
			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test "$ac_cv_func_thr_yield" = no ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
			fi
d15880 6
a15885 7
						for ac_func in pthread_kill
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
if test "x$ac_cv_func_pthread_kill" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL 1
_ACEOF
a15886 2
fi
done
d15889 8
a15896 3
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
d15899 3
a15901 2

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15904 7
a15910 3
#include <pthread.h>
pthread_rwlock_t rwlock;

d15914 1
a15914 1
pthread_rwlock_destroy(&rwlock);
d15920 1
a15920 1
  ol_cv_func_pthread_rwlock_destroy=yes
d15922 1
a15922 1
  ol_cv_func_pthread_rwlock_destroy=no
d15926 1
a15926 1

d15928 6
a15933 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
d15935 1
a15935 1
$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
d15937 4
a15940 5
			fi

									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_detach+:} false; then :
d15943 3
a15945 2

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15948 5
a15952 3
#include <pthread.h>
#ifndef NULL
#define NULL (void*)0
d15954 1
a15954 1

d15958 1
a15958 1
pthread_detach(NULL);
d15964 1
a15964 1
  ol_cv_func_pthread_detach=yes
d15966 1
a15966 1
  ol_cv_func_pthread_detach=no
d15970 1
a15970 1

d15972 3
a15974 21
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
$as_echo "$ol_cv_func_pthread_detach" >&6; }

			if test $ol_cv_func_pthread_detach = no ; then
				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
			fi


$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h


						for ac_func in \
				pthread_setconcurrency \
				pthread_getconcurrency \
				thr_setconcurrency \
				thr_getconcurrency \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d15976 1
a15976 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d15979 1
a15979 12
fi
done



	for ac_func in pthread_kill_other_threads_np
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
_ACEOF
a15981 1
done
a15982 6
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
$as_echo_n "checking for LinuxThreads implementation... " >&6; }
if ${ol_cv_sys_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
a15983 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
$as_echo "$ol_cv_sys_linux_threads" >&6; }
d15985 2
d15988 3
a15990 5


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
$as_echo_n "checking for LinuxThreads consistency... " >&6; }
if ${ol_cv_linux_threads+:} false; then :
d15993 2
a15994 30

		if test $ol_cv_header_linux_threads = yes &&
		   test $ol_cv_sys_linux_threads = yes; then
			ol_cv_linux_threads=yes
		elif test $ol_cv_header_linux_threads = no &&
		     test $ol_cv_sys_linux_threads = no; then
			ol_cv_linux_threads=no
		else
			ol_cv_linux_threads=error
		fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
$as_echo "$ol_cv_linux_threads" >&6; }


			if test $ol_cv_linux_threads = error; then
				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
			fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
$as_echo_n "checking if pthread_create() works... " >&6; }
if ${ol_cv_pthread_create_works+:} false; then :
  $as_echo_n "(cached) " >&6
else

			if test "$cross_compiling" = yes; then :
  				ol_cv_pthread_create_works=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15997 5
a16001 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d16003 3
a16005 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d16007 3
a16009 55
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d16011 18
a16029 3
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create_works=yes
d16031 1
a16031 1
  ol_cv_pthread_create_works=no
d16033 2
a16034 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d16036 5
a16042 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
$as_echo "$ol_cv_pthread_create_works" >&6; }
d16044 3
a16046 16
			if test $ol_cv_pthread_create_works = no ; then
				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
			fi

			ol_replace_broken_yield=no

			if test $ol_replace_broken_yield = yes ; then

$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h

			fi

						if test x$ol_with_yielding_select = xauto ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
$as_echo_n "checking if select yields when using pthreads... " >&6; }
if ${ol_cv_pthread_select_yields+:} false; then :
d16049 2
a16050 5

				if test "$cross_compiling" = yes; then :
  ol_cv_pthread_select_yields=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16053 5
a16057 6
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#ifndef NULL
#define NULL (void*) 0
d16059 3
a16061 5

static int fildes[2];

static void *task(p)
	void *p;
d16063 3
a16065 59
	int i;
	struct timeval tv;

	fd_set rfds;

	tv.tv_sec=10;
	tv.tv_usec=0;

	FD_ZERO(&rfds);
	FD_SET(fildes[0], &rfds);

	/* we're not interested in any fds */
	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);

	if(i < 0) {
		perror("select");
		exit(10);
	}

	exit(0); /* if we exit here, the select blocked the whole process */
}

int main(argc, argv)
	int argc;
	char **argv;
{
	pthread_t t;

	/* create a pipe to select */
	if(pipe(&fildes[0])) {
		perror("select");
		exit(1);
	}

#ifdef HAVE_PTHREAD_SETCONCURRENCY
	(void) pthread_setconcurrency(2);
#else
#ifdef HAVE_THR_SETCONCURRENCY
	/* Set Solaris LWP concurrency to 2 */
	thr_setconcurrency(2);
#endif
#endif

#if HAVE_PTHREADS < 6
	pthread_create(&t, pthread_attr_default, task, NULL);
#else
	pthread_create(&t, NULL, task, NULL);
#endif

	/* make sure task runs first */
#ifdef HAVE_THR_YIELD
	thr_yield();
#elif defined( HAVE_SCHED_YIELD )
	sched_yield();
#elif defined( HAVE_PTHREAD_YIELD )
	pthread_yield();
#endif

	exit(2);
d16068 9
a16076 4
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_select_yields=no
else
  ol_cv_pthread_select_yields=yes
d16078 4
a16081 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d16083 2
d16086 2
d16089 2
a16090 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
$as_echo "$ol_cv_pthread_select_yields" >&6; }

				if test $ol_cv_pthread_select_yields = cross ; then
					as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
				fi

				if test $ol_cv_pthread_select_yields = yes ; then
					ol_with_yielding_select=yes
				fi
			fi

						CPPFLAGS="$save_CPPFLAGS"
			LIBS="$save_LIBS"
		else
			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
		fi
	fi

	if test $ol_with_threads = posix ; then
		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | mach)

		for ac_header in mach/cthreads.h cthreads.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

d16092 5
a16097 8
done

	if test $ac_cv_header_mach_cthreads_h = yes ; then
		ol_with_threads=found

				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
d16100 5
a16104 5

		if test $ol_link_threads = no ; then
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
$as_echo_n "checking for cthread_fork with -all_load... " >&6; }
if ${ol_cv_cthread_all_load+:} false; then :
d16107 4
d16112 7
a16118 5
								save_LIBS="$LIBS"
				LIBS="-all_load $LIBS"
				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <mach/cthreads.h>
d16122 1
a16122 3

					cthread_fork((void *)0, (void *)0);

d16128 1
a16128 1
  ol_cv_cthread_all_load=yes
d16130 1
a16130 1
  ol_cv_cthread_all_load=no
d16134 1
a16134 2
								LIBS="$save_LIBS"

d16136 6
a16141 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
$as_echo "$ol_cv_cthread_all_load" >&6; }
d16143 1
a16143 6
			if test $ol_cv_cthread_all_load = yes ; then
				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
				ol_link_threads=mach
				ol_with_threads=found
			fi
		fi
d16145 1
a16145 1
	elif test $ac_cv_header_cthreads_h = yes ; then
d16147 22
a16168 1
		ol_with_threads=found
a16169 5
				save_LIBS="$LIBS"
		LIBS="$LIBS -lthreads"
		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
d16172 1
a16172 23
		LIBS="$save_LIBS"

		if test $ol_link_threads = yes ; then
			LTHREAD_LIBS="-lthreads"
			ol_link_threads=mach
			ol_with_threads=found
		else
			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
		fi

	elif test $ol_with_threads = mach ; then
		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
	fi

	if test $ol_link_threads = mach ; then

$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h

	elif test $ol_with_threads = found ; then
		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
	fi
	;;
esac
a16173 1
case $ol_with_threads in auto | yes | pth)
d16175 1
a16175 1
	for ac_header in pth.h
d16177 3
a16179 2
  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
if test "x$ac_cv_header_pth_h" = xyes; then :
d16181 1
a16181 1
#define HAVE_PTH_H 1
a16184 1

d16188 3
a16190 4
	if test $ac_cv_header_pth_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
$as_echo_n "checking for pth_version in -lpth... " >&6; }
if ${ac_cv_lib_pth_pth_version+:} false; then :
d16193 1
a16193 3
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpth  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16195 4
a16199 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pth_version ();
d16203 1
a16203 1
return pth_version ();
d16208 2
a16209 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pth_pth_version=yes
d16211 1
a16211 12
  ac_cv_lib_pth_pth_version=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
  have_pth=yes
else
  have_pth=no
d16213 1
d16215 5
d16221 3
a16223 1
		if test $have_pth = yes ; then
d16225 4
a16228 1
$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
d16230 1
a16230 3
			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
			ol_link_threads=pth
			ol_with_threads=found
d16232 5
a16236 7
			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi
		fi
	fi
	;;
esac
a16237 9
case $ol_with_threads in auto | yes | lwp)

		for ac_header in thread.h synch.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d16239 2
d16242 2
d16245 1
d16247 1
a16247 1
done
d16249 4
a16252 6
	if test $ac_cv_header_thread_h = yes &&
	   test $ac_cv_header_synch_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
$as_echo_n "checking for thr_create in -lthread... " >&6; }
if ${ac_cv_lib_thread_thr_create+:} false; then :
  $as_echo_n "(cached) " >&6
d16254 14
a16267 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16269 1
a16269 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char thr_create ();
d16273 5
a16277 2
return thr_create ();
  ;
d16281 2
a16282 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_thread_thr_create=yes
d16284 4
a16287 1
  ac_cv_lib_thread_thr_create=no
d16289 1
a16289 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
a16290 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
  have_thr=yes
else
  have_thr=no
d16292 3
d16296 1
a16296 23

		if test $have_thr = yes ; then

$as_echo "#define HAVE_THR 1" >>confdefs.h

			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
			ol_link_threads=thr

			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi

						for ac_func in \
				thr_setconcurrency \
				thr_getconcurrency \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a16298 1
done
d16300 1
a16300 4
		fi
	fi

		for ac_header in lwp/lwp.h
d16302 2
a16303 2
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
d16305 1
a16305 1
#define HAVE_LWP_LWP_H 1
d16312 5
a16316 4
	if test $ac_cv_header_lwp_lwp_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
$as_echo_n "checking for lwp_create in -llwp... " >&6; }
if ${ac_cv_lib_lwp_lwp_create+:} false; then :
d16320 1
a16320 1
LIBS="-llwp  $LIBS"
d16330 1
a16330 1
char lwp_create ();
d16334 1
a16334 1
return lwp_create ();
d16340 1
a16340 1
  ac_cv_lib_lwp_lwp_create=yes
d16342 1
a16342 1
  ac_cv_lib_lwp_lwp_create=no
d16348 10
a16357 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
  have_lwp=yes
else
  have_lwp=no
d16361 14
a16374 1
		if test $have_lwp = yes ; then
d16376 1
a16376 1
$as_echo "#define HAVE_LWP 1" >>confdefs.h
a16377 2
			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
			ol_link_threads=lwp
d16379 6
a16384 7
			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=no
			fi
		fi
	fi
	;;
esac
a16385 1
if test $ol_with_yielding_select = yes ; then
d16387 5
a16391 1
$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
d16395 1
a16395 2
if test $ol_with_threads = manual ; then
		ol_link_threads=yes
d16397 1
a16397 4
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}

	for ac_header in pthread.h sched.h
d16410 1
a16410 1
	for ac_func in sched_yield pthread_yield
d16412 3
a16414 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d16416 1
a16416 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16420 1
d16423 7
a16429 9

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
a16430 8
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
fi
rm -f conftest*

a16432 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then
d16434 1
a16434 1
$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
a16435 1
	fi
d16437 3
a16439 2

	for ac_header in mach/cthreads.h
d16441 2
a16442 2
  ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
d16444 1
a16444 1
#define HAVE_MACH_CTHREADS_H 1
d16451 5
a16455 1
	for ac_header in lwp/lwp.h
d16457 2
a16458 2
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
d16460 1
a16460 1
#define HAVE_LWP_LWP_H 1
d16467 5
a16471 1
	for ac_header in thread.h synch.h
d16484 34
d16520 1
a16520 1
if test $ol_link_threads != no && test $ol_link_threads != nt ; then
d16522 7
a16528 1
$as_echo "#define REENTRANT 1" >>confdefs.h
d16530 1
d16532 1
a16532 1
$as_echo "#define _REENTRANT 1" >>confdefs.h
d16535 13
a16547 1
$as_echo "#define THREAD_SAFE 1" >>confdefs.h
d16549 1
d16551 1
a16551 1
$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
d16553 11
d16565 4
a16568 1
$as_echo "#define THREADSAFE 1" >>confdefs.h
d16570 8
d16579 5
a16583 1
$as_echo "#define _THREADSAFE 1" >>confdefs.h
d16585 1
d16587 1
a16587 1
$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
d16589 1
d16591 5
a16595 5
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
$as_echo_n "checking for thread specific errno... " >&6; }
if ${ol_cv_errno_thread_specific+:} false; then :
  $as_echo_n "(cached) " >&6
else
d16597 4
a16600 10
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <errno.h>
int
main ()
{
errno = 0;
  ;
  return 0;
}
a16601 7
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_errno_thread_specific=yes
else
  ol_cv_errno_thread_specific=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
a16603 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
$as_echo "$ol_cv_errno_thread_specific" >&6; }
d16605 1
a16605 5
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
$as_echo_n "checking for thread specific h_errno... " >&6; }
if ${ol_cv_h_errno_thread_specific+:} false; then :
  $as_echo_n "(cached) " >&6
else
d16607 6
a16612 10
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netdb.h>
int
main ()
{
h_errno = 0;
  ;
  return 0;
}
a16613 7
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_h_errno_thread_specific=yes
else
  ol_cv_h_errno_thread_specific=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
a16615 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
$as_echo "$ol_cv_h_errno_thread_specific" >&6; }
d16617 1
a16617 5
	if test $ol_cv_errno_thread_specific != yes ||
	   test $ol_cv_h_errno_thread_specific != yes ; then
		LIBS="$LTHREAD_LIBS $LIBS"
		LTHREAD_LIBS=""
	fi
d16619 6
a16624 1
fi
d16626 5
a16630 4
if test $ol_link_threads = no ; then
	if test $ol_with_threads = yes ; then
		as_fn_error $? "no suitable thread support" "$LINENO" 5
	fi
d16632 1
a16632 5
	if test $ol_with_threads = auto ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
		ol_with_threads=no
	fi
d16634 1
d16636 8
a16643 1
$as_echo "#define NO_THREADS 1" >>confdefs.h
a16644 4
	LTHREAD_LIBS=""
	BUILD_THREAD=no
else
	BUILD_THREAD=yes
d16647 16
a16662 1
if test $ol_link_threads != no ; then
d16664 5
a16668 1
$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
d16672 1
a16672 4
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
case "$ol_with_threads" in
 no)
    ol_pthread_ok=no
d16674 21
a16694 5
    ;;
 *)
    ol_found_pthreads=yes
    ;;
esac
d16696 2
a16697 17
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    case "$ol_found_pthreads" in
     yes)
	saved_LIBS="$LIBS"
	LIBS="$LTHREAD_LIBS $LIBS"
	saved_CFLAGS="$CFLAGS"
	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
	for ac_func in sem_timedwait
do :
  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
if test "x$ac_cv_func_sem_timedwait" = xyes; then :
d16699 1
a16699 1
#define HAVE_SEM_TIMEDWAIT 1
d16703 1
d16706 5
a16710 19
	LIBS="$saved_LIBS"
	{ saved_LIBS=; unset saved_LIBS;}
	CFLAGS="$saved_CFLAGS"
	{ saved_CFLAGS=; unset saved_CFLAGS;}
	case "$ac_cv_func_sem_timedwait" in
	 yes)
	    PTHREAD_LIBS="$LTHREAD_LIBS"
	    have_pthreads=yes
	    # Bug 2332: With GCC we need to force a reference to libgcc_s
	    # (if libgcc_s exists) or the combination of
	    # threads + setuid + mlockall does not work on linux because
	    # thread cancellation fails to load libgcc_s with dlopen().
	    # We have to pass this all as linker options to avoid argument
	    # reordering by libtool.
	    case "$GCC$with_gnu_ld" in
	    yesyes)
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lgcc_s" >&5
$as_echo_n "checking for exit in -lgcc_s... " >&6; }
if ${ac_cv_lib_gcc_s_exit+:} false; then :
d16713 1
a16713 3
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgcc_s  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16716 11
a16726 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char exit ();
int
main ()
{
return exit ();
  ;
  return 0;
}
d16728 3
a16730 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gcc_s_exit=yes
d16732 2
a16733 10
  ac_cv_lib_gcc_s_exit=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_exit" >&5
$as_echo "$ac_cv_lib_gcc_s_exit" >&6; }
if test "x$ac_cv_lib_gcc_s_exit" = xyes; then :
  PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed"
d16735 1
a16736 5
		;;
	    esac
	esac
    esac
esac
d16738 4
a16741 1
case "$have_pthreads" in
a16742 17
    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
    saved_LIBS="$LIBS"
    LIBS="$LTHREAD_LIBS $LIBS"
    saved_CFLAGS="$CFLAGS"
    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
$as_echo_n "checking size of pthread_t... " >&6; }
if ${ac_cv_sizeof_pthread_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
	    $ac_includes_default
	    #include <pthread.h>
d16744 3
d16748 7
a16754 1
"; then :
a16755 9
else
  if test "$ac_cv_type_pthread_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (pthread_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_pthread_t=0
   fi
d16758 1
a16758 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
d16760 2
d16763 1
d16765 8
a16772 2
cat >>confdefs.h <<_ACEOF
#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
d16775 3
d16779 8
a16786 1
    LIBISC_PTHREADS_NOTHREADS=pthreads
d16788 1
a16788 1
$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
d16790 1
a16790 16
    #
    # We'd like to use sigwait() too
    #
    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
if test "x$ac_cv_func_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
$as_echo_n "checking for sigwait in -lc... " >&6; }
if ${ac_cv_lib_c_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16792 10
a16801 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
d16803 1
a16803 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_sigwait=yes
else
  ac_cv_lib_c_sigwait=no
a16804 18
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
$as_echo "$ac_cv_lib_c_sigwait" >&6; }
if test "x$ac_cv_lib_c_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
$as_echo_n "checking for sigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16806 11
a16816 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
d16818 1
a16818 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread_sigwait=yes
else
  ac_cv_lib_pthread_sigwait=no
a16819 18
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread__Psigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16821 9
a16829 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char _Psigwait ();
int
main ()
{
return _Psigwait ();
  ;
  return 0;
}
d16831 1
a16831 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread__Psigwait=yes
else
  ac_cv_lib_pthread__Psigwait=no
a16832 10
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
  have_sigwait=yes
else
  have_sigwait=no
d16834 1
a16834 1
fi
d16836 9
d16848 1
d16850 11
a16860 2
fi

d16864 1
a16864 11
    case "$host:$have_sigwait" in
     *-freebsd*:no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
$as_echo_n "checking for sigwait in -lc_r... " >&6; }
if ${ac_cv_lib_c_r_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc_r  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16866 10
a16875 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
a16876 13
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_r_sigwait=yes
else
  ac_cv_lib_c_r_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
  have_sigwait=yes
d16880 1
a16880 4
    esac
    case "$have_sigwait" in
     yes)
	ac_cv_func_sigwait=yes
d16882 4
a16885 5
$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h

    esac

    for ac_func in pthread_attr_getstacksize
d16887 3
a16889 2
  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
d16891 1
a16891 1
#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
d16895 1
d16898 6
a16903 1
    for ac_func in pthread_attr_setstacksize sysconf
d16905 3
a16907 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d16909 1
a16909 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16913 1
d16916 10
d16927 1
a16927 4
    case "$host" in
     *-freebsd5.[012]|*-freebsd5.[012].*)
	;;
     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
d16929 1
a16929 1
$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
d16931 11
a16941 2
	;;
     *-bsdi3.*|*-bsdi4.0*)
d16943 1
a16943 1
$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
d16945 1
a16945 4
	;;
     *-linux*)

$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
d16947 1
a16947 5
	;;
     *-solaris*)
	$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

	for ac_func in pthread_setconcurrency
d16949 3
a16951 2
  ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
d16953 1
a16953 1
#define HAVE_PTHREAD_SETCONCURRENCY 1
d16957 1
d16960 8
a16967 2
	case "$ac_cv_func_pthread_setconcurrency" in
	 yes)
d16969 1
a16969 1
$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
d16971 1
a16971 3
	esac
	;;
     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
d16973 1
a16973 19
$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h

	;;
    esac
    hack_shutup_pthreadonceinit=no
    case "$host" in
     *-aix5.[123].*)
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.[89])
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.1[0-9])
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16976 10
a16985 1
			#include <pthread.h>
d16987 12
a16998 3
int
main ()
{
a16999 2
		        static pthread_once_t once_test =
						PTHREAD_ONCE_INIT;
d17001 4
a17004 4

  ;
  return 0;
}
a17005 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_braces_around_pthread_once_init=no
else
  ntp_cv_braces_around_pthread_once_init=yes
a17007 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d17009 1
a17009 13
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
	case "$ntp_cv_braces_around_pthread_once_init" in
	 yes)
	    hack_shutup_pthreadonceinit=yes
	esac
	;;
    esac
    case "$hack_shutup_pthreadonceinit" in
     yes)

$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
a17010 10
    esac
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
    CFLAGS="$saved_CFLAGS"
    { saved_CFLAGS=; unset saved_CFLAGS;}
    ;;
 *)
    LIBISC_PTHREADS_NOTHREADS=nothreads
    ;;
esac
a17011 6
 if test "$have_pthreads" != "no"; then
  PTHREADS_TRUE=
  PTHREADS_FALSE='#'
else
  PTHREADS_TRUE='#'
  PTHREADS_FALSE=
d17013 1
d17015 8
d17024 1
d17026 1
d17028 3
a17030 8



case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
 no:yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
if ${ntp_cv_vsnprintf_percent_m+:} false; then :
a17032 4
  if test "$cross_compiling" = yes; then :
  ntp_cv_vsnprintf_percent_m=no

else
d17035 3
a17037 29

		    #include <stdarg.h>
		    #include <errno.h>
		    #include <stdio.h>
		    #include <string.h>

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    );

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    )
		    {
			    va_list	ap;
			    int		rc;

			    va_start(ap, fmt);
			    rc = vsnprintf(dst, sz, fmt, ap);
			    va_end(ap);

			    return rc;
		    }
d17042 2
a17043 12

		    char	sbuf[512];
		    char	pbuf[512];
		    int		slen;

		    strcpy(sbuf, strerror(ENOENT));
		    errno = ENOENT;
		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
					  "wrong");
		    return strcmp(sbuf, pbuf);


d17048 2
a17049 2
if ac_fn_c_try_run "$LINENO"; then :
  ntp_cv_vsnprintf_percent_m=yes
d17051 1
a17051 1
  ntp_cv_vsnprintf_percent_m=no
d17053 1
a17053 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d17055 3
d17059 1
a17059 30

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
    case "$ntp_cv_vsnprintf_percent_m" in
     yes)

$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h

    esac
esac

for ac_header in sys/clockctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_CLOCKCTL_H 1
_ACEOF

fi

done


# Check whether --enable-clockctl was given.
if test "${enable_clockctl+set}" = set; then :
  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
else
  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
d17063 3
a17065 8

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
$as_echo "$ntp_use_dev_clockctl" >&6; }


for ac_header in sys/capability.h sys/prctl.h
a17077 13

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }

case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
 yesyes)
    case "$host" in
     mips-sgi-irix*)
	ntp_have_linuxcaps=no
	;;
     *) ntp_have_linuxcaps=yes
	;;
    esac
d17079 9
a17087 8
 *)
    ntp_have_linuxcaps=no
    ;;
esac

# Check whether --enable-linuxcaps was given.
if test "${enable_linuxcaps+set}" = set; then :
  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
d17091 1
a17092 9
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
$as_echo "$ntp_have_linuxcaps" >&6; }

case "$ntp_have_linuxcaps" in
 yes)

$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h

    LIBS="$LIBS -lcap"
d17096 3
a17098 2

for ac_header in priv.h
d17100 3
a17102 2
  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
if test "x$ac_cv_header_priv_h" = xyes; then :
d17104 1
a17104 1
#define HAVE_PRIV_H 1
a17107 1

d17110 1
a17110 18

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }

case "$ac_cv_header_priv_h" in
 yes)
    case "$host" in
     *-solaris*)
	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
if test "x$ac_cv_func_setppriv" = xyes; then :
  ntp_have_solarisprivs=yes
else
  ntp_have_solarisprivs=no

fi

	;;
    esac
d17112 1
a17112 10

# Check whether --enable-solarisprivs was given.
if test "${enable_solarisprivs+set}" = set; then :
  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval

fi



case "$ntp_have_solarisprivs" in
d17114 5
a17118 20

$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
$as_echo "$ntp_have_solarisprivs" >&6; }

case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
 *yes*)

$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h

esac

case "$host" in
 *-*-darwin*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
$as_echo_n "checking for library containing res_9_init... " >&6; }
if ${ac_cv_search_res_9_init+:} false; then :
d17121 2
a17122 1
  ac_func_search_save_LIBS=$LIBS
d17132 1
a17132 1
char res_9_init ();
d17136 1
a17136 1
return res_9_init ();
d17141 4
a17144 9
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_9_init=$ac_res
d17147 2
a17148 3
    conftest$ac_exeext
  if ${ac_cv_search_res_9_init+:} false; then :
  break
d17150 6
a17155 2
done
if ${ac_cv_search_res_9_init+:} false; then :
d17157 1
a17157 11
else
  ac_cv_search_res_9_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
$as_echo "$ac_cv_search_res_9_init" >&6; }
ac_res=$ac_cv_search_res_9_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17160 3
a17162 5

    ;;
 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
$as_echo_n "checking for library containing res_init... " >&6; }
if ${ac_cv_search_res_init+:} false; then :
d17165 2
a17166 1
  ac_func_search_save_LIBS=$LIBS
d17170 1
a17170 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char res_init ();
d17174 1
a17174 1
return res_init ();
d17179 4
a17182 9
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_init=$ac_res
d17185 2
a17186 44
    conftest$ac_exeext
  if ${ac_cv_search_res_init+:} false; then :
  break
fi
done
if ${ac_cv_search_res_init+:} false; then :

else
  ac_cv_search_res_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
$as_echo "$ac_cv_search_res_init" >&6; }
ac_res=$ac_cv_search_res_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

    ;;
esac
for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

d17188 3
a17190 18

done


#HMS: Why do we do this check so "early"?
for ac_func in res_init
do :
  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
if test "x$ac_cv_func_res_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RES_INIT 1
_ACEOF

else
  for ac_func in __res_init
do :
  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
if test "x$ac_cv_func___res_init" = xyes; then :
d17192 1
a17192 35
#define HAVE___RES_INIT 1
_ACEOF

fi
done

fi
done


# We also need -lsocket, but we have tested for that already.
ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
if test "x$ac_cv_func_inet_ntop" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
if test "x$ac_cv_func_inet_pton" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h

fi


ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
d17195 1
d17197 4
a17200 28
fi
ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
if test "x$ac_cv_type_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
if test "x$ac_cv_type_u_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT32 1
_ACEOF


fi




case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
$as_echo_n "checking for int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_int32_with_dns+:} false; then :
d17203 3
a17205 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17208 7
a17214 5
		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>

d17218 1
a17218 4

		    size_t cb = sizeof(int32);


d17223 2
a17224 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_type_int32_with_dns=yes
d17226 1
a17226 2
  ntp_cv_type_int32_with_dns=no

d17228 3
a17230 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d17232 6
a17237 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
$as_echo "$ntp_cv_type_int32_with_dns" >&6; }
    case "$ntp_cv_type_int32_with_dns" in
     yes)
d17239 1
a17239 1
$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
d17241 1
a17241 2
    esac
esac
d17243 3
a17245 5
case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
$as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_u_int32_with_dns+:} false; then :
d17248 3
a17250 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17253 7
a17259 5
		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>

d17263 1
a17263 4

		    size_t cb = sizeof(u_int32);


d17268 2
a17269 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_type_u_int32_with_dns=yes
d17271 1
a17271 2
  ntp_cv_type_u_int32_with_dns=no

d17273 3
a17275 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d17277 6
a17282 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
    case "$ntp_cv_type_u_int32_with_dns" in
     yes)
d17284 1
a17284 1
$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
d17286 1
a17286 2
    esac
esac
d17288 1
a17288 1
for ac_header in sys/timepps.h
d17290 3
a17292 11
  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
	#ifdef HAVE_SYS_TIME_H
	# include <sys/time.h>
	#endif
	#ifdef HAVE_ERRNO_H
	# include <errno.h>
	#endif


"
if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
d17294 1
a17294 1
#define HAVE_SYS_TIMEPPS_H 1
d17301 4
d17306 4
a17309 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
$as_echo_n "checking for struct timespec... " >&6; }
if ${ntp_cv_struct_timespec+:} false; then :
d17315 1
a17315 10
		#include <sys/time.h>
		/* Under SunOS, timespec is in sys/timepps.h,
		   which needs errno.h and FRAC */
		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif
		#ifdef HAVE_SYS_TIMEPPS_H
		# define FRAC 4294967296
		# include <sys/timepps.h>
		#endif
d17321 2
a17322 1
		struct timespec n;
d17328 1
d17331 1
a17331 3
  ntp_cv_struct_timespec=yes
else
  ntp_cv_struct_timespec=no
d17337 4
a17340 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
$as_echo "$ntp_cv_struct_timespec" >&6; }
case "$ntp_cv_struct_timespec" in
 yes)
d17342 1
a17342 1
$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
d17344 2
d17348 14
a17361 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
$as_echo_n "checking for struct ntptimeval... " >&6; }
if ${ntp_cv_struct_ntptimeval+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d17363 1
a17363 2
		#include <sys/time.h>
		#include <sys/timex.h>
d17365 1
a17365 3
int
main ()
{
a17366 1
		struct ntptimeval n;
d17368 5
d17374 4
a17377 3
  ;
  return 0;
}
a17378 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ntptimeval=yes
else
  ntp_cv_struct_ntptimeval=no
a17380 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d17382 1
a17382 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
case "$ntp_cv_struct_ntptimeval" in
 yes)
a17383 1
$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
d17385 1
a17385 3
esac

for ac_header in md5.h
d17387 6
a17392 5
  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
	#ifdef HAVE_SYS_TYPES_H
	# include <sys/types.h>
	#endif

d17395 1
a17395 1
if test "x$ac_cv_header_md5_h" = xyes; then :
d17397 1
a17397 1
#define HAVE_MD5_H 1
d17405 5
a17409 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
$as_echo_n "checking for library containing MD5Init... " >&6; }
if ${ac_cv_search_MD5Init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d17411 4
a17414 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char MD5Init ();
int
main ()
{
return MD5Init ();
  ;
  return 0;
}
d17416 1
a17416 14
for ac_lib in '' md5 md; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_MD5Init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_MD5Init+:} false; then :
  break
d17418 1
a17419 1
if ${ac_cv_search_MD5Init+:} false; then :
a17420 11
else
  ac_cv_search_MD5Init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
$as_echo "$ac_cv_search_MD5Init" >&6; }
ac_res=$ac_cv_search_MD5Init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17422 11
a17432 1
fi
d17434 2
a17435 5
for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d17437 1
a17437 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d17441 1
d17445 3
a17447 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
$as_echo_n "checking for SIGIO... " >&6; }
if ${ntp_cv_hdr_def_sigio+:} false; then :
a17452 1
	    #include <signal.h>
d17454 6
a17459 3
	    #ifndef SIGIO
	    # error
	    #endif
d17461 4
d17466 2
a17467 4
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_hdr_def_sigio=yes
else
  ntp_cv_hdr_def_sigio=no
d17470 1
a17470 1
rm -f conftest.err conftest.i conftest.$ac_ext
d17473 3
a17475 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
$as_echo "$ntp_cv_hdr_def_sigio" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
$as_echo_n "checking if we want to use SIGIO... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigio" in
a17476 39
    ans=yes
    case "$host" in
     alpha*-dec-osf4*|alpha*-dec-osf5*)
	ans=no
	;;
     *-convex-*)
	ans=no
	;;
     *-dec-*)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-univel-sysv*)
	ans=no
	;;
     *-*-irix6*)
	ans=no
	;;
     *-*-freebsd*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     m68k-*-mint*)
	ans=no
	;;
    esac
d17478 1
a17478 3
esac
case "$ans" in
 yes)
d17480 1
a17480 1
$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
d17482 1
a17483 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d17485 3
a17487 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
$as_echo_n "checking for SIGPOLL... " >&6; }
if ${ntp_cv_hdr_def_sigpoll+:} false; then :
d17493 27
a17519 1
	    #include <signal.h>
d17521 24
a17544 3
	    #ifndef SIGPOLL
	    # error
	    #endif
d17546 3
d17550 2
a17551 2
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_hdr_def_sigpoll=yes
d17553 7
a17559 1
  ntp_cv_hdr_def_sigpoll=no
d17561 1
a17561 2
fi
rm -f conftest.err conftest.i conftest.$ac_ext
a17563 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
d17565 13
a17577 56
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-solaris*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)
d17579 2
a17580 1
$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
d17582 29
a17610 57
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)
d17612 8
a17619 1
$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
d17621 7
a17627 10
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17629 2
a17630 2

		#include <sys/time.h>
d17635 3
a17637 4

		gettimeofday(0, 0);
		settimeofday(0, 0);

d17644 1
a17644 1
  ntp_cv_func_Xettimeofday_nargs=2
d17646 3
a17648 2
  ntp_cv_func_Xettimeofday_nargs=1

d17651 6
d17658 6
a17663 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
case "$ntp_cv_func_Xettimeofday_nargs" in
 1)
d17665 9
a17673 1
$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
d17675 6
a17680 1
esac
d17682 3
a17684 6
for ac_func in settimeofday
do :
  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
if test "x$ac_cv_func_settimeofday" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETTIMEOFDAY 1
d17686 2
a17687 1

d17689 3
a17691 5

    case "$host" in
     *-*-mpeix*) ac_cv_func_settimeofday=yes
    esac

d17693 23
a17715 1
done
d17717 20
a17736 50

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
ntp_warning='GRONK'
ans=none
case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
 yes*)
    ntp_warning=''
    ans='clock_settime()'
    ;;
 noyes*)
    ntp_warning='But clock_settime() would be better (if we had it)'
    ans='settimeofday()'
    ;;
 nonoyes)
    ntp_warning='Which is the worst of the three'
    ans='stime()'
    ;;
 *)
    case "$build" in
     $host)
	ntp_warning='Which leaves us with nothing to use!'
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ntp_warning" in
 '')
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
    ;;
esac


LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
LIBS=$__LIBS
{ __LIBS=; unset __LIBS;}



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
$as_echo_n "checking for deprecated --with-arlib... " >&6; }

# Check whether --with-arlib was given.
if test "${with_arlib+set}" = set; then :
  withval=$with_arlib; ans=$withval
else
  ans=no
d17738 1
a17738 19

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&5
$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&2;}
    ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&6
d17740 6
a17745 17
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d17747 8
a17754 10
fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d17756 6
a17761 11

  test -n "$AWK" && break
done

{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
d17763 1
a17763 13
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
d17765 2
a17766 8
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
d17769 11
d17781 1
d17783 5
d17789 3
a17791 15

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
$as_echo_n "checking for library containing strerror... " >&6; }
if ${ac_cv_search_strerror+:} false; then :
d17794 1
a17794 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17796 2
a17798 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strerror ();
d17802 1
a17802 1
return strerror ();
d17807 2
a17808 18
for ac_lib in '' cposix; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_strerror=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_strerror+:} false; then :
  break
fi
done
if ${ac_cv_search_strerror+:} false; then :

d17810 1
a17810 1
  ac_cv_search_strerror=no
d17812 1
a17812 2
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
d17814 2
a17815 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
$as_echo "$ac_cv_search_strerror" >&6; }
ac_res=$ac_cv_search_strerror
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17817 3
a17819 1
fi
d17822 2
a17824 6
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_PERL+:} false; then :
  $as_echo_n "(cached) " >&6
a17825 19
  case $PATH_PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d17827 4
a17830 2
  ;;
esac
d17832 4
a17835 4
PATH_PERL=$ac_cv_path_PATH_PERL
if test -n "$PATH_PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
$as_echo "$PATH_PERL" >&6; }
d17837 5
a17841 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d17844 6
a17850 27
{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
# Extract the first word of "test", so it can be a program name with args.
set dummy test; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_TEST+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_TEST in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a17851 10
  ;;
esac
fi
PATH_TEST=$ac_cv_path_PATH_TEST
if test -n "$PATH_TEST"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
$as_echo "$PATH_TEST" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d17853 6
d17861 3
a17863 2
{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
d17865 3
a17868 5
# Check whether --with-net-snmp-config was given.
if test "${with_net_snmp_config+set}" = set; then :
  withval=$with_net_snmp_config; ans=$withval
else
  ans=yes
d17872 7
a17878 28
case "$ans" in
 no)
    ;;
 yes)
    ans=net-snmp-config
    ;;
 /*)
    ;;
 */*)
    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
    ;;
 *)
    ;;
esac
PROG_NET_SNMP_CONFIG=$ans
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
case "$PROG_NET_SNMP_CONFIG" in
 no) ;;
 /*)
    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
    ;;
 *)
    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
d17881 1
a17881 19
  case $PATH_NET_SNMP_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d17883 9
a17891 2
  ;;
esac
d17893 1
a17893 7
PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
if test -n "$PATH_NET_SNMP_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d17895 9
a17905 5
    { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
a17906 5
case "$host" in
 *-*-vxworks*)
    ac_link="$ac_link $VX_KERNEL"
    ;;
esac
d17908 3
a17910 4
# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
$as_echo_n "checking for library containing openlog... " >&6; }
if ${ac_cv_search_openlog+:} false; then :
d17913 1
a17913 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17915 2
a17917 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char openlog ();
d17921 3
a17923 1
return openlog ();
d17928 6
a17933 9
for ac_lib in '' gen syslog; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_openlog=$ac_res
d17935 6
a17940 4
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_openlog+:} false; then :
  break
a17941 2
done
if ${ac_cv_search_openlog+:} false; then :
d17943 5
d17949 10
a17958 10
  ac_cv_search_openlog=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
$as_echo "$ac_cv_search_openlog" >&6; }
ac_res=$ac_cv_search_openlog
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17960 1
a17960 1
fi
a17961 1
# XXX library list will be in ac_cv_search_openlog
d17963 6
a17968 7
# LIBSECCOMP is off by default -- needs testing with all the features
# Please send bug reports to loganaden@@gmail.com
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
# Check whether --enable-libseccomp was given.
if test "${enable_libseccomp+set}" = set; then :
  enableval=$enable_libseccomp; ntp_ok=$enableval
d17970 1
a17970 1
  ntp_ok=no
d17973 1
d17975 4
a17978 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok" in
d17980 8
a17987 3
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
$as_echo_n "checking for library containing seccomp_init... " >&6; }
if ${ac_cv_search_seccomp_init+:} false; then :
d17990 1
a17990 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17993 4
a17996 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char seccomp_init ();
d18000 4
a18003 1
return seccomp_init ();
d18008 5
a18012 9
for ac_lib in '' seccomp; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_seccomp_init=$ac_res
d18014 1
a18014 7
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_seccomp_init+:} false; then :
  break
fi
done
if ${ac_cv_search_seccomp_init+:} false; then :
a18015 2
else
  ac_cv_search_seccomp_init=no
d18017 4
a18020 8
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
$as_echo "$ac_cv_search_seccomp_init" >&6; }
ac_res=$ac_cv_search_seccomp_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18022 1
a18022 1
$as_echo "#define LIBSECCOMP 1" >>confdefs.h
d18024 1
d18026 4
a18029 7
fi

    if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
a18030 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d18032 9
a18040 5
	#include <stdio.h>
	#include <stdlib.h>
	#include <errno.h>
	#include <sys/prctl.h>
	#include <linux/seccomp.h>
a18041 28
	int main(void)
	{
		int ret;
		ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
		if (ret < 0) {
			switch (errno) {
			case ENOSYS:
				return 1;
			case EINVAL:
				return 1;
			default:
				return 1;
			}
		}
		ret =
		prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
		if (ret < 0) {
			switch (errno) {
			case EINVAL:
				return 1;
			case EFAULT:
				return 0;
			default:
				return 1;
		}
	}
return 1;
}
d18043 3
d18047 2
a18049 1
if ac_fn_c_try_run "$LINENO"; then :
d18051 25
a18075 1
$as_echo "#define KERN_SECCOMP 1" >>confdefs.h
d18079 6
a18084 3
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a18085 1
    ;;
d18088 5
a18092 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
$as_echo_n "checking for facilitynames in syslog.h... " >&6; }
if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
d18095 1
a18095 2

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18098 4
a18101 3
#define SYSLOG_NAMES
#include <stdlib.h>
#include <syslog.h>
d18106 4
a18109 1
 void *fnames; fnames = facilitynames;
d18115 1
a18115 1
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
d18117 2
a18118 1
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
d18121 1
d18123 2
a18124 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
 yes)
d18126 3
a18128 27
$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h

    ;;
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
    ;;
 cross)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
    ;;
esac



case "$host" in
 *-*-*linux*) ;;
 *-*-osf4*) ;;
 *-*-osf5*) ;;
 *)
    # HMS: Make sure we check for -lrt for clock_* before this...
    case "$ac_cv_search_clock_gettime" in
     '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
$as_echo_n "checking for library containing sched_setscheduler... " >&6; }
if ${ac_cv_search_sched_setscheduler+:} false; then :
d18131 1
a18131 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18134 4
a18137 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_setscheduler ();
d18141 4
a18144 1
return sched_setscheduler ();
d18149 5
a18153 9
for ac_lib in '' rt posix4; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_sched_setscheduler=$ac_res
d18155 1
a18155 7
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_sched_setscheduler+:} false; then :
  break
fi
done
if ${ac_cv_search_sched_setscheduler+:} false; then :
a18156 2
else
  ac_cv_search_sched_setscheduler=no
d18158 2
a18159 8
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
$as_echo "$ac_cv_search_sched_setscheduler" >&6; }
ac_res=$ac_cv_search_sched_setscheduler
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18161 2
a18162 1
fi
d18164 1
a18164 2
    ;;
esac
d18166 2
a18167 7
for ac_header in bstring.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
if test "x$ac_cv_header_bstring_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_BSTRING_H 1
_ACEOF
d18169 1
a18169 1
fi
d18171 2
a18172 1
done
d18174 3
a18176 5
ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
if test "x$ac_cv_header_dns_sd_h" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
$as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
if ${ac_cv_search_DNSServiceRegister+:} false; then :
d18179 1
a18179 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18182 2
a18183 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char DNSServiceRegister ();
d18187 5
a18191 1
return DNSServiceRegister ();
d18196 4
a18199 17
for ac_lib in '' dns_sd; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_DNSServiceRegister=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_DNSServiceRegister+:} false; then :
  break
fi
done
if ${ac_cv_search_DNSServiceRegister+:} false; then :
a18200 2
else
  ac_cv_search_DNSServiceRegister=no
d18202 1
a18202 11
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
$as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
ac_res=$ac_cv_search_DNSServiceRegister
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h

d18205 4
d18210 1
d18212 1
a18212 1
fi
d18214 7
d18222 12
a18233 8
for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18235 3
a18237 1
fi
d18239 2
a18240 1
done
d18243 3
a18245 7
for ac_header in memory.h netdb.h poll.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18247 4
d18253 1
a18253 11

done

for ac_header in sgtty.h stdlib.h string.h termio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18256 4
d18261 1
a18261 1
done
d18263 1
a18263 8
for ac_header in termios.h timepps.h timex.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18265 7
a18271 1
fi
d18273 9
a18281 1
done
d18283 3
d18287 1
a18287 11
case "$host" in
 *-*-aix*)
    for ac_header in utmpx.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
if test "x$ac_cv_header_utmpx_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMPX_H 1
_ACEOF

fi
a18288 1
done
d18290 3
a18292 10
    case "$ac_cv_header_utmpx_h" in
     yes)
	;;
     *)
	for ac_header in utmp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
if test "x$ac_cv_header_utmp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMP_H 1
d18294 4
d18300 1
a18300 15

done

	;;
    esac
    ;;
 *)
    for ac_header in utmp.h utmpx.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18303 4
d18308 1
a18308 1
done
a18309 1
    ;;
d18312 17
a18328 17
#
# On Suns only (so far) getpass() truncates the typed password to 8
# characters, but getpassphrase() allows up to 257.  Most systems'
# getpass() does not truncate, at least not so as to affect ntpq and
# ntpdc password prompts.
#
# So check for getpassphrase(), but only on Sun operating systems.
#
case "$host" in
 *-*-sunos*|*-*-solaris*)
    for ac_func in getpassphrase
do :
  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
if test "x$ac_cv_func_getpassphrase" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETPASSPHRASE 1
_ACEOF
d18330 3
a18332 2
fi
done
d18334 2
a18335 1
esac
d18338 3
a18340 6
for ac_header in net/if6.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
if test "x$ac_cv_header_net_if6_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF6_H 1
d18342 4
d18348 1
d18350 3
a18352 1
done
d18354 9
a18362 6
for ac_header in net/route.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <net/if.h>
d18364 9
a18372 5
"
if test "x$ac_cv_header_net_route_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_ROUTE_H 1
_ACEOF
d18374 3
a18376 1
fi
d18378 2
a18379 1
done
d18382 3
a18384 6
for ac_header in netinfo/ni.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NETINFO_NI_H 1
d18386 7
d18395 4
d18400 1
a18400 1
done
d18402 2
a18403 2
case "$ac_cv_header_netinfo_ni_h" in
 yes)
a18404 1
$as_echo "#define HAVE_NETINFO 1" >>confdefs.h
a18405 9
esac
for ac_header in sun/audioio.h sys/audioio.h sys/file.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18407 7
a18413 1
fi
d18415 9
a18423 1
done
d18425 3
a18427 11
case "$host" in
 *-*-sunos4*)
    ;;
 *)
    for ac_header in sys/ioctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_IOCTL_H 1
_ACEOF
d18429 2
a18430 1
fi
a18431 1
done
d18433 3
a18435 9
    ;;
esac
for ac_header in sys/ipc.h sys/lock.h sys/mman.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18437 4
d18443 1
d18445 3
a18447 1
done
d18449 9
a18457 9
# HMS: Check sys/proc.h and sys/resource.h after some others
for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18459 9
a18467 1
fi
d18469 3
a18471 13
done

case "$ac_cv_header_sched_h" in
 yes)
    ;;
 *)
    for ac_header in sys/sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SCHED_H 1
_ACEOF
d18473 2
a18474 1
fi
a18475 1
done
d18477 3
a18479 10
    ;;
esac
# HMS: Check sys/shm.h after some others
for ac_header in sys/select.h sys/signal.h sys/sockio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18481 4
d18487 1
a18487 16

done

# HMS: Checked sys/socket.h earlier
case "$host" in
 *-*-netbsd*)
    ;;
 *)
    for ac_header in machine/soundcard.h sys/soundcard.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18490 4
d18495 1
a18495 1
done
d18497 1
a18497 1
    ;;
a18498 8
for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a18499 1
fi
a18500 1
done
d18502 10
a18511 8
for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18513 2
a18514 1
fi
d18516 3
a18518 1
done
d18520 2
a18521 10
case "$host" in
*-convex-*)
    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a18522 1
fi
d18524 3
a18526 11
done

    ;;
*-*-bsdi*)
    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18528 4
d18534 1
d18536 5
a18540 1
done
d18542 1
a18542 19
    ;;
esac

case "$host" in
 *-*-solaris2.6)
    # Broken...
    ;;
 *)
    for ac_func in ntp_adjtime ntp_gettime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done
a18543 1
    ;;
d18546 9
a18554 13
case "$host" in
 *-*-*linux*)
    case "$ac_cv_func_ntp_gettime" in
     yes)
	;;
     *)
	for ac_func in __ntp_gettime
do :
  ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
if test "x$ac_cv_func___ntp_gettime" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___NTP_GETTIME 1
_ACEOF
d18556 6
a18561 2
fi
done
d18563 3
a18565 2
	case "$ac_cv_func___ntp_gettime" in
	 yes)
d18567 2
a18568 1
$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
d18571 3
a18573 11
$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h

	esac
	;;
    esac
    for ac_func in adjtimex
do :
  ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
if test "x$ac_cv_func_adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ADJTIMEX 1
d18575 4
d18581 1
a18581 1
done
d18583 4
a18586 1
    case "$ac_cv_func_adjtimex" in
d18589 1
a18589 1
$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
d18591 2
d18594 7
a18600 1
$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
d18602 1
a18602 10
	have_adjtimex=1
	;;
     *)
	for ac_func in __adjtimex
do :
  ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
if test "x$ac_cv_func___adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___ADJTIMEX 1
_ACEOF
d18604 3
a18606 2
fi
done
d18608 2
a18609 2
	case "$ac_cv_func___adjtimex" in
	 yes)
a18610 1
$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
d18612 8
d18621 2
a18622 1
$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
d18624 5
d18630 1
a18630 1
$as_echo "#define adjtimex __adjtimex" >>confdefs.h
d18632 1
d18634 3
a18636 15
$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h

	    have_adjtimex=1
	esac
	;;
    esac
esac
case "$have_adjtimex" in
 '')
    # nlist stuff is only needed for tickadj.
    saved_LIBS="$LIBS"
    LIBS=
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
$as_echo_n "checking for library containing nlist... " >&6; }
if ${ac_cv_search_nlist+:} false; then :
d18639 1
a18639 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18642 2
a18643 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
a18646 22
return nlist ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' elf ld mld; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_nlist=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_nlist+:} false; then :
  break
fi
done
if ${ac_cv_search_nlist+:} false; then :
d18648 10
d18659 2
a18660 1
  ac_cv_search_nlist=no
d18662 2
a18663 2
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
d18665 6
a18670 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
$as_echo "$ac_cv_search_nlist" >&6; }
ac_res=$ac_cv_search_nlist
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18672 1
a18672 1
fi
d18674 3
a18676 4
    # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
$as_echo_n "checking for library containing kvm_open... " >&6; }
if ${ac_cv_search_kvm_open+:} false; then :
d18679 1
a18679 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18682 11
a18692 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char kvm_open ();
d18696 4
a18699 1
return kvm_open ();
d18704 2
a18705 18
for ac_lib in '' kvm; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_kvm_open=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_kvm_open+:} false; then :
  break
fi
done
if ${ac_cv_search_kvm_open+:} false; then :

d18707 1
a18707 10
  ac_cv_search_kvm_open=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
$as_echo "$ac_cv_search_kvm_open" >&6; }
ac_res=$ac_cv_search_kvm_open
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18710 1
a18710 9
	    # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
    for ac_header in nlist.h sys/var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18713 4
d18718 1
a18718 1
done
d18720 1
a18720 2
    case "$ac_cv_header_nlist_h" in
     yes)
d18722 3
a18724 5
$as_echo "#define NLIST_STRUCT 1" >>confdefs.h

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
$as_echo_n "checking for n_un in struct nlist... " >&6; }
if ${ntp_cv_struct_nlist_n_un+:} false; then :
d18730 2
a18731 1
			#include <nlist.h>
d18737 1
a18737 2
			struct nlist n;
			n.n_un.n_name = 0;
a18742 1
		ntp_cv_struct_nlist_n_un=yes
d18745 3
a18747 1
  ntp_cv_struct_nlist_n_un=no
d18753 4
a18756 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
	case "$ntp_cv_struct_nlist_n_un" in
	 yes)
d18758 1
a18758 1
$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
d18760 1
a18760 2
	esac
    esac
d18762 15
a18776 4
    LDADD_NLIST="$LIBS"
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
esac
a18777 9
for ac_header in sys/proc.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif
d18780 4
a18783 3
if test "x$ac_cv_header_sys_proc_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PROC_H 1
d18786 1
a18788 1
done
d18790 14
a18804 11
for ac_header in sys/resource.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif

"
if test "x$ac_cv_header_sys_resource_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_RESOURCE_H 1
d18806 2
a18807 1

d18809 2
a18810 1

d18813 3
d18817 11
a18827 14
for ac_header in sys/shm.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_IPC_H
    # include <sys/ipc.h>
    #endif

"
if test "x$ac_cv_header_sys_shm_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SHM_H 1
d18829 2
a18831 1
fi
d18833 4
a18836 1
done
d18838 1
a18839 6
for ac_header in sys/timex.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif
d18841 1
a18841 5
"
if test "x$ac_cv_header_sys_timex_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEX_H 1
_ACEOF
d18843 3
a18845 8
fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
if ${ac_cv_type_signal+:} false; then :
d18850 1
a18850 3
#include <sys/types.h>
#include <signal.h>

d18854 3
a18856 1
return *(signal (0, 0)) (0) == 1;
d18861 33
a18893 4
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_signal=int
else
  ac_cv_type_signal=void
d18895 1
a18895 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d18897 4
a18900 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }
d18903 1
a18903 1
#define RETSIGTYPE $ac_cv_type_signal
d18907 2
a18908 4
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
if test "x$ac_cv_type_off_t" = xyes; then :

else
d18911 1
a18911 1
#define off_t long int
d18914 1
d18917 7
a18923 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if ${ac_cv_struct_tm+:} false; then :
d18926 1
a18926 4
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>
a18927 12
int
main ()
{
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_tm=time.h
d18929 8
a18936 1
  ac_cv_struct_tm=sys/time.h
d18938 1
a18938 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d18940 4
a18943 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then
d18945 3
a18947 1
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a18948 1
fi
d18950 7
a18956 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
$as_echo_n "checking for a fallback value for HZ... " >&6; }
if ${ntp_cv_default_hz+:} false; then :
d18959 12
d18972 3
a18974 9
	ntp_cv_default_hz=100
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_default_hz=1024
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_default_hz=256
	    ;;
	esac
a18976 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
$as_echo "$ntp_cv_default_hz" >&6; }
d18979 1
a18979 1
#define DEFAULT_HZ $ntp_cv_default_hz
a18982 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
if ${ntp_cv_override_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else
d18984 6
a18989 18
	ntp_cv_override_hz=no
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_override_hz=yes
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-freebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-sunos4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-kfreebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	esac
d18991 1
d18993 3
a18995 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
$as_echo "$ntp_cv_override_hz" >&6; }
case "$ntp_cv_override_hz" in
 yes)
d18997 1
a18997 1
$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
d18999 7
a19005 1
esac
d19007 1
d19009 5
a19013 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
$as_echo_n "checking for struct rt_msghdr... " >&6; }
if ${ntp_cv_struct_rt_msghdr+:} false; then :
d19018 1
d19020 8
a19027 4
		#include <sys/types.h>
		#include <sys/socket.h>
		#include <net/if.h>
		#include <net/route.h>
d19029 4
a19032 3
int
main ()
{
d19034 1
a19034 1
		struct rt_msghdr p;
d19037 1
a19037 8
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_rt_msghdr=yes
else
  ntp_cv_struct_rt_msghdr=no
a19039 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19040 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
d19042 12
a19053 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
$as_echo_n "checking for struct rtattr... " >&6; }
if ${ntp_cv_rtattr+:} false; then :
d19056 2
a19057 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19060 7
a19066 4
		#include <stddef.h>
		#include <sys/socket.h>
		#include <linux/rtnetlink.h>

d19070 22
a19092 9
		struct rtattr p;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rtattr=yes
d19094 10
a19103 1
  ntp_cv_rtattr=no
d19106 9
a19114 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19117 1
a19117 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
$as_echo "$ntp_cv_rtattr" >&6; }
d19119 9
a19127 2
case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
 *yes*)
d19129 2
a19130 1
$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
d19132 7
a19138 2
    case "$ntp_cv_rtattr" in
     yes)
d19140 8
a19147 1
$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
d19149 1
a19149 2
    esac
esac
d19151 5
a19155 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19158 1
a19158 1
		#include <signal.h>
d19164 2
a19165 2
		struct sigaction act;
		act.sa_sigaction = 0;
d19172 2
a19173 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_sigaction_has_sa_sigaction=yes
d19175 1
a19175 1
  ntp_cv_struct_sigaction_has_sa_sigaction=no
d19178 11
a19188 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19191 1
a19191 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
 yes)
a19192 1
$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
d19194 2
a19195 1
esac
a19196 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
$as_echo_n "checking for struct ppsclockev... " >&6; }
if ${ntp_cv_struct_ppsclockev+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d19198 8
a19205 12
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TERMIOS_H
		# include <sys/termios.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_PPSCLOCK_H
		# include <sys/ppsclock.h>
		#endif
d19207 2
a19208 3
int
main ()
{
a19209 2
		extern struct ppsclockev *pce;
		return pce->serial;
d19211 3
a19213 7

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ppsclockev=yes
d19215 1
a19215 1
  ntp_cv_struct_ppsclockev=no
a19217 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19218 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
case "$ntp_cv_struct_ppsclockev" in
 yes)
d19220 21
a19240 1
$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
d19242 2
a19243 1
esac
d19245 7
a19251 5
case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
  *yes*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
$as_echo_n "checking for struct snd_size... " >&6; }
if ${ntp_cv_struct_snd_size+:} false; then :
d19254 3
a19256 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19259 7
a19265 7
		    #ifdef HAVE_MACHINE_SOUNDCARD_H
		    # include <machine/soundcard.h>
		    #endif
		    #ifdef HAVE_SYS_SOUNDCARD_H
		    # include <sys/soundcard.h>
		    #endif

d19269 1
a19269 5

		    extern struct snd_size *ss;
		    return ss->rec_size;


d19274 2
a19275 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_snd_size=yes
d19277 5
a19281 2
  ntp_cv_struct_snd_size=no

d19283 6
a19288 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19290 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
$as_echo "$ntp_cv_struct_snd_size" >&6; }
    case "$ntp_cv_struct_snd_size" in
     yes)
d19292 4
a19295 1
$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
d19297 8
d19306 14
d19322 10
a19331 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
$as_echo_n "checking struct clockinfo for hz... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19334 6
a19339 1
		#include <sys/time.h>
d19345 3
a19347 2
		extern struct clockinfo *pc;
		return pc->hz;
d19355 12
a19366 3
  ntp_cv_struct_clockinfo_has_hz=yes
else
  ntp_cv_struct_clockinfo_has_hz=no
d19369 16
a19384 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19387 4
a19390 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)
d19392 1
a19392 1
$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
d19394 3
d19398 2
d19401 8
a19408 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
d19411 2
a19412 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19415 7
a19421 2
		#include <sys/time.h>

d19425 1
a19425 5

		extern struct clockinfo *pc;
		return pc->tickadj;


d19430 18
a19447 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_clockinfo_has_hz=yes
d19449 1
a19449 2
  ntp_cv_struct_clockinfo_has_hz=no

d19451 2
a19452 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d19454 5
a19458 35
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)

$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h

esac

case "$ntp_cv_struct_ntptimeval" in
 yes)
    ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
	    #ifdef HAVE_SYS_TIME_H
	    # include <sys/time.h>
	    #else
	    # ifdef HAVE_TIME_H
	    #  include <time.h>
	    # endif
	    #endif
	    #ifdef HAVE_SYS_TIMEX_H
	    # include <sys/timex.h>
	    #else
	    # ifdef HAVE_TIMEX_H
	    #  include <timex.h>
	    # endif
	    #endif


"
if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
_ACEOF

d19463 1
a19463 6

####

saved_LIBS="$LIBS"
LIBS="$LIBS $LDADD_LIBNTP"
for ac_func in daemon
d19465 2
a19466 2
  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
if test "x$ac_cv_func_daemon" = xyes; then :
d19468 1
a19468 1
#define HAVE_DAEMON 1
d19474 2
a19475 3
# XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
LIBS="$saved_LIBS"
{ saved_LIBS=; unset saved_LIBS;}
d19477 1
a19477 7
for ac_func in finite
do :
  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
if test "x$ac_cv_func_finite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FINITE 1
_ACEOF
d19479 1
a19479 8
else
  for ac_func in isfinite
do :
  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
if test "x$ac_cv_func_isfinite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ISFINITE 1
_ACEOF
d19481 4
d19486 2
a19487 7

	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
$as_echo_n "checking for isfinite with <math.h>... " >&6; }
	    _libs=$LIBS
	    # XXX
	    LIBS="$LIBS -lm"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19490 7
a19496 2
			#include <math.h>

d19500 1
a19500 5

			float f = 0.0;
			isfinite(f);


d19505 18
a19522 2
if ac_fn_c_try_link "$LINENO"; then :
  ans=yes
d19524 10
a19533 1
  ans=no
a19535 8
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    LIBS=$_libs
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
	    case "$ans" in
	     yes)
		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
d19537 4
a19540 1
	    esac
d19542 1
a19544 1
done
d19546 2
d19549 1
a19549 2
fi
done
d19551 1
a19551 9

for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a19553 1
done
a19555 1
# kvm_open() is only used by tickadj.  Also see above.
d19572 12
d19586 1
a19586 1
    # Just stubs.  Sigh.
d19613 2
a19614 3
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub.  Sigh.
d19617 4
a19620 1
    # Just a stub in "old" Irix.  Sigh.
a19621 4
# In the belief that the fix for bug 1223 fixes mlockall() under linux...
# *-*-*linux*)
#    # there, but more trouble than it is worth for now (resolver problems)
#    ;;
d19623 1
a19623 1
    # Apparently there but not working in QNX.  Sigh?
d19626 1
a19626 1
    # Just a stub.  Sigh.
d19667 1
a19667 1
for ac_func in nice plock pututline pututxline readlink rtprio
d19680 2
a19681 18
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub in AIX 4.  Sigh.
    ;;
 *-*-solaris2.5*)
    # Just stubs in solaris2.5.  Sigh.
    ;;
 *) for ac_func in sched_setscheduler
do :
  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_SETSCHEDULER 1
_ACEOF

fi
done

d19683 1
a19683 2
esac
for ac_func in setlinebuf setpgid setpriority setsid setvbuf
d19695 3
a19697 1
for ac_func in strdup strerror setrlimit strchr
d19710 2
a19711 3
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just stubs.  Sigh.
d19713 2
a19714 2
 *-*-netbsd1*)
    # Just stubs.  Sigh.
d19716 1
a19716 8
 *-*-netbsdelf1*)
    # Just stubs.  Sigh.
    ;;
 *-*-openbsd*)
    # Just stubs.  Sigh.
    ;;
 *)
    for ac_func in timer_create
d19718 2
a19719 2
  ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
if test "x$ac_cv_func_timer_create" = xyes; then :
d19721 1
a19721 1
#define HAVE_TIMER_CREATE 1
d19729 8
d19738 2
d19741 6
a19746 29

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
if ${ntp_cv_rlimit_memlock+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif

int
main ()
{

		getrlimit(RLIMIT_MEMLOCK, 0);


  ;
  return 0;
}
a19747 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_memlock=yes
else
  ntp_cv_rlimit_memlock=no
d19750 1
a19750 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19752 7
a19758 8
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
$as_echo "$ntp_cv_rlimit_memlock" >&6; }
case "$ntp_cv_rlimit_memlock" in
 yes)

    HAVE_RLIMIT_MEMLOCK=" memlock 32"
esac
a19759 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
$as_echo_n "checking for RLIMIT_STACK... " >&6; }
if ${ntp_cv_rlimit_stack+:} false; then :
  $as_echo_n "(cached) " >&6
a19760 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d19762 6
a19767 9
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif
d19769 7
a19775 10
int
main ()
{

		getrlimit(RLIMIT_STACK, 0);


  ;
  return 0;
}
a19776 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_stack=yes
else
  ntp_cv_rlimit_stack=no
d19779 1
a19779 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19781 8
a19788 20
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
$as_echo "$ntp_cv_rlimit_stack" >&6; }
case "$ntp_cv_rlimit_stack" in
 yes)

    HAVE_RLIMIT_STACK=" stacksize 50"
esac



# HMS: Only if we are doing the MLOCKALL stuff...
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
$as_echo_n "checking for the default number of 4k stack pages... " >&6; }

# Check whether --with-stack-limit was given.
if test "${with_stack_limit+set}" = set; then :
  withval=$with_stack_limit; ans=$withval
else
  ans=yes
d19791 1
d19793 3
a19795 9
case "$ans" in
 yes | no)
    case "$host" in
     *-*-openbsd*)
	ans=200
	;;
     *) ans=50
        ;;
    esac
d19797 2
a19798 1
 [1-9][0-9]*)
d19800 2
a19801 1
 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
d19803 2
a19804 24
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_STACK $ans
_ACEOF


# HMS: only if we have RLIMIT_MEMLOCK
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }

# Check whether --with-memlock was given.
if test "${with_memlock+set}" = set; then :
  withval=$with_memlock; ans=$withval
else
  ans=yes

fi

case "$ans" in
 yes | no)
    ans=32
d19806 1
a19806 15
 [1-9][0-9]*) ;;
 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
     ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_MEMLOCK $ans
_ACEOF



# some OSes prefer _exit() in forked children to exit()
for ac_func in _exit
d19808 3
a19810 2
  ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
if test "x$ac_cv_func__exit" = xyes; then :
d19812 1
a19812 1
#define HAVE__EXIT 1
a19817 7
ntp_worker_child_exit=exit
case "$ac_cv_func__exit::$host_os" in
 yes::netbsd*)
    ntp_worker_child_exit=_exit
    ;;
 yes::openbsd*)
    ntp_worker_child_exit=_exit
d19820 1
a19820 7

cat >>confdefs.h <<_ACEOF
#define WORKER_CHILD_EXIT $ntp_worker_child_exit
_ACEOF


for ac_func in umask uname updwtmp updwtmpx
d19853 66
a19918 5
			    # include <sys/socket.h>
			    #endif
			    #if $ntp_cv_struct_iovec_help
			    # include <sys/uio.h>
			    #endif
d19924 2
a19925 10
			    void foo(void) {
				ssize_t x;
				int s = 0;
				struct iovec iov;
				struct msghdr mh;
				int flags = 0;

				mh.msg_iov = &iov;
				x = recvmsg(s, &mh, flags);
			    }
d19933 4
a19936 1
  compiled=yes ; break 1
a19938 7
	    done
	    case "$compiled" in
	     no)
		ntp_cv_struct_iovec_help=0
	    esac
	    { compiled=; unset compiled;}

d19941 4
a19944 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
$as_echo "$ntp_cv_struct_iovec_help" >&6; }
    case "$ntp_cv_struct_iovec_help" in
     1)
d19946 1
a19946 1
$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
a19947 1
    esac
d19994 4
d20447 1
a20447 1
	 *-*-bsdi[23]*)
d20453 257
a20709 24
	# NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
	# while later versions will fail a ioctl(TIOCSCTTY, 0) call in
	# some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
	# in $host may be followed by "aout", "ecoff", or "elf".
	 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
	    ans=yes
	    ;;
	 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
	    ans=yes
	    ;;
	 *-*-openbsd*)
	    ans=yes
	    ;;
	 *-*-osf*)
	    ans=yes
	    ;;
	 *-*-darwin*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_func_ctty_for_f_setown=$ans
d20711 6
d20719 1
a20719 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
case "$ntp_cv_func_ctty_for_f_setown" in
 yes)
a20720 1
$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
d20722 3
a20724 1
esac
d20726 3
a20728 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
if ${ntp_cv_os_routeupdates+:} false; then :
d20732 49
a20780 6
	case "$host" in
	 *-*-netbsd*)
	    ans=yes
	    ;;
	 *)
	    ans=no
d20783 1
a20783 1
	ntp_cv_os_routeupdates=$ans
d20787 3
a20789 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
$as_echo "$ntp_cv_os_routeupdates" >&6; }
case "$ntp_cv_os_routeupdates" in
d20792 1
a20792 1
$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
d20796 3
a20798 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
if ${ntp_cv_os_wildcardreuse+:} false; then :
d20802 46
a20847 5
	case "$host" in
	 *-*-*linux*)
	    ans=yes
	    ;;
	 *) ans=no
d20850 1
a20850 1
	ntp_cv_os_wildcardreuse=$ans
d20854 3
a20856 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
case "$ntp_cv_os_wildcardreuse" in
d20859 1
a20859 1
$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
d20935 19
d20994 167
a21160 4
if test "${enable_ignore_dns_errors+set}" = set; then :
  enableval=$enable_ignore_dns_errors; ans=$enableval
else
  ans=no
d21163 2
d21166 3
a21168 4
case "$ans" in
 yes)

$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
a21170 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d21191 3
a21193 2
		    #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
		    # error
d21197 2
a21198 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21202 2
a21203 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21233 3
a21235 2
	    #ifndef STA_FLL
	    # error
d21239 2
a21240 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21246 2
a21247 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21317 3
a21319 2
	    #ifndef TIOCGPPSEV
	    # error
d21323 2
a21324 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21330 2
a21331 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21355 3
a21357 2
	    #ifndef TIOCSPPS
	    # error
d21361 2
a21362 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21368 2
a21369 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21393 3
a21395 2
	    #ifndef CIOGETEV
	    # error
d21399 2
a21400 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21406 2
a21407 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21467 6
a21472 2
	    #ifndef TIOCGSERIAL
	    # error
a21473 2
	    #ifndef TIOCSSERIAL
	    # error
a21474 2
	    #ifndef ASYNC_PPS_CD_POS
	    # error
a21475 2
	    #ifndef ASYNC_PPS_CD_NEG
	    # error
a21476 2
	    #ifndef CIOGETEV
	    # error
d21480 2
a21481 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21487 2
a21488 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21536 1
a21536 2
case "$ntp_ok" in
 yes)
d21541 1
a21541 2
    ;;
esac
d21561 1
a21561 2
case "$ntp_ok" in
 yes)
d21566 1
a21566 2
    ;;
esac
d21705 1
a21705 2
case "$ntp_ok" in
 yes)
d21710 1
a21710 2
    ;;
esac
d21724 1
a21724 2
case "$ntp_ok" in
 yes)
d21729 1
a21729 2
    ;;
esac
d21743 1
a21743 2
case "$ntp_ok" in
 yes)
d21748 1
a21748 2
    ;;
esac
d21762 1
a21762 2
case "$ntp_ok" in
 yes)
d21767 1
a21767 2
    ;;
esac
d21784 1
a21784 2
case "$ntp_ok" in
 yes)
d21789 1
a21789 2
    ;;
esac
d21803 1
a21803 2
case "$ntp_ok" in
 yes)
d21808 1
a21808 2
    ;;
esac
d21822 1
a21822 2
case "$ntp_ok" in
 yes)
d21827 1
a21827 2
    ;;
esac
d21847 5
d21879 1
a21879 2
case "$ntp_ok" in
 yes)
d21884 1
a21884 2
    ;;
esac
d21898 1
a21898 2
case "$ntp_ok" in
 yes)
d21903 1
a21903 2
    ;;
esac
d21917 1
a21917 2
case "$ntp_ok" in
 yes)
d21922 1
a21922 2
    ;;
esac
d21937 1
a21937 2
case "$ntp_ok" in
 yes)
d21942 1
a21942 2
    ;;
esac
d21956 1
a21956 2
case "$ntp_ok" in
 yes)
d21961 1
a21961 2
    ;;
esac
d21975 1
a21975 2
case "$ntp_ok" in
 yes)
d21980 1
a21980 2
    ;;
esac
d21994 1
a21994 2
case "$ntp_ok" in
 yes)
d21999 1
a21999 2
    ;;
esac
d22018 1
a22018 2
case "$ntp_ok" in
 yes)
d22023 1
a22023 2
    ;;
esac
d22041 1
a22041 2
case "$ntp_ok" in
 yes)
d22046 1
a22046 2
    ;;
esac
d22062 1
a22062 2
case "$ntp_ok" in
 yes)
d22067 1
a22067 2
    ;;
esac
d22081 1
a22081 2
case "$ntp_ok" in
 yes)
d22086 1
a22086 2
    ;;
esac
d22100 1
a22100 2
case "$ntp_ok" in
 yes)
d22105 1
a22105 2
    ;;
esac
d22130 1
a22130 2
case "$ntp_ok" in
 yes)
d22135 1
a22135 2
    ;;
esac
d22153 1
a22153 2
case "$ntp_ok" in
 yes)
d22158 1
a22158 2
    ;;
esac
d22172 1
a22172 2
case "$ntp_ok" in
 yes)
a22176 27
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

for ac_func in strtoll
do :
  ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
if test "x$ac_cv_func_strtoll" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRTOLL 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
$as_echo_n "checking for GPSD JSON receiver... " >&6; }
# Check whether --enable-GPSD was given.
if test "${enable_GPSD+set}" = set; then :
  enableval=$enable_GPSD; ntp_ok=$enableval
else
  case "$ac_cv_func_strtoll" in
     yes) ntp_ok=$ntp_eac ;;
     *)   ntp_ok="no" ;;
    esac

a22177 9

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h

    ;;
esac
d22194 1
a22194 2
case "$ntp_ok" in
 yes)
d22199 1
a22199 2
    ;;
esac
d22214 1
a22214 2
case "$ntp_ok" in
 yes)
d22219 1
a22219 2
    ;;
esac
d22233 1
a22233 2
case "$ntp_ok" in
 yes)
d22238 1
a22238 2
    ;;
esac
d22252 1
a22252 2
case "$ntp_ok" in
 yes)
d22257 1
a22257 2
    ;;
esac
d22275 1
a22275 2
case "$ntp_ok" in
 yes)
d22280 1
a22280 2
    ;;
esac
d22301 1
a22301 2
case "$ntp_ok" in
 yes)
d22306 1
a22306 2
    ;;
esac
d22320 1
a22320 2
case "$ntp_ok" in
 yes)
d22325 1
a22325 2
    ;;
esac
d22348 1
a22348 2
case "$ntp_ok" in
 yes)
d22353 1
a22353 2
    ;;
esac
d22361 1
d22382 1
a22382 2
case "$ntp_ok" in
 yes)
d22387 1
a22387 2
    ;;
esac
d22405 1
a22405 2
case "$ntp_ok" in
 yes)
d22410 1
a22410 2
    ;;
esac
d22424 1
a22424 2
case "$ntp_ok" in
 yes)
a22428 21
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
# Check whether --enable-TSYNCPCI was given.
if test "${enable_TSYNCPCI+set}" = set; then :
  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
else

	case "$host" in
	 *-*-*linux*)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	esac


a22429 9

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h

    ;;
esac
d22448 1
a22448 2
case "$ntp_ok" in
 yes)
d22453 1
a22453 2
    ;;
esac
d22471 1
a22471 2
case "$ntp_ok" in
 yes)
d22476 1
a22476 2
    ;;
esac
d22523 1
a22523 2
case "$ntp_ok" in
 yes)
d22529 1
a22529 2
    ;;
esac
d22547 1
a22547 2
case "$ntp_ok" in
 yes)
d22553 1
a22553 2
    ;;
esac
d22571 1
a22571 2
case "$ntp_ok" in
 yes)
d22577 1
a22577 2
    ;;
esac
d22595 1
a22595 2
case "$ntp_ok" in
 yes)
d22601 1
a22601 2
    ;;
esac
d22619 1
a22619 2
case "$ntp_ok" in
 yes)
d22627 1
a22627 2
    ;;
esac
d22673 1
a22673 2
case "$ntp_ok" in
 yes)
d22679 1
a22679 2
    ;;
esac
d22697 1
a22697 2
case "$ntp_ok" in
 yes)
d22703 1
a22703 2
    ;;
esac
d22721 1
a22721 2
case "$ntp_ok" in
 yes)
d22727 1
a22727 2
    ;;
esac
d22745 1
a22745 2
case "$ntp_ok" in
 yes)
a22750 76
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
$as_echo_n "checking WHARTON 400A Series clock... " >&6; }
# Check whether --enable-WHARTON was given.
if test "${enable_WHARTON+set}" = set; then :
  enableval=$enable_WHARTON; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
$as_echo_n "checking VARITEXT clock... " >&6; }
# Check whether --enable-VARITEXT was given.
if test "${enable_VARITEXT+set}" = set; then :
  enableval=$enable_VARITEXT; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
$as_echo_n "checking SEL240X clock... " >&6; }
# Check whether --enable-SEL240X was given.
if test "${enable_SEL240X+set}" = set; then :
  enableval=$enable_SEL240X; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h

a22756 57
    ;;
esac






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
$as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
ans=no
case "$ntp_libparse" in
 yes)
    ans=yes

$as_echo "#define CLOCK_PARSE 1" >>confdefs.h

    LIBPARSE=../libparse/libparse.a
    MAKE_LIBPARSE=libparse.a
    # HMS: check_y2k trips the 34 year problem now...
    false && MAKE_CHECK_Y2K=check_y2k
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }



ntp_pkgconfig_min_version='0.15.0'
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
a22757 40
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d22759 5
a22763 7
  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
d22765 2
a22766 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d22769 12
a22780 8
  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
d22782 6
a22787 2
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
d22789 2
a22790 1
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d22793 5
a22797 2
{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
d22799 6
a22804 13
case "$PKG_CONFIG" in
 /*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	PKG_CONFIG=""
    fi
    ;;
d22811 19
a22829 1
VER_SUFFIX=
a22833 4
# Check whether --with-crypto was given.
if test "${with_crypto+set}" = set; then :
  withval=$with_crypto;
fi
d22835 2
d22840 2
a22841 2
  withval=$with_openssl_libdir;
fi
d22843 4
a22846 5

# Check whether --with-openssl-incdir was given.
if test "${with_openssl_incdir+set}" = set; then :
  withval=$with_openssl_incdir;
fi
a22848 3
# Check whether --with-rpath was given.
if test "${with_rpath+set}" = set; then :
  withval=$with_rpath;
d22851 8
a22858 30
ntp_openssl=no
ntp_openssl_from_pkg_config=no
with_crypto=${with_crypto:-openssl,libcrypto}
case "$with_crypto" in
 yes)
    with_crypto=openssl,libcrypto
esac
case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
 no:*) ;;
 *:notempty:notgiven:notgiven)
    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
$as_echo_n "checking pkg-config for $pkg... " >&6; }
	if $PKG_CONFIG --exists $pkg ; then
	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
	    VER_SUFFIX=o
	    ntp_openssl=yes
	    ntp_openssl_from_pkg_config=yes
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

	    break
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    done
d22860 6
a22865 11
case "$with_crypto:$ntp_openssl" in
 no:*) ;;
 *:no)
    need_dash_r=
    need_dash_Wlrpath=
    case "${with_rpath-notgiven}" in
     yes)
	# Lame - what to do if we need -Wl... but not -R?
	need_dash_r=1
	;;
     notgiven)
d22867 2
a22868 22
	 *-*-linux*)
	    # This may really only be true for gcc
	    need_dash_Wlrpath=1
	    ;;
	 *-*-netbsd*)
	    need_dash_r=1
	    ;;
	 *-*-solaris*)
	    need_dash_r=1
	    ;;
	esac
	;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
$as_echo_n "checking for openssl library directory... " >&6; }
    with_openssl_libdir=${with_openssl_libdir-notgiven}
    case "$with_openssl_libdir" in
     notgiven)
	case "$build" in
	 $host)
	    with_openssl_libdir=default
d22871 2
a22872 1
	    with_openssl_libdir=no
d22875 2
a22876 9
    esac
    case "$with_openssl_libdir" in
     default)
	# Look in:
	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
    esac
    case "$with_openssl_libdir" in
d22878 2
d22881 2
a22882 14
     *) # Look for libcrypto.a and libssl.a:
	for i in $with_openssl_libdir no
	do
	    case "$host" in
	     *-*-darwin*)
		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
		;;
	     *)
		test -f $i/libcrypto.so -a -f $i/libssl.so && break
		test -f $i/libcrypto.a -a -f $i/libssl.a && break
		;;
	    esac
	done
	openssl_libdir=$i
d22885 4
a22888 8
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
$as_echo "$openssl_libdir" >&6; }
    case "$openssl_libdir" in
     no)
	openssl_libdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
    esac
d22890 1
a22890 1
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
d22892 32
a22923 9
    with_openssl_incdir=${with_openssl_incdir-notgiven}
    case "$with_openssl_incdir" in
     notgiven)
	# Look in:
	with_openssl_incdir="/usr/include /usr/sfw/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
    esac
    case "$with_openssl_incdir" in
d22925 2
d22928 2
a22929 6
     *) # look for openssl/evp.h:
	for i in $with_openssl_incdir no
	do
	    test -f $i/openssl/evp.h && break
	done
	openssl_incdir=$i
d22932 21
a22952 10
    { i=; unset i;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
$as_echo "$openssl_incdir" >&6; }
    case "$openssl_incdir" in
     no)
	openssl_incdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
    esac
    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
d22954 1
a22954 1
	ntp_openssl=no
d22956 1
a22956 2
	ntp_openssl=yes
	VER_SUFFIX=o
a22957 27
    case "$ntp_openssl" in
     yes)
	# We have OpenSSL inc/lib dirs - use them.
	case "$openssl_incdir" in
	 /usr/include)
	    ;;
	 *)
	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
	    ;;
	esac
	case "$openssl_libdir" in
	 /usr/lib)
	    ;;
	 *)
	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
	    case "$need_dash_r" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
	    esac
	    case "$need_dash_Wlrpath" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
	    esac
	    ;;
	esac
	LDADD_NTP="$LDADD_NTP -lcrypto"
    esac
d22959 3
a22961 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
$as_echo_n "checking if we will use crypto... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
$as_echo "$ntp_openssl" >&6; }
d22965 20
a22985 1
$as_echo "#define OPENSSL /**/" >>confdefs.h
d22987 2
a22988 5
    case "$VER_SUFFIX" in
     *o*) ;;
     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
    esac
    ;;
a22990 4
NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
NTPO_SAVED_LIBS="$LIBS"

d22992 1
a22992 1
# check for linking with -lcrypto failure, and try -lcrypto -lz.
d22995 6
a23000 5
case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
 yes:no)
    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
$as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
d23036 3
a23038 3
	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
d23074 1
a23074 1
	     LDADD_NTP="$LDADD_NTP -lz"
d23077 2
d23095 1
a23095 1
NTPO_SAVED_CFLAGS="$CFLAGS"
d23097 2
a23098 2
case "$ntp_openssl:$GCC" in
 yes:yes)
d23157 15
a23171 62
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    esac
    case "$openssl_triggers_warnings" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
	;;
     *)
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
    esac
    ;;
 no:yes)
    # gcc without OpenSSL
    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
esac

CFLAGS="$NTPO_SAVED_CFLAGS"
CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
LIBS="$NTPO_SAVED_LIBS"
{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
# Check whether --enable-openssl-random was given.
if test "${enable_openssl_random+set}" = set; then :
  enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
else
  ntp_use_openssl_random=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
$as_echo "$ntp_use_openssl_random" >&6; }

# The following might need extra libraries
NTPO_SAVED_LIBS="$LIBS"
LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
for ac_func in RAND_bytes RAND_poll
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

LIBS="$NTPO_SAVED_LIBS"
case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
 yesyesyes)

$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
a23172 3
     ;;
 *) ntp_use_openssl_random=no ;;
esac
d23175 2
d23178 3
a23180 6
# if we are using OpenSSL (--with-crypto), by default Autokey is enabled
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
# Check whether --enable-autokey was given.
if test "${enable_autokey+set}" = set; then :
  enableval=$enable_autokey; ntp_autokey=$enableval
d23182 1
a23182 1
  ntp_autokey=$ntp_openssl
d23186 2
a23187 3
case "$ntp_autokey" in
 no)
    ;;
d23189 2
a23190 7
    case "$ntp_openssl" in
     no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
	ntp_autokey=no
	;;
     *)
d23192 1
a23192 1
$as_echo "#define AUTOKEY 1" >>confdefs.h
d23194 1
a23194 3
	ntp_autokey=yes
	;;
    esac
d23197 2
a23198 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
$as_echo "$ntp_autokey" >&6; }
d23220 1
a23220 2
case "$ntp_parseutil" in
 yes)
d23225 1
a23225 1
	TESTDCF=testdcf
d23227 1
a23227 2
    ;;
esac
d23273 1
a23273 2
case "$ntp_refclock" in
 yes)
d23277 1
a23277 2
    ;;
esac
a23280 2
PROPDELAY=propdelay

d23292 1
a23292 2
case "$ans" in
 yes)
d23297 1
a23297 7
    ;;
 *) ADJTIMED_DB=
    ADJTIMED_DL=
    ADJTIMED_DS=
    ADJTIMED_MS=
    ;;
esac
d23310 1
a23310 2
case "$ans" in
 yes)
d23314 1
a23314 2
    ;;
esac
a23327 1
    ;;
d23392 1
a23392 2
 *-ibm-aix[4-9]*)
    # XXX only verified thru AIX6.
a23407 1
    ;;
d23451 1
a23451 2
	 *-ibm-aix[3-9]*)
	    # XXX only verified thru AIX6.
a23791 1
	;;
a23797 1
	;;
a23803 1
	;;
a23819 1
    ;;
a23921 6
 *)
    NTPTIME_DB=
    NTPTIME_DL=
    NTPTIME_DS=
    NTPTIME_MS=
    ;;
a23970 11
    ;;
 *)
    CALC_TICKADJ_DB=
    CALC_TICKADJ_DL=
    CALC_TICKADJ_DS=
    CALC_TICKADJ_MS=
    TICKADJ_DB=
    TICKADJ_DL=
    TICKADJ_DS=
    TICKADJ_MS=
    ;;
a23998 6
    ;;
 *) TIMETRIM_DB=
    TIMETRIM_DL=
    TIMETRIM_DS=
    TIMETRIM_MS=
    ;;
a24019 7
    ;;
 *)
    NTPDSIM_DB=
    NTPDSIM_DL=
    NTPDSIM_DS=
    NTPDSIM_MS=
    ;;
a24033 34

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
$as_echo_n "checking if sntp will be built... " >&6; }

# Check whether --with-sntp was given.
if test "${with_sntp+set}" = set; then :
  withval=$with_sntp;
else
  with_sntp="${withsntp=yes}"

fi

case "$with_sntp" in
 no)
    SNTP=
    ;;
 *)
    SNTP=sntp
    ;;
esac

 if test -n "$SNTP"; then
  BUILD_SNTP_TRUE=
  BUILD_SNTP_FALSE='#'
else
  BUILD_SNTP_TRUE='#'
  BUILD_SNTP_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
$as_echo "$with_sntp" >&6; }



a24144 1
	{ save_CFLAGS=; unset save_CFLAGS;}
a24145 1
	{ save_CPPFLAGS=; unset save_CPPFLAGS;}
a24146 1
	{ save_LIBS=; unset save_LIBS;}
a24156 8
case "$MAKE_NTPSNMPD" in
 '')
    NTPSNMPD_DB=
    NTPSNMPD_DL=
    NTPSNMPD_DS=
    NTPSNMPD_MS=
    ;;
esac
a24249 1
    ;;
a24281 1
    ;;
a24323 1
	;;
a24343 1
	;;
a24347 1
    ;;
a24398 1
    ;;
d24418 1
d24441 1
a24479 1
    ;;
d24482 2
a24483 1
for ac_header in libscf.h
d24485 2
a24486 2
  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
if test "x$ac_cv_header_libscf_h" = xyes; then :
d24488 1
a24488 1
#define HAVE_LIBSCF_H 1
d24495 7
a24501 4
LSCF=
case "$ac_cv_header_libscf_h" in
 yes)
    LSCF='-lscf'
d24504 3
a24506 7



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
if ${ntp_cv_sockaddr_storage+:} false; then :
  $as_echo_n "(cached) " >&6
d24508 1
a24508 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24510 1
a24510 9
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif
a24511 3
int
main ()
{
d24513 4
a24516 1
		struct sockaddr_storage n;
d24519 7
a24525 3
  ;
  return 0;
}
a24526 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_sockaddr_storage=yes
else
  ntp_cv_sockaddr_storage=no
a24528 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24530 1
a24530 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
$as_echo "$ntp_cv_sockaddr_storage" >&6; }
case "$ntp_cv_sockaddr_storage" in
 yes)
a24531 1
$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
d24533 2
a24534 45
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
if ${ntp_cv_have___ss_family+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_SYS_TYPES_H
		    # include <sys/types.h>
		    #endif
		    #ifdef HAVE_SYS_SOCKET_H
		    # include <sys/socket.h>
		    #endif
		    #ifdef HAVE_NETINET_IN_H
		    # include <netinet/in.h>
		    #endif

int
main ()
{

		    struct sockaddr_storage s;
		    s.__ss_family = 1;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have___ss_family=yes
else
  ntp_cv_have___ss_family=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
$as_echo "$ntp_cv_have___ss_family" >&6; }
    case "$ntp_cv_have___ss_family" in
     yes)

$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
d24536 8
d24545 4
a24548 1

d24551 3
d24555 1
a24555 10
#
# Look for in_port_t.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
$as_echo_n "checking for in_port_t... " >&6; }
if ${isc_cv_have_in_port_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a24556 2
		#include <sys/types.h>
		#include <netinet/in.h>
d24558 2
a24559 3
int
main ()
{
d24561 2
a24562 2
		in_port_t port = 25;
		return (0);
d24564 1
d24566 2
a24567 11
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_in_port_t=yes
else
  isc_cv_have_in_port_t=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24569 2
a24570 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
$as_echo "$isc_cv_have_in_port_t" >&6; }
case "$isc_cv_have_in_port_t" in
 no)
d24572 1
a24572 1
$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
a24575 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
if ${ntp_cv_getsockname_socklen_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
d24577 9
a24585 5
    getsockname_socklen_type_found=no
    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24587 1
a24587 6
			#ifdef HAVE_SYS_TYPES_H
			# include <sys/types.h>
			#endif
			#ifdef HAVE_SYS_SOCKET_H
			# include <sys/socket.h>
			#endif
d24589 5
a24593 3
int
main ()
{
a24594 3
			extern
			getsockname(int, $getsockname_arg2,
				$ntp_cv_getsockname_socklen_type *);
d24596 5
a24601 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  getsockname_socklen_type_found=yes ; break 2
a24602 9
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	done
    done
    case "$getsockname_socklen_type_found" in
     no)
	ntp_cv_getsockname_socklen_type='socklen_t'
    esac
    { getsockname_arg2=; unset getsockname_arg2;}
    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
d24604 2
d24607 1
a24607 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
d24609 1
a24609 3
cat >>confdefs.h <<_ACEOF
#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
_ACEOF
d24902 1
a24902 1
if ${isc_cv_in6addr_any_links+:} false; then :
d24905 2
d24908 5
a24912 9
	SAVED_LIBS="$LIBS"
	LIBS="$LDADD_LIBNTP $LIBS"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack
d24918 2
a24919 1
		    printf("%x", in6addr_any.s6_addr[15]);
d24927 1
a24927 1
  isc_cv_in6addr_any_links=yes
d24929 1
a24929 1
  isc_cv_in6addr_any_links=no
a24933 3
	LIBS="$SAVED_LIBS"
	{ SAVED_LIBS=; unset SAVED_LIBS;}

d24936 2
a24937 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
$as_echo "$isc_cv_in6addr_any_links" >&6; }
d24939 1
a24939 1
case "$isc_cv_in6addr_any_links" in
d25013 1
a25013 182
  isc_cv_struct_if_laddrreq=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
$as_echo "$isc_cv_struct_if_laddrreq" >&6; }

case "$isc_cv_struct_if_laddrreq" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
$as_echo_n "checking for multicast IP support... " >&6; }
if ${ntp_cv_multicast+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_multicast=no
	case "$host" in
	 i386-sequent-sysv4)
	    ;;
	 *)
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#ifdef HAVE_NETINET_IN_H
			# include <netinet/in.h>
			#endif

int
main ()
{

			struct ip_mreq ipmr;
			ipmr.imr_interface.s_addr = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_multicast=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
$as_echo "$ntp_cv_multicast" >&6; }
case "$ntp_cv_multicast" in
 yes)

$as_echo "#define MCAST 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    case "$host" in
	     *-*-netbsd*|*-*-*linux*)
		ntp_cv_typeof_ip_multicast_loop=u_int
		;;
	     *)
		ntp_cv_typeof_ip_multicast_loop=u_char
		;;
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }

cat >>confdefs.h <<_ACEOF
#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
_ACEOF

esac

# Check whether --enable-getifaddrs was given.
if test "${enable_getifaddrs+set}" = set; then :
  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
else
  want_getifaddrs="yes"

fi


case $want_getifaddrs in
 glibc)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
esac
case $want_getifaddrs in
 no)
    ;;
 *)
    SAVED_LIBS="$LIBS"
    LIBS="$LDADD_LIBNTP $LIBS"
    for ac_func in getifaddrs
do :
  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF

fi
done

    LIBS="$SAVED_LIBS"
    { SAVED_LIBS=; unset SAVED_LIBS;}
    ;;
esac

#
# Check for if_nametoindex() for IPv6 scoped addresses support
#
case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
$as_echo_n "checking for library containing if_nametoindex... " >&6; }
if ${ac_cv_search_if_nametoindex+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char if_nametoindex ();
int
main ()
{
return if_nametoindex ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' ipv6; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_if_nametoindex=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_if_nametoindex+:} false; then :
  break
fi
done
if ${ac_cv_search_if_nametoindex+:} false; then :

else
  ac_cv_search_if_nametoindex=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
$as_echo "$ac_cv_search_if_nametoindex" >&6; }
ac_res=$ac_cv_search_if_nametoindex
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d25016 1
a25016 11

esac
SAVED_LIBS="$LIBS"
LIBS="$LDADD_LIBNTP $LIBS"
for ac_func in if_nametoindex
do :
  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
if test "x$ac_cv_func_if_nametoindex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_IF_NAMETOINDEX 1
_ACEOF
d25019 2
a25020 1
done
d25022 1
a25022 3
LIBS="$SAVED_LIBS"
{ SAVED_LIBS=; unset SAVED_LIBS;}
case "$ac_cv_func_if_nametoindex" in
d25025 1
a25025 1
$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
a25028 3



d25043 2
a25044 2
	    #ifndef NET_RT_IFLIST
	    # error
d25048 2
a25049 1
if ac_fn_c_try_cpp "$LINENO"; then :
d25055 2
a25056 1
rm -f conftest.err conftest.i conftest.$ac_ext
d25081 1
a25081 2
case "$ntp_ok" in
 yes)
d25086 1
a25086 2
    ;;
esac
a25097 100

gta=false

# Check whether --with-gtest was given.
if test "${with_gtest+set}" = set; then :
  withval=$with_gtest; try_gtest=$withval
else
  try_gtest=yes

fi

case "$try_gtest" in
 yes)
    # Extract the first word of "gtest-config", so it can be a program name with args.
set dummy gtest-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_GTEST_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $GTEST_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
if test -n "$GTEST_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
$as_echo "$GTEST_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
    case x${GTEST_CONFIG} in
     x) ;;
     *)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
$as_echo_n "checking gtest version... " >&6; }
	gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
	case "$gtest_version_test" in
	 toolow*)
	    ;;
	 *)
	    GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
	    GTEST_LIBS=`$GTEST_CONFIG --libs`
	    GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
	    GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`




	    gta=true
	    ;;
	esac
	gtest_version=`$GTEST_CONFIG --version`
	case "$gta" in
	 true)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
$as_echo "($gtest_version) ok" >&6; }
	    ;;
	 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
$as_echo "($gtest_version) not ok" >&6; }
	    ;;
	esac
	{ gtest_version_test=; unset gtest_version_test;}
	{ gtest_version=; unset gtest_version;}
    esac
esac
 if $gta; then
  GTEST_AVAILABLE_TRUE=
  GTEST_AVAILABLE_FALSE='#'
else
  GTEST_AVAILABLE_TRUE='#'
  GTEST_AVAILABLE_FALSE=
fi




d25101 5
a25105 8
  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$sysconfdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  NTP_KEYSDIR="$ac_define_dir"

d25108 1
a25108 1
#define NTP_KEYSDIR "$ac_define_dir"
a25110 2
  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE
d25115 2
a25134 2
ac_config_files="$ac_config_files ntpd/complete.conf"

d25149 1
a25149 5
ac_config_files="$ac_config_files scripts/lib/Makefile"

ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"

ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
d25151 1
a25151 1
ac_config_files="$ac_config_files scripts/build/mkver"
d25153 1
a25153 1
ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
d25155 1
a25155 1
ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
d25157 1
a25157 1
ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
d25159 1
a25159 1
ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
d25161 1
a25161 1
ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
d25163 1
a25163 1
ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
a25170 8
ac_config_files="$ac_config_files scripts/build/Makefile"

ac_config_files="$ac_config_files tests/Makefile"

ac_config_files="$ac_config_files tests/libntp/Makefile"

ac_config_files="$ac_config_files tests/ntpd/Makefile"

a25173 32
perllibdir="${datadir}/ntp/lib"

  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$perllibdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  PERLLIBDIR="$ac_define_dir"


cat >>confdefs.h <<_ACEOF
#define PERLLIBDIR "$ac_define_dir"
_ACEOF

  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE


calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"

ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"

ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"

ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"

summary_opts="$srcdir/scripts/summary-opts"

plot_summary_opts="$srcdir/scripts/plot_summary-opts"


a25307 5

if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a25311 12
if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d25324 2
a25325 6
if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
  as_fn_error $? "conditional \"PTHREADS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
d25328 1
a25332 4
if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
  as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d25742 1
a25742 1
This file was extended by ntp4 $as_me 4.2.8, which was
d25802 1
a25802 2
Report bugs to <http://bugs.ntp.org./>.
ntp4 home page: <http://www.ntp.org./>."
d25808 1
a25808 1
ntp4 config.status 4.2.8
a26066 55
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d26145 1
a26145 33
striplib \
compiler_lib_search_dirs \
predep_objects \
postdep_objects \
predeps \
postdeps \
compiler_lib_search_path \
LD_CXX \
reload_flag_CXX \
compiler_CXX \
lt_prog_compiler_no_builtin_flag_CXX \
lt_prog_compiler_pic_CXX \
lt_prog_compiler_wl_CXX \
lt_prog_compiler_static_CXX \
lt_cv_prog_compiler_c_o_CXX \
export_dynamic_flag_spec_CXX \
whole_archive_flag_spec_CXX \
compiler_needs_object_CXX \
with_gnu_ld_CXX \
allow_undefined_flag_CXX \
no_undefined_flag_CXX \
hardcode_libdir_flag_spec_CXX \
hardcode_libdir_flag_spec_ld_CXX \
hardcode_libdir_separator_CXX \
exclude_expsyms_CXX \
include_expsyms_CXX \
file_list_spec_CXX \
compiler_lib_search_dirs_CXX \
predep_objects_CXX \
postdep_objects_CXX \
predeps_CXX \
postdeps_CXX \
compiler_lib_search_path_CXX; do
d26175 1
a26175 12
sys_lib_dlsearch_path_spec \
reload_cmds_CXX \
old_archive_cmds_CXX \
old_archive_from_new_cmds_CXX \
old_archive_from_expsyms_cmds_CXX \
archive_cmds_CXX \
archive_expsym_cmds_CXX \
module_cmds_CXX \
module_expsym_cmds_CXX \
export_symbols_cmds_CXX \
prelink_cmds_CXX \
postlink_cmds_CXX; do
a26205 2


d26218 1
a26227 1
    "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
d26235 8
a26242 10
    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
    "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
    "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
    "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
    "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
a26245 4
    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
    "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
    "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
d26295 1
a26295 18
if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  ac_cs_awk_getline=:
  ac_cs_awk_pipe_init=
  ac_cs_awk_read_file='
      while ((getline aline < (F[key])) > 0)
	print(aline)
      close(F[key])'
  ac_cs_awk_pipe_fini=
else
  ac_cs_awk_getline=false
  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  ac_cs_awk_read_file='
      print "|#_!!_#|"
      print "cat " F[key] " &&"
      '$ac_cs_awk_pipe_init
  # The final `:' finishes the AND list.
  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
fi
a26312 11
# Create commands to substitute file output variables.
{
  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  echo "_ACAWK" &&
  echo "_ACEOF"
} >conf$$files.sh &&
. ./conf$$files.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
rm -f conf$$files.sh
d26389 1
a26389 1
  \$ac_cs_awk_pipe_init
d26407 1
a26407 7
  if (nfields == 3 && !substed) {
    key = field[2]
    if (F[key] != "" && line ~ /^[	 ]*@@.*@@[	 ]*$/) {
      \$ac_cs_awk_read_file
      next
    }
  }
d26410 1
a26410 1
\$ac_cs_awk_pipe_fini
d26757 1
a26757 6
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
if $ac_cs_awk_getline; then
  $AWK -f "$ac_tmp/subs.awk"
else
  $AWK -f "$ac_tmp/subs.awk" | $SHELL
fi \
d26987 1
a26987 1
available_tags="CXX "
a27374 14
# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects
postdep_objects=$lt_postdep_objects
predeps=$lt_predeps
postdeps=$lt_postdeps

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path

a27566 157

    cat <<_LT_EOF >> "$ofile"

# ### BEGIN LIBTOOL TAG CONFIG: CXX

# The linker used to build libraries.
LD=$lt_LD_CXX

# How to create reloadable object files.
reload_flag=$lt_reload_flag_CXX
reload_cmds=$lt_reload_cmds_CXX

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds_CXX

# A language specific compiler.
CC=$lt_compiler_CXX

# Is the compiler the GNU compiler?
with_gcc=$GCC_CXX

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object_CXX

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld_CXX

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute_CXX

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic_CXX

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath_CXX

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds_CXX

# Commands necessary for finishing linking programs.
postlink_cmds=$lt_postlink_cmds_CXX

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec_CXX

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects_CXX
postdep_objects=$lt_postdep_objects_CXX
predeps=$lt_predeps_CXX
postdeps=$lt_postdeps_CXX

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX

# ### END LIBTOOL TAG CONFIG: CXX
_LT_EOF

a27567 1
    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
d27569 8
a27576 5
    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
    "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
    "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
    "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
    "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
@


1.1.1.2.2.2
log
@Pull up following revision(s) (requested by christos in ticket #1342):
	doc/3RDPARTY: patch
	external/bsd/ntp/Makefile.inc: up to 1.15
	external/bsd/ntp/bin/ntpd/Makefile: up to 1.19
	external/bsd/ntp/bin/ntpd/ntp_parser.c: patch
	external/bsd/ntp/bin/ntpd/ntp_parser.h: patch
	external/bsd/ntp/bin/sntp/Makefile: up to 1.6
	external/bsd/ntp/bin/sntp/event2/event-config.h: delete
	external/bsd/ntp/bin/sntp/evlog.c: delete
	external/bsd/ntp/dist/COPYRIGHT: up to 1.1.1.5
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.7
	external/bsd/ntp/dist/CommitLog: up to 1.1.1.7
	external/bsd/ntp/dist/Makefile.am: up to 1.1.1.7
	external/bsd/ntp/dist/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/NEWS: up to 1.1.1.7
	external/bsd/ntp/dist/README.leapsmear: up to 1.1.1.1
	external/bsd/ntp/dist/aclocal.m4: up to 1.1.1.7
	external/bsd/ntp/dist/adjtimed/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/adjtimed/adjtimed.c: up to 1.4
	external/bsd/ntp/dist/bootstrap: up to 1.1.1.5
	external/bsd/ntp/dist/build: up to 1.1.1.5
	external/bsd/ntp/dist/clockstuff/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/clockstuff/chutest.c: up to 1.4
	external/bsd/ntp/dist/clockstuff/propdelay.c: up to 1.4
	external/bsd/ntp/dist/config.h.in: up to 1.1.1.6
	external/bsd/ntp/dist/configure: up to 1.1.1.7
	external/bsd/ntp/dist/configure.ac: up to 1.1.1.7
	external/bsd/ntp/dist/html/build.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/confopt.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/copyright.html: up to 1.1.1.5
	external/bsd/ntp/dist/html/decode.html: up to 1.1.1.5
	external/bsd/ntp/dist/html/drivers/driver22.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/drivers/driver28.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/drivers/driver40-ja.html: up to 1.1.1.1
	external/bsd/ntp/dist/html/drivers/driver40.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/drivers/driver46.html: up to 1.1.1.2
	external/bsd/ntp/dist/html/miscopt.html: up to 1.1.1.6
	external/bsd/ntp/dist/html/refclock.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/sntp.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/stats.html: up to 1.1.1.3
	external/bsd/ntp/dist/include/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/include/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/include/binio.h: up to 1.4
	external/bsd/ntp/dist/include/isc/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/include/mbg_gps166.h: up to 1.4
	external/bsd/ntp/dist/include/ntp.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_assert.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_calendar.h: up to 1.5
	external/bsd/ntp/dist/include/ntp_config.h: up to 1.9
	external/bsd/ntp/dist/include/ntp_control.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_fp.h: up to 1.7
	external/bsd/ntp/dist/include/ntp_io.h: up to 1.3
	external/bsd/ntp/dist/include/ntp_lists.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_md5.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_stdlib.h: up to 1.11
	external/bsd/ntp/dist/include/ntp_syslog.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_types.h: up to 1.4
	external/bsd/ntp/dist/include/ntpd.h: up to 1.7
	external/bsd/ntp/dist/include/parse.h: up to 1.4
	external/bsd/ntp/dist/include/parse_conf.h: up to 1.4
	external/bsd/ntp/dist/include/rc_cmdlength.h: up to 1.1.1.1
	external/bsd/ntp/dist/include/refidsmear.h: up to 1.1.1.2
	external/bsd/ntp/dist/include/timepps-Solaris.h: up to 1.4
	external/bsd/ntp/dist/kernel/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/kernel/sys/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/kernel/sys/parsestreams.h: up to 1.4
	external/bsd/ntp/dist/lib/isc/include/isc/backtrace.h: up to 1.4
	external/bsd/ntp/dist/lib/isc/include/isc/socket.h: up to 1.4
	external/bsd/ntp/dist/lib/isc/inet_ntop.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/log.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/result.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/unix/file.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/unix/ifiter_getifaddrs.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/unix/ifiter_ioctl.c: up to 1.4
	external/bsd/ntp/dist/lib/isc/unix/net.c: up to 1.7
	external/bsd/ntp/dist/libjsmn/Makefile: up to 1.1.1.2
	external/bsd/ntp/dist/libjsmn/README.md: up to 1.1.1.2
	external/bsd/ntp/dist/libjsmn/example/jsondump.c: up to 1.1.1.2
	external/bsd/ntp/dist/libjsmn/example/simple.c: up to 1.1.1.2
	external/bsd/ntp/dist/libjsmn/jsmn.c: up to 1.4
	external/bsd/ntp/dist/libjsmn/jsmn.h: up to 1.3
	external/bsd/ntp/dist/libjsmn/jsmn_test.c: up to 1.3
	external/bsd/ntp/dist/libntp/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/libntp/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/libntp/atolfp.c: up to 1.7
	external/bsd/ntp/dist/libntp/audio.c: up to 1.9
	external/bsd/ntp/dist/libntp/authkeys.c: up to 1.7
	external/bsd/ntp/dist/libntp/authreadkeys.c: up to 1.7
	external/bsd/ntp/dist/libntp/caljulian.c: up to 1.4
	external/bsd/ntp/dist/libntp/caltontp.c: up to 1.4
	external/bsd/ntp/dist/libntp/decodenetnum.c: up to 1.4
	external/bsd/ntp/dist/libntp/emalloc.c: up to 1.6
	external/bsd/ntp/dist/libntp/icom.c: up to 1.8
	external/bsd/ntp/dist/libntp/machines.c: up to 1.4
	external/bsd/ntp/dist/libntp/msyslog.c: up to 1.4
	external/bsd/ntp/dist/libntp/ntp_calendar.c: up to 1.7
	external/bsd/ntp/dist/libntp/ntp_crypto_rnd.c: up to 1.4
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to 1.7
	external/bsd/ntp/dist/libntp/ntp_lineedit.c: up to 1.8
	external/bsd/ntp/dist/libntp/ntp_rfc2553.c: up to 1.4
	external/bsd/ntp/dist/libntp/ntp_worker.c: up to 1.4
	external/bsd/ntp/dist/libntp/prettydate.c: up to 1.7
	external/bsd/ntp/dist/libntp/recvbuff.c: up to 1.4
	external/bsd/ntp/dist/libntp/refidsmear.c: up to 1.1.1.2
	external/bsd/ntp/dist/libntp/socket.c: up to 1.4
	external/bsd/ntp/dist/libntp/socktohost.c: up to 1.4
	external/bsd/ntp/dist/libntp/statestr.c: up to 1.4
	external/bsd/ntp/dist/libntp/strdup.c: up to 1.3
	external/bsd/ntp/dist/libntp/work_fork.c: up to 1.7
	external/bsd/ntp/dist/libparse/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/libparse/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/libparse/clk_computime.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_dcf7000.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_hopf6021.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_meinberg.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_rawdcf.c: up to 1.6
	external/bsd/ntp/dist/libparse/clk_rcc8000.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_schmid.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_sel240x.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_trimtaip.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_trimtsip.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_varitext.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_wharton.c: up to 1.4
	external/bsd/ntp/dist/libparse/data_mbg.c: up to 1.7
	external/bsd/ntp/dist/libparse/gpstolfp.c: up to 1.4
	external/bsd/ntp/dist/libparse/info_trimble.c: up to 1.6
	external/bsd/ntp/dist/libparse/mkinfo_rcmd.sed: up to 1.1.1.3
	external/bsd/ntp/dist/libparse/mkinfo_scmd.sed: up to 1.1.1.3
	external/bsd/ntp/dist/libparse/parse.c: up to 1.4
	external/bsd/ntp/dist/libparse/parse_conf.c: up to 1.4
	external/bsd/ntp/dist/libparse/parsesolaris.c: up to 1.4
	external/bsd/ntp/dist/libparse/parsestreams.c: up to 1.4
	external/bsd/ntp/dist/libparse/trim_info.c: up to 1.4
	external/bsd/ntp/dist/ntpd/Makefile.am: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/cmd_args.c: up to 1.4
	external/bsd/ntp/dist/ntpd/complete.conf.in: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to 1.1.1.4
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to 1.20
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to 1.8
	external/bsd/ntp/dist/ntpd/ntp_leapsec.c: up to 1.4
	external/bsd/ntp/dist/ntpd/ntp_leapsec.h: up to 1.3
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to 1.8
	external/bsd/ntp/dist/ntpd/ntp_monitor.c: up to 1.4
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_peer.c: up to 1.8
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_refclock.c: up to 1.8
	external/bsd/ntp/dist/ntpd/ntp_request.c: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_restrict.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntp_scanner.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_scanner.h: up to 1.3
	external/bsd/ntp/dist/ntpd/ntp_timer.c: up to 1.5
	external/bsd/ntp/dist/ntpd/ntp_util.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.5
	external/bsd/ntp/dist/ntpd/ntpd-opts.def: up to 1.1.1.4
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.8
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntpd.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntpdbase-opts.def: up to 1.1.1.4
	external/bsd/ntp/dist/ntpd/rc_cmdlength.c: up to 1.3
	external/bsd/ntp/dist/ntpd/refclock_arc.c: up to 1.8
	external/bsd/ntp/dist/ntpd/refclock_chu.c: up to 1.7
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to 1.7
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to 1.8
	external/bsd/ntp/dist/ntpd/refclock_jupiter.c: up to 1.9
	external/bsd/ntp/dist/ntpd/refclock_local.c: up to 1.4
	external/bsd/ntp/dist/ntpd/refclock_nmea.c: up to 1.10
	external/bsd/ntp/dist/ntpd/refclock_oncore.c: up to 1.12
	external/bsd/ntp/dist/ntpd/refclock_palisade.c: up to 1.5
	external/bsd/ntp/dist/ntpd/refclock_palisade.h: up to 1.4
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to 1.17
	external/bsd/ntp/dist/ntpd/refclock_shm.c: up to 1.6
	external/bsd/ntp/dist/ntpd/refclock_true.c: up to 1.5
	external/bsd/ntp/dist/ntpd/refclock_wwv.c: up to 1.6
	external/bsd/ntp/dist/ntpdate/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdate/ntpdate.c: up to 1.8
	external/bsd/ntp/dist/ntpdc/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.5
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.5
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/ntpdc.c: up to 1.11
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/libntpq.h: up to 1.4
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.5
	external/bsd/ntp/dist/ntpq/ntpq-opts.def: up to 1.1.1.4
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.5
	external/bsd/ntp/dist/ntpq/ntpq-subs.c: up to 1.12
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq.c: up to 1.13
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/netsnmp_daemonize.c: up to 1.4
	external/bsd/ntp/dist/ntpsnmpd/ntp_snmp.h: up to 1.4
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.7
	external/bsd/ntp/dist/parseutil/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/parseutil/dcfd.c: up to 1.4
	external/bsd/ntp/dist/parseutil/testdcf.c: up to 1.4
	external/bsd/ntp/dist/scripts/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/build/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/build/UpdatePoint: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/build/VersionName: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/lib/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/lib/NTP/Util.pm: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.in: up to 1.1.1.4
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/update-leap/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.menu: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts.def: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap.in: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap.sh: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap.texi: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/COPYRIGHT: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/Makefile.am: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/aclocal.m4: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/config.h.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/configure.ac: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/include/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/include/autogen-version.def: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/include/copyright.def: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/include/ntp.lic: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/kod_management.c: up to 1.6
	external/bsd/ntp/dist/sntp/libevent/ChangeLog: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/README: delete
	external/bsd/ntp/dist/sntp/libevent/WIN32-Code/nmake/event2/event-config.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/WIN32-Code/tree.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/aclocal.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/buffer.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/bufferevent.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/bufferevent_async.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/bufferevent_filter.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/bufferevent_openssl.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/bufferevent_pair.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/ar-lib: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/libevent/build-aux/ltmain.sh: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/libevent/build-aux/test-driver: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/libevent/config.h.in: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/configure: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/configure.ac: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/evbuffer-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evdns.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/event.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/event_tagging.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evrpc-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evthread-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evthread.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evutil.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evutil_time.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/ht-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/http-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/http.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/buffer.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/dns.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/event.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/http.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/listener.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/util.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/kqueue.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/listener.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/m4/acx_pthread.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/libevent/m4/ltversion.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/libevent/m4/openldap-thread-check.m4: delete
	external/bsd/ntp/dist/sntp/libevent/m4/openldap.m4: delete
	external/bsd/ntp/dist/sntp/libevent/sample/dns-example.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/event-read-fifo.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/hello-world.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.h: delete
	external/bsd/ntp/dist/sntp/libevent/sample/http-server.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/https-client.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/include.am: delete
	external/bsd/ntp/dist/sntp/libevent/sample/le-proxy.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.h: delete
	external/bsd/ntp/dist/sntp/libevent/sample/signal-test.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/time-test.c: delete
	external/bsd/ntp/dist/sntp/libevent/test/bench_httpclient.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/include.am: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/test/regress.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/regress.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_buffer.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_bufferevent.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_dns.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/regress_finalize.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_http.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/regress_main.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_minheap.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/regress_ssl.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_thread.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_util.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_zlib.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/test-fdleak.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/test-ratelim.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/test-time.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/tinytest.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/tinytest.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/tinytest_macros.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/time-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/util-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/whatsnew-2.1.txt: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libopts/COPYING.gplv3: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/COPYING.lgplv3: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/COPYING.mbsd: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/libopts/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libopts/README: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/ag-char-map.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/alias.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/ao-strs.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/ao-strs.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/autoopts.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/autoopts.h: up to 1.9
	external/bsd/ntp/dist/sntp/libopts/autoopts/options.h: up to 1.10
	external/bsd/ntp/dist/sntp/libopts/autoopts/project.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/autoopts/usage-txt.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/boolean.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/check.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/compat/compat.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/compat/pathfind.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/compat/windows-config.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/configfile.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/cook.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/enum.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/env.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/file.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/find.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/genshell.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/gettext.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/init.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/intprops.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/libopts.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/load.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/m4/libopts.m4: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/libopts/m4/liboptschk.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/m4/stdnoreturn.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/libopts/makeshell.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/nested.c: up to 1.8
	external/bsd/ntp/dist/sntp/libopts/numeric.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/option-value-type.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/option-value-type.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/parse-duration.c: up to 1.7
	external/bsd/ntp/dist/sntp/libopts/parse-duration.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/pgusage.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/proto.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/putshell.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/reset.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/restore.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/save.c: up to 1.8
	external/bsd/ntp/dist/sntp/libopts/sort.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/stack.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/stdnoreturn.in.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/streqvcmp.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/text_mmap.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/time.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/tokenize.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/usage.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/version.c: up to 1.3
	external/bsd/ntp/dist/sntp/libpkgver/colcomp.c: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/libpkgver/pkgver.h: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/loc/darwin: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/debian: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/freebsd: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/legacy: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/netbsd: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/solaris: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/log.c: up to 1.9
	external/bsd/ntp/dist/sntp/log.h: up to 1.7
	external/bsd/ntp/dist/sntp/m4/ax_c99_struct_init.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/hms_search_lib.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ltversion.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ntp_compiler.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/m4/ntp_locinfo.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_openssl.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ntp_problemtests.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/ntp_rlimit.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ntp_unitytest.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/openldap-thread-check.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/openldap.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/os_cflags.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/main.c: up to 1.13
	external/bsd/ntp/dist/sntp/networking.c: up to 1.12
	external/bsd/ntp/dist/sntp/scripts/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/scripts/cvo.sh: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/scripts/genLocInfo: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.6
	external/bsd/ntp/dist/sntp/sntp-opts.def: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.5
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/crypto.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/crypto.cpp: delete
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h: delete
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h.in: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/tests/keyFile.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/keyFile.cpp: delete
	external/bsd/ntp/dist/sntp/tests/kodDatabase.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/kodDatabase.cpp: delete
	external/bsd/ntp/dist/sntp/tests/kodFile.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/kodFile.cpp: delete
	external/bsd/ntp/dist/sntp/tests/networking.c: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/tests/networking.cpp: delete
	external/bsd/ntp/dist/sntp/tests/packetHandling.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/packetHandling.cpp: delete
	external/bsd/ntp/dist/sntp/tests/packetProcessing.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/packetProcessing.cpp: delete
	external/bsd/ntp/dist/sntp/tests/run-crypto.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-keyFile.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-kodDatabase.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-kodFile.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-networking.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-packetHandling.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-t-log.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/tests/run-utilities.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/sntptest.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/tests/sntptest.h: up to 1.4
	external/bsd/ntp/dist/sntp/tests/t-log.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/tests/utilities.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/utilities.cpp: delete
	external/bsd/ntp/dist/sntp/tests_main.cpp: delete
	external/bsd/ntp/dist/sntp/tests_main.h: delete
	external/bsd/ntp/dist/sntp/unity/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/Makefile.in: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/auto/colour_prompt.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/colour_reporter.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/generate_config.yml: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/generate_module.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/generate_test_runner.rb: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/auto/parseOutput.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/runner_maybe.c: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/auto/test_file_filter.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/type_sanitizer.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/unity_test_summary.py: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/unity_test_summary.rb: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/unity/unity.h: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity_config.h: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/unity_fixture.c: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity_fixture.h: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity_fixture_internals.h: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity_fixture_malloc_overrides.h: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity_internals.h: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/version.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/bug-2803/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/tests/bug-2803/Makefile.in: up to 1.1.1.2
	external/bsd/ntp/dist/tests/bug-2803/bug-2803.c: up to 1.1.1.2
	external/bsd/ntp/dist/tests/bug-2803/run-bug-2803.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/tests/libntp/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.cpp: delete
	external/bsd/ntp/dist/tests/libntp/atoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/atoint.cpp: delete
	external/bsd/ntp/dist/tests/libntp/atouint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/atouint.cpp: delete
	external/bsd/ntp/dist/tests/libntp/authkeys.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/authkeys.cpp: delete
	external/bsd/ntp/dist/tests/libntp/buftvtots.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/buftvtots.cpp: delete
	external/bsd/ntp/dist/tests/libntp/calendar.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/calendar.cpp: delete
	external/bsd/ntp/dist/tests/libntp/caljulian.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/caljulian.cpp:: delete
	external/bsd/ntp/dist/tests/libntp/caltontp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/caltontp.cpp: delete
	external/bsd/ntp/dist/tests/libntp/calyearstart.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/calyearstart.cpp: delete
	external/bsd/ntp/dist/tests/libntp/clocktime.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/clocktime.cpp: delete
	external/bsd/ntp/dist/tests/libntp/decodenetnum.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/decodenetnum.cpp: delete
	external/bsd/ntp/dist/tests/libntp/hextoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/hextoint.cpp: delete
	external/bsd/ntp/dist/tests/libntp/hextolfp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/hextolfp.cpp: delete
	external/bsd/ntp/dist/tests/libntp/humandate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/humandate.cpp: delete
	external/bsd/ntp/dist/tests/libntp/lfpfunc.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/lfpfunc.cpp: delete
	external/bsd/ntp/dist/tests/libntp/lfptest.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/lfptest.h: up to 1.4
	external/bsd/ntp/dist/tests/libntp/lfptostr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/lfptostr.cpp: delete
	external/bsd/ntp/dist/tests/libntp/libntptest.cpp: delete
	external/bsd/ntp/dist/tests/libntp/libntptest.h: delete
	external/bsd/ntp/dist/tests/libntp/modetoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/modetoa.cpp: delete
	external/bsd/ntp/dist/tests/libntp/msyslog.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/msyslog.cpp: delete
	external/bsd/ntp/dist/tests/libntp/netof.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/netof.cpp: delete
	external/bsd/ntp/dist/tests/libntp/numtoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/numtoa.cpp: delete
	external/bsd/ntp/dist/tests/libntp/numtohost.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/numtohost.cpp: delete
	external/bsd/ntp/dist/tests/libntp/octtoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/octtoint.cpp: delete
	external/bsd/ntp/dist/tests/libntp/prettydate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/prettydate.cpp: delete
	external/bsd/ntp/dist/tests/libntp/recvbuff.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/recvbuff.cpp: delete
	external/bsd/ntp/dist/tests/libntp/refidsmear.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/refnumtoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/refnumtoa.cpp: delete
	external/bsd/ntp/dist/tests/libntp/run-a_md5encrypt.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-atoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-atouint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-authkeys.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-buftvtots.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-calendar.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-caljulian.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-caltontp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-calyearstart.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-clocktime.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-decodenetnum.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-hextoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-hextolfp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-humandate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-lfpfunc.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-lfptostr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-modetoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-msyslog.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-netof.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-numtoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-numtohost.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-octtoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-prettydate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-recvbuff.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-refidsmear.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-refnumtoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-sfptostr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-socktoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-ssl_init.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-statestr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-strtolfp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-timespecops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-timevalops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-tstotv.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-tvtots.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-uglydate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-vi64ops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-ymd2yd.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/sfptostr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/sfptostr.cpp: delete
	external/bsd/ntp/dist/tests/libntp/sockaddrtest.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/sockaddrtest.h: up to 1.4
	external/bsd/ntp/dist/tests/libntp/socktoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/socktoa.cpp: delete
	external/bsd/ntp/dist/tests/libntp/ssl_init.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/ssl_init.cpp: delete
	external/bsd/ntp/dist/tests/libntp/statestr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/statestr.cpp: delete
	external/bsd/ntp/dist/tests/libntp/strtolfp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/strtolfp.cpp: delete
	external/bsd/ntp/dist/tests/libntp/test-libntp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/test-libntp.h: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/timespecops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/timespecops.cpp: delete
	external/bsd/ntp/dist/tests/libntp/timestructs.cpp: delete
	external/bsd/ntp/dist/tests/libntp/timestructs.h: delete
	external/bsd/ntp/dist/tests/libntp/timevalops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/timevalops.cpp: delete
	external/bsd/ntp/dist/tests/libntp/tstotv.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/tstotv.cpp: delete
	external/bsd/ntp/dist/tests/libntp/tvtots.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/tvtots.cpp: delete
	external/bsd/ntp/dist/tests/libntp/uglydate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/uglydate.cpp: delete
	external/bsd/ntp/dist/tests/libntp/vi64ops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/vi64ops.cpp: delete
	external/bsd/ntp/dist/tests/libntp/ymd2yd.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/ymd2yd.cpp: delete
	external/bsd/ntp/dist/tests/ntpd/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/tests/ntpd/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/ntpd/leapsec.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/leapsec.cpp: delete
	external/bsd/ntp/dist/tests/ntpd/ntp_prio_q.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/ntp_restrict.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/ntpdtest.cpp: delete
	external/bsd/ntp/dist/tests/ntpd/ntpdtest.h: delete
	external/bsd/ntp/dist/tests/ntpd/rc_cmdlength.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-leapsec.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-ntp_prio_q.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-ntp_restrict.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-rc_cmdlength.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-t-ntp_scanner.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-t-ntp_signd.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/t-ntp_scanner.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/t-ntp_signd.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpq/Makefile.am: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpq/Makefile.in: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpq/run-t-ntpq.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpq/t-ntpq.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/sandbox/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sandbox/Makefile.in: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sandbox/bug-2803.c: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sandbox/modetoa.c: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sandbox/run-modetoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/run-uglydate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/run-ut-2803.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/smeartest.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/uglydate.c: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sandbox/ut-2803.c: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sec-2853/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sec-2853/Makefile.in: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sec-2853/run-sec-2853.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sec-2853/sec-2853.c: up to 1.1.1.3
	external/bsd/ntp/dist/util/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/util/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.5
	external/bsd/ntp/dist/util/jitter.c: up to 1.4
	external/bsd/ntp/dist/util/jitter.h: delete
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.10
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.5
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.5
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/util/ntp-keygen.c: up to 1.9
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.5
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/util/ntptime.c: up to 1.7
	external/bsd/ntp/html/Makefile: up to 1.3
	external/bsd/ntp/importdate: up to 1.7
	external/bsd/ntp/include/config.h: up to 1.13
	external/bsd/ntp/ntp2netbsd: up to 1.5
	external/bsd/ntp/scripts/mkver: up to 1.7
Update ntp to 4.2.8p4.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p4.
d8 3
a10 1
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
a138 25
# Use a proper internal environment variable to ensure we don't fall
  # into an infinite loop, continuously re-executing ourselves.
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    _as_can_reexec=no; export _as_can_reexec;
    # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
as_fn_exit 255
  fi
  # We don't want this to propagate to other subprocesses.
          { _as_can_reexec=; unset _as_can_reexec;}
d172 1
a172 2
test x\$exitcode = x0 || exit 1
test -x / || exit 1"
d225 15
a239 19
  export CONFIG_SHELL
             # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
a341 8

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
a462 4
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  # already done that, so ensure we don't try to do so again and fall
  # in an infinite loop.  This has already happened in practice.
  _as_can_reexec=no; export _as_can_reexec
d497 1
a497 1
    # In both cases, we have to default to `cp -pR'.
d499 1
a499 1
      as_ln_s='cp -pR'
d503 1
a503 1
    as_ln_s='cp -pR'
d506 1
a506 1
  as_ln_s='cp -pR'
d518 22
a539 2
as_test_x='test -x'
as_executable_p=as_fn_executable_p
d571 4
a574 4
PACKAGE_NAME='ntp'
PACKAGE_TARNAME='ntp'
PACKAGE_VERSION='4.2.8p4'
PACKAGE_STRING='ntp 4.2.8p4'
a621 6
BUILD_TEST_NTP_SIGND_FALSE
BUILD_TEST_NTP_SIGND_TRUE
BUILD_TEST_NTP_SCANNER_FALSE
BUILD_TEST_NTP_SCANNER_TRUE
BUILD_TEST_NTP_RESTRICT_FALSE
BUILD_TEST_NTP_RESTRICT_TRUE
a628 4
UNITYBUILD_AVAILABLE_FALSE
UNITYBUILD_AVAILABLE_TRUE
PATH_RUBY
HAVE_LEAPSMEARINTERVAL
d652 1
a668 2
LTHREAD_LIBS
BUILD_THREAD
a669 1
LDADD_LIBUTIL
a675 6
BUILD_LIBEVENT_FALSE
BUILD_LIBEVENT_TRUE
LDADD_LIBEVENT
CPPFLAGS_LIBEVENT
CFLAGS_LIBEVENT
PKG_CONFIG
d696 2
a707 9
ac_ct_AR
AR
INSTALL_UPDATE_LEAP_FALSE
INSTALL_UPDATE_LEAP_TRUE
UPDATE_LEAP_NI
UPDATE_LEAP_MS
UPDATE_LEAP_DS
UPDATE_LEAP_DL
UPDATE_LEAP_DB
a807 1
am__nodep
a830 2
AM_DEFAULT_V
AM_V
a1011 1
enable_leap_smear
a1012 1
enable_problem_tests
d1484 2
d1571 1
a1571 1
\`configure' configures ntp 4.2.8p4 to adapt to many kinds of systems.
d1619 1
a1619 1
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp]
d1641 1
a1641 1
     short | recursive ) echo "Configuration of ntp 4.2.8p4:";;
d1651 4
a1654 6
  --enable-silent-rules   less verbose build output (undo: "make V=1")
  --disable-silent-rules  verbose build output (undo: "make V=0")
  --enable-dependency-tracking
                          do not reject slow dependency extractors
  --disable-dependency-tracking
                          speeds up one-time build
d1687 1
a1687 1
  --with-memlock          ? =32 (-1 on linux) megabytes
a1781 1
  --enable-leap-smear     - experimental leap smear code
a1782 1
  --enable-problem-tests  + enable tests with undiagnosed problems
d1807 1
a1807 1
ntp home page: <http://www.ntp.org./>.
d1870 2
a1871 2
ntp configure 4.2.8p4
generated by GNU Autoconf 2.69
d1873 1
a1873 1
Copyright (C) 2012 Free Software Foundation, Inc.
d2150 1
a2150 1
	 test -x conftest$ac_exeext
d2338 1
a2338 1
	 test -x conftest$ac_exeext
d2428 1
a2428 2
test_array [0] = 0;
return test_array [0];
d2444 1
a2444 2
test_array [0] = 0;
return test_array [0];
d2470 1
a2470 2
test_array [0] = 0;
return test_array [0];
d2486 1
a2486 2
test_array [0] = 0;
return test_array [0];
d2520 1
a2520 2
test_array [0] = 0;
return test_array [0];
d2695 2
a2696 2
It was created by ntp $as_me 4.2.8p4, which was
generated by GNU Autoconf 2.69.  Invocation command line was
a3073 6
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

d3204 1
a3204 1
am__api_version='1.15'
d3243 1
a3243 1
	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d3301 3
d3314 1
a3314 1
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
d3317 1
a3317 1
# Do 'set' in a subshell so we don't clobber the current shell's
d3323 16
a3338 10
   am_has_slept=no
   for am_try in 1 2; do
     echo "timestamp, slept: $am_has_slept" > conftest.file
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
     if test "$*" = "X"; then
	# -L didn't work.
	set X `ls -t "$srcdir/configure" conftest.file`
     fi
     if test "$*" != "X $srcdir/configure conftest.file" \
	&& test "$*" != "X conftest.file $srcdir/configure"; then
a3339 14
	# If neither matched, then we have a broken ls.  This can happen
	# if, for instance, CONFIG_SHELL is bash and it inherits a
	# broken ls alias from the environment.  This has actually
	# happened.  Such a system could not be considered "sane".
	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  alias in your environment" "$LINENO" 5
     fi
     if test "$2" = conftest.file || test $am_try -eq 2; then
       break
     fi
     # Just in case.
     sleep 1
     am_has_slept=yes
   done
a3350 10
# If we didn't sleep, we still need to ensure time stamps of config.status and
# generated files are strictly newer.
am_sleep_pid=
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  ( sleep 1 ) &
  am_sleep_pid=$!
fi

rm -f conftest.file

d3361 2
a3362 2
# Expand $ac_aux_dir to an absolute path.
am_aux_dir=`cd "$ac_aux_dir" && pwd`
d3373 2
a3374 2
if eval "$MISSING --is-lightweight"; then
  am_missing_run="$MISSING "
d3377 2
a3378 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
d3381 1
a3381 1
if test x"${install_sh+set}" != xset; then
d3390 2
a3391 2
# Installed binaries are usually stripped using 'strip' when the user
# run "make install-strip".  However 'strip' might not be the right
d3393 1
a3393 1
# will honor the 'STRIP' environment variable to overrule this program.
d3412 1
a3412 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3452 1
a3452 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3503 1
a3503 1
	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
d3532 6
d3556 1
a3556 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a3619 39
# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in # (((
  yes) AM_DEFAULT_VERBOSITY=0;;
   no) AM_DEFAULT_VERBOSITY=1;;
    *) AM_DEFAULT_VERBOSITY=1;;
esac
am_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if ${am_cv_make_support_nested_variables+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
	@@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  am_cv_make_support_nested_variables=yes
else
  am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
    AM_V='$(V)'
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
  AM_V=$AM_DEFAULT_VERBOSITY
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
AM_BACKSLASH='\'

d3641 2
a3642 2
 PACKAGE='ntp'
 VERSION='4.2.8p4'
d3670 3
a3672 15
# For better backward compatibility.  To be removed once Automake 1.9.x
# dies out for good.  For more background, see:
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
mkdir_p='$(MKDIR_P)'

# We need awk for the "check" target (and possibly the TAP driver).  The
# system "awk" is bad on some platforms.
# Always define AMTAR for backward compatibility.  Yes, it's still used
# in the wild :-(  We should find a proper way to deprecate it ...
AMTAR='$${TAR-tar}'


# We'll loop over all known methods to create a tar archive until one works.
_am_tools='gnutar  pax cpio none'
d3674 1
a3674 1
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d3676 1
a3681 42
# POSIX will say in a future version that running "rm -f" with no argument
# is OK; and we want to be able to make that assumption in our Makefile
# recipes.  So use an aggressive probe to check that the usage we want is
# actually supported "in the wild" to an acceptable degree.
# See automake bug#10828.
# To make any issue more visible, cause the running configure to be aborted
# by default if the 'rm' program in use doesn't match our expectations; the
# user can still override this though.
if rm -f && rm -fr && rm -rf; then : OK; else
  cat >&2 <<'END'
Oops!

Your 'rm' program seems unable to run without file operands specified
on the command line, even when the '-f' option is present.  This is contrary
to the behaviour of most rm programs out there, and not conforming with
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>

Please tell bug-automake@@gnu.org about your system, including the value
of your $PATH and any error possibly output before this message.  This
can help us improve future automake versions.

END
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
    echo 'Configuration will proceed anyway, since you have set the' >&2
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
    echo >&2
  else
    cat >&2 <<'END'
Aborting the configuration process, to ensure you take notice of the issue.

You can download and install GNU coreutils to get an 'rm' implementation
that behaves properly: <http://www.gnu.org/software/coreutils/>.

If you want to complete the configuration process using your problematic
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
to "yes", and re-run configure.

END
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  fi
fi

d3688 4
a3691 4
case $enable_silent_rules in # (((
  yes) AM_DEFAULT_VERBOSITY=0;;
   no) AM_DEFAULT_VERBOSITY=1;;
    *) AM_DEFAULT_VERBOSITY=0;;
a3692 27
am_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if ${am_cv_make_support_nested_variables+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
	@@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  am_cv_make_support_nested_variables=yes
else
  am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
    AM_V='$(V)'
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
  AM_V=$AM_DEFAULT_VERBOSITY
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
d3800 1
a3800 1
# Ignore all kinds of additional output from 'make'.
a3832 1
  am__nodep='_no'
d3865 1
a3865 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3905 1
a3905 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3958 1
a3958 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3999 1
a3999 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4057 1
a4057 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4101 1
a4101 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4547 2
a4548 1
struct stat;
a4632 59
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
if ${am_cv_prog_cc_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
  # Make sure it works both with $CC and with simple cc.
  # Following AC_PROG_CC_C_O, we do the test twice because some
  # compilers refuse to overwrite an existing .o file with -o,
  # though they will create one.
  am_cv_prog_cc_c_o=yes
  for am_i in 1 2; do
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } \
         && test -f conftest2.$ac_objext; then
      : OK
    else
      am_cv_prog_cc_c_o=no
      break
    fi
  done
  rm -f core conftest*
  unset am_i
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
$as_echo "$am_cv_prog_cc_c_o" >&6; }
if test "$am_cv_prog_cc_c_o" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


d4644 2
a4645 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d4679 3
a4681 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d4685 1
a4685 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d4687 2
a4688 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d4697 2
a4698 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d4705 2
a4706 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d4915 1
a4915 1
      as_fn_executable_p "$ac_path_GREP" || continue
d4981 1
a4981 1
      as_fn_executable_p "$ac_path_EGREP" || continue
d5229 110
d5351 2
a5352 1
struct stat;
a5431 177
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if ${ac_cv_prog_cc_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>

// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}

// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;

struct incomplete_array
{
  int datasize;
  double data[];
};

struct named_init {
  int number;
  const wchar_t *name;
  double average;
};

typedef const char *ccp;

static inline int
test_restrict (ccp restrict text)
{
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
  return 0;
}

// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
{
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);

  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
}

int
main ()
{

  // Check bool.
  _Bool success = false;

  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";

  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);

  ;
  return 0;
}
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :

fi


d5458 1
a5458 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5498 1
a5498 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5551 1
a5551 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5592 1
a5592 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5650 1
a5650 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5694 1
a5694 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5890 2
a5891 1
struct stat;
a5975 59
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
if ${am_cv_prog_cc_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
  # Make sure it works both with $CC and with simple cc.
  # Following AC_PROG_CC_C_O, we do the test twice because some
  # compilers refuse to overwrite an existing .o file with -o,
  # though they will create one.
  am_cv_prog_cc_c_o=yes
  for am_i in 1 2; do
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } \
         && test -f conftest2.$ac_objext; then
      : OK
    else
      am_cv_prog_cc_c_o=no
      break
    fi
  done
  rm -f core conftest*
  unset am_i
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
$as_echo "$am_cv_prog_cc_c_o" >&6; }
if test "$am_cv_prog_cc_c_o" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


d5987 2
a5988 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d6022 3
a6024 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d6028 1
a6028 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d6030 2
a6031 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d6040 2
a6041 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d6048 2
a6049 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d6105 14
a6164 1

d6425 1
a6425 1
    # allow ntp_os_cflags to be preset to skip this stuff
d6468 1
a6468 1
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
d6478 1
a6478 1
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
d6513 1
a6513 1
    case "$ntp_os_cflags" in
a6523 32
    ###
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
$as_echo_n "checking additional linker flags... " >&6; }
    # HMS: The following might still need tweaking
    # allow ntp_os_ldflags to be preset to skip this stuff
    case "${ntp_os_ldflags+set}" in
     set)
	;;
     *)
	ntp_os_ldflags=
	case "$host_os" in
	 hpux*)
	    case "$GCC" in
	     yes)
		ntp_os_ldflags="-Wl,+allowdups"
		;;
	    esac
	    ;;
	esac
	;;
    esac
    case "$ntp_os_ldflags" in
     '')
	ntp_os_ldflags_msg="none needed"
	;;
     *)
	ntp_os_ldflags_msg="$ntp_os_ldflags"
    esac
    LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
$as_echo "$ntp_os_ldflags_msg" >&6; }
    { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
a7060 1
# Do we need CXX for anything besides google test?
d7089 1
a7089 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7133 1
a7133 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7329 2
a7330 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d7364 3
a7366 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d7370 1
a7370 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d7372 2
a7373 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d7382 2
a7383 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d7390 2
a7391 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d7463 1
a7463 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a7599 38
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }


	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			struct foo_s {int i1; int i2;};
			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



a7765 184

 if test -z "$UPDATE_LEAP_NI" ; then
  INSTALL_UPDATE_LEAP_TRUE=
  INSTALL_UPDATE_LEAP_FALSE='#'
else
  INSTALL_UPDATE_LEAP_TRUE='#'
  INSTALL_UPDATE_LEAP_FALSE=
fi



if test -n "$ac_tool_prefix"; then
  for ac_prog in ar lib "link -lib"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar lib "link -lib"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_AR" && break
done

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
fi

: ${AR=ar}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
$as_echo_n "checking the archiver ($AR) interface... " >&6; }
if ${am_cv_ar_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

   am_cv_ar_interface=ar
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int some_variable = 0;
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  (eval $am_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
        am_cv_ar_interface=ar
      else
        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  (eval $am_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        if test "$ac_status" -eq 0; then
          am_cv_ar_interface=lib
        else
          am_cv_ar_interface=unknown
        fi
      fi
      rm -f conftest.lib libconftest.a

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
$as_echo "$am_cv_ar_interface" >&6; }

case $am_cv_ar_interface in
ar)
  ;;
lib)
  # Microsoft lib, so override with the ar-lib wrapper script.
  # FIXME: It is wrong to rewrite AR.
  # But if we don't then we get into trouble of one sort or another.
  # A longer-term fix would be to have automake use am__AR in this case,
  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  # similar.
  AR="$am_aux_dir/ar-lib $AR"
  ;;
unknown)
  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  ;;
esac



d7807 2
a7808 2
macro_version='2.4.2'
macro_revision='1.3337'
d7915 1
a7915 1
      as_fn_executable_p "$ac_path_SED" || continue
d7994 1
a7994 1
      as_fn_executable_p "$ac_path_FGREP" || continue
d8250 1
a8250 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8294 1
a8294 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8713 1
a8713 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8753 1
a8753 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9059 1
a9059 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9099 1
a9099 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9202 1
a9202 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9246 1
a9246 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9371 1
a9371 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9411 1
a9411 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9470 1
a9470 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9510 1
a9510 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10145 1
a10145 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10185 1
a10185 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10265 1
a10265 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10305 1
a10305 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10357 1
a10357 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10397 1
a10397 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10449 1
a10449 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10489 1
a10489 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10541 1
a10541 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10581 1
a10581 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10633 1
a10633 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10673 1
a10673 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d18567 3
a18569 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
$as_echo_n "checking size of char *... " >&6; }
if ${ac_cv_sizeof_char_p+:} false; then :
d18572 1
a18572 1
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
d18575 1
a18575 1
  if test "$ac_cv_type_char_p" = yes; then
d18578 1
a18578 1
as_fn_error 77 "cannot compute sizeof (char *)
d18581 1
a18581 1
     ac_cv_sizeof_char_p=0
d18586 2
a18587 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
$as_echo "$ac_cv_sizeof_char_p" >&6; }
d18592 1
a18592 1
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
d19056 1
a19056 1
      as_fn_executable_p "$ac_path_SED" || continue
a19239 120
ntp_pkgconfig_min_version='0.15.0'
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}

case "$PKG_CONFIG" in
 /*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	PKG_CONFIG=""
    fi
    ;;
esac




a19251 91
ntp_libevent_min_version=2
ntp_libevent_tearoff=sntp/libevent





case "$ntp_use_local_libevent" in
 yes)
    ;;
 *) # If we have (a good enough) pkg-config, see if it can find libevent
    case "$PKG_CONFIG" in
     /*)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
	if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
	then
	    ntp_use_local_libevent=no
	    { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
$as_echo "$as_me: Using the installed libevent" >&6;}
	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
	    CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
	    # HMS: I hope the following is accurate.
	    # We don't need -levent, we only need  -levent_core.
	    # While we could grab only the -L stuff, there *might* be
	    # other flags there we want.  Originally we just removed -levent
	    # but then somebody decided to install -levent-2.0
	    # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
	    # So now we dance...
	    LDADD_LIBEVENT=
	    for i in `$PKG_CONFIG --libs libevent`
	    do
		case "$i" in
		 -levent*) ;;
		 *) case "$LDADD_LIBEVENT" in
		     '') LDADD_LIBEVENT="$i" ;;
		     *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
		    esac
		    ;;
		esac
	    done
	    case "$LIBISC_PTHREADS_NOTHREADS" in
	     pthreads)
		LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
	    esac
	    LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	else
	    ntp_use_local_libevent=yes
	    # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
	    # is "pthreads"?
	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	fi
	;;
     *)
	ntp_use_local_libevent=yes
	;;
    esac
    ;;
esac

case "$ntp_use_local_libevent" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
$as_echo "$as_me: Using libevent tearoff" >&6;}
    CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
    case "$LIBISC_PTHREADS_NOTHREADS" in
     pthreads)
	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
	;;
     *)
	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
    esac
esac


 if test "x$ntp_use_local_libevent" = "xyes"; then
  BUILD_LIBEVENT_TRUE=
  BUILD_LIBEVENT_FALSE='#'
else
  BUILD_LIBEVENT_TRUE='#'
  BUILD_LIBEVENT_FALSE=
fi





d19307 5
a19311 61
done







  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
$as_echo_n "checking for unsigned long long int... " >&6; }
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_unsigned_long_long_int=yes
     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

else
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
a19312 1
  fi
d19447 1
a19447 2
test_array [0] = 0;
return test_array [0];
a19469 1

d19475 34
a19509 5
      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
	if test $ac_cv_type_long_long_int = yes; then
	  	  	  	  if test "$cross_compiling" = yes; then :
  :
d19514 5
a19518 5
		 #ifndef LLONG_MAX
		 # define HALF \
			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
		 # define LLONG_MAX (HALF - 1 + HALF)
		 #endif
d19523 10
a19532 10
		 int i;
		 for (i = 0; ; i++)
		   {
		     long long int m = n << i;
		     if (m >> i != n)
		       return 1;
		     if (LLONG_MAX / 2 < m)
		       break;
		   }
		 return 0;
d19538 1
a19538 1

d19546 5
a19550 2
	fi
      fi
d19566 1
a19566 3
  ac_cv_type_unsigned_long_long_int=yes
     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19599 1
a19599 1

a19604 1
     fi
d19679 1
a19679 2
test_array [0] = 0;
return test_array [0];
d19733 1
a19733 1

d19735 1
a19735 1
  /* Ultrix mips cc rejects this sort of thing.  */
d19737 1
a19737 1
  const charset cs = { 0, 0 };
d19754 2
a19755 3
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char tx;
    char *t = &tx;
d19771 1
a19771 1
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
d19773 2
a19774 2
    struct s { int j; const int *ap[3]; } bx;
    struct s *b = &bx; b->j = 5;
d19897 1
a19897 1

d19899 1
a19899 1
  /* Ultrix mips cc rejects this sort of thing.  */
d19901 1
a19901 1
  const charset cs = { 0, 0 };
d19918 2
a19919 3
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char tx;
    char *t = &tx;
d19935 1
a19935 1
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
d19937 2
a19938 2
    struct s { int j; const int *ap[3]; } bx;
    struct s *b = &bx; b->j = 5;
d20820 1
a20820 1
find_stack_direction (int *addr, int depth)
d20822 9
a20830 6
  int dir, dummy = 0;
  if (! addr)
    addr = &dummy;
  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  return dir + dummy;
d20834 1
a20834 1
main (int argc, char **argv)
d20836 1
a20836 1
  return find_stack_direction (0, argc + !argv + 20) < 0;
a21080 67
# Bug 2713
LDADD_LIBUTIL=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
$as_echo_n "checking for library containing snprintb... " >&6; }
if ${ac_cv_search_snprintb+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char snprintb ();
int
main ()
{
return snprintb ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' util; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_snprintb=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_snprintb+:} false; then :
  break
fi
done
if ${ac_cv_search_snprintb+:} false; then :

else
  ac_cv_search_snprintb=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
$as_echo "$ac_cv_search_snprintb" >&6; }
ac_res=$ac_cv_search_snprintb
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_snprintb" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
 esac

$as_echo "#define USE_SNPRINTB 1" >>confdefs.h

fi


d21742 1
a21742 2
test_array [0] = 0;
return test_array [0];
d22071 1
a22071 2
 no) ;;
 *)
d22141 1
a22141 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a25487 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
$as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}

a26527 4




d26553 50
a27767 3
     *-stratus-vos)
	ans=no
	;;
a27845 3
     *-stratus-vos)
	ans=no
	;;
a27908 3
     *-stratus-vos)
	ans=no
	;;
d28088 1
a28088 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28235 1
a28235 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28276 1
a28276 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28351 1
a28351 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a28378 14
case "$PATH_NET_SNMP_CONFIG" in
 /*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
$as_echo_n "checking for net-snmp version... " >&6; }
if ${ntp_cv_net_snmp_version+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
$as_echo "$ntp_cv_net_snmp_version" >&6; }
	;;
esac

d28799 1
a28799 1
for ac_header in sgtty.h stdatomic.h stdlib.h string.h termio.h
a29116 47
case "$ac_cv_header_stdatomic_h" in
 yes)
	for ac_func in atomic_thread_fence
do :
  ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ATOMIC_THREAD_FENCE 1
_ACEOF

fi
done

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
$as_echo_n "checking for atomic_thread_fence()... " >&6; }
if ${ntp_cv_func_atomic_thread_fence+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <stdatomic.h>

int
main ()
{

			atomic_thread_fence(memory_order_seq_cst);


  ;
  return 0;
}
		ntp_cv_func_atomic_thread_fence=yes
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_func_atomic_thread_fence=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
$as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
    ;;
esac

a29954 14
for ac_func in arc4random_buf
do :
  ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
if test "x$ac_cv_func_arc4random_buf" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ARC4RANDOM_BUF 1
_ACEOF

fi
done


####

a30281 5
case "$host" in
 *-*-*linux*)
    ntp_dflt_rlimit_memlock="-1" ;;
 *) ntp_dflt_rlimit_memlock="32" ;;
esac
d30285 1
a30285 1
    HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock"  ;;
d30334 2
d30385 1
a30385 1
    ans=$ntp_dflt_rlimit_memlock
a30399 1

d31243 4
a31246 4
			#include <sys/syscall.h>
			#if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
			# error
			#endif
d31282 4
a31285 4
		#include <sys/timex.h>
		#ifndef STA_FLL
		# error
		#endif
d33049 120
a33569 1
# Because we don't want -Werror for the EVP_MD_do_all_sorted check
a33570 18

case "$ntp_openssl" in
 yes)
    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
    for ac_func in EVP_MD_do_all_sorted
do :
  ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_EVP_MD_DO_ALL_SORTED 1
_ACEOF

fi
done

    ;;
esac

a34086 3
	 *-stratus-vos)
	    ans=no
	    ;;
a34148 3
	 *-stratus-vos)
	    ans=no
	    ;;
a34599 5
	# Bug 2815.  This is a bit of a hack, but it works...
	case "$ntp_cv_net_snmp_version" in
	 5.3*)	SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
		;;
	esac
a34759 3
 *-stratus-vos)
    ans=no
    ;;
d34980 1
d35002 1
a35941 88
###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
$as_echo_n "checking if we want the experimental leap smear code... " >&6; }
# Check whether --enable-leap-smear was given.
if test "${enable_leap_smear+set}" = set; then :
  enableval=$enable_leap_smear; ntp_ok=$enableval
else
  ntp_ok=no

fi

ntp_leap_smear_enabled=0
case "$ntp_ok" in
 yes)
    ntp_leap_smear_enabled=1

$as_echo "#define LEAP_SMEAR 1" >>confdefs.h


    HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }


# We may not need have_unity
have_unity=false
# Extract the first word of "ruby", so it can be a program name with args.
set dummy ruby; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_RUBY+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_RUBY in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_RUBY=$ac_cv_path_PATH_RUBY
if test -n "$PATH_RUBY"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
$as_echo "$PATH_RUBY" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


case "$PATH_RUBY" in
 /*)
    have_unity=true
    ;;
 *) PATH_RUBY="false"
    ;;
esac
# We may not need UNITYBUILD_AVAILABLE
 if $have_unity; then
  UNITYBUILD_AVAILABLE_TRUE=
  UNITYBUILD_AVAILABLE_FALSE='#'
else
  UNITYBUILD_AVAILABLE_TRUE='#'
  UNITYBUILD_AVAILABLE_FALSE=
fi




d35973 1
a35973 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a36041 75

case "$build" in
 $host)	cross=0 ;;
 *)	cross=1 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
$as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
# Check whether --enable-problem-tests was given.
if test "${enable_problem_tests+set}" = set; then :
  enableval=$enable_problem_tests; ntp_ept=$enableval
else
  ntp_ept=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
$as_echo "$ntp_ept" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
$as_echo_n "checking if we can run test-ntp_restrict... " >&6; }
ntp_test_ntp_restrict="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 no:0:*-*-hpux-11.23*) ;;
 *) ntp_test_ntp_restrict="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
$as_echo "$ntp_test_ntp_restrict" >&6; }
 if test x$ntp_test_ntp_restrict = xyes; then
  BUILD_TEST_NTP_RESTRICT_TRUE=
  BUILD_TEST_NTP_RESTRICT_FALSE='#'
else
  BUILD_TEST_NTP_RESTRICT_TRUE='#'
  BUILD_TEST_NTP_RESTRICT_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
$as_echo_n "checking if we can run test-ntp_scanner... " >&6; }
ntp_test_ntp_scanner="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 *) ntp_test_ntp_scanner="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
$as_echo "$ntp_test_ntp_scanner" >&6; }
 if test x$ntp_test_ntp_scanner = xyes; then
  BUILD_TEST_NTP_SCANNER_TRUE=
  BUILD_TEST_NTP_SCANNER_FALSE='#'
else
  BUILD_TEST_NTP_SCANNER_TRUE='#'
  BUILD_TEST_NTP_SCANNER_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
$as_echo_n "checking if we can run test-ntp_signd... " >&6; }
ntp_test_ntp_signd="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 *) ntp_test_ntp_signd="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
$as_echo "$ntp_test_ntp_signd" >&6; }
 if test x$ntp_test_ntp_signd = xyes; then
  BUILD_TEST_NTP_SIGND_TRUE=
  BUILD_TEST_NTP_SIGND_FALSE='#'
else
  BUILD_TEST_NTP_SIGND_TRUE='#'
  BUILD_TEST_NTP_SIGND_FALSE=
fi



d36098 1
a36098 1
ac_config_files="$ac_config_files scripts/build/Makefile"
d36100 1
a36100 1
ac_config_files="$ac_config_files scripts/build/mkver"
d36104 1
a36104 1
ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
d36106 1
a36106 1
ac_config_files="$ac_config_files scripts/lib/Makefile"
d36110 1
a36110 1
ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
d36114 1
a36114 1
ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
a36117 2
ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"

d36124 1
a36124 3
ac_config_files="$ac_config_files scripts/update-leap/Makefile"

ac_config_files="$ac_config_files scripts/update-leap/update-leap"
a36127 2
ac_config_files="$ac_config_files tests/bug-2803/Makefile"

a36131 6
ac_config_files="$ac_config_files tests/ntpq/Makefile"

ac_config_files="$ac_config_files tests/sandbox/Makefile"

ac_config_files="$ac_config_files tests/sec-2853/Makefile"

a36280 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
$as_echo_n "checking that generated files are newer than configure... " >&6; }
   if test -n "$am_sleep_pid"; then
     # Hide warnings about reused PIDs.
     wait $am_sleep_pid 2>/dev/null
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
$as_echo "done" >&6; }
a36317 4
if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a36329 4
if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a36345 4
if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
  as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a36349 12
if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d36648 1
a36648 1
    # In both cases, we have to default to `cp -pR'.
d36650 1
a36650 1
      as_ln_s='cp -pR'
d36654 1
a36654 1
    as_ln_s='cp -pR'
d36657 1
a36657 1
  as_ln_s='cp -pR'
d36717 22
a36738 10

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
as_test_x='test -x'
as_executable_p=as_fn_executable_p
d36759 2
a36760 2
This file was extended by ntp $as_me 4.2.8p4, which was
generated by GNU Autoconf 2.69.  Invocation command line was
d36820 1
a36820 1
ntp home page: <http://www.ntp.org./>."
d36826 2
a36827 2
ntp config.status 4.2.8p4
configured by $0, generated by GNU Autoconf 2.69,
d36830 1
a36830 1
Copyright (C) 2012 Free Software Foundation, Inc.
d36921 1
a36921 1
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d37353 3
a37355 1
    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
d37357 1
a37357 3
    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
d37359 1
a37359 1
    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
d37361 1
a37361 1
    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
a37362 1
    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
d37366 1
a37366 2
    "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
    "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
a37367 1
    "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
a37369 3
    "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;;
    "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
    "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
d38006 1
a38006 1
  # Older Autoconf quotes --file arguments for eval, but not when files
d38019 1
a38019 1
    # We used to match only the files named 'Makefile.in', but
d38053 1
a38053 1
    # from the Makefile without running 'make'.
d38057 1
a38057 1
    test -z "$am__include" && continue
d38059 2
d38067 1
a38067 1
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
d38902 1
a38902 1
    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' -e '/^$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
d38904 1
a38905 1
    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
a38911 1
    "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
@


1.1.1.2.2.3
log
@Pull up following revision(s) (requested by spz in ticket #1380):
	external/bsd/ntp/importdate: up to revision 1.9
	external/bsd/ntp/bin/ntpd/Makefile: up to revision 1.21
	external/bsd/ntp/dist/ChangeLog: up to revision 1.1.1.9
	external/bsd/ntp/dist/CommitLog: up to revision 1.1.1.9
	external/bsd/ntp/dist/Makefile.am: up to revision 1.1.1.8
	external/bsd/ntp/dist/Makefile.in: up to revision 1.1.1.9
	external/bsd/ntp/dist/NEWS: up to revision 1.1.1.9
	external/bsd/ntp/dist/README.pullrequests: up to revision 1.1.1.1
	external/bsd/ntp/dist/config.h.in: up to revision 1.1.1.8
	external/bsd/ntp/dist/configure: up to revision 1.1.1.9
	external/bsd/ntp/dist/configure.ac: up to revision 1.1.1.8
	external/bsd/ntp/dist/packageinfo.sh: up to revision 1.1.1.9
	external/bsd/ntp/dist/html/authentic.html: up to revision 1.1.1.3
	external/bsd/ntp/dist/html/miscopt.html: up to revision 1.1.1.8
	external/bsd/ntp/dist/html/monopt.html: up to revision 1.1.1.4
	external/bsd/ntp/dist/html/xleave.html: up to revision 1.1.1.4
	external/bsd/ntp/dist/include/Makefile.am: up to revision 1.1.1.8
	external/bsd/ntp/dist/include/Makefile.in: up to revision 1.1.1.9
	external/bsd/ntp/dist/include/ntp.h: up to revision 1.6
	external/bsd/ntp/dist/include/ntp_io.h: up to revision 1.5
	external/bsd/ntp/dist/include/ntp_keyacc.h: up to revision 1.1.1.1
	external/bsd/ntp/dist/include/ntp_refclock.h: up to revision 1.5
	external/bsd/ntp/dist/include/ntp_stdlib.h: up to revision 1.13
	external/bsd/ntp/dist/include/ntp_types.h: up to revision 1.6
	external/bsd/ntp/dist/include/ntp_worker.h: up to revision 1.5
	external/bsd/ntp/dist/include/ntpd.h: up to revision 1.8
	external/bsd/ntp/dist/include/parse.h: up to revision 1.6
	external/bsd/ntp/dist/include/recvbuff.h: up to revision 1.5
	external/bsd/ntp/dist/include/safecast.h: up to revision 1.1.1.2
	external/bsd/ntp/dist/lib/isc/backtrace.c: up to revision 1.6
	external/bsd/ntp/dist/lib/isc/buffer.c: up to revision 1.4
	external/bsd/ntp/dist/lib/isc/hmacmd5.c: up to revision 1.5
	external/bsd/ntp/dist/lib/isc/hmacsha.c: up to revision 1.5
	external/bsd/ntp/dist/lib/isc/inet_aton.c: up to revision 1.4
	external/bsd/ntp/dist/lib/isc/inet_pton.c: up to revision 1.7
	external/bsd/ntp/dist/lib/isc/log.c: up to revision 1.7
	external/bsd/ntp/dist/lib/isc/netaddr.c: up to revision 1.9
	external/bsd/ntp/dist/lib/isc/sockaddr.c: up to revision 1.7
	external/bsd/ntp/dist/lib/isc/task.c: up to revision 1.4
	external/bsd/ntp/dist/lib/isc/tsmemcmp.c: up to revision 1.1.1.1
	external/bsd/ntp/dist/lib/isc/include/isc/string.h: up to revision 1.5
	external/bsd/ntp/dist/lib/isc/win32/interfaceiter.c: up to revision 1.4
	external/bsd/ntp/dist/lib/isc/win32/net.c: up to revision 1.4
	external/bsd/ntp/dist/libntp/Makefile.am: up to revision 1.1.1.6
	external/bsd/ntp/dist/libntp/Makefile.in: up to revision 1.1.1.9
	external/bsd/ntp/dist/libntp/a_md5encrypt.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/atolfp.c: up to revision 1.8
	external/bsd/ntp/dist/libntp/authkeys.c: up to revision 1.10
	external/bsd/ntp/dist/libntp/authreadkeys.c: up to revision 1.9
	external/bsd/ntp/dist/libntp/authusekey.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/dolfptoa.c: up to revision 1.4
	external/bsd/ntp/dist/libntp/hextolfp.c: up to revision 1.7
	external/bsd/ntp/dist/libntp/is_ip_address.c: up to revision 1.1.1.1
	external/bsd/ntp/dist/libntp/mstolfp.c: up to revision 1.7
	external/bsd/ntp/dist/libntp/msyslog.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/ntp_crypto_rnd.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to revision 1.9
	external/bsd/ntp/dist/libntp/ntp_lineedit.c: up to revision 1.9
	external/bsd/ntp/dist/libntp/ntp_rfc2553.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/ntp_worker.c: up to revision 1.6
	external/bsd/ntp/dist/libntp/recvbuff.c: up to revision 1.6
	external/bsd/ntp/dist/libntp/snprintf.c: up to revision 1.4
	external/bsd/ntp/dist/libntp/socktohost.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/systime.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/work_fork.c: up to revision 1.9
	external/bsd/ntp/dist/libntp/work_thread.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_computime.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_dcf7000.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_hopf6021.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_meinberg.c: up to revision 1.6
	external/bsd/ntp/dist/libparse/clk_rawdcf.c: up to revision 1.7
	external/bsd/ntp/dist/libparse/clk_rcc8000.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_schmid.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_trimtaip.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_varitext.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_wharton.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/parse.c: up to revision 1.5
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to revision 1.1.1.5
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to revision 1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to revision 1.1.1.6
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.def: up to revision 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to revision 1.14
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to revision 1.16
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to revision 1.12
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to revision 1.22
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to revision 1.10
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to revision 1.9
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to revision 1.13
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to revision 1.11
	external/bsd/ntp/dist/ntpd/ntp_refclock.c: up to revision 1.9
	external/bsd/ntp/dist/ntpd/ntp_request.c: up to revision 1.14
	external/bsd/ntp/dist/ntpd/ntp_restrict.c: up to revision 1.8
	external/bsd/ntp/dist/ntpd/ntp_signd.c: up to revision 1.4
	external/bsd/ntp/dist/ntpd/ntp_timer.c: up to revision 1.7
	external/bsd/ntp/dist/ntpd/ntp_util.c: up to revision 1.8
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to revision 1.7
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to revision 1.10
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.c: up to revision 1.13
	external/bsd/ntp/dist/ntpd/ntpd.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/refclock_chu.c: up to revision 1.9
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to revision 1.9
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to revision 1.10
	external/bsd/ntp/dist/ntpd/refclock_local.c: up to revision 1.5
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to revision 1.18
	external/bsd/ntp/dist/ntpd/refclock_shm.c: up to revision 1.8
	external/bsd/ntp/dist/ntpd/refclock_true.c: up to revision 1.6
	external/bsd/ntp/dist/ntpd/refclock_tsyncpci.c: up to revision 1.4
	external/bsd/ntp/dist/ntpdate/ntpdate.c: up to revision 1.10
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to revision 1.7
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to revision 1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.c: up to revision 1.13
	external/bsd/ntp/dist/ntpdc/ntpdc.h: up to revision 1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc_ops.c: up to revision 1.8
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpq/libntpq.c: up to revision 1.4
	external/bsd/ntp/dist/ntpq/libntpq.h: up to revision 1.5
	external/bsd/ntp/dist/ntpq/libntpq_subs.c: up to revision 1.4
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to revision 1.7
	external/bsd/ntp/dist/ntpq/ntpq-opts.def: up to revision 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to revision 1.7
	external/bsd/ntp/dist/ntpq/ntpq-subs.c: up to revision 1.14
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.c: up to revision 1.15
	external/bsd/ntp/dist/ntpq/ntpq.h: up to revision 1.9
	external/bsd/ntp/dist/ntpq/ntpq.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to revision 1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to revision 1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary-opts: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.am: up to revision 1.1.1.3
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/config.h.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/configure: up to revision 1.1.1.9
	external/bsd/ntp/dist/sntp/crypto.c: up to revision 1.10
	external/bsd/ntp/dist/sntp/crypto.h: up to revision 1.5
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/main.c: up to revision 1.15
	external/bsd/ntp/dist/sntp/networking.c: up to revision 1.14
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to revision 1.8
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to revision 1.7
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.html: up to revision 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/version.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/include/copyright.def: up to revision 1.1.1.4
	external/bsd/ntp/dist/sntp/include/version.def: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/include/version.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/test/regress.gen.c: up to revision 1.5
	external/bsd/ntp/dist/sntp/libopts/configfile.c: up to revision 1.8
	external/bsd/ntp/dist/sntp/libopts/enum.c: up to revision 1.8
	external/bsd/ntp/dist/sntp/libopts/init.c: up to revision 1.8
	external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/m4/ntp_problemtests.m4: up to revision 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/version.m4: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/tests/crypto.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.c: up to revision 1.1.1.4
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h.in: up to revision 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/keyFile.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/kodDatabase.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/kodFile.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/packetHandling.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/packetProcessing.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/run-kodDatabase.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/run-t-log.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/t-log.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/utilities.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/unity/unity_internals.h: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/bug-2803/bug-2803.c: up to revision 1.1.1.4
	external/bsd/ntp/dist/tests/bug-2803/run-bug-2803.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/Makefile.am: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/Makefile.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/authkeys.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/buftvtots.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/calendar.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/caljulian.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/clocktime.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/decodenetnum.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/humandate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/lfpfunc.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/lfptostr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/modetoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/msyslog.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/netof.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/numtoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/numtohost.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/octtoint.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/prettydate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/recvbuff.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/refidsmear.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/refnumtoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-a_md5encrypt.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-authkeys.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-calendar.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-decodenetnum.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-humandate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-lfpfunc.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-lfptostr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-modetoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-msyslog.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-netof.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-numtoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-numtohost.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-prettydate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-refnumtoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-sfptostr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-socktoa.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-statestr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-strtolfp.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-timespecops.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-timevalops.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-tsafememcmp.c: up to revision 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/run-uglydate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/sfptostr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/socktoa.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/ssl_init.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/statestr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/strtolfp.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/timespecops.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/timevalops.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/tsafememcmp.c: up to revision 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/uglydate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/ntpd/leapsec.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/ntp_prio_q.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/ntp_restrict.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/rc_cmdlength.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-leapsec.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-ntp_restrict.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-rc_cmdlength.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-t-ntp_signd.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/t-ntp_scanner.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/t-ntp_signd.c: up to revision 1.1.1.4
	external/bsd/ntp/dist/tests/ntpq/Makefile.am: up to revision 1.1.1.2
	external/bsd/ntp/dist/tests/ntpq/Makefile.in: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/run-uglydate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/sandbox/smeartest.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/sandbox/uglydate.c: up to revision 1.1.1.4
	external/bsd/ntp/dist/tests/sec-2853/sec-2853.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to revision 1.12
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to revision 1.7
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to revision 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.c: up to revision 1.10
	external/bsd/ntp/dist/util/ntp-keygen.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/include/config.h: up to revision 1.16
	external/bsd/ntp/lib/libiscntp/Makefile: up to revision 1.14
	external/bsd/ntp/lib/libntp/Makefile: up to revision 1.18
	external/bsd/ntp/scripts/mkver: up to revision 1.10
	external/bsd/ntp/bin/ntpd/ntp_parser.c: patch
	external/bsd/ntp/bin/ntpd/ntp_parser.h: patch
Update ntp to 4.2.8p7.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p7.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p7'
PACKAGE_STRING='ntp 4.2.8p7'
a1052 1
enable_bug3020_fix
a1060 1
enable_dynamic_interleave
d1619 1
a1619 1
\`configure' configures ntp 4.2.8p7 to adapt to many kinds of systems.
d1689 1
a1689 1
     short | recursive ) echo "Configuration of ntp 4.2.8p7:";;
a1822 1
  --enable-bug3020-fix    + Provide the explicit 127.0.0.0/8 martian filter
a1832 2
  --enable-dynamic-interleave
                          - dynamic interleave support
d1922 1
a1922 1
ntp configure 4.2.8p7
d2752 1
a2752 1
It was created by ntp $as_me 4.2.8p7, which was
d3753 1
a3753 1
 VERSION='4.2.8p7'
d20021 1
a20021 1
	    for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
a20023 1
		 -D*) ;;
a22119 3

$as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h

d29708 1
a29708 107
for ac_header in sgtty.h stdatomic.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
if ${ac_cv_header_stdbool_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

             #include <stdbool.h>
             #ifndef bool
              "error: bool is not defined"
             #endif
             #ifndef false
              "error: false is not defined"
             #endif
             #if false
              "error: false is not 0"
             #endif
             #ifndef true
              "error: true is not defined"
             #endif
             #if true != 1
              "error: true is not 1"
             #endif
             #ifndef __bool_true_false_are_defined
              "error: __bool_true_false_are_defined is not defined"
             #endif

             struct s { _Bool s: 1; _Bool t; } s;

             char a[true == 1 ? 1 : -1];
             char b[false == 0 ? 1 : -1];
             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
             char d[(bool) 0.5 == true ? 1 : -1];
             /* See body of main program for 'e'.  */
             char f[(_Bool) 0.0 == false ? 1 : -1];
             char g[true];
             char h[sizeof (_Bool)];
             char i[sizeof s.t];
             enum { j = false, k = true, l = false * true, m = true * 256 };
             /* The following fails for
                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
             _Bool n[m];
             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
             /* Catch a bug in an HP-UX C compiler.  See
                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
              */
             _Bool q = true;
             _Bool *pq = &q;

int
main ()
{

             bool e = &s;
             *pq |= q;
             *pq |= ! q;
             /* Refer to every declared value, to avoid compiler optimizations.  */
             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
                     + !m + !n + !o + !p + !q + !pq);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdbool_h=yes
else
  ac_cv_header_stdbool_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
$as_echo "$ac_cv_header_stdbool_h" >&6; }
   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
if test "x$ac_cv_type__Bool" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE__BOOL 1
_ACEOF


fi


if test $ac_cv_header_stdbool_h = yes; then

$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h

fi

for ac_header in stdlib.h string.h termio.h
a35833 20
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5
$as_echo_n "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; }
# Check whether --enable-bug3020-fix was given.
if test "${enable_bug3020_fix+set}" = set; then :
  enableval=$enable_bug3020_fix; ans=$enableval
else
  ans=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 yes)

$as_echo "#define ENABLE_BUG3020_FIX 1" >>confdefs.h

esac


a36852 26
###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5
$as_echo_n "checking if we want dynamic interleave support... " >&6; }
# Check whether --enable-dynamic-interleave was given.
if test "${enable_dynamic_interleave+set}" = set; then :
  enableval=$enable_dynamic_interleave; ntp_ok=$enableval
else
  ntp_ok=no

fi

ntp_dynamic_interleave=0
case "$ntp_ok" in
 yes)
    ntp_dynamic_interleave=1
    ;;
esac

cat >>confdefs.h <<_ACEOF
#define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave
_ACEOF

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

a37037 2
 no:0:*-*-freebsd6.4) ;;
 no:0:*-*-hpux11.23*) ;;
d37039 1
a37056 1
 no:0:*-*-freebsd6.4) ;;
a37074 1
 no:0:*-*-freebsd6.4) ;;
d37839 1
a37839 1
This file was extended by ntp $as_me 4.2.8p7, which was
d37906 1
a37906 1
ntp config.status 4.2.8p7
@


1.1.1.2.2.4
log
@Pull up following revision(s) (requested by spz in ticket #1448):
	doc/3RDPARTY: patch
	external/bsd/ntp/Makefile.inc: up to 1.16 via patch
	external/bsd/ntp/bin/Makefile: up to 1.3
	external/bsd/ntp/bin/ntpd/Makefile: up to 1.21 via patch
	external/bsd/ntp/bin/ntpd/ntp.keys.5: up to 1.2
	external/bsd/ntp/bin/ntpd/ntp_parser.c: patch
	external/bsd/ntp/bin/ntpd/ntp_parser.h: patch
	external/bsd/ntp/bin/sntp/Makefile: up to 1.6 via patch
	external/bsd/ntp/dist/COPYRIGHT: up to 1.1.1.8
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.12
	external/bsd/ntp/dist/CommitLog: up to 1.1.1.12
	external/bsd/ntp/dist/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/NEWS: up to 1.1.1.12
	external/bsd/ntp/dist/aclocal.m4: up to 1.1.1.10
	external/bsd/ntp/dist/adjtimed/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/adjtimed/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/clockstuff/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/clockstuff/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/config.h.in: up to 1.1.1.9
	external/bsd/ntp/dist/configure: up to 1.1.1.12
	external/bsd/ntp/dist/configure.ac: up to 1.1.1.10
	external/bsd/ntp/dist/html/authentic.html: up to 1.1.1.3
	external/bsd/ntp/dist/html/copyright.html: up to 1.1.1.6
	external/bsd/ntp/dist/html/drivers/driver40-ja.html: up to 1.1.1.2
	external/bsd/ntp/dist/html/drivers/driver40.html: up to 1.1.1.5
	external/bsd/ntp/dist/html/miscopt.html: up to 1.1.1.10
	external/bsd/ntp/dist/html/xleave.html: up to 1.1.1.4
	external/bsd/ntp/dist/include/Makefile.am: up to 1.1.1.9
	external/bsd/ntp/dist/include/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/include/isc/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/include/libssl_compat.h: up to 1.1.1.2
	external/bsd/ntp/dist/include/ntp.h: up to 1.8
	external/bsd/ntp/dist/include/ntp_crypto.h: up to 1.5
	external/bsd/ntp/dist/include/ntp_fp.h: up to 1.9
	external/bsd/ntp/dist/include/ntp_intres.h: up to 1.5
	external/bsd/ntp/dist/include/ntp_md5.h: up to 1.7
	external/bsd/ntp/dist/include/ntp_stdlib.h: up to 1.14
	external/bsd/ntp/dist/include/ntp_worker.h: up to 1.5
	external/bsd/ntp/dist/include/ntpd.h: up to 1.10
	external/bsd/ntp/dist/include/parse.h: up to 1.6
	external/bsd/ntp/dist/include/ssl_applink.c: up to 1.5
	external/bsd/ntp/dist/kernel/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/kernel/sys/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/lib/isc/inet_pton.c: up to 1.8
	external/bsd/ntp/dist/libntp/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/libntp/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/libntp/a_md5encrypt.c: up to 1.8
	external/bsd/ntp/dist/libntp/audio.c: up to 1.12
	external/bsd/ntp/dist/libntp/authkeys.c: up to 1.11
	external/bsd/ntp/dist/libntp/authreadkeys.c: up to 1.9
	external/bsd/ntp/dist/libntp/emalloc.c: up to 1.8
	external/bsd/ntp/dist/libntp/libssl_compat.c: up to 1.1.1.2
	external/bsd/ntp/dist/libntp/ntp_calendar.c: up to 1.9
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to 1.11
	external/bsd/ntp/dist/libntp/recvbuff.c: up to 1.7
	external/bsd/ntp/dist/libntp/ssl_init.c: up to 1.10
	external/bsd/ntp/dist/libntp/statestr.c: up to 1.6
	external/bsd/ntp/dist/libntp/work_fork.c: up to 1.11
	external/bsd/ntp/dist/libntp/work_thread.c: up to 1.5
	external/bsd/ntp/dist/libparse/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/libparse/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/libparse/clk_hopf6021.c: up to 1.6
	external/bsd/ntp/dist/libparse/clk_trimtsip.c: up to 1.6
	external/bsd/ntp/dist/libparse/gpstolfp.c: up to 1.6
	external/bsd/ntp/dist/ntpd/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/complete.conf.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.17
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.19
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to 1.25
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.16
	external/bsd/ntp/dist/ntpd/ntp_peer.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.15
	external/bsd/ntp/dist/ntpd/ntp_refclock.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp_request.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_restrict.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_scanner.c: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_timer.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.13
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/refclock_datum.c: up to 1.7
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to 1.11
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to 1.12
	external/bsd/ntp/dist/ntpd/refclock_jupiter.c: up to 1.11
	external/bsd/ntp/dist/ntpd/refclock_mx4200.c: up to 1.5
	external/bsd/ntp/dist/ntpd/refclock_nmea.c: up to 1.12
	external/bsd/ntp/dist/ntpd/refclock_oncore.c: up to 1.14
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to 1.20
	external/bsd/ntp/dist/ntpdate/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/ntpdate/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdate/ntpdate.c: up to 1.11
	external/bsd/ntp/dist/ntpdc/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.c: up to 1.15
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc_ops.c: up to 1.9
	external/bsd/ntp/dist/ntpq/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/libntpq.c: up to 1.5
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpq/ntpq-subs.c: up to 1.15
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.c: up to 1.18
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.12
	external/bsd/ntp/dist/parseutil/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/parseutil/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/build/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/build/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/build/genAuthors.in: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/lib/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.in: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary-opts.def: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/update-leap/Makefile.in: up to 1.1.1.6
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.in: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/COPYRIGHT: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/aclocal.m4: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/config.h.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.12
	external/bsd/ntp/dist/sntp/configure.ac: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/crypto.c: up to 1.13
	external/bsd/ntp/dist/sntp/crypto.h: up to 1.5
	external/bsd/ntp/dist/sntp/harden/README: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/default: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd10: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd11: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd12: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/linux: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/netbsd7.0: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/netbsd7.99: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/include/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/include/copyright.def: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/kod_management.c: up to 1.8
	external/bsd/ntp/dist/sntp/libevent/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/libevent/build-aux/compile: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/config.guess: up to 1.2
	external/bsd/ntp/dist/sntp/libevent/build-aux/config.sub: up to 1.2
	external/bsd/ntp/dist/sntp/libevent/build-aux/depcomp: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/install-sh: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/ltmain.sh: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/build-aux/missing: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/ylwrap: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/config.h.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/configure: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/configure.ac: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/evlog.c: patch
	external/bsd/ntp/dist/sntp/libevent/include/event2/event-config.h: patch
	external/bsd/ntp/dist/sntp/libevent/m4/libtool.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltoptions.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltsugar.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltversion.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/m4/lt~obsolete.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_ssl.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/libopts/configfile.c: up to 1.8
	external/bsd/ntp/dist/sntp/libopts/nested.c: up to 1.10
	external/bsd/ntp/dist/sntp/libopts/parse-duration.c: up to 1.9
	external/bsd/ntp/dist/sntp/m4/libtool.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltoptions.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltsugar.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltversion.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/m4/lt~obsolete.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ntp_compiler.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_harden.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/m4/ntp_openssl.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_problemtests.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_prog_cc.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/sntp_problemtests.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/scm-rev: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/scripts/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/scripts/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/scripts/genHardFlags: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.11
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.10
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.12
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/tests/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/tests/crypto.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.c: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/tests/keyFile.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/packetHandling.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/packetProcessing.c: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/tests/t-log.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/unity/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/unity/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/unity/ulib_setup.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/ulib_teardown.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/unity_fixture.c: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/version.c: up to 1.1.1.9
	external/bsd/ntp/dist/tests/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/tests/bug-2803/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/bug-2803/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/bug-2803/run-bug-2803.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/buftvtots.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/calendar.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/caljulian.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/clocktime.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/decodenetnum.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/lfpfunc.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/netof.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/numtohost.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/octtoint.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/refidsmear.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/refnumtoa.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-calendar.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/sfptostr.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/socktoa.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/timespecops.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/timevalops.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/ntpd/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/tests/ntpd/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/tests/ntpd/leapsec.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/t-ntp_signd.c: up to 1.1.1.4
	external/bsd/ntp/dist/tests/ntpq/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpq/Makefile.in: up to 1.1.1.4
	external/bsd/ntp/dist/tests/sandbox/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/sec-2853/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sec-2853/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/util/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/util/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.15
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.10
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.c: up to 1.12
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/importdate: up to 1.12
	external/bsd/ntp/include/config.h: up to 1.19
	external/bsd/ntp/lib/libntp/Makefile: up to 1.19
	external/bsd/ntp/lib/libopts/Makefile: up to 1.14
	external/bsd/ntp/scripts/mkver: up to 1.13
Update ntp to 4.2.8p10.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p10.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p10'
PACKAGE_STRING='ntp 4.2.8p10'
d726 1
a726 1
LT_SYS_LIBRARY_PATH
a834 3
NTP_HARD_LDFLAGS
NTP_HARD_CPPFLAGS
NTP_HARD_CFLAGS
d837 6
a954 1
with_aix_soname
d1075 3
d1080 1
a1080 1
LT_SYS_LIBRARY_PATH'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p10 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p10:";;
d1710 1
a1710 1
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
a1713 3
  --with-aix-soname=aix|svr4|both
                          shared library versioning (aka "SONAME") variant to
                          provide on AIX, [default=aix].
d1715 2
a1716 2
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
                          compiler's sysroot if not specified).
d1850 2
d1858 1
a1858 2
  LT_SYS_LIBRARY_PATH
              User-defined run-time library search path.
d1927 1
a1927 1
ntp configure 4.2.8p10
d2226 38
d2331 83
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p10, which was
d3758 1
a3758 1
 VERSION='4.2.8p10'
a4039 13

case "$build" in
 *-*-freebsd1?.*)
    cclist=cc
    ;;
 *)
    cclist="cc gcc"
    ;;
esac


#AC_USE_SYSTEM_EXTENSIONS

d4046 191
a4236 1
  for ac_prog in $cclist
d4280 1
a4280 1
  for ac_prog in $cclist
d4335 2
a5016 2


d5486 92
a5577 5
   case $ac_cv_prog_cc_stdc in #(
  no) :
    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
a5749 32
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
d5751 5
a5755 8
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
a5756 4
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d5758 18
a5775 16
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d5777 8
a5784 6
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
d5786 2
a5787 2
rm -f conftest.$ac_ext
CC=$ac_save_CC
d5790 5
a5794 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
d5796 2
a5797 1
  ac_cv_prog_cc_stdc=no
d5800 1
d5802 7
a5808 5
 ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  if ${ac_cv_prog_cc_stdc+:} false; then :
d5810 28
d5840 8
a5847 10
  case $ac_cv_prog_cc_stdc in #(
  no) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;; #(
  '') :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
d5849 32
d5882 10
d5894 32
d5927 22
a5949 2
# Ralf Wildenhues: With per-target flags we need CC_C_O
# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
d5951 10
a5960 4
if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
d5963 24
a5986 9
    ac_pattern="Autoconf.*'x'"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5988 2
a5989 1
  ac_cv_prog_gcc_traditional=no
a5990 1
rm -f conftest*
d5993 2
a5994 9
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5996 28
a6023 1
rm -f conftest*
a6024 1
  fi
d6026 8
a6033 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d6037 2
d6040 12
a6051 4
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d6053 1
d6056 4
d6061 9
a6069 8

case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
d6071 14
d6086 3
a6088 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d6097 4
a6100 1
#warning foo
d6106 1
a6106 1
  ntp_cv_cpp_warning=yes
d6108 1
a6108 2
  ntp_cv_cpp_warning=no

d6111 1
d6114 12
a6125 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
d6128 5
a6132 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6137 1
void foo(void) __attribute__((__noreturn__));
d6144 1
a6144 1
  ntp_cv_cc_attribute=yes
d6146 2
a6147 26
  ntp_cv_cc_attribute=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)

$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h

esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6158 6
  ntp_cv_gcc_Wstrict_overflow=yes
else
  ntp_cv_gcc_Wstrict_overflow=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6159 12
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
  $as_echo_n "(cached) " >&6
d6161 3
a6163 2

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6175 5
a6179 4
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

d6182 18
a6199 2


d6201 3
a6203 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
d6206 25
d6232 8
a6239 4
	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6241 4
a6244 2
			#include <stdlib.h>
			#include <stdio.h>
d6246 6
d6255 1
a6255 23

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


d6260 12
a6271 1
if ac_fn_c_try_link "$LINENO"; then :
d6273 15
a6287 6
		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d6289 458
a6746 2
else
  ntp_cv_gc_sections_runs=no
d6926 1
d7324 13
a7336 8

for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
d7339 144
a7482 2
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
d7491 1
a7491 1
    ac_cv_prog_YACC="$ac_prog"
d7501 4
a7504 4
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
d7511 28
a7538 1
  test -n "$YACC" && break
d7540 2
a7541 1
test -n "$YACC" || YACC="yacc"
d7543 6
a7548 4
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if ${ac_cv_prog_cc_c99+:} false; then :
  $as_echo_n "(cached) " >&6
d7550 3
a7552 9
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>
a7553 14
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}
d7555 2
a7556 13
// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;
d7558 12
a7569 5
struct incomplete_array
{
  int datasize;
  double data[];
};
d7571 26
a7596 5
struct named_init {
  int number;
  const wchar_t *name;
  double average;
};
d7598 7
a7604 1
typedef const char *ccp;
d7606 2
a7607 2
static inline int
test_restrict (ccp restrict text)
d7609 5
a7613 5
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
d7616 30
d7647 2
a7648 3
// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
a7649 4
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);
d7651 2
a7652 23
  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
d7654 7
d7666 5
a7670 2
  // Check bool.
  _Bool success = false;
d7672 5
a7676 4
  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";
d7678 3
a7680 26
  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);
d7686 6
a7691 5
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
d7693 2
a7694 6
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

d7696 16
a7711 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :

d7713 1
a7713 8



	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }


	ac_ext=c
d7719 1
d7721 24
a7744 2
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d7746 8
a7753 2
			struct foo_s {int i1; int i2;};
			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
d7755 16
a7770 7
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d7772 52
a7823 1
$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
d7825 4
a7829 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7831 4
a7834 5
	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7836 5
a7840 11




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
$as_echo_n "checking for compile/link hardening flags... " >&6; }


# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
d7842 2
a7843 2
  with_locfile=no

d7847 61
a7907 13
(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genHardFlags -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genHardFlags.i 2> genHardFlags.err
. ./genHardFlags.i
d7909 59
a7967 11
case "$GENHARDFLAG" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
$as_echo "in file $GENHARDFLAGFILE" >&6; }
    rm genHardFlags.err genHardFlags.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
    ;;
d7969 46
d8016 10
d8027 1
d8029 2
d8032 5
d8401 1
a8401 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d8403 1
a8403 1
	IFS=$lt_save_ifs
d8408 1
a8408 1
      IFS=$lt_save_ifs
d8431 2
a8432 2
macro_version='2.4.6'
macro_revision='2.4.6'
d8446 1
a8446 1
ltmain=$ac_aux_dir/ltmain.sh
d8495 1
a8495 1
case $ECHO in
d8688 1
a8688 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d8694 1
a8694 1
if test yes = "$GCC"; then
d8700 1
a8700 1
    # gcc leaves a trailing carriage return, which upsets mingw
d8714 1
a8714 1
      test -z "$LD" && LD=$ac_prog
d8725 1
a8725 1
elif test yes = "$with_gnu_ld"; then
d8736 1
a8736 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8738 1
a8738 1
    IFS=$lt_save_ifs
d8741 1
a8741 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d8747 1
a8747 1
	test no != "$with_gnu_ld" && break
d8750 1
a8750 1
	test yes != "$with_gnu_ld" && break
d8755 1
a8755 1
  IFS=$lt_save_ifs
d8757 1
a8757 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d8761 1
a8761 1
LD=$lt_cv_path_LD
d8804 1
a8804 1
  lt_cv_path_NM=$NM
d8806 1
a8806 1
  lt_nm_to_check=${ac_tool_prefix}nm
d8811 1
a8811 1
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8813 1
a8813 1
      IFS=$lt_save_ifs
d8815 2
a8816 2
      tmp_nm=$ac_dir/$lt_tmp_nm
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
d8818 1
a8818 1
	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
d8821 2
a8822 7
	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
	case $build_os in
	mingw*) lt_bad_file=conftest.nm/nofile ;;
	*) lt_bad_file=/dev/null ;;
	esac
	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
	*$lt_bad_file* | *'Invalid file or object type'*)
d8824 1
a8824 1
	  break 2
d8830 1
a8830 1
	    break 2
d8841 1
a8841 1
    IFS=$lt_save_ifs
d8848 2
a8849 2
if test no != "$lt_cv_path_NM"; then
  NM=$lt_cv_path_NM
d8955 1
a8955 1
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
d8957 1
a8957 1
      DUMPBIN="$DUMPBIN -symbols -headers"
d8965 2
a8966 2
  if test : != "$DUMPBIN"; then
    NM=$DUMPBIN
d9017 1
a9017 1
  teststring=ABCD
d9057 1
a9057 1
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a9075 5
  os2*)
    # The test takes a long time on OS/2.
    lt_cv_sys_max_cmd_len=8192
    ;;

d9102 1
a9102 2
    if test -n "$lt_cv_sys_max_cmd_len" && \
       test undefined != "$lt_cv_sys_max_cmd_len"; then
d9108 1
a9108 1
      for i in 1 2 3 4 5 6 7 8; do
d9115 1
a9115 1
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
d9117 1
a9117 1
	      test 17 != "$i" # 1/2 MB should be enough
d9135 1
a9135 1
if test -n "$lt_cv_sys_max_cmd_len"; then
d9153 24
d9299 1
a9299 1
    if test yes != "$GCC"; then
d9304 2
a9305 2
    if test yes = "$GCC"; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
d9433 1
a9433 1
# 'unknown' -- same as none, but documents that we really don't know.
d9437 3
a9439 3
# that responds to the $file_magic_cmd with a given extended regex.
# If you have 'file' or equivalent on your system and you're not sure
# whether 'pass_all' will *always* work, you probably want this one.
d9466 2
a9467 1
  if ( file / ) >/dev/null 2>&1; then
d9503 4
d9544 2
a9545 2
# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d9567 2
a9568 2
openbsd* | bitrig*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a9620 3
os2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9778 2
a9779 2
  # two different shell functions defined in ltmain.sh;
  # decide which one to use based on capabilities of $DLLTOOL
d9791 1
a9791 1
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
d9945 1
a9945 1
      if test 0 -eq "$ac_status"; then
d9953 1
a9953 1
	if test 0 -ne "$ac_status"; then
d9966 1
a9966 1
if test no = "$lt_cv_ar_at_file"; then
d10183 2
a10184 2
  bitrig* | openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
d10187 1
a10187 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
d10190 1
a10190 1
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d10273 1
a10273 1
  if test ia64 = "$host_cpu"; then
a10305 17
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  # Gets list of data symbols to import.
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  # Adjust the below global symbol transforms to fixup imported variables.
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
  lt_c_name_lib_hook="\
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
else
  # Disable hooks by default.
  lt_cv_sys_global_symbol_to_import=
  lt_cdecl_hook=
  lt_c_name_hook=
  lt_c_name_lib_hook=
fi

d10309 1
a10309 4
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
$lt_cdecl_hook\
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
d10312 2
a10313 12
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
$lt_c_name_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"

# Transform an extracted symbol line into symbol name with lib prefix and
# symbol address.
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
$lt_c_name_lib_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
d10331 2
a10332 2
    # Fake it for dumpbin and say T for any non-static function,
    # D for any global variable and I for any imported variable.
a10336 1
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
a10337 3
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
d10341 4
a10344 4
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
"     s[1]~/^[@@?]/{print f,s[1],s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print f,t[1],substr(t[1],length(prfx))}"\
d10392 2
a10393 2
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
/* DATA imports from DLLs on WIN32 can't be const, because runtime
d10396 1
a10396 1
#elif defined __osf__
d10422 1
a10422 1
	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
d10442 1
a10442 1
	  LIBS=conftstm.$ac_objext
d10448 1
a10448 1
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
d10469 1
a10469 1
  if test yes = "$pipe_works"; then
a10521 10










d10534 1
a10534 1
case $with_sysroot in #(
d10536 1
a10536 1
   if test yes = "$GCC"; then
d10546 2
a10547 2
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
$as_echo "$with_sysroot" >&6; }
a10558 80
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
$as_echo_n "checking for a working dd... " >&6; }
if ${ac_cv_path_lt_DD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
: ${lt_DD:=$DD}
if test -z "$lt_DD"; then
  ac_path_lt_DD_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in dd; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_lt_DD" || continue
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
fi
      $ac_path_lt_DD_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_lt_DD"; then
    :
  fi
else
  ac_cv_path_lt_DD=$lt_DD
fi

rm -f conftest.i conftest2.i conftest.out
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
$as_echo "$ac_cv_path_lt_DD" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
$as_echo_n "checking how to truncate binary pipes... " >&6; }
if ${lt_cv_truncate_bin+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
lt_cv_truncate_bin=
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
fi
rm -f conftest.i conftest2.i conftest.out
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
$as_echo "$lt_cv_truncate_bin" >&6; }







# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}

d10564 1
a10564 1
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
d10570 1
a10570 2
  # Find out what ABI is being produced by ac_compile, and set mode
  # options accordingly.
d10579 1
a10579 1
	HPUX_IA64_MODE=32
d10582 1
a10582 1
	HPUX_IA64_MODE=64
d10589 1
a10589 2
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10596 1
a10596 1
    if test yes = "$lt_cv_prog_gnu_ld"; then
d10625 1
a10625 37
mips64*-*linux*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    emul=elf
    case `/usr/bin/file conftest.$ac_objext` in
      *32-bit*)
	emul="${emul}32"
	;;
      *64-bit*)
	emul="${emul}64"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *MSB*)
	emul="${emul}btsmip"
	;;
      *LSB*)
	emul="${emul}ltsmip"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *N32*)
	emul="${emul}n32"
	;;
    esac
    LD="${LD-ld} -m $emul"
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
d10627 1
a10627 6
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.  Note that the listed cases only cover the
  # situations where additional linker options are needed (such as when
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  # vice versa); the common cases where no linker options are needed do
  # not appear in the list.
d10641 1
a10641 11
	    case `/usr/bin/file conftest.o` in
	      *x86-64*)
		LD="${LD-ld} -m elf32_x86_64"
		;;
	      *)
		LD="${LD-ld} -m elf_i386"
		;;
	    esac
	    ;;
	  powerpc64le-*linux*)
	    LD="${LD-ld} -m elf32lppclinux"
d10643 1
a10643 1
	  powerpc64-*linux*)
d10662 1
a10662 4
	  powerpcle-*linux*)
	    LD="${LD-ld} -m elf64lppc"
	    ;;
	  powerpc-*linux*)
d10680 1
a10680 1
  SAVE_CFLAGS=$CFLAGS
d10720 1
a10720 1
  if test yes != "$lt_cv_cc_needs_belf"; then
d10722 1
a10722 1
    CFLAGS=$SAVE_CFLAGS
d10725 2
a10726 3
*-*solaris*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10736 1
a10736 14
      yes*)
        case $host in
        i?86-*-solaris*|x86_64-*-solaris*)
          LD="${LD-ld} -m elf_x86_64"
          ;;
        sparc*-*-solaris*)
          LD="${LD-ld} -m elf64_sparc"
          ;;
        esac
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
          LD=${LD-ld}_sol2
        fi
        ;;
d10750 1
a10750 1
need_locks=$enable_libtool_lock
d10861 1
a10861 1
if test yes != "$lt_cv_path_mainfest_tool"; then
d11364 1
a11364 1
      if test -z "$LT_MULTI_MODULE"; then
d11376 1
a11376 7
	# If there is a non-empty error log, and "single_module"
	# appears in it, assume the flag caused a linker warning
        if test -s conftest.err && $GREP single_module conftest.err; then
	  cat conftest.err >&5
	# Otherwise, if the output was created with a 0 exit code from
	# the compiler, it worked.
	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a11386 1

d11414 1
a11414 1
	LDFLAGS=$save_LDFLAGS
a11418 1

d11440 1
a11440 3
      if test -s conftest.err && $GREP force_load conftest.err; then
	cat conftest.err >&5
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
d11453 1
a11453 1
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
d11455 1
a11455 1
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11462 3
a11464 3
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
	10.[012][,.]*)
	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11466 1
a11466 1
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
d11470 1
a11470 1
    if test yes = "$lt_cv_apple_cc_single_mod"; then
d11473 2
a11474 2
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
d11476 1
a11476 1
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
d11478 1
a11478 1
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a11485 35
# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}

d11502 11
d11534 1
a11534 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11536 1
a11536 1
	IFS=$lt_save_ifs
d11541 1
a11541 1
      IFS=$lt_save_ifs
d11559 1
a11559 16
  withval=$with_pic; lt_p=${PACKAGE-default}
    case $withval in
    yes|no) pic_mode=$withval ;;
    *)
      pic_mode=default
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
      for lt_pkg in $withval; do
	IFS=$lt_save_ifs
	if test "X$lt_pkg" = "X$lt_p"; then
	  pic_mode=yes
	fi
      done
      IFS=$lt_save_ifs
      ;;
    esac
d11565 2
d11582 1
a11582 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11584 1
a11584 1
	IFS=$lt_save_ifs
d11589 1
a11589 1
      IFS=$lt_save_ifs
a11602 52
  shared_archive_member_spec=
case $host,$enable_shared in
power*-*-aix[5-9]*,yes)
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }

# Check whether --with-aix-soname was given.
if test "${with_aix_soname+set}" = set; then :
  withval=$with_aix_soname; case $withval in
    aix|svr4|both)
      ;;
    *)
      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
      ;;
    esac
    lt_cv_with_aix_soname=$with_aix_soname
else
  if ${lt_cv_with_aix_soname+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_with_aix_soname=aix
fi

    with_aix_soname=$lt_cv_with_aix_soname
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
$as_echo "$with_aix_soname" >&6; }
  if test aix != "$with_aix_soname"; then
    # For the AIX way of multilib, we name the shared archive member
    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
    # the AIX toolchain works better with OBJECT_MODE set (default 32).
    if test 64 = "${OBJECT_MODE-32}"; then
      shared_archive_member_spec=shr_64
    else
      shared_archive_member_spec=shr
    fi
  fi
  ;;
*)
  with_aix_soname=aix
  ;;
esac







d11607 1
a11607 1
LIBTOOL_DEPS=$ltmain
a11636 4




d11652 1
a11652 1
if test -n "${ZSH_VERSION+set}"; then
d11691 1
a11691 1
  if test set != "${COLLECT_NAMES+set}"; then
d11702 1
a11702 1
# All known linkers require a '.a' archive for static linking (except MSVC,
d11706 1
a11706 1
with_gnu_ld=$lt_cv_prog_gnu_ld
d11708 2
a11709 2
old_CC=$CC
old_CFLAGS=$CFLAGS
d11718 9
a11726 2
func_cc_basename $compiler
cc_basename=$func_cc_basename_result
d11741 1
a11741 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11744 2
a11745 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11748 1
a11748 1
    IFS=$lt_save_ifs
d11750 2
a11751 2
    if test -f "$ac_dir/${ac_tool_prefix}file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
d11756 1
a11756 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11779 2
a11780 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11785 1
a11785 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11807 1
a11807 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11810 2
a11811 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11814 1
a11814 1
    IFS=$lt_save_ifs
d11816 2
a11817 2
    if test -f "$ac_dir/file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
d11822 1
a11822 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11845 2
a11846 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11851 1
a11851 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11872 1
a11872 1
lt_save_CC=$CC
d11934 1
a11934 1
if test yes = "$GCC"; then
d11950 1
a11950 1
   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
d11980 1
a11980 1
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
d11998 1
a11998 1
  if test yes = "$GCC"; then
d12005 1
a12005 1
      if test ia64 = "$host_cpu"; then
a12008 1
      lt_prog_compiler_pic='-fPIC'
d12019 2
a12020 2
            # adding the '-m68020' flag to GCC prevents building anything better,
            # like '-m68040'.
a12035 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12096 1
a12096 3
      if test -n "$lt_prog_compiler_pic"; then
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
      fi
d12104 1
a12104 1
      if test ia64 = "$host_cpu"; then
a12111 14
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      case $cc_basename in
      nagfor*)
        # NAG Fortran compiler
        lt_prog_compiler_wl='-Wl,-Wl,,'
        lt_prog_compiler_pic='-PIC'
        lt_prog_compiler_static='-Bstatic'
        ;;
      esac
      ;;

a12115 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12131 1
a12131 1
      lt_prog_compiler_static='$wl-a ${wl}archive'
d12140 1
a12140 1
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d12142 1
a12142 1
      # old Intel for x86_64, which still supported -KPIC.
a12166 6
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
	;;
d12187 1
a12187 1
	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
a12192 5
	*Sun\ F* | *Sun*Fortran*)
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Qoption ld '
	  ;;
a12198 10
        *Intel*\ [CF]*Compiler*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fPIC'
	  lt_prog_compiler_static='-static'
	  ;;
	*Portland\ Group*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fpic'
	  lt_prog_compiler_static='-Bstatic'
	  ;;
d12249 1
a12249 1
      if test -d /usr/nec; then
d12278 1
a12278 1
  # For platforms that do not support PIC, -DPIC is meaningless:
d12310 1
a12310 1
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
d12340 1
a12340 1
if test yes = "$lt_cv_prog_compiler_pic_works"; then
d12372 1
a12372 1
   save_LDFLAGS=$LDFLAGS
d12391 1
a12391 1
   LDFLAGS=$save_LDFLAGS
d12397 1
a12397 1
if test yes = "$lt_cv_prog_compiler_static_works"; then
d12517 2
a12518 2
hard_links=nottested
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
d12530 3
a12532 3
  if test no = "$hard_links"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
d12560 1
d12576 3
a12578 3
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  # as well as any symbol that contains 'd'.
d12593 1
a12593 1
    if test yes != "$GCC"; then
d12601 1
a12601 1
  openbsd* | bitrig*)
d12611 1
a12611 1
  if test yes = "$with_gnu_ld"; then
d12633 1
a12633 1
  if test yes = "$lt_use_gnu_ld_interface"; then
d12635 1
a12635 1
    wlarc='$wl'
d12641 2
a12642 2
    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
    export_dynamic_flag_spec='$wl--export-dynamic'
d12645 1
a12645 1
      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
d12650 1
a12650 1
    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
d12663 1
a12663 1
      if test ia64 != "$host_cpu"; then
d12682 1
a12682 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12698 1
a12698 1
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12708 1
a12708 1
      export_dynamic_flag_spec='$wl--export-all-symbols'
d12716 10
a12725 10
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file, use it as
	# is; otherwise, prepend EXPORTS...
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
          cp $export_symbols $output_objdir/$soname.def;
        else
          echo EXPORTS > $output_objdir/$soname.def;
          cat $export_symbols >> $output_objdir/$soname.def;
        fi~
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d12732 1
a12732 1
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a12735 28
    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
      ;;

d12739 2
a12740 2
      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
      export_dynamic_flag_spec='$wl-E'
d12747 2
a12748 2
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d12753 1
a12753 1
      if test linux-dietlibc = "$host_os"; then
d12759 1
a12759 1
	 && test no = "$tmp_diet"
d12765 1
a12765 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12770 1
a12770 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
a12780 2
        nagfor*)                        # NAGFOR 5.3
          tmp_sharedflag='-Wl,-shared' ;;
d12785 1
a12785 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12791 1
a12791 1
	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12797 1
a12797 1
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12799 1
a12799 1
        if test yes = "$supports_anon_versioning"; then
d12801 3
a12803 3
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
            echo "local: *; };" >> $output_objdir/$libname.ver~
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a12806 3
	tcc*)
	  export_dynamic_flag_spec='-rdynamic'
	  ;;
d12810 2
a12811 1
	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d12813 1
a12813 1
	  if test yes = "$supports_anon_versioning"; then
d12815 3
a12817 3
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
              echo "local: *; };" >> $output_objdir/$libname.ver~
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
d12831 2
a12832 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12850 2
a12851 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12863 1
a12863 1
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
d12878 3
a12880 3
	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12897 2
a12898 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12905 1
a12905 1
    if test no = "$ld_shlibs"; then
d12921 1
a12921 1
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
d12929 1
a12929 1
      if test ia64 = "$host_cpu"; then
d12934 1
a12934 1
	no_entry_flag=
d12937 3
a12939 7
	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
	# Without the "-l" option, or with the "-B" option, AIX nm treats
	# weak defined symbols like other global defined symbols, whereas
	# GNU nm marks them as "W".
	# While the 'weak' keyword is ignored in the Export File, we need
	# it in the Import File for the 'aix-soname' feature, so we have
	# to replace the "-B" option with "-P" for AIX nm.
d12941 1
a12941 1
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
d12943 1
a12943 1
	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
d12949 1
a12949 13
	# have runtime linking enabled, and use it for executables.
	# For shared libraries, we enable/disable runtime linking
	# depending on the kind of the shared library created -
	# when "with_aix_soname,aix_use_runtimelinking" is:
	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
	# "aix,yes"  lib.so          shared, rtl:yes, for executables
	#            lib.a           static archive
	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
	#            lib.a(lib.so.V) shared, rtl:no,  for executables
	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a(lib.so.V) shared, rtl:no
	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a           static archive
d12952 1
a12952 1
	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a12956 7
	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
	    # so we don't have lib.a shared libs to link our executables.
	    # We have to force runtime linking in this case.
	    aix_use_runtimelinking=yes
	    LDFLAGS="$LDFLAGS -Wl,-brtl"
	  fi
d12975 1
a12975 9
      file_list_spec='$wl-f,'
      case $with_aix_soname,$aix_use_runtimelinking in
      aix,*) ;; # traditional, no import file
      svr4,* | *,yes) # use import file
	# The Import File defines what to hardcode.
	hardcode_direct=no
	hardcode_direct_absolute=no
	;;
      esac
d12977 1
a12977 1
      if test yes = "$GCC"; then
d12981 1
a12981 1
	  collect2name=`$CC -print-prog-name=collect2`
d13000 2
a13001 2
	if test yes = "$aix_use_runtimelinking"; then
	  shared_flag="$shared_flag "'$wl-G'
a13002 5
	# Need to ensure runtime linking is disabled for the traditional
	# shared library, or the linker may eventually find shared libraries
	# /with/ Import File - we do not want to mix them.
	shared_flag_aix='-shared'
	shared_flag_svr4='-shared $wl-G'
d13005 1
a13005 1
	if test ia64 = "$host_cpu"; then
d13010 2
a13011 2
	  if test yes = "$aix_use_runtimelinking"; then
	    shared_flag='$wl-G'
d13013 1
a13013 1
	    shared_flag='$wl-bM:SRE'
a13014 2
	  shared_flag_aix='$wl-bM:SRE'
	  shared_flag_svr4='$wl-G'
d13018 1
a13018 1
      export_dynamic_flag_spec='$wl-bexpall'
d13022 1
a13022 1
      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
d13028 1
a13028 1
        if test set = "${lt_cv_aix_libpath+set}"; then
d13063 1
a13063 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13071 2
a13072 2
        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
d13074 2
a13075 2
	if test ia64 = "$host_cpu"; then
	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
d13077 1
a13077 1
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
d13081 1
a13081 1
	 if test set = "${lt_cv_aix_libpath+set}"; then
d13116 1
a13116 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13124 1
a13124 1
	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
d13127 3
a13129 3
	  no_undefined_flag=' $wl-bernotok'
	  allow_undefined_flag=' $wl-berok'
	  if test yes = "$with_gnu_ld"; then
d13131 1
a13131 1
	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
d13137 2
a13138 14
	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
	  # -brtl affects multiple linker settings, -berok does not and is overridden later
	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
	  if test svr4 != "$with_aix_soname"; then
	    # This is similar to how AIX traditionally builds its shared libraries.
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
	  fi
	  if test aix != "$with_aix_soname"; then
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
	  else
	    # used by -dlpreopen to get the symbols
	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
	  fi
	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
d13147 1
a13147 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d13177 1
a13177 1
	shrext_cmds=.dll
d13179 8
a13186 9
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
            cp "$export_symbols" "$output_objdir/$soname.def";
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
          else
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
          fi~
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
          linknames='
a13189 1
	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
d13194 12
a13205 12
          lt_tool_outputfile="@@TOOL_OUTPUT@@"~
          case $lt_outputfile in
            *.exe|*.EXE) ;;
            *)
              lt_outputfile=$lt_outputfile.exe
              lt_tool_outputfile=$lt_tool_outputfile.exe
              ;;
          esac~
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
            $RM "$lt_outputfile.manifest";
          fi'
d13214 1
a13214 1
	shrext_cmds=.dll
d13233 2
a13234 3
  if test yes = "$lt_cv_ld_force_load"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'

d13239 1
a13239 1
  allow_undefined_flag=$_lt_dar_allow_undefined
d13241 1
a13241 1
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
d13244 1
a13244 1
  if test yes = "$_lt_dar_can_shared"; then
d13246 4
a13249 4
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
d13263 4
d13279 1
a13279 1
    freebsd2.*)
d13295 2
a13296 2
      if test yes = "$GCC"; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13298 1
a13298 1
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13300 1
a13300 1
      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13307 1
a13307 1
      export_dynamic_flag_spec='$wl-E'
d13311 2
a13312 2
      if test yes,no = "$GCC,$with_gnu_ld"; then
	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13316 3
a13318 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13322 1
a13322 1
	export_dynamic_flag_spec='$wl-E'
d13330 1
a13330 1
      if test yes,no = "$GCC,$with_gnu_ld"; then
d13333 1
a13333 1
	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13336 1
a13336 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13339 1
a13339 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13345 1
a13345 1
	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13348 1
a13348 1
	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13360 1
a13360 1
   save_LDFLAGS=$LDFLAGS
d13379 1
a13379 1
   LDFLAGS=$save_LDFLAGS
d13385 2
a13386 2
if test yes = "$lt_cv_prog_compiler__b"; then
    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13394 2
a13395 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13406 1
a13406 1
	  export_dynamic_flag_spec='$wl-E'
d13417 2
a13418 2
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13428 2
a13429 2
  save_LDFLAGS=$LDFLAGS
	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
d13441 1
a13441 1
           LDFLAGS=$save_LDFLAGS
d13445 2
a13446 2
	if test yes = "$lt_cv_irix_exported_symbol"; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
d13449 2
a13450 2
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
d13453 1
a13453 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a13458 10
    linux*)
      case $cc_basename in
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	ld_shlibs=yes
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	;;
      esac
      ;;

d13473 1
a13473 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13481 1
a13481 1
    openbsd* | bitrig*)
d13486 1
a13486 1
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
d13488 3
a13490 3
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
	  export_dynamic_flag_spec='$wl-E'
d13492 10
a13501 2
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
d13512 2
a13513 22
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
d13517 3
a13519 3
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13522 1
a13522 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13525 1
a13525 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13530 4
a13533 4
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13536 1
a13536 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13538 1
a13538 1
          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
d13549 3
a13551 3
      if test yes = "$GCC"; then
	wlarc='$wl'
	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13553 1
a13553 1
          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13558 1
a13558 1
	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
d13560 1
a13560 1
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
d13563 2
a13564 2
	  wlarc='$wl'
	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13566 1
a13566 1
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13576 1
a13576 1
	# but understands '-z linker_flag'.  GCC discards it without '$wl',
d13579 2
a13580 2
	if test yes = "$GCC"; then
	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
d13590 1
a13590 1
      if test sequent = "$host_vendor"; then
d13593 1
a13593 1
	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13642 1
a13642 1
      no_undefined_flag='$wl-z,text'
d13647 3
a13649 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13651 2
a13652 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13657 1
a13657 1
      # Note: We CANNOT use -z defs as we might desire, because we do not
d13663 2
a13664 2
      no_undefined_flag='$wl-z,text'
      allow_undefined_flag='$wl-z,nodefs'
d13667 1
a13667 1
      hardcode_libdir_flag_spec='$wl-R,$libdir'
d13670 1
a13670 1
      export_dynamic_flag_spec='$wl-Bexport'
d13673 3
a13675 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13677 2
a13678 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13693 1
a13693 1
    if test sni = "$host_vendor"; then
d13696 1
a13696 1
	export_dynamic_flag_spec='$wl-Blargedynsym'
d13704 1
a13704 1
test no = "$ld_shlibs" && can_build_shared=no
d13730 1
a13730 1
  if test yes,yes = "$GCC,$enable_shared"; then
d13942 5
d13950 1
a13950 1
if test yes = "$GCC"; then
d13952 2
a13953 2
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
    *) lt_awk_arg='/^libraries:/' ;;
d13956 2
a13957 2
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
    *) lt_sed_strip_eq='s|=/|/|g' ;;
d13973 1
a13973 1
  # and add multilib dir if necessary...
d13975 1
a13975 8
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  # ...but if some path component already ends with the multilib dir we assume
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  case "$lt_multi_os_dir; $lt_search_path_spec " in
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
    lt_multi_os_dir=
    ;;
  esac
d13977 3
a13979 3
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
    elif test -n "$lt_multi_os_dir"; then
d13985 3
a13987 3
BEGIN {RS = " "; FS = "/|\n";} {
  lt_foo = "";
  lt_count = 0;
d13994 1
a13994 1
          lt_foo = "/" $lt_i lt_foo;
d14008 1
a14008 1
      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
d14017 1
a14017 1
shrext_cmds=.so
a14033 2


d14036 2
a14037 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
d14041 1
a14041 1
  soname_spec='$libname$release$shared_ext$major'
d14045 1
a14045 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14049 1
a14049 1
  if test ia64 = "$host_cpu"; then
d14051 1
a14051 1
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
d14056 2
a14057 2
    # the line '#! .'.  This would cause the generated library to
    # depend on '.', always an invalid library.  This was fixed in
d14063 1
a14063 1
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
d14070 1
a14070 24
    # Using Import Files as archive members, it is possible to support
    # filename-based versioning of shared library archives on AIX. While
    # this would work for both with and without runtime linking, it will
    # prevent static linking of such archives. So we do filename-based
    # shared library versioning with .so extension only, which is used
    # when both runtime linking and shared linking is enabled.
    # Unfortunately, runtime linking may impact performance, so we do
    # not want this to be the default eventually. Also, we use the
    # versioned .so libs for executables only if there is the -brtl
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
    # To allow for filename-based versioning support, we need to create
    # libNAME.so.V as an archive file, containing:
    # *) an Import File, referring to the versioned filename of the
    #    archive as well as the shared archive member, telling the
    #    bitwidth (32 or 64) of that shared object, and providing the
    #    list of exported symbols of that shared object, eventually
    #    decorated with the 'weak' keyword
    # *) the shared object with the F_LOADONLY flag set, to really avoid
    #    it being seen by the linker.
    # At run time we better use the real file rather than another symlink,
    # but for link time we create the symlink libNAME.so -> libNAME.so.V

    case $with_aix_soname,$aix_use_runtimelinking in
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
d14073 1
a14073 2
    aix,yes) # traditional libtool
      dynamic_linker='AIX unversionable lib.so'
d14077 2
a14078 4
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      ;;
    aix,no) # traditional AIX only
      dynamic_linker='AIX lib.a(lib.so.V)'
d14081 3
a14083 27
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      ;;
    svr4,*) # full svr4 only
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,yes) # both, prefer svr4
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # unpreferred sharedlib libNAME.a needs extra handling
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,no) # both, prefer aix
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
      ;;
    esac
d14093 1
a14093 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14098 1
a14098 1
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d14104 1
a14104 1
  library_names_spec='$libname$shared_ext'
d14110 1
a14110 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14112 2
a14113 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14125 1
a14125 1
  shrext_cmds=.dll
d14134 2
a14135 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14151 1
a14151 1
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14157 1
a14157 1
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14161 1
a14161 1
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14170 2
a14171 2
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
    library_names_spec='$libname.dll.lib'
d14198 1
a14198 1
      sys_lib_search_path_spec=$LIB
d14211 2
a14212 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14225 1
a14225 1
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
d14238 2
a14239 2
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$major$shared_ext'
d14249 1
a14249 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14252 2
a14253 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14257 4
d14268 1
a14268 1
    freebsd[23].*) objformat=aout ;;
d14275 1
a14275 2
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      soname_spec='$libname$release$shared_ext$major'
d14280 1
a14280 1
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14286 1
a14286 1
  freebsd2.*)
d14305 10
d14316 1
a14316 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14320 2
a14321 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14323 1
a14323 1
  shlibpath_overrides_runpath=no
d14341 3
a14343 3
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
    if test 32 = "$HPUX_IA64_MODE"; then
a14344 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a14346 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
d14348 1
d14356 2
a14357 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14366 2
a14367 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14377 1
a14377 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14380 2
a14381 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14392 2
a14393 2
	if test yes = "$lt_cv_prog_gnu_ld"; then
		version_type=linux # correct to gnu/linux during the next big refactor
d14400 2
a14401 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
d14420 2
a14421 2
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
d14430 3
a14432 23
linux*android*)
  version_type=none # Android doesn't support versioned libraries.
  need_lib_prefix=no
  need_version=no
  library_names_spec='$libname$release$shared_ext'
  soname_spec='$libname$release$shared_ext'
  finish_cmds=
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  dynamic_linker='Android linker'
  # Don't embed -rpath directories since the linker doesn't support them.
  hardcode_libdir_flag_spec='-L$libdir'
  ;;

# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  version_type=linux # correct to gnu/linux during the next big refactor
d14435 2
a14436 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14480 1
a14480 6
  # Ideally, we could use ldconfig to report *all* directores which are
  # searched for libraries, however this is still not possible.  Aside from not
  # being certain /sbin/ldconfig is available, command
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  # even though it is searched at run-time.  Try to do the best guess by
  # appending ld.so.conf contents (and includes) to the search path.
d14500 1
a14500 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14504 2
a14505 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14514 2
a14515 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14524 2
a14525 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14532 1
a14532 1
openbsd* | bitrig*)
d14534 1
a14534 1
  sys_lib_dlsearch_path_spec=/usr/lib
d14536 17
a14552 2
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
    need_version=no
d14554 1
a14554 1
    need_version=yes
a14555 4
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
d14560 1
a14560 3
  version_type=windows
  shrext_cmds=.dll
  need_version=no
d14562 1
a14562 6
  # OS/2 can only load a DLL with a base name of 8 characters or less.
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
    v=$($ECHO $release$versuffix | tr -d .-);
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
    $ECHO $n$v`$shared_ext'
  library_names_spec='${libname}_dll.$libext'
d14564 1
a14564 15
  shlibpath_var=BEGINLIBPATH
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  postinstall_cmds='base_file=`basename \$file`~
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
    dldir=$destdir/`dirname \$dlpath`~
    test -d \$dldir || mkdir -p \$dldir~
    $install_prog $dir/$dlname \$dldir/$dlname~
    chmod a+x \$dldir/$dlname~
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
    fi'
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
    dlpath=$dir/\$dldll~
    $RM \$dlpath'
d14571 2
a14572 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14575 1
a14575 1
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d14583 1
a14583 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14586 2
a14587 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14597 1
a14597 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14601 1
a14601 1
  if test yes = "$with_gnu_ld"; then
d14608 3
a14610 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14631 4
a14634 4
  if test -d /usr/nec; then
    version_type=linux # correct to gnu/linux during the next big refactor
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
    soname_spec='$libname$shared_ext.$major'
d14640 1
a14640 1
  version_type=sco
d14643 2
a14644 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14648 1
a14648 1
  if test yes = "$with_gnu_ld"; then
d14663 1
a14663 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14666 1
a14666 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14673 3
a14675 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14685 1
a14685 1
test no = "$dynamic_linker" && can_build_shared=no
d14688 1
a14688 1
if test yes = "$GCC"; then
d14692 2
a14693 2
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
d14695 2
a14696 3

if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a14698 14
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec

# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"

# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH






d14795 1
a14795 1
   test yes = "$hardcode_automatic"; then
d14798 1
a14798 1
  if test no != "$hardcode_direct" &&
d14802 2
a14803 2
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
     test no != "$hardcode_minus_L"; then
d14818 2
a14819 2
if test relink = "$hardcode_action" ||
   test yes = "$inherit_rpath"; then
d14822 2
a14823 2
elif test yes = "$shlibpath_overrides_runpath" ||
     test no = "$enable_shared"; then
d14833 1
a14833 1
  if test yes != "$enable_dlopen"; then
d14843 1
a14843 1
    lt_cv_dlopen=load_add_on
d14849 1
a14849 1
    lt_cv_dlopen=LoadLibrary
d14854 1
a14854 1
    lt_cv_dlopen=dlopen
d14859 1
a14859 1
    # if libdl is installed we need to link against it
d14897 1
a14897 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d14900 1
a14900 1
    lt_cv_dlopen=dyld
a14907 8
  tpf*)
    # Don't try to run any link tests for TPF.  We know it's impossible
    # because TPF is a cross-compiler, and we know how we open DSOs.
    lt_cv_dlopen=dlopen
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=no
    ;;

d14911 1
a14911 1
  lt_cv_dlopen=shl_load
d14950 1
a14950 1
  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
d14954 1
a14954 1
  lt_cv_dlopen=dlopen
d14993 1
a14993 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d15032 1
a15032 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
d15071 1
a15071 1
  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
d15092 3
a15094 1
  if test no = "$lt_cv_dlopen"; then
a15095 2
  else
    enable_dlopen=yes
d15100 2
a15101 2
    save_CPPFLAGS=$CPPFLAGS
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d15103 1
a15103 1
    save_LDFLAGS=$LDFLAGS
d15106 1
a15106 1
    save_LIBS=$LIBS
d15110 3289
a18398 12
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"
d18400 10
a18409 3
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d18411 3
a18413 1
#include <stdio.h>
d18415 12
a18426 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
d18428 11
a18438 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
d18440 22
a18461 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
d18463 8
a18470 5
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
d18472 11
a18482 10
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
d18484 5
a18488 16
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
a18489 3
  else :
    # compilation failed
    lt_cv_dlopen_self=no
d18491 20
a18510 2
fi
rm -fr conftest*
d18512 7
d18520 3
a18523 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }
d18525 6
a18530 19
    if test yes = "$lt_cv_dlopen_self"; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
a18531 1
#include <stdio.h>
a18532 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
a18533 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
a18534 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
a18535 5
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
a18536 12
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());
a18537 21
  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*
a18539 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi
a18540 5
    CPPFLAGS=$save_CPPFLAGS
    LDFLAGS=$save_LDFLAGS
    LIBS=$save_LIBS
    ;;
  esac
a18541 4
  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac
a18542 5
  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi
a18559 29
striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP"; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi
d18569 6
d18576 20
d18597 9
a18606 5
  # Report what library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }
a18607 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test no = "$can_build_shared" && enable_shared=no
a18608 10
  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test yes = "$enable_shared" && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;
a18609 12
  aix[4-9]*)
    if test ia64 != "$host_cpu"; then
      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
      yes,aix,yes) ;;			# shared object as lib.so file only
      yes,svr4,*) ;;			# shared object as lib.so archive member only
      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
      esac
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }
a18610 6
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test yes = "$enable_shared" || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }
d18613 1
d18615 11
a18626 1
fi
a18632 4
CC=$lt_save_CC



d20866 1
a20866 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d20872 1
a20872 1
if test yes = "$GCC"; then
d20878 1
a20878 1
    # gcc leaves a trailing carriage return, which upsets mingw
d20892 1
a20892 1
      test -z "$LD" && LD=$ac_prog
d20903 1
a20903 1
elif test yes = "$with_gnu_ld"; then
d20914 1
a20914 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d20916 1
a20916 1
    IFS=$lt_save_ifs
d20919 1
a20919 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d20925 1
a20925 1
	test no != "$with_gnu_ld" && break
d20928 1
a20928 1
	test yes != "$with_gnu_ld" && break
d20933 1
a20933 1
  IFS=$lt_save_ifs
d20935 1
a20935 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d20939 1
a20939 1
LD=$lt_cv_path_LD
d28062 4
a28088 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }
d29229 2
a29279 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
a34166 1

a34168 1

a34173 2


d34184 1
a34184 1
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
a34558 1

a37253 1

a37311 2
ac_config_files="$ac_config_files scripts/build/genAuthors"

d37529 4
d37534 4
d38003 1
a38003 1
This file was extended by ntp $as_me 4.2.8p10, which was
d38070 1
a38070 1
ntp config.status 4.2.8p10
a38204 1
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
a38206 1
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
a38252 1
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
a38254 1
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
a38256 1
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
d38289 1
d38322 1
a38322 2
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
d38329 55
a38399 1
PATH_SEPARATOR \
a38426 1
lt_cv_sys_global_symbol_to_import \
a38428 1
lt_cv_nm_interface \
a38429 1
lt_cv_truncate_bin \
d38450 1
d38462 33
a38494 1
striplib; do
d38497 1
a38497 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38524 12
a38535 2
configure_time_dlsearch_path \
configure_time_lt_sys_library_path; do
d38538 1
a38538 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38547 2
d38550 1
a38550 1
# See if we are running on zsh, and set the options that allow our
d38552 1
a38552 1
if test -n "\${ZSH_VERSION+set}"; then
d38559 1
d38566 2
a38597 1
    "scripts/build/genAuthors") CONFIG_FILES="$CONFIG_FILES scripts/build/genAuthors" ;;
d39350 1
a39350 1
    # See if we are running on zsh, and set the options that allow our
d39352 1
a39352 1
    if test -n "${ZSH_VERSION+set}"; then
d39356 1
a39356 1
    cfgfile=${ofile}T
d39362 3
a39364 1
# Generated automatically by $as_me ($PACKAGE) $VERSION
a39366 12

# Provide generalized library-building support services.
# Written by Gordon Matzigkeit, 1996

# Copyright (C) 2014 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions.  There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# GNU Libtool is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of of the License, or
# (at your option) any later version.
d39368 16
a39383 4
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program or library that is built
# using GNU Libtool, you may include this file under the  same
# distribution terms that you use for the rest of that program.
d39385 2
a39386 2
# GNU Libtool is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
d39391 4
a39394 1
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
d39398 1
a39398 4
available_tags=''

# Configured defaults for sys_lib_dlsearch_path munging.
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
a39417 3
# Shared archive member basename,for filename based shared library versioning on AIX.
shared_archive_member_spec=$shared_archive_member_spec

a39423 3
# The PATH separator for the build system.
PATH_SEPARATOR=$lt_PATH_SEPARATOR

a39531 3
# Transform the output of nm into a list of symbols to manually relocate.
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import

a39537 3
# The name lister interface.
nm_interface=$lt_lt_cv_nm_interface

d39541 1
a39541 1
# The root where to search for dependent libraries,and where our libraries should be installed.
a39543 3
# Command to truncate a binary pipe.
lt_truncate_bin=$lt_lt_cv_truncate_bin

d39634 2
a39635 5
# Detected run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path

# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
d39725 4
d39732 1
a39732 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39736 1
a39736 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39738 1
a39738 1
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
d39786 2
a39787 1
# ### END LIBTOOL CONFIG
d39789 10
a39798 40
_LT_EOF

    cat <<'_LT_EOF' >> "$cfgfile"

# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE

# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}
d39800 1
a39800 17

# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}


# ### END FUNCTIONS SHARED WITH CONFIGURE
d39810 1
a39810 1
if test set != "${COLLECT_NAMES+set}"; then
d39819 1
a39819 1
ltmain=$ac_aux_dir/ltmain.sh
d39829 159
d39992 157
a40151 1
    "scripts/build/genAuthors":F) chmod +x scripts/build/genAuthors ;;
@


1.1.1.2.8.1
log
@Apply patch (requested by christos in ticket #1221):
Update ntp to 4.2.8.
@
text
@d3 1
a3 3
# Generated by GNU Autoconf 2.68 for ntp4 4.2.8.
#
# Report bugs to <http://bugs.ntp.org./>.
d247 4
a250 5
    $as_echo "$0: Please tell bug-autoconf@@gnu.org and
$0: http://bugs.ntp.org./ about your system, including any
$0: error possibly output before this message. Then install
$0: a modern shell, or manually run the script under such a
$0: shell if you do have one."
d568 6
a573 6
PACKAGE_NAME='ntp4'
PACKAGE_TARNAME='ntp4'
PACKAGE_VERSION='4.2.8'
PACKAGE_STRING='ntp4 4.2.8'
PACKAGE_BUGREPORT='http://bugs.ntp.org./'
PACKAGE_URL='http://www.ntp.org./'
a610 1
ac_header_list=
d615 1
a616 9
PERLLIBDIR
NTP_KEYSDIR
GTEST_AVAILABLE_FALSE
GTEST_AVAILABLE_TRUE
GTEST_CPPFLAGS
GTEST_CXXFLAGS
GTEST_LIBS
GTEST_LDFLAGS
GTEST_CONFIG
a623 3
BUILD_SNTP_FALSE
BUILD_SNTP_TRUE
SNTP
d630 1
d637 6
a642 2
VER_SUFFIX
PKG_CONFIG
d647 2
a648 3
HAVE_RLIMIT_STACK
HAVE_RLIMIT_MEMLOCK
LDADD_NLIST
a649 1
CONFIG_SHELL
d651 1
a652 25
LIBOBJS
PTHREADS_FALSE
PTHREADS_TRUE
LIBISC_PTHREADS_NOTHREADS
PTHREAD_LIBS
HAVE_INLINE
ALLOCA
LIBM
EDITLINE_LIBS
LDADD_LIBNTP
NTP_CROSSCOMPILE_FALSE
NTP_CROSSCOMPILE_TRUE
LIBOPTS_DIR
LIBOPTS_CFLAGS
LIBOPTS_LDADD
NEED_LIBOPTS_FALSE
NEED_LIBOPTS_TRUE
INSTALL_LIBOPTS_FALSE
INSTALL_LIBOPTS_TRUE
POSIX_SHELL
GL_GENERATE_STDNORETURN_H_FALSE
GL_GENERATE_STDNORETURN_H_TRUE
STDNORETURN_H
LIBTOOL_DEPS
CXXCPP
d670 14
a684 81
LIBTOOL
TIMETRIM_NI
TIMETRIM_MS
TIMETRIM_DS
TIMETRIM_DL
TIMETRIM_DB
TICKADJ_NI
TICKADJ_MS
TICKADJ_DS
TICKADJ_DL
TICKADJ_DB
SNTP_NI
SNTP_MS
SNTP_DS
SNTP_DL
SNTP_DB
NTP_WAIT_NI
NTP_WAIT_MS
NTP_WAIT_DS
NTP_WAIT_DL
NTP_WAIT_DB
NTP_KEYGEN_NI
NTP_KEYGEN_MS
NTP_KEYGEN_DS
NTP_KEYGEN_DL
NTP_KEYGEN_DB
NTPTRACE_NI
NTPTRACE_MS
NTPTRACE_DS
NTPTRACE_DL
NTPTRACE_DB
NTPTIME_NI
NTPTIME_MS
NTPTIME_DS
NTPTIME_DL
NTPTIME_DB
INSTALL_NTPSWEEP_FALSE
INSTALL_NTPSWEEP_TRUE
NTPSWEEP_NI
NTPSWEEP_MS
NTPSWEEP_DS
NTPSWEEP_DL
NTPSWEEP_DB
NTPSNMPD_NI
NTPSNMPD_MS
NTPSNMPD_DS
NTPSNMPD_DL
NTPSNMPD_DB
NTPQ_NI
NTPQ_MS
NTPQ_DS
NTPQ_DL
NTPQ_DB
NTPD_NI
NTPD_MS
NTPD_DS
NTPD_DL
NTPD_DB
NTPDSIM_NI
NTPDSIM_MS
NTPDSIM_DS
NTPDSIM_DL
NTPDSIM_DB
NTPDC_NI
NTPDC_MS
NTPDC_DS
NTPDC_DL
NTPDC_DB
NTPDATE_NI
NTPDATE_MS
NTPDATE_DS
NTPDATE_DL
NTPDATE_DB
MANTAGFMT
CALC_TICKADJ_NI
CALC_TICKADJ_MS
CALC_TICKADJ_DS
CALC_TICKADJ_DL
CALC_TICKADJ_DB
WANT_CALC_TICKADJ_MS_FALSE
WANT_CALC_TICKADJ_MS_TRUE
a688 10
am__fastdepCXX_FALSE
am__fastdepCXX_TRUE
CXXDEPMODE
ac_ct_CXX
CXXFLAGS
CXX
LDFLAGS_NTP
LDADD_NTP
CPPFLAGS_NTP
CFLAGS_NTP
a715 2
AM_BACKSLASH
AM_DEFAULT_VERBOSITY
d777 1
a777 6
ac_subst_files='calc_tickadj_opts
ntp_wait_opts
ntpsweep_opts
ntptrace_opts
summary_opts
plot_summary_opts'
a779 1
enable_silent_rules
a780 1
with_locfile
d782 6
d794 1
a794 5
enable_nls
enable_local_libopts
enable_libopts_install
with_autoopts_config
enable_local_libevent
d796 1
a797 12
enable_thread_support
with_threads
with_yielding_select
enable_c99_snprintf
enable_clockctl
enable_linuxcaps
enable_solarisprivs
with_arlib
with_net_snmp_config
enable_libseccomp
with_stack_limit
with_memlock
d801 1
a827 1
enable_GPSD
a838 1
enable_TSYNCPCI
a852 2
enable_SEL240X
with_crypto
d855 2
a856 3
with_rpath
enable_openssl_random
enable_autokey
a861 1
with_sntp
d872 2
a875 1
enable_getifaddrs
a876 1
with_gtest
a886 3
CXX
CXXFLAGS
CCC
d888 1
a888 2
YFLAGS
CXXCPP'
d1431 1
a1431 1
\`configure' configures ntp4 4.2.8 to adapt to many kinds of systems.
d1479 1
a1479 1
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp4]
d1501 1
a1501 1
     short | recursive ) echo "Configuration of ntp4 4.2.8:";;
d1505 1
a1505 1
Optional Features and Packages:
a1508 4
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --enable-silent-rules          less verbose build output (undo: `make V=1')
  --disable-silent-rules         verbose build output (undo: `make V=0')
a1510 1
  --with-locfile=XXX      os-specific or "legacy"
d1512 3
a1515 2
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
a1517 3
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
d1519 3
a1521 8
  --disable-nls           disable nls support in libopts
  --enable-local-libopts  Use the supplied libopts tearoff code
  --enable-libopts-install
                          Install libopts with client installation
  --with-autoopts-config  specify the config-info script
  --enable-local-libevent Force using the supplied libevent tearoff code
  --with-lineeditlibs     edit,editline (readline may be specified if desired)
  defaults:               + yes, - no, s system-specific
a1522 13
  --enable-thread-support s use threads (+ if available)
  --with-threads	  with threads [auto]
  --with-yielding-select  with yielding select [auto]
  --enable-c99-snprintf   s force replacement
  --enable-clockctl       s Use /dev/clockctl for non-root clock control
  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
  --with-arlib            - deprecated, arlib not distributed
  --with-net-snmp-config  + =net-snmp-config
  --enable-libseccomp     EXPERIMENTAL: enable support for libseccomp
                          sandboxing (default is no)
  --with-stack-limit      ? =50 (200 for openbsd) 4k pages
  --with-memlock          ? =32 (megabytes)
d1525 1
a1525 1
  --enable-dst-minutes    =60 minutes per DST adjustment
d1528 2
a1555 1
  --enable-GPSD           + GPSD JSON receiver
a1566 1
  --enable-TSYNCPCI       s Spectracom TSYNC timing board
a1580 12
  --enable-SEL240X        s SEL240X clock
  --with-crypto           + =openssl,libcrypto

  --with-openssl-libdir   + =/something/reasonable

  --with-openssl-incdir   + =/something/reasonable

  --without-rpath         s Disable auto-added -R linker paths

  --enable-openssl-random Use OpenSSL's crypto random number functions, if
                          available (default is yes)
  --enable-autokey        + support NTP Autokey protocol
a1586 2
  --without-sntp          - disable building sntp and sntp/tests
  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
d1598 2
d1602 21
a1623 3
  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
  --enable-saveconfig     + saveconfig mechanism
  --with-gtest            Use the gtest framework (Default: if it's available)
a1633 2
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
a1639 1
  CXXCPP      C++ preprocessor
d1644 1
a1644 2
Report bugs to <http://bugs.ntp.org./>.
ntp4 home page: <http://www.ntp.org./>.
d1707 1
a1707 1
ntp4 configure 4.2.8
a1865 4
( $as_echo "## ------------------------------------ ##
## Report this to http://bugs.ntp.org./ ##
## ------------------------------------ ##"
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d2002 5
a2006 42
# ac_fn_cxx_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_compile

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
d2014 14
d2030 1
a2030 31
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

d2034 2
a2035 1
return $2 ();
d2040 3
a2042 1
if ac_fn_c_try_link "$LINENO"; then :
a2043 2
else
  eval "$3=no"
d2045 3
a2047 2
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d2054 1
a2054 1
} # ac_fn_c_check_func
d2056 6
a2061 4
# ac_fn_cxx_try_cpp LINENO
# ------------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_cpp ()
d2064 10
a2073 23
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d2075 15
a2089 4
    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval
d2091 3
a2093 140
} # ac_fn_cxx_try_cpp

# ac_fn_cxx_try_link LINENO
# -------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_link

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_type

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
d2234 4
a2237 5
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
# ---------------------------------------------
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
# accordingly.
ac_fn_c_check_decl ()
d2240 2
a2241 4
  as_decl_name=`echo $2|sed 's/ *(.*//'`
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d2247 20
a2266 5
$4
int
main ()
{
#ifndef $as_decl_name
d2268 1
a2268 3
  (void) $as_decl_use;
#else
  (void) $as_decl_name;
d2270 6
d2278 4
d2286 1
a2286 1
if ac_fn_c_try_compile "$LINENO"; then :
d2291 2
a2292 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d2299 1
a2299 1
} # ac_fn_c_check_decl
d2361 1
a2361 1
It was created by ntp4 $as_me 4.2.8, which was
a2640 1
as_fn_append ac_header_list " stdarg.h"
d2711 1
a2711 1
for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
d2727 1
a2727 1
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
d2740 3
a2742 7




# Bump ntp_configure_cache_version for each change to configure.ac or
# .m4 files which invalidates cached values from previous configure
# runs.
d2752 2
a2753 2
# please bump the version numbers of each.  If you are not sure, the
# safe choice is to bump all on any cache-invalidating change.
d2760 1
a2760 1
ntp_configure_cache_version=20120806
a2797 1
		;;
a2802 1
	;;
d2839 1
a2839 1
	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
d3300 2
a3301 2
 PACKAGE='ntp4'
 VERSION='4.2.8'
a3340 14

# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in
yes) AM_DEFAULT_VERBOSITY=0;;
no)  AM_DEFAULT_VERBOSITY=1;;
*)   AM_DEFAULT_VERBOSITY=0;;
esac
AM_BACKSLASH='\'


a4803 2


a4823 8
        case "$host_os" in
    hpux*)

$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h

      ;;
  esac

d4833 2
a4834 2
#         define __EXTENSIONS__ 1
          $ac_includes_default
d4864 24
a4887 3
if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
d4889 1
a4889 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
a4890 7
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a4891 3
int
main ()
{
d4893 13
a4905 193
  ;
  return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
else
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi






ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d5570 6
a5575 12
# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
if test "$am_t" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
d5577 3
a5579 6


if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
a5581 1
    ac_pattern="Autoconf.*'x'"
a5583 10
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
else
  ac_cv_prog_gcc_traditional=no
fi
rm -f conftest*
d5585 3
d5589 3
a5591 5
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
d5593 73
a5665 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5667 1
a5667 1
rm -f conftest*
a5668 7
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d5670 6
d5677 1
d5679 1
d5681 13
a5694 4
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d5696 13
a5708 16




case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d5711 12
d5725 8
a5733 10
int
main ()
{
#warning foo
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cpp_warning=yes
d5735 2
a5736 2
  ntp_cv_cpp_warning=no

d5738 1
a5738 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5740 2
a5741 15
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
  $as_echo_n "(cached) " >&6
else
d5744 1
a5744 9

int
main ()
{
void foo(void) __attribute__((__noreturn__));

  ;
  return 0;
}
d5746 3
a5748 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cc_attribute=yes
d5750 3
a5752 2
  ntp_cv_cc_attribute=no

d5754 1
a5754 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5756 5
a5761 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)
d5763 2
a5764 1
$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
d5766 2
a5767 11
esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
d5769 13
d5784 8
d5793 5
a5797 3
int
main ()
{
d5799 5
a5803 3
  ;
  return 0;
}
d5805 3
a5807 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Wstrict_overflow=yes
d5809 3
a5811 2
  ntp_cv_gcc_Wstrict_overflow=no

d5813 1
a5813 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5815 10
d5826 14
a5839 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
d5842 34
d5877 18
a5894 1
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5896 93
d5994 35
d6033 5
a6037 5
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

d6039 5
a6043 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d6046 19
a6064 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
d6067 26
d6094 8
a6101 4
	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6103 4
a6106 2
			#include <stdlib.h>
			#include <stdio.h>
d6108 6
d6117 1
a6117 23

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


d6122 12
a6133 8
if ac_fn_c_try_link "$LINENO"; then :

		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d6135 16
d6152 2
a6153 1
  ntp_cv_gc_sections_runs=no
d6156 20
a6175 4
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    CFLAGS="$origCFLAGS"
	    { origCFLAGS=; unset origCFLAGS;}
d6177 7
d6185 9
a6193 10
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
$as_echo "$ntp_cv_gc_sections_runs" >&6; }
    case "$ntp_cv_gc_sections_runs" in
     yes)
	LDADD_LIBNTP="-Wl,--gc-sections"
	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
	;;
     no)
	LDADD_LIBNTP=
d6196 14
a6209 21
    CFLAGS_NTP="$CFLAGS_NTP -Wall"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
    case "$ntp_cv_gcc_Winit_self" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
    esac
    case "$ntp_cv_gcc_Wstrict_overflow" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
    esac
    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
d6220 1
a6220 1
	ntp_os_cflags=
a6233 2
	    # XXX Only verified thru AIX6.
	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
d6235 1
a6235 4
	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
d6304 1
a6305 1
    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
d6311 3
a6313 4

 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :
a6315 8
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;
d6317 19
a6336 1
if ac_fn_c_try_compile "$LINENO"; then :
d6338 25
a6362 21
	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
a6363 7
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>
a6364 8
int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif
d6366 21
a6386 3
  ;
  return 0;
}
d6388 14
a6401 3
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6404 1
a6404 1
		#include <sys/param.h>
d6409 2
a6410 4
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

d6416 1
a6416 1
  ac_cv_c_bigendian=yes
d6418 1
a6418 1
  ac_cv_c_bigendian=no
d6422 21
a6442 5
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6443 1
#include <limits.h>
d6445 7
d6455 1
a6455 4
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

d6460 40
a6499 3
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6500 1
#include <limits.h>
d6502 7
d6512 1
a6512 4
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

d6517 18
a6534 2
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
d6536 1
a6536 1
  ac_cv_c_bigendian=no
d6538 9
a6546 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6547 23
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;
a6548 20
int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
a6549 8
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
a6550 8
	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;
d6552 15
a6566 3
  ;
  return 0;
}
a6567 8
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a6568 1
    fi
a6569 9
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)
d6571 1
a6571 1
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
a6572 5
     ;; #(
   *)
     as_fn_error $? "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac
d6574 9
a6582 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
$as_echo_n "checking for working volatile... " >&6; }
if ${ac_cv_c_volatile+:} false; then :
  $as_echo_n "(cached) " >&6
d6584 4
a6587 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a6588 3
int
main ()
{
d6590 7
a6596 6
volatile int x;
int * volatile y = (int *) 0;
return !x && !y;
  ;
  return 0;
}
d6598 1
a6598 2
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_volatile=yes
d6600 1
a6600 3
  ac_cv_c_volatile=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6601 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
$as_echo "$ac_cv_c_volatile" >&6; }
if test $ac_cv_c_volatile = no; then
d6603 1
a6603 1
$as_echo "#define volatile /**/" >>confdefs.h
a6604 1
fi
d6606 7
a6612 35
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
d6614 1
a6614 2
if ac_fn_c_try_cpp "$LINENO"; then :

d6616 1
a6616 2
  # Broken: fails on valid input.
continue
a6617 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6619 10
a6628 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
d6630 1
a6630 3
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
d6632 1
a6632 3
  # Passes both tests.
ac_preproc_ok=:
break
a6633 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6636 21
a6656 4
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
d6659 1
a6659 2
    done
    ac_cv_prog_CPP=$CPP
d6661 32
a6692 24
fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6693 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6695 1
a6695 3
else
  # Broken: fails on valid input.
continue
a6696 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6698 14
a6711 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
a6712 9
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext
a6713 4
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
a6714 5
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
d6717 2
a6718 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6720 3
a6724 10
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
d6726 5
a6730 24
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6731 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6733 1
a6733 3
else
  # Broken: fails on valid input.
continue
d6735 2
a6736 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6738 2
a6739 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
d6741 2
a6742 7
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
d6744 7
a6750 1
rm -f conftest.err conftest.i conftest.$ac_ext
a6751 5
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
d6753 6
a6759 2
    done
    ac_cv_prog_CPP=$CPP
d6762 8
a6769 3
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
d6771 5
a6775 19
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6776 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6778 1
a6778 3
else
  # Broken: fails on valid input.
continue
d6780 2
a6781 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6783 29
a6811 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
a6812 9
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext
a6813 4
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
a6814 5
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
a6816 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6818 10
a6827 17
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CXX+:} false; then :
d6830 2
a6831 2
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
d6833 9
a6841 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d6844 30
d6875 1
a6875 7
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d6877 8
d6887 7
a6893 12
    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
d6896 2
a6897 2
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
d6899 9
a6907 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d6910 2
a6911 9
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a6913 2
  test -n "$ac_ct_CXX" && break
done
d6915 3
a6917 12
  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi
a6918 26
  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done
d6920 7
a6926 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if ${ac_cv_cxx_compiler_gnu+:} false; then :
d6929 1
a6929 9
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif
a6930 6
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
d6932 8
a6939 1
  ac_compiler_gnu=no
a6940 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d6943 17
a6959 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if ${ac_cv_prog_cxx_g+:} false; then :
d6962 3
a6964 5
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6967 7
d6977 1
a6977 1

d6982 2
a6983 2
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
d6985 11
a6995 11
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
a6996 1
if ac_fn_cxx_try_compile "$LINENO"; then :
d6998 1
a6998 5
else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d7000 1
a7000 3
int
main ()
{
d7002 6
a7007 3
  ;
  return 0;
}
a7008 32
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7010 2
a7011 1
depcc="$CXX"  am_compiler_list=
d7013 1
a7013 23
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub
d7015 1
a7015 8
  am_cv_CXX_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac
d7017 2
a7018 69
  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CXX_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done
a7019 5
  cd ..
  rm -rf conftest.dir
else
  am_cv_CXX_dependencies_compiler_type=none
fi
d7021 7
a7027 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a7028 8
 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  am__fastdepCXX_TRUE=
  am__fastdepCXX_FALSE='#'
else
  am__fastdepCXX_TRUE='#'
  am__fastdepCXX_FALSE=
d7031 1
d7033 8
a7040 26
for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_YACC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a7042 12
fi
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$YACC" && break
a7043 1
test -n "$YACC" || YACC="yacc"
d7045 5
a7049 3
if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
d7051 2
a7052 7
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
fi
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
d7056 1
a7056 1

d7061 3
d7068 13
a7080 71
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
d7082 1
a7082 1
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
d7084 12
a7095 2
rm -f core conftest*

d7097 6
a7102 3
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
d7104 2
a7105 29
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
ntp_vpath_hack="no"
case "$srcdir::${force_ntp_vpath_hack-no}" in
 .::*)
    ;; # VPATH_HACK path is for VPATH builds only.
 *::yes)
    ntp_vpath_hack="yes"
    ;;
 *::*)
    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	ntp_vpath_hack="yes"
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
$as_echo "$ntp_vpath_hack" >&6; }
 if test x$ntp_vpath_hack = xyes; then
  VPATH_HACK_TRUE=
  VPATH_HACK_FALSE='#'
d7107 35
a7141 3
  VPATH_HACK_TRUE='#'
  VPATH_HACK_FALSE=
fi
d7143 5
d7149 1
d7151 1
d7153 18
a7170 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
$as_echo_n "checking for install dir and man conventions... " >&6; }
d7172 8
d7181 5
a7185 5
# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
else
  with_locfile=no
d7187 2
a7188 1
fi
d7190 2
d7193 8
a7200 30
(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genLocInfo -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genLocInfo.i 2> genLocInfo.err
. ./genLocInfo.i

case "$GENLOCINFO" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
$as_echo "in file $GENLOCINFOFILE" >&6; }
    rm genLocInfo.err genLocInfo.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
    ;;
esac

 if test "$CALC_TICKADJ_MS" ; then
  WANT_CALC_TICKADJ_MS_TRUE=
  WANT_CALC_TICKADJ_MS_FALSE='#'
d7202 4
a7205 2
  WANT_CALC_TICKADJ_MS_TRUE='#'
  WANT_CALC_TICKADJ_MS_FALSE=
d7208 3
d7212 6
d7219 1
d7221 1
d7223 1
d7225 1
d7227 2
d7230 1
d7232 1
d7234 9
d7244 2
d7247 11
a7257 216































 if test -z "$NTPSWEEP_NI" ; then
  INSTALL_NTPSWEEP_TRUE=
  INSTALL_NTPSWEEP_FALSE='#'
else
  INSTALL_NTPSWEEP_TRUE='#'
  INSTALL_NTPSWEEP_FALSE=
fi








































# So far, the only shared library we might use is libopts.
# It's a small library - we might as well use a static version of it.
# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then :
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_shared=no
fi









case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac



macro_version='2.4'
macro_revision='1.3293'













ltmain="$ac_aux_dir/ltmain.sh"

# Backslashify metacharacters that are still active within
# double-quoted strings.
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\(["`\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
$as_echo_n "checking how to print strings... " >&6; }
# Test print first, because it will be a builtin if present.
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='print -r --'
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='printf %s\n'
else
  # Use this function as a fallback that always works.
  func_fallback_echo ()
  {
    eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
  }
  ECHO='func_fallback_echo'
fi

# func_echo_all arg...
# Invoke $ECHO with all args, space-separated.
func_echo_all ()
{
    $ECHO ""
}

case "$ECHO" in
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
$as_echo "printf" >&6; } ;;
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
$as_echo "print -r" >&6; } ;;
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
$as_echo "cat" >&6; } ;;
esac














{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
d7316 19
a7334 2
test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"
d7340 1
d7343 1
d7345 11
d7358 4
d7363 3
a7365 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if ${ac_cv_path_FGREP+:} false; then :
  $as_echo_n "(cached) " >&6
d7367 8
a7374 42
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  ac_path_FGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in fgrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
# Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
d7376 8
a7383 8
      $ac_path_FGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_FGREP"; then
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
d7385 5
a7389 1
  ac_cv_path_FGREP=$FGREP
d7391 2
a7393 1
   fi
d7395 1
a7395 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"
d7397 3
d7401 13
a7413 1
test -z "$GREP" && GREP=grep
d7415 4
d7420 20
d7443 1
d7446 1
d7448 1
d7451 7
d7459 1
d7461 1
d7463 8
d7472 2
d7475 15
d7491 2
d7494 12
d7507 3
a7510 3
# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d7512 1
a7512 1
  with_gnu_ld=no
d7514 1
a7514 6

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
d7516 6
a7521 16
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
a7522 8
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
d7524 2
a7525 6
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
d7527 5
a7531 1
if ${lt_cv_path_LD+:} false; then :
d7534 2
a7535 21
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
d7537 35
a7571 3
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi
d7573 5
a7577 27
LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld
d7579 1
d7581 1
d7583 18
d7602 8
d7611 5
d7617 2
d7620 2
d7623 8
a7630 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if ${lt_cv_path_NM+:} false; then :
  $as_echo_n "(cached) " >&6
d7632 1
a7632 42
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
d7634 2
a7636 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$DUMPBIN"; then :
    # Let the user override the test.
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in dumpbin "link -dump"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DUMPBIN+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d7639 8
d7648 5
a7652 4
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
d7654 3
a7656 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d7658 1
d7660 1
a7661 2
    test -n "$DUMPBIN" && break
  done
d7663 5
a7667 9
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in dumpbin "link -dump"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
d7670 213
a7882 2
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d7891 1
a7891 1
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
d7901 4
a7904 4
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
d7911 1
a7911 1
  test -n "$ac_ct_DUMPBIN" && break
d7914 18
a7931 8
  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
d7933 10
a7942 2
    DUMPBIN=$ac_ct_DUMPBIN
  fi
d7945 24
a7968 7
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
    *COFF*)
      DUMPBIN="$DUMPBIN -symbols"
      ;;
    *)
      DUMPBIN=:
      ;;
d7970 2
a7971 1
  fi
d7973 1
a7973 5
  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
fi
test -z "$NM" && NM=nm
d7975 14
d7990 11
d8005 5
a8009 22
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if ${lt_cv_nm_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }
a8010 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi
a8011 8
# find the maximum length of command line arguments
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if ${lt_cv_sys_max_cmd_len+:} false; then :
  $as_echo_n "(cached) " >&6
else
    i=0
  teststring="ABCD"
d8013 2
a8014 8
  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;
a8015 6
  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;
a8016 10
  cygwin* | mingw* | cegcc*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8017 4
  mint*)
    # On MiNT this can take a long time and run out of memory.
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8018 5
  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8019 13
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;
a8020 4
  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;
a8021 56
  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n "$lt_cv_sys_max_cmd_len"; then
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    else
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      for i in 1 2 3 4 5 6 7 8 ; do
        teststring=$teststring$teststring
      done
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
      # If test is not a shell built-in, we'll probably end up computing a
      # maximum length that is only half of the actual maximum length, but
      # we can't tell.
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
	      test $i != 17 # 1/2 MB should be enough
      do
        i=`expr $i + 1`
        teststring=$teststring$teststring
      done
      # Only check the string length outside the loop.
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
      teststring=
      # Add a significant safety factor because C++ compilers can tack on
      # massive amounts of additional arguments before passing them to the
      # linker.  It appears as though 1/2 is a usable value.
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    fi
    ;;
  esac
a8022 1
fi
a8023 8
if test -n $lt_cv_sys_max_cmd_len ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi
max_cmd_len=$lt_cv_sys_max_cmd_len
d8028 1
d8030 3
d8034 2
a8035 3
: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}
d8037 3
a8039 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,b/c, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }
d8041 2
d8044 2
a8045 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }
d8047 3
d8051 8
a8058 2
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
d8060 8
a8067 1
  lt_unset=false
d8070 16
a8089 12
# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
esac
d8099 3
a8101 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
if ${lt_cv_to_host_file_cmd+:} false; then :
d8104 44
a8147 30
  case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
        ;;
    esac
    ;;
  *-*-cygwin* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_noop
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
        ;;
    esac
    ;;
  * ) # unhandled hosts (and "normal" native builds)
    lt_cv_to_host_file_cmd=func_convert_file_noop
    ;;
d8150 12
d8163 12
a8175 3
to_host_file_cmd=$lt_cv_to_host_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
d8181 3
a8183 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
if ${lt_cv_to_tool_file_cmd+:} false; then :
d8186 41
a8226 10
  #assume ordinary cross tools, or native build.
lt_cv_to_tool_file_cmd=func_convert_file_noop
case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
        ;;
    esac
    ;;
d8229 13
d8243 9
a8252 3
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
a8257 29
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
$as_echo_n "checking for $LD option to reload object files... " >&6; }
if ${lt_cv_ld_reload_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_reload_flag='-r'
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
$as_echo "$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    if test "$GCC" != yes; then
      reload_cmds=false
    fi
    ;;
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac
a8266 25
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OBJDUMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d8268 3
a8270 6
fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
d8272 1
a8272 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d8275 200
d8476 3
d8480 6
a8485 4
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
d8488 1
a8488 1
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
d8491 2
a8492 2
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
d8501 1
a8501 1
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
d8511 4
a8514 4
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
d8520 6
a8525 2
  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
d8533 1
a8533 1
    OBJDUMP=$ac_ct_OBJDUMP
a8534 2
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
d8537 9
a8545 1
test -z "$OBJDUMP" && OBJDUMP=objdump
d8547 5
d8558 3
a8560 5


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
if ${lt_cv_deplibs_check_method+:} false; then :
d8563 17
a8579 13
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
d8581 10
a8590 4
case $host_os in
aix[4-9]*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d8592 8
a8599 3
beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d8601 8
a8608 5
bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;
d8610 6
a8615 5
cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;
d8617 10
a8626 14
mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    # Keep this pattern in sync with the one in func_win32_libid.
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;
d8628 4
a8631 5
cegcc*)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;
d8633 5
a8637 3
darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d8639 13
a8651 15
freebsd* | dragonfly*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;
d8653 4
a8656 3
gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d8658 15
a8672 10
haiku*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
d8674 7
a8680 3
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
d8683 29
a8711 2
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
a8713 1
  ;;
d8715 1
a8715 4
interix[3-9]*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  ;;
d8717 8
a8724 9
irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
  ;;
a8725 4
# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8726 7
netbsd*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;
a8727 5
newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;
d8729 50
a8778 2
*nto* | *qnx*)
  lt_cv_deplibs_check_method=pass_all
d8780 4
a8784 7
openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;
a8785 3
osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8786 3
rdos*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8787 3
solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8788 3
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d8790 18
a8807 5
sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
d8809 12
a8820 2
  ncr)
    lt_cv_deplibs_check_method=pass_all
d8822 2
a8823 14
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
a8824 6
  esac
  ;;

tpf*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8827 20
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
$as_echo "$lt_cv_deplibs_check_method" >&6; }

file_magic_glob=
want_nocaseglob=no
if test "$build" = "$host"; then
  case $host_os in
  mingw* | pw32*)
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
      want_nocaseglob=yes
    else
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
    fi
    ;;
  esac
fi

file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown
d8829 3
d8837 16
d8854 1
d8856 3
d8864 29
d8903 2
a8904 2
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
d8907 1
a8907 1
if ${ac_cv_prog_DLLTOOL+:} false; then :
d8910 2
a8911 2
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
d8920 1
a8920 1
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
d8930 4
a8933 4
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
d8941 4
a8944 4
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
d8947 1
a8947 1
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
d8950 2
a8951 2
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
d8960 1
a8960 1
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
d8970 4
a8973 4
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
d8979 2
a8980 2
  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
d8988 1
a8988 1
    DLLTOOL=$ac_ct_DLLTOOL
d8991 1
a8991 1
  DLLTOOL="$ac_cv_prog_DLLTOOL"
d8994 1
a8994 1
test -z "$DLLTOOL" && DLLTOOL=dlltool
d9004 3
a9006 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
d9009 13
a9021 1
  lt_cv_sharedlib_from_linklib_cmd='unknown'
d9024 2
a9025 11
cygwin* | mingw* | pw32* | cegcc*)
  # two different shell functions defined in ltmain.sh
  # decide which to use based on capabilities of $DLLTOOL
  case `$DLLTOOL --help 2>&1` in
  *--identify-strict*)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
    ;;
  *)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
    ;;
  esac
d9027 3
a9029 3
*)
  # fallback: assume linklib IS sharedlib
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
a9030 1
esac
d9032 5
a9036 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
d9038 5
d9044 14
d9059 5
d9065 3
d9069 13
a9081 25


if test -n "$ac_tool_prefix"; then
  for ac_prog in ar
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
d9083 1
a9083 3
done
  done
IFS=$as_save_IFS
d9085 3
a9087 10
fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9089 3
d9093 17
a9109 31
    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d9111 4
a9114 10
fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9116 9
d9126 4
a9129 2
  test -n "$ac_ct_AR" && break
done
d9131 3
a9133 2
  if test "x$ac_ct_AR" = x; then
    AR="false"
d9135 1
a9135 7
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
d9137 1
a9137 1
fi
d9139 5
a9143 2
: ${AR=ar}
: ${AR_FLAGS=cru}
d9145 81
a9235 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @@FILE support" >&5
$as_echo_n "checking for archiver @@FILE support... " >&6; }
if ${lt_cv_ar_at_file+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ar_at_file=no
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a9236 3
int
main ()
{
a9237 25
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  echo conftest.$ac_objext > conftest.lst
      lt_ar_try='$AR $AR_FLAGS libconftest.a @@conftest.lst >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
	# Ensure the archiver fails upon bogus file names.
	rm -f conftest.$ac_objext libconftest.a
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	if test "$ac_status" -ne 0; then
          lt_cv_ar_at_file=@@
        fi
      fi
      rm -f conftest.* libconftest.a
a9238 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a9239 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
$as_echo "$lt_cv_ar_at_file" >&6; }
a9240 5
if test "x$lt_cv_ar_at_file" = xno; then
  archiver_list_spec=
else
  archiver_list_spec=$lt_cv_ar_at_file
fi
d9249 2
a9250 2
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
d9253 1
a9253 1
if ${ac_cv_prog_STRIP+:} false; then :
d9256 2
a9257 2
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d9266 1
a9266 1
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
d9276 4
a9279 4
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
d9287 4
a9290 4
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
d9293 1
a9293 1
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d9296 2
a9297 2
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d9306 1
a9306 1
    ac_cv_prog_ac_ct_STRIP="strip"
d9316 4
a9319 4
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
d9325 2
a9326 2
  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
d9334 1
a9334 1
    STRIP=$ac_ct_STRIP
d9337 40
a9376 1
  STRIP="$ac_cv_prog_STRIP"
d9378 4
a9382 1
test -z "$STRIP" && STRIP=:
d9390 4
a9393 2
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
d9396 1
a9396 1
if ${ac_cv_prog_RANLIB+:} false; then :
d9399 2
a9400 2
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
d9409 1
a9409 1
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
d9419 4
a9422 4
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
d9429 2
d9432 6
a9437 4
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
d9440 1
a9440 1
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
d9443 2
a9444 2
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d9453 1
a9453 1
    ac_cv_prog_ac_ct_RANLIB="ranlib"
d9463 4
a9466 4
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
d9472 6
a9477 2
  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
d9485 1
a9485 1
    RANLIB=$ac_ct_RANLIB
a9486 2
else
  RANLIB="$ac_cv_prog_RANLIB"
d9489 2
a9490 1
test -z "$RANLIB" && RANLIB=:
a9496 4
# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=
a9497 11
if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    ;;
  *)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi
d9499 282
a9780 6
case $host_os in
  darwin*)
    lock_old_archive_extraction=yes ;;
  *)
    lock_old_archive_extraction=no ;;
esac
a11083 11
func_stripname_cnf ()
{
  case ${2} in
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  esac
} # func_stripname_cnf




d14024 3
a14026 8765
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




























































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" ||
   test -n "$runpath_var" ||
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi






  if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

    ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if ${ac_cv_lib_dld_shl_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if ${ac_cv_lib_svld_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if ${ac_cv_lib_dld_dld_link+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi

















striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP" ; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi












  # Report which library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test "$can_build_shared" = "no" && enable_shared=no

  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test "$enable_shared" = yes && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;

  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }




fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if ${ac_cv_prog_CXXCPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
$as_echo "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
  _lt_caught_CXX_error=yes
fi

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

archive_cmds_need_lc_CXX=no
allow_undefined_flag_CXX=
always_export_symbols_CXX=no
archive_expsym_cmds_CXX=
compiler_needs_object_CXX=no
export_dynamic_flag_spec_CXX=
hardcode_direct_CXX=no
hardcode_direct_absolute_CXX=no
hardcode_libdir_flag_spec_CXX=
hardcode_libdir_flag_spec_ld_CXX=
hardcode_libdir_separator_CXX=
hardcode_minus_L_CXX=no
hardcode_shlibpath_var_CXX=unsupported
hardcode_automatic_CXX=no
inherit_rpath_CXX=no
module_cmds_CXX=
module_expsym_cmds_CXX=
link_all_deplibs_CXX=unknown
old_archive_cmds_CXX=$old_archive_cmds
reload_flag_CXX=$reload_flag
reload_cmds_CXX=$reload_cmds
no_undefined_flag_CXX=
whole_archive_flag_spec_CXX=
enable_shared_with_static_runtimes_CXX=no

# Source file extension for C++ test sources.
ac_ext=cpp

# Object file extension for compiled C++ test sources.
objext=o
objext_CXX=$objext

# No sense in running all these tests if we already determined that
# the CXX compiler isn't working.  Some variables (like enable_shared)
# are currently assumed to apply to all compilers on this platform,
# and will be corrupted by setting them based on a non-working compiler.
if test "$_lt_caught_CXX_error" != yes; then
  # Code to be used in simple compile tests
  lt_simple_compile_test_code="int some_variable = 0;"

  # Code to be used in simple link tests
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'

  # ltmain only uses $CC for tagged configurations so make sure $CC is set.






# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


  # save warnings/boilerplate of simple test code
  ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

  ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


  # Allow CC to be a program name with arguments.
  lt_save_CC=$CC
  lt_save_CFLAGS=$CFLAGS
  lt_save_LD=$LD
  lt_save_GCC=$GCC
  GCC=$GXX
  lt_save_with_gnu_ld=$with_gnu_ld
  lt_save_path_LD=$lt_cv_path_LD
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  else
    $as_unset lt_cv_prog_gnu_ld
  fi
  if test -n "${lt_cv_path_LDCXX+set}"; then
    lt_cv_path_LD=$lt_cv_path_LDCXX
  else
    $as_unset lt_cv_path_LD
  fi
  test -z "${LDCXX+set}" || LD=$LDCXX
  CC=${CXX-"c++"}
  CFLAGS=$CXXFLAGS
  compiler=$CC
  compiler_CXX=$CC
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`


  if test -n "$compiler"; then
    # We don't want -fno-exception when compiling C++ code, so set the
    # no_builtin_flag separately
    if test "$GXX" = yes; then
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
    else
      lt_prog_compiler_no_builtin_flag_CXX=
    fi

    if test "$GXX" = yes; then
      # Set up default GNU C++ configuration



# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld







      # Check if GNU C++ uses GNU ld as the underlying linker, since the
      # archiving commands below assume that GNU ld is being used.
      if test "$with_gnu_ld" = yes; then
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'

        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

        # If archive_cmds runs LD, not CC, wlarc should be empty
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
        #     investigate it a little bit more. (MM)
        wlarc='${wl}'

        # ancient GNU ld didn't support --whole-archive et. al.
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
	  $GREP 'no-whole-archive' > /dev/null; then
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
        else
          whole_archive_flag_spec_CXX=
        fi
      else
        with_gnu_ld=no
        wlarc=

        # A generic and very simple default shared library creation
        # command for GNU C++ for the case where it uses the native
        # linker, instead of GNU ld.  If possible, this setting should
        # overridden to take advantage of the native linker features on
        # the platform it is being used on.
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
      fi

      # Commands to make compiler produce verbose output that lists
      # what "hidden" libraries, object files and flags are used when
      # linking a shared library.
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

    else
      GXX=no
      with_gnu_ld=no
      wlarc=
    fi

    # PORTME: fill in a description of your system's C++ link characteristics
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
    ld_shlibs_CXX=yes
    case $host_os in
      aix3*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
      aix[4-9]*)
        if test "$host_cpu" = ia64; then
          # On IA64, the linker does run time linking by default, so we don't
          # have to do anything special.
          aix_use_runtimelinking=no
          exp_sym_flag='-Bexport'
          no_entry_flag=""
        else
          aix_use_runtimelinking=no

          # Test if we are trying to use run time linking or normal
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
          # need to do runtime linking.
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	    for ld_flag in $LDFLAGS; do
	      case $ld_flag in
	      *-brtl*)
	        aix_use_runtimelinking=yes
	        break
	        ;;
	      esac
	    done
	    ;;
          esac

          exp_sym_flag='-bexport'
          no_entry_flag='-bnoentry'
        fi

        # When large executables or shared objects are built, AIX ld can
        # have problems creating the table of contents.  If linking a library
        # or program results in "error TOC overflow" add -mminimal-toc to
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

        archive_cmds_CXX=''
        hardcode_direct_CXX=yes
        hardcode_direct_absolute_CXX=yes
        hardcode_libdir_separator_CXX=':'
        link_all_deplibs_CXX=yes
        file_list_spec_CXX='${wl}-f,'

        if test "$GXX" = yes; then
          case $host_os in aix4.[012]|aix4.[012].*)
          # We only want to do this on AIX 4.2 and lower, the check
          # below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	    # We have reworked collect2
	    :
	  else
	    # We have old collect2
	    hardcode_direct_CXX=unsupported
	    # It fails to find uninstalled libraries when the uninstalled
	    # path is not listed in the libpath.  Setting hardcode_minus_L
	    # to unsupported forces relinking
	    hardcode_minus_L_CXX=yes
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
	    hardcode_libdir_separator_CXX=
	  fi
          esac
          shared_flag='-shared'
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag="$shared_flag "'${wl}-G'
	  fi
        else
          # not using gcc
          if test "$host_cpu" = ia64; then
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	  # chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
          else
	    if test "$aix_use_runtimelinking" = yes; then
	      shared_flag='${wl}-G'
	    else
	      shared_flag='${wl}-bM:SRE'
	    fi
          fi
        fi

        export_dynamic_flag_spec_CXX='${wl}-bexpall'
        # It seems that -bexpall does not export symbols beginning with
        # underscore (_), so it is better to generate a list of symbols to
	# export.
        always_export_symbols_CXX=yes
        if test "$aix_use_runtimelinking" = yes; then
          # Warning - without using the other runtime loading flags (-brtl),
          # -berok will link without error, but may produce a broken library.
          allow_undefined_flag_CXX='-berok'
          # Determine the default libpath from the value encoded in an empty
          # executable.
          if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"

          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
        else
          if test "$host_cpu" = ia64; then
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
	    allow_undefined_flag_CXX="-z nodefs"
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
          else
	    # Determine the default libpath from the value encoded in an
	    # empty executable.
	    if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
	    # Warning - without using the other run time loading flags,
	    # -berok will link without error, but may produce a broken library.
	    no_undefined_flag_CXX=' ${wl}-bernotok'
	    allow_undefined_flag_CXX=' ${wl}-berok'
	    if test "$with_gnu_ld" = yes; then
	      # We only use this code for GNU lds that support --whole-archive.
	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    else
	      # Exported symbols can be pulled into shared objects from archives
	      whole_archive_flag_spec_CXX='$convenience'
	    fi
	    archive_cmds_need_lc_CXX=yes
	    # This is similar to how AIX traditionally builds its shared
	    # libraries.
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
          fi
        fi
        ;;

      beos*)
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	  allow_undefined_flag_CXX=unsupported
	  # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	  # support --undefined.  This deserves some investigation.  FIXME
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	else
	  ld_shlibs_CXX=no
	fi
	;;

      chorus*)
        case $cc_basename in
          *)
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	  ;;
        esac
        ;;

      cygwin* | mingw* | pw32* | cegcc*)
	case $GXX,$cc_basename in
	,cl* | no,cl*)
	  # Native MSVC
	  # hardcode_libdir_flag_spec is actually meaningless, as there is
	  # no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX=' '
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=yes
	  file_list_spec_CXX='@@'
	  # Tell ltmain to make .lib files, not .a files.
	  libext=lib
	  # Tell ltmain to make .dll files, not .so files.
	  shrext_cmds=".dll"
	  # FIXME: Setting linknames here is a bad hack.
	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	    else
	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	    fi~
	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	    linknames='
	  # The linker will not automatically build a static lib if we build a DLL.
	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
	  enable_shared_with_static_runtimes_CXX=yes
	  # Don't use ranlib
	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
	  postlink_cmds_CXX='lt_outputfile="@@OUTPUT@@"~
	    lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	    case $lt_outputfile in
	      *.exe|*.EXE) ;;
	      *)
		lt_outputfile="$lt_outputfile.exe"
		lt_tool_outputfile="$lt_tool_outputfile.exe"
		;;
	    esac~
	    func_to_tool_file "$lt_outputfile"~
	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	      $RM "$lt_outputfile.manifest";
	    fi'
	  ;;
	*)
	  # g++
	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
	  # as there is no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=no
	  enable_shared_with_static_runtimes_CXX=yes

	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	    # If the export-symbols file already is a .def file (1st line
	    # is EXPORTS), use it as is; otherwise, prepend...
	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      cp $export_symbols $output_objdir/$soname.def;
	    else
	      echo EXPORTS > $output_objdir/$soname.def;
	      cat $export_symbols >> $output_objdir/$soname.def;
	    fi~
	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	  else
	    ld_shlibs_CXX=no
	  fi
	  ;;
	esac
	;;
      darwin* | rhapsody*)


  archive_cmds_need_lc_CXX=no
  hardcode_direct_CXX=no
  hardcode_automatic_CXX=yes
  hardcode_shlibpath_var_CXX=unsupported
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  else
    whole_archive_flag_spec_CXX=''
  fi
  link_all_deplibs_CXX=yes
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=func_echo_all
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
    fi

  else
  ld_shlibs_CXX=no
  fi

	;;

      dgux*)
        case $cc_basename in
          ec++*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          ghcx*)
	    # Green Hills C++ Compiler
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      freebsd[12]*)
        # C++ shared libraries reported to be fairly broken before
	# switch to ELF
        ld_shlibs_CXX=no
        ;;

      freebsd-elf*)
        archive_cmds_need_lc_CXX=no
        ;;

      freebsd* | dragonfly*)
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
        # conventions
        ld_shlibs_CXX=yes
        ;;

      gnu*)
        ;;

      haiku*)
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
        link_all_deplibs_CXX=yes
        ;;

      hpux9*)
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        export_dynamic_flag_spec_CXX='${wl}-E'
        hardcode_direct_CXX=yes
        hardcode_minus_L_CXX=yes # Not in the search PATH,
				             # but as the default
				             # location of the library.

        case $cc_basename in
          CC*)
            # FIXME: insert proper C++ library support
            ld_shlibs_CXX=no
            ;;
          aCC*)
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            # Commands to make compiler produce verbose output that lists
            # what "hidden" libraries, object files and flags are used when
            # linking a shared library.
            #
            # There doesn't appear to be a way to prevent this compiler from
            # explicitly linking system object files so we need to strip them
            # from the output so that they don't get included in the library
            # dependencies.
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
            ;;
          *)
            if test "$GXX" = yes; then
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            else
              # FIXME: insert proper C++ library support
              ld_shlibs_CXX=no
            fi
            ;;
        esac
        ;;

      hpux10*|hpux11*)
        if test $with_gnu_ld = no; then
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

          case $host_cpu in
            hppa*64*|ia64*)
              ;;
            *)
	      export_dynamic_flag_spec_CXX='${wl}-E'
              ;;
          esac
        fi
        case $host_cpu in
          hppa*64*|ia64*)
            hardcode_direct_CXX=no
            hardcode_shlibpath_var_CXX=no
            ;;
          *)
            hardcode_direct_CXX=yes
            hardcode_direct_absolute_CXX=yes
            hardcode_minus_L_CXX=yes # Not in the search PATH,
					         # but as the default
					         # location of the library.
            ;;
        esac

        case $cc_basename in
          CC*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          aCC*)
	    case $host_cpu in
	      hppa*64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      ia64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      *)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	    esac
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test $with_gnu_ld = no; then
	        case $host_cpu in
	          hppa*64*)
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          ia64*)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          *)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	        esac
	      fi
	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      interix[3-9]*)
	hardcode_direct_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}-E'
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
	# Instead, shared libraries are loaded at an image base (0x10000000 by
	# default) and relocated if they conflict, which is a slow very memory
	# consuming and fragmenting process.  To avoid this, we pick a random,
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	;;
      irix5* | irix6*)
        case $cc_basename in
          CC*)
	    # SGI C++
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'

	    # Archives containing C++ object files must be created using
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test "$with_gnu_ld" = no; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	      else
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
	      fi
	    fi
	    link_all_deplibs_CXX=yes
	    ;;
        esac
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        inherit_rpath_CXX=yes
        ;;

      linux* | k*bsd*-gnu | kopensolaris*-gnu)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

	    # Archives containing C++ object files must be created using
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
	    ;;
	  icpc* | ecpc* )
	    # Intel C++
	    with_gnu_ld=yes
	    # version 8.0 and above of icpc choke on multiply defined symbols
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
	    # earlier do not add the objects themselves.
	    case `$CC -V 2>&1` in
	      *"Version 7."*)
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	      *)  # Version 8.0 or newer
	        tmp_idyn=
	        case $host_cpu in
		  ia64*) tmp_idyn=' -i_dynamic';;
		esac
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	    esac
	    archive_cmds_need_lc_CXX=no
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    ;;
          pgCC* | pgcpp*)
            # Portland Group C++ compiler
	    case `$CC -V` in
	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
	      prelink_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
	      old_archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
		$RANLIB $oldlib'
	      archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    *) # Version 6 and above use weak symbols
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    esac

	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
            ;;
	  cxx*)
	    # Compaq C++
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'

	    runpath_var=LD_RUN_PATH
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
	    ;;
	  xl* | mpixl* | bgxl*)
	    # IBM XL 8.0 on PPC, with GNU ld
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    if test "x$supports_anon_versioning" = xyes; then
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
		echo "local: *; };" >> $output_objdir/$libname.ver~
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	    fi
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      no_undefined_flag_CXX=' -zdefs'
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	      compiler_needs_object_CXX=yes

	      # Not sure whether something based on
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
	      # would be better.
	      output_verbose_link_cmd='func_echo_all'

	      # Archives containing C++ object files must be created using
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	      # necessary to make sure instantiated templates are included
	      # in the archive.
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	      ;;
	    esac
	    ;;
	esac
	;;

      lynxos*)
        # FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;

      m88k*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
	;;

      mvs*)
        case $cc_basename in
          cxx*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	  *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	esac
	;;

      netbsd*)
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
	  wlarc=
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	fi
	# Workaround some broken pre-1.5 toolchains
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
	;;

      *nto* | *qnx*)
        ld_shlibs_CXX=yes
	;;

      openbsd2*)
        # C++ shared libraries are fairly broken
	ld_shlibs_CXX=no
	;;

      openbsd*)
	if test -f /usr/libexec/ld.so; then
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	  hardcode_direct_absolute_CXX=yes
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
	    export_dynamic_flag_spec_CXX='${wl}-E'
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
	  fi
	  output_verbose_link_cmd=func_echo_all
	else
	  ld_shlibs_CXX=no
	fi
	;;

      osf3* | osf4* | osf5*)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    hardcode_libdir_separator_CXX=:

	    # Archives containing C++ object files must be created using
	    # the KAI C++ compiler.
	    case $host in
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
	    esac
	    ;;
          RCC*)
	    # Rational C++ 2.4.1
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          cxx*)
	    case $host in
	      osf3*)
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
		;;
	      *)
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
	          echo "-hidden">> $lib.exp~
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
	          $RM $lib.exp'
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
		;;
	    esac

	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
	  *)
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	      case $host in
	        osf3*)
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	        *)
	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	      esac

	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	      hardcode_libdir_separator_CXX=:

	      # Commands to make compiler produce verbose output that lists
	      # what "hidden" libraries, object files and flags are used when
	      # linking a shared library.
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      psos*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      sunos4*)
        case $cc_basename in
          CC*)
	    # Sun C++ 4.x
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          lcc*)
	    # Lucid
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      solaris*)
        case $cc_basename in
          CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
            archive_cmds_need_lc_CXX=yes
	    no_undefined_flag_CXX=' -zdefs'
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	    hardcode_libdir_flag_spec_CXX='-R$libdir'
	    hardcode_shlibpath_var_CXX=no
	    case $host_os in
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
	      *)
		# The compiler driver will combine and reorder linker options,
		# but understands `-z linker_flag'.
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
	        ;;
	    esac
	    link_all_deplibs_CXX=yes

	    output_verbose_link_cmd='func_echo_all'

	    # Archives containing C++ object files must be created using
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	    ;;
          gcx*)
	    # Green Hills C++ Compiler
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'

	    # The C++ compiler must be used to create the archive.
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
	    ;;
          *)
	    # GNU C++ compiler with Solaris linker
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      else
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
	        # platform.
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      fi

	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
	      case $host_os in
		solaris2.[0-5] | solaris2.[0-5].*) ;;
		*)
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
		  ;;
	      esac
	    fi
	    ;;
        esac
        ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag_CXX='${wl}-z,text'
      archive_cmds_need_lc_CXX=no
      hardcode_shlibpath_var_CXX=no
      runpath_var='LD_RUN_PATH'

      case $cc_basename in
        CC*)
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
      esac
      ;;

      sysv5* | sco3.2v5* | sco5v6*)
	# Note: We can NOT use -z defs as we might desire, because we do not
	# link with -lc, and that would cause any symbols used from libc to
	# always be unresolved, which means just about no library would
	# ever link correctly.  If we're not using GNU ld we use -z text
	# though, which does catch some bad symbols but isn't as heavy-handed
	# as -z defs.
	no_undefined_flag_CXX='${wl}-z,text'
	allow_undefined_flag_CXX='${wl}-z,nodefs'
	archive_cmds_need_lc_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
	hardcode_libdir_separator_CXX=':'
	link_all_deplibs_CXX=yes
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
	runpath_var='LD_RUN_PATH'

	case $cc_basename in
          CC*)
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
	      '"$old_archive_cmds_CXX"
	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
	      '"$reload_cmds_CXX"
	    ;;
	  *)
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    ;;
	esac
      ;;

      tandem*)
        case $cc_basename in
          NCC*)
	    # NonStop-UX NCC 3.20
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      vxworks*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      *)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
    test "$ld_shlibs_CXX" = no && can_build_shared=no

    GCC_CXX="$GXX"
    LD_CXX="$LD"

    ## CAVEAT EMPTOR:
    ## There is no encapsulation within the following macros, do not change
    ## the running order or otherwise move them around unless you know exactly
    ## what you are doing...
    # Dependencies to place before and after the object being linked:
predep_objects_CXX=
postdep_objects_CXX=
predeps_CXX=
postdeps_CXX=
compiler_lib_search_path_CXX=

cat > conftest.$ac_ext <<_LT_EOF
class Foo
{
public:
  Foo (void) { a = 0; }
private:
  int a;
};
_LT_EOF


_lt_libdeps_save_CFLAGS=$CFLAGS
case "$CC $CFLAGS " in #(
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
esac

if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # Parse the compiler output and extract the necessary
  # objects, libraries and library flags.

  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  pre_test_object_deps_done=no

  for p in `eval "$output_verbose_link_cmd"`; do
    case ${prev}${p} in

    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       if test $p = "-L" ||
          test $p = "-R"; then
	 prev=$p
	 continue
       fi

       # Expand the sysroot to ease extracting the directories later.
       if test -z "$prev"; then
         case $p in
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
         esac
       fi
       case $p in
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
       esac
       if test "$pre_test_object_deps_done" = no; then
	 case ${prev} in
	 -L | -R)
	   # Internal compiler library paths should come after those
	   # provided the user.  The postdeps already come after the
	   # user supplied libs so there is no need to process them.
	   if test -z "$compiler_lib_search_path_CXX"; then
	     compiler_lib_search_path_CXX="${prev}${p}"
	   else
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
	   fi
	   ;;
	 # The "-l" case would never come before the object being
	 # linked, so don't bother handling this case.
	 esac
       else
	 if test -z "$postdeps_CXX"; then
	   postdeps_CXX="${prev}${p}"
	 else
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
	 fi
       fi
       prev=
       ;;

    *.lto.$objext) ;; # Ignore GCC LTO objects
    *.$objext)
       # This assumes that the test object file only shows up
       # once in the compiler output.
       if test "$p" = "conftest.$objext"; then
	 pre_test_object_deps_done=yes
	 continue
       fi

       if test "$pre_test_object_deps_done" = no; then
	 if test -z "$predep_objects_CXX"; then
	   predep_objects_CXX="$p"
	 else
	   predep_objects_CXX="$predep_objects_CXX $p"
	 fi
       else
	 if test -z "$postdep_objects_CXX"; then
	   postdep_objects_CXX="$p"
	 else
	   postdep_objects_CXX="$postdep_objects_CXX $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling CXX test program"
fi

$RM -f confest.$objext
CFLAGS=$_lt_libdeps_save_CFLAGS

# PORTME: override above test on systems where it is broken
case $host_os in
interix[3-9]*)
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  # hack all around it, let's just trust "g++" to DTRT.
  predep_objects_CXX=
  postdep_objects_CXX=
  postdeps_CXX=
  ;;

linux*)
  case `$CC -V 2>&1 | sed 5q` in
  *Sun\ C*)
    # Sun C++ 5.9

    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;

solaris*)
  case $cc_basename in
  CC* | sunCC*)
    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;
esac


case " $postdeps_CXX " in
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
esac
 compiler_lib_search_dirs_CXX=
if test -n "${compiler_lib_search_path_CXX}"; then
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
fi































    lt_prog_compiler_wl_CXX=
lt_prog_compiler_pic_CXX=
lt_prog_compiler_static_CXX=


  # C++ specific cases for pic, static, wl, etc.
  if test "$GXX" = yes; then
    lt_prog_compiler_wl_CXX='-Wl,'
    lt_prog_compiler_static_CXX='-static'

    case $host_os in
    aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_CXX='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic_CXX='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | cygwin* | os2* | pw32* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_CXX='-fno-common'
      ;;
    *djgpp*)
      # DJGPP does not support shared libraries at all
      lt_prog_compiler_pic_CXX=
      ;;
    haiku*)
      # PIC is the default for Haiku.
      # The "-static" flag exists, but is broken.
      lt_prog_compiler_static_CXX=
      ;;
    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_CXX=-Kconform_pic
      fi
      ;;
    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	;;
      *)
	lt_prog_compiler_pic_CXX='-fPIC'
	;;
      esac
      ;;
    *qnx* | *nto*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_CXX='-fPIC -shared'
      ;;
    *)
      lt_prog_compiler_pic_CXX='-fPIC'
      ;;
    esac
  else
    case $host_os in
      aix[4-9]*)
	# All AIX code is PIC.
	if test "$host_cpu" = ia64; then
	  # AIX 5 now supports IA64 processor
	  lt_prog_compiler_static_CXX='-Bstatic'
	else
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
	fi
	;;
      chorus*)
	case $cc_basename in
	cxch68*)
	  # Green Hills C++ Compiler
	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
	  ;;
	esac
	;;
      mingw* | cygwin* | os2* | pw32* | cegcc*)
	# This hack is so that the source file can tell whether it is being
	# built for inclusion in a dll (and should export symbols for example).
	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
	;;
      dgux*)
	case $cc_basename in
	  ec++*)
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  ghcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      freebsd* | dragonfly*)
	# FreeBSD uses GNU C++
	;;
      hpux9* | hpux10* | hpux11*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    if test "$host_cpu" != ia64; then
	      lt_prog_compiler_pic_CXX='+Z'
	    fi
	    ;;
	  aCC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    case $host_cpu in
	    hppa*64*|ia64*)
	      # +Z the default
	      ;;
	    *)
	      lt_prog_compiler_pic_CXX='+Z'
	      ;;
	    esac
	    ;;
	  *)
	    ;;
	esac
	;;
      interix*)
	# This is c89, which is MS Visual C++ (no shared libs)
	# Anyone wants to do a port?
	;;
      irix5* | irix6* | nonstopux*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='-non_shared'
	    # CC pic flag -KPIC is the default.
	    ;;
	  *)
	    ;;
	esac
	;;
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
	case $cc_basename in
	  KCC*)
	    # KAI C++ Compiler
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  ecpc* )
	    # old Intel C++ for x86_64 which still supported -KPIC.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  icpc* )
	    # Intel C++, used to be incompatible with GCC.
	    # ICC 10 doesn't accept -KPIC any more.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  pgCC* | pgcpp*)
	    # Portland Group C++ compiler
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fpic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  cxx*)
	    # Compaq C++
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
	    # IBM XL 8.0, 9.0 on PPC and BlueGene
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-qpic'
	    lt_prog_compiler_static_CXX='-qstaticlink'
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      lt_prog_compiler_pic_CXX='-KPIC'
	      lt_prog_compiler_static_CXX='-Bstatic'
	      lt_prog_compiler_wl_CXX='-Qoption ld '
	      ;;
	    esac
	    ;;
	esac
	;;
      lynxos*)
	;;
      m88k*)
	;;
      mvs*)
	case $cc_basename in
	  cxx*)
	    lt_prog_compiler_pic_CXX='-W c,exportall'
	    ;;
	  *)
	    ;;
	esac
	;;
      netbsd*)
	;;
      *qnx* | *nto*)
        # QNX uses GNU C++, but need to define -shared option too, otherwise
        # it will coredump.
        lt_prog_compiler_pic_CXX='-fPIC -shared'
        ;;
      osf3* | osf4* | osf5*)
	case $cc_basename in
	  KCC*)
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    ;;
	  RCC*)
	    # Rational C++ 2.4.1
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  cxx*)
	    # Digital/Compaq C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      psos*)
	;;
      solaris*)
	case $cc_basename in
	  CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    lt_prog_compiler_wl_CXX='-Qoption ld '
	    ;;
	  gcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-PIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sunos4*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.x
	    lt_prog_compiler_pic_CXX='-pic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  lcc*)
	    # Lucid
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	esac
	;;
      tandem*)
	case $cc_basename in
	  NCC*)
	    # NonStop-UX NCC 3.20
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      vxworks*)
	;;
      *)
	lt_prog_compiler_can_build_shared_CXX=no
	;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_CXX=
    ;;
  *)
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works_CXX=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works_CXX=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
    case $lt_prog_compiler_pic_CXX in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
     esac
else
    lt_prog_compiler_pic_CXX=
     lt_prog_compiler_can_build_shared_CXX=no
fi

fi





#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works_CXX=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_cv_prog_compiler_static_works_CXX=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  case $host_os in
  aix[4-9]*)
    # If we're using GNU nm, then we don't want the "-C" option.
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    # Also, AIX nm treats weak defined symbols like other global defined
    # symbols, whereas GNU nm marks them as "W".
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    else
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    fi
    ;;
  pw32*)
    export_symbols_cmds_CXX="$ltdll_cmds"
    ;;
  cygwin* | mingw* | cegcc*)
    case $cc_basename in
    cl*) ;;
    *)
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
      ;;
    esac
    ;;
  *)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    ;;
  esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
test "$ld_shlibs_CXX" = no && can_build_shared=no

with_gnu_ld_CXX=$with_gnu_ld






#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_CXX" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_CXX=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_CXX in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  $RM conftest*
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext

	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
	  soname=conftest
	  lib=conftest
	  libobjs=conftest.$ac_objext
	  deplibs=
	  wl=$lt_prog_compiler_wl_CXX
	  pic_flag=$lt_prog_compiler_pic_CXX
	  compiler_flags=-v
	  linker_flags=-v
	  verstring=
	  output_objdir=.
	  libname=conftest
	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
	  allow_undefined_flag_CXX=
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	  then
	    lt_cv_archive_cmds_need_lc_CXX=no
	  else
	    lt_cv_archive_cmds_need_lc_CXX=yes
	  fi
	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
	else
	  cat conftest.err 1>&5
	fi
	$RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
      ;;
    esac
  fi
  ;;
esac
































































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$cc_basename in
  yes,*)
    # gcc
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'

      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    dynamic_linker='Win32 ld.exe'
    ;;

  *,cl*)
    # Native MSVC
    libname_spec='$name'
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'

    case $build_os in
    mingw*)
      sys_lib_search_path_spec=
      lt_save_ifs=$IFS
      IFS=';'
      for lt_path in $LIB
      do
        IFS=$lt_save_ifs
        # Let DOS variable expansion print the short 8.3 style file name.
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @@echo %~si"`
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
      done
      IFS=$lt_save_ifs
      # Convert to MSYS style.
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
      ;;
    cygwin*)
      # Convert to unix form, then to dos form, then back to unix form
      # but this time dos style (no spaces!) so that the unix form looks
      # like /cygdrive/c/PROGRA~1:/cygdr...
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      ;;
    *)
      sys_lib_search_path_spec="$LIB"
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      fi
      # FIXME: find the short name or the path components, as spaces are
      # common. (e.g. "Program Files" -> "PROGRA~1")
      ;;
    esac

    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
    dynamic_linker='Win32 link.exe'
    ;;

  *)
    # Assume MSVC wrapper
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    dynamic_linker='Win32 ld.exe'
    ;;
  esac
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

haiku*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  dynamic_linker="$host_os runtime_loader"
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  postinstall_cmds='chmod 555 $lib'
  # or fails outright, so override atomically:
  install_override_mode=555
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no

  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi






































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action_CXX=
if test -n "$hardcode_libdir_flag_spec_CXX" ||
   test -n "$runpath_var_CXX" ||
   test "X$hardcode_automatic_CXX" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct_CXX" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_CXX=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_CXX=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_CXX=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
$as_echo "$hardcode_action_CXX" >&6; }

if test "$hardcode_action_CXX" = relink ||
   test "$inherit_rpath_CXX" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi







  fi # test -n "$compiler"

  CC=$lt_save_CC
  CFLAGS=$lt_save_CFLAGS
  LDCXX=$LD
  LD=$lt_save_LD
  GCC=$lt_save_GCC
  with_gnu_ld=$lt_save_with_gnu_ld
  lt_cv_path_LDCXX=$lt_cv_path_LD
  lt_cv_path_LD=$lt_save_path_LD
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
fi # test "$_lt_caught_CXX_error" != yes

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu













        ac_config_commands="$ac_config_commands libtool"




# Only expand once:




# NTP has (so far) been relying on leading-edge autogen, which
# means we need the appropriate corresponding libopts as well.
# Therefore, by default:
# - use the version of libopts we ship with
# - do not install it
# - build a static copy (AC_DISABLE_SHARED - done earlier)
case "${enable_local_libopts+set}" in
 set) ;;
 *) enable_local_libopts=yes ;;
esac
case "${enable_libopts_install+set}" in
 set) ;;
 *) enable_libopts_install=no ;;
esac
enable_nls=no
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi



  ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
if eval \${$as_ac_Header+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$as_ac_Header=yes"
else
  eval "$as_ac_Header=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_ac_Header
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dir; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' x; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi


  # =================
  # AC_CHECK_HEADERS
  # =================
  for ac_header in  \
      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
      fcntl.h       libgen.h      libintl.h     memory.h \
      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
      unistd.h      utime.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  for ac_header in stdarg.h     varargs.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_arg_hdr=true;break
else
  lo_have_arg_hdr=false
fi

done


  for ac_header in string.h     strings.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_str_hdr=true;break
else
  lo_have_str_hdr=false
fi

done


  for ac_header in limits.h     sys/limits.h  values.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_lim_hdr=true;break
else
  lo_have_lim_hdr=false
fi

done


  for ac_header in inttypes.h   stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_typ_hdr=true;break
else
  lo_have_typ_hdr=false
fi

done


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
$as_echo_n "checking for working stdnoreturn.h... " >&6; }
if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
            #include <stdnoreturn.h>
            /* Do not check for 'noreturn' after the return type.
               C11 allows it, but it's rarely done that way
               and circa-2012 bleeding-edge GCC rejects it when given
               -Werror=old-style-declaration.  */
            noreturn void foo1 (void) { exit (0); }
            _Noreturn void foo2 (void) { exit (0); }
            int testit (int argc, char **argv) {
              if (argc & 1)
                return 0;
              (argv[0][0] ? foo1 : foo2) ();
            }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  gl_cv_header_working_stdnoreturn_h=yes
else
  gl_cv_header_working_stdnoreturn_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }

  if test $gl_cv_header_working_stdnoreturn_h = yes; then
    STDNORETURN_H=''
  else
    STDNORETURN_H='stdnoreturn.h'
  fi


   if test -n "$STDNORETURN_H"; then
  GL_GENERATE_STDNORETURN_H_TRUE=
  GL_GENERATE_STDNORETURN_H_FALSE='#'
else
  GL_GENERATE_STDNORETURN_H_TRUE='#'
  GL_GENERATE_STDNORETURN_H_FALSE=
fi



  # ----------------------------------------------------------------------
  # check for various programs used during the build.
  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  # ----------------------------------------------------------------------
  for ac_header in runetype.h wchar.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  $ac_includes_default
  #if HAVE_RUNETYPE_H
  # include <runetype.h>
  #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  # Check whether --enable-nls was given.
if test "${enable_nls+set}" = set; then :
  enableval=$enable_nls;
fi

  if test "x$enable_nls" != "xno" && \
  test "X${ac_cv_header_libintl_h}" = Xyes; then :


$as_echo "#define ENABLE_NLS 1" >>confdefs.h

fi

  # --------------------------------------------
  # Verify certain entries from AC_CHECK_HEADERS
  # --------------------------------------------
  ${lo_have_arg_hdr} || \
    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5

  ${lo_have_str_hdr} || \
    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5

  ${lo_have_lim_hdr} || \
    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5

  ${lo_have_typ_hdr} || \
    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5

  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  do eval as_ac_var=\${ac_cv_header_${f}_h}
     test "X${as_ac_var}" = Xyes || {
       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
     }
  done
  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
    echo '#include <stdint.h>' > inttypes.h

  # ----------------------------------------------------------------------
  # Checks for typedefs
  # ----------------------------------------------------------------------
  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
if test "x$ac_cv_type_wchar_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WCHAR_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
    $ac_includes_default
    #if HAVE_RUNETYPE_H
    # include <runetype.h>
    #endif
    #if HAVE_WCHAR_H
    # include <wchar.h>
    #endif

"
if test "x$ac_cv_type_wint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WINT_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
if test "x$ac_cv_type_int8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
if test "x$ac_cv_type_uint8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
if test "x$ac_cv_type_int16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
if test "x$ac_cv_type_uint16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
if test "x$ac_cv_type_int32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
if test "x$ac_cv_type_uint32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
if test "x$ac_cv_type_intptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
if test "x$ac_cv_type_uint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PID_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SIZE_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi

  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
$as_echo_n "checking size of char*... " >&6; }
if ${ac_cv_sizeof_charp+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_charp" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (char*)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_charp=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
$as_echo "$ac_cv_sizeof_charp" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHARP $ac_cv_sizeof_charp
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF



  # ------------
  # AC_CHECK_LIB
  # ------------
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
$as_echo_n "checking for pathfind in -lgen... " >&6; }
if ${ac_cv_lib_gen_pathfind+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgen  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pathfind ();
int
main ()
{
return pathfind ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gen_pathfind=yes
else
  ac_cv_lib_gen_pathfind=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGEN 1
_ACEOF

  LIBS="-lgen $LIBS"

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
$as_echo_n "checking for gettext in -lintl... " >&6; }
if ${ac_cv_lib_intl_gettext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lintl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gettext ();
int
main ()
{
return gettext ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_intl_gettext=yes
else
  ac_cv_lib_intl_gettext=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
$as_echo "$ac_cv_lib_intl_gettext" >&6; }
if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBINTL 1
_ACEOF

  LIBS="-lintl $LIBS"

fi

  for ac_func in vprintf
do :
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
if test "x$ac_cv_func_vprintf" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VPRINTF 1
_ACEOF

ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
if test "x$ac_cv_func__doprnt" = xyes; then :

$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h

fi

fi
done


  for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
                 strrchr strsignal fchmod fstat chmod
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

  while :
  do
      POSIX_SHELL=`which bash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`which dash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=/usr/xpg4/bin/sh
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`/bin/sh -c '
          exec 2>/dev/null
          if ! true ; then exit 1 ; fi
          echo /bin/sh'`
      test -x "$POSIX_SHELL" && break
      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  done

cat >>confdefs.h <<_ACEOF
#define POSIX_SHELL "${POSIX_SHELL}"
_ACEOF





  LIBOPTS_BUILD_BLOCKED=true


  NEED_LIBOPTS_DIR=''

  # Check whether --enable-local-libopts was given.
if test "${enable_local_libopts+set}" = set; then :
  enableval=$enable_local_libopts;
    if test x$enableval = xyes ; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
       NEED_LIBOPTS_DIR=true
       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
    fi
fi


  # Check whether --enable-libopts-install was given.
if test "${enable_libopts_install+set}" = set; then :
  enableval=$enable_libopts_install;
fi

   if test "X${enable_libopts_install}" = Xyes; then
  INSTALL_LIBOPTS_TRUE=
  INSTALL_LIBOPTS_FALSE='#'
else
  INSTALL_LIBOPTS_TRUE='#'
  INSTALL_LIBOPTS_FALSE=
fi


  if test -z "${NEED_LIBOPTS_DIR}" ; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
$as_echo_n "checking whether autoopts-config can be found... " >&6; }

# Check whether --with-autoopts-config was given.
if test "${with_autoopts_config+set}" = set; then :
  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
$as_echo_n "checking whether autoopts-config is specified... " >&6; }
if ${lo_cv_with_autoopts_config+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if autoopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=autoopts-config
        elif libopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=libopts-config
        else lo_cv_with_autoopts_config=no ; fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
$as_echo "$lo_cv_with_autoopts_config" >&6; }

fi
 # end of AC_ARG_WITH

     if ${lo_cv_test_autoopts+:} false; then :
  $as_echo_n "(cached) " >&6
else

        if test -z "${lo_cv_with_autoopts_config}" \
                -o X"${lo_cv_with_autoopts_config}" = Xno
        then
           if autoopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=autoopts-config
           elif libopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=libopts-config
           else lo_cv_with_autoopts_config=false ; fi
        fi
        lo_cv_test_autoopts=`
            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
        then lo_cv_test_autoopts=no ; fi

fi
 # end of CACHE_VAL
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
$as_echo "${lo_cv_test_autoopts}" >&6; }

     if test "X${lo_cv_test_autoopts}" != Xno
     then
        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
     else
        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
        NEED_LIBOPTS_DIR=true
     fi
  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
    NEED_LIBOPTS_DIR=''
  fi
   if test -n "${NEED_LIBOPTS_DIR}"; then
  NEED_LIBOPTS_TRUE=
  NEED_LIBOPTS_FALSE='#'
else
  NEED_LIBOPTS_TRUE='#'
  NEED_LIBOPTS_FALSE=
fi



  LIBOPTS_DIR=sntp/libopts


# end of AC_DEFUN of LIBOPTS_CHECK_COMMON

  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD




# Check whether --enable-local-libevent was given.
if test "${enable_local_libevent+set}" = set; then :
  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
else
  ntp_use_local_libevent=${ntp_use_local_libevent-detect}

fi






# Expose a cross-compilation indicator to makefiles
 if test $build != $host; then
  NTP_CROSSCOMPILE_TRUE=
  NTP_CROSSCOMPILE_FALSE='#'
else
  NTP_CROSSCOMPILE_TRUE='#'
  NTP_CROSSCOMPILE_FALSE=
fi



ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi


            # Check whether --enable-c99-snprintf was given.
if test "${enable_c99_snprintf+set}" = set; then :
  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
else
  force_c99_snprintf=no

fi

    case "$force_c99_snprintf" in
     yes)
	hw_force_rpl_snprintf=yes
	hw_force_rpl_vsnprintf=yes
    esac






  for ac_header in $ac_header_list
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done







      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
if test "x$ac_cv_func_vsnprintf" = xyes; then :
  hw_cv_func_vsnprintf=yes
else
  hw_cv_func_vsnprintf=no
fi

  if test "$hw_cv_func_vsnprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
if ${hw_cv_func_vsnprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_vsnprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if HAVE_STDARG_H
          #include <stdarg.h>
          #endif
          #include <stdio.h>
          static int testprintf(char *buf, size_t size, const char *format, ...)
          {
            int result;
            va_list ap;
            va_start(ap, format);
            result = vsnprintf(buf, size, format, ap);
            va_end(ap);
            return result;
          }
int
main ()
{
char buf[43];
          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_vsnprintf_c99=yes
else
  hw_cv_func_vsnprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
else
  hw_cv_func_vsnprintf_c99=no
fi

$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
  hw_use_rpl_vsnprintf=yes
else
  hw_use_rpl_vsnprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
$as_echo "$hw_use_rpl_vsnprintf" >&6; }
  if test "$hw_use_rpl_vsnprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_vsnprintf=no} = no; then :

$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h

fi
    for ac_header in inttypes.h locale.h stddef.h stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
_ACEOF


fi
ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
_ACEOF


fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
$as_echo_n "checking for long double... " >&6; }
if ${ac_cv_type_long_double+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$GCC" = yes; then
       ac_cv_type_long_double=yes
     else
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* The Stardent Vistra knows sizeof (long double), but does
		 not support it.  */
	      long double foo = 0.0L;
int
main ()
{
static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
	      sizeof (double) <= sizeof (long double))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_long_double=yes
else
  ac_cv_type_long_double=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
$as_echo "$ac_cv_type_long_double" >&6; }
  if test $ac_cv_type_long_double = yes; then

$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
$as_echo_n "checking for long long int... " >&6; }
if ${ac_cv_type_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  			if test "$cross_compiling" = yes; then :
  ac_cv_type_long_long_int=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
	       #ifndef LLONG_MAX
	       # define HALF \
			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
	       # define LLONG_MAX (HALF - 1 + HALF)
	       #endif
int
main ()
{
long long int n = 1;
	       int i;
	       for (i = 0; ; i++)
		 {
		   long long int m = n << i;
		   if (m >> i != n)
		     return 1;
		   if (LLONG_MAX / 2 < m)
		     break;
		 }
	       return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_type_long_long_int=yes
else
  ac_cv_type_long_long_int=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

else
  ac_cv_type_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
$as_echo "$ac_cv_type_long_long_int" >&6; }
  if test $ac_cv_type_long_long_int = yes; then

$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
$as_echo_n "checking for unsigned long long int... " >&6; }
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_type_unsigned_long_long_int=yes
else
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h

  fi

    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
if test "x$ac_cv_type_intmax_t" = xyes; then :

$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_long_long_int = yes \
       && ac_type='long long int' \
       || ac_type='long int'

cat >>confdefs.h <<_ACEOF
#define intmax_t $ac_type
_ACEOF

fi




  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
if test "x$ac_cv_type_uintmax_t" = xyes; then :

$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_unsigned_long_long_int = yes \
       && ac_type='unsigned long long int' \
       || ac_type='unsigned long int'

cat >>confdefs.h <<_ACEOF
#define uintmax_t $ac_type
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h

else
  for ac_type in 'unsigned int' 'unsigned long int' \
	'unsigned long long int'; do
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

cat >>confdefs.h <<_ACEOF
#define uintptr_t $ac_type
_ACEOF

	  ac_type=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       test -z "$ac_type" && break
     done
fi


    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi

    for ac_func in localeconv
do :
  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
if test "x$ac_cv_func_localeconv" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LOCALECONV 1
_ACEOF

fi
done


  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi


    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
if test "x$ac_cv_func_snprintf" = xyes; then :
  hw_cv_func_snprintf=yes
else
  hw_cv_func_snprintf=no
fi

  if test "$hw_cv_func_snprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
if ${hw_cv_func_snprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_snprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
char buf[43];
          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_snprintf_c99=yes
else
  hw_cv_func_snprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
$as_echo "$hw_cv_func_snprintf_c99" >&6; }
else
  hw_cv_func_snprintf_c99=no
fi

$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
  hw_use_rpl_snprintf=yes
else
  hw_use_rpl_snprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
$as_echo "$hw_use_rpl_snprintf" >&6; }
  if test "$hw_use_rpl_snprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_snprintf=no} = no; then :

$as_echo "#define snprintf rpl_snprintf" >>confdefs.h

fi

  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi





# HMS: Save $LIBS and empty it.
# any LIBS we add here should go in to LDADD_LIBNTP

__LIBS=$LIBS
LIBS=



# [Bug 2332] because we need to know if we are using GNU ld...


# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld








{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
$as_echo_n "checking for directory path separator... " >&6; }
if ${ntp_cv_dir_sep+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$ntp_cv_dir_sep" in
	 '')
	    case "$host_os" in
	     *djgpp | *mingw32* | *emx*)
		ntp_cv_dir_sep="'\\'"
		;;
	     *)
		ntp_cv_dir_sep="'/'"
		;;
	    esac
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
$as_echo "$ntp_cv_dir_sep" >&6; }

cat >>confdefs.h <<_ACEOF
#define DIR_SEP $ntp_cv_dir_sep
_ACEOF



    NTP_ORIG_LIBS="$LIBS"

# Check whether --with-lineeditlibs was given.
if test "${with_lineeditlibs+set}" = set; then :
  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
else
  use_lineeditlibs="edit,editline"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
$as_echo_n "checking line editing libraries... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
$as_echo "$use_lineeditlibs" >&6; }
    case "$use_lineeditlibs" in
     no)
	ntp_lib_lineedit=no
	;;
     *)
	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
	    for term_lib in "" termcap curses ncurses; do
		case "$term_lib" in
		 '')
		    TRY_LIB="-l$lineedit_lib"
		    ;;
		 *)
		    TRY_LIB="-l$lineedit_lib -l$term_lib"
		    ;;
		esac
		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char readline ();
int
main ()
{
return readline ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		case "$ntp_lib_lineedit" in
		 '')
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		    ;;
		 *)
		    # Use readline()
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
		    break
		esac
		case "$term_lib" in
		 '')
		    # do not try el_gets without a terminal library
		    ;;
		 *)
		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char el_gets ();
int
main ()
{
return el_gets ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		    case "$ntp_lib_lineedit" in
		     '')
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			;;
		     *) # Use el_gets()
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			break
			;;
		    esac	# $ntp_lib_lineedit
		esac		# $term_lib
	    done
	    case "$ntp_lib_lineedit" in
	     '')
		;;
	     *)
		break
		;;
	    esac
	done
	LIBS="$NTP_ORIG_LIBS"
	;;
    esac	# $use_lineeditlibs

    case "$ntp_lib_lineedit" in
     '')
	ntp_lib_lineedit="no"
	;;
     no)
	;;
     *)
	EDITLINE_LIBS="$ntp_lib_lineedit"

	;;
    esac	# $ntp_lib_lineedit

    case "$ntp_lib_lineedit" in
     no)
	;;
     *)
	for ac_header in readline.h readline/readline.h histedit.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	for ac_header in history.h readline/history.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


	case "$ac_cv_header_histedit_h" in
	 yes)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
$as_echo_n "checking number of arguments to el_init()... " >&6; }
if ${ntp_cv_el_init_args+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    #include <stdio.h>
			    #include <histedit.h>

int
main ()
{

			    el_init("conftest", stdin, stdout, stderr);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_el_init_args=4
else
  ntp_cv_el_init_args=3

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
$as_echo "$ntp_cv_el_init_args" >&6; }

cat >>confdefs.h <<_ACEOF
#define EL_INIT_ARGS $ntp_cv_el_init_args
_ACEOF

	esac

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
$as_echo_n "checking whether readline supports history... " >&6; }

	ntp_lib_lineedit_history="no"
	ORIG_LIBS="$LIBS"
	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char add_history ();
int
main ()
{
return add_history ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit_history="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LIBS="$ORIG_LIBS"

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
$as_echo "$ntp_lib_lineedit_history" >&6; }

	case "$ntp_lib_lineedit_history" in
	 yes)

$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h

	esac
    esac	# $ntp_lib_lineedit
    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
    { ORIG_LIBS=; unset ORIG_LIBS;}
    { TRY_LIB=; unset TRY_LIB;}
    { use_lineeditlibs=; unset use_lineeditlibs;}


LIBM=
case "$host" in
 *-*-darwin*)
    ;;
 *)
    _libs=$LIBS
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
$as_echo_n "checking for library containing cos... " >&6; }
if ${ac_cv_search_cos+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cos ();
int
main ()
{
return cos ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' m; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_cos=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_cos+:} false; then :
  break
fi
done
if ${ac_cv_search_cos+:} false; then :

else
  ac_cv_search_cos=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
$as_echo "$ac_cv_search_cos" >&6; }
ac_res=$ac_cv_search_cos
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  LIBM="-lm"
fi

    LIBS=$_libs
    ;;
esac

{ _libs=; unset _libs;}


for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
$as_echo_n "checking for working alloca.h... " >&6; }
if ${ac_cv_working_alloca_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <alloca.h>
int
main ()
{
char *p = (char *) alloca (2 * sizeof (int));
			  if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_working_alloca_h=yes
else
  ac_cv_working_alloca_h=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
$as_echo "$ac_cv_working_alloca_h" >&6; }
if test $ac_cv_working_alloca_h = yes; then

$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
$as_echo_n "checking for alloca... " >&6; }
if ${ac_cv_func_alloca_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  ifdef HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
void *alloca (size_t);
#    endif
#   endif
#  endif
# endif
#endif

int
main ()
{
char *p = (char *) alloca (1);
				    if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_func_alloca_works=yes
else
  ac_cv_func_alloca_works=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
$as_echo "$ac_cv_func_alloca_works" >&6; }

if test $ac_cv_func_alloca_works = yes; then

$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h

else
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble.  Some versions do not even contain alloca or
# contain a buggy version.  If you still want to use their alloca,
# use ar to extract alloca.o from them instead of compiling alloca.c.

ALLOCA=\${LIBOBJDIR}alloca.$ac_objext

$as_echo "#define C_ALLOCA 1" >>confdefs.h


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
if ${ac_cv_os_cray+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if defined CRAY && ! defined CRAY2
webecray
#else
wenotbecray
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "webecray" >/dev/null 2>&1; then :
  ac_cv_os_cray=yes
else
  ac_cv_os_cray=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
$as_echo "$ac_cv_os_cray" >&6; }
if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :

cat >>confdefs.h <<_ACEOF
#define CRAY_STACKSEG_END $ac_func
_ACEOF

    break
fi

  done
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
$as_echo_n "checking stack direction for C alloca... " >&6; }
if ${ac_cv_c_stack_direction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_c_stack_direction=0
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}

int
main ()
{
  return find_stack_direction () < 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_stack_direction=1
else
  ac_cv_c_stack_direction=-1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
$as_echo "$ac_cv_c_stack_direction" >&6; }
cat >>confdefs.h <<_ACEOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
_ACEOF


fi

ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRERROR_R $ac_have_decl
_ACEOF

for ac_func in strerror_r
do :
  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
if test "x$ac_cv_func_strerror_r" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRERROR_R 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
if ${ac_cv_func_strerror_r_char_p+:} false; then :
  $as_echo_n "(cached) " >&6
else

    ac_cv_func_strerror_r_char_p=no
    if test $ac_cv_have_decl_strerror_r = yes; then
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  char *p = strerror_r (0, buf, sizeof buf);
	  return !p || x;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    else
      # strerror_r is not declared.  Choose between
      # systems that have relatively inaccessible declarations for the
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
      # former has a strerror_r that returns char*, while the latter
      # has a strerror_r that returns `int'.
      # This test should segfault on the DEC system.
      if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
	extern char *strerror_r ();
int
main ()
{
char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  return ! isalpha (x);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
if test $ac_cv_func_strerror_r_char_p = yes; then

$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h

fi


ac_busted_vpath_in_make=no
case "$build" in
 *-*-irix6.1*)	# 64 bit only
    # busted vpath?
    ;;
 *-*-irix6*)	# 6.2 (and later?)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-solaris2.5.1)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-unicosmp*)
    ac_busted_vpath_in_make=yes
    ;;
esac

case "$ac_busted_vpath_in_make$srcdir" in
 yes.|no*)
    ;;
 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
    esac
    ;;
esac

case "$host" in
 *-*-aix4*)
	# Bug 2516:
	# Was *-*-aix[[4-9]]*
	# XXX only verified thru AIX6.  But...
	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
	# that this support would be in 5.3, removed in 6, and added back.
	#
	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
	# IBM pulls its thumbs out long enough to implement clock_settime,
	# this conditional will need to change.  Maybe use AC_TRY_RUN
	# instead to try to set the time to itself and check errno.
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
$as_echo_n "checking for library containing clock_gettime... " >&6; }
if ${ac_cv_search_clock_gettime+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char clock_gettime ();
int
main ()
{
return clock_gettime ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_clock_gettime=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_clock_gettime+:} false; then :
  break
fi
done
if ${ac_cv_search_clock_gettime+:} false; then :

else
  ac_cv_search_clock_gettime=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
$as_echo "$ac_cv_search_clock_gettime" >&6; }
ac_res=$ac_cv_search_clock_gettime
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_clock_gettime" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
 esac

fi

    for ac_func in clock_getres clock_gettime clock_settime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac

for ac_func in getclock stime timegm strlcpy strlcat
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


#
for ac_header in errno.h sys/socket.h sys/types.h time.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in net/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif

"
if test "x$ac_cv_header_net_if_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_H 1
_ACEOF

fi

done

case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
if ${ntp_cv_predecl_mpinfou+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    np_cv_predecl_mpinfou=no
	    case "$ac_cv_header_net_if_h" in
	     no)
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    typedef union mpinfou {
				    struct pdk_mpinfo *pdkptr;
				    struct mpinfo *pikptr;
			    } mpinfou_t;
			    #ifdef HAVE_SYS_SOCKET_H
			    # include <sys/socket.h>
			    #endif
			    #include <net/if.h>

int
main ()
{



  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

			ntp_cv_predecl_mpinfou=yes
			ac_cv_header_net_if_h=yes


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
$as_echo "$ntp_cv_predecl_mpinfou" >&6; }
    case "$ntp_cv_predecl_mpinfou" in
     yes)
	cat >>confdefs.h <<_ACEOF
#ifndef MPINFOU_PREDECLARED
# define MPINFOU_PREDECLARED
typedef union mpinfou {
	struct pdk_mpinfo *pdkptr;
	struct mpinfo *pikptr;
} mpinfou_t;
#endif
_ACEOF

    esac
esac

case "$host" in
 *-linux*)
    for ac_header in linux/if_addr.h
do :
  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
	#ifdef HAVE_SYS_SOCKET_H
	# include <sys/socket.h>
	#endif

"
if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LINUX_IF_ADDR_H 1
_ACEOF

fi

done

esac

for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
for ac_header in sys/sysctl.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
    #if defined HAVE_SYS_PARAM_H
    # include <sys/param.h>
    #endif

"
if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SYSCTL_H 1
_ACEOF

fi

done

for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in resolv.h
do :
  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_ARPA_NAMESER_H
    # include <arpa/nameser.h>
    #endif

"
if test "x$ac_cv_header_resolv_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RESOLV_H 1
_ACEOF

fi

done


for ac_header in net/if_var.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
    #if HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif

"
if test "x$ac_cv_header_net_if_var_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_VAR_H 1
_ACEOF

fi

done


for ac_header in netinet/ip.h netinet/in_var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_VAR_H
    # include <net/if_var.h>
    #endif
    #ifdef HAVE_NETINET_IN_SYSTM_H
    # include <netinet/in_systm.h>
    #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


# HMS: Do we need to check for -lsocket before or after these tests?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
$as_echo_n "checking for library containing inet_pton... " >&6; }
if ${ac_cv_search_inet_pton+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_pton ();
int
main ()
{
return inet_pton ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' nsl; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_pton=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_pton+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_pton+:} false; then :

else
  ac_cv_search_inet_pton=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
$as_echo "$ac_cv_search_inet_pton" >&6; }
ac_res=$ac_cv_search_inet_pton
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_pton" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
 esac

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
$as_echo_n "checking for library containing inet_ntop... " >&6; }
if ${ac_cv_search_inet_ntop+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_ntop ();
int
main ()
{
return inet_ntop ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_ntop=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_ntop+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_ntop+:} false; then :

else
  ac_cv_search_inet_ntop=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
$as_echo "$ac_cv_search_inet_ntop" >&6; }
ac_res=$ac_cv_search_inet_ntop
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_ntop" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
 esac

fi


# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
# avoid keying on the OS name:  If we find socket functions in
# libsocket, next try for them in libxnet without libsocket, if found,
# list both.  If we simply tested libxnet first, we would find the
# functions there and never add libsocket.  See also [Bug 660]
# http://bugs.ntp.org/show_bug.cgi?id=660#c9
saved_LIBS=$LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
$as_echo_n "checking for library containing setsockopt... " >&6; }
if ${ac_cv_search_setsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char setsockopt ();
int
main ()
{
return setsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' socket; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_setsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_setsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_setsockopt+:} false; then :

else
  ac_cv_search_setsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
$as_echo "$ac_cv_search_setsockopt" >&6; }
ac_res=$ac_cv_search_setsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_setsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
 esac

fi

case "$ac_cv_search_setsockopt" in
 -lsocket)
    LIBS="$saved_LIBS"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
$as_echo_n "checking for library containing getsockopt... " >&6; }
if ${ac_cv_search_getsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getsockopt ();
int
main ()
{
return getsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' xnet; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_getsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_getsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_getsockopt+:} false; then :

else
  ac_cv_search_getsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
$as_echo "$ac_cv_search_getsockopt" >&6; }
ac_res=$ac_cv_search_getsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_getsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
 esac

fi

    # XXX Possible trouble here - reading the comments above and looking at the
    # code below I wonder if we'll add -lxnet when we don't need it.
    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
    # there when it is not needed?
    case "$ac_cv_search_getsockopt" in
     -lxnet)
	LIBS="-lxnet -lsocket $saved_LIBS"
	;;
     *) LIBS="-lsocket $saved_LIBS"
	;;
    esac
    ;;
esac
{ saved_LIBS=; unset saved_LIBS;}

# Bug 2427 - look for recvmsg here.
for ac_func in recvmsg
do :
  ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
if test "x$ac_cv_func_recvmsg" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RECVMSG 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if ${ac_cv_c_inline+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }

case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac


case "$ac_cv_c_inline" in
 '')
    ;;
 *)

$as_echo "#define HAVE_INLINE 1" >>confdefs.h


esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if ${ac_cv_header_time+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_time=yes
else
  ac_cv_header_time=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h

fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
$as_echo_n "checking size of time_t... " >&6; }
if ${ac_cv_sizeof_time_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_time_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (time_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_time_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
$as_echo "$ac_cv_sizeof_time_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
$as_echo_n "checking whether char is unsigned... " >&6; }
if ${ac_cv_c_char_unsigned+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_char_unsigned=no
else
  ac_cv_c_char_unsigned=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
$as_echo "$ac_cv_c_char_unsigned" >&6; }
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h

fi
		# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
$as_echo_n "checking size of signed char... " >&6; }
if ${ac_cv_sizeof_signed_char+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_signed_char" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (signed char)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_signed_char=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
$as_echo "$ac_cv_sizeof_signed_char" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
_ACEOF


ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
if test "x$ac_cv_type_s_char" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_S_CHAR 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
if test "x$ac_cv_type_long_long" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF



case "$ac_cv_type_long_long" in
 no)
    ;;
 *)
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
if ${ac_cv_sizeof_long_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF


    ;;
esac

case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
 *yes)
    # We have a typedef for s_char.  Might as well believe it...
    ;;
 no0no)
    # We have signed chars, can't say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 no1no)
    # We have signed chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 yes0no)
    # We have unsigned chars, can't say 'signed char', no s_char typedef.
    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
    ;;
 yes1no)
    # We have unsigned chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
if ${ac_cv_type_uid_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "uid_t" >/dev/null 2>&1; then :
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; }
if test $ac_cv_type_uid_t = no; then

$as_echo "#define uid_t int" >>confdefs.h


$as_echo "#define gid_t int" >>confdefs.h

fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
$as_echo_n "checking if we're including debugging code... " >&6; }
# Check whether --enable-debugging was given.
if test "${enable_debugging+set}" = set; then :
  enableval=$enable_debugging; ntp_ok=$enableval
else
  ntp_ok=yes

fi

case "$ntp_ok" in
 yes)

$as_echo "#define DEBUG 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }



# check if we can compile with pthreads
for ac_header in semaphore.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
if test "x$ac_cv_header_semaphore_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SEMAPHORE_H 1
_ACEOF

fi

done

for ac_func in socketpair
do :
  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
if test "x$ac_cv_func_socketpair" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKETPAIR 1
_ACEOF

fi
done

# Check whether --enable-thread-support was given.
if test "${enable_thread_support+set}" = set; then :
  enableval=$enable_thread_support;
else
  enable_thread_support=yes

fi

have_pthreads=no
case "$enable_thread_support" in
 yes)
    ol_found_pthreads=no



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

# OpenLDAP --with-threads

# Check whether --with-threads was given.
if test "${with_threads+set}" = set; then :
  withval=$with_threads;
	ol_arg=invalid
	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
	fi
	ol_with_threads="$ol_arg"

else
  	ol_with_threads="auto"
fi
# end --with-threads


case "$ol_with_threads$host" in
 auto*-*-solaris2.[0-6])
        ol_with_threads=no
    ;;
esac


ol_aix_threads=no
case "$host" in
*-*-aix*) 	if test -z "$CC" ; then
		case "$ol_with_threads" in
		auto | yes |  posix) ol_aix_threads=yes ;;
		esac
	fi
;;
esac

if test $ol_aix_threads = yes ; then
	if test -z "${CC}" ; then
		for ac_prog in cc_r xlc_r cc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$CC" && break
done


		if test "$CC" = cc ; then
						if test $ol_with_threads != auto ; then
				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
			fi
			ol_with_threads=no
  		fi
	fi

	case ${CC} in cc_r | xlc_r)
		ol_with_threads=posix
		ol_cv_pthread_create=yes
		;;
	esac
fi

ol_link_threads=no
# OpenLDAP --with-yielding_select

# Check whether --with-yielding_select was given.
if test "${with_yielding_select+set}" = set; then :
  withval=$with_yielding_select;
	ol_arg=invalid
	for ol_val in auto yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
	fi
	ol_with_yielding_select="$ol_arg"

else
  	ol_with_yielding_select="auto"
fi
# end --with-yielding_select


case $ol_with_threads in auto | yes | nt)


	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
if test "x$ac_cv_func__beginthread" = xyes; then :

fi


	if test $ac_cv_func__beginthread = yes ; then

$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h

		ol_cv_nt_threads=yes
	fi


	if test "$ol_cv_nt_threads" = yes ; then
		ol_link_threads=nt
		ol_with_threads=found
		ol_with_yielding_select=yes


$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h


$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h

	fi

	if test $ol_with_threads = nt ; then
		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | posix)

	for ac_header in pthread.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_H 1
_ACEOF

fi

done


	if test $ac_cv_header_pthread_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
$as_echo_n "checking POSIX thread version... " >&6; }
if ${ol_cv_pthread_version+:} false; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>

int
main ()
{

		int i = PTHREAD_CREATE_JOINABLE;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_detach" >/dev/null 2>&1; then :
  ol_cv_pthread_version=10
else
  ol_cv_pthread_version=8
fi
rm -f conftest*

else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>
#		ifdef PTHREAD_CREATE_UNDETACHED
		draft7
#		endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft7" >/dev/null 2>&1; then :
  ol_cv_pthread_version=7
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
  ol_cv_pthread_version=6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>
#ifdef		PTHREAD_MUTEX_INITIALIZER
		draft5
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft5" >/dev/null 2>&1; then :
  ol_cv_pthread_version=5
else
  ol_cv_pthread_version=4
fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
$as_echo "$ol_cv_pthread_version" >&6; }


		if test $ol_cv_pthread_version != 0 ; then

cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREADS $ol_cv_pthread_version
_ACEOF

		else
			as_fn_error $? "unknown pthread version" "$LINENO" 5
		fi

		# consider threads found
		ol_with_threads=found


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then

$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h

	fi


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
#ifdef _POSIX_THREAD_IS_GNU_PTH
	__gnu_pth__;
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
  ol_cv_header_gnu_pth_pthread_h=yes
else
  ol_cv_header_gnu_pth_pthread_h=no
fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }


		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
			for ac_header in sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_H 1
_ACEOF

fi

done

		fi


				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
$as_echo_n "checking for pthread_create in default libraries... " >&6; }
if ${ol_cv_pthread_create+:} false; then :
  $as_echo_n "(cached) " >&6
else

			if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;
d14028 2
a14030 1

d14032 3
a14034 4
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
a14035 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14037 4
a14042 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
$as_echo "$ol_cv_pthread_create" >&6; }
d14044 1
a14044 4
		if test $ol_cv_pthread_create != no ; then
			ol_link_threads=posix
			ol_link_pthreads=""
		fi
d14046 4
a14049 8
		# Pthread try link: -kthread (ol_cv_pthread_kthread)
if test "$ol_link_threads" = no ; then
	# try -kthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
$as_echo_n "checking for pthread link with -kthread... " >&6; }
if ${ol_cv_pthread_kthread+:} false; then :
  $as_echo_n "(cached) " >&6
else
d14051 5
a14055 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-kthread $LIBS"
d14057 8
a14064 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14066 17
a14082 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d14084 6
a14089 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d14091 11
a14101 3
int
main ()
{
d14103 25
a14127 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14129 8
a14136 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14138 10
a14147 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d14149 3
a14151 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14153 12
a14164 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d14166 11
a14176 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d14178 22
a14199 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14201 8
a14208 1
	return 0;
d14210 21
a14230 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14232 10
d14243 6
a14248 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d14250 7
a14256 23
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14258 4
a14261 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d14263 6
a14268 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14269 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14270 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14271 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14272 1
	return 0;
a14273 1
}
a14274 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14276 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14277 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
$as_echo "$ol_cv_pthread_kthread" >&6; }
a14278 5
	if test $ol_cv_pthread_kthread = yes ; then
		ol_link_pthreads="-kthread"
		ol_link_threads=posix
	fi
fi
a14279 8
		# Pthread try link: -pthread (ol_cv_pthread_pthread)
if test "$ol_link_threads" = no ; then
	# try -pthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
$as_echo_n "checking for pthread link with -pthread... " >&6; }
if ${ol_cv_pthread_pthread+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14280 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthread $LIBS"
a14281 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14282 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14283 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14284 3
int
main ()
{
a14285 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14286 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14287 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14288 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14289 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14290 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14291 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14292 1
	return 0;
a14293 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_pthread=yes
else
  ol_cv_pthread_pthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14295 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14296 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14298 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14299 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14300 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14301 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14302 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14303 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14304 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14305 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14306 1
	return 0;
a14307 1
}
a14308 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthread=yes
else
  ol_cv_pthread_pthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14310 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14311 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
$as_echo "$ol_cv_pthread_pthread" >&6; }
a14312 5
	if test $ol_cv_pthread_pthread = yes ; then
		ol_link_pthreads="-pthread"
		ol_link_threads=posix
	fi
fi
a14313 8
		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
if test "$ol_link_threads" = no ; then
	# try -pthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
$as_echo_n "checking for pthread link with -pthreads... " >&6; }
if ${ol_cv_pthread_pthreads+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14314 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthreads $LIBS"
a14315 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14316 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14317 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14318 3
int
main ()
{
a14319 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14320 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14321 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14322 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14323 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14324 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14325 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14326 1
	return 0;
a14327 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_pthreads=yes
else
  ol_cv_pthread_pthreads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14329 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14330 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14332 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14333 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14334 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14335 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14336 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14337 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14338 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14339 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14340 1
	return 0;
a14341 1
}
a14342 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthreads=yes
else
  ol_cv_pthread_pthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14344 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14345 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
$as_echo "$ol_cv_pthread_pthreads" >&6; }
a14346 5
	if test $ol_cv_pthread_pthreads = yes ; then
		ol_link_pthreads="-pthreads"
		ol_link_threads=posix
	fi
fi
a14347 8
		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
if test "$ol_link_threads" = no ; then
	# try -mthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
$as_echo_n "checking for pthread link with -mthreads... " >&6; }
if ${ol_cv_pthread_mthreads+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14348 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-mthreads $LIBS"
a14349 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14350 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14351 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14352 3
int
main ()
{
a14353 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14354 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14355 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14356 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14357 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14358 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14359 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14361 6
a14366 1
	return 0;
d14368 13
a14380 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_mthreads=yes
d14382 3
a14384 1
  ol_cv_pthread_mthreads=no
d14386 2
a14387 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14389 9
a14398 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14399 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14401 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14402 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14404 7
a14410 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14412 6
a14417 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d14419 4
a14422 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14424 4
a14427 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d14429 11
a14439 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d14441 5
a14445 2
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
d14447 7
a14453 3

	return 0;

a14454 1

d14456 2
a14457 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_mthreads=yes
d14459 1
a14459 1
  ol_cv_pthread_mthreads=no
d14461 3
a14463 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14465 5
d14471 3
a14473 3

		# restore the LIBS
		LIBS="$ol_LIBS"
a14475 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
$as_echo "$ol_cv_pthread_mthreads" >&6; }
d14477 1
a14477 5
	if test $ol_cv_pthread_mthreads = yes ; then
		ol_link_pthreads="-mthreads"
		ol_link_threads=posix
	fi
fi
d14479 8
a14486 6
		# Pthread try link: -thread (ol_cv_pthread_thread)
if test "$ol_link_threads" = no ; then
	# try -thread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
$as_echo_n "checking for pthread link with -thread... " >&6; }
if ${ol_cv_pthread_thread+:} false; then :
d14489 3
a14491 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-thread $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14494 5
a14498 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14500 1
a14500 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d14504 1
a14504 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d14510 1
a14510 1
  ol_cv_pthread_thread=yes
d14512 1
a14512 1
  ol_cv_pthread_thread=no
d14516 15
d14532 3
a14534 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14537 5
a14541 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14543 3
a14545 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d14547 3
a14549 55
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

a14550 1

d14552 2
a14553 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_thread=yes
d14555 1
a14555 1
  ol_cv_pthread_thread=no
d14557 3
a14559 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14561 8
a14568 22


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
$as_echo "$ol_cv_pthread_thread" >&6; }

	if test $ol_cv_pthread_thread = yes ; then
		ol_link_pthreads="-thread"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
d14571 3
a14573 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14576 5
a14580 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14582 1
a14582 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d14586 1
a14586 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d14592 1
a14592 1
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
d14594 1
a14594 1
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
d14598 11
d14610 3
a14612 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14615 5
a14619 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14621 3
a14623 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d14625 3
a14627 1
	return (void *) (p == NULL);
d14629 15
d14646 1
a14646 12
int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14647 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14649 1
a14649 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14650 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14652 1
a14652 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14653 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d14655 1
a14655 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14656 1
	return 0;
d14658 1
a14658 1
}
d14660 2
a14661 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
d14663 5
d14669 4
a14672 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d14674 2
a14675 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
d14677 2
a14678 5
	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
fi
d14680 3
a14682 6
		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
d14685 8
d14694 2
a14695 15
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
d14698 1
a14698 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d14700 8
a14707 7
int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
a14708 3
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14710 20
a14729 17
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
a14730 5
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14732 4
a14735 6
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
d14738 5
a14742 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14744 12
a14755 1
	return 0;
d14757 1
a14757 2
  ;
  return 0;
d14759 17
a14775 5
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
else
  ol_cv_pthread_lpthread_lmach_lexc=no
d14777 1
a14777 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14780 3
a14782 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d14784 15
a14798 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d14800 2
a14801 9

int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
a14802 3
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14804 1
a14804 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14806 2
a14807 6
	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
d14809 5
a14813 1
	status = pthread_attr_setdetachstate(&attr, detach);
d14815 21
a14835 4
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
a14836 5
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14838 4
a14841 6
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
d14844 5
a14848 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14850 12
a14861 1
	return 0;
d14863 1
d14865 17
a14881 9

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
else
  ol_cv_pthread_lpthread_lmach_lexc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14883 1
a14885 3
		# restore the LIBS
		LIBS="$ol_LIBS"

d14887 3
a14889 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
d14891 5
a14895 5
	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc"
		ol_link_threads=posix
	fi
fi
d14897 4
d14902 5
a14906 35
		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
if test "$ol_link_threads" = no ; then
	# try -lpthread -Wl,-woff,85
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -Wl,-woff,85 $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{
a14907 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14908 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14909 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14910 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14911 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14912 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14913 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14914 1
	return 0;
a14915 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
else
  ol_cv_pthread_lib_lpthread_woff=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14917 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14918 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14920 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14921 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14922 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14924 29
a14952 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14953 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14954 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14955 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14956 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14957 1
	return 0;
a14958 1
}
a14959 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
else
  ol_cv_pthread_lib_lpthread_woff=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14961 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14962 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
a14963 5
	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
		ol_link_pthreads="-lpthread -Wl,-woff,85"
		ol_link_threads=posix
	fi
fi
d14965 5
d14971 3
a14973 8
		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
if test "$ol_link_threads" = no ; then
	# try -lpthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
$as_echo_n "checking for pthread link with -lpthread... " >&6; }
if ${ol_cv_pthread_lpthread+:} false; then :
  $as_echo_n "(cached) " >&6
else
d14975 10
a14984 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread $LIBS"
d14986 8
a14993 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14995 6
a15000 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a15001 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a15002 3
int
main ()
{
a15003 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15005 6
a15010 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d15012 1
a15012 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a15013 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a15014 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a15015 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a15016 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a15017 1
	return 0;
a15018 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
else
  ol_cv_pthread_lpthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a15020 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a15021 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a15023 4
int main(argc, argv)
	int argc;
	char **argv;
{
a15024 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15026 1
a15026 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a15027 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a15028 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a15029 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d15031 1
a15031 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a15032 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a15033 1
	return 0;
d15035 10
a15044 1
}
d15046 11
d15058 3
a15060 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
d15062 1
a15062 4
  ol_cv_pthread_lpthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15064 1
d15067 11
a15077 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15079 1
d15081 5
a15085 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
$as_echo "$ol_cv_pthread_lpthread" >&6; }

	if test $ol_cv_pthread_lpthread = yes ; then
		ol_link_pthreads="-lpthread"
		ol_link_threads=posix
	fi
d15088 3
a15090 6
		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
$as_echo_n "checking for pthread link with -lc_r... " >&6; }
if ${ol_cv_pthread_lc_r+:} false; then :
a15092 6

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
a15095 15
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15100 17
a15116 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15118 1
a15118 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d15120 1
a15120 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d15122 8
a15129 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d15131 5
a15135 10
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
d15137 5
a15141 3

	return 0;

d15146 9
a15154 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
else
  ol_cv_pthread_lc_r=no
d15157 7
a15163 1
    conftest$ac_exeext conftest.$ac_ext
d15165 10
a15174 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d15176 1
a15177 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d15179 26
a15204 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15206 7
a15212 57

int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
d15214 2
a15215 4
  ol_cv_pthread_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15219 26
a15244 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15246 2
d15249 7
a15255 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
$as_echo "$ol_cv_pthread_lc_r" >&6; }

	if test $ol_cv_pthread_lc_r = yes ; then
		ol_link_pthreads="-lc_r"
		ol_link_threads=posix
	fi
d15259 5
a15263 6
		# Pthread try link: -threads (ol_cv_pthread_threads)
if test "$ol_link_threads" = no ; then
	# try -threads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
$as_echo_n "checking for pthread link with -threads... " >&6; }
if ${ol_cv_pthread_threads+:} false; then :
d15266 31
a15297 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-threads $LIBS"
a15298 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a15299 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d15301 5
a15305 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15307 1
a15307 3
int
main ()
{
d15309 49
a15357 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15359 11
a15369 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a15370 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d15372 4
a15375 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d15377 5
a15381 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a15382 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a15383 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d15385 2
a15386 1
	return 0;
a15387 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_threads=yes
d15389 4
a15392 4
  ol_cv_pthread_threads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d15394 2
a15395 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15398 5
a15402 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15404 3
a15406 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d15408 3
a15410 55
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15412 18
a15430 3
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_threads=yes
d15432 1
a15432 1
  ol_cv_pthread_threads=no
d15434 2
a15435 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15437 5
a15441 4


		# restore the LIBS
		LIBS="$ol_LIBS"
a15443 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
$as_echo "$ol_cv_pthread_threads" >&6; }
a15444 4
	if test $ol_cv_pthread_threads = yes ; then
		ol_link_pthreads="-threads"
		ol_link_threads=posix
	fi
d15447 2
d15450 4
a15453 6
		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
d15456 2
a15457 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15460 5
a15464 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15466 1
a15466 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15470 1
a15470 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15475 9
a15483 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
d15486 6
a15491 5
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

a15492 72
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
d15494 1
a15494 1
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
d15496 2
a15497 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15499 5
d15505 4
a15508 20

		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }

	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
d15511 2
a15512 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15515 5
a15519 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15521 1
a15521 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15525 1
a15525 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15530 9
a15538 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc=no
d15541 6
a15546 34
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a15547 43
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
d15549 1
a15549 1
  ol_cv_pthread_lpthreads_lmach_lexc=no
d15551 2
a15552 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15554 5
d15560 1
a15560 3

		# restore the LIBS
		LIBS="$ol_LIBS"
a15562 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
a15563 4
	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc"
		ol_link_threads=posix
	fi
d15566 3
a15568 6
		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
d15571 2
a15572 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15575 5
a15579 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15581 1
a15581 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15585 1
a15585 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15590 9
a15598 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lexc=yes
else
  ol_cv_pthread_lpthreads_lexc=no
d15601 6
a15606 72
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;
a15607 5
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lexc=yes
d15609 1
a15609 1
  ol_cv_pthread_lpthreads_lexc=no
d15611 2
a15612 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15614 5
d15620 1
d15622 7
a15628 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15631 2
a15632 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
a15633 5
	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lexc"
		ol_link_threads=posix
	fi
fi
d15635 1
d15637 3
a15639 7
		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
if test "$ol_link_threads" = no ; then
	# try -lpthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
if ${ol_cv_pthread_lib_lpthreads+:} false; then :
  $as_echo_n "(cached) " >&6
d15641 1
d15643 1
a15643 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads $LIBS"
d15645 23
a15667 2
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15670 5
a15674 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15676 3
a15678 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d15680 3
a15682 1
	return (void *) (p == NULL);
d15684 26
d15711 7
d15721 43
d15765 2
a15766 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15768 12
a15779 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d15781 1
a15781 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d15783 1
a15783 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d15785 8
a15792 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d15794 1
a15794 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d15796 1
a15796 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a15797 1
	return 0;
d15799 6
a15804 11
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
else
  ol_cv_pthread_lib_lpthreads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d15809 2
d15812 2
a15813 11
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
a15814 2
	return (void *) (p == NULL);
}
d15816 1
a15817 50
int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;
d15819 2
a15821 1

d15823 2
a15824 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
d15826 1
a15826 9
  ol_cv_pthread_lib_lpthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"
d15829 1
a15829 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
a15830 4
	if test $ol_cv_pthread_lib_lpthreads = yes ; then
		ol_link_pthreads="-lpthreads"
		ol_link_threads=posix
	fi
d15832 2
d15835 2
a15836 15

		if test $ol_link_threads != no ; then
			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"

						save_CPPFLAGS="$CPPFLAGS"
			save_LIBS="$LIBS"
			LIBS="$LTHREAD_LIBS $LIBS"

												for ac_func in sched_yield pthread_yield thr_yield
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d15839 1
a15839 2
fi
done
d15841 2
d15844 4
a15847 11
			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test $ac_cv_func_thr_yield = no ; then
								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
$as_echo_n "checking for sched_yield in -lrt... " >&6; }
if ${ac_cv_lib_rt_sched_yield+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15856 1
a15856 1
char sched_yield ();
d15860 1
a15860 1
return sched_yield ();
d15866 1
a15866 3
  ac_cv_lib_rt_sched_yield=yes
else
  ac_cv_lib_rt_sched_yield=no
d15870 1
a15870 6
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
d15872 2
a15873 1
$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
d15875 2
a15876 4
					ac_cv_func_sched_yield=yes
else
  ac_cv_func_sched_yield=no
fi
d15878 1
a15878 7
			fi
			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test "$ac_cv_func_thr_yield" = no ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
			fi
d15880 6
a15885 7
						for ac_func in pthread_kill
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
if test "x$ac_cv_func_pthread_kill" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL 1
_ACEOF
a15886 2
fi
done
d15889 8
a15896 3
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
d15899 3
a15901 2

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15904 7
a15910 3
#include <pthread.h>
pthread_rwlock_t rwlock;

d15914 1
a15914 1
pthread_rwlock_destroy(&rwlock);
d15920 1
a15920 1
  ol_cv_func_pthread_rwlock_destroy=yes
d15922 1
a15922 1
  ol_cv_func_pthread_rwlock_destroy=no
d15926 1
a15926 1

d15928 6
a15933 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
d15935 1
a15935 1
$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
d15937 4
a15940 5
			fi

									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_detach+:} false; then :
d15943 3
a15945 2

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15948 5
a15952 3
#include <pthread.h>
#ifndef NULL
#define NULL (void*)0
d15954 1
a15954 1

d15958 1
a15958 1
pthread_detach(NULL);
d15964 1
a15964 1
  ol_cv_func_pthread_detach=yes
d15966 1
a15966 1
  ol_cv_func_pthread_detach=no
d15970 1
a15970 1

d15972 3
a15974 21
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
$as_echo "$ol_cv_func_pthread_detach" >&6; }

			if test $ol_cv_func_pthread_detach = no ; then
				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
			fi


$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h


						for ac_func in \
				pthread_setconcurrency \
				pthread_getconcurrency \
				thr_setconcurrency \
				thr_getconcurrency \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d15976 1
a15976 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d15979 1
a15979 12
fi
done



	for ac_func in pthread_kill_other_threads_np
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
_ACEOF
a15981 1
done
a15982 6
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
$as_echo_n "checking for LinuxThreads implementation... " >&6; }
if ${ol_cv_sys_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
a15983 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
$as_echo "$ol_cv_sys_linux_threads" >&6; }
d15985 2
d15988 3
a15990 5


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
$as_echo_n "checking for LinuxThreads consistency... " >&6; }
if ${ol_cv_linux_threads+:} false; then :
d15993 2
a15994 30

		if test $ol_cv_header_linux_threads = yes &&
		   test $ol_cv_sys_linux_threads = yes; then
			ol_cv_linux_threads=yes
		elif test $ol_cv_header_linux_threads = no &&
		     test $ol_cv_sys_linux_threads = no; then
			ol_cv_linux_threads=no
		else
			ol_cv_linux_threads=error
		fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
$as_echo "$ol_cv_linux_threads" >&6; }


			if test $ol_cv_linux_threads = error; then
				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
			fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
$as_echo_n "checking if pthread_create() works... " >&6; }
if ${ol_cv_pthread_create_works+:} false; then :
  $as_echo_n "(cached) " >&6
else

			if test "$cross_compiling" = yes; then :
  				ol_cv_pthread_create_works=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15997 5
a16001 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d16003 3
a16005 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d16007 3
a16009 55
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d16011 18
a16029 3
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create_works=yes
d16031 1
a16031 1
  ol_cv_pthread_create_works=no
d16033 2
a16034 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d16036 5
a16042 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
$as_echo "$ol_cv_pthread_create_works" >&6; }
d16044 3
a16046 16
			if test $ol_cv_pthread_create_works = no ; then
				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
			fi

			ol_replace_broken_yield=no

			if test $ol_replace_broken_yield = yes ; then

$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h

			fi

						if test x$ol_with_yielding_select = xauto ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
$as_echo_n "checking if select yields when using pthreads... " >&6; }
if ${ol_cv_pthread_select_yields+:} false; then :
d16049 2
a16050 5

				if test "$cross_compiling" = yes; then :
  ol_cv_pthread_select_yields=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16053 5
a16057 6
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#ifndef NULL
#define NULL (void*) 0
d16059 3
a16061 5

static int fildes[2];

static void *task(p)
	void *p;
d16063 3
a16065 59
	int i;
	struct timeval tv;

	fd_set rfds;

	tv.tv_sec=10;
	tv.tv_usec=0;

	FD_ZERO(&rfds);
	FD_SET(fildes[0], &rfds);

	/* we're not interested in any fds */
	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);

	if(i < 0) {
		perror("select");
		exit(10);
	}

	exit(0); /* if we exit here, the select blocked the whole process */
}

int main(argc, argv)
	int argc;
	char **argv;
{
	pthread_t t;

	/* create a pipe to select */
	if(pipe(&fildes[0])) {
		perror("select");
		exit(1);
	}

#ifdef HAVE_PTHREAD_SETCONCURRENCY
	(void) pthread_setconcurrency(2);
#else
#ifdef HAVE_THR_SETCONCURRENCY
	/* Set Solaris LWP concurrency to 2 */
	thr_setconcurrency(2);
#endif
#endif

#if HAVE_PTHREADS < 6
	pthread_create(&t, pthread_attr_default, task, NULL);
#else
	pthread_create(&t, NULL, task, NULL);
#endif

	/* make sure task runs first */
#ifdef HAVE_THR_YIELD
	thr_yield();
#elif defined( HAVE_SCHED_YIELD )
	sched_yield();
#elif defined( HAVE_PTHREAD_YIELD )
	pthread_yield();
#endif

	exit(2);
d16068 9
a16076 4
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_select_yields=no
else
  ol_cv_pthread_select_yields=yes
d16078 4
a16081 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d16083 2
d16086 2
d16089 2
a16090 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
$as_echo "$ol_cv_pthread_select_yields" >&6; }

				if test $ol_cv_pthread_select_yields = cross ; then
					as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
				fi

				if test $ol_cv_pthread_select_yields = yes ; then
					ol_with_yielding_select=yes
				fi
			fi

						CPPFLAGS="$save_CPPFLAGS"
			LIBS="$save_LIBS"
		else
			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
		fi
	fi

	if test $ol_with_threads = posix ; then
		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | mach)

		for ac_header in mach/cthreads.h cthreads.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

d16092 5
a16097 8
done

	if test $ac_cv_header_mach_cthreads_h = yes ; then
		ol_with_threads=found

				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
d16100 5
a16104 5

		if test $ol_link_threads = no ; then
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
$as_echo_n "checking for cthread_fork with -all_load... " >&6; }
if ${ol_cv_cthread_all_load+:} false; then :
d16107 4
d16112 7
a16118 5
								save_LIBS="$LIBS"
				LIBS="-all_load $LIBS"
				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <mach/cthreads.h>
d16122 1
a16122 3

					cthread_fork((void *)0, (void *)0);

d16128 1
a16128 1
  ol_cv_cthread_all_load=yes
d16130 1
a16130 1
  ol_cv_cthread_all_load=no
d16134 1
a16134 2
								LIBS="$save_LIBS"

d16136 6
a16141 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
$as_echo "$ol_cv_cthread_all_load" >&6; }
d16143 1
a16143 6
			if test $ol_cv_cthread_all_load = yes ; then
				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
				ol_link_threads=mach
				ol_with_threads=found
			fi
		fi
d16145 1
a16145 1
	elif test $ac_cv_header_cthreads_h = yes ; then
d16147 22
a16168 1
		ol_with_threads=found
a16169 5
				save_LIBS="$LIBS"
		LIBS="$LIBS -lthreads"
		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
d16172 1
a16172 23
		LIBS="$save_LIBS"

		if test $ol_link_threads = yes ; then
			LTHREAD_LIBS="-lthreads"
			ol_link_threads=mach
			ol_with_threads=found
		else
			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
		fi

	elif test $ol_with_threads = mach ; then
		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
	fi

	if test $ol_link_threads = mach ; then

$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h

	elif test $ol_with_threads = found ; then
		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
	fi
	;;
esac
a16173 1
case $ol_with_threads in auto | yes | pth)
d16175 1
a16175 1
	for ac_header in pth.h
d16177 3
a16179 2
  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
if test "x$ac_cv_header_pth_h" = xyes; then :
d16181 1
a16181 1
#define HAVE_PTH_H 1
a16184 1

d16188 3
a16190 4
	if test $ac_cv_header_pth_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
$as_echo_n "checking for pth_version in -lpth... " >&6; }
if ${ac_cv_lib_pth_pth_version+:} false; then :
d16193 1
a16193 3
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpth  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16195 4
a16199 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pth_version ();
d16203 1
a16203 1
return pth_version ();
d16208 2
a16209 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pth_pth_version=yes
d16211 1
a16211 12
  ac_cv_lib_pth_pth_version=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
  have_pth=yes
else
  have_pth=no
d16213 1
d16215 5
d16221 3
a16223 1
		if test $have_pth = yes ; then
d16225 4
a16228 1
$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
d16230 1
a16230 3
			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
			ol_link_threads=pth
			ol_with_threads=found
d16232 5
a16236 7
			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi
		fi
	fi
	;;
esac
a16237 9
case $ol_with_threads in auto | yes | lwp)

		for ac_header in thread.h synch.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d16239 2
d16242 2
d16245 1
d16247 1
a16247 1
done
d16249 4
a16252 6
	if test $ac_cv_header_thread_h = yes &&
	   test $ac_cv_header_synch_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
$as_echo_n "checking for thr_create in -lthread... " >&6; }
if ${ac_cv_lib_thread_thr_create+:} false; then :
  $as_echo_n "(cached) " >&6
d16254 14
a16267 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16269 1
a16269 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char thr_create ();
d16273 5
a16277 2
return thr_create ();
  ;
d16281 2
a16282 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_thread_thr_create=yes
d16284 4
a16287 1
  ac_cv_lib_thread_thr_create=no
d16289 1
a16289 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
a16290 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
  have_thr=yes
else
  have_thr=no
d16292 3
d16296 1
a16296 23

		if test $have_thr = yes ; then

$as_echo "#define HAVE_THR 1" >>confdefs.h

			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
			ol_link_threads=thr

			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi

						for ac_func in \
				thr_setconcurrency \
				thr_getconcurrency \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a16298 1
done
d16300 1
a16300 4
		fi
	fi

		for ac_header in lwp/lwp.h
d16302 2
a16303 2
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
d16305 1
a16305 1
#define HAVE_LWP_LWP_H 1
d16312 5
a16316 4
	if test $ac_cv_header_lwp_lwp_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
$as_echo_n "checking for lwp_create in -llwp... " >&6; }
if ${ac_cv_lib_lwp_lwp_create+:} false; then :
d16320 1
a16320 1
LIBS="-llwp  $LIBS"
d16330 1
a16330 1
char lwp_create ();
d16334 1
a16334 1
return lwp_create ();
d16340 1
a16340 1
  ac_cv_lib_lwp_lwp_create=yes
d16342 1
a16342 1
  ac_cv_lib_lwp_lwp_create=no
d16348 10
a16357 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
  have_lwp=yes
else
  have_lwp=no
d16361 14
a16374 1
		if test $have_lwp = yes ; then
d16376 1
a16376 1
$as_echo "#define HAVE_LWP 1" >>confdefs.h
a16377 2
			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
			ol_link_threads=lwp
d16379 6
a16384 7
			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=no
			fi
		fi
	fi
	;;
esac
a16385 1
if test $ol_with_yielding_select = yes ; then
d16387 5
a16391 1
$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
d16395 1
a16395 2
if test $ol_with_threads = manual ; then
		ol_link_threads=yes
d16397 1
a16397 4
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}

	for ac_header in pthread.h sched.h
d16410 1
a16410 1
	for ac_func in sched_yield pthread_yield
d16412 3
a16414 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d16416 1
a16416 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16420 1
d16423 7
a16429 9

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
a16430 8
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
fi
rm -f conftest*

a16432 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then
d16434 1
a16434 1
$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
a16435 1
	fi
d16437 3
a16439 2

	for ac_header in mach/cthreads.h
d16441 2
a16442 2
  ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
d16444 1
a16444 1
#define HAVE_MACH_CTHREADS_H 1
d16451 5
a16455 1
	for ac_header in lwp/lwp.h
d16457 2
a16458 2
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
d16460 1
a16460 1
#define HAVE_LWP_LWP_H 1
d16467 5
a16471 1
	for ac_header in thread.h synch.h
d16484 34
d16520 1
a16520 1
if test $ol_link_threads != no && test $ol_link_threads != nt ; then
d16522 7
a16528 1
$as_echo "#define REENTRANT 1" >>confdefs.h
d16530 1
d16532 1
a16532 1
$as_echo "#define _REENTRANT 1" >>confdefs.h
d16535 13
a16547 1
$as_echo "#define THREAD_SAFE 1" >>confdefs.h
d16549 1
d16551 1
a16551 1
$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
d16553 11
d16565 4
a16568 1
$as_echo "#define THREADSAFE 1" >>confdefs.h
d16570 8
d16579 5
a16583 1
$as_echo "#define _THREADSAFE 1" >>confdefs.h
d16585 1
d16587 1
a16587 1
$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
d16589 1
d16591 5
a16595 5
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
$as_echo_n "checking for thread specific errno... " >&6; }
if ${ol_cv_errno_thread_specific+:} false; then :
  $as_echo_n "(cached) " >&6
else
d16597 4
a16600 10
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <errno.h>
int
main ()
{
errno = 0;
  ;
  return 0;
}
a16601 7
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_errno_thread_specific=yes
else
  ol_cv_errno_thread_specific=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
a16603 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
$as_echo "$ol_cv_errno_thread_specific" >&6; }
d16605 1
a16605 5
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
$as_echo_n "checking for thread specific h_errno... " >&6; }
if ${ol_cv_h_errno_thread_specific+:} false; then :
  $as_echo_n "(cached) " >&6
else
d16607 6
a16612 10
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netdb.h>
int
main ()
{
h_errno = 0;
  ;
  return 0;
}
a16613 7
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_h_errno_thread_specific=yes
else
  ol_cv_h_errno_thread_specific=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
a16615 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
$as_echo "$ol_cv_h_errno_thread_specific" >&6; }
d16617 1
a16617 5
	if test $ol_cv_errno_thread_specific != yes ||
	   test $ol_cv_h_errno_thread_specific != yes ; then
		LIBS="$LTHREAD_LIBS $LIBS"
		LTHREAD_LIBS=""
	fi
d16619 6
a16624 1
fi
d16626 5
a16630 4
if test $ol_link_threads = no ; then
	if test $ol_with_threads = yes ; then
		as_fn_error $? "no suitable thread support" "$LINENO" 5
	fi
d16632 1
a16632 5
	if test $ol_with_threads = auto ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
		ol_with_threads=no
	fi
d16634 1
d16636 8
a16643 1
$as_echo "#define NO_THREADS 1" >>confdefs.h
a16644 4
	LTHREAD_LIBS=""
	BUILD_THREAD=no
else
	BUILD_THREAD=yes
d16647 16
a16662 1
if test $ol_link_threads != no ; then
d16664 5
a16668 1
$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
d16672 1
a16672 4
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
case "$ol_with_threads" in
 no)
    ol_pthread_ok=no
d16674 21
a16694 5
    ;;
 *)
    ol_found_pthreads=yes
    ;;
esac
d16696 2
a16697 17
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    case "$ol_found_pthreads" in
     yes)
	saved_LIBS="$LIBS"
	LIBS="$LTHREAD_LIBS $LIBS"
	saved_CFLAGS="$CFLAGS"
	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
	for ac_func in sem_timedwait
do :
  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
if test "x$ac_cv_func_sem_timedwait" = xyes; then :
d16699 1
a16699 1
#define HAVE_SEM_TIMEDWAIT 1
d16703 1
d16706 5
a16710 19
	LIBS="$saved_LIBS"
	{ saved_LIBS=; unset saved_LIBS;}
	CFLAGS="$saved_CFLAGS"
	{ saved_CFLAGS=; unset saved_CFLAGS;}
	case "$ac_cv_func_sem_timedwait" in
	 yes)
	    PTHREAD_LIBS="$LTHREAD_LIBS"
	    have_pthreads=yes
	    # Bug 2332: With GCC we need to force a reference to libgcc_s
	    # (if libgcc_s exists) or the combination of
	    # threads + setuid + mlockall does not work on linux because
	    # thread cancellation fails to load libgcc_s with dlopen().
	    # We have to pass this all as linker options to avoid argument
	    # reordering by libtool.
	    case "$GCC$with_gnu_ld" in
	    yesyes)
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lgcc_s" >&5
$as_echo_n "checking for exit in -lgcc_s... " >&6; }
if ${ac_cv_lib_gcc_s_exit+:} false; then :
d16713 1
a16713 3
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgcc_s  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16716 11
a16726 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char exit ();
int
main ()
{
return exit ();
  ;
  return 0;
}
d16728 3
a16730 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gcc_s_exit=yes
d16732 2
a16733 10
  ac_cv_lib_gcc_s_exit=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_exit" >&5
$as_echo "$ac_cv_lib_gcc_s_exit" >&6; }
if test "x$ac_cv_lib_gcc_s_exit" = xyes; then :
  PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed"
d16735 1
a16736 5
		;;
	    esac
	esac
    esac
esac
d16738 4
a16741 1
case "$have_pthreads" in
a16742 17
    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
    saved_LIBS="$LIBS"
    LIBS="$LTHREAD_LIBS $LIBS"
    saved_CFLAGS="$CFLAGS"
    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
$as_echo_n "checking size of pthread_t... " >&6; }
if ${ac_cv_sizeof_pthread_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
	    $ac_includes_default
	    #include <pthread.h>
d16744 3
d16748 7
a16754 1
"; then :
a16755 9
else
  if test "$ac_cv_type_pthread_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (pthread_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_pthread_t=0
   fi
d16758 1
a16758 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
d16760 2
d16763 1
d16765 8
a16772 2
cat >>confdefs.h <<_ACEOF
#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
d16775 3
d16779 8
a16786 1
    LIBISC_PTHREADS_NOTHREADS=pthreads
d16788 1
a16788 1
$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
d16790 1
a16790 16
    #
    # We'd like to use sigwait() too
    #
    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
if test "x$ac_cv_func_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
$as_echo_n "checking for sigwait in -lc... " >&6; }
if ${ac_cv_lib_c_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16792 10
a16801 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
d16803 1
a16803 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_sigwait=yes
else
  ac_cv_lib_c_sigwait=no
a16804 18
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
$as_echo "$ac_cv_lib_c_sigwait" >&6; }
if test "x$ac_cv_lib_c_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
$as_echo_n "checking for sigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16806 11
a16816 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
d16818 1
a16818 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread_sigwait=yes
else
  ac_cv_lib_pthread_sigwait=no
a16819 18
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread__Psigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16821 9
a16829 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char _Psigwait ();
int
main ()
{
return _Psigwait ();
  ;
  return 0;
}
d16831 1
a16831 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread__Psigwait=yes
else
  ac_cv_lib_pthread__Psigwait=no
a16832 10
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
  have_sigwait=yes
else
  have_sigwait=no
d16834 1
a16834 1
fi
d16836 9
d16848 1
d16850 11
a16860 2
fi

d16864 1
a16864 11
    case "$host:$have_sigwait" in
     *-freebsd*:no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
$as_echo_n "checking for sigwait in -lc_r... " >&6; }
if ${ac_cv_lib_c_r_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc_r  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16866 10
a16875 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
a16876 13
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_r_sigwait=yes
else
  ac_cv_lib_c_r_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
  have_sigwait=yes
d16880 1
a16880 4
    esac
    case "$have_sigwait" in
     yes)
	ac_cv_func_sigwait=yes
d16882 4
a16885 5
$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h

    esac

    for ac_func in pthread_attr_getstacksize
d16887 3
a16889 2
  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
d16891 1
a16891 1
#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
d16895 1
d16898 6
a16903 1
    for ac_func in pthread_attr_setstacksize sysconf
d16905 3
a16907 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d16909 1
a16909 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16913 1
d16916 10
d16927 1
a16927 4
    case "$host" in
     *-freebsd5.[012]|*-freebsd5.[012].*)
	;;
     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
d16929 1
a16929 1
$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
d16931 11
a16941 2
	;;
     *-bsdi3.*|*-bsdi4.0*)
d16943 1
a16943 1
$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
d16945 1
a16945 4
	;;
     *-linux*)

$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
d16947 1
a16947 5
	;;
     *-solaris*)
	$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

	for ac_func in pthread_setconcurrency
d16949 3
a16951 2
  ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
d16953 1
a16953 1
#define HAVE_PTHREAD_SETCONCURRENCY 1
d16957 1
d16960 8
a16967 2
	case "$ac_cv_func_pthread_setconcurrency" in
	 yes)
d16969 1
a16969 1
$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
d16971 1
a16971 3
	esac
	;;
     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
d16973 1
a16973 19
$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h

	;;
    esac
    hack_shutup_pthreadonceinit=no
    case "$host" in
     *-aix5.[123].*)
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.[89])
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.1[0-9])
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16976 10
a16985 1
			#include <pthread.h>
d16987 12
a16998 3
int
main ()
{
a16999 2
		        static pthread_once_t once_test =
						PTHREAD_ONCE_INIT;
d17001 4
a17004 4

  ;
  return 0;
}
a17005 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_braces_around_pthread_once_init=no
else
  ntp_cv_braces_around_pthread_once_init=yes
a17007 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d17009 1
a17009 13
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
	case "$ntp_cv_braces_around_pthread_once_init" in
	 yes)
	    hack_shutup_pthreadonceinit=yes
	esac
	;;
    esac
    case "$hack_shutup_pthreadonceinit" in
     yes)

$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
a17010 10
    esac
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
    CFLAGS="$saved_CFLAGS"
    { saved_CFLAGS=; unset saved_CFLAGS;}
    ;;
 *)
    LIBISC_PTHREADS_NOTHREADS=nothreads
    ;;
esac
a17011 6
 if test "$have_pthreads" != "no"; then
  PTHREADS_TRUE=
  PTHREADS_FALSE='#'
else
  PTHREADS_TRUE='#'
  PTHREADS_FALSE=
d17013 1
d17015 8
d17024 1
d17026 1
d17028 3
a17030 8



case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
 no:yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
if ${ntp_cv_vsnprintf_percent_m+:} false; then :
a17032 4
  if test "$cross_compiling" = yes; then :
  ntp_cv_vsnprintf_percent_m=no

else
d17035 3
a17037 29

		    #include <stdarg.h>
		    #include <errno.h>
		    #include <stdio.h>
		    #include <string.h>

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    );

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    )
		    {
			    va_list	ap;
			    int		rc;

			    va_start(ap, fmt);
			    rc = vsnprintf(dst, sz, fmt, ap);
			    va_end(ap);

			    return rc;
		    }
d17042 2
a17043 12

		    char	sbuf[512];
		    char	pbuf[512];
		    int		slen;

		    strcpy(sbuf, strerror(ENOENT));
		    errno = ENOENT;
		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
					  "wrong");
		    return strcmp(sbuf, pbuf);


d17048 2
a17049 2
if ac_fn_c_try_run "$LINENO"; then :
  ntp_cv_vsnprintf_percent_m=yes
d17051 1
a17051 1
  ntp_cv_vsnprintf_percent_m=no
d17053 1
a17053 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d17055 3
d17059 1
a17059 30

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
    case "$ntp_cv_vsnprintf_percent_m" in
     yes)

$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h

    esac
esac

for ac_header in sys/clockctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_CLOCKCTL_H 1
_ACEOF

fi

done


# Check whether --enable-clockctl was given.
if test "${enable_clockctl+set}" = set; then :
  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
else
  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
d17063 3
a17065 8

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
$as_echo "$ntp_use_dev_clockctl" >&6; }


for ac_header in sys/capability.h sys/prctl.h
a17077 13

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }

case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
 yesyes)
    case "$host" in
     mips-sgi-irix*)
	ntp_have_linuxcaps=no
	;;
     *) ntp_have_linuxcaps=yes
	;;
    esac
d17079 9
a17087 8
 *)
    ntp_have_linuxcaps=no
    ;;
esac

# Check whether --enable-linuxcaps was given.
if test "${enable_linuxcaps+set}" = set; then :
  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
d17091 1
a17092 9
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
$as_echo "$ntp_have_linuxcaps" >&6; }

case "$ntp_have_linuxcaps" in
 yes)

$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h

    LIBS="$LIBS -lcap"
d17096 3
a17098 2

for ac_header in priv.h
d17100 3
a17102 2
  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
if test "x$ac_cv_header_priv_h" = xyes; then :
d17104 1
a17104 1
#define HAVE_PRIV_H 1
a17107 1

d17110 1
a17110 18

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }

case "$ac_cv_header_priv_h" in
 yes)
    case "$host" in
     *-solaris*)
	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
if test "x$ac_cv_func_setppriv" = xyes; then :
  ntp_have_solarisprivs=yes
else
  ntp_have_solarisprivs=no

fi

	;;
    esac
d17112 1
a17112 10

# Check whether --enable-solarisprivs was given.
if test "${enable_solarisprivs+set}" = set; then :
  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval

fi



case "$ntp_have_solarisprivs" in
d17114 5
a17118 20

$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
$as_echo "$ntp_have_solarisprivs" >&6; }

case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
 *yes*)

$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h

esac

case "$host" in
 *-*-darwin*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
$as_echo_n "checking for library containing res_9_init... " >&6; }
if ${ac_cv_search_res_9_init+:} false; then :
d17121 2
a17122 1
  ac_func_search_save_LIBS=$LIBS
d17132 1
a17132 1
char res_9_init ();
d17136 1
a17136 1
return res_9_init ();
d17141 4
a17144 9
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_9_init=$ac_res
d17147 2
a17148 3
    conftest$ac_exeext
  if ${ac_cv_search_res_9_init+:} false; then :
  break
d17150 6
a17155 2
done
if ${ac_cv_search_res_9_init+:} false; then :
d17157 1
a17157 11
else
  ac_cv_search_res_9_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
$as_echo "$ac_cv_search_res_9_init" >&6; }
ac_res=$ac_cv_search_res_9_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17160 3
a17162 5

    ;;
 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
$as_echo_n "checking for library containing res_init... " >&6; }
if ${ac_cv_search_res_init+:} false; then :
d17165 2
a17166 1
  ac_func_search_save_LIBS=$LIBS
d17170 1
a17170 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char res_init ();
d17174 1
a17174 1
return res_init ();
d17179 4
a17182 9
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_init=$ac_res
d17185 2
a17186 44
    conftest$ac_exeext
  if ${ac_cv_search_res_init+:} false; then :
  break
fi
done
if ${ac_cv_search_res_init+:} false; then :

else
  ac_cv_search_res_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
$as_echo "$ac_cv_search_res_init" >&6; }
ac_res=$ac_cv_search_res_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

    ;;
esac
for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

d17188 3
a17190 18

done


#HMS: Why do we do this check so "early"?
for ac_func in res_init
do :
  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
if test "x$ac_cv_func_res_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RES_INIT 1
_ACEOF

else
  for ac_func in __res_init
do :
  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
if test "x$ac_cv_func___res_init" = xyes; then :
d17192 1
a17192 35
#define HAVE___RES_INIT 1
_ACEOF

fi
done

fi
done


# We also need -lsocket, but we have tested for that already.
ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
if test "x$ac_cv_func_inet_ntop" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
if test "x$ac_cv_func_inet_pton" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h

fi


ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
d17195 1
d17197 4
a17200 28
fi
ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
if test "x$ac_cv_type_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
if test "x$ac_cv_type_u_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT32 1
_ACEOF


fi




case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
$as_echo_n "checking for int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_int32_with_dns+:} false; then :
d17203 3
a17205 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17208 7
a17214 5
		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>

d17218 1
a17218 4

		    size_t cb = sizeof(int32);


d17223 2
a17224 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_type_int32_with_dns=yes
d17226 1
a17226 2
  ntp_cv_type_int32_with_dns=no

d17228 3
a17230 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d17232 6
a17237 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
$as_echo "$ntp_cv_type_int32_with_dns" >&6; }
    case "$ntp_cv_type_int32_with_dns" in
     yes)
d17239 1
a17239 1
$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
d17241 1
a17241 2
    esac
esac
d17243 3
a17245 5
case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
$as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_u_int32_with_dns+:} false; then :
d17248 3
a17250 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17253 7
a17259 5
		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>

d17263 1
a17263 4

		    size_t cb = sizeof(u_int32);


d17268 2
a17269 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_type_u_int32_with_dns=yes
d17271 1
a17271 2
  ntp_cv_type_u_int32_with_dns=no

d17273 3
a17275 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d17277 6
a17282 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
    case "$ntp_cv_type_u_int32_with_dns" in
     yes)
d17284 1
a17284 1
$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
d17286 1
a17286 2
    esac
esac
d17288 1
a17288 1
for ac_header in sys/timepps.h
d17290 3
a17292 11
  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
	#ifdef HAVE_SYS_TIME_H
	# include <sys/time.h>
	#endif
	#ifdef HAVE_ERRNO_H
	# include <errno.h>
	#endif


"
if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
d17294 1
a17294 1
#define HAVE_SYS_TIMEPPS_H 1
d17301 4
d17306 4
a17309 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
$as_echo_n "checking for struct timespec... " >&6; }
if ${ntp_cv_struct_timespec+:} false; then :
d17315 1
a17315 10
		#include <sys/time.h>
		/* Under SunOS, timespec is in sys/timepps.h,
		   which needs errno.h and FRAC */
		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif
		#ifdef HAVE_SYS_TIMEPPS_H
		# define FRAC 4294967296
		# include <sys/timepps.h>
		#endif
d17321 2
a17322 1
		struct timespec n;
d17328 1
d17331 1
a17331 3
  ntp_cv_struct_timespec=yes
else
  ntp_cv_struct_timespec=no
d17337 4
a17340 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
$as_echo "$ntp_cv_struct_timespec" >&6; }
case "$ntp_cv_struct_timespec" in
 yes)
d17342 1
a17342 1
$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
d17344 2
d17348 14
a17361 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
$as_echo_n "checking for struct ntptimeval... " >&6; }
if ${ntp_cv_struct_ntptimeval+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d17363 1
a17363 2
		#include <sys/time.h>
		#include <sys/timex.h>
d17365 1
a17365 3
int
main ()
{
a17366 1
		struct ntptimeval n;
d17368 5
d17374 4
a17377 3
  ;
  return 0;
}
a17378 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ntptimeval=yes
else
  ntp_cv_struct_ntptimeval=no
a17380 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d17382 1
a17382 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
case "$ntp_cv_struct_ntptimeval" in
 yes)
a17383 1
$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
d17385 1
a17385 3
esac

for ac_header in md5.h
d17387 6
a17392 5
  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
	#ifdef HAVE_SYS_TYPES_H
	# include <sys/types.h>
	#endif

d17395 1
a17395 1
if test "x$ac_cv_header_md5_h" = xyes; then :
d17397 1
a17397 1
#define HAVE_MD5_H 1
d17405 5
a17409 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
$as_echo_n "checking for library containing MD5Init... " >&6; }
if ${ac_cv_search_MD5Init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d17411 4
a17414 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char MD5Init ();
int
main ()
{
return MD5Init ();
  ;
  return 0;
}
d17416 1
a17416 14
for ac_lib in '' md5 md; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_MD5Init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_MD5Init+:} false; then :
  break
d17418 1
a17419 1
if ${ac_cv_search_MD5Init+:} false; then :
a17420 11
else
  ac_cv_search_MD5Init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
$as_echo "$ac_cv_search_MD5Init" >&6; }
ac_res=$ac_cv_search_MD5Init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17422 11
a17432 1
fi
d17434 2
a17435 5
for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d17437 1
a17437 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d17441 1
d17445 3
a17447 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
$as_echo_n "checking for SIGIO... " >&6; }
if ${ntp_cv_hdr_def_sigio+:} false; then :
a17452 1
	    #include <signal.h>
d17454 6
a17459 3
	    #ifndef SIGIO
	    # error
	    #endif
d17461 4
d17466 2
a17467 4
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_hdr_def_sigio=yes
else
  ntp_cv_hdr_def_sigio=no
d17470 1
a17470 1
rm -f conftest.err conftest.i conftest.$ac_ext
d17473 3
a17475 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
$as_echo "$ntp_cv_hdr_def_sigio" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
$as_echo_n "checking if we want to use SIGIO... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigio" in
a17476 39
    ans=yes
    case "$host" in
     alpha*-dec-osf4*|alpha*-dec-osf5*)
	ans=no
	;;
     *-convex-*)
	ans=no
	;;
     *-dec-*)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-univel-sysv*)
	ans=no
	;;
     *-*-irix6*)
	ans=no
	;;
     *-*-freebsd*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     m68k-*-mint*)
	ans=no
	;;
    esac
d17478 1
a17478 3
esac
case "$ans" in
 yes)
d17480 1
a17480 1
$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
d17482 1
a17483 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d17485 3
a17487 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
$as_echo_n "checking for SIGPOLL... " >&6; }
if ${ntp_cv_hdr_def_sigpoll+:} false; then :
d17493 27
a17519 1
	    #include <signal.h>
d17521 24
a17544 3
	    #ifndef SIGPOLL
	    # error
	    #endif
d17546 3
d17550 2
a17551 2
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_hdr_def_sigpoll=yes
d17553 7
a17559 1
  ntp_cv_hdr_def_sigpoll=no
d17561 1
a17561 2
fi
rm -f conftest.err conftest.i conftest.$ac_ext
a17563 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
d17565 13
a17577 56
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-solaris*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)
d17579 2
a17580 1
$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
d17582 29
a17610 57
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)
d17612 8
a17619 1
$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
d17621 7
a17627 10
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17629 2
a17630 2

		#include <sys/time.h>
d17635 3
a17637 4

		gettimeofday(0, 0);
		settimeofday(0, 0);

d17644 1
a17644 1
  ntp_cv_func_Xettimeofday_nargs=2
d17646 3
a17648 2
  ntp_cv_func_Xettimeofday_nargs=1

d17651 6
d17658 6
a17663 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
case "$ntp_cv_func_Xettimeofday_nargs" in
 1)
d17665 9
a17673 1
$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
d17675 6
a17680 1
esac
d17682 3
a17684 6
for ac_func in settimeofday
do :
  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
if test "x$ac_cv_func_settimeofday" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETTIMEOFDAY 1
d17686 2
a17687 1

d17689 3
a17691 5

    case "$host" in
     *-*-mpeix*) ac_cv_func_settimeofday=yes
    esac

d17693 23
a17715 1
done
d17717 20
a17736 50

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
ntp_warning='GRONK'
ans=none
case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
 yes*)
    ntp_warning=''
    ans='clock_settime()'
    ;;
 noyes*)
    ntp_warning='But clock_settime() would be better (if we had it)'
    ans='settimeofday()'
    ;;
 nonoyes)
    ntp_warning='Which is the worst of the three'
    ans='stime()'
    ;;
 *)
    case "$build" in
     $host)
	ntp_warning='Which leaves us with nothing to use!'
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ntp_warning" in
 '')
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
    ;;
esac


LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
LIBS=$__LIBS
{ __LIBS=; unset __LIBS;}



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
$as_echo_n "checking for deprecated --with-arlib... " >&6; }

# Check whether --with-arlib was given.
if test "${with_arlib+set}" = set; then :
  withval=$with_arlib; ans=$withval
else
  ans=no
d17738 1
a17738 19

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&5
$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&2;}
    ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&6
d17740 6
a17745 17
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d17747 8
a17754 10
fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d17756 6
a17761 11

  test -n "$AWK" && break
done

{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
d17763 1
a17763 13
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
d17765 2
a17766 8
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
d17769 11
d17781 1
d17783 5
d17789 3
a17791 15

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
$as_echo_n "checking for library containing strerror... " >&6; }
if ${ac_cv_search_strerror+:} false; then :
d17794 1
a17794 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17796 2
a17798 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strerror ();
d17802 1
a17802 1
return strerror ();
d17807 2
a17808 18
for ac_lib in '' cposix; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_strerror=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_strerror+:} false; then :
  break
fi
done
if ${ac_cv_search_strerror+:} false; then :

d17810 1
a17810 1
  ac_cv_search_strerror=no
d17812 1
a17812 2
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
d17814 2
a17815 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
$as_echo "$ac_cv_search_strerror" >&6; }
ac_res=$ac_cv_search_strerror
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17817 3
a17819 1
fi
d17822 2
a17824 6
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_PERL+:} false; then :
  $as_echo_n "(cached) " >&6
a17825 19
  case $PATH_PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d17827 4
a17830 2
  ;;
esac
d17832 4
a17835 4
PATH_PERL=$ac_cv_path_PATH_PERL
if test -n "$PATH_PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
$as_echo "$PATH_PERL" >&6; }
d17837 5
a17841 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d17844 6
a17850 27
{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
# Extract the first word of "test", so it can be a program name with args.
set dummy test; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_TEST+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_TEST in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a17851 10
  ;;
esac
fi
PATH_TEST=$ac_cv_path_PATH_TEST
if test -n "$PATH_TEST"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
$as_echo "$PATH_TEST" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d17853 6
d17861 3
a17863 2
{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
d17865 3
a17868 5
# Check whether --with-net-snmp-config was given.
if test "${with_net_snmp_config+set}" = set; then :
  withval=$with_net_snmp_config; ans=$withval
else
  ans=yes
d17872 7
a17878 28
case "$ans" in
 no)
    ;;
 yes)
    ans=net-snmp-config
    ;;
 /*)
    ;;
 */*)
    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
    ;;
 *)
    ;;
esac
PROG_NET_SNMP_CONFIG=$ans
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
case "$PROG_NET_SNMP_CONFIG" in
 no) ;;
 /*)
    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
    ;;
 *)
    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
d17881 1
a17881 19
  case $PATH_NET_SNMP_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d17883 9
a17891 2
  ;;
esac
d17893 1
a17893 7
PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
if test -n "$PATH_NET_SNMP_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d17895 9
a17905 5
    { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
a17906 5
case "$host" in
 *-*-vxworks*)
    ac_link="$ac_link $VX_KERNEL"
    ;;
esac
d17908 3
a17910 4
# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
$as_echo_n "checking for library containing openlog... " >&6; }
if ${ac_cv_search_openlog+:} false; then :
d17913 1
a17913 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17915 2
a17917 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char openlog ();
d17921 3
a17923 1
return openlog ();
d17928 6
a17933 9
for ac_lib in '' gen syslog; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_openlog=$ac_res
d17935 6
a17940 4
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_openlog+:} false; then :
  break
a17941 2
done
if ${ac_cv_search_openlog+:} false; then :
d17943 5
d17949 10
a17958 10
  ac_cv_search_openlog=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
$as_echo "$ac_cv_search_openlog" >&6; }
ac_res=$ac_cv_search_openlog
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17960 1
a17960 1
fi
a17961 1
# XXX library list will be in ac_cv_search_openlog
d17963 6
a17968 7
# LIBSECCOMP is off by default -- needs testing with all the features
# Please send bug reports to loganaden@@gmail.com
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
# Check whether --enable-libseccomp was given.
if test "${enable_libseccomp+set}" = set; then :
  enableval=$enable_libseccomp; ntp_ok=$enableval
d17970 1
a17970 1
  ntp_ok=no
d17973 1
d17975 4
a17978 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok" in
d17980 8
a17987 3
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
$as_echo_n "checking for library containing seccomp_init... " >&6; }
if ${ac_cv_search_seccomp_init+:} false; then :
d17990 1
a17990 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17993 4
a17996 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char seccomp_init ();
d18000 4
a18003 1
return seccomp_init ();
d18008 5
a18012 9
for ac_lib in '' seccomp; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_seccomp_init=$ac_res
d18014 1
a18014 7
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_seccomp_init+:} false; then :
  break
fi
done
if ${ac_cv_search_seccomp_init+:} false; then :
a18015 2
else
  ac_cv_search_seccomp_init=no
d18017 4
a18020 8
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
$as_echo "$ac_cv_search_seccomp_init" >&6; }
ac_res=$ac_cv_search_seccomp_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18022 1
a18022 1
$as_echo "#define LIBSECCOMP 1" >>confdefs.h
d18024 1
d18026 4
a18029 7
fi

    if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
a18030 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d18032 9
a18040 5
	#include <stdio.h>
	#include <stdlib.h>
	#include <errno.h>
	#include <sys/prctl.h>
	#include <linux/seccomp.h>
a18041 28
	int main(void)
	{
		int ret;
		ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
		if (ret < 0) {
			switch (errno) {
			case ENOSYS:
				return 1;
			case EINVAL:
				return 1;
			default:
				return 1;
			}
		}
		ret =
		prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
		if (ret < 0) {
			switch (errno) {
			case EINVAL:
				return 1;
			case EFAULT:
				return 0;
			default:
				return 1;
		}
	}
return 1;
}
d18043 3
d18047 2
a18049 1
if ac_fn_c_try_run "$LINENO"; then :
d18051 25
a18075 1
$as_echo "#define KERN_SECCOMP 1" >>confdefs.h
d18079 6
a18084 3
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a18085 1
    ;;
d18088 5
a18092 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
$as_echo_n "checking for facilitynames in syslog.h... " >&6; }
if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
d18095 1
a18095 2

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18098 4
a18101 3
#define SYSLOG_NAMES
#include <stdlib.h>
#include <syslog.h>
d18106 4
a18109 1
 void *fnames; fnames = facilitynames;
d18115 1
a18115 1
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
d18117 2
a18118 1
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
d18121 1
d18123 2
a18124 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
 yes)
d18126 3
a18128 27
$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h

    ;;
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
    ;;
 cross)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
    ;;
esac



case "$host" in
 *-*-*linux*) ;;
 *-*-osf4*) ;;
 *-*-osf5*) ;;
 *)
    # HMS: Make sure we check for -lrt for clock_* before this...
    case "$ac_cv_search_clock_gettime" in
     '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
$as_echo_n "checking for library containing sched_setscheduler... " >&6; }
if ${ac_cv_search_sched_setscheduler+:} false; then :
d18131 1
a18131 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18134 4
a18137 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_setscheduler ();
d18141 4
a18144 1
return sched_setscheduler ();
d18149 5
a18153 9
for ac_lib in '' rt posix4; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_sched_setscheduler=$ac_res
d18155 1
a18155 7
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_sched_setscheduler+:} false; then :
  break
fi
done
if ${ac_cv_search_sched_setscheduler+:} false; then :
a18156 2
else
  ac_cv_search_sched_setscheduler=no
d18158 2
a18159 8
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
$as_echo "$ac_cv_search_sched_setscheduler" >&6; }
ac_res=$ac_cv_search_sched_setscheduler
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18161 2
a18162 1
fi
d18164 1
a18164 2
    ;;
esac
d18166 2
a18167 7
for ac_header in bstring.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
if test "x$ac_cv_header_bstring_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_BSTRING_H 1
_ACEOF
d18169 1
a18169 1
fi
d18171 2
a18172 1
done
d18174 3
a18176 5
ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
if test "x$ac_cv_header_dns_sd_h" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
$as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
if ${ac_cv_search_DNSServiceRegister+:} false; then :
d18179 1
a18179 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18182 2
a18183 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char DNSServiceRegister ();
d18187 5
a18191 1
return DNSServiceRegister ();
d18196 4
a18199 17
for ac_lib in '' dns_sd; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_DNSServiceRegister=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_DNSServiceRegister+:} false; then :
  break
fi
done
if ${ac_cv_search_DNSServiceRegister+:} false; then :
a18200 2
else
  ac_cv_search_DNSServiceRegister=no
d18202 1
a18202 11
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
$as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
ac_res=$ac_cv_search_DNSServiceRegister
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h

d18205 4
d18210 1
d18212 1
a18212 1
fi
d18214 7
d18222 12
a18233 8
for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18235 3
a18237 1
fi
d18239 2
a18240 1
done
d18243 3
a18245 7
for ac_header in memory.h netdb.h poll.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18247 4
d18253 1
a18253 11

done

for ac_header in sgtty.h stdlib.h string.h termio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18256 4
d18261 1
a18261 1
done
d18263 1
a18263 8
for ac_header in termios.h timepps.h timex.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18265 7
a18271 1
fi
d18273 9
a18281 1
done
d18283 3
d18287 1
a18287 11
case "$host" in
 *-*-aix*)
    for ac_header in utmpx.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
if test "x$ac_cv_header_utmpx_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMPX_H 1
_ACEOF

fi
a18288 1
done
d18290 3
a18292 10
    case "$ac_cv_header_utmpx_h" in
     yes)
	;;
     *)
	for ac_header in utmp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
if test "x$ac_cv_header_utmp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMP_H 1
d18294 4
d18300 1
a18300 15

done

	;;
    esac
    ;;
 *)
    for ac_header in utmp.h utmpx.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18303 4
d18308 1
a18308 1
done
a18309 1
    ;;
d18312 17
a18328 17
#
# On Suns only (so far) getpass() truncates the typed password to 8
# characters, but getpassphrase() allows up to 257.  Most systems'
# getpass() does not truncate, at least not so as to affect ntpq and
# ntpdc password prompts.
#
# So check for getpassphrase(), but only on Sun operating systems.
#
case "$host" in
 *-*-sunos*|*-*-solaris*)
    for ac_func in getpassphrase
do :
  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
if test "x$ac_cv_func_getpassphrase" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETPASSPHRASE 1
_ACEOF
d18330 3
a18332 2
fi
done
d18334 2
a18335 1
esac
d18338 3
a18340 6
for ac_header in net/if6.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
if test "x$ac_cv_header_net_if6_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF6_H 1
d18342 4
d18348 1
d18350 3
a18352 1
done
d18354 9
a18362 6
for ac_header in net/route.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <net/if.h>
d18364 9
a18372 5
"
if test "x$ac_cv_header_net_route_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_ROUTE_H 1
_ACEOF
d18374 3
a18376 1
fi
d18378 2
a18379 1
done
d18382 3
a18384 6
for ac_header in netinfo/ni.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NETINFO_NI_H 1
d18386 7
d18395 4
d18400 1
a18400 1
done
d18402 2
a18403 2
case "$ac_cv_header_netinfo_ni_h" in
 yes)
a18404 1
$as_echo "#define HAVE_NETINFO 1" >>confdefs.h
a18405 9
esac
for ac_header in sun/audioio.h sys/audioio.h sys/file.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18407 7
a18413 1
fi
d18415 9
a18423 1
done
d18425 3
a18427 11
case "$host" in
 *-*-sunos4*)
    ;;
 *)
    for ac_header in sys/ioctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_IOCTL_H 1
_ACEOF
d18429 2
a18430 1
fi
a18431 1
done
d18433 3
a18435 9
    ;;
esac
for ac_header in sys/ipc.h sys/lock.h sys/mman.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18437 4
d18443 1
d18445 3
a18447 1
done
d18449 9
a18457 9
# HMS: Check sys/proc.h and sys/resource.h after some others
for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18459 9
a18467 1
fi
d18469 3
a18471 13
done

case "$ac_cv_header_sched_h" in
 yes)
    ;;
 *)
    for ac_header in sys/sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SCHED_H 1
_ACEOF
d18473 2
a18474 1
fi
a18475 1
done
d18477 3
a18479 10
    ;;
esac
# HMS: Check sys/shm.h after some others
for ac_header in sys/select.h sys/signal.h sys/sockio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18481 4
d18487 1
a18487 16

done

# HMS: Checked sys/socket.h earlier
case "$host" in
 *-*-netbsd*)
    ;;
 *)
    for ac_header in machine/soundcard.h sys/soundcard.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18490 4
d18495 1
a18495 1
done
d18497 1
a18497 1
    ;;
a18498 8
for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a18499 1
fi
a18500 1
done
d18502 10
a18511 8
for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18513 2
a18514 1
fi
d18516 3
a18518 1
done
d18520 2
a18521 10
case "$host" in
*-convex-*)
    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a18522 1
fi
d18524 3
a18526 11
done

    ;;
*-*-bsdi*)
    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18528 4
d18534 1
d18536 5
a18540 1
done
d18542 1
a18542 19
    ;;
esac

case "$host" in
 *-*-solaris2.6)
    # Broken...
    ;;
 *)
    for ac_func in ntp_adjtime ntp_gettime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done
a18543 1
    ;;
d18546 9
a18554 13
case "$host" in
 *-*-*linux*)
    case "$ac_cv_func_ntp_gettime" in
     yes)
	;;
     *)
	for ac_func in __ntp_gettime
do :
  ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
if test "x$ac_cv_func___ntp_gettime" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___NTP_GETTIME 1
_ACEOF
d18556 6
a18561 2
fi
done
d18563 3
a18565 2
	case "$ac_cv_func___ntp_gettime" in
	 yes)
d18567 2
a18568 1
$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
d18571 3
a18573 11
$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h

	esac
	;;
    esac
    for ac_func in adjtimex
do :
  ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
if test "x$ac_cv_func_adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ADJTIMEX 1
d18575 4
d18581 1
a18581 1
done
d18583 4
a18586 1
    case "$ac_cv_func_adjtimex" in
d18589 1
a18589 1
$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
d18591 2
d18594 7
a18600 1
$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
d18602 1
a18602 10
	have_adjtimex=1
	;;
     *)
	for ac_func in __adjtimex
do :
  ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
if test "x$ac_cv_func___adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___ADJTIMEX 1
_ACEOF
d18604 3
a18606 2
fi
done
d18608 2
a18609 2
	case "$ac_cv_func___adjtimex" in
	 yes)
a18610 1
$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
d18612 8
d18621 2
a18622 1
$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
d18624 5
d18630 1
a18630 1
$as_echo "#define adjtimex __adjtimex" >>confdefs.h
d18632 1
d18634 3
a18636 15
$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h

	    have_adjtimex=1
	esac
	;;
    esac
esac
case "$have_adjtimex" in
 '')
    # nlist stuff is only needed for tickadj.
    saved_LIBS="$LIBS"
    LIBS=
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
$as_echo_n "checking for library containing nlist... " >&6; }
if ${ac_cv_search_nlist+:} false; then :
d18639 1
a18639 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18642 2
a18643 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
a18646 22
return nlist ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' elf ld mld; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_nlist=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_nlist+:} false; then :
  break
fi
done
if ${ac_cv_search_nlist+:} false; then :
d18648 10
d18659 2
a18660 1
  ac_cv_search_nlist=no
d18662 2
a18663 2
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
d18665 6
a18670 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
$as_echo "$ac_cv_search_nlist" >&6; }
ac_res=$ac_cv_search_nlist
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18672 1
a18672 1
fi
d18674 3
a18676 4
    # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
$as_echo_n "checking for library containing kvm_open... " >&6; }
if ${ac_cv_search_kvm_open+:} false; then :
d18679 1
a18679 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18682 11
a18692 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char kvm_open ();
d18696 4
a18699 1
return kvm_open ();
d18704 2
a18705 18
for ac_lib in '' kvm; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_kvm_open=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_kvm_open+:} false; then :
  break
fi
done
if ${ac_cv_search_kvm_open+:} false; then :

d18707 1
a18707 10
  ac_cv_search_kvm_open=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
$as_echo "$ac_cv_search_kvm_open" >&6; }
ac_res=$ac_cv_search_kvm_open
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18710 1
a18710 9
	    # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
    for ac_header in nlist.h sys/var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18713 4
d18718 1
a18718 1
done
d18720 1
a18720 2
    case "$ac_cv_header_nlist_h" in
     yes)
d18722 3
a18724 5
$as_echo "#define NLIST_STRUCT 1" >>confdefs.h

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
$as_echo_n "checking for n_un in struct nlist... " >&6; }
if ${ntp_cv_struct_nlist_n_un+:} false; then :
d18730 2
a18731 1
			#include <nlist.h>
d18737 1
a18737 2
			struct nlist n;
			n.n_un.n_name = 0;
a18742 1
		ntp_cv_struct_nlist_n_un=yes
d18745 3
a18747 1
  ntp_cv_struct_nlist_n_un=no
d18753 4
a18756 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
	case "$ntp_cv_struct_nlist_n_un" in
	 yes)
d18758 1
a18758 1
$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
d18760 1
a18760 2
	esac
    esac
d18762 15
a18776 4
    LDADD_NLIST="$LIBS"
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
esac
a18777 9
for ac_header in sys/proc.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif
d18780 4
a18783 3
if test "x$ac_cv_header_sys_proc_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PROC_H 1
d18786 1
a18788 1
done
d18790 14
a18804 11
for ac_header in sys/resource.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif

"
if test "x$ac_cv_header_sys_resource_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_RESOURCE_H 1
d18806 2
a18807 1

d18809 2
a18810 1

d18813 3
d18817 11
a18827 14
for ac_header in sys/shm.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_IPC_H
    # include <sys/ipc.h>
    #endif

"
if test "x$ac_cv_header_sys_shm_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SHM_H 1
d18829 2
a18831 1
fi
d18833 4
a18836 1
done
d18838 1
a18839 6
for ac_header in sys/timex.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif
d18841 1
a18841 5
"
if test "x$ac_cv_header_sys_timex_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEX_H 1
_ACEOF
d18843 3
a18845 8
fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
if ${ac_cv_type_signal+:} false; then :
d18850 1
a18850 3
#include <sys/types.h>
#include <signal.h>

d18854 3
a18856 1
return *(signal (0, 0)) (0) == 1;
d18861 33
a18893 4
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_signal=int
else
  ac_cv_type_signal=void
d18895 1
a18895 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d18897 4
a18900 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }
d18903 1
a18903 1
#define RETSIGTYPE $ac_cv_type_signal
d18907 2
a18908 4
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
if test "x$ac_cv_type_off_t" = xyes; then :

else
d18911 1
a18911 1
#define off_t long int
d18914 1
d18917 7
a18923 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if ${ac_cv_struct_tm+:} false; then :
d18926 1
a18926 4
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>
a18927 12
int
main ()
{
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_tm=time.h
d18929 8
a18936 1
  ac_cv_struct_tm=sys/time.h
d18938 1
a18938 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d18940 4
a18943 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then
d18945 3
a18947 1
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a18948 1
fi
d18950 7
a18956 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
$as_echo_n "checking for a fallback value for HZ... " >&6; }
if ${ntp_cv_default_hz+:} false; then :
d18959 12
d18972 3
a18974 9
	ntp_cv_default_hz=100
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_default_hz=1024
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_default_hz=256
	    ;;
	esac
a18976 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
$as_echo "$ntp_cv_default_hz" >&6; }
d18979 1
a18979 1
#define DEFAULT_HZ $ntp_cv_default_hz
a18982 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
if ${ntp_cv_override_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else
d18984 6
a18989 18
	ntp_cv_override_hz=no
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_override_hz=yes
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-freebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-sunos4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-kfreebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	esac
d18991 1
d18993 3
a18995 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
$as_echo "$ntp_cv_override_hz" >&6; }
case "$ntp_cv_override_hz" in
 yes)
d18997 1
a18997 1
$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
d18999 7
a19005 1
esac
d19007 1
d19009 5
a19013 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
$as_echo_n "checking for struct rt_msghdr... " >&6; }
if ${ntp_cv_struct_rt_msghdr+:} false; then :
d19018 1
d19020 8
a19027 4
		#include <sys/types.h>
		#include <sys/socket.h>
		#include <net/if.h>
		#include <net/route.h>
d19029 4
a19032 3
int
main ()
{
d19034 1
a19034 1
		struct rt_msghdr p;
d19037 1
a19037 8
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_rt_msghdr=yes
else
  ntp_cv_struct_rt_msghdr=no
a19039 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19040 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
d19042 12
a19053 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
$as_echo_n "checking for struct rtattr... " >&6; }
if ${ntp_cv_rtattr+:} false; then :
d19056 2
a19057 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19060 7
a19066 4
		#include <stddef.h>
		#include <sys/socket.h>
		#include <linux/rtnetlink.h>

d19070 22
a19092 9
		struct rtattr p;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rtattr=yes
d19094 10
a19103 1
  ntp_cv_rtattr=no
d19106 9
a19114 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19117 1
a19117 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
$as_echo "$ntp_cv_rtattr" >&6; }
d19119 9
a19127 2
case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
 *yes*)
d19129 2
a19130 1
$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
d19132 7
a19138 2
    case "$ntp_cv_rtattr" in
     yes)
d19140 8
a19147 1
$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
d19149 1
a19149 2
    esac
esac
d19151 5
a19155 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19158 1
a19158 1
		#include <signal.h>
d19164 2
a19165 2
		struct sigaction act;
		act.sa_sigaction = 0;
d19172 2
a19173 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_sigaction_has_sa_sigaction=yes
d19175 1
a19175 1
  ntp_cv_struct_sigaction_has_sa_sigaction=no
d19178 11
a19188 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19191 1
a19191 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
 yes)
a19192 1
$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
d19194 2
a19195 1
esac
a19196 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
$as_echo_n "checking for struct ppsclockev... " >&6; }
if ${ntp_cv_struct_ppsclockev+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d19198 8
a19205 12
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TERMIOS_H
		# include <sys/termios.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_PPSCLOCK_H
		# include <sys/ppsclock.h>
		#endif
d19207 2
a19208 3
int
main ()
{
a19209 2
		extern struct ppsclockev *pce;
		return pce->serial;
d19211 3
a19213 7

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ppsclockev=yes
d19215 1
a19215 1
  ntp_cv_struct_ppsclockev=no
a19217 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19218 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
case "$ntp_cv_struct_ppsclockev" in
 yes)
d19220 21
a19240 1
$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
d19242 2
a19243 1
esac
d19245 7
a19251 5
case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
  *yes*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
$as_echo_n "checking for struct snd_size... " >&6; }
if ${ntp_cv_struct_snd_size+:} false; then :
d19254 3
a19256 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19259 7
a19265 7
		    #ifdef HAVE_MACHINE_SOUNDCARD_H
		    # include <machine/soundcard.h>
		    #endif
		    #ifdef HAVE_SYS_SOUNDCARD_H
		    # include <sys/soundcard.h>
		    #endif

d19269 1
a19269 5

		    extern struct snd_size *ss;
		    return ss->rec_size;


d19274 2
a19275 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_snd_size=yes
d19277 5
a19281 2
  ntp_cv_struct_snd_size=no

d19283 6
a19288 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19290 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
$as_echo "$ntp_cv_struct_snd_size" >&6; }
    case "$ntp_cv_struct_snd_size" in
     yes)
d19292 4
a19295 1
$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
d19297 8
d19306 14
d19322 10
a19331 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
$as_echo_n "checking struct clockinfo for hz... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19334 6
a19339 1
		#include <sys/time.h>
d19345 3
a19347 2
		extern struct clockinfo *pc;
		return pc->hz;
d19355 12
a19366 3
  ntp_cv_struct_clockinfo_has_hz=yes
else
  ntp_cv_struct_clockinfo_has_hz=no
d19369 16
a19384 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19387 4
a19390 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)
d19392 1
a19392 1
$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
d19394 3
d19398 2
d19401 8
a19408 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
d19411 2
a19412 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19415 7
a19421 2
		#include <sys/time.h>

d19425 1
a19425 5

		extern struct clockinfo *pc;
		return pc->tickadj;


d19430 18
a19447 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_clockinfo_has_hz=yes
d19449 1
a19449 2
  ntp_cv_struct_clockinfo_has_hz=no

d19451 2
a19452 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d19454 5
a19458 35
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)

$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h

esac

case "$ntp_cv_struct_ntptimeval" in
 yes)
    ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
	    #ifdef HAVE_SYS_TIME_H
	    # include <sys/time.h>
	    #else
	    # ifdef HAVE_TIME_H
	    #  include <time.h>
	    # endif
	    #endif
	    #ifdef HAVE_SYS_TIMEX_H
	    # include <sys/timex.h>
	    #else
	    # ifdef HAVE_TIMEX_H
	    #  include <timex.h>
	    # endif
	    #endif


"
if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
_ACEOF

d19463 1
a19463 6

####

saved_LIBS="$LIBS"
LIBS="$LIBS $LDADD_LIBNTP"
for ac_func in daemon
d19465 2
a19466 2
  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
if test "x$ac_cv_func_daemon" = xyes; then :
d19468 1
a19468 1
#define HAVE_DAEMON 1
d19474 2
a19475 3
# XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
LIBS="$saved_LIBS"
{ saved_LIBS=; unset saved_LIBS;}
d19477 1
a19477 7
for ac_func in finite
do :
  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
if test "x$ac_cv_func_finite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FINITE 1
_ACEOF
d19479 1
a19479 8
else
  for ac_func in isfinite
do :
  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
if test "x$ac_cv_func_isfinite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ISFINITE 1
_ACEOF
d19481 4
d19486 2
a19487 7

	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
$as_echo_n "checking for isfinite with <math.h>... " >&6; }
	    _libs=$LIBS
	    # XXX
	    LIBS="$LIBS -lm"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19490 7
a19496 2
			#include <math.h>

d19500 1
a19500 5

			float f = 0.0;
			isfinite(f);


d19505 18
a19522 2
if ac_fn_c_try_link "$LINENO"; then :
  ans=yes
d19524 10
a19533 1
  ans=no
a19535 8
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    LIBS=$_libs
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
	    case "$ans" in
	     yes)
		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
d19537 4
a19540 1
	    esac
d19542 1
a19544 1
done
d19546 2
d19549 1
a19549 2
fi
done
d19551 1
a19551 9

for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a19553 1
done
a19555 1
# kvm_open() is only used by tickadj.  Also see above.
d19572 12
d19586 1
a19586 1
    # Just stubs.  Sigh.
d19613 2
a19614 3
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub.  Sigh.
d19617 4
a19620 1
    # Just a stub in "old" Irix.  Sigh.
a19621 4
# In the belief that the fix for bug 1223 fixes mlockall() under linux...
# *-*-*linux*)
#    # there, but more trouble than it is worth for now (resolver problems)
#    ;;
d19623 1
a19623 1
    # Apparently there but not working in QNX.  Sigh?
d19626 1
a19626 1
    # Just a stub.  Sigh.
d19667 1
a19667 1
for ac_func in nice plock pututline pututxline readlink rtprio
d19680 2
a19681 18
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub in AIX 4.  Sigh.
    ;;
 *-*-solaris2.5*)
    # Just stubs in solaris2.5.  Sigh.
    ;;
 *) for ac_func in sched_setscheduler
do :
  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_SETSCHEDULER 1
_ACEOF

fi
done

d19683 1
a19683 2
esac
for ac_func in setlinebuf setpgid setpriority setsid setvbuf
d19695 3
a19697 1
for ac_func in strdup strerror setrlimit strchr
d19710 2
a19711 3
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just stubs.  Sigh.
d19713 2
a19714 2
 *-*-netbsd1*)
    # Just stubs.  Sigh.
d19716 1
a19716 8
 *-*-netbsdelf1*)
    # Just stubs.  Sigh.
    ;;
 *-*-openbsd*)
    # Just stubs.  Sigh.
    ;;
 *)
    for ac_func in timer_create
d19718 2
a19719 2
  ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
if test "x$ac_cv_func_timer_create" = xyes; then :
d19721 1
a19721 1
#define HAVE_TIMER_CREATE 1
d19729 8
d19738 2
d19741 6
a19746 29

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
if ${ntp_cv_rlimit_memlock+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif

int
main ()
{

		getrlimit(RLIMIT_MEMLOCK, 0);


  ;
  return 0;
}
a19747 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_memlock=yes
else
  ntp_cv_rlimit_memlock=no
d19750 1
a19750 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19752 7
a19758 8
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
$as_echo "$ntp_cv_rlimit_memlock" >&6; }
case "$ntp_cv_rlimit_memlock" in
 yes)

    HAVE_RLIMIT_MEMLOCK=" memlock 32"
esac
a19759 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
$as_echo_n "checking for RLIMIT_STACK... " >&6; }
if ${ntp_cv_rlimit_stack+:} false; then :
  $as_echo_n "(cached) " >&6
a19760 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d19762 6
a19767 9
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif
d19769 7
a19775 10
int
main ()
{

		getrlimit(RLIMIT_STACK, 0);


  ;
  return 0;
}
a19776 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_stack=yes
else
  ntp_cv_rlimit_stack=no
d19779 1
a19779 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19781 8
a19788 20
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
$as_echo "$ntp_cv_rlimit_stack" >&6; }
case "$ntp_cv_rlimit_stack" in
 yes)

    HAVE_RLIMIT_STACK=" stacksize 50"
esac



# HMS: Only if we are doing the MLOCKALL stuff...
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
$as_echo_n "checking for the default number of 4k stack pages... " >&6; }

# Check whether --with-stack-limit was given.
if test "${with_stack_limit+set}" = set; then :
  withval=$with_stack_limit; ans=$withval
else
  ans=yes
d19791 1
d19793 3
a19795 9
case "$ans" in
 yes | no)
    case "$host" in
     *-*-openbsd*)
	ans=200
	;;
     *) ans=50
        ;;
    esac
d19797 2
a19798 1
 [1-9][0-9]*)
d19800 2
a19801 1
 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
d19803 2
a19804 24
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_STACK $ans
_ACEOF


# HMS: only if we have RLIMIT_MEMLOCK
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }

# Check whether --with-memlock was given.
if test "${with_memlock+set}" = set; then :
  withval=$with_memlock; ans=$withval
else
  ans=yes

fi

case "$ans" in
 yes | no)
    ans=32
d19806 1
a19806 15
 [1-9][0-9]*) ;;
 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
     ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_MEMLOCK $ans
_ACEOF



# some OSes prefer _exit() in forked children to exit()
for ac_func in _exit
d19808 3
a19810 2
  ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
if test "x$ac_cv_func__exit" = xyes; then :
d19812 1
a19812 1
#define HAVE__EXIT 1
a19817 7
ntp_worker_child_exit=exit
case "$ac_cv_func__exit::$host_os" in
 yes::netbsd*)
    ntp_worker_child_exit=_exit
    ;;
 yes::openbsd*)
    ntp_worker_child_exit=_exit
d19820 1
a19820 7

cat >>confdefs.h <<_ACEOF
#define WORKER_CHILD_EXIT $ntp_worker_child_exit
_ACEOF


for ac_func in umask uname updwtmp updwtmpx
d19853 66
a19918 5
			    # include <sys/socket.h>
			    #endif
			    #if $ntp_cv_struct_iovec_help
			    # include <sys/uio.h>
			    #endif
d19924 2
a19925 10
			    void foo(void) {
				ssize_t x;
				int s = 0;
				struct iovec iov;
				struct msghdr mh;
				int flags = 0;

				mh.msg_iov = &iov;
				x = recvmsg(s, &mh, flags);
			    }
d19933 4
a19936 1
  compiled=yes ; break 1
a19938 7
	    done
	    case "$compiled" in
	     no)
		ntp_cv_struct_iovec_help=0
	    esac
	    { compiled=; unset compiled;}

d19941 4
a19944 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
$as_echo "$ntp_cv_struct_iovec_help" >&6; }
    case "$ntp_cv_struct_iovec_help" in
     1)
d19946 1
a19946 1
$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
a19947 1
    esac
d19994 4
d20447 1
a20447 1
	 *-*-bsdi[23]*)
d20453 257
a20709 24
	# NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
	# while later versions will fail a ioctl(TIOCSCTTY, 0) call in
	# some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
	# in $host may be followed by "aout", "ecoff", or "elf".
	 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
	    ans=yes
	    ;;
	 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
	    ans=yes
	    ;;
	 *-*-openbsd*)
	    ans=yes
	    ;;
	 *-*-osf*)
	    ans=yes
	    ;;
	 *-*-darwin*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_func_ctty_for_f_setown=$ans
d20711 6
d20719 1
a20719 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
case "$ntp_cv_func_ctty_for_f_setown" in
 yes)
a20720 1
$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
d20722 3
a20724 1
esac
d20726 3
a20728 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
if ${ntp_cv_os_routeupdates+:} false; then :
d20732 49
a20780 6
	case "$host" in
	 *-*-netbsd*)
	    ans=yes
	    ;;
	 *)
	    ans=no
d20783 1
a20783 1
	ntp_cv_os_routeupdates=$ans
d20787 3
a20789 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
$as_echo "$ntp_cv_os_routeupdates" >&6; }
case "$ntp_cv_os_routeupdates" in
d20792 1
a20792 1
$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
d20796 3
a20798 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
if ${ntp_cv_os_wildcardreuse+:} false; then :
d20802 46
a20847 5
	case "$host" in
	 *-*-*linux*)
	    ans=yes
	    ;;
	 *) ans=no
d20850 1
a20850 1
	ntp_cv_os_wildcardreuse=$ans
d20854 3
a20856 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
case "$ntp_cv_os_wildcardreuse" in
d20859 1
a20859 1
$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
d20935 19
d20994 167
a21160 4
if test "${enable_ignore_dns_errors+set}" = set; then :
  enableval=$enable_ignore_dns_errors; ans=$enableval
else
  ans=no
d21163 2
d21166 3
a21168 4
case "$ans" in
 yes)

$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
a21170 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d21191 3
a21193 2
		    #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
		    # error
d21197 2
a21198 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21202 2
a21203 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21233 3
a21235 2
	    #ifndef STA_FLL
	    # error
d21239 2
a21240 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21246 2
a21247 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21317 3
a21319 2
	    #ifndef TIOCGPPSEV
	    # error
d21323 2
a21324 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21330 2
a21331 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21355 3
a21357 2
	    #ifndef TIOCSPPS
	    # error
d21361 2
a21362 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21368 2
a21369 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21393 3
a21395 2
	    #ifndef CIOGETEV
	    # error
d21399 2
a21400 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21406 2
a21407 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21467 6
a21472 2
	    #ifndef TIOCGSERIAL
	    # error
a21473 2
	    #ifndef TIOCSSERIAL
	    # error
a21474 2
	    #ifndef ASYNC_PPS_CD_POS
	    # error
a21475 2
	    #ifndef ASYNC_PPS_CD_NEG
	    # error
a21476 2
	    #ifndef CIOGETEV
	    # error
d21480 2
a21481 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21487 2
a21488 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21536 1
a21536 2
case "$ntp_ok" in
 yes)
d21541 1
a21541 2
    ;;
esac
d21561 1
a21561 2
case "$ntp_ok" in
 yes)
d21566 1
a21566 2
    ;;
esac
d21705 1
a21705 2
case "$ntp_ok" in
 yes)
d21710 1
a21710 2
    ;;
esac
d21724 1
a21724 2
case "$ntp_ok" in
 yes)
d21729 1
a21729 2
    ;;
esac
d21743 1
a21743 2
case "$ntp_ok" in
 yes)
d21748 1
a21748 2
    ;;
esac
d21762 1
a21762 2
case "$ntp_ok" in
 yes)
d21767 1
a21767 2
    ;;
esac
d21784 1
a21784 2
case "$ntp_ok" in
 yes)
d21789 1
a21789 2
    ;;
esac
d21803 1
a21803 2
case "$ntp_ok" in
 yes)
d21808 1
a21808 2
    ;;
esac
d21822 1
a21822 2
case "$ntp_ok" in
 yes)
d21827 1
a21827 2
    ;;
esac
d21847 5
d21879 1
a21879 2
case "$ntp_ok" in
 yes)
d21884 1
a21884 2
    ;;
esac
d21898 1
a21898 2
case "$ntp_ok" in
 yes)
d21903 1
a21903 2
    ;;
esac
d21917 1
a21917 2
case "$ntp_ok" in
 yes)
d21922 1
a21922 2
    ;;
esac
d21937 1
a21937 2
case "$ntp_ok" in
 yes)
d21942 1
a21942 2
    ;;
esac
d21956 1
a21956 2
case "$ntp_ok" in
 yes)
d21961 1
a21961 2
    ;;
esac
d21975 1
a21975 2
case "$ntp_ok" in
 yes)
d21980 1
a21980 2
    ;;
esac
d21994 1
a21994 2
case "$ntp_ok" in
 yes)
d21999 1
a21999 2
    ;;
esac
d22018 1
a22018 2
case "$ntp_ok" in
 yes)
d22023 1
a22023 2
    ;;
esac
d22041 1
a22041 2
case "$ntp_ok" in
 yes)
d22046 1
a22046 2
    ;;
esac
d22062 1
a22062 2
case "$ntp_ok" in
 yes)
d22067 1
a22067 2
    ;;
esac
d22081 1
a22081 2
case "$ntp_ok" in
 yes)
d22086 1
a22086 2
    ;;
esac
d22100 1
a22100 2
case "$ntp_ok" in
 yes)
d22105 1
a22105 2
    ;;
esac
d22130 1
a22130 2
case "$ntp_ok" in
 yes)
d22135 1
a22135 2
    ;;
esac
d22153 1
a22153 2
case "$ntp_ok" in
 yes)
d22158 1
a22158 2
    ;;
esac
d22172 1
a22172 2
case "$ntp_ok" in
 yes)
a22176 27
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

for ac_func in strtoll
do :
  ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
if test "x$ac_cv_func_strtoll" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRTOLL 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
$as_echo_n "checking for GPSD JSON receiver... " >&6; }
# Check whether --enable-GPSD was given.
if test "${enable_GPSD+set}" = set; then :
  enableval=$enable_GPSD; ntp_ok=$enableval
else
  case "$ac_cv_func_strtoll" in
     yes) ntp_ok=$ntp_eac ;;
     *)   ntp_ok="no" ;;
    esac

a22177 9

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h

    ;;
esac
d22194 1
a22194 2
case "$ntp_ok" in
 yes)
d22199 1
a22199 2
    ;;
esac
d22214 1
a22214 2
case "$ntp_ok" in
 yes)
d22219 1
a22219 2
    ;;
esac
d22233 1
a22233 2
case "$ntp_ok" in
 yes)
d22238 1
a22238 2
    ;;
esac
d22252 1
a22252 2
case "$ntp_ok" in
 yes)
d22257 1
a22257 2
    ;;
esac
d22275 1
a22275 2
case "$ntp_ok" in
 yes)
d22280 1
a22280 2
    ;;
esac
d22301 1
a22301 2
case "$ntp_ok" in
 yes)
d22306 1
a22306 2
    ;;
esac
d22320 1
a22320 2
case "$ntp_ok" in
 yes)
d22325 1
a22325 2
    ;;
esac
d22348 1
a22348 2
case "$ntp_ok" in
 yes)
d22353 1
a22353 2
    ;;
esac
d22361 1
d22382 1
a22382 2
case "$ntp_ok" in
 yes)
d22387 1
a22387 2
    ;;
esac
d22405 1
a22405 2
case "$ntp_ok" in
 yes)
d22410 1
a22410 2
    ;;
esac
d22424 1
a22424 2
case "$ntp_ok" in
 yes)
a22428 21
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
# Check whether --enable-TSYNCPCI was given.
if test "${enable_TSYNCPCI+set}" = set; then :
  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
else

	case "$host" in
	 *-*-*linux*)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	esac


a22429 9

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h

    ;;
esac
d22448 1
a22448 2
case "$ntp_ok" in
 yes)
d22453 1
a22453 2
    ;;
esac
d22471 1
a22471 2
case "$ntp_ok" in
 yes)
d22476 1
a22476 2
    ;;
esac
d22523 1
a22523 2
case "$ntp_ok" in
 yes)
d22529 1
a22529 2
    ;;
esac
d22547 1
a22547 2
case "$ntp_ok" in
 yes)
d22553 1
a22553 2
    ;;
esac
d22571 1
a22571 2
case "$ntp_ok" in
 yes)
d22577 1
a22577 2
    ;;
esac
d22595 1
a22595 2
case "$ntp_ok" in
 yes)
d22601 1
a22601 2
    ;;
esac
d22619 1
a22619 2
case "$ntp_ok" in
 yes)
d22627 1
a22627 2
    ;;
esac
d22673 1
a22673 2
case "$ntp_ok" in
 yes)
d22679 1
a22679 2
    ;;
esac
d22697 1
a22697 2
case "$ntp_ok" in
 yes)
d22703 1
a22703 2
    ;;
esac
d22721 1
a22721 2
case "$ntp_ok" in
 yes)
d22727 1
a22727 2
    ;;
esac
d22745 1
a22745 2
case "$ntp_ok" in
 yes)
a22750 76
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
$as_echo_n "checking WHARTON 400A Series clock... " >&6; }
# Check whether --enable-WHARTON was given.
if test "${enable_WHARTON+set}" = set; then :
  enableval=$enable_WHARTON; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
$as_echo_n "checking VARITEXT clock... " >&6; }
# Check whether --enable-VARITEXT was given.
if test "${enable_VARITEXT+set}" = set; then :
  enableval=$enable_VARITEXT; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
$as_echo_n "checking SEL240X clock... " >&6; }
# Check whether --enable-SEL240X was given.
if test "${enable_SEL240X+set}" = set; then :
  enableval=$enable_SEL240X; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h

a22756 57
    ;;
esac






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
$as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
ans=no
case "$ntp_libparse" in
 yes)
    ans=yes

$as_echo "#define CLOCK_PARSE 1" >>confdefs.h

    LIBPARSE=../libparse/libparse.a
    MAKE_LIBPARSE=libparse.a
    # HMS: check_y2k trips the 34 year problem now...
    false && MAKE_CHECK_Y2K=check_y2k
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }



ntp_pkgconfig_min_version='0.15.0'
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
a22757 40
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d22759 5
a22763 7
  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
d22765 2
a22766 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d22769 12
a22780 8
  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
d22782 6
a22787 2
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
d22789 2
a22790 1
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d22793 5
a22797 2
{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
d22799 6
a22804 13
case "$PKG_CONFIG" in
 /*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	PKG_CONFIG=""
    fi
    ;;
d22811 19
a22829 1
VER_SUFFIX=
a22833 4
# Check whether --with-crypto was given.
if test "${with_crypto+set}" = set; then :
  withval=$with_crypto;
fi
d22835 2
d22840 2
a22841 2
  withval=$with_openssl_libdir;
fi
d22843 4
a22846 5

# Check whether --with-openssl-incdir was given.
if test "${with_openssl_incdir+set}" = set; then :
  withval=$with_openssl_incdir;
fi
a22848 3
# Check whether --with-rpath was given.
if test "${with_rpath+set}" = set; then :
  withval=$with_rpath;
d22851 8
a22858 30
ntp_openssl=no
ntp_openssl_from_pkg_config=no
with_crypto=${with_crypto:-openssl,libcrypto}
case "$with_crypto" in
 yes)
    with_crypto=openssl,libcrypto
esac
case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
 no:*) ;;
 *:notempty:notgiven:notgiven)
    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
$as_echo_n "checking pkg-config for $pkg... " >&6; }
	if $PKG_CONFIG --exists $pkg ; then
	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
	    VER_SUFFIX=o
	    ntp_openssl=yes
	    ntp_openssl_from_pkg_config=yes
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

	    break
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    done
d22860 6
a22865 11
case "$with_crypto:$ntp_openssl" in
 no:*) ;;
 *:no)
    need_dash_r=
    need_dash_Wlrpath=
    case "${with_rpath-notgiven}" in
     yes)
	# Lame - what to do if we need -Wl... but not -R?
	need_dash_r=1
	;;
     notgiven)
d22867 2
a22868 22
	 *-*-linux*)
	    # This may really only be true for gcc
	    need_dash_Wlrpath=1
	    ;;
	 *-*-netbsd*)
	    need_dash_r=1
	    ;;
	 *-*-solaris*)
	    need_dash_r=1
	    ;;
	esac
	;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
$as_echo_n "checking for openssl library directory... " >&6; }
    with_openssl_libdir=${with_openssl_libdir-notgiven}
    case "$with_openssl_libdir" in
     notgiven)
	case "$build" in
	 $host)
	    with_openssl_libdir=default
d22871 2
a22872 1
	    with_openssl_libdir=no
d22875 2
a22876 9
    esac
    case "$with_openssl_libdir" in
     default)
	# Look in:
	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
    esac
    case "$with_openssl_libdir" in
d22878 2
d22881 2
a22882 14
     *) # Look for libcrypto.a and libssl.a:
	for i in $with_openssl_libdir no
	do
	    case "$host" in
	     *-*-darwin*)
		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
		;;
	     *)
		test -f $i/libcrypto.so -a -f $i/libssl.so && break
		test -f $i/libcrypto.a -a -f $i/libssl.a && break
		;;
	    esac
	done
	openssl_libdir=$i
d22885 4
a22888 8
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
$as_echo "$openssl_libdir" >&6; }
    case "$openssl_libdir" in
     no)
	openssl_libdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
    esac
d22890 1
a22890 1
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
d22892 32
a22923 9
    with_openssl_incdir=${with_openssl_incdir-notgiven}
    case "$with_openssl_incdir" in
     notgiven)
	# Look in:
	with_openssl_incdir="/usr/include /usr/sfw/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
    esac
    case "$with_openssl_incdir" in
d22925 2
d22928 2
a22929 6
     *) # look for openssl/evp.h:
	for i in $with_openssl_incdir no
	do
	    test -f $i/openssl/evp.h && break
	done
	openssl_incdir=$i
d22932 21
a22952 10
    { i=; unset i;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
$as_echo "$openssl_incdir" >&6; }
    case "$openssl_incdir" in
     no)
	openssl_incdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
    esac
    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
d22954 1
a22954 1
	ntp_openssl=no
d22956 1
a22956 2
	ntp_openssl=yes
	VER_SUFFIX=o
a22957 27
    case "$ntp_openssl" in
     yes)
	# We have OpenSSL inc/lib dirs - use them.
	case "$openssl_incdir" in
	 /usr/include)
	    ;;
	 *)
	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
	    ;;
	esac
	case "$openssl_libdir" in
	 /usr/lib)
	    ;;
	 *)
	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
	    case "$need_dash_r" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
	    esac
	    case "$need_dash_Wlrpath" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
	    esac
	    ;;
	esac
	LDADD_NTP="$LDADD_NTP -lcrypto"
    esac
d22959 3
a22961 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
$as_echo_n "checking if we will use crypto... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
$as_echo "$ntp_openssl" >&6; }
d22965 20
a22985 1
$as_echo "#define OPENSSL /**/" >>confdefs.h
d22987 2
a22988 5
    case "$VER_SUFFIX" in
     *o*) ;;
     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
    esac
    ;;
a22990 4
NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
NTPO_SAVED_LIBS="$LIBS"

d22992 1
a22992 1
# check for linking with -lcrypto failure, and try -lcrypto -lz.
d22995 6
a23000 5
case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
 yes:no)
    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
$as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
d23036 3
a23038 3
	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
d23074 1
a23074 1
	     LDADD_NTP="$LDADD_NTP -lz"
d23077 2
d23095 1
a23095 1
NTPO_SAVED_CFLAGS="$CFLAGS"
d23097 2
a23098 2
case "$ntp_openssl:$GCC" in
 yes:yes)
d23157 15
a23171 62
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    esac
    case "$openssl_triggers_warnings" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
	;;
     *)
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
    esac
    ;;
 no:yes)
    # gcc without OpenSSL
    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
esac

CFLAGS="$NTPO_SAVED_CFLAGS"
CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
LIBS="$NTPO_SAVED_LIBS"
{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
# Check whether --enable-openssl-random was given.
if test "${enable_openssl_random+set}" = set; then :
  enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
else
  ntp_use_openssl_random=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
$as_echo "$ntp_use_openssl_random" >&6; }

# The following might need extra libraries
NTPO_SAVED_LIBS="$LIBS"
LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
for ac_func in RAND_bytes RAND_poll
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

LIBS="$NTPO_SAVED_LIBS"
case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
 yesyesyes)

$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
a23172 3
     ;;
 *) ntp_use_openssl_random=no ;;
esac
d23175 2
d23178 3
a23180 6
# if we are using OpenSSL (--with-crypto), by default Autokey is enabled
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
# Check whether --enable-autokey was given.
if test "${enable_autokey+set}" = set; then :
  enableval=$enable_autokey; ntp_autokey=$enableval
d23182 1
a23182 1
  ntp_autokey=$ntp_openssl
d23186 2
a23187 3
case "$ntp_autokey" in
 no)
    ;;
d23189 2
a23190 7
    case "$ntp_openssl" in
     no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
	ntp_autokey=no
	;;
     *)
d23192 1
a23192 1
$as_echo "#define AUTOKEY 1" >>confdefs.h
d23194 1
a23194 3
	ntp_autokey=yes
	;;
    esac
d23197 2
a23198 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
$as_echo "$ntp_autokey" >&6; }
d23220 1
a23220 2
case "$ntp_parseutil" in
 yes)
d23225 1
a23225 1
	TESTDCF=testdcf
d23227 1
a23227 2
    ;;
esac
d23273 1
a23273 2
case "$ntp_refclock" in
 yes)
d23277 1
a23277 2
    ;;
esac
a23280 2
PROPDELAY=propdelay

d23292 1
a23292 2
case "$ans" in
 yes)
d23297 1
a23297 7
    ;;
 *) ADJTIMED_DB=
    ADJTIMED_DL=
    ADJTIMED_DS=
    ADJTIMED_MS=
    ;;
esac
d23310 1
a23310 2
case "$ans" in
 yes)
d23314 1
a23314 2
    ;;
esac
a23327 1
    ;;
d23392 1
a23392 2
 *-ibm-aix[4-9]*)
    # XXX only verified thru AIX6.
a23407 1
    ;;
d23451 1
a23451 2
	 *-ibm-aix[3-9]*)
	    # XXX only verified thru AIX6.
a23791 1
	;;
a23797 1
	;;
a23803 1
	;;
a23819 1
    ;;
a23921 6
 *)
    NTPTIME_DB=
    NTPTIME_DL=
    NTPTIME_DS=
    NTPTIME_MS=
    ;;
a23970 11
    ;;
 *)
    CALC_TICKADJ_DB=
    CALC_TICKADJ_DL=
    CALC_TICKADJ_DS=
    CALC_TICKADJ_MS=
    TICKADJ_DB=
    TICKADJ_DL=
    TICKADJ_DS=
    TICKADJ_MS=
    ;;
a23998 6
    ;;
 *) TIMETRIM_DB=
    TIMETRIM_DL=
    TIMETRIM_DS=
    TIMETRIM_MS=
    ;;
a24019 7
    ;;
 *)
    NTPDSIM_DB=
    NTPDSIM_DL=
    NTPDSIM_DS=
    NTPDSIM_MS=
    ;;
a24033 34

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
$as_echo_n "checking if sntp will be built... " >&6; }

# Check whether --with-sntp was given.
if test "${with_sntp+set}" = set; then :
  withval=$with_sntp;
else
  with_sntp="${withsntp=yes}"

fi

case "$with_sntp" in
 no)
    SNTP=
    ;;
 *)
    SNTP=sntp
    ;;
esac

 if test -n "$SNTP"; then
  BUILD_SNTP_TRUE=
  BUILD_SNTP_FALSE='#'
else
  BUILD_SNTP_TRUE='#'
  BUILD_SNTP_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
$as_echo "$with_sntp" >&6; }



a24144 1
	{ save_CFLAGS=; unset save_CFLAGS;}
a24145 1
	{ save_CPPFLAGS=; unset save_CPPFLAGS;}
a24146 1
	{ save_LIBS=; unset save_LIBS;}
a24156 8
case "$MAKE_NTPSNMPD" in
 '')
    NTPSNMPD_DB=
    NTPSNMPD_DL=
    NTPSNMPD_DS=
    NTPSNMPD_MS=
    ;;
esac
a24249 1
    ;;
a24281 1
    ;;
a24323 1
	;;
a24343 1
	;;
a24347 1
    ;;
a24398 1
    ;;
d24418 1
d24441 1
a24479 1
    ;;
d24482 2
a24483 1
for ac_header in libscf.h
d24485 2
a24486 2
  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
if test "x$ac_cv_header_libscf_h" = xyes; then :
d24488 1
a24488 1
#define HAVE_LIBSCF_H 1
d24495 7
a24501 4
LSCF=
case "$ac_cv_header_libscf_h" in
 yes)
    LSCF='-lscf'
d24504 3
a24506 7



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
if ${ntp_cv_sockaddr_storage+:} false; then :
  $as_echo_n "(cached) " >&6
d24508 1
a24508 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24510 1
a24510 9
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif
a24511 3
int
main ()
{
d24513 4
a24516 1
		struct sockaddr_storage n;
d24519 7
a24525 3
  ;
  return 0;
}
a24526 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_sockaddr_storage=yes
else
  ntp_cv_sockaddr_storage=no
a24528 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24530 1
a24530 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
$as_echo "$ntp_cv_sockaddr_storage" >&6; }
case "$ntp_cv_sockaddr_storage" in
 yes)
a24531 1
$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
d24533 2
a24534 45
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
if ${ntp_cv_have___ss_family+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_SYS_TYPES_H
		    # include <sys/types.h>
		    #endif
		    #ifdef HAVE_SYS_SOCKET_H
		    # include <sys/socket.h>
		    #endif
		    #ifdef HAVE_NETINET_IN_H
		    # include <netinet/in.h>
		    #endif

int
main ()
{

		    struct sockaddr_storage s;
		    s.__ss_family = 1;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have___ss_family=yes
else
  ntp_cv_have___ss_family=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
$as_echo "$ntp_cv_have___ss_family" >&6; }
    case "$ntp_cv_have___ss_family" in
     yes)

$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
d24536 8
d24545 4
a24548 1

d24551 3
d24555 1
a24555 10
#
# Look for in_port_t.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
$as_echo_n "checking for in_port_t... " >&6; }
if ${isc_cv_have_in_port_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a24556 2
		#include <sys/types.h>
		#include <netinet/in.h>
d24558 2
a24559 3
int
main ()
{
d24561 2
a24562 2
		in_port_t port = 25;
		return (0);
d24564 1
d24566 2
a24567 11
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_in_port_t=yes
else
  isc_cv_have_in_port_t=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24569 2
a24570 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
$as_echo "$isc_cv_have_in_port_t" >&6; }
case "$isc_cv_have_in_port_t" in
 no)
d24572 1
a24572 1
$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
a24575 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
if ${ntp_cv_getsockname_socklen_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
d24577 9
a24585 5
    getsockname_socklen_type_found=no
    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24587 1
a24587 6
			#ifdef HAVE_SYS_TYPES_H
			# include <sys/types.h>
			#endif
			#ifdef HAVE_SYS_SOCKET_H
			# include <sys/socket.h>
			#endif
d24589 5
a24593 3
int
main ()
{
a24594 3
			extern
			getsockname(int, $getsockname_arg2,
				$ntp_cv_getsockname_socklen_type *);
d24596 5
a24601 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  getsockname_socklen_type_found=yes ; break 2
a24602 9
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	done
    done
    case "$getsockname_socklen_type_found" in
     no)
	ntp_cv_getsockname_socklen_type='socklen_t'
    esac
    { getsockname_arg2=; unset getsockname_arg2;}
    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
d24604 2
d24607 1
a24607 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
d24609 1
a24609 3
cat >>confdefs.h <<_ACEOF
#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
_ACEOF
d24902 1
a24902 1
if ${isc_cv_in6addr_any_links+:} false; then :
d24905 2
d24908 5
a24912 9
	SAVED_LIBS="$LIBS"
	LIBS="$LDADD_LIBNTP $LIBS"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack
d24918 2
a24919 1
		    printf("%x", in6addr_any.s6_addr[15]);
d24927 1
a24927 1
  isc_cv_in6addr_any_links=yes
d24929 1
a24929 1
  isc_cv_in6addr_any_links=no
a24933 3
	LIBS="$SAVED_LIBS"
	{ SAVED_LIBS=; unset SAVED_LIBS;}

d24936 2
a24937 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
$as_echo "$isc_cv_in6addr_any_links" >&6; }
d24939 1
a24939 1
case "$isc_cv_in6addr_any_links" in
d25013 1
a25013 182
  isc_cv_struct_if_laddrreq=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
$as_echo "$isc_cv_struct_if_laddrreq" >&6; }

case "$isc_cv_struct_if_laddrreq" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
$as_echo_n "checking for multicast IP support... " >&6; }
if ${ntp_cv_multicast+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_multicast=no
	case "$host" in
	 i386-sequent-sysv4)
	    ;;
	 *)
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#ifdef HAVE_NETINET_IN_H
			# include <netinet/in.h>
			#endif

int
main ()
{

			struct ip_mreq ipmr;
			ipmr.imr_interface.s_addr = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_multicast=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
$as_echo "$ntp_cv_multicast" >&6; }
case "$ntp_cv_multicast" in
 yes)

$as_echo "#define MCAST 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    case "$host" in
	     *-*-netbsd*|*-*-*linux*)
		ntp_cv_typeof_ip_multicast_loop=u_int
		;;
	     *)
		ntp_cv_typeof_ip_multicast_loop=u_char
		;;
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }

cat >>confdefs.h <<_ACEOF
#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
_ACEOF

esac

# Check whether --enable-getifaddrs was given.
if test "${enable_getifaddrs+set}" = set; then :
  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
else
  want_getifaddrs="yes"

fi


case $want_getifaddrs in
 glibc)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
esac
case $want_getifaddrs in
 no)
    ;;
 *)
    SAVED_LIBS="$LIBS"
    LIBS="$LDADD_LIBNTP $LIBS"
    for ac_func in getifaddrs
do :
  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF

fi
done

    LIBS="$SAVED_LIBS"
    { SAVED_LIBS=; unset SAVED_LIBS;}
    ;;
esac

#
# Check for if_nametoindex() for IPv6 scoped addresses support
#
case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
$as_echo_n "checking for library containing if_nametoindex... " >&6; }
if ${ac_cv_search_if_nametoindex+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char if_nametoindex ();
int
main ()
{
return if_nametoindex ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' ipv6; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_if_nametoindex=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_if_nametoindex+:} false; then :
  break
fi
done
if ${ac_cv_search_if_nametoindex+:} false; then :

else
  ac_cv_search_if_nametoindex=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
$as_echo "$ac_cv_search_if_nametoindex" >&6; }
ac_res=$ac_cv_search_if_nametoindex
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d25016 1
a25016 11

esac
SAVED_LIBS="$LIBS"
LIBS="$LDADD_LIBNTP $LIBS"
for ac_func in if_nametoindex
do :
  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
if test "x$ac_cv_func_if_nametoindex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_IF_NAMETOINDEX 1
_ACEOF
d25019 2
a25020 1
done
d25022 1
a25022 3
LIBS="$SAVED_LIBS"
{ SAVED_LIBS=; unset SAVED_LIBS;}
case "$ac_cv_func_if_nametoindex" in
d25025 1
a25025 1
$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
a25028 3



d25043 2
a25044 2
	    #ifndef NET_RT_IFLIST
	    # error
d25048 2
a25049 1
if ac_fn_c_try_cpp "$LINENO"; then :
d25055 2
a25056 1
rm -f conftest.err conftest.i conftest.$ac_ext
d25081 1
a25081 2
case "$ntp_ok" in
 yes)
d25086 1
a25086 2
    ;;
esac
a25097 100

gta=false

# Check whether --with-gtest was given.
if test "${with_gtest+set}" = set; then :
  withval=$with_gtest; try_gtest=$withval
else
  try_gtest=yes

fi

case "$try_gtest" in
 yes)
    # Extract the first word of "gtest-config", so it can be a program name with args.
set dummy gtest-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_GTEST_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $GTEST_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
if test -n "$GTEST_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
$as_echo "$GTEST_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
    case x${GTEST_CONFIG} in
     x) ;;
     *)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
$as_echo_n "checking gtest version... " >&6; }
	gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
	case "$gtest_version_test" in
	 toolow*)
	    ;;
	 *)
	    GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
	    GTEST_LIBS=`$GTEST_CONFIG --libs`
	    GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
	    GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`




	    gta=true
	    ;;
	esac
	gtest_version=`$GTEST_CONFIG --version`
	case "$gta" in
	 true)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
$as_echo "($gtest_version) ok" >&6; }
	    ;;
	 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
$as_echo "($gtest_version) not ok" >&6; }
	    ;;
	esac
	{ gtest_version_test=; unset gtest_version_test;}
	{ gtest_version=; unset gtest_version;}
    esac
esac
 if $gta; then
  GTEST_AVAILABLE_TRUE=
  GTEST_AVAILABLE_FALSE='#'
else
  GTEST_AVAILABLE_TRUE='#'
  GTEST_AVAILABLE_FALSE=
fi




d25101 5
a25105 8
  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$sysconfdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  NTP_KEYSDIR="$ac_define_dir"

d25108 1
a25108 1
#define NTP_KEYSDIR "$ac_define_dir"
a25110 2
  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE
d25115 2
a25134 2
ac_config_files="$ac_config_files ntpd/complete.conf"

d25149 1
a25149 5
ac_config_files="$ac_config_files scripts/lib/Makefile"

ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"

ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
d25151 1
a25151 1
ac_config_files="$ac_config_files scripts/build/mkver"
d25153 1
a25153 1
ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
d25155 1
a25155 1
ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
d25157 1
a25157 1
ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
d25159 1
a25159 1
ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
d25161 1
a25161 1
ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
d25163 1
a25163 1
ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
a25170 8
ac_config_files="$ac_config_files scripts/build/Makefile"

ac_config_files="$ac_config_files tests/Makefile"

ac_config_files="$ac_config_files tests/libntp/Makefile"

ac_config_files="$ac_config_files tests/ntpd/Makefile"

a25173 32
perllibdir="${datadir}/ntp/lib"

  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$perllibdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  PERLLIBDIR="$ac_define_dir"


cat >>confdefs.h <<_ACEOF
#define PERLLIBDIR "$ac_define_dir"
_ACEOF

  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE


calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"

ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"

ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"

ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"

summary_opts="$srcdir/scripts/summary-opts"

plot_summary_opts="$srcdir/scripts/plot_summary-opts"


a25307 5

if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a25311 12
if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d25324 2
a25325 6
if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
  as_fn_error $? "conditional \"PTHREADS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
d25328 1
a25332 4
if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
  as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d25742 1
a25742 1
This file was extended by ntp4 $as_me 4.2.8, which was
d25802 1
a25802 2
Report bugs to <http://bugs.ntp.org./>.
ntp4 home page: <http://www.ntp.org./>."
d25808 1
a25808 1
ntp4 config.status 4.2.8
a26066 55
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d26145 1
a26145 33
striplib \
compiler_lib_search_dirs \
predep_objects \
postdep_objects \
predeps \
postdeps \
compiler_lib_search_path \
LD_CXX \
reload_flag_CXX \
compiler_CXX \
lt_prog_compiler_no_builtin_flag_CXX \
lt_prog_compiler_pic_CXX \
lt_prog_compiler_wl_CXX \
lt_prog_compiler_static_CXX \
lt_cv_prog_compiler_c_o_CXX \
export_dynamic_flag_spec_CXX \
whole_archive_flag_spec_CXX \
compiler_needs_object_CXX \
with_gnu_ld_CXX \
allow_undefined_flag_CXX \
no_undefined_flag_CXX \
hardcode_libdir_flag_spec_CXX \
hardcode_libdir_flag_spec_ld_CXX \
hardcode_libdir_separator_CXX \
exclude_expsyms_CXX \
include_expsyms_CXX \
file_list_spec_CXX \
compiler_lib_search_dirs_CXX \
predep_objects_CXX \
postdep_objects_CXX \
predeps_CXX \
postdeps_CXX \
compiler_lib_search_path_CXX; do
d26175 1
a26175 12
sys_lib_dlsearch_path_spec \
reload_cmds_CXX \
old_archive_cmds_CXX \
old_archive_from_new_cmds_CXX \
old_archive_from_expsyms_cmds_CXX \
archive_cmds_CXX \
archive_expsym_cmds_CXX \
module_cmds_CXX \
module_expsym_cmds_CXX \
export_symbols_cmds_CXX \
prelink_cmds_CXX \
postlink_cmds_CXX; do
a26205 2


d26218 1
a26227 1
    "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
d26235 8
a26242 10
    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
    "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
    "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
    "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
    "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
a26245 4
    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
    "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
    "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
d26295 1
a26295 18
if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  ac_cs_awk_getline=:
  ac_cs_awk_pipe_init=
  ac_cs_awk_read_file='
      while ((getline aline < (F[key])) > 0)
	print(aline)
      close(F[key])'
  ac_cs_awk_pipe_fini=
else
  ac_cs_awk_getline=false
  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  ac_cs_awk_read_file='
      print "|#_!!_#|"
      print "cat " F[key] " &&"
      '$ac_cs_awk_pipe_init
  # The final `:' finishes the AND list.
  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
fi
a26312 11
# Create commands to substitute file output variables.
{
  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  echo "_ACAWK" &&
  echo "_ACEOF"
} >conf$$files.sh &&
. ./conf$$files.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
rm -f conf$$files.sh
d26389 1
a26389 1
  \$ac_cs_awk_pipe_init
d26407 1
a26407 7
  if (nfields == 3 && !substed) {
    key = field[2]
    if (F[key] != "" && line ~ /^[	 ]*@@.*@@[	 ]*$/) {
      \$ac_cs_awk_read_file
      next
    }
  }
d26410 1
a26410 1
\$ac_cs_awk_pipe_fini
d26757 1
a26757 6
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
if $ac_cs_awk_getline; then
  $AWK -f "$ac_tmp/subs.awk"
else
  $AWK -f "$ac_tmp/subs.awk" | $SHELL
fi \
d26987 1
a26987 1
available_tags="CXX "
a27374 14
# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects
postdep_objects=$lt_postdep_objects
predeps=$lt_predeps
postdeps=$lt_postdeps

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path

a27566 157

    cat <<_LT_EOF >> "$ofile"

# ### BEGIN LIBTOOL TAG CONFIG: CXX

# The linker used to build libraries.
LD=$lt_LD_CXX

# How to create reloadable object files.
reload_flag=$lt_reload_flag_CXX
reload_cmds=$lt_reload_cmds_CXX

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds_CXX

# A language specific compiler.
CC=$lt_compiler_CXX

# Is the compiler the GNU compiler?
with_gcc=$GCC_CXX

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object_CXX

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld_CXX

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute_CXX

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic_CXX

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath_CXX

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds_CXX

# Commands necessary for finishing linking programs.
postlink_cmds=$lt_postlink_cmds_CXX

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec_CXX

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects_CXX
postdep_objects=$lt_postdep_objects_CXX
predeps=$lt_predeps_CXX
postdeps=$lt_postdeps_CXX

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX

# ### END LIBTOOL TAG CONFIG: CXX
_LT_EOF

a27567 1
    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
d27569 8
a27576 5
    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
    "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
    "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
    "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
    "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
@


1.1.1.2.8.2
log
@Pull up following revision(s) (requested by christos in ticket #1342):
	doc/3RDPARTY: patch
	external/bsd/ntp/Makefile.inc: up to 1.15
	external/bsd/ntp/bin/ntpd/Makefile: up to 1.19
	external/bsd/ntp/bin/ntpd/ntp_parser.c: patch
	external/bsd/ntp/bin/ntpd/ntp_parser.h: patch
	external/bsd/ntp/bin/sntp/Makefile: up to 1.6
	external/bsd/ntp/bin/sntp/event2/event-config.h: delete
	external/bsd/ntp/bin/sntp/evlog.c: delete
	external/bsd/ntp/dist/COPYRIGHT: up to 1.1.1.5
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.7
	external/bsd/ntp/dist/CommitLog: up to 1.1.1.7
	external/bsd/ntp/dist/Makefile.am: up to 1.1.1.7
	external/bsd/ntp/dist/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/NEWS: up to 1.1.1.7
	external/bsd/ntp/dist/README.leapsmear: up to 1.1.1.1
	external/bsd/ntp/dist/aclocal.m4: up to 1.1.1.7
	external/bsd/ntp/dist/adjtimed/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/adjtimed/adjtimed.c: up to 1.4
	external/bsd/ntp/dist/bootstrap: up to 1.1.1.5
	external/bsd/ntp/dist/build: up to 1.1.1.5
	external/bsd/ntp/dist/clockstuff/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/clockstuff/chutest.c: up to 1.4
	external/bsd/ntp/dist/clockstuff/propdelay.c: up to 1.4
	external/bsd/ntp/dist/config.h.in: up to 1.1.1.6
	external/bsd/ntp/dist/configure: up to 1.1.1.7
	external/bsd/ntp/dist/configure.ac: up to 1.1.1.7
	external/bsd/ntp/dist/html/build.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/confopt.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/copyright.html: up to 1.1.1.5
	external/bsd/ntp/dist/html/decode.html: up to 1.1.1.5
	external/bsd/ntp/dist/html/drivers/driver22.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/drivers/driver28.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/drivers/driver40-ja.html: up to 1.1.1.1
	external/bsd/ntp/dist/html/drivers/driver40.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/drivers/driver46.html: up to 1.1.1.2
	external/bsd/ntp/dist/html/miscopt.html: up to 1.1.1.6
	external/bsd/ntp/dist/html/refclock.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/sntp.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/stats.html: up to 1.1.1.3
	external/bsd/ntp/dist/include/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/include/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/include/binio.h: up to 1.4
	external/bsd/ntp/dist/include/isc/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/include/mbg_gps166.h: up to 1.4
	external/bsd/ntp/dist/include/ntp.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_assert.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_calendar.h: up to 1.5
	external/bsd/ntp/dist/include/ntp_config.h: up to 1.9
	external/bsd/ntp/dist/include/ntp_control.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_fp.h: up to 1.7
	external/bsd/ntp/dist/include/ntp_io.h: up to 1.3
	external/bsd/ntp/dist/include/ntp_lists.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_md5.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_stdlib.h: up to 1.11
	external/bsd/ntp/dist/include/ntp_syslog.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_types.h: up to 1.4
	external/bsd/ntp/dist/include/ntpd.h: up to 1.7
	external/bsd/ntp/dist/include/parse.h: up to 1.4
	external/bsd/ntp/dist/include/parse_conf.h: up to 1.4
	external/bsd/ntp/dist/include/rc_cmdlength.h: up to 1.1.1.1
	external/bsd/ntp/dist/include/refidsmear.h: up to 1.1.1.2
	external/bsd/ntp/dist/include/timepps-Solaris.h: up to 1.4
	external/bsd/ntp/dist/kernel/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/kernel/sys/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/kernel/sys/parsestreams.h: up to 1.4
	external/bsd/ntp/dist/lib/isc/include/isc/backtrace.h: up to 1.4
	external/bsd/ntp/dist/lib/isc/include/isc/socket.h: up to 1.4
	external/bsd/ntp/dist/lib/isc/inet_ntop.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/log.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/result.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/unix/file.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/unix/ifiter_getifaddrs.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/unix/ifiter_ioctl.c: up to 1.4
	external/bsd/ntp/dist/lib/isc/unix/net.c: up to 1.7
	external/bsd/ntp/dist/libjsmn/Makefile: up to 1.1.1.2
	external/bsd/ntp/dist/libjsmn/README.md: up to 1.1.1.2
	external/bsd/ntp/dist/libjsmn/example/jsondump.c: up to 1.1.1.2
	external/bsd/ntp/dist/libjsmn/example/simple.c: up to 1.1.1.2
	external/bsd/ntp/dist/libjsmn/jsmn.c: up to 1.4
	external/bsd/ntp/dist/libjsmn/jsmn.h: up to 1.3
	external/bsd/ntp/dist/libjsmn/jsmn_test.c: up to 1.3
	external/bsd/ntp/dist/libntp/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/libntp/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/libntp/atolfp.c: up to 1.7
	external/bsd/ntp/dist/libntp/audio.c: up to 1.9
	external/bsd/ntp/dist/libntp/authkeys.c: up to 1.7
	external/bsd/ntp/dist/libntp/authreadkeys.c: up to 1.7
	external/bsd/ntp/dist/libntp/caljulian.c: up to 1.4
	external/bsd/ntp/dist/libntp/caltontp.c: up to 1.4
	external/bsd/ntp/dist/libntp/decodenetnum.c: up to 1.4
	external/bsd/ntp/dist/libntp/emalloc.c: up to 1.6
	external/bsd/ntp/dist/libntp/icom.c: up to 1.8
	external/bsd/ntp/dist/libntp/machines.c: up to 1.4
	external/bsd/ntp/dist/libntp/msyslog.c: up to 1.4
	external/bsd/ntp/dist/libntp/ntp_calendar.c: up to 1.7
	external/bsd/ntp/dist/libntp/ntp_crypto_rnd.c: up to 1.4
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to 1.7
	external/bsd/ntp/dist/libntp/ntp_lineedit.c: up to 1.8
	external/bsd/ntp/dist/libntp/ntp_rfc2553.c: up to 1.4
	external/bsd/ntp/dist/libntp/ntp_worker.c: up to 1.4
	external/bsd/ntp/dist/libntp/prettydate.c: up to 1.7
	external/bsd/ntp/dist/libntp/recvbuff.c: up to 1.4
	external/bsd/ntp/dist/libntp/refidsmear.c: up to 1.1.1.2
	external/bsd/ntp/dist/libntp/socket.c: up to 1.4
	external/bsd/ntp/dist/libntp/socktohost.c: up to 1.4
	external/bsd/ntp/dist/libntp/statestr.c: up to 1.4
	external/bsd/ntp/dist/libntp/strdup.c: up to 1.3
	external/bsd/ntp/dist/libntp/work_fork.c: up to 1.7
	external/bsd/ntp/dist/libparse/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/libparse/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/libparse/clk_computime.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_dcf7000.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_hopf6021.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_meinberg.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_rawdcf.c: up to 1.6
	external/bsd/ntp/dist/libparse/clk_rcc8000.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_schmid.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_sel240x.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_trimtaip.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_trimtsip.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_varitext.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_wharton.c: up to 1.4
	external/bsd/ntp/dist/libparse/data_mbg.c: up to 1.7
	external/bsd/ntp/dist/libparse/gpstolfp.c: up to 1.4
	external/bsd/ntp/dist/libparse/info_trimble.c: up to 1.6
	external/bsd/ntp/dist/libparse/mkinfo_rcmd.sed: up to 1.1.1.3
	external/bsd/ntp/dist/libparse/mkinfo_scmd.sed: up to 1.1.1.3
	external/bsd/ntp/dist/libparse/parse.c: up to 1.4
	external/bsd/ntp/dist/libparse/parse_conf.c: up to 1.4
	external/bsd/ntp/dist/libparse/parsesolaris.c: up to 1.4
	external/bsd/ntp/dist/libparse/parsestreams.c: up to 1.4
	external/bsd/ntp/dist/libparse/trim_info.c: up to 1.4
	external/bsd/ntp/dist/ntpd/Makefile.am: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/cmd_args.c: up to 1.4
	external/bsd/ntp/dist/ntpd/complete.conf.in: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to 1.1.1.4
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to 1.20
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to 1.8
	external/bsd/ntp/dist/ntpd/ntp_leapsec.c: up to 1.4
	external/bsd/ntp/dist/ntpd/ntp_leapsec.h: up to 1.3
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to 1.8
	external/bsd/ntp/dist/ntpd/ntp_monitor.c: up to 1.4
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_peer.c: up to 1.8
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_refclock.c: up to 1.8
	external/bsd/ntp/dist/ntpd/ntp_request.c: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_restrict.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntp_scanner.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_scanner.h: up to 1.3
	external/bsd/ntp/dist/ntpd/ntp_timer.c: up to 1.5
	external/bsd/ntp/dist/ntpd/ntp_util.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.5
	external/bsd/ntp/dist/ntpd/ntpd-opts.def: up to 1.1.1.4
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.8
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntpd.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntpdbase-opts.def: up to 1.1.1.4
	external/bsd/ntp/dist/ntpd/rc_cmdlength.c: up to 1.3
	external/bsd/ntp/dist/ntpd/refclock_arc.c: up to 1.8
	external/bsd/ntp/dist/ntpd/refclock_chu.c: up to 1.7
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to 1.7
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to 1.8
	external/bsd/ntp/dist/ntpd/refclock_jupiter.c: up to 1.9
	external/bsd/ntp/dist/ntpd/refclock_local.c: up to 1.4
	external/bsd/ntp/dist/ntpd/refclock_nmea.c: up to 1.10
	external/bsd/ntp/dist/ntpd/refclock_oncore.c: up to 1.12
	external/bsd/ntp/dist/ntpd/refclock_palisade.c: up to 1.5
	external/bsd/ntp/dist/ntpd/refclock_palisade.h: up to 1.4
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to 1.17
	external/bsd/ntp/dist/ntpd/refclock_shm.c: up to 1.6
	external/bsd/ntp/dist/ntpd/refclock_true.c: up to 1.5
	external/bsd/ntp/dist/ntpd/refclock_wwv.c: up to 1.6
	external/bsd/ntp/dist/ntpdate/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdate/ntpdate.c: up to 1.8
	external/bsd/ntp/dist/ntpdc/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.5
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.5
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/ntpdc.c: up to 1.11
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/libntpq.h: up to 1.4
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.5
	external/bsd/ntp/dist/ntpq/ntpq-opts.def: up to 1.1.1.4
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.5
	external/bsd/ntp/dist/ntpq/ntpq-subs.c: up to 1.12
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq.c: up to 1.13
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/netsnmp_daemonize.c: up to 1.4
	external/bsd/ntp/dist/ntpsnmpd/ntp_snmp.h: up to 1.4
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.7
	external/bsd/ntp/dist/parseutil/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/parseutil/dcfd.c: up to 1.4
	external/bsd/ntp/dist/parseutil/testdcf.c: up to 1.4
	external/bsd/ntp/dist/scripts/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/build/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/build/UpdatePoint: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/build/VersionName: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/lib/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/lib/NTP/Util.pm: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.in: up to 1.1.1.4
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/update-leap/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.menu: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts.def: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap.in: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap.sh: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap.texi: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/COPYRIGHT: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/Makefile.am: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/aclocal.m4: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/config.h.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/configure.ac: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/include/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/include/autogen-version.def: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/include/copyright.def: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/include/ntp.lic: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/kod_management.c: up to 1.6
	external/bsd/ntp/dist/sntp/libevent/ChangeLog: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/README: delete
	external/bsd/ntp/dist/sntp/libevent/WIN32-Code/nmake/event2/event-config.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/WIN32-Code/tree.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/aclocal.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/buffer.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/bufferevent.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/bufferevent_async.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/bufferevent_filter.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/bufferevent_openssl.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/bufferevent_pair.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/ar-lib: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/libevent/build-aux/ltmain.sh: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/libevent/build-aux/test-driver: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/libevent/config.h.in: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/configure: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/configure.ac: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/evbuffer-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evdns.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/event.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/event_tagging.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evrpc-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evthread-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evthread.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evutil.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evutil_time.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/ht-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/http-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/http.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/buffer.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/dns.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/event.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/http.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/listener.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/util.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/kqueue.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/listener.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/m4/acx_pthread.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/libevent/m4/ltversion.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/libevent/m4/openldap-thread-check.m4: delete
	external/bsd/ntp/dist/sntp/libevent/m4/openldap.m4: delete
	external/bsd/ntp/dist/sntp/libevent/sample/dns-example.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/event-read-fifo.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/hello-world.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.h: delete
	external/bsd/ntp/dist/sntp/libevent/sample/http-server.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/https-client.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/include.am: delete
	external/bsd/ntp/dist/sntp/libevent/sample/le-proxy.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.h: delete
	external/bsd/ntp/dist/sntp/libevent/sample/signal-test.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/time-test.c: delete
	external/bsd/ntp/dist/sntp/libevent/test/bench_httpclient.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/include.am: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/test/regress.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/regress.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_buffer.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_bufferevent.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_dns.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/regress_finalize.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_http.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/regress_main.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_minheap.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/regress_ssl.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_thread.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_util.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_zlib.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/test-fdleak.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/test-ratelim.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/test-time.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/tinytest.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/tinytest.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/tinytest_macros.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/time-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/util-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/whatsnew-2.1.txt: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libopts/COPYING.gplv3: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/COPYING.lgplv3: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/COPYING.mbsd: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/libopts/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libopts/README: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/ag-char-map.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/alias.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/ao-strs.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/ao-strs.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/autoopts.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/autoopts.h: up to 1.9
	external/bsd/ntp/dist/sntp/libopts/autoopts/options.h: up to 1.10
	external/bsd/ntp/dist/sntp/libopts/autoopts/project.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/autoopts/usage-txt.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/boolean.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/check.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/compat/compat.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/compat/pathfind.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/compat/windows-config.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/configfile.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/cook.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/enum.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/env.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/file.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/find.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/genshell.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/gettext.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/init.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/intprops.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/libopts.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/load.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/m4/libopts.m4: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/libopts/m4/liboptschk.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/m4/stdnoreturn.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/libopts/makeshell.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/nested.c: up to 1.8
	external/bsd/ntp/dist/sntp/libopts/numeric.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/option-value-type.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/option-value-type.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/parse-duration.c: up to 1.7
	external/bsd/ntp/dist/sntp/libopts/parse-duration.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/pgusage.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/proto.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/putshell.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/reset.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/restore.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/save.c: up to 1.8
	external/bsd/ntp/dist/sntp/libopts/sort.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/stack.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/stdnoreturn.in.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/streqvcmp.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/text_mmap.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/time.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/tokenize.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/usage.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/version.c: up to 1.3
	external/bsd/ntp/dist/sntp/libpkgver/colcomp.c: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/libpkgver/pkgver.h: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/loc/darwin: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/debian: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/freebsd: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/legacy: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/netbsd: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/solaris: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/log.c: up to 1.9
	external/bsd/ntp/dist/sntp/log.h: up to 1.7
	external/bsd/ntp/dist/sntp/m4/ax_c99_struct_init.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/hms_search_lib.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ltversion.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ntp_compiler.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/m4/ntp_locinfo.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_openssl.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ntp_problemtests.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/ntp_rlimit.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ntp_unitytest.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/openldap-thread-check.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/openldap.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/os_cflags.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/main.c: up to 1.13
	external/bsd/ntp/dist/sntp/networking.c: up to 1.12
	external/bsd/ntp/dist/sntp/scripts/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/scripts/cvo.sh: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/scripts/genLocInfo: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.6
	external/bsd/ntp/dist/sntp/sntp-opts.def: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.5
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/crypto.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/crypto.cpp: delete
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h: delete
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h.in: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/tests/keyFile.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/keyFile.cpp: delete
	external/bsd/ntp/dist/sntp/tests/kodDatabase.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/kodDatabase.cpp: delete
	external/bsd/ntp/dist/sntp/tests/kodFile.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/kodFile.cpp: delete
	external/bsd/ntp/dist/sntp/tests/networking.c: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/tests/networking.cpp: delete
	external/bsd/ntp/dist/sntp/tests/packetHandling.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/packetHandling.cpp: delete
	external/bsd/ntp/dist/sntp/tests/packetProcessing.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/packetProcessing.cpp: delete
	external/bsd/ntp/dist/sntp/tests/run-crypto.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-keyFile.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-kodDatabase.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-kodFile.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-networking.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-packetHandling.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-t-log.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/tests/run-utilities.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/sntptest.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/tests/sntptest.h: up to 1.4
	external/bsd/ntp/dist/sntp/tests/t-log.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/tests/utilities.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/utilities.cpp: delete
	external/bsd/ntp/dist/sntp/tests_main.cpp: delete
	external/bsd/ntp/dist/sntp/tests_main.h: delete
	external/bsd/ntp/dist/sntp/unity/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/Makefile.in: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/auto/colour_prompt.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/colour_reporter.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/generate_config.yml: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/generate_module.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/generate_test_runner.rb: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/auto/parseOutput.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/runner_maybe.c: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/auto/test_file_filter.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/type_sanitizer.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/unity_test_summary.py: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/unity_test_summary.rb: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/unity/unity.h: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity_config.h: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/unity_fixture.c: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity_fixture.h: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity_fixture_internals.h: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity_fixture_malloc_overrides.h: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity_internals.h: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/version.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/bug-2803/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/tests/bug-2803/Makefile.in: up to 1.1.1.2
	external/bsd/ntp/dist/tests/bug-2803/bug-2803.c: up to 1.1.1.2
	external/bsd/ntp/dist/tests/bug-2803/run-bug-2803.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/tests/libntp/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.cpp: delete
	external/bsd/ntp/dist/tests/libntp/atoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/atoint.cpp: delete
	external/bsd/ntp/dist/tests/libntp/atouint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/atouint.cpp: delete
	external/bsd/ntp/dist/tests/libntp/authkeys.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/authkeys.cpp: delete
	external/bsd/ntp/dist/tests/libntp/buftvtots.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/buftvtots.cpp: delete
	external/bsd/ntp/dist/tests/libntp/calendar.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/calendar.cpp: delete
	external/bsd/ntp/dist/tests/libntp/caljulian.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/caljulian.cpp:: delete
	external/bsd/ntp/dist/tests/libntp/caltontp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/caltontp.cpp: delete
	external/bsd/ntp/dist/tests/libntp/calyearstart.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/calyearstart.cpp: delete
	external/bsd/ntp/dist/tests/libntp/clocktime.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/clocktime.cpp: delete
	external/bsd/ntp/dist/tests/libntp/decodenetnum.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/decodenetnum.cpp: delete
	external/bsd/ntp/dist/tests/libntp/hextoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/hextoint.cpp: delete
	external/bsd/ntp/dist/tests/libntp/hextolfp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/hextolfp.cpp: delete
	external/bsd/ntp/dist/tests/libntp/humandate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/humandate.cpp: delete
	external/bsd/ntp/dist/tests/libntp/lfpfunc.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/lfpfunc.cpp: delete
	external/bsd/ntp/dist/tests/libntp/lfptest.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/lfptest.h: up to 1.4
	external/bsd/ntp/dist/tests/libntp/lfptostr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/lfptostr.cpp: delete
	external/bsd/ntp/dist/tests/libntp/libntptest.cpp: delete
	external/bsd/ntp/dist/tests/libntp/libntptest.h: delete
	external/bsd/ntp/dist/tests/libntp/modetoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/modetoa.cpp: delete
	external/bsd/ntp/dist/tests/libntp/msyslog.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/msyslog.cpp: delete
	external/bsd/ntp/dist/tests/libntp/netof.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/netof.cpp: delete
	external/bsd/ntp/dist/tests/libntp/numtoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/numtoa.cpp: delete
	external/bsd/ntp/dist/tests/libntp/numtohost.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/numtohost.cpp: delete
	external/bsd/ntp/dist/tests/libntp/octtoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/octtoint.cpp: delete
	external/bsd/ntp/dist/tests/libntp/prettydate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/prettydate.cpp: delete
	external/bsd/ntp/dist/tests/libntp/recvbuff.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/recvbuff.cpp: delete
	external/bsd/ntp/dist/tests/libntp/refidsmear.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/refnumtoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/refnumtoa.cpp: delete
	external/bsd/ntp/dist/tests/libntp/run-a_md5encrypt.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-atoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-atouint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-authkeys.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-buftvtots.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-calendar.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-caljulian.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-caltontp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-calyearstart.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-clocktime.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-decodenetnum.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-hextoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-hextolfp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-humandate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-lfpfunc.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-lfptostr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-modetoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-msyslog.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-netof.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-numtoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-numtohost.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-octtoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-prettydate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-recvbuff.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-refidsmear.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-refnumtoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-sfptostr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-socktoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-ssl_init.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-statestr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-strtolfp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-timespecops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-timevalops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-tstotv.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-tvtots.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-uglydate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-vi64ops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-ymd2yd.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/sfptostr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/sfptostr.cpp: delete
	external/bsd/ntp/dist/tests/libntp/sockaddrtest.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/sockaddrtest.h: up to 1.4
	external/bsd/ntp/dist/tests/libntp/socktoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/socktoa.cpp: delete
	external/bsd/ntp/dist/tests/libntp/ssl_init.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/ssl_init.cpp: delete
	external/bsd/ntp/dist/tests/libntp/statestr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/statestr.cpp: delete
	external/bsd/ntp/dist/tests/libntp/strtolfp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/strtolfp.cpp: delete
	external/bsd/ntp/dist/tests/libntp/test-libntp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/test-libntp.h: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/timespecops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/timespecops.cpp: delete
	external/bsd/ntp/dist/tests/libntp/timestructs.cpp: delete
	external/bsd/ntp/dist/tests/libntp/timestructs.h: delete
	external/bsd/ntp/dist/tests/libntp/timevalops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/timevalops.cpp: delete
	external/bsd/ntp/dist/tests/libntp/tstotv.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/tstotv.cpp: delete
	external/bsd/ntp/dist/tests/libntp/tvtots.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/tvtots.cpp: delete
	external/bsd/ntp/dist/tests/libntp/uglydate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/uglydate.cpp: delete
	external/bsd/ntp/dist/tests/libntp/vi64ops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/vi64ops.cpp: delete
	external/bsd/ntp/dist/tests/libntp/ymd2yd.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/ymd2yd.cpp: delete
	external/bsd/ntp/dist/tests/ntpd/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/tests/ntpd/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/ntpd/leapsec.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/leapsec.cpp: delete
	external/bsd/ntp/dist/tests/ntpd/ntp_prio_q.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/ntp_restrict.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/ntpdtest.cpp: delete
	external/bsd/ntp/dist/tests/ntpd/ntpdtest.h: delete
	external/bsd/ntp/dist/tests/ntpd/rc_cmdlength.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-leapsec.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-ntp_prio_q.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-ntp_restrict.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-rc_cmdlength.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-t-ntp_scanner.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-t-ntp_signd.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/t-ntp_scanner.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/t-ntp_signd.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpq/Makefile.am: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpq/Makefile.in: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpq/run-t-ntpq.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpq/t-ntpq.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/sandbox/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sandbox/Makefile.in: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sandbox/bug-2803.c: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sandbox/modetoa.c: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sandbox/run-modetoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/run-uglydate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/run-ut-2803.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/smeartest.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/uglydate.c: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sandbox/ut-2803.c: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sec-2853/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sec-2853/Makefile.in: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sec-2853/run-sec-2853.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sec-2853/sec-2853.c: up to 1.1.1.3
	external/bsd/ntp/dist/util/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/util/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.5
	external/bsd/ntp/dist/util/jitter.c: up to 1.4
	external/bsd/ntp/dist/util/jitter.h: delete
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.10
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.5
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.5
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/util/ntp-keygen.c: up to 1.9
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.5
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/util/ntptime.c: up to 1.7
	external/bsd/ntp/html/Makefile: up to 1.3
	external/bsd/ntp/importdate: up to 1.7
	external/bsd/ntp/include/config.h: up to 1.13
	external/bsd/ntp/ntp2netbsd: up to 1.5
	external/bsd/ntp/scripts/mkver: up to 1.7
Update ntp to 4.2.8p4.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p4.
d8 3
a10 1
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
a138 25
# Use a proper internal environment variable to ensure we don't fall
  # into an infinite loop, continuously re-executing ourselves.
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    _as_can_reexec=no; export _as_can_reexec;
    # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
as_fn_exit 255
  fi
  # We don't want this to propagate to other subprocesses.
          { _as_can_reexec=; unset _as_can_reexec;}
d172 1
a172 2
test x\$exitcode = x0 || exit 1
test -x / || exit 1"
d225 15
a239 19
  export CONFIG_SHELL
             # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
a341 8

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
a462 4
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  # already done that, so ensure we don't try to do so again and fall
  # in an infinite loop.  This has already happened in practice.
  _as_can_reexec=no; export _as_can_reexec
d497 1
a497 1
    # In both cases, we have to default to `cp -pR'.
d499 1
a499 1
      as_ln_s='cp -pR'
d503 1
a503 1
    as_ln_s='cp -pR'
d506 1
a506 1
  as_ln_s='cp -pR'
d518 22
a539 2
as_test_x='test -x'
as_executable_p=as_fn_executable_p
d571 4
a574 4
PACKAGE_NAME='ntp'
PACKAGE_TARNAME='ntp'
PACKAGE_VERSION='4.2.8p4'
PACKAGE_STRING='ntp 4.2.8p4'
a621 6
BUILD_TEST_NTP_SIGND_FALSE
BUILD_TEST_NTP_SIGND_TRUE
BUILD_TEST_NTP_SCANNER_FALSE
BUILD_TEST_NTP_SCANNER_TRUE
BUILD_TEST_NTP_RESTRICT_FALSE
BUILD_TEST_NTP_RESTRICT_TRUE
a628 4
UNITYBUILD_AVAILABLE_FALSE
UNITYBUILD_AVAILABLE_TRUE
PATH_RUBY
HAVE_LEAPSMEARINTERVAL
d652 1
a668 2
LTHREAD_LIBS
BUILD_THREAD
a669 1
LDADD_LIBUTIL
a675 6
BUILD_LIBEVENT_FALSE
BUILD_LIBEVENT_TRUE
LDADD_LIBEVENT
CPPFLAGS_LIBEVENT
CFLAGS_LIBEVENT
PKG_CONFIG
d696 2
a707 9
ac_ct_AR
AR
INSTALL_UPDATE_LEAP_FALSE
INSTALL_UPDATE_LEAP_TRUE
UPDATE_LEAP_NI
UPDATE_LEAP_MS
UPDATE_LEAP_DS
UPDATE_LEAP_DL
UPDATE_LEAP_DB
a807 1
am__nodep
a830 2
AM_DEFAULT_V
AM_V
a1011 1
enable_leap_smear
a1012 1
enable_problem_tests
d1484 2
d1571 1
a1571 1
\`configure' configures ntp 4.2.8p4 to adapt to many kinds of systems.
d1619 1
a1619 1
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp]
d1641 1
a1641 1
     short | recursive ) echo "Configuration of ntp 4.2.8p4:";;
d1651 4
a1654 6
  --enable-silent-rules   less verbose build output (undo: "make V=1")
  --disable-silent-rules  verbose build output (undo: "make V=0")
  --enable-dependency-tracking
                          do not reject slow dependency extractors
  --disable-dependency-tracking
                          speeds up one-time build
d1687 1
a1687 1
  --with-memlock          ? =32 (-1 on linux) megabytes
a1781 1
  --enable-leap-smear     - experimental leap smear code
a1782 1
  --enable-problem-tests  + enable tests with undiagnosed problems
d1807 1
a1807 1
ntp home page: <http://www.ntp.org./>.
d1870 2
a1871 2
ntp configure 4.2.8p4
generated by GNU Autoconf 2.69
d1873 1
a1873 1
Copyright (C) 2012 Free Software Foundation, Inc.
d2150 1
a2150 1
	 test -x conftest$ac_exeext
d2338 1
a2338 1
	 test -x conftest$ac_exeext
d2428 1
a2428 2
test_array [0] = 0;
return test_array [0];
d2444 1
a2444 2
test_array [0] = 0;
return test_array [0];
d2470 1
a2470 2
test_array [0] = 0;
return test_array [0];
d2486 1
a2486 2
test_array [0] = 0;
return test_array [0];
d2520 1
a2520 2
test_array [0] = 0;
return test_array [0];
d2695 2
a2696 2
It was created by ntp $as_me 4.2.8p4, which was
generated by GNU Autoconf 2.69.  Invocation command line was
a3073 6
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

d3204 1
a3204 1
am__api_version='1.15'
d3243 1
a3243 1
	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d3301 3
d3314 1
a3314 1
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
d3317 1
a3317 1
# Do 'set' in a subshell so we don't clobber the current shell's
d3323 16
a3338 10
   am_has_slept=no
   for am_try in 1 2; do
     echo "timestamp, slept: $am_has_slept" > conftest.file
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
     if test "$*" = "X"; then
	# -L didn't work.
	set X `ls -t "$srcdir/configure" conftest.file`
     fi
     if test "$*" != "X $srcdir/configure conftest.file" \
	&& test "$*" != "X conftest.file $srcdir/configure"; then
a3339 14
	# If neither matched, then we have a broken ls.  This can happen
	# if, for instance, CONFIG_SHELL is bash and it inherits a
	# broken ls alias from the environment.  This has actually
	# happened.  Such a system could not be considered "sane".
	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  alias in your environment" "$LINENO" 5
     fi
     if test "$2" = conftest.file || test $am_try -eq 2; then
       break
     fi
     # Just in case.
     sleep 1
     am_has_slept=yes
   done
a3350 10
# If we didn't sleep, we still need to ensure time stamps of config.status and
# generated files are strictly newer.
am_sleep_pid=
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  ( sleep 1 ) &
  am_sleep_pid=$!
fi

rm -f conftest.file

d3361 2
a3362 2
# Expand $ac_aux_dir to an absolute path.
am_aux_dir=`cd "$ac_aux_dir" && pwd`
d3373 2
a3374 2
if eval "$MISSING --is-lightweight"; then
  am_missing_run="$MISSING "
d3377 2
a3378 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
d3381 1
a3381 1
if test x"${install_sh+set}" != xset; then
d3390 2
a3391 2
# Installed binaries are usually stripped using 'strip' when the user
# run "make install-strip".  However 'strip' might not be the right
d3393 1
a3393 1
# will honor the 'STRIP' environment variable to overrule this program.
d3412 1
a3412 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3452 1
a3452 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3503 1
a3503 1
	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
d3532 6
d3556 1
a3556 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a3619 39
# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in # (((
  yes) AM_DEFAULT_VERBOSITY=0;;
   no) AM_DEFAULT_VERBOSITY=1;;
    *) AM_DEFAULT_VERBOSITY=1;;
esac
am_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if ${am_cv_make_support_nested_variables+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
	@@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  am_cv_make_support_nested_variables=yes
else
  am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
    AM_V='$(V)'
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
  AM_V=$AM_DEFAULT_VERBOSITY
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
AM_BACKSLASH='\'

d3641 2
a3642 2
 PACKAGE='ntp'
 VERSION='4.2.8p4'
d3670 3
a3672 15
# For better backward compatibility.  To be removed once Automake 1.9.x
# dies out for good.  For more background, see:
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
mkdir_p='$(MKDIR_P)'

# We need awk for the "check" target (and possibly the TAP driver).  The
# system "awk" is bad on some platforms.
# Always define AMTAR for backward compatibility.  Yes, it's still used
# in the wild :-(  We should find a proper way to deprecate it ...
AMTAR='$${TAR-tar}'


# We'll loop over all known methods to create a tar archive until one works.
_am_tools='gnutar  pax cpio none'
d3674 1
a3674 1
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d3676 1
a3681 42
# POSIX will say in a future version that running "rm -f" with no argument
# is OK; and we want to be able to make that assumption in our Makefile
# recipes.  So use an aggressive probe to check that the usage we want is
# actually supported "in the wild" to an acceptable degree.
# See automake bug#10828.
# To make any issue more visible, cause the running configure to be aborted
# by default if the 'rm' program in use doesn't match our expectations; the
# user can still override this though.
if rm -f && rm -fr && rm -rf; then : OK; else
  cat >&2 <<'END'
Oops!

Your 'rm' program seems unable to run without file operands specified
on the command line, even when the '-f' option is present.  This is contrary
to the behaviour of most rm programs out there, and not conforming with
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>

Please tell bug-automake@@gnu.org about your system, including the value
of your $PATH and any error possibly output before this message.  This
can help us improve future automake versions.

END
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
    echo 'Configuration will proceed anyway, since you have set the' >&2
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
    echo >&2
  else
    cat >&2 <<'END'
Aborting the configuration process, to ensure you take notice of the issue.

You can download and install GNU coreutils to get an 'rm' implementation
that behaves properly: <http://www.gnu.org/software/coreutils/>.

If you want to complete the configuration process using your problematic
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
to "yes", and re-run configure.

END
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  fi
fi

d3688 4
a3691 4
case $enable_silent_rules in # (((
  yes) AM_DEFAULT_VERBOSITY=0;;
   no) AM_DEFAULT_VERBOSITY=1;;
    *) AM_DEFAULT_VERBOSITY=0;;
a3692 27
am_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if ${am_cv_make_support_nested_variables+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
	@@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  am_cv_make_support_nested_variables=yes
else
  am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
    AM_V='$(V)'
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
  AM_V=$AM_DEFAULT_VERBOSITY
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
d3800 1
a3800 1
# Ignore all kinds of additional output from 'make'.
a3832 1
  am__nodep='_no'
d3865 1
a3865 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3905 1
a3905 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3958 1
a3958 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3999 1
a3999 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4057 1
a4057 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4101 1
a4101 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4547 2
a4548 1
struct stat;
a4632 59
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
if ${am_cv_prog_cc_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
  # Make sure it works both with $CC and with simple cc.
  # Following AC_PROG_CC_C_O, we do the test twice because some
  # compilers refuse to overwrite an existing .o file with -o,
  # though they will create one.
  am_cv_prog_cc_c_o=yes
  for am_i in 1 2; do
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } \
         && test -f conftest2.$ac_objext; then
      : OK
    else
      am_cv_prog_cc_c_o=no
      break
    fi
  done
  rm -f core conftest*
  unset am_i
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
$as_echo "$am_cv_prog_cc_c_o" >&6; }
if test "$am_cv_prog_cc_c_o" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


d4644 2
a4645 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d4679 3
a4681 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d4685 1
a4685 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d4687 2
a4688 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d4697 2
a4698 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d4705 2
a4706 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d4915 1
a4915 1
      as_fn_executable_p "$ac_path_GREP" || continue
d4981 1
a4981 1
      as_fn_executable_p "$ac_path_EGREP" || continue
d5229 110
d5351 2
a5352 1
struct stat;
a5431 177
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if ${ac_cv_prog_cc_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>

// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}

// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;

struct incomplete_array
{
  int datasize;
  double data[];
};

struct named_init {
  int number;
  const wchar_t *name;
  double average;
};

typedef const char *ccp;

static inline int
test_restrict (ccp restrict text)
{
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
  return 0;
}

// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
{
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);

  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
}

int
main ()
{

  // Check bool.
  _Bool success = false;

  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";

  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);

  ;
  return 0;
}
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :

fi


d5458 1
a5458 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5498 1
a5498 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5551 1
a5551 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5592 1
a5592 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5650 1
a5650 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5694 1
a5694 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5890 2
a5891 1
struct stat;
a5975 59
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
if ${am_cv_prog_cc_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
  # Make sure it works both with $CC and with simple cc.
  # Following AC_PROG_CC_C_O, we do the test twice because some
  # compilers refuse to overwrite an existing .o file with -o,
  # though they will create one.
  am_cv_prog_cc_c_o=yes
  for am_i in 1 2; do
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } \
         && test -f conftest2.$ac_objext; then
      : OK
    else
      am_cv_prog_cc_c_o=no
      break
    fi
  done
  rm -f core conftest*
  unset am_i
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
$as_echo "$am_cv_prog_cc_c_o" >&6; }
if test "$am_cv_prog_cc_c_o" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


d5987 2
a5988 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d6022 3
a6024 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d6028 1
a6028 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d6030 2
a6031 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d6040 2
a6041 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d6048 2
a6049 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d6105 14
a6164 1

d6425 1
a6425 1
    # allow ntp_os_cflags to be preset to skip this stuff
d6468 1
a6468 1
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
d6478 1
a6478 1
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
d6513 1
a6513 1
    case "$ntp_os_cflags" in
a6523 32
    ###
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
$as_echo_n "checking additional linker flags... " >&6; }
    # HMS: The following might still need tweaking
    # allow ntp_os_ldflags to be preset to skip this stuff
    case "${ntp_os_ldflags+set}" in
     set)
	;;
     *)
	ntp_os_ldflags=
	case "$host_os" in
	 hpux*)
	    case "$GCC" in
	     yes)
		ntp_os_ldflags="-Wl,+allowdups"
		;;
	    esac
	    ;;
	esac
	;;
    esac
    case "$ntp_os_ldflags" in
     '')
	ntp_os_ldflags_msg="none needed"
	;;
     *)
	ntp_os_ldflags_msg="$ntp_os_ldflags"
    esac
    LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
$as_echo "$ntp_os_ldflags_msg" >&6; }
    { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
a7060 1
# Do we need CXX for anything besides google test?
d7089 1
a7089 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7133 1
a7133 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7329 2
a7330 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d7364 3
a7366 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d7370 1
a7370 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d7372 2
a7373 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d7382 2
a7383 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d7390 2
a7391 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d7463 1
a7463 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a7599 38
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }


	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			struct foo_s {int i1; int i2;};
			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



a7765 184

 if test -z "$UPDATE_LEAP_NI" ; then
  INSTALL_UPDATE_LEAP_TRUE=
  INSTALL_UPDATE_LEAP_FALSE='#'
else
  INSTALL_UPDATE_LEAP_TRUE='#'
  INSTALL_UPDATE_LEAP_FALSE=
fi



if test -n "$ac_tool_prefix"; then
  for ac_prog in ar lib "link -lib"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar lib "link -lib"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_AR" && break
done

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
fi

: ${AR=ar}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
$as_echo_n "checking the archiver ($AR) interface... " >&6; }
if ${am_cv_ar_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

   am_cv_ar_interface=ar
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int some_variable = 0;
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  (eval $am_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
        am_cv_ar_interface=ar
      else
        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  (eval $am_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        if test "$ac_status" -eq 0; then
          am_cv_ar_interface=lib
        else
          am_cv_ar_interface=unknown
        fi
      fi
      rm -f conftest.lib libconftest.a

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
$as_echo "$am_cv_ar_interface" >&6; }

case $am_cv_ar_interface in
ar)
  ;;
lib)
  # Microsoft lib, so override with the ar-lib wrapper script.
  # FIXME: It is wrong to rewrite AR.
  # But if we don't then we get into trouble of one sort or another.
  # A longer-term fix would be to have automake use am__AR in this case,
  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  # similar.
  AR="$am_aux_dir/ar-lib $AR"
  ;;
unknown)
  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  ;;
esac



d7807 2
a7808 2
macro_version='2.4.2'
macro_revision='1.3337'
d7915 1
a7915 1
      as_fn_executable_p "$ac_path_SED" || continue
d7994 1
a7994 1
      as_fn_executable_p "$ac_path_FGREP" || continue
d8250 1
a8250 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8294 1
a8294 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8713 1
a8713 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8753 1
a8753 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9059 1
a9059 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9099 1
a9099 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9202 1
a9202 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9246 1
a9246 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9371 1
a9371 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9411 1
a9411 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9470 1
a9470 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9510 1
a9510 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10145 1
a10145 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10185 1
a10185 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10265 1
a10265 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10305 1
a10305 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10357 1
a10357 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10397 1
a10397 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10449 1
a10449 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10489 1
a10489 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10541 1
a10541 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10581 1
a10581 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10633 1
a10633 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10673 1
a10673 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d18567 3
a18569 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
$as_echo_n "checking size of char *... " >&6; }
if ${ac_cv_sizeof_char_p+:} false; then :
d18572 1
a18572 1
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
d18575 1
a18575 1
  if test "$ac_cv_type_char_p" = yes; then
d18578 1
a18578 1
as_fn_error 77 "cannot compute sizeof (char *)
d18581 1
a18581 1
     ac_cv_sizeof_char_p=0
d18586 2
a18587 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
$as_echo "$ac_cv_sizeof_char_p" >&6; }
d18592 1
a18592 1
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
d19056 1
a19056 1
      as_fn_executable_p "$ac_path_SED" || continue
a19239 120
ntp_pkgconfig_min_version='0.15.0'
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}

case "$PKG_CONFIG" in
 /*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	PKG_CONFIG=""
    fi
    ;;
esac




a19251 91
ntp_libevent_min_version=2
ntp_libevent_tearoff=sntp/libevent





case "$ntp_use_local_libevent" in
 yes)
    ;;
 *) # If we have (a good enough) pkg-config, see if it can find libevent
    case "$PKG_CONFIG" in
     /*)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
	if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
	then
	    ntp_use_local_libevent=no
	    { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
$as_echo "$as_me: Using the installed libevent" >&6;}
	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
	    CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
	    # HMS: I hope the following is accurate.
	    # We don't need -levent, we only need  -levent_core.
	    # While we could grab only the -L stuff, there *might* be
	    # other flags there we want.  Originally we just removed -levent
	    # but then somebody decided to install -levent-2.0
	    # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
	    # So now we dance...
	    LDADD_LIBEVENT=
	    for i in `$PKG_CONFIG --libs libevent`
	    do
		case "$i" in
		 -levent*) ;;
		 *) case "$LDADD_LIBEVENT" in
		     '') LDADD_LIBEVENT="$i" ;;
		     *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
		    esac
		    ;;
		esac
	    done
	    case "$LIBISC_PTHREADS_NOTHREADS" in
	     pthreads)
		LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
	    esac
	    LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	else
	    ntp_use_local_libevent=yes
	    # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
	    # is "pthreads"?
	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	fi
	;;
     *)
	ntp_use_local_libevent=yes
	;;
    esac
    ;;
esac

case "$ntp_use_local_libevent" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
$as_echo "$as_me: Using libevent tearoff" >&6;}
    CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
    case "$LIBISC_PTHREADS_NOTHREADS" in
     pthreads)
	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
	;;
     *)
	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
    esac
esac


 if test "x$ntp_use_local_libevent" = "xyes"; then
  BUILD_LIBEVENT_TRUE=
  BUILD_LIBEVENT_FALSE='#'
else
  BUILD_LIBEVENT_TRUE='#'
  BUILD_LIBEVENT_FALSE=
fi





d19307 5
a19311 61
done







  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
$as_echo_n "checking for unsigned long long int... " >&6; }
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_unsigned_long_long_int=yes
     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

else
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
a19312 1
  fi
d19447 1
a19447 2
test_array [0] = 0;
return test_array [0];
a19469 1

d19475 34
a19509 5
      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
	if test $ac_cv_type_long_long_int = yes; then
	  	  	  	  if test "$cross_compiling" = yes; then :
  :
d19514 5
a19518 5
		 #ifndef LLONG_MAX
		 # define HALF \
			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
		 # define LLONG_MAX (HALF - 1 + HALF)
		 #endif
d19523 10
a19532 10
		 int i;
		 for (i = 0; ; i++)
		   {
		     long long int m = n << i;
		     if (m >> i != n)
		       return 1;
		     if (LLONG_MAX / 2 < m)
		       break;
		   }
		 return 0;
d19538 1
a19538 1

d19546 5
a19550 2
	fi
      fi
d19566 1
a19566 3
  ac_cv_type_unsigned_long_long_int=yes
     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19599 1
a19599 1

a19604 1
     fi
d19679 1
a19679 2
test_array [0] = 0;
return test_array [0];
d19733 1
a19733 1

d19735 1
a19735 1
  /* Ultrix mips cc rejects this sort of thing.  */
d19737 1
a19737 1
  const charset cs = { 0, 0 };
d19754 2
a19755 3
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char tx;
    char *t = &tx;
d19771 1
a19771 1
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
d19773 2
a19774 2
    struct s { int j; const int *ap[3]; } bx;
    struct s *b = &bx; b->j = 5;
d19897 1
a19897 1

d19899 1
a19899 1
  /* Ultrix mips cc rejects this sort of thing.  */
d19901 1
a19901 1
  const charset cs = { 0, 0 };
d19918 2
a19919 3
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char tx;
    char *t = &tx;
d19935 1
a19935 1
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
d19937 2
a19938 2
    struct s { int j; const int *ap[3]; } bx;
    struct s *b = &bx; b->j = 5;
d20820 1
a20820 1
find_stack_direction (int *addr, int depth)
d20822 9
a20830 6
  int dir, dummy = 0;
  if (! addr)
    addr = &dummy;
  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  return dir + dummy;
d20834 1
a20834 1
main (int argc, char **argv)
d20836 1
a20836 1
  return find_stack_direction (0, argc + !argv + 20) < 0;
a21080 67
# Bug 2713
LDADD_LIBUTIL=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
$as_echo_n "checking for library containing snprintb... " >&6; }
if ${ac_cv_search_snprintb+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char snprintb ();
int
main ()
{
return snprintb ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' util; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_snprintb=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_snprintb+:} false; then :
  break
fi
done
if ${ac_cv_search_snprintb+:} false; then :

else
  ac_cv_search_snprintb=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
$as_echo "$ac_cv_search_snprintb" >&6; }
ac_res=$ac_cv_search_snprintb
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_snprintb" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
 esac

$as_echo "#define USE_SNPRINTB 1" >>confdefs.h

fi


d21742 1
a21742 2
test_array [0] = 0;
return test_array [0];
d22071 1
a22071 2
 no) ;;
 *)
d22141 1
a22141 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a25487 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
$as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}

a26527 4




d26553 50
a27767 3
     *-stratus-vos)
	ans=no
	;;
a27845 3
     *-stratus-vos)
	ans=no
	;;
a27908 3
     *-stratus-vos)
	ans=no
	;;
d28088 1
a28088 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28235 1
a28235 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28276 1
a28276 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28351 1
a28351 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a28378 14
case "$PATH_NET_SNMP_CONFIG" in
 /*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
$as_echo_n "checking for net-snmp version... " >&6; }
if ${ntp_cv_net_snmp_version+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
$as_echo "$ntp_cv_net_snmp_version" >&6; }
	;;
esac

d28799 1
a28799 1
for ac_header in sgtty.h stdatomic.h stdlib.h string.h termio.h
a29116 47
case "$ac_cv_header_stdatomic_h" in
 yes)
	for ac_func in atomic_thread_fence
do :
  ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ATOMIC_THREAD_FENCE 1
_ACEOF

fi
done

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
$as_echo_n "checking for atomic_thread_fence()... " >&6; }
if ${ntp_cv_func_atomic_thread_fence+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <stdatomic.h>

int
main ()
{

			atomic_thread_fence(memory_order_seq_cst);


  ;
  return 0;
}
		ntp_cv_func_atomic_thread_fence=yes
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_func_atomic_thread_fence=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
$as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
    ;;
esac

a29954 14
for ac_func in arc4random_buf
do :
  ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
if test "x$ac_cv_func_arc4random_buf" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ARC4RANDOM_BUF 1
_ACEOF

fi
done


####

a30281 5
case "$host" in
 *-*-*linux*)
    ntp_dflt_rlimit_memlock="-1" ;;
 *) ntp_dflt_rlimit_memlock="32" ;;
esac
d30285 1
a30285 1
    HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock"  ;;
d30334 2
d30385 1
a30385 1
    ans=$ntp_dflt_rlimit_memlock
a30399 1

d31243 4
a31246 4
			#include <sys/syscall.h>
			#if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
			# error
			#endif
d31282 4
a31285 4
		#include <sys/timex.h>
		#ifndef STA_FLL
		# error
		#endif
d33049 120
a33569 1
# Because we don't want -Werror for the EVP_MD_do_all_sorted check
a33570 18

case "$ntp_openssl" in
 yes)
    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
    for ac_func in EVP_MD_do_all_sorted
do :
  ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_EVP_MD_DO_ALL_SORTED 1
_ACEOF

fi
done

    ;;
esac

a34086 3
	 *-stratus-vos)
	    ans=no
	    ;;
a34148 3
	 *-stratus-vos)
	    ans=no
	    ;;
a34599 5
	# Bug 2815.  This is a bit of a hack, but it works...
	case "$ntp_cv_net_snmp_version" in
	 5.3*)	SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
		;;
	esac
a34759 3
 *-stratus-vos)
    ans=no
    ;;
d34980 1
d35002 1
a35941 88
###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
$as_echo_n "checking if we want the experimental leap smear code... " >&6; }
# Check whether --enable-leap-smear was given.
if test "${enable_leap_smear+set}" = set; then :
  enableval=$enable_leap_smear; ntp_ok=$enableval
else
  ntp_ok=no

fi

ntp_leap_smear_enabled=0
case "$ntp_ok" in
 yes)
    ntp_leap_smear_enabled=1

$as_echo "#define LEAP_SMEAR 1" >>confdefs.h


    HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }


# We may not need have_unity
have_unity=false
# Extract the first word of "ruby", so it can be a program name with args.
set dummy ruby; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_RUBY+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_RUBY in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_RUBY=$ac_cv_path_PATH_RUBY
if test -n "$PATH_RUBY"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
$as_echo "$PATH_RUBY" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


case "$PATH_RUBY" in
 /*)
    have_unity=true
    ;;
 *) PATH_RUBY="false"
    ;;
esac
# We may not need UNITYBUILD_AVAILABLE
 if $have_unity; then
  UNITYBUILD_AVAILABLE_TRUE=
  UNITYBUILD_AVAILABLE_FALSE='#'
else
  UNITYBUILD_AVAILABLE_TRUE='#'
  UNITYBUILD_AVAILABLE_FALSE=
fi




d35973 1
a35973 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a36041 75

case "$build" in
 $host)	cross=0 ;;
 *)	cross=1 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
$as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
# Check whether --enable-problem-tests was given.
if test "${enable_problem_tests+set}" = set; then :
  enableval=$enable_problem_tests; ntp_ept=$enableval
else
  ntp_ept=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
$as_echo "$ntp_ept" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
$as_echo_n "checking if we can run test-ntp_restrict... " >&6; }
ntp_test_ntp_restrict="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 no:0:*-*-hpux-11.23*) ;;
 *) ntp_test_ntp_restrict="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
$as_echo "$ntp_test_ntp_restrict" >&6; }
 if test x$ntp_test_ntp_restrict = xyes; then
  BUILD_TEST_NTP_RESTRICT_TRUE=
  BUILD_TEST_NTP_RESTRICT_FALSE='#'
else
  BUILD_TEST_NTP_RESTRICT_TRUE='#'
  BUILD_TEST_NTP_RESTRICT_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
$as_echo_n "checking if we can run test-ntp_scanner... " >&6; }
ntp_test_ntp_scanner="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 *) ntp_test_ntp_scanner="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
$as_echo "$ntp_test_ntp_scanner" >&6; }
 if test x$ntp_test_ntp_scanner = xyes; then
  BUILD_TEST_NTP_SCANNER_TRUE=
  BUILD_TEST_NTP_SCANNER_FALSE='#'
else
  BUILD_TEST_NTP_SCANNER_TRUE='#'
  BUILD_TEST_NTP_SCANNER_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
$as_echo_n "checking if we can run test-ntp_signd... " >&6; }
ntp_test_ntp_signd="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 *) ntp_test_ntp_signd="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
$as_echo "$ntp_test_ntp_signd" >&6; }
 if test x$ntp_test_ntp_signd = xyes; then
  BUILD_TEST_NTP_SIGND_TRUE=
  BUILD_TEST_NTP_SIGND_FALSE='#'
else
  BUILD_TEST_NTP_SIGND_TRUE='#'
  BUILD_TEST_NTP_SIGND_FALSE=
fi



d36098 1
a36098 1
ac_config_files="$ac_config_files scripts/build/Makefile"
d36100 1
a36100 1
ac_config_files="$ac_config_files scripts/build/mkver"
d36104 1
a36104 1
ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
d36106 1
a36106 1
ac_config_files="$ac_config_files scripts/lib/Makefile"
d36110 1
a36110 1
ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
d36114 1
a36114 1
ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
a36117 2
ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"

d36124 1
a36124 3
ac_config_files="$ac_config_files scripts/update-leap/Makefile"

ac_config_files="$ac_config_files scripts/update-leap/update-leap"
a36127 2
ac_config_files="$ac_config_files tests/bug-2803/Makefile"

a36131 6
ac_config_files="$ac_config_files tests/ntpq/Makefile"

ac_config_files="$ac_config_files tests/sandbox/Makefile"

ac_config_files="$ac_config_files tests/sec-2853/Makefile"

a36280 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
$as_echo_n "checking that generated files are newer than configure... " >&6; }
   if test -n "$am_sleep_pid"; then
     # Hide warnings about reused PIDs.
     wait $am_sleep_pid 2>/dev/null
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
$as_echo "done" >&6; }
a36317 4
if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a36329 4
if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a36345 4
if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
  as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a36349 12
if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d36648 1
a36648 1
    # In both cases, we have to default to `cp -pR'.
d36650 1
a36650 1
      as_ln_s='cp -pR'
d36654 1
a36654 1
    as_ln_s='cp -pR'
d36657 1
a36657 1
  as_ln_s='cp -pR'
d36717 22
a36738 10

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
as_test_x='test -x'
as_executable_p=as_fn_executable_p
d36759 2
a36760 2
This file was extended by ntp $as_me 4.2.8p4, which was
generated by GNU Autoconf 2.69.  Invocation command line was
d36820 1
a36820 1
ntp home page: <http://www.ntp.org./>."
d36826 2
a36827 2
ntp config.status 4.2.8p4
configured by $0, generated by GNU Autoconf 2.69,
d36830 1
a36830 1
Copyright (C) 2012 Free Software Foundation, Inc.
d36921 1
a36921 1
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d37353 3
a37355 1
    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
d37357 1
a37357 3
    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
d37359 1
a37359 1
    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
d37361 1
a37361 1
    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
a37362 1
    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
d37366 1
a37366 2
    "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
    "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
a37367 1
    "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
a37369 3
    "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;;
    "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
    "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
d38006 1
a38006 1
  # Older Autoconf quotes --file arguments for eval, but not when files
d38019 1
a38019 1
    # We used to match only the files named 'Makefile.in', but
d38053 1
a38053 1
    # from the Makefile without running 'make'.
d38057 1
a38057 1
    test -z "$am__include" && continue
d38059 2
d38067 1
a38067 1
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
d38902 1
a38902 1
    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' -e '/^$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
d38904 1
a38905 1
    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
a38911 1
    "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
@


1.1.1.2.8.3
log
@Pull up following revision(s) (requested by spz in ticket #1380):
	external/bsd/ntp/importdate: up to revision 1.9
	external/bsd/ntp/bin/ntpd/Makefile: up to revision 1.21
	external/bsd/ntp/dist/ChangeLog: up to revision 1.1.1.9
	external/bsd/ntp/dist/CommitLog: up to revision 1.1.1.9
	external/bsd/ntp/dist/Makefile.am: up to revision 1.1.1.8
	external/bsd/ntp/dist/Makefile.in: up to revision 1.1.1.9
	external/bsd/ntp/dist/NEWS: up to revision 1.1.1.9
	external/bsd/ntp/dist/README.pullrequests: up to revision 1.1.1.1
	external/bsd/ntp/dist/config.h.in: up to revision 1.1.1.8
	external/bsd/ntp/dist/configure: up to revision 1.1.1.9
	external/bsd/ntp/dist/configure.ac: up to revision 1.1.1.8
	external/bsd/ntp/dist/packageinfo.sh: up to revision 1.1.1.9
	external/bsd/ntp/dist/html/authentic.html: up to revision 1.1.1.3
	external/bsd/ntp/dist/html/miscopt.html: up to revision 1.1.1.8
	external/bsd/ntp/dist/html/monopt.html: up to revision 1.1.1.4
	external/bsd/ntp/dist/html/xleave.html: up to revision 1.1.1.4
	external/bsd/ntp/dist/include/Makefile.am: up to revision 1.1.1.8
	external/bsd/ntp/dist/include/Makefile.in: up to revision 1.1.1.9
	external/bsd/ntp/dist/include/ntp.h: up to revision 1.6
	external/bsd/ntp/dist/include/ntp_io.h: up to revision 1.5
	external/bsd/ntp/dist/include/ntp_keyacc.h: up to revision 1.1.1.1
	external/bsd/ntp/dist/include/ntp_refclock.h: up to revision 1.5
	external/bsd/ntp/dist/include/ntp_stdlib.h: up to revision 1.13
	external/bsd/ntp/dist/include/ntp_types.h: up to revision 1.6
	external/bsd/ntp/dist/include/ntp_worker.h: up to revision 1.5
	external/bsd/ntp/dist/include/ntpd.h: up to revision 1.8
	external/bsd/ntp/dist/include/parse.h: up to revision 1.6
	external/bsd/ntp/dist/include/recvbuff.h: up to revision 1.5
	external/bsd/ntp/dist/include/safecast.h: up to revision 1.1.1.2
	external/bsd/ntp/dist/lib/isc/backtrace.c: up to revision 1.6
	external/bsd/ntp/dist/lib/isc/buffer.c: up to revision 1.4
	external/bsd/ntp/dist/lib/isc/hmacmd5.c: up to revision 1.5
	external/bsd/ntp/dist/lib/isc/hmacsha.c: up to revision 1.5
	external/bsd/ntp/dist/lib/isc/inet_aton.c: up to revision 1.4
	external/bsd/ntp/dist/lib/isc/inet_pton.c: up to revision 1.7
	external/bsd/ntp/dist/lib/isc/log.c: up to revision 1.7
	external/bsd/ntp/dist/lib/isc/netaddr.c: up to revision 1.9
	external/bsd/ntp/dist/lib/isc/sockaddr.c: up to revision 1.7
	external/bsd/ntp/dist/lib/isc/task.c: up to revision 1.4
	external/bsd/ntp/dist/lib/isc/tsmemcmp.c: up to revision 1.1.1.1
	external/bsd/ntp/dist/lib/isc/include/isc/string.h: up to revision 1.5
	external/bsd/ntp/dist/lib/isc/win32/interfaceiter.c: up to revision 1.4
	external/bsd/ntp/dist/lib/isc/win32/net.c: up to revision 1.4
	external/bsd/ntp/dist/libntp/Makefile.am: up to revision 1.1.1.6
	external/bsd/ntp/dist/libntp/Makefile.in: up to revision 1.1.1.9
	external/bsd/ntp/dist/libntp/a_md5encrypt.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/atolfp.c: up to revision 1.8
	external/bsd/ntp/dist/libntp/authkeys.c: up to revision 1.10
	external/bsd/ntp/dist/libntp/authreadkeys.c: up to revision 1.9
	external/bsd/ntp/dist/libntp/authusekey.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/dolfptoa.c: up to revision 1.4
	external/bsd/ntp/dist/libntp/hextolfp.c: up to revision 1.7
	external/bsd/ntp/dist/libntp/is_ip_address.c: up to revision 1.1.1.1
	external/bsd/ntp/dist/libntp/mstolfp.c: up to revision 1.7
	external/bsd/ntp/dist/libntp/msyslog.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/ntp_crypto_rnd.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to revision 1.9
	external/bsd/ntp/dist/libntp/ntp_lineedit.c: up to revision 1.9
	external/bsd/ntp/dist/libntp/ntp_rfc2553.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/ntp_worker.c: up to revision 1.6
	external/bsd/ntp/dist/libntp/recvbuff.c: up to revision 1.6
	external/bsd/ntp/dist/libntp/snprintf.c: up to revision 1.4
	external/bsd/ntp/dist/libntp/socktohost.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/systime.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/work_fork.c: up to revision 1.9
	external/bsd/ntp/dist/libntp/work_thread.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_computime.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_dcf7000.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_hopf6021.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_meinberg.c: up to revision 1.6
	external/bsd/ntp/dist/libparse/clk_rawdcf.c: up to revision 1.7
	external/bsd/ntp/dist/libparse/clk_rcc8000.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_schmid.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_trimtaip.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_varitext.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_wharton.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/parse.c: up to revision 1.5
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to revision 1.1.1.5
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to revision 1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to revision 1.1.1.6
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.def: up to revision 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to revision 1.14
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to revision 1.16
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to revision 1.12
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to revision 1.22
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to revision 1.10
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to revision 1.9
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to revision 1.13
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to revision 1.11
	external/bsd/ntp/dist/ntpd/ntp_refclock.c: up to revision 1.9
	external/bsd/ntp/dist/ntpd/ntp_request.c: up to revision 1.14
	external/bsd/ntp/dist/ntpd/ntp_restrict.c: up to revision 1.8
	external/bsd/ntp/dist/ntpd/ntp_signd.c: up to revision 1.4
	external/bsd/ntp/dist/ntpd/ntp_timer.c: up to revision 1.7
	external/bsd/ntp/dist/ntpd/ntp_util.c: up to revision 1.8
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to revision 1.7
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to revision 1.10
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.c: up to revision 1.13
	external/bsd/ntp/dist/ntpd/ntpd.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/refclock_chu.c: up to revision 1.9
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to revision 1.9
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to revision 1.10
	external/bsd/ntp/dist/ntpd/refclock_local.c: up to revision 1.5
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to revision 1.18
	external/bsd/ntp/dist/ntpd/refclock_shm.c: up to revision 1.8
	external/bsd/ntp/dist/ntpd/refclock_true.c: up to revision 1.6
	external/bsd/ntp/dist/ntpd/refclock_tsyncpci.c: up to revision 1.4
	external/bsd/ntp/dist/ntpdate/ntpdate.c: up to revision 1.10
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to revision 1.7
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to revision 1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.c: up to revision 1.13
	external/bsd/ntp/dist/ntpdc/ntpdc.h: up to revision 1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc_ops.c: up to revision 1.8
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpq/libntpq.c: up to revision 1.4
	external/bsd/ntp/dist/ntpq/libntpq.h: up to revision 1.5
	external/bsd/ntp/dist/ntpq/libntpq_subs.c: up to revision 1.4
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to revision 1.7
	external/bsd/ntp/dist/ntpq/ntpq-opts.def: up to revision 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to revision 1.7
	external/bsd/ntp/dist/ntpq/ntpq-subs.c: up to revision 1.14
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.c: up to revision 1.15
	external/bsd/ntp/dist/ntpq/ntpq.h: up to revision 1.9
	external/bsd/ntp/dist/ntpq/ntpq.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to revision 1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to revision 1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary-opts: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.am: up to revision 1.1.1.3
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/config.h.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/configure: up to revision 1.1.1.9
	external/bsd/ntp/dist/sntp/crypto.c: up to revision 1.10
	external/bsd/ntp/dist/sntp/crypto.h: up to revision 1.5
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/main.c: up to revision 1.15
	external/bsd/ntp/dist/sntp/networking.c: up to revision 1.14
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to revision 1.8
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to revision 1.7
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.html: up to revision 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/version.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/include/copyright.def: up to revision 1.1.1.4
	external/bsd/ntp/dist/sntp/include/version.def: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/include/version.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/test/regress.gen.c: up to revision 1.5
	external/bsd/ntp/dist/sntp/libopts/configfile.c: up to revision 1.8
	external/bsd/ntp/dist/sntp/libopts/enum.c: up to revision 1.8
	external/bsd/ntp/dist/sntp/libopts/init.c: up to revision 1.8
	external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/m4/ntp_problemtests.m4: up to revision 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/version.m4: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/tests/crypto.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.c: up to revision 1.1.1.4
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h.in: up to revision 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/keyFile.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/kodDatabase.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/kodFile.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/packetHandling.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/packetProcessing.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/run-kodDatabase.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/run-t-log.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/t-log.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/utilities.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/unity/unity_internals.h: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/bug-2803/bug-2803.c: up to revision 1.1.1.4
	external/bsd/ntp/dist/tests/bug-2803/run-bug-2803.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/Makefile.am: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/Makefile.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/authkeys.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/buftvtots.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/calendar.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/caljulian.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/clocktime.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/decodenetnum.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/humandate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/lfpfunc.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/lfptostr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/modetoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/msyslog.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/netof.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/numtoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/numtohost.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/octtoint.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/prettydate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/recvbuff.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/refidsmear.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/refnumtoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-a_md5encrypt.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-authkeys.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-calendar.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-decodenetnum.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-humandate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-lfpfunc.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-lfptostr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-modetoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-msyslog.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-netof.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-numtoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-numtohost.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-prettydate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-refnumtoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-sfptostr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-socktoa.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-statestr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-strtolfp.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-timespecops.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-timevalops.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-tsafememcmp.c: up to revision 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/run-uglydate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/sfptostr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/socktoa.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/ssl_init.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/statestr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/strtolfp.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/timespecops.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/timevalops.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/tsafememcmp.c: up to revision 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/uglydate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/ntpd/leapsec.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/ntp_prio_q.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/ntp_restrict.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/rc_cmdlength.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-leapsec.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-ntp_restrict.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-rc_cmdlength.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-t-ntp_signd.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/t-ntp_scanner.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/t-ntp_signd.c: up to revision 1.1.1.4
	external/bsd/ntp/dist/tests/ntpq/Makefile.am: up to revision 1.1.1.2
	external/bsd/ntp/dist/tests/ntpq/Makefile.in: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/run-uglydate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/sandbox/smeartest.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/sandbox/uglydate.c: up to revision 1.1.1.4
	external/bsd/ntp/dist/tests/sec-2853/sec-2853.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to revision 1.12
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to revision 1.7
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to revision 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.c: up to revision 1.10
	external/bsd/ntp/dist/util/ntp-keygen.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/include/config.h: up to revision 1.16
	external/bsd/ntp/lib/libiscntp/Makefile: up to revision 1.14
	external/bsd/ntp/lib/libntp/Makefile: up to revision 1.18
	external/bsd/ntp/scripts/mkver: up to revision 1.10
	external/bsd/ntp/bin/ntpd/ntp_parser.c: patch
	external/bsd/ntp/bin/ntpd/ntp_parser.h: patch
Update ntp to 4.2.8p7.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p7.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p7'
PACKAGE_STRING='ntp 4.2.8p7'
a1052 1
enable_bug3020_fix
a1060 1
enable_dynamic_interleave
d1619 1
a1619 1
\`configure' configures ntp 4.2.8p7 to adapt to many kinds of systems.
d1689 1
a1689 1
     short | recursive ) echo "Configuration of ntp 4.2.8p7:";;
a1822 1
  --enable-bug3020-fix    + Provide the explicit 127.0.0.0/8 martian filter
a1832 2
  --enable-dynamic-interleave
                          - dynamic interleave support
d1922 1
a1922 1
ntp configure 4.2.8p7
d2752 1
a2752 1
It was created by ntp $as_me 4.2.8p7, which was
d3753 1
a3753 1
 VERSION='4.2.8p7'
d20021 1
a20021 1
	    for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
a20023 1
		 -D*) ;;
a22119 3

$as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h

d29708 1
a29708 107
for ac_header in sgtty.h stdatomic.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
if ${ac_cv_header_stdbool_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

             #include <stdbool.h>
             #ifndef bool
              "error: bool is not defined"
             #endif
             #ifndef false
              "error: false is not defined"
             #endif
             #if false
              "error: false is not 0"
             #endif
             #ifndef true
              "error: true is not defined"
             #endif
             #if true != 1
              "error: true is not 1"
             #endif
             #ifndef __bool_true_false_are_defined
              "error: __bool_true_false_are_defined is not defined"
             #endif

             struct s { _Bool s: 1; _Bool t; } s;

             char a[true == 1 ? 1 : -1];
             char b[false == 0 ? 1 : -1];
             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
             char d[(bool) 0.5 == true ? 1 : -1];
             /* See body of main program for 'e'.  */
             char f[(_Bool) 0.0 == false ? 1 : -1];
             char g[true];
             char h[sizeof (_Bool)];
             char i[sizeof s.t];
             enum { j = false, k = true, l = false * true, m = true * 256 };
             /* The following fails for
                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
             _Bool n[m];
             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
             /* Catch a bug in an HP-UX C compiler.  See
                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
              */
             _Bool q = true;
             _Bool *pq = &q;

int
main ()
{

             bool e = &s;
             *pq |= q;
             *pq |= ! q;
             /* Refer to every declared value, to avoid compiler optimizations.  */
             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
                     + !m + !n + !o + !p + !q + !pq);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdbool_h=yes
else
  ac_cv_header_stdbool_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
$as_echo "$ac_cv_header_stdbool_h" >&6; }
   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
if test "x$ac_cv_type__Bool" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE__BOOL 1
_ACEOF


fi


if test $ac_cv_header_stdbool_h = yes; then

$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h

fi

for ac_header in stdlib.h string.h termio.h
a35833 20
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5
$as_echo_n "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; }
# Check whether --enable-bug3020-fix was given.
if test "${enable_bug3020_fix+set}" = set; then :
  enableval=$enable_bug3020_fix; ans=$enableval
else
  ans=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 yes)

$as_echo "#define ENABLE_BUG3020_FIX 1" >>confdefs.h

esac


a36852 26
###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5
$as_echo_n "checking if we want dynamic interleave support... " >&6; }
# Check whether --enable-dynamic-interleave was given.
if test "${enable_dynamic_interleave+set}" = set; then :
  enableval=$enable_dynamic_interleave; ntp_ok=$enableval
else
  ntp_ok=no

fi

ntp_dynamic_interleave=0
case "$ntp_ok" in
 yes)
    ntp_dynamic_interleave=1
    ;;
esac

cat >>confdefs.h <<_ACEOF
#define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave
_ACEOF

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

a37037 2
 no:0:*-*-freebsd6.4) ;;
 no:0:*-*-hpux11.23*) ;;
d37039 1
a37056 1
 no:0:*-*-freebsd6.4) ;;
a37074 1
 no:0:*-*-freebsd6.4) ;;
d37839 1
a37839 1
This file was extended by ntp $as_me 4.2.8p7, which was
d37906 1
a37906 1
ntp config.status 4.2.8p7
@


1.1.1.2.8.4
log
@Pull up following revision(s) (requested by spz in ticket #1448):
	doc/3RDPARTY: patch
	external/bsd/ntp/Makefile.inc: up to 1.16 via patch
	external/bsd/ntp/bin/Makefile: up to 1.3
	external/bsd/ntp/bin/ntpd/Makefile: up to 1.21 via patch
	external/bsd/ntp/bin/ntpd/ntp.keys.5: up to 1.2
	external/bsd/ntp/bin/ntpd/ntp_parser.c: patch
	external/bsd/ntp/bin/ntpd/ntp_parser.h: patch
	external/bsd/ntp/bin/sntp/Makefile: up to 1.6 via patch
	external/bsd/ntp/dist/COPYRIGHT: up to 1.1.1.8
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.12
	external/bsd/ntp/dist/CommitLog: up to 1.1.1.12
	external/bsd/ntp/dist/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/NEWS: up to 1.1.1.12
	external/bsd/ntp/dist/aclocal.m4: up to 1.1.1.10
	external/bsd/ntp/dist/adjtimed/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/adjtimed/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/clockstuff/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/clockstuff/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/config.h.in: up to 1.1.1.9
	external/bsd/ntp/dist/configure: up to 1.1.1.12
	external/bsd/ntp/dist/configure.ac: up to 1.1.1.10
	external/bsd/ntp/dist/html/authentic.html: up to 1.1.1.3
	external/bsd/ntp/dist/html/copyright.html: up to 1.1.1.6
	external/bsd/ntp/dist/html/drivers/driver40-ja.html: up to 1.1.1.2
	external/bsd/ntp/dist/html/drivers/driver40.html: up to 1.1.1.5
	external/bsd/ntp/dist/html/miscopt.html: up to 1.1.1.10
	external/bsd/ntp/dist/html/xleave.html: up to 1.1.1.4
	external/bsd/ntp/dist/include/Makefile.am: up to 1.1.1.9
	external/bsd/ntp/dist/include/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/include/isc/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/include/libssl_compat.h: up to 1.1.1.2
	external/bsd/ntp/dist/include/ntp.h: up to 1.8
	external/bsd/ntp/dist/include/ntp_crypto.h: up to 1.5
	external/bsd/ntp/dist/include/ntp_fp.h: up to 1.9
	external/bsd/ntp/dist/include/ntp_intres.h: up to 1.5
	external/bsd/ntp/dist/include/ntp_md5.h: up to 1.7
	external/bsd/ntp/dist/include/ntp_stdlib.h: up to 1.14
	external/bsd/ntp/dist/include/ntp_worker.h: up to 1.5
	external/bsd/ntp/dist/include/ntpd.h: up to 1.10
	external/bsd/ntp/dist/include/parse.h: up to 1.6
	external/bsd/ntp/dist/include/ssl_applink.c: up to 1.5
	external/bsd/ntp/dist/kernel/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/kernel/sys/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/lib/isc/inet_pton.c: up to 1.8
	external/bsd/ntp/dist/libntp/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/libntp/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/libntp/a_md5encrypt.c: up to 1.8
	external/bsd/ntp/dist/libntp/audio.c: up to 1.12
	external/bsd/ntp/dist/libntp/authkeys.c: up to 1.11
	external/bsd/ntp/dist/libntp/authreadkeys.c: up to 1.9
	external/bsd/ntp/dist/libntp/emalloc.c: up to 1.8
	external/bsd/ntp/dist/libntp/libssl_compat.c: up to 1.1.1.2
	external/bsd/ntp/dist/libntp/ntp_calendar.c: up to 1.9
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to 1.11
	external/bsd/ntp/dist/libntp/recvbuff.c: up to 1.7
	external/bsd/ntp/dist/libntp/ssl_init.c: up to 1.10
	external/bsd/ntp/dist/libntp/statestr.c: up to 1.6
	external/bsd/ntp/dist/libntp/work_fork.c: up to 1.11
	external/bsd/ntp/dist/libntp/work_thread.c: up to 1.5
	external/bsd/ntp/dist/libparse/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/libparse/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/libparse/clk_hopf6021.c: up to 1.6
	external/bsd/ntp/dist/libparse/clk_trimtsip.c: up to 1.6
	external/bsd/ntp/dist/libparse/gpstolfp.c: up to 1.6
	external/bsd/ntp/dist/ntpd/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/complete.conf.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.17
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.19
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to 1.25
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.16
	external/bsd/ntp/dist/ntpd/ntp_peer.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.15
	external/bsd/ntp/dist/ntpd/ntp_refclock.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp_request.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_restrict.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_scanner.c: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_timer.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.13
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/refclock_datum.c: up to 1.7
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to 1.11
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to 1.12
	external/bsd/ntp/dist/ntpd/refclock_jupiter.c: up to 1.11
	external/bsd/ntp/dist/ntpd/refclock_mx4200.c: up to 1.5
	external/bsd/ntp/dist/ntpd/refclock_nmea.c: up to 1.12
	external/bsd/ntp/dist/ntpd/refclock_oncore.c: up to 1.14
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to 1.20
	external/bsd/ntp/dist/ntpdate/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/ntpdate/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdate/ntpdate.c: up to 1.11
	external/bsd/ntp/dist/ntpdc/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.c: up to 1.15
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc_ops.c: up to 1.9
	external/bsd/ntp/dist/ntpq/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/libntpq.c: up to 1.5
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpq/ntpq-subs.c: up to 1.15
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.c: up to 1.18
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.12
	external/bsd/ntp/dist/parseutil/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/parseutil/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/build/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/build/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/build/genAuthors.in: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/lib/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.in: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary-opts.def: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/update-leap/Makefile.in: up to 1.1.1.6
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.in: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/COPYRIGHT: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/aclocal.m4: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/config.h.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.12
	external/bsd/ntp/dist/sntp/configure.ac: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/crypto.c: up to 1.13
	external/bsd/ntp/dist/sntp/crypto.h: up to 1.5
	external/bsd/ntp/dist/sntp/harden/README: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/default: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd10: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd11: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd12: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/linux: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/netbsd7.0: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/netbsd7.99: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/include/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/include/copyright.def: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/kod_management.c: up to 1.8
	external/bsd/ntp/dist/sntp/libevent/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/libevent/build-aux/compile: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/config.guess: up to 1.2
	external/bsd/ntp/dist/sntp/libevent/build-aux/config.sub: up to 1.2
	external/bsd/ntp/dist/sntp/libevent/build-aux/depcomp: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/install-sh: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/ltmain.sh: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/build-aux/missing: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/ylwrap: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/config.h.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/configure: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/configure.ac: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/evlog.c: patch
	external/bsd/ntp/dist/sntp/libevent/include/event2/event-config.h: patch
	external/bsd/ntp/dist/sntp/libevent/m4/libtool.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltoptions.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltsugar.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltversion.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/m4/lt~obsolete.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_ssl.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/libopts/configfile.c: up to 1.8
	external/bsd/ntp/dist/sntp/libopts/nested.c: up to 1.10
	external/bsd/ntp/dist/sntp/libopts/parse-duration.c: up to 1.9
	external/bsd/ntp/dist/sntp/m4/libtool.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltoptions.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltsugar.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltversion.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/m4/lt~obsolete.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ntp_compiler.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_harden.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/m4/ntp_openssl.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_problemtests.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_prog_cc.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/sntp_problemtests.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/scm-rev: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/scripts/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/scripts/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/scripts/genHardFlags: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.11
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.10
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.12
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/tests/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/tests/crypto.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.c: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/tests/keyFile.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/packetHandling.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/packetProcessing.c: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/tests/t-log.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/unity/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/unity/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/unity/ulib_setup.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/ulib_teardown.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/unity_fixture.c: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/version.c: up to 1.1.1.9
	external/bsd/ntp/dist/tests/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/tests/bug-2803/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/bug-2803/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/bug-2803/run-bug-2803.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/buftvtots.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/calendar.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/caljulian.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/clocktime.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/decodenetnum.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/lfpfunc.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/netof.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/numtohost.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/octtoint.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/refidsmear.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/refnumtoa.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-calendar.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/sfptostr.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/socktoa.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/timespecops.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/timevalops.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/ntpd/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/tests/ntpd/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/tests/ntpd/leapsec.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/t-ntp_signd.c: up to 1.1.1.4
	external/bsd/ntp/dist/tests/ntpq/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpq/Makefile.in: up to 1.1.1.4
	external/bsd/ntp/dist/tests/sandbox/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/sec-2853/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sec-2853/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/util/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/util/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.15
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.10
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.c: up to 1.12
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/importdate: up to 1.12
	external/bsd/ntp/include/config.h: up to 1.19
	external/bsd/ntp/lib/libntp/Makefile: up to 1.19
	external/bsd/ntp/lib/libopts/Makefile: up to 1.14
	external/bsd/ntp/scripts/mkver: up to 1.13
Update ntp to 4.2.8p10.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p10.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p10'
PACKAGE_STRING='ntp 4.2.8p10'
d726 1
a726 1
LT_SYS_LIBRARY_PATH
a834 3
NTP_HARD_LDFLAGS
NTP_HARD_CPPFLAGS
NTP_HARD_CFLAGS
d837 6
a954 1
with_aix_soname
d1075 3
d1080 1
a1080 1
LT_SYS_LIBRARY_PATH'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p10 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p10:";;
d1710 1
a1710 1
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
a1713 3
  --with-aix-soname=aix|svr4|both
                          shared library versioning (aka "SONAME") variant to
                          provide on AIX, [default=aix].
d1715 2
a1716 2
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
                          compiler's sysroot if not specified).
d1850 2
d1858 1
a1858 2
  LT_SYS_LIBRARY_PATH
              User-defined run-time library search path.
d1927 1
a1927 1
ntp configure 4.2.8p10
d2226 38
d2331 83
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p10, which was
d3758 1
a3758 1
 VERSION='4.2.8p10'
a4039 13

case "$build" in
 *-*-freebsd1?.*)
    cclist=cc
    ;;
 *)
    cclist="cc gcc"
    ;;
esac


#AC_USE_SYSTEM_EXTENSIONS

d4046 191
a4236 1
  for ac_prog in $cclist
d4280 1
a4280 1
  for ac_prog in $cclist
d4335 2
a5016 2


d5486 92
a5577 5
   case $ac_cv_prog_cc_stdc in #(
  no) :
    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
a5749 32
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
d5751 5
a5755 8
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
a5756 4
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d5758 18
a5775 16
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d5777 8
a5784 6
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
d5786 2
a5787 2
rm -f conftest.$ac_ext
CC=$ac_save_CC
d5790 5
a5794 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
d5796 2
a5797 1
  ac_cv_prog_cc_stdc=no
d5800 1
d5802 7
a5808 5
 ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  if ${ac_cv_prog_cc_stdc+:} false; then :
d5810 28
d5840 8
a5847 10
  case $ac_cv_prog_cc_stdc in #(
  no) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;; #(
  '') :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
d5849 32
d5882 10
d5894 32
d5927 22
a5949 2
# Ralf Wildenhues: With per-target flags we need CC_C_O
# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
d5951 10
a5960 4
if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
d5963 24
a5986 9
    ac_pattern="Autoconf.*'x'"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5988 2
a5989 1
  ac_cv_prog_gcc_traditional=no
a5990 1
rm -f conftest*
d5993 2
a5994 9
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5996 28
a6023 1
rm -f conftest*
a6024 1
  fi
d6026 8
a6033 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d6037 2
d6040 12
a6051 4
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d6053 1
d6056 4
d6061 9
a6069 8

case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
d6071 14
d6086 3
a6088 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d6097 4
a6100 1
#warning foo
d6106 1
a6106 1
  ntp_cv_cpp_warning=yes
d6108 1
a6108 2
  ntp_cv_cpp_warning=no

d6111 1
d6114 12
a6125 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
d6128 5
a6132 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6137 1
void foo(void) __attribute__((__noreturn__));
d6144 1
a6144 1
  ntp_cv_cc_attribute=yes
d6146 2
a6147 26
  ntp_cv_cc_attribute=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)

$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h

esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6158 6
  ntp_cv_gcc_Wstrict_overflow=yes
else
  ntp_cv_gcc_Wstrict_overflow=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6159 12
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
  $as_echo_n "(cached) " >&6
d6161 3
a6163 2

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6175 5
a6179 4
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

d6182 18
a6199 2


d6201 3
a6203 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
d6206 25
d6232 8
a6239 4
	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6241 4
a6244 2
			#include <stdlib.h>
			#include <stdio.h>
d6246 6
d6255 1
a6255 23

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


d6260 12
a6271 1
if ac_fn_c_try_link "$LINENO"; then :
d6273 15
a6287 6
		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d6289 458
a6746 2
else
  ntp_cv_gc_sections_runs=no
d6926 1
d7324 13
a7336 8

for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
d7339 144
a7482 2
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
d7491 1
a7491 1
    ac_cv_prog_YACC="$ac_prog"
d7501 4
a7504 4
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
d7511 28
a7538 1
  test -n "$YACC" && break
d7540 2
a7541 1
test -n "$YACC" || YACC="yacc"
d7543 6
a7548 4
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if ${ac_cv_prog_cc_c99+:} false; then :
  $as_echo_n "(cached) " >&6
d7550 3
a7552 9
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>
a7553 14
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}
d7555 2
a7556 13
// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;
d7558 12
a7569 5
struct incomplete_array
{
  int datasize;
  double data[];
};
d7571 26
a7596 5
struct named_init {
  int number;
  const wchar_t *name;
  double average;
};
d7598 7
a7604 1
typedef const char *ccp;
d7606 2
a7607 2
static inline int
test_restrict (ccp restrict text)
d7609 5
a7613 5
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
d7616 30
d7647 2
a7648 3
// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
a7649 4
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);
d7651 2
a7652 23
  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
d7654 7
d7666 5
a7670 2
  // Check bool.
  _Bool success = false;
d7672 5
a7676 4
  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";
d7678 3
a7680 26
  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);
d7686 6
a7691 5
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
d7693 2
a7694 6
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

d7696 16
a7711 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :

d7713 1
a7713 8



	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }


	ac_ext=c
d7719 1
d7721 24
a7744 2
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d7746 8
a7753 2
			struct foo_s {int i1; int i2;};
			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
d7755 16
a7770 7
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d7772 52
a7823 1
$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
d7825 4
a7829 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7831 4
a7834 5
	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7836 5
a7840 11




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
$as_echo_n "checking for compile/link hardening flags... " >&6; }


# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
d7842 2
a7843 2
  with_locfile=no

d7847 61
a7907 13
(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genHardFlags -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genHardFlags.i 2> genHardFlags.err
. ./genHardFlags.i
d7909 59
a7967 11
case "$GENHARDFLAG" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
$as_echo "in file $GENHARDFLAGFILE" >&6; }
    rm genHardFlags.err genHardFlags.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
    ;;
d7969 46
d8016 10
d8027 1
d8029 2
d8032 5
d8401 1
a8401 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d8403 1
a8403 1
	IFS=$lt_save_ifs
d8408 1
a8408 1
      IFS=$lt_save_ifs
d8431 2
a8432 2
macro_version='2.4.6'
macro_revision='2.4.6'
d8446 1
a8446 1
ltmain=$ac_aux_dir/ltmain.sh
d8495 1
a8495 1
case $ECHO in
d8688 1
a8688 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d8694 1
a8694 1
if test yes = "$GCC"; then
d8700 1
a8700 1
    # gcc leaves a trailing carriage return, which upsets mingw
d8714 1
a8714 1
      test -z "$LD" && LD=$ac_prog
d8725 1
a8725 1
elif test yes = "$with_gnu_ld"; then
d8736 1
a8736 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8738 1
a8738 1
    IFS=$lt_save_ifs
d8741 1
a8741 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d8747 1
a8747 1
	test no != "$with_gnu_ld" && break
d8750 1
a8750 1
	test yes != "$with_gnu_ld" && break
d8755 1
a8755 1
  IFS=$lt_save_ifs
d8757 1
a8757 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d8761 1
a8761 1
LD=$lt_cv_path_LD
d8804 1
a8804 1
  lt_cv_path_NM=$NM
d8806 1
a8806 1
  lt_nm_to_check=${ac_tool_prefix}nm
d8811 1
a8811 1
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8813 1
a8813 1
      IFS=$lt_save_ifs
d8815 2
a8816 2
      tmp_nm=$ac_dir/$lt_tmp_nm
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
d8818 1
a8818 1
	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
d8821 2
a8822 7
	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
	case $build_os in
	mingw*) lt_bad_file=conftest.nm/nofile ;;
	*) lt_bad_file=/dev/null ;;
	esac
	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
	*$lt_bad_file* | *'Invalid file or object type'*)
d8824 1
a8824 1
	  break 2
d8830 1
a8830 1
	    break 2
d8841 1
a8841 1
    IFS=$lt_save_ifs
d8848 2
a8849 2
if test no != "$lt_cv_path_NM"; then
  NM=$lt_cv_path_NM
d8955 1
a8955 1
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
d8957 1
a8957 1
      DUMPBIN="$DUMPBIN -symbols -headers"
d8965 2
a8966 2
  if test : != "$DUMPBIN"; then
    NM=$DUMPBIN
d9017 1
a9017 1
  teststring=ABCD
d9057 1
a9057 1
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a9075 5
  os2*)
    # The test takes a long time on OS/2.
    lt_cv_sys_max_cmd_len=8192
    ;;

d9102 1
a9102 2
    if test -n "$lt_cv_sys_max_cmd_len" && \
       test undefined != "$lt_cv_sys_max_cmd_len"; then
d9108 1
a9108 1
      for i in 1 2 3 4 5 6 7 8; do
d9115 1
a9115 1
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
d9117 1
a9117 1
	      test 17 != "$i" # 1/2 MB should be enough
d9135 1
a9135 1
if test -n "$lt_cv_sys_max_cmd_len"; then
d9153 24
d9299 1
a9299 1
    if test yes != "$GCC"; then
d9304 2
a9305 2
    if test yes = "$GCC"; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
d9433 1
a9433 1
# 'unknown' -- same as none, but documents that we really don't know.
d9437 3
a9439 3
# that responds to the $file_magic_cmd with a given extended regex.
# If you have 'file' or equivalent on your system and you're not sure
# whether 'pass_all' will *always* work, you probably want this one.
d9466 2
a9467 1
  if ( file / ) >/dev/null 2>&1; then
d9503 4
d9544 2
a9545 2
# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d9567 2
a9568 2
openbsd* | bitrig*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a9620 3
os2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9778 2
a9779 2
  # two different shell functions defined in ltmain.sh;
  # decide which one to use based on capabilities of $DLLTOOL
d9791 1
a9791 1
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
d9945 1
a9945 1
      if test 0 -eq "$ac_status"; then
d9953 1
a9953 1
	if test 0 -ne "$ac_status"; then
d9966 1
a9966 1
if test no = "$lt_cv_ar_at_file"; then
d10183 2
a10184 2
  bitrig* | openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
d10187 1
a10187 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
d10190 1
a10190 1
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d10273 1
a10273 1
  if test ia64 = "$host_cpu"; then
a10305 17
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  # Gets list of data symbols to import.
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  # Adjust the below global symbol transforms to fixup imported variables.
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
  lt_c_name_lib_hook="\
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
else
  # Disable hooks by default.
  lt_cv_sys_global_symbol_to_import=
  lt_cdecl_hook=
  lt_c_name_hook=
  lt_c_name_lib_hook=
fi

d10309 1
a10309 4
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
$lt_cdecl_hook\
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
d10312 2
a10313 12
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
$lt_c_name_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"

# Transform an extracted symbol line into symbol name with lib prefix and
# symbol address.
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
$lt_c_name_lib_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
d10331 2
a10332 2
    # Fake it for dumpbin and say T for any non-static function,
    # D for any global variable and I for any imported variable.
a10336 1
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
a10337 3
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
d10341 4
a10344 4
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
"     s[1]~/^[@@?]/{print f,s[1],s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print f,t[1],substr(t[1],length(prfx))}"\
d10392 2
a10393 2
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
/* DATA imports from DLLs on WIN32 can't be const, because runtime
d10396 1
a10396 1
#elif defined __osf__
d10422 1
a10422 1
	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
d10442 1
a10442 1
	  LIBS=conftstm.$ac_objext
d10448 1
a10448 1
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
d10469 1
a10469 1
  if test yes = "$pipe_works"; then
a10521 10










d10534 1
a10534 1
case $with_sysroot in #(
d10536 1
a10536 1
   if test yes = "$GCC"; then
d10546 2
a10547 2
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
$as_echo "$with_sysroot" >&6; }
a10558 80
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
$as_echo_n "checking for a working dd... " >&6; }
if ${ac_cv_path_lt_DD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
: ${lt_DD:=$DD}
if test -z "$lt_DD"; then
  ac_path_lt_DD_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in dd; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_lt_DD" || continue
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
fi
      $ac_path_lt_DD_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_lt_DD"; then
    :
  fi
else
  ac_cv_path_lt_DD=$lt_DD
fi

rm -f conftest.i conftest2.i conftest.out
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
$as_echo "$ac_cv_path_lt_DD" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
$as_echo_n "checking how to truncate binary pipes... " >&6; }
if ${lt_cv_truncate_bin+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
lt_cv_truncate_bin=
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
fi
rm -f conftest.i conftest2.i conftest.out
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
$as_echo "$lt_cv_truncate_bin" >&6; }







# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}

d10564 1
a10564 1
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
d10570 1
a10570 2
  # Find out what ABI is being produced by ac_compile, and set mode
  # options accordingly.
d10579 1
a10579 1
	HPUX_IA64_MODE=32
d10582 1
a10582 1
	HPUX_IA64_MODE=64
d10589 1
a10589 2
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10596 1
a10596 1
    if test yes = "$lt_cv_prog_gnu_ld"; then
d10625 1
a10625 37
mips64*-*linux*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    emul=elf
    case `/usr/bin/file conftest.$ac_objext` in
      *32-bit*)
	emul="${emul}32"
	;;
      *64-bit*)
	emul="${emul}64"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *MSB*)
	emul="${emul}btsmip"
	;;
      *LSB*)
	emul="${emul}ltsmip"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *N32*)
	emul="${emul}n32"
	;;
    esac
    LD="${LD-ld} -m $emul"
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
d10627 1
a10627 6
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.  Note that the listed cases only cover the
  # situations where additional linker options are needed (such as when
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  # vice versa); the common cases where no linker options are needed do
  # not appear in the list.
d10641 1
a10641 11
	    case `/usr/bin/file conftest.o` in
	      *x86-64*)
		LD="${LD-ld} -m elf32_x86_64"
		;;
	      *)
		LD="${LD-ld} -m elf_i386"
		;;
	    esac
	    ;;
	  powerpc64le-*linux*)
	    LD="${LD-ld} -m elf32lppclinux"
d10643 1
a10643 1
	  powerpc64-*linux*)
d10662 1
a10662 4
	  powerpcle-*linux*)
	    LD="${LD-ld} -m elf64lppc"
	    ;;
	  powerpc-*linux*)
d10680 1
a10680 1
  SAVE_CFLAGS=$CFLAGS
d10720 1
a10720 1
  if test yes != "$lt_cv_cc_needs_belf"; then
d10722 1
a10722 1
    CFLAGS=$SAVE_CFLAGS
d10725 2
a10726 3
*-*solaris*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10736 1
a10736 14
      yes*)
        case $host in
        i?86-*-solaris*|x86_64-*-solaris*)
          LD="${LD-ld} -m elf_x86_64"
          ;;
        sparc*-*-solaris*)
          LD="${LD-ld} -m elf64_sparc"
          ;;
        esac
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
          LD=${LD-ld}_sol2
        fi
        ;;
d10750 1
a10750 1
need_locks=$enable_libtool_lock
d10861 1
a10861 1
if test yes != "$lt_cv_path_mainfest_tool"; then
d11364 1
a11364 1
      if test -z "$LT_MULTI_MODULE"; then
d11376 1
a11376 7
	# If there is a non-empty error log, and "single_module"
	# appears in it, assume the flag caused a linker warning
        if test -s conftest.err && $GREP single_module conftest.err; then
	  cat conftest.err >&5
	# Otherwise, if the output was created with a 0 exit code from
	# the compiler, it worked.
	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a11386 1

d11414 1
a11414 1
	LDFLAGS=$save_LDFLAGS
a11418 1

d11440 1
a11440 3
      if test -s conftest.err && $GREP force_load conftest.err; then
	cat conftest.err >&5
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
d11453 1
a11453 1
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
d11455 1
a11455 1
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11462 3
a11464 3
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
	10.[012][,.]*)
	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11466 1
a11466 1
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
d11470 1
a11470 1
    if test yes = "$lt_cv_apple_cc_single_mod"; then
d11473 2
a11474 2
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
d11476 1
a11476 1
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
d11478 1
a11478 1
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a11485 35
# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}

d11502 11
d11534 1
a11534 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11536 1
a11536 1
	IFS=$lt_save_ifs
d11541 1
a11541 1
      IFS=$lt_save_ifs
d11559 1
a11559 16
  withval=$with_pic; lt_p=${PACKAGE-default}
    case $withval in
    yes|no) pic_mode=$withval ;;
    *)
      pic_mode=default
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
      for lt_pkg in $withval; do
	IFS=$lt_save_ifs
	if test "X$lt_pkg" = "X$lt_p"; then
	  pic_mode=yes
	fi
      done
      IFS=$lt_save_ifs
      ;;
    esac
d11565 2
d11582 1
a11582 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11584 1
a11584 1
	IFS=$lt_save_ifs
d11589 1
a11589 1
      IFS=$lt_save_ifs
a11602 52
  shared_archive_member_spec=
case $host,$enable_shared in
power*-*-aix[5-9]*,yes)
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }

# Check whether --with-aix-soname was given.
if test "${with_aix_soname+set}" = set; then :
  withval=$with_aix_soname; case $withval in
    aix|svr4|both)
      ;;
    *)
      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
      ;;
    esac
    lt_cv_with_aix_soname=$with_aix_soname
else
  if ${lt_cv_with_aix_soname+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_with_aix_soname=aix
fi

    with_aix_soname=$lt_cv_with_aix_soname
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
$as_echo "$with_aix_soname" >&6; }
  if test aix != "$with_aix_soname"; then
    # For the AIX way of multilib, we name the shared archive member
    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
    # the AIX toolchain works better with OBJECT_MODE set (default 32).
    if test 64 = "${OBJECT_MODE-32}"; then
      shared_archive_member_spec=shr_64
    else
      shared_archive_member_spec=shr
    fi
  fi
  ;;
*)
  with_aix_soname=aix
  ;;
esac







d11607 1
a11607 1
LIBTOOL_DEPS=$ltmain
a11636 4




d11652 1
a11652 1
if test -n "${ZSH_VERSION+set}"; then
d11691 1
a11691 1
  if test set != "${COLLECT_NAMES+set}"; then
d11702 1
a11702 1
# All known linkers require a '.a' archive for static linking (except MSVC,
d11706 1
a11706 1
with_gnu_ld=$lt_cv_prog_gnu_ld
d11708 2
a11709 2
old_CC=$CC
old_CFLAGS=$CFLAGS
d11718 9
a11726 2
func_cc_basename $compiler
cc_basename=$func_cc_basename_result
d11741 1
a11741 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11744 2
a11745 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11748 1
a11748 1
    IFS=$lt_save_ifs
d11750 2
a11751 2
    if test -f "$ac_dir/${ac_tool_prefix}file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
d11756 1
a11756 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11779 2
a11780 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11785 1
a11785 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11807 1
a11807 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11810 2
a11811 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11814 1
a11814 1
    IFS=$lt_save_ifs
d11816 2
a11817 2
    if test -f "$ac_dir/file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
d11822 1
a11822 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11845 2
a11846 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11851 1
a11851 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11872 1
a11872 1
lt_save_CC=$CC
d11934 1
a11934 1
if test yes = "$GCC"; then
d11950 1
a11950 1
   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
d11980 1
a11980 1
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
d11998 1
a11998 1
  if test yes = "$GCC"; then
d12005 1
a12005 1
      if test ia64 = "$host_cpu"; then
a12008 1
      lt_prog_compiler_pic='-fPIC'
d12019 2
a12020 2
            # adding the '-m68020' flag to GCC prevents building anything better,
            # like '-m68040'.
a12035 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12096 1
a12096 3
      if test -n "$lt_prog_compiler_pic"; then
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
      fi
d12104 1
a12104 1
      if test ia64 = "$host_cpu"; then
a12111 14
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      case $cc_basename in
      nagfor*)
        # NAG Fortran compiler
        lt_prog_compiler_wl='-Wl,-Wl,,'
        lt_prog_compiler_pic='-PIC'
        lt_prog_compiler_static='-Bstatic'
        ;;
      esac
      ;;

a12115 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12131 1
a12131 1
      lt_prog_compiler_static='$wl-a ${wl}archive'
d12140 1
a12140 1
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d12142 1
a12142 1
      # old Intel for x86_64, which still supported -KPIC.
a12166 6
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
	;;
d12187 1
a12187 1
	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
a12192 5
	*Sun\ F* | *Sun*Fortran*)
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Qoption ld '
	  ;;
a12198 10
        *Intel*\ [CF]*Compiler*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fPIC'
	  lt_prog_compiler_static='-static'
	  ;;
	*Portland\ Group*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fpic'
	  lt_prog_compiler_static='-Bstatic'
	  ;;
d12249 1
a12249 1
      if test -d /usr/nec; then
d12278 1
a12278 1
  # For platforms that do not support PIC, -DPIC is meaningless:
d12310 1
a12310 1
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
d12340 1
a12340 1
if test yes = "$lt_cv_prog_compiler_pic_works"; then
d12372 1
a12372 1
   save_LDFLAGS=$LDFLAGS
d12391 1
a12391 1
   LDFLAGS=$save_LDFLAGS
d12397 1
a12397 1
if test yes = "$lt_cv_prog_compiler_static_works"; then
d12517 2
a12518 2
hard_links=nottested
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
d12530 3
a12532 3
  if test no = "$hard_links"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
d12560 1
d12576 3
a12578 3
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  # as well as any symbol that contains 'd'.
d12593 1
a12593 1
    if test yes != "$GCC"; then
d12601 1
a12601 1
  openbsd* | bitrig*)
d12611 1
a12611 1
  if test yes = "$with_gnu_ld"; then
d12633 1
a12633 1
  if test yes = "$lt_use_gnu_ld_interface"; then
d12635 1
a12635 1
    wlarc='$wl'
d12641 2
a12642 2
    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
    export_dynamic_flag_spec='$wl--export-dynamic'
d12645 1
a12645 1
      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
d12650 1
a12650 1
    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
d12663 1
a12663 1
      if test ia64 != "$host_cpu"; then
d12682 1
a12682 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12698 1
a12698 1
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12708 1
a12708 1
      export_dynamic_flag_spec='$wl--export-all-symbols'
d12716 10
a12725 10
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file, use it as
	# is; otherwise, prepend EXPORTS...
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
          cp $export_symbols $output_objdir/$soname.def;
        else
          echo EXPORTS > $output_objdir/$soname.def;
          cat $export_symbols >> $output_objdir/$soname.def;
        fi~
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d12732 1
a12732 1
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a12735 28
    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
      ;;

d12739 2
a12740 2
      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
      export_dynamic_flag_spec='$wl-E'
d12747 2
a12748 2
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d12753 1
a12753 1
      if test linux-dietlibc = "$host_os"; then
d12759 1
a12759 1
	 && test no = "$tmp_diet"
d12765 1
a12765 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12770 1
a12770 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
a12780 2
        nagfor*)                        # NAGFOR 5.3
          tmp_sharedflag='-Wl,-shared' ;;
d12785 1
a12785 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12791 1
a12791 1
	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12797 1
a12797 1
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12799 1
a12799 1
        if test yes = "$supports_anon_versioning"; then
d12801 3
a12803 3
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
            echo "local: *; };" >> $output_objdir/$libname.ver~
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a12806 3
	tcc*)
	  export_dynamic_flag_spec='-rdynamic'
	  ;;
d12810 2
a12811 1
	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d12813 1
a12813 1
	  if test yes = "$supports_anon_versioning"; then
d12815 3
a12817 3
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
              echo "local: *; };" >> $output_objdir/$libname.ver~
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
d12831 2
a12832 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12850 2
a12851 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12863 1
a12863 1
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
d12878 3
a12880 3
	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12897 2
a12898 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12905 1
a12905 1
    if test no = "$ld_shlibs"; then
d12921 1
a12921 1
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
d12929 1
a12929 1
      if test ia64 = "$host_cpu"; then
d12934 1
a12934 1
	no_entry_flag=
d12937 3
a12939 7
	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
	# Without the "-l" option, or with the "-B" option, AIX nm treats
	# weak defined symbols like other global defined symbols, whereas
	# GNU nm marks them as "W".
	# While the 'weak' keyword is ignored in the Export File, we need
	# it in the Import File for the 'aix-soname' feature, so we have
	# to replace the "-B" option with "-P" for AIX nm.
d12941 1
a12941 1
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
d12943 1
a12943 1
	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
d12949 1
a12949 13
	# have runtime linking enabled, and use it for executables.
	# For shared libraries, we enable/disable runtime linking
	# depending on the kind of the shared library created -
	# when "with_aix_soname,aix_use_runtimelinking" is:
	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
	# "aix,yes"  lib.so          shared, rtl:yes, for executables
	#            lib.a           static archive
	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
	#            lib.a(lib.so.V) shared, rtl:no,  for executables
	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a(lib.so.V) shared, rtl:no
	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a           static archive
d12952 1
a12952 1
	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a12956 7
	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
	    # so we don't have lib.a shared libs to link our executables.
	    # We have to force runtime linking in this case.
	    aix_use_runtimelinking=yes
	    LDFLAGS="$LDFLAGS -Wl,-brtl"
	  fi
d12975 1
a12975 9
      file_list_spec='$wl-f,'
      case $with_aix_soname,$aix_use_runtimelinking in
      aix,*) ;; # traditional, no import file
      svr4,* | *,yes) # use import file
	# The Import File defines what to hardcode.
	hardcode_direct=no
	hardcode_direct_absolute=no
	;;
      esac
d12977 1
a12977 1
      if test yes = "$GCC"; then
d12981 1
a12981 1
	  collect2name=`$CC -print-prog-name=collect2`
d13000 2
a13001 2
	if test yes = "$aix_use_runtimelinking"; then
	  shared_flag="$shared_flag "'$wl-G'
a13002 5
	# Need to ensure runtime linking is disabled for the traditional
	# shared library, or the linker may eventually find shared libraries
	# /with/ Import File - we do not want to mix them.
	shared_flag_aix='-shared'
	shared_flag_svr4='-shared $wl-G'
d13005 1
a13005 1
	if test ia64 = "$host_cpu"; then
d13010 2
a13011 2
	  if test yes = "$aix_use_runtimelinking"; then
	    shared_flag='$wl-G'
d13013 1
a13013 1
	    shared_flag='$wl-bM:SRE'
a13014 2
	  shared_flag_aix='$wl-bM:SRE'
	  shared_flag_svr4='$wl-G'
d13018 1
a13018 1
      export_dynamic_flag_spec='$wl-bexpall'
d13022 1
a13022 1
      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
d13028 1
a13028 1
        if test set = "${lt_cv_aix_libpath+set}"; then
d13063 1
a13063 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13071 2
a13072 2
        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
d13074 2
a13075 2
	if test ia64 = "$host_cpu"; then
	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
d13077 1
a13077 1
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
d13081 1
a13081 1
	 if test set = "${lt_cv_aix_libpath+set}"; then
d13116 1
a13116 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13124 1
a13124 1
	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
d13127 3
a13129 3
	  no_undefined_flag=' $wl-bernotok'
	  allow_undefined_flag=' $wl-berok'
	  if test yes = "$with_gnu_ld"; then
d13131 1
a13131 1
	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
d13137 2
a13138 14
	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
	  # -brtl affects multiple linker settings, -berok does not and is overridden later
	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
	  if test svr4 != "$with_aix_soname"; then
	    # This is similar to how AIX traditionally builds its shared libraries.
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
	  fi
	  if test aix != "$with_aix_soname"; then
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
	  else
	    # used by -dlpreopen to get the symbols
	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
	  fi
	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
d13147 1
a13147 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d13177 1
a13177 1
	shrext_cmds=.dll
d13179 8
a13186 9
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
            cp "$export_symbols" "$output_objdir/$soname.def";
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
          else
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
          fi~
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
          linknames='
a13189 1
	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
d13194 12
a13205 12
          lt_tool_outputfile="@@TOOL_OUTPUT@@"~
          case $lt_outputfile in
            *.exe|*.EXE) ;;
            *)
              lt_outputfile=$lt_outputfile.exe
              lt_tool_outputfile=$lt_tool_outputfile.exe
              ;;
          esac~
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
            $RM "$lt_outputfile.manifest";
          fi'
d13214 1
a13214 1
	shrext_cmds=.dll
d13233 2
a13234 3
  if test yes = "$lt_cv_ld_force_load"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'

d13239 1
a13239 1
  allow_undefined_flag=$_lt_dar_allow_undefined
d13241 1
a13241 1
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
d13244 1
a13244 1
  if test yes = "$_lt_dar_can_shared"; then
d13246 4
a13249 4
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
d13263 4
d13279 1
a13279 1
    freebsd2.*)
d13295 2
a13296 2
      if test yes = "$GCC"; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13298 1
a13298 1
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13300 1
a13300 1
      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13307 1
a13307 1
      export_dynamic_flag_spec='$wl-E'
d13311 2
a13312 2
      if test yes,no = "$GCC,$with_gnu_ld"; then
	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13316 3
a13318 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13322 1
a13322 1
	export_dynamic_flag_spec='$wl-E'
d13330 1
a13330 1
      if test yes,no = "$GCC,$with_gnu_ld"; then
d13333 1
a13333 1
	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13336 1
a13336 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13339 1
a13339 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13345 1
a13345 1
	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13348 1
a13348 1
	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13360 1
a13360 1
   save_LDFLAGS=$LDFLAGS
d13379 1
a13379 1
   LDFLAGS=$save_LDFLAGS
d13385 2
a13386 2
if test yes = "$lt_cv_prog_compiler__b"; then
    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13394 2
a13395 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13406 1
a13406 1
	  export_dynamic_flag_spec='$wl-E'
d13417 2
a13418 2
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13428 2
a13429 2
  save_LDFLAGS=$LDFLAGS
	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
d13441 1
a13441 1
           LDFLAGS=$save_LDFLAGS
d13445 2
a13446 2
	if test yes = "$lt_cv_irix_exported_symbol"; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
d13449 2
a13450 2
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
d13453 1
a13453 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a13458 10
    linux*)
      case $cc_basename in
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	ld_shlibs=yes
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	;;
      esac
      ;;

d13473 1
a13473 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13481 1
a13481 1
    openbsd* | bitrig*)
d13486 1
a13486 1
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
d13488 3
a13490 3
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
	  export_dynamic_flag_spec='$wl-E'
d13492 10
a13501 2
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
d13512 2
a13513 22
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
d13517 3
a13519 3
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13522 1
a13522 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13525 1
a13525 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13530 4
a13533 4
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13536 1
a13536 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13538 1
a13538 1
          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
d13549 3
a13551 3
      if test yes = "$GCC"; then
	wlarc='$wl'
	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13553 1
a13553 1
          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13558 1
a13558 1
	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
d13560 1
a13560 1
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
d13563 2
a13564 2
	  wlarc='$wl'
	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13566 1
a13566 1
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13576 1
a13576 1
	# but understands '-z linker_flag'.  GCC discards it without '$wl',
d13579 2
a13580 2
	if test yes = "$GCC"; then
	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
d13590 1
a13590 1
      if test sequent = "$host_vendor"; then
d13593 1
a13593 1
	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13642 1
a13642 1
      no_undefined_flag='$wl-z,text'
d13647 3
a13649 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13651 2
a13652 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13657 1
a13657 1
      # Note: We CANNOT use -z defs as we might desire, because we do not
d13663 2
a13664 2
      no_undefined_flag='$wl-z,text'
      allow_undefined_flag='$wl-z,nodefs'
d13667 1
a13667 1
      hardcode_libdir_flag_spec='$wl-R,$libdir'
d13670 1
a13670 1
      export_dynamic_flag_spec='$wl-Bexport'
d13673 3
a13675 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13677 2
a13678 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13693 1
a13693 1
    if test sni = "$host_vendor"; then
d13696 1
a13696 1
	export_dynamic_flag_spec='$wl-Blargedynsym'
d13704 1
a13704 1
test no = "$ld_shlibs" && can_build_shared=no
d13730 1
a13730 1
  if test yes,yes = "$GCC,$enable_shared"; then
d13942 5
d13950 1
a13950 1
if test yes = "$GCC"; then
d13952 2
a13953 2
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
    *) lt_awk_arg='/^libraries:/' ;;
d13956 2
a13957 2
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
    *) lt_sed_strip_eq='s|=/|/|g' ;;
d13973 1
a13973 1
  # and add multilib dir if necessary...
d13975 1
a13975 8
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  # ...but if some path component already ends with the multilib dir we assume
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  case "$lt_multi_os_dir; $lt_search_path_spec " in
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
    lt_multi_os_dir=
    ;;
  esac
d13977 3
a13979 3
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
    elif test -n "$lt_multi_os_dir"; then
d13985 3
a13987 3
BEGIN {RS = " "; FS = "/|\n";} {
  lt_foo = "";
  lt_count = 0;
d13994 1
a13994 1
          lt_foo = "/" $lt_i lt_foo;
d14008 1
a14008 1
      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
d14017 1
a14017 1
shrext_cmds=.so
a14033 2


d14036 2
a14037 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
d14041 1
a14041 1
  soname_spec='$libname$release$shared_ext$major'
d14045 1
a14045 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14049 1
a14049 1
  if test ia64 = "$host_cpu"; then
d14051 1
a14051 1
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
d14056 2
a14057 2
    # the line '#! .'.  This would cause the generated library to
    # depend on '.', always an invalid library.  This was fixed in
d14063 1
a14063 1
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
d14070 1
a14070 24
    # Using Import Files as archive members, it is possible to support
    # filename-based versioning of shared library archives on AIX. While
    # this would work for both with and without runtime linking, it will
    # prevent static linking of such archives. So we do filename-based
    # shared library versioning with .so extension only, which is used
    # when both runtime linking and shared linking is enabled.
    # Unfortunately, runtime linking may impact performance, so we do
    # not want this to be the default eventually. Also, we use the
    # versioned .so libs for executables only if there is the -brtl
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
    # To allow for filename-based versioning support, we need to create
    # libNAME.so.V as an archive file, containing:
    # *) an Import File, referring to the versioned filename of the
    #    archive as well as the shared archive member, telling the
    #    bitwidth (32 or 64) of that shared object, and providing the
    #    list of exported symbols of that shared object, eventually
    #    decorated with the 'weak' keyword
    # *) the shared object with the F_LOADONLY flag set, to really avoid
    #    it being seen by the linker.
    # At run time we better use the real file rather than another symlink,
    # but for link time we create the symlink libNAME.so -> libNAME.so.V

    case $with_aix_soname,$aix_use_runtimelinking in
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
d14073 1
a14073 2
    aix,yes) # traditional libtool
      dynamic_linker='AIX unversionable lib.so'
d14077 2
a14078 4
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      ;;
    aix,no) # traditional AIX only
      dynamic_linker='AIX lib.a(lib.so.V)'
d14081 3
a14083 27
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      ;;
    svr4,*) # full svr4 only
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,yes) # both, prefer svr4
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # unpreferred sharedlib libNAME.a needs extra handling
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,no) # both, prefer aix
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
      ;;
    esac
d14093 1
a14093 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14098 1
a14098 1
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d14104 1
a14104 1
  library_names_spec='$libname$shared_ext'
d14110 1
a14110 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14112 2
a14113 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14125 1
a14125 1
  shrext_cmds=.dll
d14134 2
a14135 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14151 1
a14151 1
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14157 1
a14157 1
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14161 1
a14161 1
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14170 2
a14171 2
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
    library_names_spec='$libname.dll.lib'
d14198 1
a14198 1
      sys_lib_search_path_spec=$LIB
d14211 2
a14212 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14225 1
a14225 1
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
d14238 2
a14239 2
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$major$shared_ext'
d14249 1
a14249 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14252 2
a14253 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14257 4
d14268 1
a14268 1
    freebsd[23].*) objformat=aout ;;
d14275 1
a14275 2
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      soname_spec='$libname$release$shared_ext$major'
d14280 1
a14280 1
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14286 1
a14286 1
  freebsd2.*)
d14305 10
d14316 1
a14316 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14320 2
a14321 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14323 1
a14323 1
  shlibpath_overrides_runpath=no
d14341 3
a14343 3
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
    if test 32 = "$HPUX_IA64_MODE"; then
a14344 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a14346 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
d14348 1
d14356 2
a14357 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14366 2
a14367 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14377 1
a14377 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14380 2
a14381 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14392 2
a14393 2
	if test yes = "$lt_cv_prog_gnu_ld"; then
		version_type=linux # correct to gnu/linux during the next big refactor
d14400 2
a14401 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
d14420 2
a14421 2
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
d14430 3
a14432 23
linux*android*)
  version_type=none # Android doesn't support versioned libraries.
  need_lib_prefix=no
  need_version=no
  library_names_spec='$libname$release$shared_ext'
  soname_spec='$libname$release$shared_ext'
  finish_cmds=
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  dynamic_linker='Android linker'
  # Don't embed -rpath directories since the linker doesn't support them.
  hardcode_libdir_flag_spec='-L$libdir'
  ;;

# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  version_type=linux # correct to gnu/linux during the next big refactor
d14435 2
a14436 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14480 1
a14480 6
  # Ideally, we could use ldconfig to report *all* directores which are
  # searched for libraries, however this is still not possible.  Aside from not
  # being certain /sbin/ldconfig is available, command
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  # even though it is searched at run-time.  Try to do the best guess by
  # appending ld.so.conf contents (and includes) to the search path.
d14500 1
a14500 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14504 2
a14505 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14514 2
a14515 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14524 2
a14525 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14532 1
a14532 1
openbsd* | bitrig*)
d14534 1
a14534 1
  sys_lib_dlsearch_path_spec=/usr/lib
d14536 17
a14552 2
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
    need_version=no
d14554 1
a14554 1
    need_version=yes
a14555 4
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
d14560 1
a14560 3
  version_type=windows
  shrext_cmds=.dll
  need_version=no
d14562 1
a14562 6
  # OS/2 can only load a DLL with a base name of 8 characters or less.
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
    v=$($ECHO $release$versuffix | tr -d .-);
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
    $ECHO $n$v`$shared_ext'
  library_names_spec='${libname}_dll.$libext'
d14564 1
a14564 15
  shlibpath_var=BEGINLIBPATH
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  postinstall_cmds='base_file=`basename \$file`~
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
    dldir=$destdir/`dirname \$dlpath`~
    test -d \$dldir || mkdir -p \$dldir~
    $install_prog $dir/$dlname \$dldir/$dlname~
    chmod a+x \$dldir/$dlname~
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
    fi'
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
    dlpath=$dir/\$dldll~
    $RM \$dlpath'
d14571 2
a14572 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14575 1
a14575 1
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d14583 1
a14583 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14586 2
a14587 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14597 1
a14597 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14601 1
a14601 1
  if test yes = "$with_gnu_ld"; then
d14608 3
a14610 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14631 4
a14634 4
  if test -d /usr/nec; then
    version_type=linux # correct to gnu/linux during the next big refactor
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
    soname_spec='$libname$shared_ext.$major'
d14640 1
a14640 1
  version_type=sco
d14643 2
a14644 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14648 1
a14648 1
  if test yes = "$with_gnu_ld"; then
d14663 1
a14663 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14666 1
a14666 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14673 3
a14675 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14685 1
a14685 1
test no = "$dynamic_linker" && can_build_shared=no
d14688 1
a14688 1
if test yes = "$GCC"; then
d14692 2
a14693 2
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
d14695 2
a14696 3

if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a14698 14
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec

# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"

# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH






d14795 1
a14795 1
   test yes = "$hardcode_automatic"; then
d14798 1
a14798 1
  if test no != "$hardcode_direct" &&
d14802 2
a14803 2
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
     test no != "$hardcode_minus_L"; then
d14818 2
a14819 2
if test relink = "$hardcode_action" ||
   test yes = "$inherit_rpath"; then
d14822 2
a14823 2
elif test yes = "$shlibpath_overrides_runpath" ||
     test no = "$enable_shared"; then
d14833 1
a14833 1
  if test yes != "$enable_dlopen"; then
d14843 1
a14843 1
    lt_cv_dlopen=load_add_on
d14849 1
a14849 1
    lt_cv_dlopen=LoadLibrary
d14854 1
a14854 1
    lt_cv_dlopen=dlopen
d14859 1
a14859 1
    # if libdl is installed we need to link against it
d14897 1
a14897 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d14900 1
a14900 1
    lt_cv_dlopen=dyld
a14907 8
  tpf*)
    # Don't try to run any link tests for TPF.  We know it's impossible
    # because TPF is a cross-compiler, and we know how we open DSOs.
    lt_cv_dlopen=dlopen
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=no
    ;;

d14911 1
a14911 1
  lt_cv_dlopen=shl_load
d14950 1
a14950 1
  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
d14954 1
a14954 1
  lt_cv_dlopen=dlopen
d14993 1
a14993 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d15032 1
a15032 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
d15071 1
a15071 1
  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
d15092 3
a15094 1
  if test no = "$lt_cv_dlopen"; then
a15095 2
  else
    enable_dlopen=yes
d15100 2
a15101 2
    save_CPPFLAGS=$CPPFLAGS
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d15103 1
a15103 1
    save_LDFLAGS=$LDFLAGS
d15106 1
a15106 1
    save_LIBS=$LIBS
d15110 3289
a18398 12
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"
d18400 10
a18409 3
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d18411 3
a18413 1
#include <stdio.h>
d18415 12
a18426 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
d18428 11
a18438 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
d18440 22
a18461 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
d18463 8
a18470 5
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
d18472 11
a18482 10
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
d18484 5
a18488 16
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
a18489 3
  else :
    # compilation failed
    lt_cv_dlopen_self=no
d18491 20
a18510 2
fi
rm -fr conftest*
d18512 7
d18520 3
a18523 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }
d18525 6
a18530 19
    if test yes = "$lt_cv_dlopen_self"; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
a18531 1
#include <stdio.h>
a18532 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
a18533 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
a18534 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
a18535 5
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
a18536 12
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());
a18537 21
  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*
a18539 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi
a18540 5
    CPPFLAGS=$save_CPPFLAGS
    LDFLAGS=$save_LDFLAGS
    LIBS=$save_LIBS
    ;;
  esac
a18541 4
  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac
a18542 5
  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi
a18559 29
striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP"; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi
d18569 6
d18576 20
d18597 9
a18606 5
  # Report what library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }
a18607 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test no = "$can_build_shared" && enable_shared=no
a18608 10
  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test yes = "$enable_shared" && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;
a18609 12
  aix[4-9]*)
    if test ia64 != "$host_cpu"; then
      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
      yes,aix,yes) ;;			# shared object as lib.so file only
      yes,svr4,*) ;;			# shared object as lib.so archive member only
      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
      esac
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }
a18610 6
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test yes = "$enable_shared" || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }
d18613 1
d18615 11
a18626 1
fi
a18632 4
CC=$lt_save_CC



d20866 1
a20866 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d20872 1
a20872 1
if test yes = "$GCC"; then
d20878 1
a20878 1
    # gcc leaves a trailing carriage return, which upsets mingw
d20892 1
a20892 1
      test -z "$LD" && LD=$ac_prog
d20903 1
a20903 1
elif test yes = "$with_gnu_ld"; then
d20914 1
a20914 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d20916 1
a20916 1
    IFS=$lt_save_ifs
d20919 1
a20919 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d20925 1
a20925 1
	test no != "$with_gnu_ld" && break
d20928 1
a20928 1
	test yes != "$with_gnu_ld" && break
d20933 1
a20933 1
  IFS=$lt_save_ifs
d20935 1
a20935 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d20939 1
a20939 1
LD=$lt_cv_path_LD
d28062 4
a28088 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }
d29229 2
a29279 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
a34166 1

a34168 1

a34173 2


d34184 1
a34184 1
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
a34558 1

a37253 1

a37311 2
ac_config_files="$ac_config_files scripts/build/genAuthors"

d37529 4
d37534 4
d38003 1
a38003 1
This file was extended by ntp $as_me 4.2.8p10, which was
d38070 1
a38070 1
ntp config.status 4.2.8p10
a38204 1
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
a38206 1
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
a38252 1
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
a38254 1
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
a38256 1
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
d38289 1
d38322 1
a38322 2
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
d38329 55
a38399 1
PATH_SEPARATOR \
a38426 1
lt_cv_sys_global_symbol_to_import \
a38428 1
lt_cv_nm_interface \
a38429 1
lt_cv_truncate_bin \
d38450 1
d38462 33
a38494 1
striplib; do
d38497 1
a38497 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38524 12
a38535 2
configure_time_dlsearch_path \
configure_time_lt_sys_library_path; do
d38538 1
a38538 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38547 2
d38550 1
a38550 1
# See if we are running on zsh, and set the options that allow our
d38552 1
a38552 1
if test -n "\${ZSH_VERSION+set}"; then
d38559 1
d38566 2
a38597 1
    "scripts/build/genAuthors") CONFIG_FILES="$CONFIG_FILES scripts/build/genAuthors" ;;
d39350 1
a39350 1
    # See if we are running on zsh, and set the options that allow our
d39352 1
a39352 1
    if test -n "${ZSH_VERSION+set}"; then
d39356 1
a39356 1
    cfgfile=${ofile}T
d39362 3
a39364 1
# Generated automatically by $as_me ($PACKAGE) $VERSION
a39366 12

# Provide generalized library-building support services.
# Written by Gordon Matzigkeit, 1996

# Copyright (C) 2014 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions.  There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# GNU Libtool is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of of the License, or
# (at your option) any later version.
d39368 16
a39383 4
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program or library that is built
# using GNU Libtool, you may include this file under the  same
# distribution terms that you use for the rest of that program.
d39385 2
a39386 2
# GNU Libtool is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
d39391 4
a39394 1
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
d39398 1
a39398 4
available_tags=''

# Configured defaults for sys_lib_dlsearch_path munging.
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
a39417 3
# Shared archive member basename,for filename based shared library versioning on AIX.
shared_archive_member_spec=$shared_archive_member_spec

a39423 3
# The PATH separator for the build system.
PATH_SEPARATOR=$lt_PATH_SEPARATOR

a39531 3
# Transform the output of nm into a list of symbols to manually relocate.
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import

a39537 3
# The name lister interface.
nm_interface=$lt_lt_cv_nm_interface

d39541 1
a39541 1
# The root where to search for dependent libraries,and where our libraries should be installed.
a39543 3
# Command to truncate a binary pipe.
lt_truncate_bin=$lt_lt_cv_truncate_bin

d39634 2
a39635 5
# Detected run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path

# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
d39725 4
d39732 1
a39732 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39736 1
a39736 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39738 1
a39738 1
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
d39786 2
a39787 1
# ### END LIBTOOL CONFIG
d39789 10
a39798 40
_LT_EOF

    cat <<'_LT_EOF' >> "$cfgfile"

# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE

# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}
d39800 1
a39800 17

# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}


# ### END FUNCTIONS SHARED WITH CONFIGURE
d39810 1
a39810 1
if test set != "${COLLECT_NAMES+set}"; then
d39819 1
a39819 1
ltmain=$ac_aux_dir/ltmain.sh
d39829 159
d39992 157
a40151 1
    "scripts/build/genAuthors":F) chmod +x scripts/build/genAuthors ;;
@


1.1.1.2.16.1
log
@Apply patch (requested by christos in ticket #1221):
Update ntp to 4.2.8.
@
text
@d3 1
a3 3
# Generated by GNU Autoconf 2.68 for ntp4 4.2.8.
#
# Report bugs to <http://bugs.ntp.org./>.
d247 4
a250 5
    $as_echo "$0: Please tell bug-autoconf@@gnu.org and
$0: http://bugs.ntp.org./ about your system, including any
$0: error possibly output before this message. Then install
$0: a modern shell, or manually run the script under such a
$0: shell if you do have one."
d568 6
a573 6
PACKAGE_NAME='ntp4'
PACKAGE_TARNAME='ntp4'
PACKAGE_VERSION='4.2.8'
PACKAGE_STRING='ntp4 4.2.8'
PACKAGE_BUGREPORT='http://bugs.ntp.org./'
PACKAGE_URL='http://www.ntp.org./'
a610 1
ac_header_list=
d615 1
a616 9
PERLLIBDIR
NTP_KEYSDIR
GTEST_AVAILABLE_FALSE
GTEST_AVAILABLE_TRUE
GTEST_CPPFLAGS
GTEST_CXXFLAGS
GTEST_LIBS
GTEST_LDFLAGS
GTEST_CONFIG
a623 3
BUILD_SNTP_FALSE
BUILD_SNTP_TRUE
SNTP
d630 1
d637 6
a642 2
VER_SUFFIX
PKG_CONFIG
d647 2
a648 3
HAVE_RLIMIT_STACK
HAVE_RLIMIT_MEMLOCK
LDADD_NLIST
a649 1
CONFIG_SHELL
d651 1
a652 25
LIBOBJS
PTHREADS_FALSE
PTHREADS_TRUE
LIBISC_PTHREADS_NOTHREADS
PTHREAD_LIBS
HAVE_INLINE
ALLOCA
LIBM
EDITLINE_LIBS
LDADD_LIBNTP
NTP_CROSSCOMPILE_FALSE
NTP_CROSSCOMPILE_TRUE
LIBOPTS_DIR
LIBOPTS_CFLAGS
LIBOPTS_LDADD
NEED_LIBOPTS_FALSE
NEED_LIBOPTS_TRUE
INSTALL_LIBOPTS_FALSE
INSTALL_LIBOPTS_TRUE
POSIX_SHELL
GL_GENERATE_STDNORETURN_H_FALSE
GL_GENERATE_STDNORETURN_H_TRUE
STDNORETURN_H
LIBTOOL_DEPS
CXXCPP
d670 14
a684 81
LIBTOOL
TIMETRIM_NI
TIMETRIM_MS
TIMETRIM_DS
TIMETRIM_DL
TIMETRIM_DB
TICKADJ_NI
TICKADJ_MS
TICKADJ_DS
TICKADJ_DL
TICKADJ_DB
SNTP_NI
SNTP_MS
SNTP_DS
SNTP_DL
SNTP_DB
NTP_WAIT_NI
NTP_WAIT_MS
NTP_WAIT_DS
NTP_WAIT_DL
NTP_WAIT_DB
NTP_KEYGEN_NI
NTP_KEYGEN_MS
NTP_KEYGEN_DS
NTP_KEYGEN_DL
NTP_KEYGEN_DB
NTPTRACE_NI
NTPTRACE_MS
NTPTRACE_DS
NTPTRACE_DL
NTPTRACE_DB
NTPTIME_NI
NTPTIME_MS
NTPTIME_DS
NTPTIME_DL
NTPTIME_DB
INSTALL_NTPSWEEP_FALSE
INSTALL_NTPSWEEP_TRUE
NTPSWEEP_NI
NTPSWEEP_MS
NTPSWEEP_DS
NTPSWEEP_DL
NTPSWEEP_DB
NTPSNMPD_NI
NTPSNMPD_MS
NTPSNMPD_DS
NTPSNMPD_DL
NTPSNMPD_DB
NTPQ_NI
NTPQ_MS
NTPQ_DS
NTPQ_DL
NTPQ_DB
NTPD_NI
NTPD_MS
NTPD_DS
NTPD_DL
NTPD_DB
NTPDSIM_NI
NTPDSIM_MS
NTPDSIM_DS
NTPDSIM_DL
NTPDSIM_DB
NTPDC_NI
NTPDC_MS
NTPDC_DS
NTPDC_DL
NTPDC_DB
NTPDATE_NI
NTPDATE_MS
NTPDATE_DS
NTPDATE_DL
NTPDATE_DB
MANTAGFMT
CALC_TICKADJ_NI
CALC_TICKADJ_MS
CALC_TICKADJ_DS
CALC_TICKADJ_DL
CALC_TICKADJ_DB
WANT_CALC_TICKADJ_MS_FALSE
WANT_CALC_TICKADJ_MS_TRUE
a688 10
am__fastdepCXX_FALSE
am__fastdepCXX_TRUE
CXXDEPMODE
ac_ct_CXX
CXXFLAGS
CXX
LDFLAGS_NTP
LDADD_NTP
CPPFLAGS_NTP
CFLAGS_NTP
a715 2
AM_BACKSLASH
AM_DEFAULT_VERBOSITY
d777 1
a777 6
ac_subst_files='calc_tickadj_opts
ntp_wait_opts
ntpsweep_opts
ntptrace_opts
summary_opts
plot_summary_opts'
a779 1
enable_silent_rules
a780 1
with_locfile
d782 6
d794 1
a794 5
enable_nls
enable_local_libopts
enable_libopts_install
with_autoopts_config
enable_local_libevent
d796 1
a797 12
enable_thread_support
with_threads
with_yielding_select
enable_c99_snprintf
enable_clockctl
enable_linuxcaps
enable_solarisprivs
with_arlib
with_net_snmp_config
enable_libseccomp
with_stack_limit
with_memlock
d801 1
a827 1
enable_GPSD
a838 1
enable_TSYNCPCI
a852 2
enable_SEL240X
with_crypto
d855 2
a856 3
with_rpath
enable_openssl_random
enable_autokey
a861 1
with_sntp
d872 2
a875 1
enable_getifaddrs
a876 1
with_gtest
a886 3
CXX
CXXFLAGS
CCC
d888 1
a888 2
YFLAGS
CXXCPP'
d1431 1
a1431 1
\`configure' configures ntp4 4.2.8 to adapt to many kinds of systems.
d1479 1
a1479 1
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp4]
d1501 1
a1501 1
     short | recursive ) echo "Configuration of ntp4 4.2.8:";;
d1505 1
a1505 1
Optional Features and Packages:
a1508 4
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --enable-silent-rules          less verbose build output (undo: `make V=1')
  --disable-silent-rules         verbose build output (undo: `make V=0')
a1510 1
  --with-locfile=XXX      os-specific or "legacy"
d1512 3
a1515 2
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
a1517 3
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
d1519 3
a1521 8
  --disable-nls           disable nls support in libopts
  --enable-local-libopts  Use the supplied libopts tearoff code
  --enable-libopts-install
                          Install libopts with client installation
  --with-autoopts-config  specify the config-info script
  --enable-local-libevent Force using the supplied libevent tearoff code
  --with-lineeditlibs     edit,editline (readline may be specified if desired)
  defaults:               + yes, - no, s system-specific
a1522 13
  --enable-thread-support s use threads (+ if available)
  --with-threads	  with threads [auto]
  --with-yielding-select  with yielding select [auto]
  --enable-c99-snprintf   s force replacement
  --enable-clockctl       s Use /dev/clockctl for non-root clock control
  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
  --with-arlib            - deprecated, arlib not distributed
  --with-net-snmp-config  + =net-snmp-config
  --enable-libseccomp     EXPERIMENTAL: enable support for libseccomp
                          sandboxing (default is no)
  --with-stack-limit      ? =50 (200 for openbsd) 4k pages
  --with-memlock          ? =32 (megabytes)
d1525 1
a1525 1
  --enable-dst-minutes    =60 minutes per DST adjustment
d1528 2
a1555 1
  --enable-GPSD           + GPSD JSON receiver
a1566 1
  --enable-TSYNCPCI       s Spectracom TSYNC timing board
a1580 12
  --enable-SEL240X        s SEL240X clock
  --with-crypto           + =openssl,libcrypto

  --with-openssl-libdir   + =/something/reasonable

  --with-openssl-incdir   + =/something/reasonable

  --without-rpath         s Disable auto-added -R linker paths

  --enable-openssl-random Use OpenSSL's crypto random number functions, if
                          available (default is yes)
  --enable-autokey        + support NTP Autokey protocol
a1586 2
  --without-sntp          - disable building sntp and sntp/tests
  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
d1598 2
d1602 21
a1623 3
  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
  --enable-saveconfig     + saveconfig mechanism
  --with-gtest            Use the gtest framework (Default: if it's available)
a1633 2
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
a1639 1
  CXXCPP      C++ preprocessor
d1644 1
a1644 2
Report bugs to <http://bugs.ntp.org./>.
ntp4 home page: <http://www.ntp.org./>.
d1707 1
a1707 1
ntp4 configure 4.2.8
a1865 4
( $as_echo "## ------------------------------------ ##
## Report this to http://bugs.ntp.org./ ##
## ------------------------------------ ##"
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d2002 5
a2006 42
# ac_fn_cxx_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_compile

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
d2014 14
d2030 1
a2030 31
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

d2034 2
a2035 1
return $2 ();
d2040 3
a2042 1
if ac_fn_c_try_link "$LINENO"; then :
a2043 2
else
  eval "$3=no"
d2045 3
a2047 2
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d2054 1
a2054 1
} # ac_fn_c_check_func
d2056 6
a2061 4
# ac_fn_cxx_try_cpp LINENO
# ------------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_cpp ()
d2064 10
a2073 23
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d2075 15
a2089 4
    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval
d2091 3
a2093 140
} # ac_fn_cxx_try_cpp

# ac_fn_cxx_try_link LINENO
# -------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_link

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_type

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
d2234 4
a2237 5
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
# ---------------------------------------------
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
# accordingly.
ac_fn_c_check_decl ()
d2240 2
a2241 4
  as_decl_name=`echo $2|sed 's/ *(.*//'`
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d2247 20
a2266 5
$4
int
main ()
{
#ifndef $as_decl_name
d2268 1
a2268 3
  (void) $as_decl_use;
#else
  (void) $as_decl_name;
d2270 6
d2278 4
d2286 1
a2286 1
if ac_fn_c_try_compile "$LINENO"; then :
d2291 2
a2292 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d2299 1
a2299 1
} # ac_fn_c_check_decl
d2361 1
a2361 1
It was created by ntp4 $as_me 4.2.8, which was
a2640 1
as_fn_append ac_header_list " stdarg.h"
d2711 1
a2711 1
for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
d2727 1
a2727 1
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
d2740 3
a2742 7




# Bump ntp_configure_cache_version for each change to configure.ac or
# .m4 files which invalidates cached values from previous configure
# runs.
d2752 2
a2753 2
# please bump the version numbers of each.  If you are not sure, the
# safe choice is to bump all on any cache-invalidating change.
d2760 1
a2760 1
ntp_configure_cache_version=20120806
a2797 1
		;;
a2802 1
	;;
d2839 1
a2839 1
	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
d3300 2
a3301 2
 PACKAGE='ntp4'
 VERSION='4.2.8'
a3340 14

# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in
yes) AM_DEFAULT_VERBOSITY=0;;
no)  AM_DEFAULT_VERBOSITY=1;;
*)   AM_DEFAULT_VERBOSITY=0;;
esac
AM_BACKSLASH='\'


a4803 2


a4823 8
        case "$host_os" in
    hpux*)

$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h

      ;;
  esac

d4833 2
a4834 2
#         define __EXTENSIONS__ 1
          $ac_includes_default
d4864 24
a4887 3
if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
d4889 1
a4889 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
a4890 7
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a4891 3
int
main ()
{
d4893 13
a4905 193
  ;
  return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
else
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi






ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d5570 6
a5575 12
# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
if test "$am_t" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
d5577 3
a5579 6


if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
a5581 1
    ac_pattern="Autoconf.*'x'"
a5583 10
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
else
  ac_cv_prog_gcc_traditional=no
fi
rm -f conftest*
d5585 3
d5589 3
a5591 5
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
d5593 73
a5665 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5667 1
a5667 1
rm -f conftest*
a5668 7
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d5670 6
d5677 1
d5679 1
d5681 13
a5694 4
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d5696 13
a5708 16




case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d5711 12
d5725 8
a5733 10
int
main ()
{
#warning foo
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cpp_warning=yes
d5735 2
a5736 2
  ntp_cv_cpp_warning=no

d5738 1
a5738 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5740 2
a5741 15
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
  $as_echo_n "(cached) " >&6
else
d5744 1
a5744 9

int
main ()
{
void foo(void) __attribute__((__noreturn__));

  ;
  return 0;
}
d5746 3
a5748 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cc_attribute=yes
d5750 3
a5752 2
  ntp_cv_cc_attribute=no

d5754 1
a5754 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5756 5
a5761 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)
d5763 2
a5764 1
$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
d5766 2
a5767 11
esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
d5769 13
d5784 8
d5793 5
a5797 3
int
main ()
{
d5799 5
a5803 3
  ;
  return 0;
}
d5805 3
a5807 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Wstrict_overflow=yes
d5809 3
a5811 2
  ntp_cv_gcc_Wstrict_overflow=no

d5813 1
a5813 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5815 10
d5826 14
a5839 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
d5842 34
d5877 18
a5894 1
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5896 93
d5994 35
d6033 5
a6037 5
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

d6039 5
a6043 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d6046 19
a6064 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
d6067 26
d6094 8
a6101 4
	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6103 4
a6106 2
			#include <stdlib.h>
			#include <stdio.h>
d6108 6
d6117 1
a6117 23

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


d6122 12
a6133 8
if ac_fn_c_try_link "$LINENO"; then :

		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d6135 16
d6152 2
a6153 1
  ntp_cv_gc_sections_runs=no
d6156 20
a6175 4
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    CFLAGS="$origCFLAGS"
	    { origCFLAGS=; unset origCFLAGS;}
d6177 7
d6185 9
a6193 10
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
$as_echo "$ntp_cv_gc_sections_runs" >&6; }
    case "$ntp_cv_gc_sections_runs" in
     yes)
	LDADD_LIBNTP="-Wl,--gc-sections"
	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
	;;
     no)
	LDADD_LIBNTP=
d6196 14
a6209 21
    CFLAGS_NTP="$CFLAGS_NTP -Wall"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
    case "$ntp_cv_gcc_Winit_self" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
    esac
    case "$ntp_cv_gcc_Wstrict_overflow" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
    esac
    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
d6220 1
a6220 1
	ntp_os_cflags=
a6233 2
	    # XXX Only verified thru AIX6.
	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
d6235 1
a6235 4
	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
d6304 1
a6305 1
    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
d6311 3
a6313 4

 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :
a6315 8
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;
d6317 19
a6336 1
if ac_fn_c_try_compile "$LINENO"; then :
d6338 25
a6362 21
	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
a6363 7
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>
a6364 8
int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif
d6366 21
a6386 3
  ;
  return 0;
}
d6388 14
a6401 3
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6404 1
a6404 1
		#include <sys/param.h>
d6409 2
a6410 4
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

d6416 1
a6416 1
  ac_cv_c_bigendian=yes
d6418 1
a6418 1
  ac_cv_c_bigendian=no
d6422 21
a6442 5
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6443 1
#include <limits.h>
d6445 7
d6455 1
a6455 4
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

d6460 40
a6499 3
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6500 1
#include <limits.h>
d6502 7
d6512 1
a6512 4
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

d6517 18
a6534 2
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
d6536 1
a6536 1
  ac_cv_c_bigendian=no
d6538 9
a6546 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6547 23
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;
a6548 20
int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
a6549 8
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
a6550 8
	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;
d6552 15
a6566 3
  ;
  return 0;
}
a6567 8
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a6568 1
    fi
a6569 9
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)
d6571 1
a6571 1
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
a6572 5
     ;; #(
   *)
     as_fn_error $? "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac
d6574 9
a6582 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
$as_echo_n "checking for working volatile... " >&6; }
if ${ac_cv_c_volatile+:} false; then :
  $as_echo_n "(cached) " >&6
d6584 4
a6587 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a6588 3
int
main ()
{
d6590 7
a6596 6
volatile int x;
int * volatile y = (int *) 0;
return !x && !y;
  ;
  return 0;
}
d6598 1
a6598 2
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_volatile=yes
d6600 1
a6600 3
  ac_cv_c_volatile=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6601 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
$as_echo "$ac_cv_c_volatile" >&6; }
if test $ac_cv_c_volatile = no; then
d6603 1
a6603 1
$as_echo "#define volatile /**/" >>confdefs.h
a6604 1
fi
d6606 7
a6612 35
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
d6614 1
a6614 2
if ac_fn_c_try_cpp "$LINENO"; then :

d6616 1
a6616 2
  # Broken: fails on valid input.
continue
a6617 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6619 10
a6628 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
d6630 1
a6630 3
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
d6632 1
a6632 3
  # Passes both tests.
ac_preproc_ok=:
break
a6633 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6636 21
a6656 4
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
d6659 1
a6659 2
    done
    ac_cv_prog_CPP=$CPP
d6661 32
a6692 24
fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6693 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6695 1
a6695 3
else
  # Broken: fails on valid input.
continue
a6696 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6698 14
a6711 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
a6712 9
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext
a6713 4
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
a6714 5
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
d6717 2
a6718 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6720 3
a6724 10
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
d6726 5
a6730 24
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6731 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6733 1
a6733 3
else
  # Broken: fails on valid input.
continue
d6735 2
a6736 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6738 2
a6739 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
d6741 2
a6742 7
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
d6744 7
a6750 1
rm -f conftest.err conftest.i conftest.$ac_ext
a6751 5
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
d6753 6
a6759 2
    done
    ac_cv_prog_CPP=$CPP
d6762 8
a6769 3
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
d6771 5
a6775 19
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6776 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6778 1
a6778 3
else
  # Broken: fails on valid input.
continue
d6780 2
a6781 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6783 29
a6811 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
a6812 9
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext
a6813 4
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
a6814 5
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
a6816 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6818 10
a6827 17
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CXX+:} false; then :
d6830 2
a6831 2
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
d6833 9
a6841 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d6844 30
d6875 1
a6875 7
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d6877 8
d6887 7
a6893 12
    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
d6896 2
a6897 2
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
d6899 9
a6907 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d6910 2
a6911 9
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a6913 2
  test -n "$ac_ct_CXX" && break
done
d6915 3
a6917 12
  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi
a6918 26
  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done
d6920 7
a6926 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if ${ac_cv_cxx_compiler_gnu+:} false; then :
d6929 1
a6929 9
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif
a6930 6
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
d6932 8
a6939 1
  ac_compiler_gnu=no
a6940 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d6943 17
a6959 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if ${ac_cv_prog_cxx_g+:} false; then :
d6962 3
a6964 5
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6967 7
d6977 1
a6977 1

d6982 2
a6983 2
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
d6985 11
a6995 11
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
a6996 1
if ac_fn_cxx_try_compile "$LINENO"; then :
d6998 1
a6998 5
else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d7000 1
a7000 3
int
main ()
{
d7002 6
a7007 3
  ;
  return 0;
}
a7008 32
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7010 2
a7011 1
depcc="$CXX"  am_compiler_list=
d7013 1
a7013 23
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub
d7015 1
a7015 8
  am_cv_CXX_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac
d7017 2
a7018 69
  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CXX_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done
a7019 5
  cd ..
  rm -rf conftest.dir
else
  am_cv_CXX_dependencies_compiler_type=none
fi
d7021 7
a7027 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a7028 8
 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  am__fastdepCXX_TRUE=
  am__fastdepCXX_FALSE='#'
else
  am__fastdepCXX_TRUE='#'
  am__fastdepCXX_FALSE=
d7031 1
d7033 8
a7040 26
for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_YACC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a7042 12
fi
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$YACC" && break
a7043 1
test -n "$YACC" || YACC="yacc"
d7045 5
a7049 3
if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
d7051 2
a7052 7
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
fi
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
d7056 1
a7056 1

d7061 3
d7068 13
a7080 71
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
d7082 1
a7082 1
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
d7084 12
a7095 2
rm -f core conftest*

d7097 6
a7102 3
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
d7104 2
a7105 29
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
ntp_vpath_hack="no"
case "$srcdir::${force_ntp_vpath_hack-no}" in
 .::*)
    ;; # VPATH_HACK path is for VPATH builds only.
 *::yes)
    ntp_vpath_hack="yes"
    ;;
 *::*)
    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	ntp_vpath_hack="yes"
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
$as_echo "$ntp_vpath_hack" >&6; }
 if test x$ntp_vpath_hack = xyes; then
  VPATH_HACK_TRUE=
  VPATH_HACK_FALSE='#'
d7107 35
a7141 3
  VPATH_HACK_TRUE='#'
  VPATH_HACK_FALSE=
fi
d7143 5
d7149 1
d7151 1
d7153 18
a7170 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
$as_echo_n "checking for install dir and man conventions... " >&6; }
d7172 8
d7181 5
a7185 5
# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
else
  with_locfile=no
d7187 2
a7188 1
fi
d7190 2
d7193 8
a7200 30
(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genLocInfo -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genLocInfo.i 2> genLocInfo.err
. ./genLocInfo.i

case "$GENLOCINFO" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
$as_echo "in file $GENLOCINFOFILE" >&6; }
    rm genLocInfo.err genLocInfo.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
    ;;
esac

 if test "$CALC_TICKADJ_MS" ; then
  WANT_CALC_TICKADJ_MS_TRUE=
  WANT_CALC_TICKADJ_MS_FALSE='#'
d7202 4
a7205 2
  WANT_CALC_TICKADJ_MS_TRUE='#'
  WANT_CALC_TICKADJ_MS_FALSE=
d7208 3
d7212 6
d7219 1
d7221 1
d7223 1
d7225 1
d7227 2
d7230 1
d7232 1
d7234 9
d7244 2
d7247 11
a7257 216































 if test -z "$NTPSWEEP_NI" ; then
  INSTALL_NTPSWEEP_TRUE=
  INSTALL_NTPSWEEP_FALSE='#'
else
  INSTALL_NTPSWEEP_TRUE='#'
  INSTALL_NTPSWEEP_FALSE=
fi








































# So far, the only shared library we might use is libopts.
# It's a small library - we might as well use a static version of it.
# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then :
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_shared=no
fi









case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac



macro_version='2.4'
macro_revision='1.3293'













ltmain="$ac_aux_dir/ltmain.sh"

# Backslashify metacharacters that are still active within
# double-quoted strings.
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\(["`\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
$as_echo_n "checking how to print strings... " >&6; }
# Test print first, because it will be a builtin if present.
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='print -r --'
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='printf %s\n'
else
  # Use this function as a fallback that always works.
  func_fallback_echo ()
  {
    eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
  }
  ECHO='func_fallback_echo'
fi

# func_echo_all arg...
# Invoke $ECHO with all args, space-separated.
func_echo_all ()
{
    $ECHO ""
}

case "$ECHO" in
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
$as_echo "printf" >&6; } ;;
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
$as_echo "print -r" >&6; } ;;
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
$as_echo "cat" >&6; } ;;
esac














{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
d7316 19
a7334 2
test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"
d7340 1
d7343 1
d7345 11
d7358 4
d7363 3
a7365 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if ${ac_cv_path_FGREP+:} false; then :
  $as_echo_n "(cached) " >&6
d7367 8
a7374 42
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  ac_path_FGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in fgrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
# Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
d7376 8
a7383 8
      $ac_path_FGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_FGREP"; then
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
d7385 5
a7389 1
  ac_cv_path_FGREP=$FGREP
d7391 2
a7393 1
   fi
d7395 1
a7395 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"
d7397 3
d7401 13
a7413 1
test -z "$GREP" && GREP=grep
d7415 4
d7420 20
d7443 1
d7446 1
d7448 1
d7451 7
d7459 1
d7461 1
d7463 8
d7472 2
d7475 15
d7491 2
d7494 12
d7507 3
a7510 3
# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d7512 1
a7512 1
  with_gnu_ld=no
d7514 1
a7514 6

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
d7516 6
a7521 16
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
a7522 8
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
d7524 2
a7525 6
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
d7527 5
a7531 1
if ${lt_cv_path_LD+:} false; then :
d7534 2
a7535 21
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
d7537 35
a7571 3
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi
d7573 5
a7577 27
LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld
d7579 1
d7581 1
d7583 18
d7602 8
d7611 5
d7617 2
d7620 2
d7623 8
a7630 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if ${lt_cv_path_NM+:} false; then :
  $as_echo_n "(cached) " >&6
d7632 1
a7632 42
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
d7634 2
a7636 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$DUMPBIN"; then :
    # Let the user override the test.
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in dumpbin "link -dump"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DUMPBIN+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d7639 8
d7648 5
a7652 4
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
d7654 3
a7656 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d7658 1
d7660 1
a7661 2
    test -n "$DUMPBIN" && break
  done
d7663 5
a7667 9
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in dumpbin "link -dump"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
d7670 213
a7882 2
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d7891 1
a7891 1
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
d7901 4
a7904 4
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
d7911 1
a7911 1
  test -n "$ac_ct_DUMPBIN" && break
d7914 18
a7931 8
  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
d7933 10
a7942 2
    DUMPBIN=$ac_ct_DUMPBIN
  fi
d7945 24
a7968 7
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
    *COFF*)
      DUMPBIN="$DUMPBIN -symbols"
      ;;
    *)
      DUMPBIN=:
      ;;
d7970 2
a7971 1
  fi
d7973 1
a7973 5
  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
fi
test -z "$NM" && NM=nm
d7975 14
d7990 11
d8005 5
a8009 22
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if ${lt_cv_nm_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }
a8010 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi
a8011 8
# find the maximum length of command line arguments
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if ${lt_cv_sys_max_cmd_len+:} false; then :
  $as_echo_n "(cached) " >&6
else
    i=0
  teststring="ABCD"
d8013 2
a8014 8
  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;
a8015 6
  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;
a8016 10
  cygwin* | mingw* | cegcc*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8017 4
  mint*)
    # On MiNT this can take a long time and run out of memory.
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8018 5
  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8019 13
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;
a8020 4
  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;
a8021 56
  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n "$lt_cv_sys_max_cmd_len"; then
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    else
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      for i in 1 2 3 4 5 6 7 8 ; do
        teststring=$teststring$teststring
      done
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
      # If test is not a shell built-in, we'll probably end up computing a
      # maximum length that is only half of the actual maximum length, but
      # we can't tell.
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
	      test $i != 17 # 1/2 MB should be enough
      do
        i=`expr $i + 1`
        teststring=$teststring$teststring
      done
      # Only check the string length outside the loop.
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
      teststring=
      # Add a significant safety factor because C++ compilers can tack on
      # massive amounts of additional arguments before passing them to the
      # linker.  It appears as though 1/2 is a usable value.
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    fi
    ;;
  esac
a8022 1
fi
a8023 8
if test -n $lt_cv_sys_max_cmd_len ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi
max_cmd_len=$lt_cv_sys_max_cmd_len
d8028 1
d8030 3
d8034 2
a8035 3
: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}
d8037 3
a8039 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,b/c, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }
d8041 2
d8044 2
a8045 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }
d8047 3
d8051 8
a8058 2
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
d8060 8
a8067 1
  lt_unset=false
d8070 16
a8089 12
# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
esac
d8099 3
a8101 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
if ${lt_cv_to_host_file_cmd+:} false; then :
d8104 44
a8147 30
  case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
        ;;
    esac
    ;;
  *-*-cygwin* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_noop
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
        ;;
    esac
    ;;
  * ) # unhandled hosts (and "normal" native builds)
    lt_cv_to_host_file_cmd=func_convert_file_noop
    ;;
d8150 12
d8163 12
a8175 3
to_host_file_cmd=$lt_cv_to_host_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
d8181 3
a8183 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
if ${lt_cv_to_tool_file_cmd+:} false; then :
d8186 41
a8226 10
  #assume ordinary cross tools, or native build.
lt_cv_to_tool_file_cmd=func_convert_file_noop
case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
        ;;
    esac
    ;;
d8229 13
d8243 9
a8252 3
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
a8257 29
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
$as_echo_n "checking for $LD option to reload object files... " >&6; }
if ${lt_cv_ld_reload_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_reload_flag='-r'
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
$as_echo "$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    if test "$GCC" != yes; then
      reload_cmds=false
    fi
    ;;
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac
a8266 25
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OBJDUMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d8268 3
a8270 6
fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
d8272 1
a8272 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d8275 200
d8476 3
d8480 6
a8485 4
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
d8488 1
a8488 1
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
d8491 2
a8492 2
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
d8501 1
a8501 1
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
d8511 4
a8514 4
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
d8520 6
a8525 2
  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
d8533 1
a8533 1
    OBJDUMP=$ac_ct_OBJDUMP
a8534 2
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
d8537 9
a8545 1
test -z "$OBJDUMP" && OBJDUMP=objdump
d8547 5
d8558 3
a8560 5


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
if ${lt_cv_deplibs_check_method+:} false; then :
d8563 17
a8579 13
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
d8581 10
a8590 4
case $host_os in
aix[4-9]*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d8592 8
a8599 3
beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d8601 8
a8608 5
bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;
d8610 6
a8615 5
cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;
d8617 10
a8626 14
mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    # Keep this pattern in sync with the one in func_win32_libid.
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;
d8628 4
a8631 5
cegcc*)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;
d8633 5
a8637 3
darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d8639 13
a8651 15
freebsd* | dragonfly*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;
d8653 4
a8656 3
gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d8658 15
a8672 10
haiku*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
d8674 7
a8680 3
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
d8683 29
a8711 2
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
a8713 1
  ;;
d8715 1
a8715 4
interix[3-9]*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  ;;
d8717 8
a8724 9
irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
  ;;
a8725 4
# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8726 7
netbsd*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;
a8727 5
newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;
d8729 50
a8778 2
*nto* | *qnx*)
  lt_cv_deplibs_check_method=pass_all
d8780 4
a8784 7
openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;
a8785 3
osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8786 3
rdos*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8787 3
solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8788 3
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d8790 18
a8807 5
sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
d8809 12
a8820 2
  ncr)
    lt_cv_deplibs_check_method=pass_all
d8822 2
a8823 14
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
a8824 6
  esac
  ;;

tpf*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8827 20
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
$as_echo "$lt_cv_deplibs_check_method" >&6; }

file_magic_glob=
want_nocaseglob=no
if test "$build" = "$host"; then
  case $host_os in
  mingw* | pw32*)
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
      want_nocaseglob=yes
    else
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
    fi
    ;;
  esac
fi

file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown
d8829 3
d8837 16
d8854 1
d8856 3
d8864 29
d8903 2
a8904 2
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
d8907 1
a8907 1
if ${ac_cv_prog_DLLTOOL+:} false; then :
d8910 2
a8911 2
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
d8920 1
a8920 1
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
d8930 4
a8933 4
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
d8941 4
a8944 4
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
d8947 1
a8947 1
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
d8950 2
a8951 2
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
d8960 1
a8960 1
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
d8970 4
a8973 4
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
d8979 2
a8980 2
  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
d8988 1
a8988 1
    DLLTOOL=$ac_ct_DLLTOOL
d8991 1
a8991 1
  DLLTOOL="$ac_cv_prog_DLLTOOL"
d8994 1
a8994 1
test -z "$DLLTOOL" && DLLTOOL=dlltool
d9004 3
a9006 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
d9009 13
a9021 1
  lt_cv_sharedlib_from_linklib_cmd='unknown'
d9024 2
a9025 11
cygwin* | mingw* | pw32* | cegcc*)
  # two different shell functions defined in ltmain.sh
  # decide which to use based on capabilities of $DLLTOOL
  case `$DLLTOOL --help 2>&1` in
  *--identify-strict*)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
    ;;
  *)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
    ;;
  esac
d9027 3
a9029 3
*)
  # fallback: assume linklib IS sharedlib
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
a9030 1
esac
d9032 5
a9036 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
d9038 5
d9044 14
d9059 5
d9065 3
d9069 13
a9081 25


if test -n "$ac_tool_prefix"; then
  for ac_prog in ar
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
d9083 1
a9083 3
done
  done
IFS=$as_save_IFS
d9085 3
a9087 10
fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9089 3
d9093 17
a9109 31
    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d9111 4
a9114 10
fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9116 9
d9126 4
a9129 2
  test -n "$ac_ct_AR" && break
done
d9131 3
a9133 2
  if test "x$ac_ct_AR" = x; then
    AR="false"
d9135 1
a9135 7
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
d9137 1
a9137 1
fi
d9139 5
a9143 2
: ${AR=ar}
: ${AR_FLAGS=cru}
d9145 81
a9235 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @@FILE support" >&5
$as_echo_n "checking for archiver @@FILE support... " >&6; }
if ${lt_cv_ar_at_file+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ar_at_file=no
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a9236 3
int
main ()
{
a9237 25
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  echo conftest.$ac_objext > conftest.lst
      lt_ar_try='$AR $AR_FLAGS libconftest.a @@conftest.lst >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
	# Ensure the archiver fails upon bogus file names.
	rm -f conftest.$ac_objext libconftest.a
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	if test "$ac_status" -ne 0; then
          lt_cv_ar_at_file=@@
        fi
      fi
      rm -f conftest.* libconftest.a
a9238 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a9239 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
$as_echo "$lt_cv_ar_at_file" >&6; }
a9240 5
if test "x$lt_cv_ar_at_file" = xno; then
  archiver_list_spec=
else
  archiver_list_spec=$lt_cv_ar_at_file
fi
d9249 2
a9250 2
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
d9253 1
a9253 1
if ${ac_cv_prog_STRIP+:} false; then :
d9256 2
a9257 2
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d9266 1
a9266 1
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
d9276 4
a9279 4
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
d9287 4
a9290 4
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
d9293 1
a9293 1
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d9296 2
a9297 2
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d9306 1
a9306 1
    ac_cv_prog_ac_ct_STRIP="strip"
d9316 4
a9319 4
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
d9325 2
a9326 2
  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
d9334 1
a9334 1
    STRIP=$ac_ct_STRIP
d9337 40
a9376 1
  STRIP="$ac_cv_prog_STRIP"
d9378 4
a9382 1
test -z "$STRIP" && STRIP=:
d9390 4
a9393 2
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
d9396 1
a9396 1
if ${ac_cv_prog_RANLIB+:} false; then :
d9399 2
a9400 2
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
d9409 1
a9409 1
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
d9419 4
a9422 4
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
d9429 2
d9432 6
a9437 4
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
d9440 1
a9440 1
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
d9443 2
a9444 2
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d9453 1
a9453 1
    ac_cv_prog_ac_ct_RANLIB="ranlib"
d9463 4
a9466 4
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
d9472 6
a9477 2
  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
d9485 1
a9485 1
    RANLIB=$ac_ct_RANLIB
a9486 2
else
  RANLIB="$ac_cv_prog_RANLIB"
d9489 2
a9490 1
test -z "$RANLIB" && RANLIB=:
a9496 4
# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=
a9497 11
if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    ;;
  *)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi
d9499 282
a9780 6
case $host_os in
  darwin*)
    lock_old_archive_extraction=yes ;;
  *)
    lock_old_archive_extraction=no ;;
esac
a11083 11
func_stripname_cnf ()
{
  case ${2} in
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  esac
} # func_stripname_cnf




d14024 3
a14026 8765
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




























































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" ||
   test -n "$runpath_var" ||
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi






  if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

    ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if ${ac_cv_lib_dld_shl_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if ${ac_cv_lib_svld_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if ${ac_cv_lib_dld_dld_link+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi

















striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP" ; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi












  # Report which library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test "$can_build_shared" = "no" && enable_shared=no

  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test "$enable_shared" = yes && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;

  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }




fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if ${ac_cv_prog_CXXCPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
$as_echo "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
  _lt_caught_CXX_error=yes
fi

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

archive_cmds_need_lc_CXX=no
allow_undefined_flag_CXX=
always_export_symbols_CXX=no
archive_expsym_cmds_CXX=
compiler_needs_object_CXX=no
export_dynamic_flag_spec_CXX=
hardcode_direct_CXX=no
hardcode_direct_absolute_CXX=no
hardcode_libdir_flag_spec_CXX=
hardcode_libdir_flag_spec_ld_CXX=
hardcode_libdir_separator_CXX=
hardcode_minus_L_CXX=no
hardcode_shlibpath_var_CXX=unsupported
hardcode_automatic_CXX=no
inherit_rpath_CXX=no
module_cmds_CXX=
module_expsym_cmds_CXX=
link_all_deplibs_CXX=unknown
old_archive_cmds_CXX=$old_archive_cmds
reload_flag_CXX=$reload_flag
reload_cmds_CXX=$reload_cmds
no_undefined_flag_CXX=
whole_archive_flag_spec_CXX=
enable_shared_with_static_runtimes_CXX=no

# Source file extension for C++ test sources.
ac_ext=cpp

# Object file extension for compiled C++ test sources.
objext=o
objext_CXX=$objext

# No sense in running all these tests if we already determined that
# the CXX compiler isn't working.  Some variables (like enable_shared)
# are currently assumed to apply to all compilers on this platform,
# and will be corrupted by setting them based on a non-working compiler.
if test "$_lt_caught_CXX_error" != yes; then
  # Code to be used in simple compile tests
  lt_simple_compile_test_code="int some_variable = 0;"

  # Code to be used in simple link tests
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'

  # ltmain only uses $CC for tagged configurations so make sure $CC is set.






# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


  # save warnings/boilerplate of simple test code
  ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

  ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


  # Allow CC to be a program name with arguments.
  lt_save_CC=$CC
  lt_save_CFLAGS=$CFLAGS
  lt_save_LD=$LD
  lt_save_GCC=$GCC
  GCC=$GXX
  lt_save_with_gnu_ld=$with_gnu_ld
  lt_save_path_LD=$lt_cv_path_LD
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  else
    $as_unset lt_cv_prog_gnu_ld
  fi
  if test -n "${lt_cv_path_LDCXX+set}"; then
    lt_cv_path_LD=$lt_cv_path_LDCXX
  else
    $as_unset lt_cv_path_LD
  fi
  test -z "${LDCXX+set}" || LD=$LDCXX
  CC=${CXX-"c++"}
  CFLAGS=$CXXFLAGS
  compiler=$CC
  compiler_CXX=$CC
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`


  if test -n "$compiler"; then
    # We don't want -fno-exception when compiling C++ code, so set the
    # no_builtin_flag separately
    if test "$GXX" = yes; then
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
    else
      lt_prog_compiler_no_builtin_flag_CXX=
    fi

    if test "$GXX" = yes; then
      # Set up default GNU C++ configuration



# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld







      # Check if GNU C++ uses GNU ld as the underlying linker, since the
      # archiving commands below assume that GNU ld is being used.
      if test "$with_gnu_ld" = yes; then
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'

        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

        # If archive_cmds runs LD, not CC, wlarc should be empty
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
        #     investigate it a little bit more. (MM)
        wlarc='${wl}'

        # ancient GNU ld didn't support --whole-archive et. al.
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
	  $GREP 'no-whole-archive' > /dev/null; then
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
        else
          whole_archive_flag_spec_CXX=
        fi
      else
        with_gnu_ld=no
        wlarc=

        # A generic and very simple default shared library creation
        # command for GNU C++ for the case where it uses the native
        # linker, instead of GNU ld.  If possible, this setting should
        # overridden to take advantage of the native linker features on
        # the platform it is being used on.
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
      fi

      # Commands to make compiler produce verbose output that lists
      # what "hidden" libraries, object files and flags are used when
      # linking a shared library.
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

    else
      GXX=no
      with_gnu_ld=no
      wlarc=
    fi

    # PORTME: fill in a description of your system's C++ link characteristics
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
    ld_shlibs_CXX=yes
    case $host_os in
      aix3*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
      aix[4-9]*)
        if test "$host_cpu" = ia64; then
          # On IA64, the linker does run time linking by default, so we don't
          # have to do anything special.
          aix_use_runtimelinking=no
          exp_sym_flag='-Bexport'
          no_entry_flag=""
        else
          aix_use_runtimelinking=no

          # Test if we are trying to use run time linking or normal
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
          # need to do runtime linking.
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	    for ld_flag in $LDFLAGS; do
	      case $ld_flag in
	      *-brtl*)
	        aix_use_runtimelinking=yes
	        break
	        ;;
	      esac
	    done
	    ;;
          esac

          exp_sym_flag='-bexport'
          no_entry_flag='-bnoentry'
        fi

        # When large executables or shared objects are built, AIX ld can
        # have problems creating the table of contents.  If linking a library
        # or program results in "error TOC overflow" add -mminimal-toc to
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

        archive_cmds_CXX=''
        hardcode_direct_CXX=yes
        hardcode_direct_absolute_CXX=yes
        hardcode_libdir_separator_CXX=':'
        link_all_deplibs_CXX=yes
        file_list_spec_CXX='${wl}-f,'

        if test "$GXX" = yes; then
          case $host_os in aix4.[012]|aix4.[012].*)
          # We only want to do this on AIX 4.2 and lower, the check
          # below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	    # We have reworked collect2
	    :
	  else
	    # We have old collect2
	    hardcode_direct_CXX=unsupported
	    # It fails to find uninstalled libraries when the uninstalled
	    # path is not listed in the libpath.  Setting hardcode_minus_L
	    # to unsupported forces relinking
	    hardcode_minus_L_CXX=yes
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
	    hardcode_libdir_separator_CXX=
	  fi
          esac
          shared_flag='-shared'
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag="$shared_flag "'${wl}-G'
	  fi
        else
          # not using gcc
          if test "$host_cpu" = ia64; then
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	  # chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
          else
	    if test "$aix_use_runtimelinking" = yes; then
	      shared_flag='${wl}-G'
	    else
	      shared_flag='${wl}-bM:SRE'
	    fi
          fi
        fi

        export_dynamic_flag_spec_CXX='${wl}-bexpall'
        # It seems that -bexpall does not export symbols beginning with
        # underscore (_), so it is better to generate a list of symbols to
	# export.
        always_export_symbols_CXX=yes
        if test "$aix_use_runtimelinking" = yes; then
          # Warning - without using the other runtime loading flags (-brtl),
          # -berok will link without error, but may produce a broken library.
          allow_undefined_flag_CXX='-berok'
          # Determine the default libpath from the value encoded in an empty
          # executable.
          if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"

          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
        else
          if test "$host_cpu" = ia64; then
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
	    allow_undefined_flag_CXX="-z nodefs"
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
          else
	    # Determine the default libpath from the value encoded in an
	    # empty executable.
	    if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
	    # Warning - without using the other run time loading flags,
	    # -berok will link without error, but may produce a broken library.
	    no_undefined_flag_CXX=' ${wl}-bernotok'
	    allow_undefined_flag_CXX=' ${wl}-berok'
	    if test "$with_gnu_ld" = yes; then
	      # We only use this code for GNU lds that support --whole-archive.
	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    else
	      # Exported symbols can be pulled into shared objects from archives
	      whole_archive_flag_spec_CXX='$convenience'
	    fi
	    archive_cmds_need_lc_CXX=yes
	    # This is similar to how AIX traditionally builds its shared
	    # libraries.
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
          fi
        fi
        ;;

      beos*)
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	  allow_undefined_flag_CXX=unsupported
	  # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	  # support --undefined.  This deserves some investigation.  FIXME
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	else
	  ld_shlibs_CXX=no
	fi
	;;

      chorus*)
        case $cc_basename in
          *)
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	  ;;
        esac
        ;;

      cygwin* | mingw* | pw32* | cegcc*)
	case $GXX,$cc_basename in
	,cl* | no,cl*)
	  # Native MSVC
	  # hardcode_libdir_flag_spec is actually meaningless, as there is
	  # no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX=' '
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=yes
	  file_list_spec_CXX='@@'
	  # Tell ltmain to make .lib files, not .a files.
	  libext=lib
	  # Tell ltmain to make .dll files, not .so files.
	  shrext_cmds=".dll"
	  # FIXME: Setting linknames here is a bad hack.
	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	    else
	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	    fi~
	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	    linknames='
	  # The linker will not automatically build a static lib if we build a DLL.
	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
	  enable_shared_with_static_runtimes_CXX=yes
	  # Don't use ranlib
	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
	  postlink_cmds_CXX='lt_outputfile="@@OUTPUT@@"~
	    lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	    case $lt_outputfile in
	      *.exe|*.EXE) ;;
	      *)
		lt_outputfile="$lt_outputfile.exe"
		lt_tool_outputfile="$lt_tool_outputfile.exe"
		;;
	    esac~
	    func_to_tool_file "$lt_outputfile"~
	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	      $RM "$lt_outputfile.manifest";
	    fi'
	  ;;
	*)
	  # g++
	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
	  # as there is no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=no
	  enable_shared_with_static_runtimes_CXX=yes

	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	    # If the export-symbols file already is a .def file (1st line
	    # is EXPORTS), use it as is; otherwise, prepend...
	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      cp $export_symbols $output_objdir/$soname.def;
	    else
	      echo EXPORTS > $output_objdir/$soname.def;
	      cat $export_symbols >> $output_objdir/$soname.def;
	    fi~
	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	  else
	    ld_shlibs_CXX=no
	  fi
	  ;;
	esac
	;;
      darwin* | rhapsody*)


  archive_cmds_need_lc_CXX=no
  hardcode_direct_CXX=no
  hardcode_automatic_CXX=yes
  hardcode_shlibpath_var_CXX=unsupported
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  else
    whole_archive_flag_spec_CXX=''
  fi
  link_all_deplibs_CXX=yes
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=func_echo_all
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
    fi

  else
  ld_shlibs_CXX=no
  fi

	;;

      dgux*)
        case $cc_basename in
          ec++*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          ghcx*)
	    # Green Hills C++ Compiler
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      freebsd[12]*)
        # C++ shared libraries reported to be fairly broken before
	# switch to ELF
        ld_shlibs_CXX=no
        ;;

      freebsd-elf*)
        archive_cmds_need_lc_CXX=no
        ;;

      freebsd* | dragonfly*)
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
        # conventions
        ld_shlibs_CXX=yes
        ;;

      gnu*)
        ;;

      haiku*)
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
        link_all_deplibs_CXX=yes
        ;;

      hpux9*)
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        export_dynamic_flag_spec_CXX='${wl}-E'
        hardcode_direct_CXX=yes
        hardcode_minus_L_CXX=yes # Not in the search PATH,
				             # but as the default
				             # location of the library.

        case $cc_basename in
          CC*)
            # FIXME: insert proper C++ library support
            ld_shlibs_CXX=no
            ;;
          aCC*)
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            # Commands to make compiler produce verbose output that lists
            # what "hidden" libraries, object files and flags are used when
            # linking a shared library.
            #
            # There doesn't appear to be a way to prevent this compiler from
            # explicitly linking system object files so we need to strip them
            # from the output so that they don't get included in the library
            # dependencies.
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
            ;;
          *)
            if test "$GXX" = yes; then
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            else
              # FIXME: insert proper C++ library support
              ld_shlibs_CXX=no
            fi
            ;;
        esac
        ;;

      hpux10*|hpux11*)
        if test $with_gnu_ld = no; then
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

          case $host_cpu in
            hppa*64*|ia64*)
              ;;
            *)
	      export_dynamic_flag_spec_CXX='${wl}-E'
              ;;
          esac
        fi
        case $host_cpu in
          hppa*64*|ia64*)
            hardcode_direct_CXX=no
            hardcode_shlibpath_var_CXX=no
            ;;
          *)
            hardcode_direct_CXX=yes
            hardcode_direct_absolute_CXX=yes
            hardcode_minus_L_CXX=yes # Not in the search PATH,
					         # but as the default
					         # location of the library.
            ;;
        esac

        case $cc_basename in
          CC*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          aCC*)
	    case $host_cpu in
	      hppa*64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      ia64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      *)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	    esac
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test $with_gnu_ld = no; then
	        case $host_cpu in
	          hppa*64*)
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          ia64*)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          *)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	        esac
	      fi
	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      interix[3-9]*)
	hardcode_direct_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}-E'
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
	# Instead, shared libraries are loaded at an image base (0x10000000 by
	# default) and relocated if they conflict, which is a slow very memory
	# consuming and fragmenting process.  To avoid this, we pick a random,
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	;;
      irix5* | irix6*)
        case $cc_basename in
          CC*)
	    # SGI C++
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'

	    # Archives containing C++ object files must be created using
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test "$with_gnu_ld" = no; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	      else
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
	      fi
	    fi
	    link_all_deplibs_CXX=yes
	    ;;
        esac
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        inherit_rpath_CXX=yes
        ;;

      linux* | k*bsd*-gnu | kopensolaris*-gnu)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

	    # Archives containing C++ object files must be created using
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
	    ;;
	  icpc* | ecpc* )
	    # Intel C++
	    with_gnu_ld=yes
	    # version 8.0 and above of icpc choke on multiply defined symbols
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
	    # earlier do not add the objects themselves.
	    case `$CC -V 2>&1` in
	      *"Version 7."*)
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	      *)  # Version 8.0 or newer
	        tmp_idyn=
	        case $host_cpu in
		  ia64*) tmp_idyn=' -i_dynamic';;
		esac
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	    esac
	    archive_cmds_need_lc_CXX=no
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    ;;
          pgCC* | pgcpp*)
            # Portland Group C++ compiler
	    case `$CC -V` in
	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
	      prelink_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
	      old_archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
		$RANLIB $oldlib'
	      archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    *) # Version 6 and above use weak symbols
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    esac

	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
            ;;
	  cxx*)
	    # Compaq C++
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'

	    runpath_var=LD_RUN_PATH
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
	    ;;
	  xl* | mpixl* | bgxl*)
	    # IBM XL 8.0 on PPC, with GNU ld
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    if test "x$supports_anon_versioning" = xyes; then
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
		echo "local: *; };" >> $output_objdir/$libname.ver~
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	    fi
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      no_undefined_flag_CXX=' -zdefs'
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	      compiler_needs_object_CXX=yes

	      # Not sure whether something based on
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
	      # would be better.
	      output_verbose_link_cmd='func_echo_all'

	      # Archives containing C++ object files must be created using
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	      # necessary to make sure instantiated templates are included
	      # in the archive.
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	      ;;
	    esac
	    ;;
	esac
	;;

      lynxos*)
        # FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;

      m88k*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
	;;

      mvs*)
        case $cc_basename in
          cxx*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	  *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	esac
	;;

      netbsd*)
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
	  wlarc=
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	fi
	# Workaround some broken pre-1.5 toolchains
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
	;;

      *nto* | *qnx*)
        ld_shlibs_CXX=yes
	;;

      openbsd2*)
        # C++ shared libraries are fairly broken
	ld_shlibs_CXX=no
	;;

      openbsd*)
	if test -f /usr/libexec/ld.so; then
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	  hardcode_direct_absolute_CXX=yes
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
	    export_dynamic_flag_spec_CXX='${wl}-E'
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
	  fi
	  output_verbose_link_cmd=func_echo_all
	else
	  ld_shlibs_CXX=no
	fi
	;;

      osf3* | osf4* | osf5*)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    hardcode_libdir_separator_CXX=:

	    # Archives containing C++ object files must be created using
	    # the KAI C++ compiler.
	    case $host in
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
	    esac
	    ;;
          RCC*)
	    # Rational C++ 2.4.1
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          cxx*)
	    case $host in
	      osf3*)
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
		;;
	      *)
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
	          echo "-hidden">> $lib.exp~
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
	          $RM $lib.exp'
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
		;;
	    esac

	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
	  *)
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	      case $host in
	        osf3*)
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	        *)
	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	      esac

	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	      hardcode_libdir_separator_CXX=:

	      # Commands to make compiler produce verbose output that lists
	      # what "hidden" libraries, object files and flags are used when
	      # linking a shared library.
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      psos*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      sunos4*)
        case $cc_basename in
          CC*)
	    # Sun C++ 4.x
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          lcc*)
	    # Lucid
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      solaris*)
        case $cc_basename in
          CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
            archive_cmds_need_lc_CXX=yes
	    no_undefined_flag_CXX=' -zdefs'
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	    hardcode_libdir_flag_spec_CXX='-R$libdir'
	    hardcode_shlibpath_var_CXX=no
	    case $host_os in
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
	      *)
		# The compiler driver will combine and reorder linker options,
		# but understands `-z linker_flag'.
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
	        ;;
	    esac
	    link_all_deplibs_CXX=yes

	    output_verbose_link_cmd='func_echo_all'

	    # Archives containing C++ object files must be created using
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	    ;;
          gcx*)
	    # Green Hills C++ Compiler
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'

	    # The C++ compiler must be used to create the archive.
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
	    ;;
          *)
	    # GNU C++ compiler with Solaris linker
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      else
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
	        # platform.
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      fi

	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
	      case $host_os in
		solaris2.[0-5] | solaris2.[0-5].*) ;;
		*)
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
		  ;;
	      esac
	    fi
	    ;;
        esac
        ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag_CXX='${wl}-z,text'
      archive_cmds_need_lc_CXX=no
      hardcode_shlibpath_var_CXX=no
      runpath_var='LD_RUN_PATH'

      case $cc_basename in
        CC*)
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
      esac
      ;;

      sysv5* | sco3.2v5* | sco5v6*)
	# Note: We can NOT use -z defs as we might desire, because we do not
	# link with -lc, and that would cause any symbols used from libc to
	# always be unresolved, which means just about no library would
	# ever link correctly.  If we're not using GNU ld we use -z text
	# though, which does catch some bad symbols but isn't as heavy-handed
	# as -z defs.
	no_undefined_flag_CXX='${wl}-z,text'
	allow_undefined_flag_CXX='${wl}-z,nodefs'
	archive_cmds_need_lc_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
	hardcode_libdir_separator_CXX=':'
	link_all_deplibs_CXX=yes
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
	runpath_var='LD_RUN_PATH'

	case $cc_basename in
          CC*)
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
	      '"$old_archive_cmds_CXX"
	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
	      '"$reload_cmds_CXX"
	    ;;
	  *)
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    ;;
	esac
      ;;

      tandem*)
        case $cc_basename in
          NCC*)
	    # NonStop-UX NCC 3.20
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      vxworks*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      *)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
    test "$ld_shlibs_CXX" = no && can_build_shared=no

    GCC_CXX="$GXX"
    LD_CXX="$LD"

    ## CAVEAT EMPTOR:
    ## There is no encapsulation within the following macros, do not change
    ## the running order or otherwise move them around unless you know exactly
    ## what you are doing...
    # Dependencies to place before and after the object being linked:
predep_objects_CXX=
postdep_objects_CXX=
predeps_CXX=
postdeps_CXX=
compiler_lib_search_path_CXX=

cat > conftest.$ac_ext <<_LT_EOF
class Foo
{
public:
  Foo (void) { a = 0; }
private:
  int a;
};
_LT_EOF


_lt_libdeps_save_CFLAGS=$CFLAGS
case "$CC $CFLAGS " in #(
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
esac

if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # Parse the compiler output and extract the necessary
  # objects, libraries and library flags.

  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  pre_test_object_deps_done=no

  for p in `eval "$output_verbose_link_cmd"`; do
    case ${prev}${p} in

    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       if test $p = "-L" ||
          test $p = "-R"; then
	 prev=$p
	 continue
       fi

       # Expand the sysroot to ease extracting the directories later.
       if test -z "$prev"; then
         case $p in
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
         esac
       fi
       case $p in
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
       esac
       if test "$pre_test_object_deps_done" = no; then
	 case ${prev} in
	 -L | -R)
	   # Internal compiler library paths should come after those
	   # provided the user.  The postdeps already come after the
	   # user supplied libs so there is no need to process them.
	   if test -z "$compiler_lib_search_path_CXX"; then
	     compiler_lib_search_path_CXX="${prev}${p}"
	   else
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
	   fi
	   ;;
	 # The "-l" case would never come before the object being
	 # linked, so don't bother handling this case.
	 esac
       else
	 if test -z "$postdeps_CXX"; then
	   postdeps_CXX="${prev}${p}"
	 else
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
	 fi
       fi
       prev=
       ;;

    *.lto.$objext) ;; # Ignore GCC LTO objects
    *.$objext)
       # This assumes that the test object file only shows up
       # once in the compiler output.
       if test "$p" = "conftest.$objext"; then
	 pre_test_object_deps_done=yes
	 continue
       fi

       if test "$pre_test_object_deps_done" = no; then
	 if test -z "$predep_objects_CXX"; then
	   predep_objects_CXX="$p"
	 else
	   predep_objects_CXX="$predep_objects_CXX $p"
	 fi
       else
	 if test -z "$postdep_objects_CXX"; then
	   postdep_objects_CXX="$p"
	 else
	   postdep_objects_CXX="$postdep_objects_CXX $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling CXX test program"
fi

$RM -f confest.$objext
CFLAGS=$_lt_libdeps_save_CFLAGS

# PORTME: override above test on systems where it is broken
case $host_os in
interix[3-9]*)
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  # hack all around it, let's just trust "g++" to DTRT.
  predep_objects_CXX=
  postdep_objects_CXX=
  postdeps_CXX=
  ;;

linux*)
  case `$CC -V 2>&1 | sed 5q` in
  *Sun\ C*)
    # Sun C++ 5.9

    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;

solaris*)
  case $cc_basename in
  CC* | sunCC*)
    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;
esac


case " $postdeps_CXX " in
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
esac
 compiler_lib_search_dirs_CXX=
if test -n "${compiler_lib_search_path_CXX}"; then
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
fi































    lt_prog_compiler_wl_CXX=
lt_prog_compiler_pic_CXX=
lt_prog_compiler_static_CXX=


  # C++ specific cases for pic, static, wl, etc.
  if test "$GXX" = yes; then
    lt_prog_compiler_wl_CXX='-Wl,'
    lt_prog_compiler_static_CXX='-static'

    case $host_os in
    aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_CXX='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic_CXX='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | cygwin* | os2* | pw32* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_CXX='-fno-common'
      ;;
    *djgpp*)
      # DJGPP does not support shared libraries at all
      lt_prog_compiler_pic_CXX=
      ;;
    haiku*)
      # PIC is the default for Haiku.
      # The "-static" flag exists, but is broken.
      lt_prog_compiler_static_CXX=
      ;;
    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_CXX=-Kconform_pic
      fi
      ;;
    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	;;
      *)
	lt_prog_compiler_pic_CXX='-fPIC'
	;;
      esac
      ;;
    *qnx* | *nto*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_CXX='-fPIC -shared'
      ;;
    *)
      lt_prog_compiler_pic_CXX='-fPIC'
      ;;
    esac
  else
    case $host_os in
      aix[4-9]*)
	# All AIX code is PIC.
	if test "$host_cpu" = ia64; then
	  # AIX 5 now supports IA64 processor
	  lt_prog_compiler_static_CXX='-Bstatic'
	else
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
	fi
	;;
      chorus*)
	case $cc_basename in
	cxch68*)
	  # Green Hills C++ Compiler
	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
	  ;;
	esac
	;;
      mingw* | cygwin* | os2* | pw32* | cegcc*)
	# This hack is so that the source file can tell whether it is being
	# built for inclusion in a dll (and should export symbols for example).
	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
	;;
      dgux*)
	case $cc_basename in
	  ec++*)
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  ghcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      freebsd* | dragonfly*)
	# FreeBSD uses GNU C++
	;;
      hpux9* | hpux10* | hpux11*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    if test "$host_cpu" != ia64; then
	      lt_prog_compiler_pic_CXX='+Z'
	    fi
	    ;;
	  aCC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    case $host_cpu in
	    hppa*64*|ia64*)
	      # +Z the default
	      ;;
	    *)
	      lt_prog_compiler_pic_CXX='+Z'
	      ;;
	    esac
	    ;;
	  *)
	    ;;
	esac
	;;
      interix*)
	# This is c89, which is MS Visual C++ (no shared libs)
	# Anyone wants to do a port?
	;;
      irix5* | irix6* | nonstopux*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='-non_shared'
	    # CC pic flag -KPIC is the default.
	    ;;
	  *)
	    ;;
	esac
	;;
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
	case $cc_basename in
	  KCC*)
	    # KAI C++ Compiler
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  ecpc* )
	    # old Intel C++ for x86_64 which still supported -KPIC.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  icpc* )
	    # Intel C++, used to be incompatible with GCC.
	    # ICC 10 doesn't accept -KPIC any more.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  pgCC* | pgcpp*)
	    # Portland Group C++ compiler
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fpic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  cxx*)
	    # Compaq C++
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
	    # IBM XL 8.0, 9.0 on PPC and BlueGene
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-qpic'
	    lt_prog_compiler_static_CXX='-qstaticlink'
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      lt_prog_compiler_pic_CXX='-KPIC'
	      lt_prog_compiler_static_CXX='-Bstatic'
	      lt_prog_compiler_wl_CXX='-Qoption ld '
	      ;;
	    esac
	    ;;
	esac
	;;
      lynxos*)
	;;
      m88k*)
	;;
      mvs*)
	case $cc_basename in
	  cxx*)
	    lt_prog_compiler_pic_CXX='-W c,exportall'
	    ;;
	  *)
	    ;;
	esac
	;;
      netbsd*)
	;;
      *qnx* | *nto*)
        # QNX uses GNU C++, but need to define -shared option too, otherwise
        # it will coredump.
        lt_prog_compiler_pic_CXX='-fPIC -shared'
        ;;
      osf3* | osf4* | osf5*)
	case $cc_basename in
	  KCC*)
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    ;;
	  RCC*)
	    # Rational C++ 2.4.1
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  cxx*)
	    # Digital/Compaq C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      psos*)
	;;
      solaris*)
	case $cc_basename in
	  CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    lt_prog_compiler_wl_CXX='-Qoption ld '
	    ;;
	  gcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-PIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sunos4*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.x
	    lt_prog_compiler_pic_CXX='-pic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  lcc*)
	    # Lucid
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	esac
	;;
      tandem*)
	case $cc_basename in
	  NCC*)
	    # NonStop-UX NCC 3.20
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      vxworks*)
	;;
      *)
	lt_prog_compiler_can_build_shared_CXX=no
	;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_CXX=
    ;;
  *)
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works_CXX=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works_CXX=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
    case $lt_prog_compiler_pic_CXX in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
     esac
else
    lt_prog_compiler_pic_CXX=
     lt_prog_compiler_can_build_shared_CXX=no
fi

fi





#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works_CXX=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_cv_prog_compiler_static_works_CXX=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  case $host_os in
  aix[4-9]*)
    # If we're using GNU nm, then we don't want the "-C" option.
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    # Also, AIX nm treats weak defined symbols like other global defined
    # symbols, whereas GNU nm marks them as "W".
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    else
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    fi
    ;;
  pw32*)
    export_symbols_cmds_CXX="$ltdll_cmds"
    ;;
  cygwin* | mingw* | cegcc*)
    case $cc_basename in
    cl*) ;;
    *)
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
      ;;
    esac
    ;;
  *)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    ;;
  esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
test "$ld_shlibs_CXX" = no && can_build_shared=no

with_gnu_ld_CXX=$with_gnu_ld






#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_CXX" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_CXX=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_CXX in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  $RM conftest*
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext

	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
	  soname=conftest
	  lib=conftest
	  libobjs=conftest.$ac_objext
	  deplibs=
	  wl=$lt_prog_compiler_wl_CXX
	  pic_flag=$lt_prog_compiler_pic_CXX
	  compiler_flags=-v
	  linker_flags=-v
	  verstring=
	  output_objdir=.
	  libname=conftest
	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
	  allow_undefined_flag_CXX=
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	  then
	    lt_cv_archive_cmds_need_lc_CXX=no
	  else
	    lt_cv_archive_cmds_need_lc_CXX=yes
	  fi
	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
	else
	  cat conftest.err 1>&5
	fi
	$RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
      ;;
    esac
  fi
  ;;
esac
































































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$cc_basename in
  yes,*)
    # gcc
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'

      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    dynamic_linker='Win32 ld.exe'
    ;;

  *,cl*)
    # Native MSVC
    libname_spec='$name'
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'

    case $build_os in
    mingw*)
      sys_lib_search_path_spec=
      lt_save_ifs=$IFS
      IFS=';'
      for lt_path in $LIB
      do
        IFS=$lt_save_ifs
        # Let DOS variable expansion print the short 8.3 style file name.
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @@echo %~si"`
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
      done
      IFS=$lt_save_ifs
      # Convert to MSYS style.
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
      ;;
    cygwin*)
      # Convert to unix form, then to dos form, then back to unix form
      # but this time dos style (no spaces!) so that the unix form looks
      # like /cygdrive/c/PROGRA~1:/cygdr...
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      ;;
    *)
      sys_lib_search_path_spec="$LIB"
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      fi
      # FIXME: find the short name or the path components, as spaces are
      # common. (e.g. "Program Files" -> "PROGRA~1")
      ;;
    esac

    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
    dynamic_linker='Win32 link.exe'
    ;;

  *)
    # Assume MSVC wrapper
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    dynamic_linker='Win32 ld.exe'
    ;;
  esac
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

haiku*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  dynamic_linker="$host_os runtime_loader"
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  postinstall_cmds='chmod 555 $lib'
  # or fails outright, so override atomically:
  install_override_mode=555
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no

  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi






































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action_CXX=
if test -n "$hardcode_libdir_flag_spec_CXX" ||
   test -n "$runpath_var_CXX" ||
   test "X$hardcode_automatic_CXX" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct_CXX" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_CXX=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_CXX=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_CXX=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
$as_echo "$hardcode_action_CXX" >&6; }

if test "$hardcode_action_CXX" = relink ||
   test "$inherit_rpath_CXX" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi







  fi # test -n "$compiler"

  CC=$lt_save_CC
  CFLAGS=$lt_save_CFLAGS
  LDCXX=$LD
  LD=$lt_save_LD
  GCC=$lt_save_GCC
  with_gnu_ld=$lt_save_with_gnu_ld
  lt_cv_path_LDCXX=$lt_cv_path_LD
  lt_cv_path_LD=$lt_save_path_LD
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
fi # test "$_lt_caught_CXX_error" != yes

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu













        ac_config_commands="$ac_config_commands libtool"




# Only expand once:




# NTP has (so far) been relying on leading-edge autogen, which
# means we need the appropriate corresponding libopts as well.
# Therefore, by default:
# - use the version of libopts we ship with
# - do not install it
# - build a static copy (AC_DISABLE_SHARED - done earlier)
case "${enable_local_libopts+set}" in
 set) ;;
 *) enable_local_libopts=yes ;;
esac
case "${enable_libopts_install+set}" in
 set) ;;
 *) enable_libopts_install=no ;;
esac
enable_nls=no
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi



  ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
if eval \${$as_ac_Header+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$as_ac_Header=yes"
else
  eval "$as_ac_Header=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_ac_Header
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dir; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' x; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi


  # =================
  # AC_CHECK_HEADERS
  # =================
  for ac_header in  \
      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
      fcntl.h       libgen.h      libintl.h     memory.h \
      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
      unistd.h      utime.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  for ac_header in stdarg.h     varargs.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_arg_hdr=true;break
else
  lo_have_arg_hdr=false
fi

done


  for ac_header in string.h     strings.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_str_hdr=true;break
else
  lo_have_str_hdr=false
fi

done


  for ac_header in limits.h     sys/limits.h  values.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_lim_hdr=true;break
else
  lo_have_lim_hdr=false
fi

done


  for ac_header in inttypes.h   stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_typ_hdr=true;break
else
  lo_have_typ_hdr=false
fi

done


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
$as_echo_n "checking for working stdnoreturn.h... " >&6; }
if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
            #include <stdnoreturn.h>
            /* Do not check for 'noreturn' after the return type.
               C11 allows it, but it's rarely done that way
               and circa-2012 bleeding-edge GCC rejects it when given
               -Werror=old-style-declaration.  */
            noreturn void foo1 (void) { exit (0); }
            _Noreturn void foo2 (void) { exit (0); }
            int testit (int argc, char **argv) {
              if (argc & 1)
                return 0;
              (argv[0][0] ? foo1 : foo2) ();
            }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  gl_cv_header_working_stdnoreturn_h=yes
else
  gl_cv_header_working_stdnoreturn_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }

  if test $gl_cv_header_working_stdnoreturn_h = yes; then
    STDNORETURN_H=''
  else
    STDNORETURN_H='stdnoreturn.h'
  fi


   if test -n "$STDNORETURN_H"; then
  GL_GENERATE_STDNORETURN_H_TRUE=
  GL_GENERATE_STDNORETURN_H_FALSE='#'
else
  GL_GENERATE_STDNORETURN_H_TRUE='#'
  GL_GENERATE_STDNORETURN_H_FALSE=
fi



  # ----------------------------------------------------------------------
  # check for various programs used during the build.
  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  # ----------------------------------------------------------------------
  for ac_header in runetype.h wchar.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  $ac_includes_default
  #if HAVE_RUNETYPE_H
  # include <runetype.h>
  #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  # Check whether --enable-nls was given.
if test "${enable_nls+set}" = set; then :
  enableval=$enable_nls;
fi

  if test "x$enable_nls" != "xno" && \
  test "X${ac_cv_header_libintl_h}" = Xyes; then :


$as_echo "#define ENABLE_NLS 1" >>confdefs.h

fi

  # --------------------------------------------
  # Verify certain entries from AC_CHECK_HEADERS
  # --------------------------------------------
  ${lo_have_arg_hdr} || \
    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5

  ${lo_have_str_hdr} || \
    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5

  ${lo_have_lim_hdr} || \
    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5

  ${lo_have_typ_hdr} || \
    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5

  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  do eval as_ac_var=\${ac_cv_header_${f}_h}
     test "X${as_ac_var}" = Xyes || {
       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
     }
  done
  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
    echo '#include <stdint.h>' > inttypes.h

  # ----------------------------------------------------------------------
  # Checks for typedefs
  # ----------------------------------------------------------------------
  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
if test "x$ac_cv_type_wchar_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WCHAR_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
    $ac_includes_default
    #if HAVE_RUNETYPE_H
    # include <runetype.h>
    #endif
    #if HAVE_WCHAR_H
    # include <wchar.h>
    #endif

"
if test "x$ac_cv_type_wint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WINT_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
if test "x$ac_cv_type_int8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
if test "x$ac_cv_type_uint8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
if test "x$ac_cv_type_int16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
if test "x$ac_cv_type_uint16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
if test "x$ac_cv_type_int32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
if test "x$ac_cv_type_uint32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
if test "x$ac_cv_type_intptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
if test "x$ac_cv_type_uint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PID_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SIZE_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi

  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
$as_echo_n "checking size of char*... " >&6; }
if ${ac_cv_sizeof_charp+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_charp" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (char*)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_charp=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
$as_echo "$ac_cv_sizeof_charp" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHARP $ac_cv_sizeof_charp
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF



  # ------------
  # AC_CHECK_LIB
  # ------------
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
$as_echo_n "checking for pathfind in -lgen... " >&6; }
if ${ac_cv_lib_gen_pathfind+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgen  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pathfind ();
int
main ()
{
return pathfind ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gen_pathfind=yes
else
  ac_cv_lib_gen_pathfind=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGEN 1
_ACEOF

  LIBS="-lgen $LIBS"

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
$as_echo_n "checking for gettext in -lintl... " >&6; }
if ${ac_cv_lib_intl_gettext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lintl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gettext ();
int
main ()
{
return gettext ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_intl_gettext=yes
else
  ac_cv_lib_intl_gettext=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
$as_echo "$ac_cv_lib_intl_gettext" >&6; }
if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBINTL 1
_ACEOF

  LIBS="-lintl $LIBS"

fi

  for ac_func in vprintf
do :
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
if test "x$ac_cv_func_vprintf" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VPRINTF 1
_ACEOF

ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
if test "x$ac_cv_func__doprnt" = xyes; then :

$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h

fi

fi
done


  for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
                 strrchr strsignal fchmod fstat chmod
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

  while :
  do
      POSIX_SHELL=`which bash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`which dash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=/usr/xpg4/bin/sh
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`/bin/sh -c '
          exec 2>/dev/null
          if ! true ; then exit 1 ; fi
          echo /bin/sh'`
      test -x "$POSIX_SHELL" && break
      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  done

cat >>confdefs.h <<_ACEOF
#define POSIX_SHELL "${POSIX_SHELL}"
_ACEOF





  LIBOPTS_BUILD_BLOCKED=true


  NEED_LIBOPTS_DIR=''

  # Check whether --enable-local-libopts was given.
if test "${enable_local_libopts+set}" = set; then :
  enableval=$enable_local_libopts;
    if test x$enableval = xyes ; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
       NEED_LIBOPTS_DIR=true
       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
    fi
fi


  # Check whether --enable-libopts-install was given.
if test "${enable_libopts_install+set}" = set; then :
  enableval=$enable_libopts_install;
fi

   if test "X${enable_libopts_install}" = Xyes; then
  INSTALL_LIBOPTS_TRUE=
  INSTALL_LIBOPTS_FALSE='#'
else
  INSTALL_LIBOPTS_TRUE='#'
  INSTALL_LIBOPTS_FALSE=
fi


  if test -z "${NEED_LIBOPTS_DIR}" ; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
$as_echo_n "checking whether autoopts-config can be found... " >&6; }

# Check whether --with-autoopts-config was given.
if test "${with_autoopts_config+set}" = set; then :
  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
$as_echo_n "checking whether autoopts-config is specified... " >&6; }
if ${lo_cv_with_autoopts_config+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if autoopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=autoopts-config
        elif libopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=libopts-config
        else lo_cv_with_autoopts_config=no ; fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
$as_echo "$lo_cv_with_autoopts_config" >&6; }

fi
 # end of AC_ARG_WITH

     if ${lo_cv_test_autoopts+:} false; then :
  $as_echo_n "(cached) " >&6
else

        if test -z "${lo_cv_with_autoopts_config}" \
                -o X"${lo_cv_with_autoopts_config}" = Xno
        then
           if autoopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=autoopts-config
           elif libopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=libopts-config
           else lo_cv_with_autoopts_config=false ; fi
        fi
        lo_cv_test_autoopts=`
            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
        then lo_cv_test_autoopts=no ; fi

fi
 # end of CACHE_VAL
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
$as_echo "${lo_cv_test_autoopts}" >&6; }

     if test "X${lo_cv_test_autoopts}" != Xno
     then
        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
     else
        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
        NEED_LIBOPTS_DIR=true
     fi
  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
    NEED_LIBOPTS_DIR=''
  fi
   if test -n "${NEED_LIBOPTS_DIR}"; then
  NEED_LIBOPTS_TRUE=
  NEED_LIBOPTS_FALSE='#'
else
  NEED_LIBOPTS_TRUE='#'
  NEED_LIBOPTS_FALSE=
fi



  LIBOPTS_DIR=sntp/libopts


# end of AC_DEFUN of LIBOPTS_CHECK_COMMON

  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD




# Check whether --enable-local-libevent was given.
if test "${enable_local_libevent+set}" = set; then :
  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
else
  ntp_use_local_libevent=${ntp_use_local_libevent-detect}

fi






# Expose a cross-compilation indicator to makefiles
 if test $build != $host; then
  NTP_CROSSCOMPILE_TRUE=
  NTP_CROSSCOMPILE_FALSE='#'
else
  NTP_CROSSCOMPILE_TRUE='#'
  NTP_CROSSCOMPILE_FALSE=
fi



ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi


            # Check whether --enable-c99-snprintf was given.
if test "${enable_c99_snprintf+set}" = set; then :
  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
else
  force_c99_snprintf=no

fi

    case "$force_c99_snprintf" in
     yes)
	hw_force_rpl_snprintf=yes
	hw_force_rpl_vsnprintf=yes
    esac






  for ac_header in $ac_header_list
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done







      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
if test "x$ac_cv_func_vsnprintf" = xyes; then :
  hw_cv_func_vsnprintf=yes
else
  hw_cv_func_vsnprintf=no
fi

  if test "$hw_cv_func_vsnprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
if ${hw_cv_func_vsnprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_vsnprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if HAVE_STDARG_H
          #include <stdarg.h>
          #endif
          #include <stdio.h>
          static int testprintf(char *buf, size_t size, const char *format, ...)
          {
            int result;
            va_list ap;
            va_start(ap, format);
            result = vsnprintf(buf, size, format, ap);
            va_end(ap);
            return result;
          }
int
main ()
{
char buf[43];
          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_vsnprintf_c99=yes
else
  hw_cv_func_vsnprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
else
  hw_cv_func_vsnprintf_c99=no
fi

$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
  hw_use_rpl_vsnprintf=yes
else
  hw_use_rpl_vsnprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
$as_echo "$hw_use_rpl_vsnprintf" >&6; }
  if test "$hw_use_rpl_vsnprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_vsnprintf=no} = no; then :

$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h

fi
    for ac_header in inttypes.h locale.h stddef.h stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
_ACEOF


fi
ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
_ACEOF


fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
$as_echo_n "checking for long double... " >&6; }
if ${ac_cv_type_long_double+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$GCC" = yes; then
       ac_cv_type_long_double=yes
     else
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* The Stardent Vistra knows sizeof (long double), but does
		 not support it.  */
	      long double foo = 0.0L;
int
main ()
{
static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
	      sizeof (double) <= sizeof (long double))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_long_double=yes
else
  ac_cv_type_long_double=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
$as_echo "$ac_cv_type_long_double" >&6; }
  if test $ac_cv_type_long_double = yes; then

$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
$as_echo_n "checking for long long int... " >&6; }
if ${ac_cv_type_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  			if test "$cross_compiling" = yes; then :
  ac_cv_type_long_long_int=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
	       #ifndef LLONG_MAX
	       # define HALF \
			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
	       # define LLONG_MAX (HALF - 1 + HALF)
	       #endif
int
main ()
{
long long int n = 1;
	       int i;
	       for (i = 0; ; i++)
		 {
		   long long int m = n << i;
		   if (m >> i != n)
		     return 1;
		   if (LLONG_MAX / 2 < m)
		     break;
		 }
	       return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_type_long_long_int=yes
else
  ac_cv_type_long_long_int=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

else
  ac_cv_type_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
$as_echo "$ac_cv_type_long_long_int" >&6; }
  if test $ac_cv_type_long_long_int = yes; then

$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
$as_echo_n "checking for unsigned long long int... " >&6; }
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_type_unsigned_long_long_int=yes
else
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h

  fi

    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
if test "x$ac_cv_type_intmax_t" = xyes; then :

$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_long_long_int = yes \
       && ac_type='long long int' \
       || ac_type='long int'

cat >>confdefs.h <<_ACEOF
#define intmax_t $ac_type
_ACEOF

fi




  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
if test "x$ac_cv_type_uintmax_t" = xyes; then :

$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_unsigned_long_long_int = yes \
       && ac_type='unsigned long long int' \
       || ac_type='unsigned long int'

cat >>confdefs.h <<_ACEOF
#define uintmax_t $ac_type
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h

else
  for ac_type in 'unsigned int' 'unsigned long int' \
	'unsigned long long int'; do
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

cat >>confdefs.h <<_ACEOF
#define uintptr_t $ac_type
_ACEOF

	  ac_type=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       test -z "$ac_type" && break
     done
fi


    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi

    for ac_func in localeconv
do :
  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
if test "x$ac_cv_func_localeconv" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LOCALECONV 1
_ACEOF

fi
done


  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi


    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
if test "x$ac_cv_func_snprintf" = xyes; then :
  hw_cv_func_snprintf=yes
else
  hw_cv_func_snprintf=no
fi

  if test "$hw_cv_func_snprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
if ${hw_cv_func_snprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_snprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
char buf[43];
          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_snprintf_c99=yes
else
  hw_cv_func_snprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
$as_echo "$hw_cv_func_snprintf_c99" >&6; }
else
  hw_cv_func_snprintf_c99=no
fi

$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
  hw_use_rpl_snprintf=yes
else
  hw_use_rpl_snprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
$as_echo "$hw_use_rpl_snprintf" >&6; }
  if test "$hw_use_rpl_snprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_snprintf=no} = no; then :

$as_echo "#define snprintf rpl_snprintf" >>confdefs.h

fi

  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi





# HMS: Save $LIBS and empty it.
# any LIBS we add here should go in to LDADD_LIBNTP

__LIBS=$LIBS
LIBS=



# [Bug 2332] because we need to know if we are using GNU ld...


# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld








{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
$as_echo_n "checking for directory path separator... " >&6; }
if ${ntp_cv_dir_sep+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$ntp_cv_dir_sep" in
	 '')
	    case "$host_os" in
	     *djgpp | *mingw32* | *emx*)
		ntp_cv_dir_sep="'\\'"
		;;
	     *)
		ntp_cv_dir_sep="'/'"
		;;
	    esac
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
$as_echo "$ntp_cv_dir_sep" >&6; }

cat >>confdefs.h <<_ACEOF
#define DIR_SEP $ntp_cv_dir_sep
_ACEOF



    NTP_ORIG_LIBS="$LIBS"

# Check whether --with-lineeditlibs was given.
if test "${with_lineeditlibs+set}" = set; then :
  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
else
  use_lineeditlibs="edit,editline"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
$as_echo_n "checking line editing libraries... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
$as_echo "$use_lineeditlibs" >&6; }
    case "$use_lineeditlibs" in
     no)
	ntp_lib_lineedit=no
	;;
     *)
	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
	    for term_lib in "" termcap curses ncurses; do
		case "$term_lib" in
		 '')
		    TRY_LIB="-l$lineedit_lib"
		    ;;
		 *)
		    TRY_LIB="-l$lineedit_lib -l$term_lib"
		    ;;
		esac
		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char readline ();
int
main ()
{
return readline ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		case "$ntp_lib_lineedit" in
		 '')
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		    ;;
		 *)
		    # Use readline()
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
		    break
		esac
		case "$term_lib" in
		 '')
		    # do not try el_gets without a terminal library
		    ;;
		 *)
		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char el_gets ();
int
main ()
{
return el_gets ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		    case "$ntp_lib_lineedit" in
		     '')
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			;;
		     *) # Use el_gets()
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			break
			;;
		    esac	# $ntp_lib_lineedit
		esac		# $term_lib
	    done
	    case "$ntp_lib_lineedit" in
	     '')
		;;
	     *)
		break
		;;
	    esac
	done
	LIBS="$NTP_ORIG_LIBS"
	;;
    esac	# $use_lineeditlibs

    case "$ntp_lib_lineedit" in
     '')
	ntp_lib_lineedit="no"
	;;
     no)
	;;
     *)
	EDITLINE_LIBS="$ntp_lib_lineedit"

	;;
    esac	# $ntp_lib_lineedit

    case "$ntp_lib_lineedit" in
     no)
	;;
     *)
	for ac_header in readline.h readline/readline.h histedit.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	for ac_header in history.h readline/history.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


	case "$ac_cv_header_histedit_h" in
	 yes)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
$as_echo_n "checking number of arguments to el_init()... " >&6; }
if ${ntp_cv_el_init_args+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    #include <stdio.h>
			    #include <histedit.h>

int
main ()
{

			    el_init("conftest", stdin, stdout, stderr);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_el_init_args=4
else
  ntp_cv_el_init_args=3

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
$as_echo "$ntp_cv_el_init_args" >&6; }

cat >>confdefs.h <<_ACEOF
#define EL_INIT_ARGS $ntp_cv_el_init_args
_ACEOF

	esac

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
$as_echo_n "checking whether readline supports history... " >&6; }

	ntp_lib_lineedit_history="no"
	ORIG_LIBS="$LIBS"
	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char add_history ();
int
main ()
{
return add_history ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit_history="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LIBS="$ORIG_LIBS"

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
$as_echo "$ntp_lib_lineedit_history" >&6; }

	case "$ntp_lib_lineedit_history" in
	 yes)

$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h

	esac
    esac	# $ntp_lib_lineedit
    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
    { ORIG_LIBS=; unset ORIG_LIBS;}
    { TRY_LIB=; unset TRY_LIB;}
    { use_lineeditlibs=; unset use_lineeditlibs;}


LIBM=
case "$host" in
 *-*-darwin*)
    ;;
 *)
    _libs=$LIBS
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
$as_echo_n "checking for library containing cos... " >&6; }
if ${ac_cv_search_cos+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cos ();
int
main ()
{
return cos ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' m; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_cos=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_cos+:} false; then :
  break
fi
done
if ${ac_cv_search_cos+:} false; then :

else
  ac_cv_search_cos=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
$as_echo "$ac_cv_search_cos" >&6; }
ac_res=$ac_cv_search_cos
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  LIBM="-lm"
fi

    LIBS=$_libs
    ;;
esac

{ _libs=; unset _libs;}


for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
$as_echo_n "checking for working alloca.h... " >&6; }
if ${ac_cv_working_alloca_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <alloca.h>
int
main ()
{
char *p = (char *) alloca (2 * sizeof (int));
			  if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_working_alloca_h=yes
else
  ac_cv_working_alloca_h=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
$as_echo "$ac_cv_working_alloca_h" >&6; }
if test $ac_cv_working_alloca_h = yes; then

$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
$as_echo_n "checking for alloca... " >&6; }
if ${ac_cv_func_alloca_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  ifdef HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
void *alloca (size_t);
#    endif
#   endif
#  endif
# endif
#endif

int
main ()
{
char *p = (char *) alloca (1);
				    if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_func_alloca_works=yes
else
  ac_cv_func_alloca_works=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
$as_echo "$ac_cv_func_alloca_works" >&6; }

if test $ac_cv_func_alloca_works = yes; then

$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h

else
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble.  Some versions do not even contain alloca or
# contain a buggy version.  If you still want to use their alloca,
# use ar to extract alloca.o from them instead of compiling alloca.c.

ALLOCA=\${LIBOBJDIR}alloca.$ac_objext

$as_echo "#define C_ALLOCA 1" >>confdefs.h


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
if ${ac_cv_os_cray+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if defined CRAY && ! defined CRAY2
webecray
#else
wenotbecray
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "webecray" >/dev/null 2>&1; then :
  ac_cv_os_cray=yes
else
  ac_cv_os_cray=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
$as_echo "$ac_cv_os_cray" >&6; }
if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :

cat >>confdefs.h <<_ACEOF
#define CRAY_STACKSEG_END $ac_func
_ACEOF

    break
fi

  done
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
$as_echo_n "checking stack direction for C alloca... " >&6; }
if ${ac_cv_c_stack_direction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_c_stack_direction=0
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}

int
main ()
{
  return find_stack_direction () < 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_stack_direction=1
else
  ac_cv_c_stack_direction=-1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
$as_echo "$ac_cv_c_stack_direction" >&6; }
cat >>confdefs.h <<_ACEOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
_ACEOF


fi

ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRERROR_R $ac_have_decl
_ACEOF

for ac_func in strerror_r
do :
  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
if test "x$ac_cv_func_strerror_r" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRERROR_R 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
if ${ac_cv_func_strerror_r_char_p+:} false; then :
  $as_echo_n "(cached) " >&6
else

    ac_cv_func_strerror_r_char_p=no
    if test $ac_cv_have_decl_strerror_r = yes; then
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  char *p = strerror_r (0, buf, sizeof buf);
	  return !p || x;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    else
      # strerror_r is not declared.  Choose between
      # systems that have relatively inaccessible declarations for the
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
      # former has a strerror_r that returns char*, while the latter
      # has a strerror_r that returns `int'.
      # This test should segfault on the DEC system.
      if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
	extern char *strerror_r ();
int
main ()
{
char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  return ! isalpha (x);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
if test $ac_cv_func_strerror_r_char_p = yes; then

$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h

fi


ac_busted_vpath_in_make=no
case "$build" in
 *-*-irix6.1*)	# 64 bit only
    # busted vpath?
    ;;
 *-*-irix6*)	# 6.2 (and later?)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-solaris2.5.1)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-unicosmp*)
    ac_busted_vpath_in_make=yes
    ;;
esac

case "$ac_busted_vpath_in_make$srcdir" in
 yes.|no*)
    ;;
 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
    esac
    ;;
esac

case "$host" in
 *-*-aix4*)
	# Bug 2516:
	# Was *-*-aix[[4-9]]*
	# XXX only verified thru AIX6.  But...
	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
	# that this support would be in 5.3, removed in 6, and added back.
	#
	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
	# IBM pulls its thumbs out long enough to implement clock_settime,
	# this conditional will need to change.  Maybe use AC_TRY_RUN
	# instead to try to set the time to itself and check errno.
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
$as_echo_n "checking for library containing clock_gettime... " >&6; }
if ${ac_cv_search_clock_gettime+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char clock_gettime ();
int
main ()
{
return clock_gettime ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_clock_gettime=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_clock_gettime+:} false; then :
  break
fi
done
if ${ac_cv_search_clock_gettime+:} false; then :

else
  ac_cv_search_clock_gettime=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
$as_echo "$ac_cv_search_clock_gettime" >&6; }
ac_res=$ac_cv_search_clock_gettime
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_clock_gettime" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
 esac

fi

    for ac_func in clock_getres clock_gettime clock_settime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac

for ac_func in getclock stime timegm strlcpy strlcat
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


#
for ac_header in errno.h sys/socket.h sys/types.h time.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in net/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif

"
if test "x$ac_cv_header_net_if_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_H 1
_ACEOF

fi

done

case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
if ${ntp_cv_predecl_mpinfou+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    np_cv_predecl_mpinfou=no
	    case "$ac_cv_header_net_if_h" in
	     no)
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    typedef union mpinfou {
				    struct pdk_mpinfo *pdkptr;
				    struct mpinfo *pikptr;
			    } mpinfou_t;
			    #ifdef HAVE_SYS_SOCKET_H
			    # include <sys/socket.h>
			    #endif
			    #include <net/if.h>

int
main ()
{



  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

			ntp_cv_predecl_mpinfou=yes
			ac_cv_header_net_if_h=yes


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
$as_echo "$ntp_cv_predecl_mpinfou" >&6; }
    case "$ntp_cv_predecl_mpinfou" in
     yes)
	cat >>confdefs.h <<_ACEOF
#ifndef MPINFOU_PREDECLARED
# define MPINFOU_PREDECLARED
typedef union mpinfou {
	struct pdk_mpinfo *pdkptr;
	struct mpinfo *pikptr;
} mpinfou_t;
#endif
_ACEOF

    esac
esac

case "$host" in
 *-linux*)
    for ac_header in linux/if_addr.h
do :
  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
	#ifdef HAVE_SYS_SOCKET_H
	# include <sys/socket.h>
	#endif

"
if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LINUX_IF_ADDR_H 1
_ACEOF

fi

done

esac

for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
for ac_header in sys/sysctl.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
    #if defined HAVE_SYS_PARAM_H
    # include <sys/param.h>
    #endif

"
if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SYSCTL_H 1
_ACEOF

fi

done

for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in resolv.h
do :
  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_ARPA_NAMESER_H
    # include <arpa/nameser.h>
    #endif

"
if test "x$ac_cv_header_resolv_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RESOLV_H 1
_ACEOF

fi

done


for ac_header in net/if_var.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
    #if HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif

"
if test "x$ac_cv_header_net_if_var_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_VAR_H 1
_ACEOF

fi

done


for ac_header in netinet/ip.h netinet/in_var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_VAR_H
    # include <net/if_var.h>
    #endif
    #ifdef HAVE_NETINET_IN_SYSTM_H
    # include <netinet/in_systm.h>
    #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


# HMS: Do we need to check for -lsocket before or after these tests?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
$as_echo_n "checking for library containing inet_pton... " >&6; }
if ${ac_cv_search_inet_pton+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_pton ();
int
main ()
{
return inet_pton ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' nsl; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_pton=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_pton+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_pton+:} false; then :

else
  ac_cv_search_inet_pton=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
$as_echo "$ac_cv_search_inet_pton" >&6; }
ac_res=$ac_cv_search_inet_pton
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_pton" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
 esac

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
$as_echo_n "checking for library containing inet_ntop... " >&6; }
if ${ac_cv_search_inet_ntop+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_ntop ();
int
main ()
{
return inet_ntop ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_ntop=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_ntop+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_ntop+:} false; then :

else
  ac_cv_search_inet_ntop=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
$as_echo "$ac_cv_search_inet_ntop" >&6; }
ac_res=$ac_cv_search_inet_ntop
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_ntop" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
 esac

fi


# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
# avoid keying on the OS name:  If we find socket functions in
# libsocket, next try for them in libxnet without libsocket, if found,
# list both.  If we simply tested libxnet first, we would find the
# functions there and never add libsocket.  See also [Bug 660]
# http://bugs.ntp.org/show_bug.cgi?id=660#c9
saved_LIBS=$LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
$as_echo_n "checking for library containing setsockopt... " >&6; }
if ${ac_cv_search_setsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char setsockopt ();
int
main ()
{
return setsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' socket; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_setsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_setsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_setsockopt+:} false; then :

else
  ac_cv_search_setsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
$as_echo "$ac_cv_search_setsockopt" >&6; }
ac_res=$ac_cv_search_setsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_setsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
 esac

fi

case "$ac_cv_search_setsockopt" in
 -lsocket)
    LIBS="$saved_LIBS"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
$as_echo_n "checking for library containing getsockopt... " >&6; }
if ${ac_cv_search_getsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getsockopt ();
int
main ()
{
return getsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' xnet; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_getsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_getsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_getsockopt+:} false; then :

else
  ac_cv_search_getsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
$as_echo "$ac_cv_search_getsockopt" >&6; }
ac_res=$ac_cv_search_getsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_getsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
 esac

fi

    # XXX Possible trouble here - reading the comments above and looking at the
    # code below I wonder if we'll add -lxnet when we don't need it.
    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
    # there when it is not needed?
    case "$ac_cv_search_getsockopt" in
     -lxnet)
	LIBS="-lxnet -lsocket $saved_LIBS"
	;;
     *) LIBS="-lsocket $saved_LIBS"
	;;
    esac
    ;;
esac
{ saved_LIBS=; unset saved_LIBS;}

# Bug 2427 - look for recvmsg here.
for ac_func in recvmsg
do :
  ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
if test "x$ac_cv_func_recvmsg" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RECVMSG 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if ${ac_cv_c_inline+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }

case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac


case "$ac_cv_c_inline" in
 '')
    ;;
 *)

$as_echo "#define HAVE_INLINE 1" >>confdefs.h


esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if ${ac_cv_header_time+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_time=yes
else
  ac_cv_header_time=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h

fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
$as_echo_n "checking size of time_t... " >&6; }
if ${ac_cv_sizeof_time_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_time_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (time_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_time_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
$as_echo "$ac_cv_sizeof_time_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
$as_echo_n "checking whether char is unsigned... " >&6; }
if ${ac_cv_c_char_unsigned+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_char_unsigned=no
else
  ac_cv_c_char_unsigned=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
$as_echo "$ac_cv_c_char_unsigned" >&6; }
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h

fi
		# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
$as_echo_n "checking size of signed char... " >&6; }
if ${ac_cv_sizeof_signed_char+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_signed_char" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (signed char)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_signed_char=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
$as_echo "$ac_cv_sizeof_signed_char" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
_ACEOF


ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
if test "x$ac_cv_type_s_char" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_S_CHAR 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
if test "x$ac_cv_type_long_long" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF



case "$ac_cv_type_long_long" in
 no)
    ;;
 *)
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
if ${ac_cv_sizeof_long_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF


    ;;
esac

case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
 *yes)
    # We have a typedef for s_char.  Might as well believe it...
    ;;
 no0no)
    # We have signed chars, can't say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 no1no)
    # We have signed chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 yes0no)
    # We have unsigned chars, can't say 'signed char', no s_char typedef.
    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
    ;;
 yes1no)
    # We have unsigned chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
if ${ac_cv_type_uid_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "uid_t" >/dev/null 2>&1; then :
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; }
if test $ac_cv_type_uid_t = no; then

$as_echo "#define uid_t int" >>confdefs.h


$as_echo "#define gid_t int" >>confdefs.h

fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
$as_echo_n "checking if we're including debugging code... " >&6; }
# Check whether --enable-debugging was given.
if test "${enable_debugging+set}" = set; then :
  enableval=$enable_debugging; ntp_ok=$enableval
else
  ntp_ok=yes

fi

case "$ntp_ok" in
 yes)

$as_echo "#define DEBUG 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }



# check if we can compile with pthreads
for ac_header in semaphore.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
if test "x$ac_cv_header_semaphore_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SEMAPHORE_H 1
_ACEOF

fi

done

for ac_func in socketpair
do :
  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
if test "x$ac_cv_func_socketpair" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKETPAIR 1
_ACEOF

fi
done

# Check whether --enable-thread-support was given.
if test "${enable_thread_support+set}" = set; then :
  enableval=$enable_thread_support;
else
  enable_thread_support=yes

fi

have_pthreads=no
case "$enable_thread_support" in
 yes)
    ol_found_pthreads=no



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

# OpenLDAP --with-threads

# Check whether --with-threads was given.
if test "${with_threads+set}" = set; then :
  withval=$with_threads;
	ol_arg=invalid
	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
	fi
	ol_with_threads="$ol_arg"

else
  	ol_with_threads="auto"
fi
# end --with-threads


case "$ol_with_threads$host" in
 auto*-*-solaris2.[0-6])
        ol_with_threads=no
    ;;
esac


ol_aix_threads=no
case "$host" in
*-*-aix*) 	if test -z "$CC" ; then
		case "$ol_with_threads" in
		auto | yes |  posix) ol_aix_threads=yes ;;
		esac
	fi
;;
esac

if test $ol_aix_threads = yes ; then
	if test -z "${CC}" ; then
		for ac_prog in cc_r xlc_r cc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$CC" && break
done


		if test "$CC" = cc ; then
						if test $ol_with_threads != auto ; then
				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
			fi
			ol_with_threads=no
  		fi
	fi

	case ${CC} in cc_r | xlc_r)
		ol_with_threads=posix
		ol_cv_pthread_create=yes
		;;
	esac
fi

ol_link_threads=no
# OpenLDAP --with-yielding_select

# Check whether --with-yielding_select was given.
if test "${with_yielding_select+set}" = set; then :
  withval=$with_yielding_select;
	ol_arg=invalid
	for ol_val in auto yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
	fi
	ol_with_yielding_select="$ol_arg"

else
  	ol_with_yielding_select="auto"
fi
# end --with-yielding_select


case $ol_with_threads in auto | yes | nt)


	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
if test "x$ac_cv_func__beginthread" = xyes; then :

fi


	if test $ac_cv_func__beginthread = yes ; then

$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h

		ol_cv_nt_threads=yes
	fi


	if test "$ol_cv_nt_threads" = yes ; then
		ol_link_threads=nt
		ol_with_threads=found
		ol_with_yielding_select=yes


$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h


$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h

	fi

	if test $ol_with_threads = nt ; then
		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | posix)

	for ac_header in pthread.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_H 1
_ACEOF

fi

done


	if test $ac_cv_header_pthread_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
$as_echo_n "checking POSIX thread version... " >&6; }
if ${ol_cv_pthread_version+:} false; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>

int
main ()
{

		int i = PTHREAD_CREATE_JOINABLE;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_detach" >/dev/null 2>&1; then :
  ol_cv_pthread_version=10
else
  ol_cv_pthread_version=8
fi
rm -f conftest*

else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>
#		ifdef PTHREAD_CREATE_UNDETACHED
		draft7
#		endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft7" >/dev/null 2>&1; then :
  ol_cv_pthread_version=7
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
  ol_cv_pthread_version=6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>
#ifdef		PTHREAD_MUTEX_INITIALIZER
		draft5
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft5" >/dev/null 2>&1; then :
  ol_cv_pthread_version=5
else
  ol_cv_pthread_version=4
fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
$as_echo "$ol_cv_pthread_version" >&6; }


		if test $ol_cv_pthread_version != 0 ; then

cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREADS $ol_cv_pthread_version
_ACEOF

		else
			as_fn_error $? "unknown pthread version" "$LINENO" 5
		fi

		# consider threads found
		ol_with_threads=found


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then

$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h

	fi


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
#ifdef _POSIX_THREAD_IS_GNU_PTH
	__gnu_pth__;
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
  ol_cv_header_gnu_pth_pthread_h=yes
else
  ol_cv_header_gnu_pth_pthread_h=no
fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }


		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
			for ac_header in sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_H 1
_ACEOF

fi

done

		fi


				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
$as_echo_n "checking for pthread_create in default libraries... " >&6; }
if ${ol_cv_pthread_create+:} false; then :
  $as_echo_n "(cached) " >&6
else

			if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;
d14028 2
a14030 1

d14032 3
a14034 4
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
a14035 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14037 4
a14042 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
$as_echo "$ol_cv_pthread_create" >&6; }
d14044 1
a14044 4
		if test $ol_cv_pthread_create != no ; then
			ol_link_threads=posix
			ol_link_pthreads=""
		fi
d14046 4
a14049 8
		# Pthread try link: -kthread (ol_cv_pthread_kthread)
if test "$ol_link_threads" = no ; then
	# try -kthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
$as_echo_n "checking for pthread link with -kthread... " >&6; }
if ${ol_cv_pthread_kthread+:} false; then :
  $as_echo_n "(cached) " >&6
else
d14051 5
a14055 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-kthread $LIBS"
d14057 8
a14064 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14066 17
a14082 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d14084 6
a14089 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d14091 11
a14101 3
int
main ()
{
d14103 25
a14127 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14129 8
a14136 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14138 10
a14147 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d14149 3
a14151 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14153 12
a14164 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d14166 11
a14176 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d14178 22
a14199 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14201 8
a14208 1
	return 0;
d14210 21
a14230 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14232 10
d14243 6
a14248 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d14250 7
a14256 23
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14258 4
a14261 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d14263 6
a14268 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14269 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14270 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14271 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14272 1
	return 0;
a14273 1
}
a14274 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14276 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14277 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
$as_echo "$ol_cv_pthread_kthread" >&6; }
a14278 5
	if test $ol_cv_pthread_kthread = yes ; then
		ol_link_pthreads="-kthread"
		ol_link_threads=posix
	fi
fi
a14279 8
		# Pthread try link: -pthread (ol_cv_pthread_pthread)
if test "$ol_link_threads" = no ; then
	# try -pthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
$as_echo_n "checking for pthread link with -pthread... " >&6; }
if ${ol_cv_pthread_pthread+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14280 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthread $LIBS"
a14281 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14282 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14283 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14284 3
int
main ()
{
a14285 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14286 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14287 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14288 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14289 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14290 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14291 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14292 1
	return 0;
a14293 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_pthread=yes
else
  ol_cv_pthread_pthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14295 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14296 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14298 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14299 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14300 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14301 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14302 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14303 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14304 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14305 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14306 1
	return 0;
a14307 1
}
a14308 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthread=yes
else
  ol_cv_pthread_pthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14310 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14311 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
$as_echo "$ol_cv_pthread_pthread" >&6; }
a14312 5
	if test $ol_cv_pthread_pthread = yes ; then
		ol_link_pthreads="-pthread"
		ol_link_threads=posix
	fi
fi
a14313 8
		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
if test "$ol_link_threads" = no ; then
	# try -pthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
$as_echo_n "checking for pthread link with -pthreads... " >&6; }
if ${ol_cv_pthread_pthreads+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14314 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthreads $LIBS"
a14315 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14316 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14317 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14318 3
int
main ()
{
a14319 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14320 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14321 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14322 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14323 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14324 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14325 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14326 1
	return 0;
a14327 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_pthreads=yes
else
  ol_cv_pthread_pthreads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14329 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14330 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14332 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14333 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14334 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14335 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14336 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14337 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14338 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14339 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14340 1
	return 0;
a14341 1
}
a14342 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthreads=yes
else
  ol_cv_pthread_pthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14344 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14345 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
$as_echo "$ol_cv_pthread_pthreads" >&6; }
a14346 5
	if test $ol_cv_pthread_pthreads = yes ; then
		ol_link_pthreads="-pthreads"
		ol_link_threads=posix
	fi
fi
a14347 8
		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
if test "$ol_link_threads" = no ; then
	# try -mthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
$as_echo_n "checking for pthread link with -mthreads... " >&6; }
if ${ol_cv_pthread_mthreads+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14348 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-mthreads $LIBS"
a14349 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14350 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14351 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14352 3
int
main ()
{
a14353 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14354 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14355 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14356 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14357 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14358 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14359 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14361 6
a14366 1
	return 0;
d14368 13
a14380 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_mthreads=yes
d14382 3
a14384 1
  ol_cv_pthread_mthreads=no
d14386 2
a14387 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14389 9
a14398 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14399 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14401 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14402 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14404 7
a14410 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14412 6
a14417 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d14419 4
a14422 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14424 4
a14427 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d14429 11
a14439 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d14441 5
a14445 2
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
d14447 7
a14453 3

	return 0;

a14454 1

d14456 2
a14457 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_mthreads=yes
d14459 1
a14459 1
  ol_cv_pthread_mthreads=no
d14461 3
a14463 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14465 5
d14471 3
a14473 3

		# restore the LIBS
		LIBS="$ol_LIBS"
a14475 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
$as_echo "$ol_cv_pthread_mthreads" >&6; }
d14477 1
a14477 5
	if test $ol_cv_pthread_mthreads = yes ; then
		ol_link_pthreads="-mthreads"
		ol_link_threads=posix
	fi
fi
d14479 8
a14486 6
		# Pthread try link: -thread (ol_cv_pthread_thread)
if test "$ol_link_threads" = no ; then
	# try -thread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
$as_echo_n "checking for pthread link with -thread... " >&6; }
if ${ol_cv_pthread_thread+:} false; then :
d14489 3
a14491 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-thread $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14494 5
a14498 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14500 1
a14500 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d14504 1
a14504 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d14510 1
a14510 1
  ol_cv_pthread_thread=yes
d14512 1
a14512 1
  ol_cv_pthread_thread=no
d14516 15
d14532 3
a14534 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14537 5
a14541 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14543 3
a14545 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d14547 3
a14549 55
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

a14550 1

d14552 2
a14553 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_thread=yes
d14555 1
a14555 1
  ol_cv_pthread_thread=no
d14557 3
a14559 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14561 8
a14568 22


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
$as_echo "$ol_cv_pthread_thread" >&6; }

	if test $ol_cv_pthread_thread = yes ; then
		ol_link_pthreads="-thread"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
d14571 3
a14573 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14576 5
a14580 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14582 1
a14582 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d14586 1
a14586 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d14592 1
a14592 1
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
d14594 1
a14594 1
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
d14598 11
d14610 3
a14612 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14615 5
a14619 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14621 3
a14623 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d14625 3
a14627 1
	return (void *) (p == NULL);
d14629 15
d14646 1
a14646 12
int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14647 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14649 1
a14649 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14650 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14652 1
a14652 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14653 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d14655 1
a14655 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14656 1
	return 0;
d14658 1
a14658 1
}
d14660 2
a14661 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
d14663 5
d14669 4
a14672 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d14674 2
a14675 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
d14677 2
a14678 5
	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
fi
d14680 3
a14682 6
		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
d14685 8
d14694 2
a14695 15
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
d14698 1
a14698 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d14700 8
a14707 7
int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
a14708 3
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14710 20
a14729 17
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
a14730 5
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14732 4
a14735 6
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
d14738 5
a14742 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14744 12
a14755 1
	return 0;
d14757 1
a14757 2
  ;
  return 0;
d14759 17
a14775 5
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
else
  ol_cv_pthread_lpthread_lmach_lexc=no
d14777 1
a14777 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14780 3
a14782 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d14784 15
a14798 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d14800 2
a14801 9

int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
a14802 3
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14804 1
a14804 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14806 2
a14807 6
	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
d14809 5
a14813 1
	status = pthread_attr_setdetachstate(&attr, detach);
d14815 21
a14835 4
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
a14836 5
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14838 4
a14841 6
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
d14844 5
a14848 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14850 12
a14861 1
	return 0;
d14863 1
d14865 17
a14881 9

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
else
  ol_cv_pthread_lpthread_lmach_lexc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14883 1
a14885 3
		# restore the LIBS
		LIBS="$ol_LIBS"

d14887 3
a14889 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
d14891 5
a14895 5
	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc"
		ol_link_threads=posix
	fi
fi
d14897 4
d14902 5
a14906 35
		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
if test "$ol_link_threads" = no ; then
	# try -lpthread -Wl,-woff,85
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -Wl,-woff,85 $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{
a14907 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14908 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14909 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14910 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14911 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14912 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14913 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14914 1
	return 0;
a14915 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
else
  ol_cv_pthread_lib_lpthread_woff=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14917 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14918 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14920 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14921 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14922 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14924 29
a14952 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14953 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14954 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14955 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14956 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14957 1
	return 0;
a14958 1
}
a14959 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
else
  ol_cv_pthread_lib_lpthread_woff=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14961 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14962 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
a14963 5
	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
		ol_link_pthreads="-lpthread -Wl,-woff,85"
		ol_link_threads=posix
	fi
fi
d14965 5
d14971 3
a14973 8
		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
if test "$ol_link_threads" = no ; then
	# try -lpthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
$as_echo_n "checking for pthread link with -lpthread... " >&6; }
if ${ol_cv_pthread_lpthread+:} false; then :
  $as_echo_n "(cached) " >&6
else
d14975 10
a14984 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread $LIBS"
d14986 8
a14993 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14995 6
a15000 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a15001 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a15002 3
int
main ()
{
a15003 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15005 6
a15010 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d15012 1
a15012 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a15013 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a15014 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a15015 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a15016 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a15017 1
	return 0;
a15018 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
else
  ol_cv_pthread_lpthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a15020 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a15021 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a15023 4
int main(argc, argv)
	int argc;
	char **argv;
{
a15024 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15026 1
a15026 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a15027 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a15028 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a15029 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d15031 1
a15031 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a15032 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a15033 1
	return 0;
d15035 10
a15044 1
}
d15046 11
d15058 3
a15060 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
d15062 1
a15062 4
  ol_cv_pthread_lpthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15064 1
d15067 11
a15077 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15079 1
d15081 5
a15085 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
$as_echo "$ol_cv_pthread_lpthread" >&6; }

	if test $ol_cv_pthread_lpthread = yes ; then
		ol_link_pthreads="-lpthread"
		ol_link_threads=posix
	fi
d15088 3
a15090 6
		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
$as_echo_n "checking for pthread link with -lc_r... " >&6; }
if ${ol_cv_pthread_lc_r+:} false; then :
a15092 6

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
a15095 15
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15100 17
a15116 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15118 1
a15118 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d15120 1
a15120 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d15122 8
a15129 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d15131 5
a15135 10
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
d15137 5
a15141 3

	return 0;

d15146 9
a15154 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
else
  ol_cv_pthread_lc_r=no
d15157 7
a15163 1
    conftest$ac_exeext conftest.$ac_ext
d15165 10
a15174 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d15176 1
a15177 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d15179 26
a15204 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15206 7
a15212 57

int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
d15214 2
a15215 4
  ol_cv_pthread_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15219 26
a15244 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15246 2
d15249 7
a15255 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
$as_echo "$ol_cv_pthread_lc_r" >&6; }

	if test $ol_cv_pthread_lc_r = yes ; then
		ol_link_pthreads="-lc_r"
		ol_link_threads=posix
	fi
d15259 5
a15263 6
		# Pthread try link: -threads (ol_cv_pthread_threads)
if test "$ol_link_threads" = no ; then
	# try -threads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
$as_echo_n "checking for pthread link with -threads... " >&6; }
if ${ol_cv_pthread_threads+:} false; then :
d15266 31
a15297 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-threads $LIBS"
a15298 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a15299 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d15301 5
a15305 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15307 1
a15307 3
int
main ()
{
d15309 49
a15357 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15359 11
a15369 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a15370 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d15372 4
a15375 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d15377 5
a15381 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a15382 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a15383 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d15385 2
a15386 1
	return 0;
a15387 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_threads=yes
d15389 4
a15392 4
  ol_cv_pthread_threads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d15394 2
a15395 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15398 5
a15402 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15404 3
a15406 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d15408 3
a15410 55
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15412 18
a15430 3
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_threads=yes
d15432 1
a15432 1
  ol_cv_pthread_threads=no
d15434 2
a15435 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15437 5
a15441 4


		# restore the LIBS
		LIBS="$ol_LIBS"
a15443 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
$as_echo "$ol_cv_pthread_threads" >&6; }
a15444 4
	if test $ol_cv_pthread_threads = yes ; then
		ol_link_pthreads="-threads"
		ol_link_threads=posix
	fi
d15447 2
d15450 4
a15453 6
		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
d15456 2
a15457 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15460 5
a15464 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15466 1
a15466 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15470 1
a15470 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15475 9
a15483 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
d15486 6
a15491 5
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

a15492 72
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
d15494 1
a15494 1
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
d15496 2
a15497 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15499 5
d15505 4
a15508 20

		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }

	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
d15511 2
a15512 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15515 5
a15519 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15521 1
a15521 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15525 1
a15525 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15530 9
a15538 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc=no
d15541 6
a15546 34
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a15547 43
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
d15549 1
a15549 1
  ol_cv_pthread_lpthreads_lmach_lexc=no
d15551 2
a15552 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15554 5
d15560 1
a15560 3

		# restore the LIBS
		LIBS="$ol_LIBS"
a15562 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
a15563 4
	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc"
		ol_link_threads=posix
	fi
d15566 3
a15568 6
		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
d15571 2
a15572 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15575 5
a15579 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15581 1
a15581 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15585 1
a15585 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15590 9
a15598 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lexc=yes
else
  ol_cv_pthread_lpthreads_lexc=no
d15601 6
a15606 72
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;
a15607 5
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lexc=yes
d15609 1
a15609 1
  ol_cv_pthread_lpthreads_lexc=no
d15611 2
a15612 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15614 5
d15620 1
d15622 7
a15628 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15631 2
a15632 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
a15633 5
	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lexc"
		ol_link_threads=posix
	fi
fi
d15635 1
d15637 3
a15639 7
		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
if test "$ol_link_threads" = no ; then
	# try -lpthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
if ${ol_cv_pthread_lib_lpthreads+:} false; then :
  $as_echo_n "(cached) " >&6
d15641 1
d15643 1
a15643 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads $LIBS"
d15645 23
a15667 2
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15670 5
a15674 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15676 3
a15678 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d15680 3
a15682 1
	return (void *) (p == NULL);
d15684 26
d15711 7
d15721 43
d15765 2
a15766 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15768 12
a15779 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d15781 1
a15781 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d15783 1
a15783 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d15785 8
a15792 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d15794 1
a15794 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d15796 1
a15796 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a15797 1
	return 0;
d15799 6
a15804 11
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
else
  ol_cv_pthread_lib_lpthreads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d15809 2
d15812 2
a15813 11
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
a15814 2
	return (void *) (p == NULL);
}
d15816 1
a15817 50
int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;
d15819 2
a15821 1

d15823 2
a15824 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
d15826 1
a15826 9
  ol_cv_pthread_lib_lpthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"
d15829 1
a15829 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
a15830 4
	if test $ol_cv_pthread_lib_lpthreads = yes ; then
		ol_link_pthreads="-lpthreads"
		ol_link_threads=posix
	fi
d15832 2
d15835 2
a15836 15

		if test $ol_link_threads != no ; then
			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"

						save_CPPFLAGS="$CPPFLAGS"
			save_LIBS="$LIBS"
			LIBS="$LTHREAD_LIBS $LIBS"

												for ac_func in sched_yield pthread_yield thr_yield
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d15839 1
a15839 2
fi
done
d15841 2
d15844 4
a15847 11
			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test $ac_cv_func_thr_yield = no ; then
								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
$as_echo_n "checking for sched_yield in -lrt... " >&6; }
if ${ac_cv_lib_rt_sched_yield+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15856 1
a15856 1
char sched_yield ();
d15860 1
a15860 1
return sched_yield ();
d15866 1
a15866 3
  ac_cv_lib_rt_sched_yield=yes
else
  ac_cv_lib_rt_sched_yield=no
d15870 1
a15870 6
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
d15872 2
a15873 1
$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
d15875 2
a15876 4
					ac_cv_func_sched_yield=yes
else
  ac_cv_func_sched_yield=no
fi
d15878 1
a15878 7
			fi
			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test "$ac_cv_func_thr_yield" = no ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
			fi
d15880 6
a15885 7
						for ac_func in pthread_kill
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
if test "x$ac_cv_func_pthread_kill" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL 1
_ACEOF
a15886 2
fi
done
d15889 8
a15896 3
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
d15899 3
a15901 2

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15904 7
a15910 3
#include <pthread.h>
pthread_rwlock_t rwlock;

d15914 1
a15914 1
pthread_rwlock_destroy(&rwlock);
d15920 1
a15920 1
  ol_cv_func_pthread_rwlock_destroy=yes
d15922 1
a15922 1
  ol_cv_func_pthread_rwlock_destroy=no
d15926 1
a15926 1

d15928 6
a15933 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
d15935 1
a15935 1
$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
d15937 4
a15940 5
			fi

									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_detach+:} false; then :
d15943 3
a15945 2

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15948 5
a15952 3
#include <pthread.h>
#ifndef NULL
#define NULL (void*)0
d15954 1
a15954 1

d15958 1
a15958 1
pthread_detach(NULL);
d15964 1
a15964 1
  ol_cv_func_pthread_detach=yes
d15966 1
a15966 1
  ol_cv_func_pthread_detach=no
d15970 1
a15970 1

d15972 3
a15974 21
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
$as_echo "$ol_cv_func_pthread_detach" >&6; }

			if test $ol_cv_func_pthread_detach = no ; then
				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
			fi


$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h


						for ac_func in \
				pthread_setconcurrency \
				pthread_getconcurrency \
				thr_setconcurrency \
				thr_getconcurrency \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d15976 1
a15976 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d15979 1
a15979 12
fi
done



	for ac_func in pthread_kill_other_threads_np
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
_ACEOF
a15981 1
done
a15982 6
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
$as_echo_n "checking for LinuxThreads implementation... " >&6; }
if ${ol_cv_sys_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
a15983 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
$as_echo "$ol_cv_sys_linux_threads" >&6; }
d15985 2
d15988 3
a15990 5


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
$as_echo_n "checking for LinuxThreads consistency... " >&6; }
if ${ol_cv_linux_threads+:} false; then :
d15993 2
a15994 30

		if test $ol_cv_header_linux_threads = yes &&
		   test $ol_cv_sys_linux_threads = yes; then
			ol_cv_linux_threads=yes
		elif test $ol_cv_header_linux_threads = no &&
		     test $ol_cv_sys_linux_threads = no; then
			ol_cv_linux_threads=no
		else
			ol_cv_linux_threads=error
		fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
$as_echo "$ol_cv_linux_threads" >&6; }


			if test $ol_cv_linux_threads = error; then
				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
			fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
$as_echo_n "checking if pthread_create() works... " >&6; }
if ${ol_cv_pthread_create_works+:} false; then :
  $as_echo_n "(cached) " >&6
else

			if test "$cross_compiling" = yes; then :
  				ol_cv_pthread_create_works=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15997 5
a16001 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d16003 3
a16005 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d16007 3
a16009 55
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d16011 18
a16029 3
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create_works=yes
d16031 1
a16031 1
  ol_cv_pthread_create_works=no
d16033 2
a16034 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d16036 5
a16042 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
$as_echo "$ol_cv_pthread_create_works" >&6; }
d16044 3
a16046 16
			if test $ol_cv_pthread_create_works = no ; then
				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
			fi

			ol_replace_broken_yield=no

			if test $ol_replace_broken_yield = yes ; then

$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h

			fi

						if test x$ol_with_yielding_select = xauto ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
$as_echo_n "checking if select yields when using pthreads... " >&6; }
if ${ol_cv_pthread_select_yields+:} false; then :
d16049 2
a16050 5

				if test "$cross_compiling" = yes; then :
  ol_cv_pthread_select_yields=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16053 5
a16057 6
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#ifndef NULL
#define NULL (void*) 0
d16059 3
a16061 5

static int fildes[2];

static void *task(p)
	void *p;
d16063 3
a16065 59
	int i;
	struct timeval tv;

	fd_set rfds;

	tv.tv_sec=10;
	tv.tv_usec=0;

	FD_ZERO(&rfds);
	FD_SET(fildes[0], &rfds);

	/* we're not interested in any fds */
	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);

	if(i < 0) {
		perror("select");
		exit(10);
	}

	exit(0); /* if we exit here, the select blocked the whole process */
}

int main(argc, argv)
	int argc;
	char **argv;
{
	pthread_t t;

	/* create a pipe to select */
	if(pipe(&fildes[0])) {
		perror("select");
		exit(1);
	}

#ifdef HAVE_PTHREAD_SETCONCURRENCY
	(void) pthread_setconcurrency(2);
#else
#ifdef HAVE_THR_SETCONCURRENCY
	/* Set Solaris LWP concurrency to 2 */
	thr_setconcurrency(2);
#endif
#endif

#if HAVE_PTHREADS < 6
	pthread_create(&t, pthread_attr_default, task, NULL);
#else
	pthread_create(&t, NULL, task, NULL);
#endif

	/* make sure task runs first */
#ifdef HAVE_THR_YIELD
	thr_yield();
#elif defined( HAVE_SCHED_YIELD )
	sched_yield();
#elif defined( HAVE_PTHREAD_YIELD )
	pthread_yield();
#endif

	exit(2);
d16068 9
a16076 4
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_select_yields=no
else
  ol_cv_pthread_select_yields=yes
d16078 4
a16081 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d16083 2
d16086 2
d16089 2
a16090 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
$as_echo "$ol_cv_pthread_select_yields" >&6; }

				if test $ol_cv_pthread_select_yields = cross ; then
					as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
				fi

				if test $ol_cv_pthread_select_yields = yes ; then
					ol_with_yielding_select=yes
				fi
			fi

						CPPFLAGS="$save_CPPFLAGS"
			LIBS="$save_LIBS"
		else
			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
		fi
	fi

	if test $ol_with_threads = posix ; then
		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | mach)

		for ac_header in mach/cthreads.h cthreads.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

d16092 5
a16097 8
done

	if test $ac_cv_header_mach_cthreads_h = yes ; then
		ol_with_threads=found

				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
d16100 5
a16104 5

		if test $ol_link_threads = no ; then
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
$as_echo_n "checking for cthread_fork with -all_load... " >&6; }
if ${ol_cv_cthread_all_load+:} false; then :
d16107 4
d16112 7
a16118 5
								save_LIBS="$LIBS"
				LIBS="-all_load $LIBS"
				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <mach/cthreads.h>
d16122 1
a16122 3

					cthread_fork((void *)0, (void *)0);

d16128 1
a16128 1
  ol_cv_cthread_all_load=yes
d16130 1
a16130 1
  ol_cv_cthread_all_load=no
d16134 1
a16134 2
								LIBS="$save_LIBS"

d16136 6
a16141 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
$as_echo "$ol_cv_cthread_all_load" >&6; }
d16143 1
a16143 6
			if test $ol_cv_cthread_all_load = yes ; then
				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
				ol_link_threads=mach
				ol_with_threads=found
			fi
		fi
d16145 1
a16145 1
	elif test $ac_cv_header_cthreads_h = yes ; then
d16147 22
a16168 1
		ol_with_threads=found
a16169 5
				save_LIBS="$LIBS"
		LIBS="$LIBS -lthreads"
		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
d16172 1
a16172 23
		LIBS="$save_LIBS"

		if test $ol_link_threads = yes ; then
			LTHREAD_LIBS="-lthreads"
			ol_link_threads=mach
			ol_with_threads=found
		else
			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
		fi

	elif test $ol_with_threads = mach ; then
		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
	fi

	if test $ol_link_threads = mach ; then

$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h

	elif test $ol_with_threads = found ; then
		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
	fi
	;;
esac
a16173 1
case $ol_with_threads in auto | yes | pth)
d16175 1
a16175 1
	for ac_header in pth.h
d16177 3
a16179 2
  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
if test "x$ac_cv_header_pth_h" = xyes; then :
d16181 1
a16181 1
#define HAVE_PTH_H 1
a16184 1

d16188 3
a16190 4
	if test $ac_cv_header_pth_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
$as_echo_n "checking for pth_version in -lpth... " >&6; }
if ${ac_cv_lib_pth_pth_version+:} false; then :
d16193 1
a16193 3
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpth  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16195 4
a16199 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pth_version ();
d16203 1
a16203 1
return pth_version ();
d16208 2
a16209 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pth_pth_version=yes
d16211 1
a16211 12
  ac_cv_lib_pth_pth_version=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
  have_pth=yes
else
  have_pth=no
d16213 1
d16215 5
d16221 3
a16223 1
		if test $have_pth = yes ; then
d16225 4
a16228 1
$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
d16230 1
a16230 3
			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
			ol_link_threads=pth
			ol_with_threads=found
d16232 5
a16236 7
			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi
		fi
	fi
	;;
esac
a16237 9
case $ol_with_threads in auto | yes | lwp)

		for ac_header in thread.h synch.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d16239 2
d16242 2
d16245 1
d16247 1
a16247 1
done
d16249 4
a16252 6
	if test $ac_cv_header_thread_h = yes &&
	   test $ac_cv_header_synch_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
$as_echo_n "checking for thr_create in -lthread... " >&6; }
if ${ac_cv_lib_thread_thr_create+:} false; then :
  $as_echo_n "(cached) " >&6
d16254 14
a16267 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16269 1
a16269 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char thr_create ();
d16273 5
a16277 2
return thr_create ();
  ;
d16281 2
a16282 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_thread_thr_create=yes
d16284 4
a16287 1
  ac_cv_lib_thread_thr_create=no
d16289 1
a16289 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
a16290 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
  have_thr=yes
else
  have_thr=no
d16292 3
d16296 1
a16296 23

		if test $have_thr = yes ; then

$as_echo "#define HAVE_THR 1" >>confdefs.h

			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
			ol_link_threads=thr

			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi

						for ac_func in \
				thr_setconcurrency \
				thr_getconcurrency \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a16298 1
done
d16300 1
a16300 4
		fi
	fi

		for ac_header in lwp/lwp.h
d16302 2
a16303 2
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
d16305 1
a16305 1
#define HAVE_LWP_LWP_H 1
d16312 5
a16316 4
	if test $ac_cv_header_lwp_lwp_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
$as_echo_n "checking for lwp_create in -llwp... " >&6; }
if ${ac_cv_lib_lwp_lwp_create+:} false; then :
d16320 1
a16320 1
LIBS="-llwp  $LIBS"
d16330 1
a16330 1
char lwp_create ();
d16334 1
a16334 1
return lwp_create ();
d16340 1
a16340 1
  ac_cv_lib_lwp_lwp_create=yes
d16342 1
a16342 1
  ac_cv_lib_lwp_lwp_create=no
d16348 10
a16357 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
  have_lwp=yes
else
  have_lwp=no
d16361 14
a16374 1
		if test $have_lwp = yes ; then
d16376 1
a16376 1
$as_echo "#define HAVE_LWP 1" >>confdefs.h
a16377 2
			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
			ol_link_threads=lwp
d16379 6
a16384 7
			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=no
			fi
		fi
	fi
	;;
esac
a16385 1
if test $ol_with_yielding_select = yes ; then
d16387 5
a16391 1
$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
d16395 1
a16395 2
if test $ol_with_threads = manual ; then
		ol_link_threads=yes
d16397 1
a16397 4
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}

	for ac_header in pthread.h sched.h
d16410 1
a16410 1
	for ac_func in sched_yield pthread_yield
d16412 3
a16414 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d16416 1
a16416 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16420 1
d16423 7
a16429 9

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
a16430 8
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
fi
rm -f conftest*

a16432 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then
d16434 1
a16434 1
$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
a16435 1
	fi
d16437 3
a16439 2

	for ac_header in mach/cthreads.h
d16441 2
a16442 2
  ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
d16444 1
a16444 1
#define HAVE_MACH_CTHREADS_H 1
d16451 5
a16455 1
	for ac_header in lwp/lwp.h
d16457 2
a16458 2
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
d16460 1
a16460 1
#define HAVE_LWP_LWP_H 1
d16467 5
a16471 1
	for ac_header in thread.h synch.h
d16484 34
d16520 1
a16520 1
if test $ol_link_threads != no && test $ol_link_threads != nt ; then
d16522 7
a16528 1
$as_echo "#define REENTRANT 1" >>confdefs.h
d16530 1
d16532 1
a16532 1
$as_echo "#define _REENTRANT 1" >>confdefs.h
d16535 13
a16547 1
$as_echo "#define THREAD_SAFE 1" >>confdefs.h
d16549 1
d16551 1
a16551 1
$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
d16553 11
d16565 4
a16568 1
$as_echo "#define THREADSAFE 1" >>confdefs.h
d16570 8
d16579 5
a16583 1
$as_echo "#define _THREADSAFE 1" >>confdefs.h
d16585 1
d16587 1
a16587 1
$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
d16589 1
d16591 5
a16595 5
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
$as_echo_n "checking for thread specific errno... " >&6; }
if ${ol_cv_errno_thread_specific+:} false; then :
  $as_echo_n "(cached) " >&6
else
d16597 4
a16600 10
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <errno.h>
int
main ()
{
errno = 0;
  ;
  return 0;
}
a16601 7
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_errno_thread_specific=yes
else
  ol_cv_errno_thread_specific=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
a16603 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
$as_echo "$ol_cv_errno_thread_specific" >&6; }
d16605 1
a16605 5
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
$as_echo_n "checking for thread specific h_errno... " >&6; }
if ${ol_cv_h_errno_thread_specific+:} false; then :
  $as_echo_n "(cached) " >&6
else
d16607 6
a16612 10
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netdb.h>
int
main ()
{
h_errno = 0;
  ;
  return 0;
}
a16613 7
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_h_errno_thread_specific=yes
else
  ol_cv_h_errno_thread_specific=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
a16615 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
$as_echo "$ol_cv_h_errno_thread_specific" >&6; }
d16617 1
a16617 5
	if test $ol_cv_errno_thread_specific != yes ||
	   test $ol_cv_h_errno_thread_specific != yes ; then
		LIBS="$LTHREAD_LIBS $LIBS"
		LTHREAD_LIBS=""
	fi
d16619 6
a16624 1
fi
d16626 5
a16630 4
if test $ol_link_threads = no ; then
	if test $ol_with_threads = yes ; then
		as_fn_error $? "no suitable thread support" "$LINENO" 5
	fi
d16632 1
a16632 5
	if test $ol_with_threads = auto ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
		ol_with_threads=no
	fi
d16634 1
d16636 8
a16643 1
$as_echo "#define NO_THREADS 1" >>confdefs.h
a16644 4
	LTHREAD_LIBS=""
	BUILD_THREAD=no
else
	BUILD_THREAD=yes
d16647 16
a16662 1
if test $ol_link_threads != no ; then
d16664 5
a16668 1
$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
d16672 1
a16672 4
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
case "$ol_with_threads" in
 no)
    ol_pthread_ok=no
d16674 21
a16694 5
    ;;
 *)
    ol_found_pthreads=yes
    ;;
esac
d16696 2
a16697 17
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    case "$ol_found_pthreads" in
     yes)
	saved_LIBS="$LIBS"
	LIBS="$LTHREAD_LIBS $LIBS"
	saved_CFLAGS="$CFLAGS"
	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
	for ac_func in sem_timedwait
do :
  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
if test "x$ac_cv_func_sem_timedwait" = xyes; then :
d16699 1
a16699 1
#define HAVE_SEM_TIMEDWAIT 1
d16703 1
d16706 5
a16710 19
	LIBS="$saved_LIBS"
	{ saved_LIBS=; unset saved_LIBS;}
	CFLAGS="$saved_CFLAGS"
	{ saved_CFLAGS=; unset saved_CFLAGS;}
	case "$ac_cv_func_sem_timedwait" in
	 yes)
	    PTHREAD_LIBS="$LTHREAD_LIBS"
	    have_pthreads=yes
	    # Bug 2332: With GCC we need to force a reference to libgcc_s
	    # (if libgcc_s exists) or the combination of
	    # threads + setuid + mlockall does not work on linux because
	    # thread cancellation fails to load libgcc_s with dlopen().
	    # We have to pass this all as linker options to avoid argument
	    # reordering by libtool.
	    case "$GCC$with_gnu_ld" in
	    yesyes)
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lgcc_s" >&5
$as_echo_n "checking for exit in -lgcc_s... " >&6; }
if ${ac_cv_lib_gcc_s_exit+:} false; then :
d16713 1
a16713 3
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgcc_s  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16716 11
a16726 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char exit ();
int
main ()
{
return exit ();
  ;
  return 0;
}
d16728 3
a16730 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gcc_s_exit=yes
d16732 2
a16733 10
  ac_cv_lib_gcc_s_exit=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_exit" >&5
$as_echo "$ac_cv_lib_gcc_s_exit" >&6; }
if test "x$ac_cv_lib_gcc_s_exit" = xyes; then :
  PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed"
d16735 1
a16736 5
		;;
	    esac
	esac
    esac
esac
d16738 4
a16741 1
case "$have_pthreads" in
a16742 17
    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
    saved_LIBS="$LIBS"
    LIBS="$LTHREAD_LIBS $LIBS"
    saved_CFLAGS="$CFLAGS"
    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
$as_echo_n "checking size of pthread_t... " >&6; }
if ${ac_cv_sizeof_pthread_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
	    $ac_includes_default
	    #include <pthread.h>
d16744 3
d16748 7
a16754 1
"; then :
a16755 9
else
  if test "$ac_cv_type_pthread_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (pthread_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_pthread_t=0
   fi
d16758 1
a16758 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
d16760 2
d16763 1
d16765 8
a16772 2
cat >>confdefs.h <<_ACEOF
#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
d16775 3
d16779 8
a16786 1
    LIBISC_PTHREADS_NOTHREADS=pthreads
d16788 1
a16788 1
$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
d16790 1
a16790 16
    #
    # We'd like to use sigwait() too
    #
    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
if test "x$ac_cv_func_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
$as_echo_n "checking for sigwait in -lc... " >&6; }
if ${ac_cv_lib_c_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16792 10
a16801 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
d16803 1
a16803 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_sigwait=yes
else
  ac_cv_lib_c_sigwait=no
a16804 18
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
$as_echo "$ac_cv_lib_c_sigwait" >&6; }
if test "x$ac_cv_lib_c_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
$as_echo_n "checking for sigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16806 11
a16816 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
d16818 1
a16818 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread_sigwait=yes
else
  ac_cv_lib_pthread_sigwait=no
a16819 18
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread__Psigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16821 9
a16829 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char _Psigwait ();
int
main ()
{
return _Psigwait ();
  ;
  return 0;
}
d16831 1
a16831 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread__Psigwait=yes
else
  ac_cv_lib_pthread__Psigwait=no
a16832 10
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
  have_sigwait=yes
else
  have_sigwait=no
d16834 1
a16834 1
fi
d16836 9
d16848 1
d16850 11
a16860 2
fi

d16864 1
a16864 11
    case "$host:$have_sigwait" in
     *-freebsd*:no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
$as_echo_n "checking for sigwait in -lc_r... " >&6; }
if ${ac_cv_lib_c_r_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc_r  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16866 10
a16875 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
a16876 13
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_r_sigwait=yes
else
  ac_cv_lib_c_r_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
  have_sigwait=yes
d16880 1
a16880 4
    esac
    case "$have_sigwait" in
     yes)
	ac_cv_func_sigwait=yes
d16882 4
a16885 5
$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h

    esac

    for ac_func in pthread_attr_getstacksize
d16887 3
a16889 2
  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
d16891 1
a16891 1
#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
d16895 1
d16898 6
a16903 1
    for ac_func in pthread_attr_setstacksize sysconf
d16905 3
a16907 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d16909 1
a16909 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16913 1
d16916 10
d16927 1
a16927 4
    case "$host" in
     *-freebsd5.[012]|*-freebsd5.[012].*)
	;;
     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
d16929 1
a16929 1
$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
d16931 11
a16941 2
	;;
     *-bsdi3.*|*-bsdi4.0*)
d16943 1
a16943 1
$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
d16945 1
a16945 4
	;;
     *-linux*)

$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
d16947 1
a16947 5
	;;
     *-solaris*)
	$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

	for ac_func in pthread_setconcurrency
d16949 3
a16951 2
  ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
d16953 1
a16953 1
#define HAVE_PTHREAD_SETCONCURRENCY 1
d16957 1
d16960 8
a16967 2
	case "$ac_cv_func_pthread_setconcurrency" in
	 yes)
d16969 1
a16969 1
$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
d16971 1
a16971 3
	esac
	;;
     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
d16973 1
a16973 19
$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h

	;;
    esac
    hack_shutup_pthreadonceinit=no
    case "$host" in
     *-aix5.[123].*)
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.[89])
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.1[0-9])
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16976 10
a16985 1
			#include <pthread.h>
d16987 12
a16998 3
int
main ()
{
a16999 2
		        static pthread_once_t once_test =
						PTHREAD_ONCE_INIT;
d17001 4
a17004 4

  ;
  return 0;
}
a17005 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_braces_around_pthread_once_init=no
else
  ntp_cv_braces_around_pthread_once_init=yes
a17007 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d17009 1
a17009 13
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
	case "$ntp_cv_braces_around_pthread_once_init" in
	 yes)
	    hack_shutup_pthreadonceinit=yes
	esac
	;;
    esac
    case "$hack_shutup_pthreadonceinit" in
     yes)

$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
a17010 10
    esac
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
    CFLAGS="$saved_CFLAGS"
    { saved_CFLAGS=; unset saved_CFLAGS;}
    ;;
 *)
    LIBISC_PTHREADS_NOTHREADS=nothreads
    ;;
esac
a17011 6
 if test "$have_pthreads" != "no"; then
  PTHREADS_TRUE=
  PTHREADS_FALSE='#'
else
  PTHREADS_TRUE='#'
  PTHREADS_FALSE=
d17013 1
d17015 8
d17024 1
d17026 1
d17028 3
a17030 8



case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
 no:yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
if ${ntp_cv_vsnprintf_percent_m+:} false; then :
a17032 4
  if test "$cross_compiling" = yes; then :
  ntp_cv_vsnprintf_percent_m=no

else
d17035 3
a17037 29

		    #include <stdarg.h>
		    #include <errno.h>
		    #include <stdio.h>
		    #include <string.h>

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    );

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    )
		    {
			    va_list	ap;
			    int		rc;

			    va_start(ap, fmt);
			    rc = vsnprintf(dst, sz, fmt, ap);
			    va_end(ap);

			    return rc;
		    }
d17042 2
a17043 12

		    char	sbuf[512];
		    char	pbuf[512];
		    int		slen;

		    strcpy(sbuf, strerror(ENOENT));
		    errno = ENOENT;
		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
					  "wrong");
		    return strcmp(sbuf, pbuf);


d17048 2
a17049 2
if ac_fn_c_try_run "$LINENO"; then :
  ntp_cv_vsnprintf_percent_m=yes
d17051 1
a17051 1
  ntp_cv_vsnprintf_percent_m=no
d17053 1
a17053 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d17055 3
d17059 1
a17059 30

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
    case "$ntp_cv_vsnprintf_percent_m" in
     yes)

$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h

    esac
esac

for ac_header in sys/clockctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_CLOCKCTL_H 1
_ACEOF

fi

done


# Check whether --enable-clockctl was given.
if test "${enable_clockctl+set}" = set; then :
  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
else
  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
d17063 3
a17065 8

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
$as_echo "$ntp_use_dev_clockctl" >&6; }


for ac_header in sys/capability.h sys/prctl.h
a17077 13

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }

case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
 yesyes)
    case "$host" in
     mips-sgi-irix*)
	ntp_have_linuxcaps=no
	;;
     *) ntp_have_linuxcaps=yes
	;;
    esac
d17079 9
a17087 8
 *)
    ntp_have_linuxcaps=no
    ;;
esac

# Check whether --enable-linuxcaps was given.
if test "${enable_linuxcaps+set}" = set; then :
  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
d17091 1
a17092 9
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
$as_echo "$ntp_have_linuxcaps" >&6; }

case "$ntp_have_linuxcaps" in
 yes)

$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h

    LIBS="$LIBS -lcap"
d17096 3
a17098 2

for ac_header in priv.h
d17100 3
a17102 2
  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
if test "x$ac_cv_header_priv_h" = xyes; then :
d17104 1
a17104 1
#define HAVE_PRIV_H 1
a17107 1

d17110 1
a17110 18

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }

case "$ac_cv_header_priv_h" in
 yes)
    case "$host" in
     *-solaris*)
	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
if test "x$ac_cv_func_setppriv" = xyes; then :
  ntp_have_solarisprivs=yes
else
  ntp_have_solarisprivs=no

fi

	;;
    esac
d17112 1
a17112 10

# Check whether --enable-solarisprivs was given.
if test "${enable_solarisprivs+set}" = set; then :
  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval

fi



case "$ntp_have_solarisprivs" in
d17114 5
a17118 20

$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
$as_echo "$ntp_have_solarisprivs" >&6; }

case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
 *yes*)

$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h

esac

case "$host" in
 *-*-darwin*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
$as_echo_n "checking for library containing res_9_init... " >&6; }
if ${ac_cv_search_res_9_init+:} false; then :
d17121 2
a17122 1
  ac_func_search_save_LIBS=$LIBS
d17132 1
a17132 1
char res_9_init ();
d17136 1
a17136 1
return res_9_init ();
d17141 4
a17144 9
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_9_init=$ac_res
d17147 2
a17148 3
    conftest$ac_exeext
  if ${ac_cv_search_res_9_init+:} false; then :
  break
d17150 6
a17155 2
done
if ${ac_cv_search_res_9_init+:} false; then :
d17157 1
a17157 11
else
  ac_cv_search_res_9_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
$as_echo "$ac_cv_search_res_9_init" >&6; }
ac_res=$ac_cv_search_res_9_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17160 3
a17162 5

    ;;
 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
$as_echo_n "checking for library containing res_init... " >&6; }
if ${ac_cv_search_res_init+:} false; then :
d17165 2
a17166 1
  ac_func_search_save_LIBS=$LIBS
d17170 1
a17170 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char res_init ();
d17174 1
a17174 1
return res_init ();
d17179 4
a17182 9
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_init=$ac_res
d17185 2
a17186 44
    conftest$ac_exeext
  if ${ac_cv_search_res_init+:} false; then :
  break
fi
done
if ${ac_cv_search_res_init+:} false; then :

else
  ac_cv_search_res_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
$as_echo "$ac_cv_search_res_init" >&6; }
ac_res=$ac_cv_search_res_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

    ;;
esac
for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

d17188 3
a17190 18

done


#HMS: Why do we do this check so "early"?
for ac_func in res_init
do :
  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
if test "x$ac_cv_func_res_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RES_INIT 1
_ACEOF

else
  for ac_func in __res_init
do :
  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
if test "x$ac_cv_func___res_init" = xyes; then :
d17192 1
a17192 35
#define HAVE___RES_INIT 1
_ACEOF

fi
done

fi
done


# We also need -lsocket, but we have tested for that already.
ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
if test "x$ac_cv_func_inet_ntop" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
if test "x$ac_cv_func_inet_pton" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h

fi


ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
d17195 1
d17197 4
a17200 28
fi
ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
if test "x$ac_cv_type_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
if test "x$ac_cv_type_u_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT32 1
_ACEOF


fi




case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
$as_echo_n "checking for int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_int32_with_dns+:} false; then :
d17203 3
a17205 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17208 7
a17214 5
		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>

d17218 1
a17218 4

		    size_t cb = sizeof(int32);


d17223 2
a17224 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_type_int32_with_dns=yes
d17226 1
a17226 2
  ntp_cv_type_int32_with_dns=no

d17228 3
a17230 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d17232 6
a17237 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
$as_echo "$ntp_cv_type_int32_with_dns" >&6; }
    case "$ntp_cv_type_int32_with_dns" in
     yes)
d17239 1
a17239 1
$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
d17241 1
a17241 2
    esac
esac
d17243 3
a17245 5
case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
$as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_u_int32_with_dns+:} false; then :
d17248 3
a17250 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17253 7
a17259 5
		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>

d17263 1
a17263 4

		    size_t cb = sizeof(u_int32);


d17268 2
a17269 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_type_u_int32_with_dns=yes
d17271 1
a17271 2
  ntp_cv_type_u_int32_with_dns=no

d17273 3
a17275 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d17277 6
a17282 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
    case "$ntp_cv_type_u_int32_with_dns" in
     yes)
d17284 1
a17284 1
$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
d17286 1
a17286 2
    esac
esac
d17288 1
a17288 1
for ac_header in sys/timepps.h
d17290 3
a17292 11
  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
	#ifdef HAVE_SYS_TIME_H
	# include <sys/time.h>
	#endif
	#ifdef HAVE_ERRNO_H
	# include <errno.h>
	#endif


"
if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
d17294 1
a17294 1
#define HAVE_SYS_TIMEPPS_H 1
d17301 4
d17306 4
a17309 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
$as_echo_n "checking for struct timespec... " >&6; }
if ${ntp_cv_struct_timespec+:} false; then :
d17315 1
a17315 10
		#include <sys/time.h>
		/* Under SunOS, timespec is in sys/timepps.h,
		   which needs errno.h and FRAC */
		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif
		#ifdef HAVE_SYS_TIMEPPS_H
		# define FRAC 4294967296
		# include <sys/timepps.h>
		#endif
d17321 2
a17322 1
		struct timespec n;
d17328 1
d17331 1
a17331 3
  ntp_cv_struct_timespec=yes
else
  ntp_cv_struct_timespec=no
d17337 4
a17340 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
$as_echo "$ntp_cv_struct_timespec" >&6; }
case "$ntp_cv_struct_timespec" in
 yes)
d17342 1
a17342 1
$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
d17344 2
d17348 14
a17361 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
$as_echo_n "checking for struct ntptimeval... " >&6; }
if ${ntp_cv_struct_ntptimeval+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d17363 1
a17363 2
		#include <sys/time.h>
		#include <sys/timex.h>
d17365 1
a17365 3
int
main ()
{
a17366 1
		struct ntptimeval n;
d17368 5
d17374 4
a17377 3
  ;
  return 0;
}
a17378 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ntptimeval=yes
else
  ntp_cv_struct_ntptimeval=no
a17380 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d17382 1
a17382 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
case "$ntp_cv_struct_ntptimeval" in
 yes)
a17383 1
$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
d17385 1
a17385 3
esac

for ac_header in md5.h
d17387 6
a17392 5
  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
	#ifdef HAVE_SYS_TYPES_H
	# include <sys/types.h>
	#endif

d17395 1
a17395 1
if test "x$ac_cv_header_md5_h" = xyes; then :
d17397 1
a17397 1
#define HAVE_MD5_H 1
d17405 5
a17409 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
$as_echo_n "checking for library containing MD5Init... " >&6; }
if ${ac_cv_search_MD5Init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d17411 4
a17414 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char MD5Init ();
int
main ()
{
return MD5Init ();
  ;
  return 0;
}
d17416 1
a17416 14
for ac_lib in '' md5 md; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_MD5Init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_MD5Init+:} false; then :
  break
d17418 1
a17419 1
if ${ac_cv_search_MD5Init+:} false; then :
a17420 11
else
  ac_cv_search_MD5Init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
$as_echo "$ac_cv_search_MD5Init" >&6; }
ac_res=$ac_cv_search_MD5Init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17422 11
a17432 1
fi
d17434 2
a17435 5
for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d17437 1
a17437 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d17441 1
d17445 3
a17447 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
$as_echo_n "checking for SIGIO... " >&6; }
if ${ntp_cv_hdr_def_sigio+:} false; then :
a17452 1
	    #include <signal.h>
d17454 6
a17459 3
	    #ifndef SIGIO
	    # error
	    #endif
d17461 4
d17466 2
a17467 4
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_hdr_def_sigio=yes
else
  ntp_cv_hdr_def_sigio=no
d17470 1
a17470 1
rm -f conftest.err conftest.i conftest.$ac_ext
d17473 3
a17475 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
$as_echo "$ntp_cv_hdr_def_sigio" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
$as_echo_n "checking if we want to use SIGIO... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigio" in
a17476 39
    ans=yes
    case "$host" in
     alpha*-dec-osf4*|alpha*-dec-osf5*)
	ans=no
	;;
     *-convex-*)
	ans=no
	;;
     *-dec-*)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-univel-sysv*)
	ans=no
	;;
     *-*-irix6*)
	ans=no
	;;
     *-*-freebsd*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     m68k-*-mint*)
	ans=no
	;;
    esac
d17478 1
a17478 3
esac
case "$ans" in
 yes)
d17480 1
a17480 1
$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
d17482 1
a17483 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d17485 3
a17487 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
$as_echo_n "checking for SIGPOLL... " >&6; }
if ${ntp_cv_hdr_def_sigpoll+:} false; then :
d17493 27
a17519 1
	    #include <signal.h>
d17521 24
a17544 3
	    #ifndef SIGPOLL
	    # error
	    #endif
d17546 3
d17550 2
a17551 2
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_hdr_def_sigpoll=yes
d17553 7
a17559 1
  ntp_cv_hdr_def_sigpoll=no
d17561 1
a17561 2
fi
rm -f conftest.err conftest.i conftest.$ac_ext
a17563 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
d17565 13
a17577 56
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-solaris*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)
d17579 2
a17580 1
$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
d17582 29
a17610 57
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)
d17612 8
a17619 1
$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
d17621 7
a17627 10
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17629 2
a17630 2

		#include <sys/time.h>
d17635 3
a17637 4

		gettimeofday(0, 0);
		settimeofday(0, 0);

d17644 1
a17644 1
  ntp_cv_func_Xettimeofday_nargs=2
d17646 3
a17648 2
  ntp_cv_func_Xettimeofday_nargs=1

d17651 6
d17658 6
a17663 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
case "$ntp_cv_func_Xettimeofday_nargs" in
 1)
d17665 9
a17673 1
$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
d17675 6
a17680 1
esac
d17682 3
a17684 6
for ac_func in settimeofday
do :
  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
if test "x$ac_cv_func_settimeofday" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETTIMEOFDAY 1
d17686 2
a17687 1

d17689 3
a17691 5

    case "$host" in
     *-*-mpeix*) ac_cv_func_settimeofday=yes
    esac

d17693 23
a17715 1
done
d17717 20
a17736 50

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
ntp_warning='GRONK'
ans=none
case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
 yes*)
    ntp_warning=''
    ans='clock_settime()'
    ;;
 noyes*)
    ntp_warning='But clock_settime() would be better (if we had it)'
    ans='settimeofday()'
    ;;
 nonoyes)
    ntp_warning='Which is the worst of the three'
    ans='stime()'
    ;;
 *)
    case "$build" in
     $host)
	ntp_warning='Which leaves us with nothing to use!'
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ntp_warning" in
 '')
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
    ;;
esac


LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
LIBS=$__LIBS
{ __LIBS=; unset __LIBS;}



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
$as_echo_n "checking for deprecated --with-arlib... " >&6; }

# Check whether --with-arlib was given.
if test "${with_arlib+set}" = set; then :
  withval=$with_arlib; ans=$withval
else
  ans=no
d17738 1
a17738 19

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&5
$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&2;}
    ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&6
d17740 6
a17745 17
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d17747 8
a17754 10
fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d17756 6
a17761 11

  test -n "$AWK" && break
done

{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
d17763 1
a17763 13
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
d17765 2
a17766 8
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
d17769 11
d17781 1
d17783 5
d17789 3
a17791 15

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
$as_echo_n "checking for library containing strerror... " >&6; }
if ${ac_cv_search_strerror+:} false; then :
d17794 1
a17794 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17796 2
a17798 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strerror ();
d17802 1
a17802 1
return strerror ();
d17807 2
a17808 18
for ac_lib in '' cposix; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_strerror=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_strerror+:} false; then :
  break
fi
done
if ${ac_cv_search_strerror+:} false; then :

d17810 1
a17810 1
  ac_cv_search_strerror=no
d17812 1
a17812 2
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
d17814 2
a17815 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
$as_echo "$ac_cv_search_strerror" >&6; }
ac_res=$ac_cv_search_strerror
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17817 3
a17819 1
fi
d17822 2
a17824 6
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_PERL+:} false; then :
  $as_echo_n "(cached) " >&6
a17825 19
  case $PATH_PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d17827 4
a17830 2
  ;;
esac
d17832 4
a17835 4
PATH_PERL=$ac_cv_path_PATH_PERL
if test -n "$PATH_PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
$as_echo "$PATH_PERL" >&6; }
d17837 5
a17841 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d17844 6
a17850 27
{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
# Extract the first word of "test", so it can be a program name with args.
set dummy test; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_TEST+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_TEST in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a17851 10
  ;;
esac
fi
PATH_TEST=$ac_cv_path_PATH_TEST
if test -n "$PATH_TEST"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
$as_echo "$PATH_TEST" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d17853 6
d17861 3
a17863 2
{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
d17865 3
a17868 5
# Check whether --with-net-snmp-config was given.
if test "${with_net_snmp_config+set}" = set; then :
  withval=$with_net_snmp_config; ans=$withval
else
  ans=yes
d17872 7
a17878 28
case "$ans" in
 no)
    ;;
 yes)
    ans=net-snmp-config
    ;;
 /*)
    ;;
 */*)
    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
    ;;
 *)
    ;;
esac
PROG_NET_SNMP_CONFIG=$ans
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
case "$PROG_NET_SNMP_CONFIG" in
 no) ;;
 /*)
    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
    ;;
 *)
    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
d17881 1
a17881 19
  case $PATH_NET_SNMP_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d17883 9
a17891 2
  ;;
esac
d17893 1
a17893 7
PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
if test -n "$PATH_NET_SNMP_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d17895 9
a17905 5
    { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
a17906 5
case "$host" in
 *-*-vxworks*)
    ac_link="$ac_link $VX_KERNEL"
    ;;
esac
d17908 3
a17910 4
# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
$as_echo_n "checking for library containing openlog... " >&6; }
if ${ac_cv_search_openlog+:} false; then :
d17913 1
a17913 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17915 2
a17917 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char openlog ();
d17921 3
a17923 1
return openlog ();
d17928 6
a17933 9
for ac_lib in '' gen syslog; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_openlog=$ac_res
d17935 6
a17940 4
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_openlog+:} false; then :
  break
a17941 2
done
if ${ac_cv_search_openlog+:} false; then :
d17943 5
d17949 10
a17958 10
  ac_cv_search_openlog=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
$as_echo "$ac_cv_search_openlog" >&6; }
ac_res=$ac_cv_search_openlog
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17960 1
a17960 1
fi
a17961 1
# XXX library list will be in ac_cv_search_openlog
d17963 6
a17968 7
# LIBSECCOMP is off by default -- needs testing with all the features
# Please send bug reports to loganaden@@gmail.com
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
# Check whether --enable-libseccomp was given.
if test "${enable_libseccomp+set}" = set; then :
  enableval=$enable_libseccomp; ntp_ok=$enableval
d17970 1
a17970 1
  ntp_ok=no
d17973 1
d17975 4
a17978 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok" in
d17980 8
a17987 3
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
$as_echo_n "checking for library containing seccomp_init... " >&6; }
if ${ac_cv_search_seccomp_init+:} false; then :
d17990 1
a17990 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17993 4
a17996 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char seccomp_init ();
d18000 4
a18003 1
return seccomp_init ();
d18008 5
a18012 9
for ac_lib in '' seccomp; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_seccomp_init=$ac_res
d18014 1
a18014 7
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_seccomp_init+:} false; then :
  break
fi
done
if ${ac_cv_search_seccomp_init+:} false; then :
a18015 2
else
  ac_cv_search_seccomp_init=no
d18017 4
a18020 8
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
$as_echo "$ac_cv_search_seccomp_init" >&6; }
ac_res=$ac_cv_search_seccomp_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18022 1
a18022 1
$as_echo "#define LIBSECCOMP 1" >>confdefs.h
d18024 1
d18026 4
a18029 7
fi

    if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
a18030 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d18032 9
a18040 5
	#include <stdio.h>
	#include <stdlib.h>
	#include <errno.h>
	#include <sys/prctl.h>
	#include <linux/seccomp.h>
a18041 28
	int main(void)
	{
		int ret;
		ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
		if (ret < 0) {
			switch (errno) {
			case ENOSYS:
				return 1;
			case EINVAL:
				return 1;
			default:
				return 1;
			}
		}
		ret =
		prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
		if (ret < 0) {
			switch (errno) {
			case EINVAL:
				return 1;
			case EFAULT:
				return 0;
			default:
				return 1;
		}
	}
return 1;
}
d18043 3
d18047 2
a18049 1
if ac_fn_c_try_run "$LINENO"; then :
d18051 25
a18075 1
$as_echo "#define KERN_SECCOMP 1" >>confdefs.h
d18079 6
a18084 3
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a18085 1
    ;;
d18088 5
a18092 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
$as_echo_n "checking for facilitynames in syslog.h... " >&6; }
if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
d18095 1
a18095 2

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18098 4
a18101 3
#define SYSLOG_NAMES
#include <stdlib.h>
#include <syslog.h>
d18106 4
a18109 1
 void *fnames; fnames = facilitynames;
d18115 1
a18115 1
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
d18117 2
a18118 1
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
d18121 1
d18123 2
a18124 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
 yes)
d18126 3
a18128 27
$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h

    ;;
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
    ;;
 cross)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
    ;;
esac



case "$host" in
 *-*-*linux*) ;;
 *-*-osf4*) ;;
 *-*-osf5*) ;;
 *)
    # HMS: Make sure we check for -lrt for clock_* before this...
    case "$ac_cv_search_clock_gettime" in
     '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
$as_echo_n "checking for library containing sched_setscheduler... " >&6; }
if ${ac_cv_search_sched_setscheduler+:} false; then :
d18131 1
a18131 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18134 4
a18137 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_setscheduler ();
d18141 4
a18144 1
return sched_setscheduler ();
d18149 5
a18153 9
for ac_lib in '' rt posix4; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_sched_setscheduler=$ac_res
d18155 1
a18155 7
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_sched_setscheduler+:} false; then :
  break
fi
done
if ${ac_cv_search_sched_setscheduler+:} false; then :
a18156 2
else
  ac_cv_search_sched_setscheduler=no
d18158 2
a18159 8
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
$as_echo "$ac_cv_search_sched_setscheduler" >&6; }
ac_res=$ac_cv_search_sched_setscheduler
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18161 2
a18162 1
fi
d18164 1
a18164 2
    ;;
esac
d18166 2
a18167 7
for ac_header in bstring.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
if test "x$ac_cv_header_bstring_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_BSTRING_H 1
_ACEOF
d18169 1
a18169 1
fi
d18171 2
a18172 1
done
d18174 3
a18176 5
ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
if test "x$ac_cv_header_dns_sd_h" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
$as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
if ${ac_cv_search_DNSServiceRegister+:} false; then :
d18179 1
a18179 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18182 2
a18183 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char DNSServiceRegister ();
d18187 5
a18191 1
return DNSServiceRegister ();
d18196 4
a18199 17
for ac_lib in '' dns_sd; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_DNSServiceRegister=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_DNSServiceRegister+:} false; then :
  break
fi
done
if ${ac_cv_search_DNSServiceRegister+:} false; then :
a18200 2
else
  ac_cv_search_DNSServiceRegister=no
d18202 1
a18202 11
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
$as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
ac_res=$ac_cv_search_DNSServiceRegister
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h

d18205 4
d18210 1
d18212 1
a18212 1
fi
d18214 7
d18222 12
a18233 8
for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18235 3
a18237 1
fi
d18239 2
a18240 1
done
d18243 3
a18245 7
for ac_header in memory.h netdb.h poll.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18247 4
d18253 1
a18253 11

done

for ac_header in sgtty.h stdlib.h string.h termio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18256 4
d18261 1
a18261 1
done
d18263 1
a18263 8
for ac_header in termios.h timepps.h timex.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18265 7
a18271 1
fi
d18273 9
a18281 1
done
d18283 3
d18287 1
a18287 11
case "$host" in
 *-*-aix*)
    for ac_header in utmpx.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
if test "x$ac_cv_header_utmpx_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMPX_H 1
_ACEOF

fi
a18288 1
done
d18290 3
a18292 10
    case "$ac_cv_header_utmpx_h" in
     yes)
	;;
     *)
	for ac_header in utmp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
if test "x$ac_cv_header_utmp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMP_H 1
d18294 4
d18300 1
a18300 15

done

	;;
    esac
    ;;
 *)
    for ac_header in utmp.h utmpx.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18303 4
d18308 1
a18308 1
done
a18309 1
    ;;
d18312 17
a18328 17
#
# On Suns only (so far) getpass() truncates the typed password to 8
# characters, but getpassphrase() allows up to 257.  Most systems'
# getpass() does not truncate, at least not so as to affect ntpq and
# ntpdc password prompts.
#
# So check for getpassphrase(), but only on Sun operating systems.
#
case "$host" in
 *-*-sunos*|*-*-solaris*)
    for ac_func in getpassphrase
do :
  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
if test "x$ac_cv_func_getpassphrase" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETPASSPHRASE 1
_ACEOF
d18330 3
a18332 2
fi
done
d18334 2
a18335 1
esac
d18338 3
a18340 6
for ac_header in net/if6.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
if test "x$ac_cv_header_net_if6_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF6_H 1
d18342 4
d18348 1
d18350 3
a18352 1
done
d18354 9
a18362 6
for ac_header in net/route.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <net/if.h>
d18364 9
a18372 5
"
if test "x$ac_cv_header_net_route_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_ROUTE_H 1
_ACEOF
d18374 3
a18376 1
fi
d18378 2
a18379 1
done
d18382 3
a18384 6
for ac_header in netinfo/ni.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NETINFO_NI_H 1
d18386 7
d18395 4
d18400 1
a18400 1
done
d18402 2
a18403 2
case "$ac_cv_header_netinfo_ni_h" in
 yes)
a18404 1
$as_echo "#define HAVE_NETINFO 1" >>confdefs.h
a18405 9
esac
for ac_header in sun/audioio.h sys/audioio.h sys/file.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18407 7
a18413 1
fi
d18415 9
a18423 1
done
d18425 3
a18427 11
case "$host" in
 *-*-sunos4*)
    ;;
 *)
    for ac_header in sys/ioctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_IOCTL_H 1
_ACEOF
d18429 2
a18430 1
fi
a18431 1
done
d18433 3
a18435 9
    ;;
esac
for ac_header in sys/ipc.h sys/lock.h sys/mman.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18437 4
d18443 1
d18445 3
a18447 1
done
d18449 9
a18457 9
# HMS: Check sys/proc.h and sys/resource.h after some others
for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18459 9
a18467 1
fi
d18469 3
a18471 13
done

case "$ac_cv_header_sched_h" in
 yes)
    ;;
 *)
    for ac_header in sys/sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SCHED_H 1
_ACEOF
d18473 2
a18474 1
fi
a18475 1
done
d18477 3
a18479 10
    ;;
esac
# HMS: Check sys/shm.h after some others
for ac_header in sys/select.h sys/signal.h sys/sockio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18481 4
d18487 1
a18487 16

done

# HMS: Checked sys/socket.h earlier
case "$host" in
 *-*-netbsd*)
    ;;
 *)
    for ac_header in machine/soundcard.h sys/soundcard.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18490 4
d18495 1
a18495 1
done
d18497 1
a18497 1
    ;;
a18498 8
for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a18499 1
fi
a18500 1
done
d18502 10
a18511 8
for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18513 2
a18514 1
fi
d18516 3
a18518 1
done
d18520 2
a18521 10
case "$host" in
*-convex-*)
    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a18522 1
fi
d18524 3
a18526 11
done

    ;;
*-*-bsdi*)
    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18528 4
d18534 1
d18536 5
a18540 1
done
d18542 1
a18542 19
    ;;
esac

case "$host" in
 *-*-solaris2.6)
    # Broken...
    ;;
 *)
    for ac_func in ntp_adjtime ntp_gettime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done
a18543 1
    ;;
d18546 9
a18554 13
case "$host" in
 *-*-*linux*)
    case "$ac_cv_func_ntp_gettime" in
     yes)
	;;
     *)
	for ac_func in __ntp_gettime
do :
  ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
if test "x$ac_cv_func___ntp_gettime" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___NTP_GETTIME 1
_ACEOF
d18556 6
a18561 2
fi
done
d18563 3
a18565 2
	case "$ac_cv_func___ntp_gettime" in
	 yes)
d18567 2
a18568 1
$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
d18571 3
a18573 11
$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h

	esac
	;;
    esac
    for ac_func in adjtimex
do :
  ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
if test "x$ac_cv_func_adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ADJTIMEX 1
d18575 4
d18581 1
a18581 1
done
d18583 4
a18586 1
    case "$ac_cv_func_adjtimex" in
d18589 1
a18589 1
$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
d18591 2
d18594 7
a18600 1
$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
d18602 1
a18602 10
	have_adjtimex=1
	;;
     *)
	for ac_func in __adjtimex
do :
  ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
if test "x$ac_cv_func___adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___ADJTIMEX 1
_ACEOF
d18604 3
a18606 2
fi
done
d18608 2
a18609 2
	case "$ac_cv_func___adjtimex" in
	 yes)
a18610 1
$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
d18612 8
d18621 2
a18622 1
$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
d18624 5
d18630 1
a18630 1
$as_echo "#define adjtimex __adjtimex" >>confdefs.h
d18632 1
d18634 3
a18636 15
$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h

	    have_adjtimex=1
	esac
	;;
    esac
esac
case "$have_adjtimex" in
 '')
    # nlist stuff is only needed for tickadj.
    saved_LIBS="$LIBS"
    LIBS=
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
$as_echo_n "checking for library containing nlist... " >&6; }
if ${ac_cv_search_nlist+:} false; then :
d18639 1
a18639 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18642 2
a18643 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
a18646 22
return nlist ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' elf ld mld; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_nlist=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_nlist+:} false; then :
  break
fi
done
if ${ac_cv_search_nlist+:} false; then :
d18648 10
d18659 2
a18660 1
  ac_cv_search_nlist=no
d18662 2
a18663 2
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
d18665 6
a18670 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
$as_echo "$ac_cv_search_nlist" >&6; }
ac_res=$ac_cv_search_nlist
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18672 1
a18672 1
fi
d18674 3
a18676 4
    # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
$as_echo_n "checking for library containing kvm_open... " >&6; }
if ${ac_cv_search_kvm_open+:} false; then :
d18679 1
a18679 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18682 11
a18692 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char kvm_open ();
d18696 4
a18699 1
return kvm_open ();
d18704 2
a18705 18
for ac_lib in '' kvm; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_kvm_open=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_kvm_open+:} false; then :
  break
fi
done
if ${ac_cv_search_kvm_open+:} false; then :

d18707 1
a18707 10
  ac_cv_search_kvm_open=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
$as_echo "$ac_cv_search_kvm_open" >&6; }
ac_res=$ac_cv_search_kvm_open
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18710 1
a18710 9
	    # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
    for ac_header in nlist.h sys/var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18713 4
d18718 1
a18718 1
done
d18720 1
a18720 2
    case "$ac_cv_header_nlist_h" in
     yes)
d18722 3
a18724 5
$as_echo "#define NLIST_STRUCT 1" >>confdefs.h

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
$as_echo_n "checking for n_un in struct nlist... " >&6; }
if ${ntp_cv_struct_nlist_n_un+:} false; then :
d18730 2
a18731 1
			#include <nlist.h>
d18737 1
a18737 2
			struct nlist n;
			n.n_un.n_name = 0;
a18742 1
		ntp_cv_struct_nlist_n_un=yes
d18745 3
a18747 1
  ntp_cv_struct_nlist_n_un=no
d18753 4
a18756 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
	case "$ntp_cv_struct_nlist_n_un" in
	 yes)
d18758 1
a18758 1
$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
d18760 1
a18760 2
	esac
    esac
d18762 15
a18776 4
    LDADD_NLIST="$LIBS"
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
esac
a18777 9
for ac_header in sys/proc.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif
d18780 4
a18783 3
if test "x$ac_cv_header_sys_proc_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PROC_H 1
d18786 1
a18788 1
done
d18790 14
a18804 11
for ac_header in sys/resource.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif

"
if test "x$ac_cv_header_sys_resource_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_RESOURCE_H 1
d18806 2
a18807 1

d18809 2
a18810 1

d18813 3
d18817 11
a18827 14
for ac_header in sys/shm.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_IPC_H
    # include <sys/ipc.h>
    #endif

"
if test "x$ac_cv_header_sys_shm_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SHM_H 1
d18829 2
a18831 1
fi
d18833 4
a18836 1
done
d18838 1
a18839 6
for ac_header in sys/timex.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif
d18841 1
a18841 5
"
if test "x$ac_cv_header_sys_timex_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEX_H 1
_ACEOF
d18843 3
a18845 8
fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
if ${ac_cv_type_signal+:} false; then :
d18850 1
a18850 3
#include <sys/types.h>
#include <signal.h>

d18854 3
a18856 1
return *(signal (0, 0)) (0) == 1;
d18861 33
a18893 4
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_signal=int
else
  ac_cv_type_signal=void
d18895 1
a18895 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d18897 4
a18900 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }
d18903 1
a18903 1
#define RETSIGTYPE $ac_cv_type_signal
d18907 2
a18908 4
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
if test "x$ac_cv_type_off_t" = xyes; then :

else
d18911 1
a18911 1
#define off_t long int
d18914 1
d18917 7
a18923 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if ${ac_cv_struct_tm+:} false; then :
d18926 1
a18926 4
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>
a18927 12
int
main ()
{
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_tm=time.h
d18929 8
a18936 1
  ac_cv_struct_tm=sys/time.h
d18938 1
a18938 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d18940 4
a18943 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then
d18945 3
a18947 1
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a18948 1
fi
d18950 7
a18956 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
$as_echo_n "checking for a fallback value for HZ... " >&6; }
if ${ntp_cv_default_hz+:} false; then :
d18959 12
d18972 3
a18974 9
	ntp_cv_default_hz=100
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_default_hz=1024
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_default_hz=256
	    ;;
	esac
a18976 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
$as_echo "$ntp_cv_default_hz" >&6; }
d18979 1
a18979 1
#define DEFAULT_HZ $ntp_cv_default_hz
a18982 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
if ${ntp_cv_override_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else
d18984 6
a18989 18
	ntp_cv_override_hz=no
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_override_hz=yes
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-freebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-sunos4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-kfreebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	esac
d18991 1
d18993 3
a18995 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
$as_echo "$ntp_cv_override_hz" >&6; }
case "$ntp_cv_override_hz" in
 yes)
d18997 1
a18997 1
$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
d18999 7
a19005 1
esac
d19007 1
d19009 5
a19013 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
$as_echo_n "checking for struct rt_msghdr... " >&6; }
if ${ntp_cv_struct_rt_msghdr+:} false; then :
d19018 1
d19020 8
a19027 4
		#include <sys/types.h>
		#include <sys/socket.h>
		#include <net/if.h>
		#include <net/route.h>
d19029 4
a19032 3
int
main ()
{
d19034 1
a19034 1
		struct rt_msghdr p;
d19037 1
a19037 8
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_rt_msghdr=yes
else
  ntp_cv_struct_rt_msghdr=no
a19039 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19040 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
d19042 12
a19053 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
$as_echo_n "checking for struct rtattr... " >&6; }
if ${ntp_cv_rtattr+:} false; then :
d19056 2
a19057 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19060 7
a19066 4
		#include <stddef.h>
		#include <sys/socket.h>
		#include <linux/rtnetlink.h>

d19070 22
a19092 9
		struct rtattr p;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rtattr=yes
d19094 10
a19103 1
  ntp_cv_rtattr=no
d19106 9
a19114 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19117 1
a19117 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
$as_echo "$ntp_cv_rtattr" >&6; }
d19119 9
a19127 2
case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
 *yes*)
d19129 2
a19130 1
$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
d19132 7
a19138 2
    case "$ntp_cv_rtattr" in
     yes)
d19140 8
a19147 1
$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
d19149 1
a19149 2
    esac
esac
d19151 5
a19155 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19158 1
a19158 1
		#include <signal.h>
d19164 2
a19165 2
		struct sigaction act;
		act.sa_sigaction = 0;
d19172 2
a19173 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_sigaction_has_sa_sigaction=yes
d19175 1
a19175 1
  ntp_cv_struct_sigaction_has_sa_sigaction=no
d19178 11
a19188 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19191 1
a19191 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
 yes)
a19192 1
$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
d19194 2
a19195 1
esac
a19196 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
$as_echo_n "checking for struct ppsclockev... " >&6; }
if ${ntp_cv_struct_ppsclockev+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d19198 8
a19205 12
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TERMIOS_H
		# include <sys/termios.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_PPSCLOCK_H
		# include <sys/ppsclock.h>
		#endif
d19207 2
a19208 3
int
main ()
{
a19209 2
		extern struct ppsclockev *pce;
		return pce->serial;
d19211 3
a19213 7

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ppsclockev=yes
d19215 1
a19215 1
  ntp_cv_struct_ppsclockev=no
a19217 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19218 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
case "$ntp_cv_struct_ppsclockev" in
 yes)
d19220 21
a19240 1
$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
d19242 2
a19243 1
esac
d19245 7
a19251 5
case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
  *yes*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
$as_echo_n "checking for struct snd_size... " >&6; }
if ${ntp_cv_struct_snd_size+:} false; then :
d19254 3
a19256 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19259 7
a19265 7
		    #ifdef HAVE_MACHINE_SOUNDCARD_H
		    # include <machine/soundcard.h>
		    #endif
		    #ifdef HAVE_SYS_SOUNDCARD_H
		    # include <sys/soundcard.h>
		    #endif

d19269 1
a19269 5

		    extern struct snd_size *ss;
		    return ss->rec_size;


d19274 2
a19275 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_snd_size=yes
d19277 5
a19281 2
  ntp_cv_struct_snd_size=no

d19283 6
a19288 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19290 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
$as_echo "$ntp_cv_struct_snd_size" >&6; }
    case "$ntp_cv_struct_snd_size" in
     yes)
d19292 4
a19295 1
$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
d19297 8
d19306 14
d19322 10
a19331 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
$as_echo_n "checking struct clockinfo for hz... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19334 6
a19339 1
		#include <sys/time.h>
d19345 3
a19347 2
		extern struct clockinfo *pc;
		return pc->hz;
d19355 12
a19366 3
  ntp_cv_struct_clockinfo_has_hz=yes
else
  ntp_cv_struct_clockinfo_has_hz=no
d19369 16
a19384 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19387 4
a19390 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)
d19392 1
a19392 1
$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
d19394 3
d19398 2
d19401 8
a19408 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
d19411 2
a19412 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19415 7
a19421 2
		#include <sys/time.h>

d19425 1
a19425 5

		extern struct clockinfo *pc;
		return pc->tickadj;


d19430 18
a19447 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_clockinfo_has_hz=yes
d19449 1
a19449 2
  ntp_cv_struct_clockinfo_has_hz=no

d19451 2
a19452 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d19454 5
a19458 35
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)

$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h

esac

case "$ntp_cv_struct_ntptimeval" in
 yes)
    ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
	    #ifdef HAVE_SYS_TIME_H
	    # include <sys/time.h>
	    #else
	    # ifdef HAVE_TIME_H
	    #  include <time.h>
	    # endif
	    #endif
	    #ifdef HAVE_SYS_TIMEX_H
	    # include <sys/timex.h>
	    #else
	    # ifdef HAVE_TIMEX_H
	    #  include <timex.h>
	    # endif
	    #endif


"
if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
_ACEOF

d19463 1
a19463 6

####

saved_LIBS="$LIBS"
LIBS="$LIBS $LDADD_LIBNTP"
for ac_func in daemon
d19465 2
a19466 2
  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
if test "x$ac_cv_func_daemon" = xyes; then :
d19468 1
a19468 1
#define HAVE_DAEMON 1
d19474 2
a19475 3
# XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
LIBS="$saved_LIBS"
{ saved_LIBS=; unset saved_LIBS;}
d19477 1
a19477 7
for ac_func in finite
do :
  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
if test "x$ac_cv_func_finite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FINITE 1
_ACEOF
d19479 1
a19479 8
else
  for ac_func in isfinite
do :
  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
if test "x$ac_cv_func_isfinite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ISFINITE 1
_ACEOF
d19481 4
d19486 2
a19487 7

	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
$as_echo_n "checking for isfinite with <math.h>... " >&6; }
	    _libs=$LIBS
	    # XXX
	    LIBS="$LIBS -lm"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19490 7
a19496 2
			#include <math.h>

d19500 1
a19500 5

			float f = 0.0;
			isfinite(f);


d19505 18
a19522 2
if ac_fn_c_try_link "$LINENO"; then :
  ans=yes
d19524 10
a19533 1
  ans=no
a19535 8
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    LIBS=$_libs
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
	    case "$ans" in
	     yes)
		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
d19537 4
a19540 1
	    esac
d19542 1
a19544 1
done
d19546 2
d19549 1
a19549 2
fi
done
d19551 1
a19551 9

for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a19553 1
done
a19555 1
# kvm_open() is only used by tickadj.  Also see above.
d19572 12
d19586 1
a19586 1
    # Just stubs.  Sigh.
d19613 2
a19614 3
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub.  Sigh.
d19617 4
a19620 1
    # Just a stub in "old" Irix.  Sigh.
a19621 4
# In the belief that the fix for bug 1223 fixes mlockall() under linux...
# *-*-*linux*)
#    # there, but more trouble than it is worth for now (resolver problems)
#    ;;
d19623 1
a19623 1
    # Apparently there but not working in QNX.  Sigh?
d19626 1
a19626 1
    # Just a stub.  Sigh.
d19667 1
a19667 1
for ac_func in nice plock pututline pututxline readlink rtprio
d19680 2
a19681 18
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub in AIX 4.  Sigh.
    ;;
 *-*-solaris2.5*)
    # Just stubs in solaris2.5.  Sigh.
    ;;
 *) for ac_func in sched_setscheduler
do :
  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_SETSCHEDULER 1
_ACEOF

fi
done

d19683 1
a19683 2
esac
for ac_func in setlinebuf setpgid setpriority setsid setvbuf
d19695 3
a19697 1
for ac_func in strdup strerror setrlimit strchr
d19710 2
a19711 3
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just stubs.  Sigh.
d19713 2
a19714 2
 *-*-netbsd1*)
    # Just stubs.  Sigh.
d19716 1
a19716 8
 *-*-netbsdelf1*)
    # Just stubs.  Sigh.
    ;;
 *-*-openbsd*)
    # Just stubs.  Sigh.
    ;;
 *)
    for ac_func in timer_create
d19718 2
a19719 2
  ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
if test "x$ac_cv_func_timer_create" = xyes; then :
d19721 1
a19721 1
#define HAVE_TIMER_CREATE 1
d19729 8
d19738 2
d19741 6
a19746 29

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
if ${ntp_cv_rlimit_memlock+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif

int
main ()
{

		getrlimit(RLIMIT_MEMLOCK, 0);


  ;
  return 0;
}
a19747 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_memlock=yes
else
  ntp_cv_rlimit_memlock=no
d19750 1
a19750 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19752 7
a19758 8
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
$as_echo "$ntp_cv_rlimit_memlock" >&6; }
case "$ntp_cv_rlimit_memlock" in
 yes)

    HAVE_RLIMIT_MEMLOCK=" memlock 32"
esac
a19759 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
$as_echo_n "checking for RLIMIT_STACK... " >&6; }
if ${ntp_cv_rlimit_stack+:} false; then :
  $as_echo_n "(cached) " >&6
a19760 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d19762 6
a19767 9
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif
d19769 7
a19775 10
int
main ()
{

		getrlimit(RLIMIT_STACK, 0);


  ;
  return 0;
}
a19776 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_stack=yes
else
  ntp_cv_rlimit_stack=no
d19779 1
a19779 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19781 8
a19788 20
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
$as_echo "$ntp_cv_rlimit_stack" >&6; }
case "$ntp_cv_rlimit_stack" in
 yes)

    HAVE_RLIMIT_STACK=" stacksize 50"
esac



# HMS: Only if we are doing the MLOCKALL stuff...
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
$as_echo_n "checking for the default number of 4k stack pages... " >&6; }

# Check whether --with-stack-limit was given.
if test "${with_stack_limit+set}" = set; then :
  withval=$with_stack_limit; ans=$withval
else
  ans=yes
d19791 1
d19793 3
a19795 9
case "$ans" in
 yes | no)
    case "$host" in
     *-*-openbsd*)
	ans=200
	;;
     *) ans=50
        ;;
    esac
d19797 2
a19798 1
 [1-9][0-9]*)
d19800 2
a19801 1
 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
d19803 2
a19804 24
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_STACK $ans
_ACEOF


# HMS: only if we have RLIMIT_MEMLOCK
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }

# Check whether --with-memlock was given.
if test "${with_memlock+set}" = set; then :
  withval=$with_memlock; ans=$withval
else
  ans=yes

fi

case "$ans" in
 yes | no)
    ans=32
d19806 1
a19806 15
 [1-9][0-9]*) ;;
 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
     ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_MEMLOCK $ans
_ACEOF



# some OSes prefer _exit() in forked children to exit()
for ac_func in _exit
d19808 3
a19810 2
  ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
if test "x$ac_cv_func__exit" = xyes; then :
d19812 1
a19812 1
#define HAVE__EXIT 1
a19817 7
ntp_worker_child_exit=exit
case "$ac_cv_func__exit::$host_os" in
 yes::netbsd*)
    ntp_worker_child_exit=_exit
    ;;
 yes::openbsd*)
    ntp_worker_child_exit=_exit
d19820 1
a19820 7

cat >>confdefs.h <<_ACEOF
#define WORKER_CHILD_EXIT $ntp_worker_child_exit
_ACEOF


for ac_func in umask uname updwtmp updwtmpx
d19853 66
a19918 5
			    # include <sys/socket.h>
			    #endif
			    #if $ntp_cv_struct_iovec_help
			    # include <sys/uio.h>
			    #endif
d19924 2
a19925 10
			    void foo(void) {
				ssize_t x;
				int s = 0;
				struct iovec iov;
				struct msghdr mh;
				int flags = 0;

				mh.msg_iov = &iov;
				x = recvmsg(s, &mh, flags);
			    }
d19933 4
a19936 1
  compiled=yes ; break 1
a19938 7
	    done
	    case "$compiled" in
	     no)
		ntp_cv_struct_iovec_help=0
	    esac
	    { compiled=; unset compiled;}

d19941 4
a19944 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
$as_echo "$ntp_cv_struct_iovec_help" >&6; }
    case "$ntp_cv_struct_iovec_help" in
     1)
d19946 1
a19946 1
$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
a19947 1
    esac
d19994 4
d20447 1
a20447 1
	 *-*-bsdi[23]*)
d20453 257
a20709 24
	# NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
	# while later versions will fail a ioctl(TIOCSCTTY, 0) call in
	# some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
	# in $host may be followed by "aout", "ecoff", or "elf".
	 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
	    ans=yes
	    ;;
	 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
	    ans=yes
	    ;;
	 *-*-openbsd*)
	    ans=yes
	    ;;
	 *-*-osf*)
	    ans=yes
	    ;;
	 *-*-darwin*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_func_ctty_for_f_setown=$ans
d20711 6
d20719 1
a20719 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
case "$ntp_cv_func_ctty_for_f_setown" in
 yes)
a20720 1
$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
d20722 3
a20724 1
esac
d20726 3
a20728 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
if ${ntp_cv_os_routeupdates+:} false; then :
d20732 49
a20780 6
	case "$host" in
	 *-*-netbsd*)
	    ans=yes
	    ;;
	 *)
	    ans=no
d20783 1
a20783 1
	ntp_cv_os_routeupdates=$ans
d20787 3
a20789 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
$as_echo "$ntp_cv_os_routeupdates" >&6; }
case "$ntp_cv_os_routeupdates" in
d20792 1
a20792 1
$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
d20796 3
a20798 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
if ${ntp_cv_os_wildcardreuse+:} false; then :
d20802 46
a20847 5
	case "$host" in
	 *-*-*linux*)
	    ans=yes
	    ;;
	 *) ans=no
d20850 1
a20850 1
	ntp_cv_os_wildcardreuse=$ans
d20854 3
a20856 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
case "$ntp_cv_os_wildcardreuse" in
d20859 1
a20859 1
$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
d20935 19
d20994 167
a21160 4
if test "${enable_ignore_dns_errors+set}" = set; then :
  enableval=$enable_ignore_dns_errors; ans=$enableval
else
  ans=no
d21163 2
d21166 3
a21168 4
case "$ans" in
 yes)

$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
a21170 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d21191 3
a21193 2
		    #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
		    # error
d21197 2
a21198 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21202 2
a21203 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21233 3
a21235 2
	    #ifndef STA_FLL
	    # error
d21239 2
a21240 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21246 2
a21247 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21317 3
a21319 2
	    #ifndef TIOCGPPSEV
	    # error
d21323 2
a21324 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21330 2
a21331 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21355 3
a21357 2
	    #ifndef TIOCSPPS
	    # error
d21361 2
a21362 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21368 2
a21369 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21393 3
a21395 2
	    #ifndef CIOGETEV
	    # error
d21399 2
a21400 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21406 2
a21407 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21467 6
a21472 2
	    #ifndef TIOCGSERIAL
	    # error
a21473 2
	    #ifndef TIOCSSERIAL
	    # error
a21474 2
	    #ifndef ASYNC_PPS_CD_POS
	    # error
a21475 2
	    #ifndef ASYNC_PPS_CD_NEG
	    # error
a21476 2
	    #ifndef CIOGETEV
	    # error
d21480 2
a21481 1
if ac_fn_c_try_cpp "$LINENO"; then :
d21487 2
a21488 1
rm -f conftest.err conftest.i conftest.$ac_ext
d21536 1
a21536 2
case "$ntp_ok" in
 yes)
d21541 1
a21541 2
    ;;
esac
d21561 1
a21561 2
case "$ntp_ok" in
 yes)
d21566 1
a21566 2
    ;;
esac
d21705 1
a21705 2
case "$ntp_ok" in
 yes)
d21710 1
a21710 2
    ;;
esac
d21724 1
a21724 2
case "$ntp_ok" in
 yes)
d21729 1
a21729 2
    ;;
esac
d21743 1
a21743 2
case "$ntp_ok" in
 yes)
d21748 1
a21748 2
    ;;
esac
d21762 1
a21762 2
case "$ntp_ok" in
 yes)
d21767 1
a21767 2
    ;;
esac
d21784 1
a21784 2
case "$ntp_ok" in
 yes)
d21789 1
a21789 2
    ;;
esac
d21803 1
a21803 2
case "$ntp_ok" in
 yes)
d21808 1
a21808 2
    ;;
esac
d21822 1
a21822 2
case "$ntp_ok" in
 yes)
d21827 1
a21827 2
    ;;
esac
d21847 5
d21879 1
a21879 2
case "$ntp_ok" in
 yes)
d21884 1
a21884 2
    ;;
esac
d21898 1
a21898 2
case "$ntp_ok" in
 yes)
d21903 1
a21903 2
    ;;
esac
d21917 1
a21917 2
case "$ntp_ok" in
 yes)
d21922 1
a21922 2
    ;;
esac
d21937 1
a21937 2
case "$ntp_ok" in
 yes)
d21942 1
a21942 2
    ;;
esac
d21956 1
a21956 2
case "$ntp_ok" in
 yes)
d21961 1
a21961 2
    ;;
esac
d21975 1
a21975 2
case "$ntp_ok" in
 yes)
d21980 1
a21980 2
    ;;
esac
d21994 1
a21994 2
case "$ntp_ok" in
 yes)
d21999 1
a21999 2
    ;;
esac
d22018 1
a22018 2
case "$ntp_ok" in
 yes)
d22023 1
a22023 2
    ;;
esac
d22041 1
a22041 2
case "$ntp_ok" in
 yes)
d22046 1
a22046 2
    ;;
esac
d22062 1
a22062 2
case "$ntp_ok" in
 yes)
d22067 1
a22067 2
    ;;
esac
d22081 1
a22081 2
case "$ntp_ok" in
 yes)
d22086 1
a22086 2
    ;;
esac
d22100 1
a22100 2
case "$ntp_ok" in
 yes)
d22105 1
a22105 2
    ;;
esac
d22130 1
a22130 2
case "$ntp_ok" in
 yes)
d22135 1
a22135 2
    ;;
esac
d22153 1
a22153 2
case "$ntp_ok" in
 yes)
d22158 1
a22158 2
    ;;
esac
d22172 1
a22172 2
case "$ntp_ok" in
 yes)
a22176 27
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

for ac_func in strtoll
do :
  ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
if test "x$ac_cv_func_strtoll" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRTOLL 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
$as_echo_n "checking for GPSD JSON receiver... " >&6; }
# Check whether --enable-GPSD was given.
if test "${enable_GPSD+set}" = set; then :
  enableval=$enable_GPSD; ntp_ok=$enableval
else
  case "$ac_cv_func_strtoll" in
     yes) ntp_ok=$ntp_eac ;;
     *)   ntp_ok="no" ;;
    esac

a22177 9

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h

    ;;
esac
d22194 1
a22194 2
case "$ntp_ok" in
 yes)
d22199 1
a22199 2
    ;;
esac
d22214 1
a22214 2
case "$ntp_ok" in
 yes)
d22219 1
a22219 2
    ;;
esac
d22233 1
a22233 2
case "$ntp_ok" in
 yes)
d22238 1
a22238 2
    ;;
esac
d22252 1
a22252 2
case "$ntp_ok" in
 yes)
d22257 1
a22257 2
    ;;
esac
d22275 1
a22275 2
case "$ntp_ok" in
 yes)
d22280 1
a22280 2
    ;;
esac
d22301 1
a22301 2
case "$ntp_ok" in
 yes)
d22306 1
a22306 2
    ;;
esac
d22320 1
a22320 2
case "$ntp_ok" in
 yes)
d22325 1
a22325 2
    ;;
esac
d22348 1
a22348 2
case "$ntp_ok" in
 yes)
d22353 1
a22353 2
    ;;
esac
d22361 1
d22382 1
a22382 2
case "$ntp_ok" in
 yes)
d22387 1
a22387 2
    ;;
esac
d22405 1
a22405 2
case "$ntp_ok" in
 yes)
d22410 1
a22410 2
    ;;
esac
d22424 1
a22424 2
case "$ntp_ok" in
 yes)
a22428 21
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
# Check whether --enable-TSYNCPCI was given.
if test "${enable_TSYNCPCI+set}" = set; then :
  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
else

	case "$host" in
	 *-*-*linux*)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	esac


a22429 9

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h

    ;;
esac
d22448 1
a22448 2
case "$ntp_ok" in
 yes)
d22453 1
a22453 2
    ;;
esac
d22471 1
a22471 2
case "$ntp_ok" in
 yes)
d22476 1
a22476 2
    ;;
esac
d22523 1
a22523 2
case "$ntp_ok" in
 yes)
d22529 1
a22529 2
    ;;
esac
d22547 1
a22547 2
case "$ntp_ok" in
 yes)
d22553 1
a22553 2
    ;;
esac
d22571 1
a22571 2
case "$ntp_ok" in
 yes)
d22577 1
a22577 2
    ;;
esac
d22595 1
a22595 2
case "$ntp_ok" in
 yes)
d22601 1
a22601 2
    ;;
esac
d22619 1
a22619 2
case "$ntp_ok" in
 yes)
d22627 1
a22627 2
    ;;
esac
d22673 1
a22673 2
case "$ntp_ok" in
 yes)
d22679 1
a22679 2
    ;;
esac
d22697 1
a22697 2
case "$ntp_ok" in
 yes)
d22703 1
a22703 2
    ;;
esac
d22721 1
a22721 2
case "$ntp_ok" in
 yes)
d22727 1
a22727 2
    ;;
esac
d22745 1
a22745 2
case "$ntp_ok" in
 yes)
a22750 76
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
$as_echo_n "checking WHARTON 400A Series clock... " >&6; }
# Check whether --enable-WHARTON was given.
if test "${enable_WHARTON+set}" = set; then :
  enableval=$enable_WHARTON; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
$as_echo_n "checking VARITEXT clock... " >&6; }
# Check whether --enable-VARITEXT was given.
if test "${enable_VARITEXT+set}" = set; then :
  enableval=$enable_VARITEXT; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
$as_echo_n "checking SEL240X clock... " >&6; }
# Check whether --enable-SEL240X was given.
if test "${enable_SEL240X+set}" = set; then :
  enableval=$enable_SEL240X; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h

a22756 57
    ;;
esac






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
$as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
ans=no
case "$ntp_libparse" in
 yes)
    ans=yes

$as_echo "#define CLOCK_PARSE 1" >>confdefs.h

    LIBPARSE=../libparse/libparse.a
    MAKE_LIBPARSE=libparse.a
    # HMS: check_y2k trips the 34 year problem now...
    false && MAKE_CHECK_Y2K=check_y2k
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }



ntp_pkgconfig_min_version='0.15.0'
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
a22757 40
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d22759 5
a22763 7
  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
d22765 2
a22766 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d22769 12
a22780 8
  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
d22782 6
a22787 2
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
d22789 2
a22790 1
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d22793 5
a22797 2
{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
d22799 6
a22804 13
case "$PKG_CONFIG" in
 /*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	PKG_CONFIG=""
    fi
    ;;
d22811 19
a22829 1
VER_SUFFIX=
a22833 4
# Check whether --with-crypto was given.
if test "${with_crypto+set}" = set; then :
  withval=$with_crypto;
fi
d22835 2
d22840 2
a22841 2
  withval=$with_openssl_libdir;
fi
d22843 4
a22846 5

# Check whether --with-openssl-incdir was given.
if test "${with_openssl_incdir+set}" = set; then :
  withval=$with_openssl_incdir;
fi
a22848 3
# Check whether --with-rpath was given.
if test "${with_rpath+set}" = set; then :
  withval=$with_rpath;
d22851 8
a22858 30
ntp_openssl=no
ntp_openssl_from_pkg_config=no
with_crypto=${with_crypto:-openssl,libcrypto}
case "$with_crypto" in
 yes)
    with_crypto=openssl,libcrypto
esac
case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
 no:*) ;;
 *:notempty:notgiven:notgiven)
    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
$as_echo_n "checking pkg-config for $pkg... " >&6; }
	if $PKG_CONFIG --exists $pkg ; then
	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
	    VER_SUFFIX=o
	    ntp_openssl=yes
	    ntp_openssl_from_pkg_config=yes
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

	    break
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    done
d22860 6
a22865 11
case "$with_crypto:$ntp_openssl" in
 no:*) ;;
 *:no)
    need_dash_r=
    need_dash_Wlrpath=
    case "${with_rpath-notgiven}" in
     yes)
	# Lame - what to do if we need -Wl... but not -R?
	need_dash_r=1
	;;
     notgiven)
d22867 2
a22868 22
	 *-*-linux*)
	    # This may really only be true for gcc
	    need_dash_Wlrpath=1
	    ;;
	 *-*-netbsd*)
	    need_dash_r=1
	    ;;
	 *-*-solaris*)
	    need_dash_r=1
	    ;;
	esac
	;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
$as_echo_n "checking for openssl library directory... " >&6; }
    with_openssl_libdir=${with_openssl_libdir-notgiven}
    case "$with_openssl_libdir" in
     notgiven)
	case "$build" in
	 $host)
	    with_openssl_libdir=default
d22871 2
a22872 1
	    with_openssl_libdir=no
d22875 2
a22876 9
    esac
    case "$with_openssl_libdir" in
     default)
	# Look in:
	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
    esac
    case "$with_openssl_libdir" in
d22878 2
d22881 2
a22882 14
     *) # Look for libcrypto.a and libssl.a:
	for i in $with_openssl_libdir no
	do
	    case "$host" in
	     *-*-darwin*)
		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
		;;
	     *)
		test -f $i/libcrypto.so -a -f $i/libssl.so && break
		test -f $i/libcrypto.a -a -f $i/libssl.a && break
		;;
	    esac
	done
	openssl_libdir=$i
d22885 4
a22888 8
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
$as_echo "$openssl_libdir" >&6; }
    case "$openssl_libdir" in
     no)
	openssl_libdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
    esac
d22890 1
a22890 1
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
d22892 32
a22923 9
    with_openssl_incdir=${with_openssl_incdir-notgiven}
    case "$with_openssl_incdir" in
     notgiven)
	# Look in:
	with_openssl_incdir="/usr/include /usr/sfw/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
    esac
    case "$with_openssl_incdir" in
d22925 2
d22928 2
a22929 6
     *) # look for openssl/evp.h:
	for i in $with_openssl_incdir no
	do
	    test -f $i/openssl/evp.h && break
	done
	openssl_incdir=$i
d22932 21
a22952 10
    { i=; unset i;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
$as_echo "$openssl_incdir" >&6; }
    case "$openssl_incdir" in
     no)
	openssl_incdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
    esac
    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
d22954 1
a22954 1
	ntp_openssl=no
d22956 1
a22956 2
	ntp_openssl=yes
	VER_SUFFIX=o
a22957 27
    case "$ntp_openssl" in
     yes)
	# We have OpenSSL inc/lib dirs - use them.
	case "$openssl_incdir" in
	 /usr/include)
	    ;;
	 *)
	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
	    ;;
	esac
	case "$openssl_libdir" in
	 /usr/lib)
	    ;;
	 *)
	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
	    case "$need_dash_r" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
	    esac
	    case "$need_dash_Wlrpath" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
	    esac
	    ;;
	esac
	LDADD_NTP="$LDADD_NTP -lcrypto"
    esac
d22959 3
a22961 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
$as_echo_n "checking if we will use crypto... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
$as_echo "$ntp_openssl" >&6; }
d22965 20
a22985 1
$as_echo "#define OPENSSL /**/" >>confdefs.h
d22987 2
a22988 5
    case "$VER_SUFFIX" in
     *o*) ;;
     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
    esac
    ;;
a22990 4
NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
NTPO_SAVED_LIBS="$LIBS"

d22992 1
a22992 1
# check for linking with -lcrypto failure, and try -lcrypto -lz.
d22995 6
a23000 5
case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
 yes:no)
    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
$as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
d23036 3
a23038 3
	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
d23074 1
a23074 1
	     LDADD_NTP="$LDADD_NTP -lz"
d23077 2
d23095 1
a23095 1
NTPO_SAVED_CFLAGS="$CFLAGS"
d23097 2
a23098 2
case "$ntp_openssl:$GCC" in
 yes:yes)
d23157 15
a23171 62
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    esac
    case "$openssl_triggers_warnings" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
	;;
     *)
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
    esac
    ;;
 no:yes)
    # gcc without OpenSSL
    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
esac

CFLAGS="$NTPO_SAVED_CFLAGS"
CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
LIBS="$NTPO_SAVED_LIBS"
{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
# Check whether --enable-openssl-random was given.
if test "${enable_openssl_random+set}" = set; then :
  enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
else
  ntp_use_openssl_random=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
$as_echo "$ntp_use_openssl_random" >&6; }

# The following might need extra libraries
NTPO_SAVED_LIBS="$LIBS"
LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
for ac_func in RAND_bytes RAND_poll
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

LIBS="$NTPO_SAVED_LIBS"
case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
 yesyesyes)

$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
a23172 3
     ;;
 *) ntp_use_openssl_random=no ;;
esac
d23175 2
d23178 3
a23180 6
# if we are using OpenSSL (--with-crypto), by default Autokey is enabled
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
# Check whether --enable-autokey was given.
if test "${enable_autokey+set}" = set; then :
  enableval=$enable_autokey; ntp_autokey=$enableval
d23182 1
a23182 1
  ntp_autokey=$ntp_openssl
d23186 2
a23187 3
case "$ntp_autokey" in
 no)
    ;;
d23189 2
a23190 7
    case "$ntp_openssl" in
     no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
	ntp_autokey=no
	;;
     *)
d23192 1
a23192 1
$as_echo "#define AUTOKEY 1" >>confdefs.h
d23194 1
a23194 3
	ntp_autokey=yes
	;;
    esac
d23197 2
a23198 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
$as_echo "$ntp_autokey" >&6; }
d23220 1
a23220 2
case "$ntp_parseutil" in
 yes)
d23225 1
a23225 1
	TESTDCF=testdcf
d23227 1
a23227 2
    ;;
esac
d23273 1
a23273 2
case "$ntp_refclock" in
 yes)
d23277 1
a23277 2
    ;;
esac
a23280 2
PROPDELAY=propdelay

d23292 1
a23292 2
case "$ans" in
 yes)
d23297 1
a23297 7
    ;;
 *) ADJTIMED_DB=
    ADJTIMED_DL=
    ADJTIMED_DS=
    ADJTIMED_MS=
    ;;
esac
d23310 1
a23310 2
case "$ans" in
 yes)
d23314 1
a23314 2
    ;;
esac
a23327 1
    ;;
d23392 1
a23392 2
 *-ibm-aix[4-9]*)
    # XXX only verified thru AIX6.
a23407 1
    ;;
d23451 1
a23451 2
	 *-ibm-aix[3-9]*)
	    # XXX only verified thru AIX6.
a23791 1
	;;
a23797 1
	;;
a23803 1
	;;
a23819 1
    ;;
a23921 6
 *)
    NTPTIME_DB=
    NTPTIME_DL=
    NTPTIME_DS=
    NTPTIME_MS=
    ;;
a23970 11
    ;;
 *)
    CALC_TICKADJ_DB=
    CALC_TICKADJ_DL=
    CALC_TICKADJ_DS=
    CALC_TICKADJ_MS=
    TICKADJ_DB=
    TICKADJ_DL=
    TICKADJ_DS=
    TICKADJ_MS=
    ;;
a23998 6
    ;;
 *) TIMETRIM_DB=
    TIMETRIM_DL=
    TIMETRIM_DS=
    TIMETRIM_MS=
    ;;
a24019 7
    ;;
 *)
    NTPDSIM_DB=
    NTPDSIM_DL=
    NTPDSIM_DS=
    NTPDSIM_MS=
    ;;
a24033 34

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
$as_echo_n "checking if sntp will be built... " >&6; }

# Check whether --with-sntp was given.
if test "${with_sntp+set}" = set; then :
  withval=$with_sntp;
else
  with_sntp="${withsntp=yes}"

fi

case "$with_sntp" in
 no)
    SNTP=
    ;;
 *)
    SNTP=sntp
    ;;
esac

 if test -n "$SNTP"; then
  BUILD_SNTP_TRUE=
  BUILD_SNTP_FALSE='#'
else
  BUILD_SNTP_TRUE='#'
  BUILD_SNTP_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
$as_echo "$with_sntp" >&6; }



a24144 1
	{ save_CFLAGS=; unset save_CFLAGS;}
a24145 1
	{ save_CPPFLAGS=; unset save_CPPFLAGS;}
a24146 1
	{ save_LIBS=; unset save_LIBS;}
a24156 8
case "$MAKE_NTPSNMPD" in
 '')
    NTPSNMPD_DB=
    NTPSNMPD_DL=
    NTPSNMPD_DS=
    NTPSNMPD_MS=
    ;;
esac
a24249 1
    ;;
a24281 1
    ;;
a24323 1
	;;
a24343 1
	;;
a24347 1
    ;;
a24398 1
    ;;
d24418 1
d24441 1
a24479 1
    ;;
d24482 2
a24483 1
for ac_header in libscf.h
d24485 2
a24486 2
  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
if test "x$ac_cv_header_libscf_h" = xyes; then :
d24488 1
a24488 1
#define HAVE_LIBSCF_H 1
d24495 7
a24501 4
LSCF=
case "$ac_cv_header_libscf_h" in
 yes)
    LSCF='-lscf'
d24504 3
a24506 7



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
if ${ntp_cv_sockaddr_storage+:} false; then :
  $as_echo_n "(cached) " >&6
d24508 1
a24508 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24510 1
a24510 9
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif
a24511 3
int
main ()
{
d24513 4
a24516 1
		struct sockaddr_storage n;
d24519 7
a24525 3
  ;
  return 0;
}
a24526 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_sockaddr_storage=yes
else
  ntp_cv_sockaddr_storage=no
a24528 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24530 1
a24530 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
$as_echo "$ntp_cv_sockaddr_storage" >&6; }
case "$ntp_cv_sockaddr_storage" in
 yes)
a24531 1
$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
d24533 2
a24534 45
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
if ${ntp_cv_have___ss_family+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_SYS_TYPES_H
		    # include <sys/types.h>
		    #endif
		    #ifdef HAVE_SYS_SOCKET_H
		    # include <sys/socket.h>
		    #endif
		    #ifdef HAVE_NETINET_IN_H
		    # include <netinet/in.h>
		    #endif

int
main ()
{

		    struct sockaddr_storage s;
		    s.__ss_family = 1;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have___ss_family=yes
else
  ntp_cv_have___ss_family=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
$as_echo "$ntp_cv_have___ss_family" >&6; }
    case "$ntp_cv_have___ss_family" in
     yes)

$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
d24536 8
d24545 4
a24548 1

d24551 3
d24555 1
a24555 10
#
# Look for in_port_t.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
$as_echo_n "checking for in_port_t... " >&6; }
if ${isc_cv_have_in_port_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a24556 2
		#include <sys/types.h>
		#include <netinet/in.h>
d24558 2
a24559 3
int
main ()
{
d24561 2
a24562 2
		in_port_t port = 25;
		return (0);
d24564 1
d24566 2
a24567 11
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_in_port_t=yes
else
  isc_cv_have_in_port_t=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24569 2
a24570 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
$as_echo "$isc_cv_have_in_port_t" >&6; }
case "$isc_cv_have_in_port_t" in
 no)
d24572 1
a24572 1
$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
a24575 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
if ${ntp_cv_getsockname_socklen_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
d24577 9
a24585 5
    getsockname_socklen_type_found=no
    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24587 1
a24587 6
			#ifdef HAVE_SYS_TYPES_H
			# include <sys/types.h>
			#endif
			#ifdef HAVE_SYS_SOCKET_H
			# include <sys/socket.h>
			#endif
d24589 5
a24593 3
int
main ()
{
a24594 3
			extern
			getsockname(int, $getsockname_arg2,
				$ntp_cv_getsockname_socklen_type *);
d24596 5
a24601 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  getsockname_socklen_type_found=yes ; break 2
a24602 9
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	done
    done
    case "$getsockname_socklen_type_found" in
     no)
	ntp_cv_getsockname_socklen_type='socklen_t'
    esac
    { getsockname_arg2=; unset getsockname_arg2;}
    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
d24604 2
d24607 1
a24607 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
d24609 1
a24609 3
cat >>confdefs.h <<_ACEOF
#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
_ACEOF
d24902 1
a24902 1
if ${isc_cv_in6addr_any_links+:} false; then :
d24905 2
d24908 5
a24912 9
	SAVED_LIBS="$LIBS"
	LIBS="$LDADD_LIBNTP $LIBS"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack
d24918 2
a24919 1
		    printf("%x", in6addr_any.s6_addr[15]);
d24927 1
a24927 1
  isc_cv_in6addr_any_links=yes
d24929 1
a24929 1
  isc_cv_in6addr_any_links=no
a24933 3
	LIBS="$SAVED_LIBS"
	{ SAVED_LIBS=; unset SAVED_LIBS;}

d24936 2
a24937 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
$as_echo "$isc_cv_in6addr_any_links" >&6; }
d24939 1
a24939 1
case "$isc_cv_in6addr_any_links" in
d25013 1
a25013 182
  isc_cv_struct_if_laddrreq=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
$as_echo "$isc_cv_struct_if_laddrreq" >&6; }

case "$isc_cv_struct_if_laddrreq" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
$as_echo_n "checking for multicast IP support... " >&6; }
if ${ntp_cv_multicast+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_multicast=no
	case "$host" in
	 i386-sequent-sysv4)
	    ;;
	 *)
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#ifdef HAVE_NETINET_IN_H
			# include <netinet/in.h>
			#endif

int
main ()
{

			struct ip_mreq ipmr;
			ipmr.imr_interface.s_addr = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_multicast=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
$as_echo "$ntp_cv_multicast" >&6; }
case "$ntp_cv_multicast" in
 yes)

$as_echo "#define MCAST 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    case "$host" in
	     *-*-netbsd*|*-*-*linux*)
		ntp_cv_typeof_ip_multicast_loop=u_int
		;;
	     *)
		ntp_cv_typeof_ip_multicast_loop=u_char
		;;
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }

cat >>confdefs.h <<_ACEOF
#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
_ACEOF

esac

# Check whether --enable-getifaddrs was given.
if test "${enable_getifaddrs+set}" = set; then :
  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
else
  want_getifaddrs="yes"

fi


case $want_getifaddrs in
 glibc)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
esac
case $want_getifaddrs in
 no)
    ;;
 *)
    SAVED_LIBS="$LIBS"
    LIBS="$LDADD_LIBNTP $LIBS"
    for ac_func in getifaddrs
do :
  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF

fi
done

    LIBS="$SAVED_LIBS"
    { SAVED_LIBS=; unset SAVED_LIBS;}
    ;;
esac

#
# Check for if_nametoindex() for IPv6 scoped addresses support
#
case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
$as_echo_n "checking for library containing if_nametoindex... " >&6; }
if ${ac_cv_search_if_nametoindex+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char if_nametoindex ();
int
main ()
{
return if_nametoindex ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' ipv6; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_if_nametoindex=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_if_nametoindex+:} false; then :
  break
fi
done
if ${ac_cv_search_if_nametoindex+:} false; then :

else
  ac_cv_search_if_nametoindex=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
$as_echo "$ac_cv_search_if_nametoindex" >&6; }
ac_res=$ac_cv_search_if_nametoindex
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d25016 1
a25016 11

esac
SAVED_LIBS="$LIBS"
LIBS="$LDADD_LIBNTP $LIBS"
for ac_func in if_nametoindex
do :
  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
if test "x$ac_cv_func_if_nametoindex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_IF_NAMETOINDEX 1
_ACEOF
d25019 2
a25020 1
done
d25022 1
a25022 3
LIBS="$SAVED_LIBS"
{ SAVED_LIBS=; unset SAVED_LIBS;}
case "$ac_cv_func_if_nametoindex" in
d25025 1
a25025 1
$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
a25028 3



d25043 2
a25044 2
	    #ifndef NET_RT_IFLIST
	    # error
d25048 2
a25049 1
if ac_fn_c_try_cpp "$LINENO"; then :
d25055 2
a25056 1
rm -f conftest.err conftest.i conftest.$ac_ext
d25081 1
a25081 2
case "$ntp_ok" in
 yes)
d25086 1
a25086 2
    ;;
esac
a25097 100

gta=false

# Check whether --with-gtest was given.
if test "${with_gtest+set}" = set; then :
  withval=$with_gtest; try_gtest=$withval
else
  try_gtest=yes

fi

case "$try_gtest" in
 yes)
    # Extract the first word of "gtest-config", so it can be a program name with args.
set dummy gtest-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_GTEST_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $GTEST_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
if test -n "$GTEST_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
$as_echo "$GTEST_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
    case x${GTEST_CONFIG} in
     x) ;;
     *)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
$as_echo_n "checking gtest version... " >&6; }
	gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
	case "$gtest_version_test" in
	 toolow*)
	    ;;
	 *)
	    GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
	    GTEST_LIBS=`$GTEST_CONFIG --libs`
	    GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
	    GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`




	    gta=true
	    ;;
	esac
	gtest_version=`$GTEST_CONFIG --version`
	case "$gta" in
	 true)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
$as_echo "($gtest_version) ok" >&6; }
	    ;;
	 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
$as_echo "($gtest_version) not ok" >&6; }
	    ;;
	esac
	{ gtest_version_test=; unset gtest_version_test;}
	{ gtest_version=; unset gtest_version;}
    esac
esac
 if $gta; then
  GTEST_AVAILABLE_TRUE=
  GTEST_AVAILABLE_FALSE='#'
else
  GTEST_AVAILABLE_TRUE='#'
  GTEST_AVAILABLE_FALSE=
fi




d25101 5
a25105 8
  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$sysconfdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  NTP_KEYSDIR="$ac_define_dir"

d25108 1
a25108 1
#define NTP_KEYSDIR "$ac_define_dir"
a25110 2
  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE
d25115 2
a25134 2
ac_config_files="$ac_config_files ntpd/complete.conf"

d25149 1
a25149 5
ac_config_files="$ac_config_files scripts/lib/Makefile"

ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"

ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
d25151 1
a25151 1
ac_config_files="$ac_config_files scripts/build/mkver"
d25153 1
a25153 1
ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
d25155 1
a25155 1
ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
d25157 1
a25157 1
ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
d25159 1
a25159 1
ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
d25161 1
a25161 1
ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
d25163 1
a25163 1
ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
a25170 8
ac_config_files="$ac_config_files scripts/build/Makefile"

ac_config_files="$ac_config_files tests/Makefile"

ac_config_files="$ac_config_files tests/libntp/Makefile"

ac_config_files="$ac_config_files tests/ntpd/Makefile"

a25173 32
perllibdir="${datadir}/ntp/lib"

  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$perllibdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  PERLLIBDIR="$ac_define_dir"


cat >>confdefs.h <<_ACEOF
#define PERLLIBDIR "$ac_define_dir"
_ACEOF

  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE


calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"

ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"

ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"

ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"

summary_opts="$srcdir/scripts/summary-opts"

plot_summary_opts="$srcdir/scripts/plot_summary-opts"


a25307 5

if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a25311 12
if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d25324 2
a25325 6
if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
  as_fn_error $? "conditional \"PTHREADS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
d25328 1
a25332 4
if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
  as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d25742 1
a25742 1
This file was extended by ntp4 $as_me 4.2.8, which was
d25802 1
a25802 2
Report bugs to <http://bugs.ntp.org./>.
ntp4 home page: <http://www.ntp.org./>."
d25808 1
a25808 1
ntp4 config.status 4.2.8
a26066 55
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d26145 1
a26145 33
striplib \
compiler_lib_search_dirs \
predep_objects \
postdep_objects \
predeps \
postdeps \
compiler_lib_search_path \
LD_CXX \
reload_flag_CXX \
compiler_CXX \
lt_prog_compiler_no_builtin_flag_CXX \
lt_prog_compiler_pic_CXX \
lt_prog_compiler_wl_CXX \
lt_prog_compiler_static_CXX \
lt_cv_prog_compiler_c_o_CXX \
export_dynamic_flag_spec_CXX \
whole_archive_flag_spec_CXX \
compiler_needs_object_CXX \
with_gnu_ld_CXX \
allow_undefined_flag_CXX \
no_undefined_flag_CXX \
hardcode_libdir_flag_spec_CXX \
hardcode_libdir_flag_spec_ld_CXX \
hardcode_libdir_separator_CXX \
exclude_expsyms_CXX \
include_expsyms_CXX \
file_list_spec_CXX \
compiler_lib_search_dirs_CXX \
predep_objects_CXX \
postdep_objects_CXX \
predeps_CXX \
postdeps_CXX \
compiler_lib_search_path_CXX; do
d26175 1
a26175 12
sys_lib_dlsearch_path_spec \
reload_cmds_CXX \
old_archive_cmds_CXX \
old_archive_from_new_cmds_CXX \
old_archive_from_expsyms_cmds_CXX \
archive_cmds_CXX \
archive_expsym_cmds_CXX \
module_cmds_CXX \
module_expsym_cmds_CXX \
export_symbols_cmds_CXX \
prelink_cmds_CXX \
postlink_cmds_CXX; do
a26205 2


d26218 1
a26227 1
    "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
d26235 8
a26242 10
    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
    "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
    "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
    "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
    "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
a26245 4
    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
    "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
    "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
d26295 1
a26295 18
if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  ac_cs_awk_getline=:
  ac_cs_awk_pipe_init=
  ac_cs_awk_read_file='
      while ((getline aline < (F[key])) > 0)
	print(aline)
      close(F[key])'
  ac_cs_awk_pipe_fini=
else
  ac_cs_awk_getline=false
  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  ac_cs_awk_read_file='
      print "|#_!!_#|"
      print "cat " F[key] " &&"
      '$ac_cs_awk_pipe_init
  # The final `:' finishes the AND list.
  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
fi
a26312 11
# Create commands to substitute file output variables.
{
  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  echo "_ACAWK" &&
  echo "_ACEOF"
} >conf$$files.sh &&
. ./conf$$files.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
rm -f conf$$files.sh
d26389 1
a26389 1
  \$ac_cs_awk_pipe_init
d26407 1
a26407 7
  if (nfields == 3 && !substed) {
    key = field[2]
    if (F[key] != "" && line ~ /^[	 ]*@@.*@@[	 ]*$/) {
      \$ac_cs_awk_read_file
      next
    }
  }
d26410 1
a26410 1
\$ac_cs_awk_pipe_fini
d26757 1
a26757 6
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
if $ac_cs_awk_getline; then
  $AWK -f "$ac_tmp/subs.awk"
else
  $AWK -f "$ac_tmp/subs.awk" | $SHELL
fi \
d26987 1
a26987 1
available_tags="CXX "
a27374 14
# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects
postdep_objects=$lt_postdep_objects
predeps=$lt_predeps
postdeps=$lt_postdeps

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path

a27566 157

    cat <<_LT_EOF >> "$ofile"

# ### BEGIN LIBTOOL TAG CONFIG: CXX

# The linker used to build libraries.
LD=$lt_LD_CXX

# How to create reloadable object files.
reload_flag=$lt_reload_flag_CXX
reload_cmds=$lt_reload_cmds_CXX

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds_CXX

# A language specific compiler.
CC=$lt_compiler_CXX

# Is the compiler the GNU compiler?
with_gcc=$GCC_CXX

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object_CXX

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld_CXX

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute_CXX

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic_CXX

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath_CXX

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds_CXX

# Commands necessary for finishing linking programs.
postlink_cmds=$lt_postlink_cmds_CXX

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec_CXX

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects_CXX
postdep_objects=$lt_postdep_objects_CXX
predeps=$lt_predeps_CXX
postdeps=$lt_postdeps_CXX

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX

# ### END LIBTOOL TAG CONFIG: CXX
_LT_EOF

a27567 1
    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
d27569 8
a27576 5
    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
    "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
    "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
    "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
    "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
@


1.1.1.2.16.2
log
@Pull up following revision(s) (requested by christos in ticket #1342):
	doc/3RDPARTY: patch
	external/bsd/ntp/Makefile.inc: up to 1.15
	external/bsd/ntp/bin/ntpd/Makefile: up to 1.19
	external/bsd/ntp/bin/ntpd/ntp_parser.c: patch
	external/bsd/ntp/bin/ntpd/ntp_parser.h: patch
	external/bsd/ntp/bin/sntp/Makefile: up to 1.6
	external/bsd/ntp/bin/sntp/event2/event-config.h: delete
	external/bsd/ntp/bin/sntp/evlog.c: delete
	external/bsd/ntp/dist/COPYRIGHT: up to 1.1.1.5
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.7
	external/bsd/ntp/dist/CommitLog: up to 1.1.1.7
	external/bsd/ntp/dist/Makefile.am: up to 1.1.1.7
	external/bsd/ntp/dist/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/NEWS: up to 1.1.1.7
	external/bsd/ntp/dist/README.leapsmear: up to 1.1.1.1
	external/bsd/ntp/dist/aclocal.m4: up to 1.1.1.7
	external/bsd/ntp/dist/adjtimed/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/adjtimed/adjtimed.c: up to 1.4
	external/bsd/ntp/dist/bootstrap: up to 1.1.1.5
	external/bsd/ntp/dist/build: up to 1.1.1.5
	external/bsd/ntp/dist/clockstuff/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/clockstuff/chutest.c: up to 1.4
	external/bsd/ntp/dist/clockstuff/propdelay.c: up to 1.4
	external/bsd/ntp/dist/config.h.in: up to 1.1.1.6
	external/bsd/ntp/dist/configure: up to 1.1.1.7
	external/bsd/ntp/dist/configure.ac: up to 1.1.1.7
	external/bsd/ntp/dist/html/build.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/confopt.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/copyright.html: up to 1.1.1.5
	external/bsd/ntp/dist/html/decode.html: up to 1.1.1.5
	external/bsd/ntp/dist/html/drivers/driver22.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/drivers/driver28.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/drivers/driver40-ja.html: up to 1.1.1.1
	external/bsd/ntp/dist/html/drivers/driver40.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/drivers/driver46.html: up to 1.1.1.2
	external/bsd/ntp/dist/html/miscopt.html: up to 1.1.1.6
	external/bsd/ntp/dist/html/refclock.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/sntp.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/stats.html: up to 1.1.1.3
	external/bsd/ntp/dist/include/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/include/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/include/binio.h: up to 1.4
	external/bsd/ntp/dist/include/isc/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/include/mbg_gps166.h: up to 1.4
	external/bsd/ntp/dist/include/ntp.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_assert.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_calendar.h: up to 1.5
	external/bsd/ntp/dist/include/ntp_config.h: up to 1.9
	external/bsd/ntp/dist/include/ntp_control.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_fp.h: up to 1.7
	external/bsd/ntp/dist/include/ntp_io.h: up to 1.3
	external/bsd/ntp/dist/include/ntp_lists.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_md5.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_stdlib.h: up to 1.11
	external/bsd/ntp/dist/include/ntp_syslog.h: up to 1.4
	external/bsd/ntp/dist/include/ntp_types.h: up to 1.4
	external/bsd/ntp/dist/include/ntpd.h: up to 1.7
	external/bsd/ntp/dist/include/parse.h: up to 1.4
	external/bsd/ntp/dist/include/parse_conf.h: up to 1.4
	external/bsd/ntp/dist/include/rc_cmdlength.h: up to 1.1.1.1
	external/bsd/ntp/dist/include/refidsmear.h: up to 1.1.1.2
	external/bsd/ntp/dist/include/timepps-Solaris.h: up to 1.4
	external/bsd/ntp/dist/kernel/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/kernel/sys/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/kernel/sys/parsestreams.h: up to 1.4
	external/bsd/ntp/dist/lib/isc/include/isc/backtrace.h: up to 1.4
	external/bsd/ntp/dist/lib/isc/include/isc/socket.h: up to 1.4
	external/bsd/ntp/dist/lib/isc/inet_ntop.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/log.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/result.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/unix/file.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/unix/ifiter_getifaddrs.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/unix/ifiter_ioctl.c: up to 1.4
	external/bsd/ntp/dist/lib/isc/unix/net.c: up to 1.7
	external/bsd/ntp/dist/libjsmn/Makefile: up to 1.1.1.2
	external/bsd/ntp/dist/libjsmn/README.md: up to 1.1.1.2
	external/bsd/ntp/dist/libjsmn/example/jsondump.c: up to 1.1.1.2
	external/bsd/ntp/dist/libjsmn/example/simple.c: up to 1.1.1.2
	external/bsd/ntp/dist/libjsmn/jsmn.c: up to 1.4
	external/bsd/ntp/dist/libjsmn/jsmn.h: up to 1.3
	external/bsd/ntp/dist/libjsmn/jsmn_test.c: up to 1.3
	external/bsd/ntp/dist/libntp/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/libntp/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/libntp/atolfp.c: up to 1.7
	external/bsd/ntp/dist/libntp/audio.c: up to 1.9
	external/bsd/ntp/dist/libntp/authkeys.c: up to 1.7
	external/bsd/ntp/dist/libntp/authreadkeys.c: up to 1.7
	external/bsd/ntp/dist/libntp/caljulian.c: up to 1.4
	external/bsd/ntp/dist/libntp/caltontp.c: up to 1.4
	external/bsd/ntp/dist/libntp/decodenetnum.c: up to 1.4
	external/bsd/ntp/dist/libntp/emalloc.c: up to 1.6
	external/bsd/ntp/dist/libntp/icom.c: up to 1.8
	external/bsd/ntp/dist/libntp/machines.c: up to 1.4
	external/bsd/ntp/dist/libntp/msyslog.c: up to 1.4
	external/bsd/ntp/dist/libntp/ntp_calendar.c: up to 1.7
	external/bsd/ntp/dist/libntp/ntp_crypto_rnd.c: up to 1.4
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to 1.7
	external/bsd/ntp/dist/libntp/ntp_lineedit.c: up to 1.8
	external/bsd/ntp/dist/libntp/ntp_rfc2553.c: up to 1.4
	external/bsd/ntp/dist/libntp/ntp_worker.c: up to 1.4
	external/bsd/ntp/dist/libntp/prettydate.c: up to 1.7
	external/bsd/ntp/dist/libntp/recvbuff.c: up to 1.4
	external/bsd/ntp/dist/libntp/refidsmear.c: up to 1.1.1.2
	external/bsd/ntp/dist/libntp/socket.c: up to 1.4
	external/bsd/ntp/dist/libntp/socktohost.c: up to 1.4
	external/bsd/ntp/dist/libntp/statestr.c: up to 1.4
	external/bsd/ntp/dist/libntp/strdup.c: up to 1.3
	external/bsd/ntp/dist/libntp/work_fork.c: up to 1.7
	external/bsd/ntp/dist/libparse/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/libparse/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/libparse/clk_computime.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_dcf7000.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_hopf6021.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_meinberg.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_rawdcf.c: up to 1.6
	external/bsd/ntp/dist/libparse/clk_rcc8000.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_schmid.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_sel240x.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_trimtaip.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_trimtsip.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_varitext.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_wharton.c: up to 1.4
	external/bsd/ntp/dist/libparse/data_mbg.c: up to 1.7
	external/bsd/ntp/dist/libparse/gpstolfp.c: up to 1.4
	external/bsd/ntp/dist/libparse/info_trimble.c: up to 1.6
	external/bsd/ntp/dist/libparse/mkinfo_rcmd.sed: up to 1.1.1.3
	external/bsd/ntp/dist/libparse/mkinfo_scmd.sed: up to 1.1.1.3
	external/bsd/ntp/dist/libparse/parse.c: up to 1.4
	external/bsd/ntp/dist/libparse/parse_conf.c: up to 1.4
	external/bsd/ntp/dist/libparse/parsesolaris.c: up to 1.4
	external/bsd/ntp/dist/libparse/parsestreams.c: up to 1.4
	external/bsd/ntp/dist/libparse/trim_info.c: up to 1.4
	external/bsd/ntp/dist/ntpd/Makefile.am: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/cmd_args.c: up to 1.4
	external/bsd/ntp/dist/ntpd/complete.conf.in: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to 1.1.1.4
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to 1.20
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to 1.8
	external/bsd/ntp/dist/ntpd/ntp_leapsec.c: up to 1.4
	external/bsd/ntp/dist/ntpd/ntp_leapsec.h: up to 1.3
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to 1.8
	external/bsd/ntp/dist/ntpd/ntp_monitor.c: up to 1.4
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_peer.c: up to 1.8
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_refclock.c: up to 1.8
	external/bsd/ntp/dist/ntpd/ntp_request.c: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_restrict.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntp_scanner.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_scanner.h: up to 1.3
	external/bsd/ntp/dist/ntpd/ntp_timer.c: up to 1.5
	external/bsd/ntp/dist/ntpd/ntp_util.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.5
	external/bsd/ntp/dist/ntpd/ntpd-opts.def: up to 1.1.1.4
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.8
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntpd.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/ntpdbase-opts.def: up to 1.1.1.4
	external/bsd/ntp/dist/ntpd/rc_cmdlength.c: up to 1.3
	external/bsd/ntp/dist/ntpd/refclock_arc.c: up to 1.8
	external/bsd/ntp/dist/ntpd/refclock_chu.c: up to 1.7
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to 1.7
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to 1.8
	external/bsd/ntp/dist/ntpd/refclock_jupiter.c: up to 1.9
	external/bsd/ntp/dist/ntpd/refclock_local.c: up to 1.4
	external/bsd/ntp/dist/ntpd/refclock_nmea.c: up to 1.10
	external/bsd/ntp/dist/ntpd/refclock_oncore.c: up to 1.12
	external/bsd/ntp/dist/ntpd/refclock_palisade.c: up to 1.5
	external/bsd/ntp/dist/ntpd/refclock_palisade.h: up to 1.4
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to 1.17
	external/bsd/ntp/dist/ntpd/refclock_shm.c: up to 1.6
	external/bsd/ntp/dist/ntpd/refclock_true.c: up to 1.5
	external/bsd/ntp/dist/ntpd/refclock_wwv.c: up to 1.6
	external/bsd/ntp/dist/ntpdate/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdate/ntpdate.c: up to 1.8
	external/bsd/ntp/dist/ntpdc/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.5
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.5
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/ntpdc.c: up to 1.11
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/libntpq.h: up to 1.4
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.5
	external/bsd/ntp/dist/ntpq/ntpq-opts.def: up to 1.1.1.4
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.5
	external/bsd/ntp/dist/ntpq/ntpq-subs.c: up to 1.12
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq.c: up to 1.13
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/netsnmp_daemonize.c: up to 1.4
	external/bsd/ntp/dist/ntpsnmpd/ntp_snmp.h: up to 1.4
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.7
	external/bsd/ntp/dist/parseutil/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/parseutil/dcfd.c: up to 1.4
	external/bsd/ntp/dist/parseutil/testdcf.c: up to 1.4
	external/bsd/ntp/dist/scripts/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/build/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/build/UpdatePoint: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/build/VersionName: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/lib/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/lib/NTP/Util.pm: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.in: up to 1.1.1.4
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/update-leap/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.menu: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts.def: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap.in: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap.sh: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap.texi: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/COPYRIGHT: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/Makefile.am: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/aclocal.m4: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/config.h.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/configure.ac: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/include/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/include/autogen-version.def: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/include/copyright.def: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/include/ntp.lic: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/kod_management.c: up to 1.6
	external/bsd/ntp/dist/sntp/libevent/ChangeLog: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/README: delete
	external/bsd/ntp/dist/sntp/libevent/WIN32-Code/nmake/event2/event-config.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/WIN32-Code/tree.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/aclocal.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/buffer.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/bufferevent.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/bufferevent_async.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/bufferevent_filter.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/bufferevent_openssl.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/bufferevent_pair.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/ar-lib: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/libevent/build-aux/ltmain.sh: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/libevent/build-aux/test-driver: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/libevent/config.h.in: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/configure: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/configure.ac: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/evbuffer-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evdns.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/event.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/event_tagging.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evrpc-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evthread-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evthread.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evutil.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/evutil_time.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/ht-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/http-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/http.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/buffer.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/dns.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/event.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/http.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/listener.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/include/event2/util.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/kqueue.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/listener.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/m4/acx_pthread.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/libevent/m4/ltversion.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/libevent/m4/openldap-thread-check.m4: delete
	external/bsd/ntp/dist/sntp/libevent/m4/openldap.m4: delete
	external/bsd/ntp/dist/sntp/libevent/sample/dns-example.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/event-read-fifo.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/hello-world.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.h: delete
	external/bsd/ntp/dist/sntp/libevent/sample/http-server.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/https-client.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/include.am: delete
	external/bsd/ntp/dist/sntp/libevent/sample/le-proxy.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.h: delete
	external/bsd/ntp/dist/sntp/libevent/sample/signal-test.c: delete
	external/bsd/ntp/dist/sntp/libevent/sample/time-test.c: delete
	external/bsd/ntp/dist/sntp/libevent/test/bench_httpclient.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/include.am: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/test/regress.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/regress.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_buffer.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_bufferevent.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_dns.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/regress_finalize.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_http.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/regress_main.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_minheap.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/regress_ssl.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_thread.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_util.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_zlib.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/test-fdleak.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/test-ratelim.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/test-time.c: up to 1.5
	external/bsd/ntp/dist/sntp/libevent/test/tinytest.c: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/tinytest.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/test/tinytest_macros.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/time-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/util-internal.h: up to 1.4
	external/bsd/ntp/dist/sntp/libevent/whatsnew-2.1.txt: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libopts/COPYING.gplv3: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/COPYING.lgplv3: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/COPYING.mbsd: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/libopts/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libopts/README: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/ag-char-map.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/alias.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/ao-strs.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/ao-strs.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/autoopts.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/autoopts.h: up to 1.9
	external/bsd/ntp/dist/sntp/libopts/autoopts/options.h: up to 1.10
	external/bsd/ntp/dist/sntp/libopts/autoopts/project.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/autoopts/usage-txt.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/boolean.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/check.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/compat/compat.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/compat/pathfind.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/compat/windows-config.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/configfile.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/cook.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/enum.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/env.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/file.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/find.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/genshell.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/gettext.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/init.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/intprops.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/libopts.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/load.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/m4/libopts.m4: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/libopts/m4/liboptschk.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/m4/stdnoreturn.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/libopts/makeshell.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/nested.c: up to 1.8
	external/bsd/ntp/dist/sntp/libopts/numeric.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/option-value-type.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/option-value-type.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/parse-duration.c: up to 1.7
	external/bsd/ntp/dist/sntp/libopts/parse-duration.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/pgusage.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/proto.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/putshell.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/reset.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/restore.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/save.c: up to 1.8
	external/bsd/ntp/dist/sntp/libopts/sort.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/stack.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/stdnoreturn.in.h: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/streqvcmp.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/text_mmap.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/time.c: up to 1.3
	external/bsd/ntp/dist/sntp/libopts/tokenize.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/usage.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/version.c: up to 1.3
	external/bsd/ntp/dist/sntp/libpkgver/colcomp.c: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/libpkgver/pkgver.h: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/loc/darwin: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/debian: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/freebsd: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/legacy: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/netbsd: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/solaris: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/log.c: up to 1.9
	external/bsd/ntp/dist/sntp/log.h: up to 1.7
	external/bsd/ntp/dist/sntp/m4/ax_c99_struct_init.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/hms_search_lib.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ltversion.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ntp_compiler.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/m4/ntp_locinfo.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_openssl.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ntp_problemtests.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/ntp_rlimit.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ntp_unitytest.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/openldap-thread-check.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/openldap.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/os_cflags.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/main.c: up to 1.13
	external/bsd/ntp/dist/sntp/networking.c: up to 1.12
	external/bsd/ntp/dist/sntp/scripts/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/scripts/cvo.sh: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/scripts/genLocInfo: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.6
	external/bsd/ntp/dist/sntp/sntp-opts.def: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.5
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/crypto.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/crypto.cpp: delete
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h: delete
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h.in: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/tests/keyFile.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/keyFile.cpp: delete
	external/bsd/ntp/dist/sntp/tests/kodDatabase.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/kodDatabase.cpp: delete
	external/bsd/ntp/dist/sntp/tests/kodFile.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/kodFile.cpp: delete
	external/bsd/ntp/dist/sntp/tests/networking.c: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/tests/networking.cpp: delete
	external/bsd/ntp/dist/sntp/tests/packetHandling.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/packetHandling.cpp: delete
	external/bsd/ntp/dist/sntp/tests/packetProcessing.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/packetProcessing.cpp: delete
	external/bsd/ntp/dist/sntp/tests/run-crypto.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-keyFile.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-kodDatabase.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-kodFile.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-networking.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-packetHandling.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/run-t-log.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/tests/run-utilities.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/sntptest.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/tests/sntptest.h: up to 1.4
	external/bsd/ntp/dist/sntp/tests/t-log.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/tests/utilities.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/utilities.cpp: delete
	external/bsd/ntp/dist/sntp/tests_main.cpp: delete
	external/bsd/ntp/dist/sntp/tests_main.h: delete
	external/bsd/ntp/dist/sntp/unity/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/Makefile.in: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/auto/colour_prompt.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/colour_reporter.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/generate_config.yml: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/generate_module.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/generate_test_runner.rb: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/auto/parseOutput.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/runner_maybe.c: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/auto/test_file_filter.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/type_sanitizer.rb: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/unity_test_summary.py: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/unity_test_summary.rb: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/unity/unity.h: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity_config.h: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/unity_fixture.c: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity_fixture.h: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity_fixture_internals.h: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity_fixture_malloc_overrides.h: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/unity/unity_internals.h: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/version.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/bug-2803/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/tests/bug-2803/Makefile.in: up to 1.1.1.2
	external/bsd/ntp/dist/tests/bug-2803/bug-2803.c: up to 1.1.1.2
	external/bsd/ntp/dist/tests/bug-2803/run-bug-2803.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/tests/libntp/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.cpp: delete
	external/bsd/ntp/dist/tests/libntp/atoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/atoint.cpp: delete
	external/bsd/ntp/dist/tests/libntp/atouint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/atouint.cpp: delete
	external/bsd/ntp/dist/tests/libntp/authkeys.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/authkeys.cpp: delete
	external/bsd/ntp/dist/tests/libntp/buftvtots.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/buftvtots.cpp: delete
	external/bsd/ntp/dist/tests/libntp/calendar.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/calendar.cpp: delete
	external/bsd/ntp/dist/tests/libntp/caljulian.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/caljulian.cpp:: delete
	external/bsd/ntp/dist/tests/libntp/caltontp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/caltontp.cpp: delete
	external/bsd/ntp/dist/tests/libntp/calyearstart.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/calyearstart.cpp: delete
	external/bsd/ntp/dist/tests/libntp/clocktime.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/clocktime.cpp: delete
	external/bsd/ntp/dist/tests/libntp/decodenetnum.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/decodenetnum.cpp: delete
	external/bsd/ntp/dist/tests/libntp/hextoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/hextoint.cpp: delete
	external/bsd/ntp/dist/tests/libntp/hextolfp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/hextolfp.cpp: delete
	external/bsd/ntp/dist/tests/libntp/humandate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/humandate.cpp: delete
	external/bsd/ntp/dist/tests/libntp/lfpfunc.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/lfpfunc.cpp: delete
	external/bsd/ntp/dist/tests/libntp/lfptest.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/lfptest.h: up to 1.4
	external/bsd/ntp/dist/tests/libntp/lfptostr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/lfptostr.cpp: delete
	external/bsd/ntp/dist/tests/libntp/libntptest.cpp: delete
	external/bsd/ntp/dist/tests/libntp/libntptest.h: delete
	external/bsd/ntp/dist/tests/libntp/modetoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/modetoa.cpp: delete
	external/bsd/ntp/dist/tests/libntp/msyslog.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/msyslog.cpp: delete
	external/bsd/ntp/dist/tests/libntp/netof.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/netof.cpp: delete
	external/bsd/ntp/dist/tests/libntp/numtoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/numtoa.cpp: delete
	external/bsd/ntp/dist/tests/libntp/numtohost.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/numtohost.cpp: delete
	external/bsd/ntp/dist/tests/libntp/octtoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/octtoint.cpp: delete
	external/bsd/ntp/dist/tests/libntp/prettydate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/prettydate.cpp: delete
	external/bsd/ntp/dist/tests/libntp/recvbuff.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/recvbuff.cpp: delete
	external/bsd/ntp/dist/tests/libntp/refidsmear.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/refnumtoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/refnumtoa.cpp: delete
	external/bsd/ntp/dist/tests/libntp/run-a_md5encrypt.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-atoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-atouint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-authkeys.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-buftvtots.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-calendar.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-caljulian.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-caltontp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-calyearstart.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-clocktime.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-decodenetnum.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-hextoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-hextolfp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-humandate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-lfpfunc.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-lfptostr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-modetoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-msyslog.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-netof.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-numtoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-numtohost.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-octtoint.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-prettydate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-recvbuff.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-refidsmear.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-refnumtoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-sfptostr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-socktoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-ssl_init.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-statestr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-strtolfp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-timespecops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-timevalops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-tstotv.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-tvtots.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-uglydate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-vi64ops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/run-ymd2yd.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/sfptostr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/sfptostr.cpp: delete
	external/bsd/ntp/dist/tests/libntp/sockaddrtest.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/sockaddrtest.h: up to 1.4
	external/bsd/ntp/dist/tests/libntp/socktoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/socktoa.cpp: delete
	external/bsd/ntp/dist/tests/libntp/ssl_init.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/ssl_init.cpp: delete
	external/bsd/ntp/dist/tests/libntp/statestr.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/statestr.cpp: delete
	external/bsd/ntp/dist/tests/libntp/strtolfp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/strtolfp.cpp: delete
	external/bsd/ntp/dist/tests/libntp/test-libntp.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/test-libntp.h: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/timespecops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/timespecops.cpp: delete
	external/bsd/ntp/dist/tests/libntp/timestructs.cpp: delete
	external/bsd/ntp/dist/tests/libntp/timestructs.h: delete
	external/bsd/ntp/dist/tests/libntp/timevalops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/timevalops.cpp: delete
	external/bsd/ntp/dist/tests/libntp/tstotv.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/tstotv.cpp: delete
	external/bsd/ntp/dist/tests/libntp/tvtots.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/tvtots.cpp: delete
	external/bsd/ntp/dist/tests/libntp/uglydate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/uglydate.cpp: delete
	external/bsd/ntp/dist/tests/libntp/vi64ops.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/vi64ops.cpp: delete
	external/bsd/ntp/dist/tests/libntp/ymd2yd.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/ymd2yd.cpp: delete
	external/bsd/ntp/dist/tests/ntpd/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/tests/ntpd/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/ntpd/leapsec.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/leapsec.cpp: delete
	external/bsd/ntp/dist/tests/ntpd/ntp_prio_q.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/ntp_restrict.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/ntpdtest.cpp: delete
	external/bsd/ntp/dist/tests/ntpd/ntpdtest.h: delete
	external/bsd/ntp/dist/tests/ntpd/rc_cmdlength.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-leapsec.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-ntp_prio_q.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-ntp_restrict.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-rc_cmdlength.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-t-ntp_scanner.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/run-t-ntp_signd.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/t-ntp_scanner.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpd/t-ntp_signd.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpq/Makefile.am: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpq/Makefile.in: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpq/run-t-ntpq.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpq/t-ntpq.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/sandbox/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sandbox/Makefile.in: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sandbox/bug-2803.c: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sandbox/modetoa.c: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sandbox/run-modetoa.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/run-uglydate.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/run-ut-2803.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/smeartest.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/uglydate.c: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sandbox/ut-2803.c: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sec-2853/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sec-2853/Makefile.in: up to 1.1.1.2
	external/bsd/ntp/dist/tests/sec-2853/run-sec-2853.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sec-2853/sec-2853.c: up to 1.1.1.3
	external/bsd/ntp/dist/util/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/util/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.5
	external/bsd/ntp/dist/util/jitter.c: up to 1.4
	external/bsd/ntp/dist/util/jitter.h: delete
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.10
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.5
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.5
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/util/ntp-keygen.c: up to 1.9
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.5
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/util/ntptime.c: up to 1.7
	external/bsd/ntp/html/Makefile: up to 1.3
	external/bsd/ntp/importdate: up to 1.7
	external/bsd/ntp/include/config.h: up to 1.13
	external/bsd/ntp/ntp2netbsd: up to 1.5
	external/bsd/ntp/scripts/mkver: up to 1.7
Update ntp to 4.2.8p4.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p4.
d8 3
a10 1
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
a138 25
# Use a proper internal environment variable to ensure we don't fall
  # into an infinite loop, continuously re-executing ourselves.
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    _as_can_reexec=no; export _as_can_reexec;
    # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
as_fn_exit 255
  fi
  # We don't want this to propagate to other subprocesses.
          { _as_can_reexec=; unset _as_can_reexec;}
d172 1
a172 2
test x\$exitcode = x0 || exit 1
test -x / || exit 1"
d225 15
a239 19
  export CONFIG_SHELL
             # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
a341 8

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
a462 4
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  # already done that, so ensure we don't try to do so again and fall
  # in an infinite loop.  This has already happened in practice.
  _as_can_reexec=no; export _as_can_reexec
d497 1
a497 1
    # In both cases, we have to default to `cp -pR'.
d499 1
a499 1
      as_ln_s='cp -pR'
d503 1
a503 1
    as_ln_s='cp -pR'
d506 1
a506 1
  as_ln_s='cp -pR'
d518 22
a539 2
as_test_x='test -x'
as_executable_p=as_fn_executable_p
d571 4
a574 4
PACKAGE_NAME='ntp'
PACKAGE_TARNAME='ntp'
PACKAGE_VERSION='4.2.8p4'
PACKAGE_STRING='ntp 4.2.8p4'
a621 6
BUILD_TEST_NTP_SIGND_FALSE
BUILD_TEST_NTP_SIGND_TRUE
BUILD_TEST_NTP_SCANNER_FALSE
BUILD_TEST_NTP_SCANNER_TRUE
BUILD_TEST_NTP_RESTRICT_FALSE
BUILD_TEST_NTP_RESTRICT_TRUE
a628 4
UNITYBUILD_AVAILABLE_FALSE
UNITYBUILD_AVAILABLE_TRUE
PATH_RUBY
HAVE_LEAPSMEARINTERVAL
d652 1
a668 2
LTHREAD_LIBS
BUILD_THREAD
a669 1
LDADD_LIBUTIL
a675 6
BUILD_LIBEVENT_FALSE
BUILD_LIBEVENT_TRUE
LDADD_LIBEVENT
CPPFLAGS_LIBEVENT
CFLAGS_LIBEVENT
PKG_CONFIG
d696 2
a707 9
ac_ct_AR
AR
INSTALL_UPDATE_LEAP_FALSE
INSTALL_UPDATE_LEAP_TRUE
UPDATE_LEAP_NI
UPDATE_LEAP_MS
UPDATE_LEAP_DS
UPDATE_LEAP_DL
UPDATE_LEAP_DB
a807 1
am__nodep
a830 2
AM_DEFAULT_V
AM_V
a1011 1
enable_leap_smear
a1012 1
enable_problem_tests
d1484 2
d1571 1
a1571 1
\`configure' configures ntp 4.2.8p4 to adapt to many kinds of systems.
d1619 1
a1619 1
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp]
d1641 1
a1641 1
     short | recursive ) echo "Configuration of ntp 4.2.8p4:";;
d1651 4
a1654 6
  --enable-silent-rules   less verbose build output (undo: "make V=1")
  --disable-silent-rules  verbose build output (undo: "make V=0")
  --enable-dependency-tracking
                          do not reject slow dependency extractors
  --disable-dependency-tracking
                          speeds up one-time build
d1687 1
a1687 1
  --with-memlock          ? =32 (-1 on linux) megabytes
a1781 1
  --enable-leap-smear     - experimental leap smear code
a1782 1
  --enable-problem-tests  + enable tests with undiagnosed problems
d1807 1
a1807 1
ntp home page: <http://www.ntp.org./>.
d1870 2
a1871 2
ntp configure 4.2.8p4
generated by GNU Autoconf 2.69
d1873 1
a1873 1
Copyright (C) 2012 Free Software Foundation, Inc.
d2150 1
a2150 1
	 test -x conftest$ac_exeext
d2338 1
a2338 1
	 test -x conftest$ac_exeext
d2428 1
a2428 2
test_array [0] = 0;
return test_array [0];
d2444 1
a2444 2
test_array [0] = 0;
return test_array [0];
d2470 1
a2470 2
test_array [0] = 0;
return test_array [0];
d2486 1
a2486 2
test_array [0] = 0;
return test_array [0];
d2520 1
a2520 2
test_array [0] = 0;
return test_array [0];
d2695 2
a2696 2
It was created by ntp $as_me 4.2.8p4, which was
generated by GNU Autoconf 2.69.  Invocation command line was
a3073 6
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

d3204 1
a3204 1
am__api_version='1.15'
d3243 1
a3243 1
	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d3301 3
d3314 1
a3314 1
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
d3317 1
a3317 1
# Do 'set' in a subshell so we don't clobber the current shell's
d3323 16
a3338 10
   am_has_slept=no
   for am_try in 1 2; do
     echo "timestamp, slept: $am_has_slept" > conftest.file
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
     if test "$*" = "X"; then
	# -L didn't work.
	set X `ls -t "$srcdir/configure" conftest.file`
     fi
     if test "$*" != "X $srcdir/configure conftest.file" \
	&& test "$*" != "X conftest.file $srcdir/configure"; then
a3339 14
	# If neither matched, then we have a broken ls.  This can happen
	# if, for instance, CONFIG_SHELL is bash and it inherits a
	# broken ls alias from the environment.  This has actually
	# happened.  Such a system could not be considered "sane".
	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  alias in your environment" "$LINENO" 5
     fi
     if test "$2" = conftest.file || test $am_try -eq 2; then
       break
     fi
     # Just in case.
     sleep 1
     am_has_slept=yes
   done
a3350 10
# If we didn't sleep, we still need to ensure time stamps of config.status and
# generated files are strictly newer.
am_sleep_pid=
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  ( sleep 1 ) &
  am_sleep_pid=$!
fi

rm -f conftest.file

d3361 2
a3362 2
# Expand $ac_aux_dir to an absolute path.
am_aux_dir=`cd "$ac_aux_dir" && pwd`
d3373 2
a3374 2
if eval "$MISSING --is-lightweight"; then
  am_missing_run="$MISSING "
d3377 2
a3378 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
d3381 1
a3381 1
if test x"${install_sh+set}" != xset; then
d3390 2
a3391 2
# Installed binaries are usually stripped using 'strip' when the user
# run "make install-strip".  However 'strip' might not be the right
d3393 1
a3393 1
# will honor the 'STRIP' environment variable to overrule this program.
d3412 1
a3412 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3452 1
a3452 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3503 1
a3503 1
	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
d3532 6
d3556 1
a3556 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a3619 39
# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in # (((
  yes) AM_DEFAULT_VERBOSITY=0;;
   no) AM_DEFAULT_VERBOSITY=1;;
    *) AM_DEFAULT_VERBOSITY=1;;
esac
am_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if ${am_cv_make_support_nested_variables+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
	@@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  am_cv_make_support_nested_variables=yes
else
  am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
    AM_V='$(V)'
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
  AM_V=$AM_DEFAULT_VERBOSITY
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
AM_BACKSLASH='\'

d3641 2
a3642 2
 PACKAGE='ntp'
 VERSION='4.2.8p4'
d3670 3
a3672 15
# For better backward compatibility.  To be removed once Automake 1.9.x
# dies out for good.  For more background, see:
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
mkdir_p='$(MKDIR_P)'

# We need awk for the "check" target (and possibly the TAP driver).  The
# system "awk" is bad on some platforms.
# Always define AMTAR for backward compatibility.  Yes, it's still used
# in the wild :-(  We should find a proper way to deprecate it ...
AMTAR='$${TAR-tar}'


# We'll loop over all known methods to create a tar archive until one works.
_am_tools='gnutar  pax cpio none'
d3674 1
a3674 1
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d3676 1
a3681 42
# POSIX will say in a future version that running "rm -f" with no argument
# is OK; and we want to be able to make that assumption in our Makefile
# recipes.  So use an aggressive probe to check that the usage we want is
# actually supported "in the wild" to an acceptable degree.
# See automake bug#10828.
# To make any issue more visible, cause the running configure to be aborted
# by default if the 'rm' program in use doesn't match our expectations; the
# user can still override this though.
if rm -f && rm -fr && rm -rf; then : OK; else
  cat >&2 <<'END'
Oops!

Your 'rm' program seems unable to run without file operands specified
on the command line, even when the '-f' option is present.  This is contrary
to the behaviour of most rm programs out there, and not conforming with
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>

Please tell bug-automake@@gnu.org about your system, including the value
of your $PATH and any error possibly output before this message.  This
can help us improve future automake versions.

END
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
    echo 'Configuration will proceed anyway, since you have set the' >&2
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
    echo >&2
  else
    cat >&2 <<'END'
Aborting the configuration process, to ensure you take notice of the issue.

You can download and install GNU coreutils to get an 'rm' implementation
that behaves properly: <http://www.gnu.org/software/coreutils/>.

If you want to complete the configuration process using your problematic
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
to "yes", and re-run configure.

END
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  fi
fi

d3688 4
a3691 4
case $enable_silent_rules in # (((
  yes) AM_DEFAULT_VERBOSITY=0;;
   no) AM_DEFAULT_VERBOSITY=1;;
    *) AM_DEFAULT_VERBOSITY=0;;
a3692 27
am_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if ${am_cv_make_support_nested_variables+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
	@@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  am_cv_make_support_nested_variables=yes
else
  am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
    AM_V='$(V)'
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
  AM_V=$AM_DEFAULT_VERBOSITY
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
d3800 1
a3800 1
# Ignore all kinds of additional output from 'make'.
a3832 1
  am__nodep='_no'
d3865 1
a3865 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3905 1
a3905 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3958 1
a3958 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3999 1
a3999 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4057 1
a4057 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4101 1
a4101 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4547 2
a4548 1
struct stat;
a4632 59
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
if ${am_cv_prog_cc_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
  # Make sure it works both with $CC and with simple cc.
  # Following AC_PROG_CC_C_O, we do the test twice because some
  # compilers refuse to overwrite an existing .o file with -o,
  # though they will create one.
  am_cv_prog_cc_c_o=yes
  for am_i in 1 2; do
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } \
         && test -f conftest2.$ac_objext; then
      : OK
    else
      am_cv_prog_cc_c_o=no
      break
    fi
  done
  rm -f core conftest*
  unset am_i
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
$as_echo "$am_cv_prog_cc_c_o" >&6; }
if test "$am_cv_prog_cc_c_o" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


d4644 2
a4645 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d4679 3
a4681 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d4685 1
a4685 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d4687 2
a4688 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d4697 2
a4698 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d4705 2
a4706 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d4915 1
a4915 1
      as_fn_executable_p "$ac_path_GREP" || continue
d4981 1
a4981 1
      as_fn_executable_p "$ac_path_EGREP" || continue
d5229 110
d5351 2
a5352 1
struct stat;
a5431 177
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if ${ac_cv_prog_cc_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>

// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}

// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;

struct incomplete_array
{
  int datasize;
  double data[];
};

struct named_init {
  int number;
  const wchar_t *name;
  double average;
};

typedef const char *ccp;

static inline int
test_restrict (ccp restrict text)
{
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
  return 0;
}

// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
{
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);

  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
}

int
main ()
{

  // Check bool.
  _Bool success = false;

  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";

  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);

  ;
  return 0;
}
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :

fi


d5458 1
a5458 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5498 1
a5498 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5551 1
a5551 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5592 1
a5592 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5650 1
a5650 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5694 1
a5694 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5890 2
a5891 1
struct stat;
a5975 59
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
if ${am_cv_prog_cc_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
  # Make sure it works both with $CC and with simple cc.
  # Following AC_PROG_CC_C_O, we do the test twice because some
  # compilers refuse to overwrite an existing .o file with -o,
  # though they will create one.
  am_cv_prog_cc_c_o=yes
  for am_i in 1 2; do
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } \
         && test -f conftest2.$ac_objext; then
      : OK
    else
      am_cv_prog_cc_c_o=no
      break
    fi
  done
  rm -f core conftest*
  unset am_i
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
$as_echo "$am_cv_prog_cc_c_o" >&6; }
if test "$am_cv_prog_cc_c_o" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


d5987 2
a5988 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d6022 3
a6024 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d6028 1
a6028 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d6030 2
a6031 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d6040 2
a6041 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d6048 2
a6049 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d6105 14
a6164 1

d6425 1
a6425 1
    # allow ntp_os_cflags to be preset to skip this stuff
d6468 1
a6468 1
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
d6478 1
a6478 1
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
d6513 1
a6513 1
    case "$ntp_os_cflags" in
a6523 32
    ###
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
$as_echo_n "checking additional linker flags... " >&6; }
    # HMS: The following might still need tweaking
    # allow ntp_os_ldflags to be preset to skip this stuff
    case "${ntp_os_ldflags+set}" in
     set)
	;;
     *)
	ntp_os_ldflags=
	case "$host_os" in
	 hpux*)
	    case "$GCC" in
	     yes)
		ntp_os_ldflags="-Wl,+allowdups"
		;;
	    esac
	    ;;
	esac
	;;
    esac
    case "$ntp_os_ldflags" in
     '')
	ntp_os_ldflags_msg="none needed"
	;;
     *)
	ntp_os_ldflags_msg="$ntp_os_ldflags"
    esac
    LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
$as_echo "$ntp_os_ldflags_msg" >&6; }
    { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
a7060 1
# Do we need CXX for anything besides google test?
d7089 1
a7089 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7133 1
a7133 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7329 2
a7330 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d7364 3
a7366 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d7370 1
a7370 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d7372 2
a7373 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d7382 2
a7383 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d7390 2
a7391 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d7463 1
a7463 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a7599 38
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }


	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			struct foo_s {int i1; int i2;};
			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



a7765 184

 if test -z "$UPDATE_LEAP_NI" ; then
  INSTALL_UPDATE_LEAP_TRUE=
  INSTALL_UPDATE_LEAP_FALSE='#'
else
  INSTALL_UPDATE_LEAP_TRUE='#'
  INSTALL_UPDATE_LEAP_FALSE=
fi



if test -n "$ac_tool_prefix"; then
  for ac_prog in ar lib "link -lib"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar lib "link -lib"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_AR" && break
done

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
fi

: ${AR=ar}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
$as_echo_n "checking the archiver ($AR) interface... " >&6; }
if ${am_cv_ar_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

   am_cv_ar_interface=ar
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int some_variable = 0;
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  (eval $am_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
        am_cv_ar_interface=ar
      else
        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  (eval $am_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        if test "$ac_status" -eq 0; then
          am_cv_ar_interface=lib
        else
          am_cv_ar_interface=unknown
        fi
      fi
      rm -f conftest.lib libconftest.a

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
$as_echo "$am_cv_ar_interface" >&6; }

case $am_cv_ar_interface in
ar)
  ;;
lib)
  # Microsoft lib, so override with the ar-lib wrapper script.
  # FIXME: It is wrong to rewrite AR.
  # But if we don't then we get into trouble of one sort or another.
  # A longer-term fix would be to have automake use am__AR in this case,
  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  # similar.
  AR="$am_aux_dir/ar-lib $AR"
  ;;
unknown)
  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  ;;
esac



d7807 2
a7808 2
macro_version='2.4.2'
macro_revision='1.3337'
d7915 1
a7915 1
      as_fn_executable_p "$ac_path_SED" || continue
d7994 1
a7994 1
      as_fn_executable_p "$ac_path_FGREP" || continue
d8250 1
a8250 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8294 1
a8294 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8713 1
a8713 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8753 1
a8753 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9059 1
a9059 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9099 1
a9099 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9202 1
a9202 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9246 1
a9246 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9371 1
a9371 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9411 1
a9411 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9470 1
a9470 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9510 1
a9510 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10145 1
a10145 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10185 1
a10185 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10265 1
a10265 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10305 1
a10305 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10357 1
a10357 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10397 1
a10397 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10449 1
a10449 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10489 1
a10489 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10541 1
a10541 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10581 1
a10581 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10633 1
a10633 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10673 1
a10673 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d18567 3
a18569 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
$as_echo_n "checking size of char *... " >&6; }
if ${ac_cv_sizeof_char_p+:} false; then :
d18572 1
a18572 1
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
d18575 1
a18575 1
  if test "$ac_cv_type_char_p" = yes; then
d18578 1
a18578 1
as_fn_error 77 "cannot compute sizeof (char *)
d18581 1
a18581 1
     ac_cv_sizeof_char_p=0
d18586 2
a18587 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
$as_echo "$ac_cv_sizeof_char_p" >&6; }
d18592 1
a18592 1
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
d19056 1
a19056 1
      as_fn_executable_p "$ac_path_SED" || continue
a19239 120
ntp_pkgconfig_min_version='0.15.0'
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}

case "$PKG_CONFIG" in
 /*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	PKG_CONFIG=""
    fi
    ;;
esac




a19251 91
ntp_libevent_min_version=2
ntp_libevent_tearoff=sntp/libevent





case "$ntp_use_local_libevent" in
 yes)
    ;;
 *) # If we have (a good enough) pkg-config, see if it can find libevent
    case "$PKG_CONFIG" in
     /*)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
	if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
	then
	    ntp_use_local_libevent=no
	    { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
$as_echo "$as_me: Using the installed libevent" >&6;}
	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
	    CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
	    # HMS: I hope the following is accurate.
	    # We don't need -levent, we only need  -levent_core.
	    # While we could grab only the -L stuff, there *might* be
	    # other flags there we want.  Originally we just removed -levent
	    # but then somebody decided to install -levent-2.0
	    # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
	    # So now we dance...
	    LDADD_LIBEVENT=
	    for i in `$PKG_CONFIG --libs libevent`
	    do
		case "$i" in
		 -levent*) ;;
		 *) case "$LDADD_LIBEVENT" in
		     '') LDADD_LIBEVENT="$i" ;;
		     *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
		    esac
		    ;;
		esac
	    done
	    case "$LIBISC_PTHREADS_NOTHREADS" in
	     pthreads)
		LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
	    esac
	    LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	else
	    ntp_use_local_libevent=yes
	    # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
	    # is "pthreads"?
	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	fi
	;;
     *)
	ntp_use_local_libevent=yes
	;;
    esac
    ;;
esac

case "$ntp_use_local_libevent" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
$as_echo "$as_me: Using libevent tearoff" >&6;}
    CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
    case "$LIBISC_PTHREADS_NOTHREADS" in
     pthreads)
	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
	;;
     *)
	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
    esac
esac


 if test "x$ntp_use_local_libevent" = "xyes"; then
  BUILD_LIBEVENT_TRUE=
  BUILD_LIBEVENT_FALSE='#'
else
  BUILD_LIBEVENT_TRUE='#'
  BUILD_LIBEVENT_FALSE=
fi





d19307 5
a19311 61
done







  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
$as_echo_n "checking for unsigned long long int... " >&6; }
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_unsigned_long_long_int=yes
     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

else
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
a19312 1
  fi
d19447 1
a19447 2
test_array [0] = 0;
return test_array [0];
a19469 1

d19475 34
a19509 5
      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
	if test $ac_cv_type_long_long_int = yes; then
	  	  	  	  if test "$cross_compiling" = yes; then :
  :
d19514 5
a19518 5
		 #ifndef LLONG_MAX
		 # define HALF \
			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
		 # define LLONG_MAX (HALF - 1 + HALF)
		 #endif
d19523 10
a19532 10
		 int i;
		 for (i = 0; ; i++)
		   {
		     long long int m = n << i;
		     if (m >> i != n)
		       return 1;
		     if (LLONG_MAX / 2 < m)
		       break;
		   }
		 return 0;
d19538 1
a19538 1

d19546 5
a19550 2
	fi
      fi
d19566 1
a19566 3
  ac_cv_type_unsigned_long_long_int=yes
     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19599 1
a19599 1

a19604 1
     fi
d19679 1
a19679 2
test_array [0] = 0;
return test_array [0];
d19733 1
a19733 1

d19735 1
a19735 1
  /* Ultrix mips cc rejects this sort of thing.  */
d19737 1
a19737 1
  const charset cs = { 0, 0 };
d19754 2
a19755 3
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char tx;
    char *t = &tx;
d19771 1
a19771 1
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
d19773 2
a19774 2
    struct s { int j; const int *ap[3]; } bx;
    struct s *b = &bx; b->j = 5;
d19897 1
a19897 1

d19899 1
a19899 1
  /* Ultrix mips cc rejects this sort of thing.  */
d19901 1
a19901 1
  const charset cs = { 0, 0 };
d19918 2
a19919 3
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char tx;
    char *t = &tx;
d19935 1
a19935 1
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
d19937 2
a19938 2
    struct s { int j; const int *ap[3]; } bx;
    struct s *b = &bx; b->j = 5;
d20820 1
a20820 1
find_stack_direction (int *addr, int depth)
d20822 9
a20830 6
  int dir, dummy = 0;
  if (! addr)
    addr = &dummy;
  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  return dir + dummy;
d20834 1
a20834 1
main (int argc, char **argv)
d20836 1
a20836 1
  return find_stack_direction (0, argc + !argv + 20) < 0;
a21080 67
# Bug 2713
LDADD_LIBUTIL=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
$as_echo_n "checking for library containing snprintb... " >&6; }
if ${ac_cv_search_snprintb+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char snprintb ();
int
main ()
{
return snprintb ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' util; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_snprintb=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_snprintb+:} false; then :
  break
fi
done
if ${ac_cv_search_snprintb+:} false; then :

else
  ac_cv_search_snprintb=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
$as_echo "$ac_cv_search_snprintb" >&6; }
ac_res=$ac_cv_search_snprintb
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_snprintb" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
 esac

$as_echo "#define USE_SNPRINTB 1" >>confdefs.h

fi


d21742 1
a21742 2
test_array [0] = 0;
return test_array [0];
d22071 1
a22071 2
 no) ;;
 *)
d22141 1
a22141 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a25487 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
$as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}

a26527 4




d26553 50
a27767 3
     *-stratus-vos)
	ans=no
	;;
a27845 3
     *-stratus-vos)
	ans=no
	;;
a27908 3
     *-stratus-vos)
	ans=no
	;;
d28088 1
a28088 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28235 1
a28235 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28276 1
a28276 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28351 1
a28351 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a28378 14
case "$PATH_NET_SNMP_CONFIG" in
 /*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
$as_echo_n "checking for net-snmp version... " >&6; }
if ${ntp_cv_net_snmp_version+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
$as_echo "$ntp_cv_net_snmp_version" >&6; }
	;;
esac

d28799 1
a28799 1
for ac_header in sgtty.h stdatomic.h stdlib.h string.h termio.h
a29116 47
case "$ac_cv_header_stdatomic_h" in
 yes)
	for ac_func in atomic_thread_fence
do :
  ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ATOMIC_THREAD_FENCE 1
_ACEOF

fi
done

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
$as_echo_n "checking for atomic_thread_fence()... " >&6; }
if ${ntp_cv_func_atomic_thread_fence+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <stdatomic.h>

int
main ()
{

			atomic_thread_fence(memory_order_seq_cst);


  ;
  return 0;
}
		ntp_cv_func_atomic_thread_fence=yes
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_func_atomic_thread_fence=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
$as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
    ;;
esac

a29954 14
for ac_func in arc4random_buf
do :
  ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
if test "x$ac_cv_func_arc4random_buf" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ARC4RANDOM_BUF 1
_ACEOF

fi
done


####

a30281 5
case "$host" in
 *-*-*linux*)
    ntp_dflt_rlimit_memlock="-1" ;;
 *) ntp_dflt_rlimit_memlock="32" ;;
esac
d30285 1
a30285 1
    HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock"  ;;
d30334 2
d30385 1
a30385 1
    ans=$ntp_dflt_rlimit_memlock
a30399 1

d31243 4
a31246 4
			#include <sys/syscall.h>
			#if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
			# error
			#endif
d31282 4
a31285 4
		#include <sys/timex.h>
		#ifndef STA_FLL
		# error
		#endif
d33049 120
a33569 1
# Because we don't want -Werror for the EVP_MD_do_all_sorted check
a33570 18

case "$ntp_openssl" in
 yes)
    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
    for ac_func in EVP_MD_do_all_sorted
do :
  ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_EVP_MD_DO_ALL_SORTED 1
_ACEOF

fi
done

    ;;
esac

a34086 3
	 *-stratus-vos)
	    ans=no
	    ;;
a34148 3
	 *-stratus-vos)
	    ans=no
	    ;;
a34599 5
	# Bug 2815.  This is a bit of a hack, but it works...
	case "$ntp_cv_net_snmp_version" in
	 5.3*)	SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
		;;
	esac
a34759 3
 *-stratus-vos)
    ans=no
    ;;
d34980 1
d35002 1
a35941 88
###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
$as_echo_n "checking if we want the experimental leap smear code... " >&6; }
# Check whether --enable-leap-smear was given.
if test "${enable_leap_smear+set}" = set; then :
  enableval=$enable_leap_smear; ntp_ok=$enableval
else
  ntp_ok=no

fi

ntp_leap_smear_enabled=0
case "$ntp_ok" in
 yes)
    ntp_leap_smear_enabled=1

$as_echo "#define LEAP_SMEAR 1" >>confdefs.h


    HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }


# We may not need have_unity
have_unity=false
# Extract the first word of "ruby", so it can be a program name with args.
set dummy ruby; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_RUBY+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_RUBY in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_RUBY=$ac_cv_path_PATH_RUBY
if test -n "$PATH_RUBY"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
$as_echo "$PATH_RUBY" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


case "$PATH_RUBY" in
 /*)
    have_unity=true
    ;;
 *) PATH_RUBY="false"
    ;;
esac
# We may not need UNITYBUILD_AVAILABLE
 if $have_unity; then
  UNITYBUILD_AVAILABLE_TRUE=
  UNITYBUILD_AVAILABLE_FALSE='#'
else
  UNITYBUILD_AVAILABLE_TRUE='#'
  UNITYBUILD_AVAILABLE_FALSE=
fi




d35973 1
a35973 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a36041 75

case "$build" in
 $host)	cross=0 ;;
 *)	cross=1 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
$as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
# Check whether --enable-problem-tests was given.
if test "${enable_problem_tests+set}" = set; then :
  enableval=$enable_problem_tests; ntp_ept=$enableval
else
  ntp_ept=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
$as_echo "$ntp_ept" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
$as_echo_n "checking if we can run test-ntp_restrict... " >&6; }
ntp_test_ntp_restrict="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 no:0:*-*-hpux-11.23*) ;;
 *) ntp_test_ntp_restrict="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
$as_echo "$ntp_test_ntp_restrict" >&6; }
 if test x$ntp_test_ntp_restrict = xyes; then
  BUILD_TEST_NTP_RESTRICT_TRUE=
  BUILD_TEST_NTP_RESTRICT_FALSE='#'
else
  BUILD_TEST_NTP_RESTRICT_TRUE='#'
  BUILD_TEST_NTP_RESTRICT_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
$as_echo_n "checking if we can run test-ntp_scanner... " >&6; }
ntp_test_ntp_scanner="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 *) ntp_test_ntp_scanner="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
$as_echo "$ntp_test_ntp_scanner" >&6; }
 if test x$ntp_test_ntp_scanner = xyes; then
  BUILD_TEST_NTP_SCANNER_TRUE=
  BUILD_TEST_NTP_SCANNER_FALSE='#'
else
  BUILD_TEST_NTP_SCANNER_TRUE='#'
  BUILD_TEST_NTP_SCANNER_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
$as_echo_n "checking if we can run test-ntp_signd... " >&6; }
ntp_test_ntp_signd="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 *) ntp_test_ntp_signd="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
$as_echo "$ntp_test_ntp_signd" >&6; }
 if test x$ntp_test_ntp_signd = xyes; then
  BUILD_TEST_NTP_SIGND_TRUE=
  BUILD_TEST_NTP_SIGND_FALSE='#'
else
  BUILD_TEST_NTP_SIGND_TRUE='#'
  BUILD_TEST_NTP_SIGND_FALSE=
fi



d36098 1
a36098 1
ac_config_files="$ac_config_files scripts/build/Makefile"
d36100 1
a36100 1
ac_config_files="$ac_config_files scripts/build/mkver"
d36104 1
a36104 1
ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
d36106 1
a36106 1
ac_config_files="$ac_config_files scripts/lib/Makefile"
d36110 1
a36110 1
ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
d36114 1
a36114 1
ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
a36117 2
ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"

d36124 1
a36124 3
ac_config_files="$ac_config_files scripts/update-leap/Makefile"

ac_config_files="$ac_config_files scripts/update-leap/update-leap"
a36127 2
ac_config_files="$ac_config_files tests/bug-2803/Makefile"

a36131 6
ac_config_files="$ac_config_files tests/ntpq/Makefile"

ac_config_files="$ac_config_files tests/sandbox/Makefile"

ac_config_files="$ac_config_files tests/sec-2853/Makefile"

a36280 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
$as_echo_n "checking that generated files are newer than configure... " >&6; }
   if test -n "$am_sleep_pid"; then
     # Hide warnings about reused PIDs.
     wait $am_sleep_pid 2>/dev/null
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
$as_echo "done" >&6; }
a36317 4
if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a36329 4
if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a36345 4
if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
  as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a36349 12
if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d36648 1
a36648 1
    # In both cases, we have to default to `cp -pR'.
d36650 1
a36650 1
      as_ln_s='cp -pR'
d36654 1
a36654 1
    as_ln_s='cp -pR'
d36657 1
a36657 1
  as_ln_s='cp -pR'
d36717 22
a36738 10

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
as_test_x='test -x'
as_executable_p=as_fn_executable_p
d36759 2
a36760 2
This file was extended by ntp $as_me 4.2.8p4, which was
generated by GNU Autoconf 2.69.  Invocation command line was
d36820 1
a36820 1
ntp home page: <http://www.ntp.org./>."
d36826 2
a36827 2
ntp config.status 4.2.8p4
configured by $0, generated by GNU Autoconf 2.69,
d36830 1
a36830 1
Copyright (C) 2012 Free Software Foundation, Inc.
d36921 1
a36921 1
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d37353 3
a37355 1
    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
d37357 1
a37357 3
    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
d37359 1
a37359 1
    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
d37361 1
a37361 1
    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
a37362 1
    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
d37366 1
a37366 2
    "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
    "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
a37367 1
    "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
a37369 3
    "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;;
    "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
    "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
d38006 1
a38006 1
  # Older Autoconf quotes --file arguments for eval, but not when files
d38019 1
a38019 1
    # We used to match only the files named 'Makefile.in', but
d38053 1
a38053 1
    # from the Makefile without running 'make'.
d38057 1
a38057 1
    test -z "$am__include" && continue
d38059 2
d38067 1
a38067 1
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
d38902 1
a38902 1
    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' -e '/^$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
d38904 1
a38905 1
    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
a38911 1
    "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
@


1.1.1.2.16.3
log
@Pull up following revision(s) (requested by spz in ticket #1380):
	external/bsd/ntp/importdate: up to revision 1.9
	external/bsd/ntp/bin/ntpd/Makefile: up to revision 1.21
	external/bsd/ntp/dist/ChangeLog: up to revision 1.1.1.9
	external/bsd/ntp/dist/CommitLog: up to revision 1.1.1.9
	external/bsd/ntp/dist/Makefile.am: up to revision 1.1.1.8
	external/bsd/ntp/dist/Makefile.in: up to revision 1.1.1.9
	external/bsd/ntp/dist/NEWS: up to revision 1.1.1.9
	external/bsd/ntp/dist/README.pullrequests: up to revision 1.1.1.1
	external/bsd/ntp/dist/config.h.in: up to revision 1.1.1.8
	external/bsd/ntp/dist/configure: up to revision 1.1.1.9
	external/bsd/ntp/dist/configure.ac: up to revision 1.1.1.8
	external/bsd/ntp/dist/packageinfo.sh: up to revision 1.1.1.9
	external/bsd/ntp/dist/html/authentic.html: up to revision 1.1.1.3
	external/bsd/ntp/dist/html/miscopt.html: up to revision 1.1.1.8
	external/bsd/ntp/dist/html/monopt.html: up to revision 1.1.1.4
	external/bsd/ntp/dist/html/xleave.html: up to revision 1.1.1.4
	external/bsd/ntp/dist/include/Makefile.am: up to revision 1.1.1.8
	external/bsd/ntp/dist/include/Makefile.in: up to revision 1.1.1.9
	external/bsd/ntp/dist/include/ntp.h: up to revision 1.6
	external/bsd/ntp/dist/include/ntp_io.h: up to revision 1.5
	external/bsd/ntp/dist/include/ntp_keyacc.h: up to revision 1.1.1.1
	external/bsd/ntp/dist/include/ntp_refclock.h: up to revision 1.5
	external/bsd/ntp/dist/include/ntp_stdlib.h: up to revision 1.13
	external/bsd/ntp/dist/include/ntp_types.h: up to revision 1.6
	external/bsd/ntp/dist/include/ntp_worker.h: up to revision 1.5
	external/bsd/ntp/dist/include/ntpd.h: up to revision 1.8
	external/bsd/ntp/dist/include/parse.h: up to revision 1.6
	external/bsd/ntp/dist/include/recvbuff.h: up to revision 1.5
	external/bsd/ntp/dist/include/safecast.h: up to revision 1.1.1.2
	external/bsd/ntp/dist/lib/isc/backtrace.c: up to revision 1.6
	external/bsd/ntp/dist/lib/isc/buffer.c: up to revision 1.4
	external/bsd/ntp/dist/lib/isc/hmacmd5.c: up to revision 1.5
	external/bsd/ntp/dist/lib/isc/hmacsha.c: up to revision 1.5
	external/bsd/ntp/dist/lib/isc/inet_aton.c: up to revision 1.4
	external/bsd/ntp/dist/lib/isc/inet_pton.c: up to revision 1.7
	external/bsd/ntp/dist/lib/isc/log.c: up to revision 1.7
	external/bsd/ntp/dist/lib/isc/netaddr.c: up to revision 1.9
	external/bsd/ntp/dist/lib/isc/sockaddr.c: up to revision 1.7
	external/bsd/ntp/dist/lib/isc/task.c: up to revision 1.4
	external/bsd/ntp/dist/lib/isc/tsmemcmp.c: up to revision 1.1.1.1
	external/bsd/ntp/dist/lib/isc/include/isc/string.h: up to revision 1.5
	external/bsd/ntp/dist/lib/isc/win32/interfaceiter.c: up to revision 1.4
	external/bsd/ntp/dist/lib/isc/win32/net.c: up to revision 1.4
	external/bsd/ntp/dist/libntp/Makefile.am: up to revision 1.1.1.6
	external/bsd/ntp/dist/libntp/Makefile.in: up to revision 1.1.1.9
	external/bsd/ntp/dist/libntp/a_md5encrypt.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/atolfp.c: up to revision 1.8
	external/bsd/ntp/dist/libntp/authkeys.c: up to revision 1.10
	external/bsd/ntp/dist/libntp/authreadkeys.c: up to revision 1.9
	external/bsd/ntp/dist/libntp/authusekey.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/dolfptoa.c: up to revision 1.4
	external/bsd/ntp/dist/libntp/hextolfp.c: up to revision 1.7
	external/bsd/ntp/dist/libntp/is_ip_address.c: up to revision 1.1.1.1
	external/bsd/ntp/dist/libntp/mstolfp.c: up to revision 1.7
	external/bsd/ntp/dist/libntp/msyslog.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/ntp_crypto_rnd.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to revision 1.9
	external/bsd/ntp/dist/libntp/ntp_lineedit.c: up to revision 1.9
	external/bsd/ntp/dist/libntp/ntp_rfc2553.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/ntp_worker.c: up to revision 1.6
	external/bsd/ntp/dist/libntp/recvbuff.c: up to revision 1.6
	external/bsd/ntp/dist/libntp/snprintf.c: up to revision 1.4
	external/bsd/ntp/dist/libntp/socktohost.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/systime.c: up to revision 1.5
	external/bsd/ntp/dist/libntp/work_fork.c: up to revision 1.9
	external/bsd/ntp/dist/libntp/work_thread.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_computime.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_dcf7000.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_hopf6021.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_meinberg.c: up to revision 1.6
	external/bsd/ntp/dist/libparse/clk_rawdcf.c: up to revision 1.7
	external/bsd/ntp/dist/libparse/clk_rcc8000.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_schmid.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_trimtaip.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_varitext.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/clk_wharton.c: up to revision 1.5
	external/bsd/ntp/dist/libparse/parse.c: up to revision 1.5
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to revision 1.1.1.5
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to revision 1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to revision 1.1.1.6
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.def: up to revision 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to revision 1.14
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to revision 1.16
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to revision 1.12
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to revision 1.22
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to revision 1.10
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to revision 1.9
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to revision 1.13
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to revision 1.11
	external/bsd/ntp/dist/ntpd/ntp_refclock.c: up to revision 1.9
	external/bsd/ntp/dist/ntpd/ntp_request.c: up to revision 1.14
	external/bsd/ntp/dist/ntpd/ntp_restrict.c: up to revision 1.8
	external/bsd/ntp/dist/ntpd/ntp_signd.c: up to revision 1.4
	external/bsd/ntp/dist/ntpd/ntp_timer.c: up to revision 1.7
	external/bsd/ntp/dist/ntpd/ntp_util.c: up to revision 1.8
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to revision 1.7
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to revision 1.10
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.c: up to revision 1.13
	external/bsd/ntp/dist/ntpd/ntpd.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpd/refclock_chu.c: up to revision 1.9
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to revision 1.9
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to revision 1.10
	external/bsd/ntp/dist/ntpd/refclock_local.c: up to revision 1.5
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to revision 1.18
	external/bsd/ntp/dist/ntpd/refclock_shm.c: up to revision 1.8
	external/bsd/ntp/dist/ntpd/refclock_true.c: up to revision 1.6
	external/bsd/ntp/dist/ntpd/refclock_tsyncpci.c: up to revision 1.4
	external/bsd/ntp/dist/ntpdate/ntpdate.c: up to revision 1.10
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to revision 1.7
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to revision 1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.c: up to revision 1.13
	external/bsd/ntp/dist/ntpdc/ntpdc.h: up to revision 1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc_ops.c: up to revision 1.8
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpq/libntpq.c: up to revision 1.4
	external/bsd/ntp/dist/ntpq/libntpq.h: up to revision 1.5
	external/bsd/ntp/dist/ntpq/libntpq_subs.c: up to revision 1.4
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to revision 1.7
	external/bsd/ntp/dist/ntpq/ntpq-opts.def: up to revision 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to revision 1.7
	external/bsd/ntp/dist/ntpq/ntpq-subs.c: up to revision 1.14
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.c: up to revision 1.15
	external/bsd/ntp/dist/ntpq/ntpq.h: up to revision 1.9
	external/bsd/ntp/dist/ntpq/ntpq.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to revision 1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to revision 1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary-opts: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.am: up to revision 1.1.1.3
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to revision 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/config.h.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/configure: up to revision 1.1.1.9
	external/bsd/ntp/dist/sntp/crypto.c: up to revision 1.10
	external/bsd/ntp/dist/sntp/crypto.h: up to revision 1.5
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/main.c: up to revision 1.15
	external/bsd/ntp/dist/sntp/networking.c: up to revision 1.14
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to revision 1.8
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to revision 1.7
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.html: up to revision 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/version.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/include/copyright.def: up to revision 1.1.1.4
	external/bsd/ntp/dist/sntp/include/version.def: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/include/version.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/test/regress.gen.c: up to revision 1.5
	external/bsd/ntp/dist/sntp/libopts/configfile.c: up to revision 1.8
	external/bsd/ntp/dist/sntp/libopts/enum.c: up to revision 1.8
	external/bsd/ntp/dist/sntp/libopts/init.c: up to revision 1.8
	external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/m4/ntp_problemtests.m4: up to revision 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/version.m4: up to revision 1.1.1.7
	external/bsd/ntp/dist/sntp/tests/crypto.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.c: up to revision 1.1.1.4
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h.in: up to revision 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/keyFile.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/kodDatabase.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/kodFile.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/packetHandling.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/packetProcessing.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/run-kodDatabase.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/run-t-log.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/t-log.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/utilities.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/sntp/unity/unity_internals.h: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/bug-2803/bug-2803.c: up to revision 1.1.1.4
	external/bsd/ntp/dist/tests/bug-2803/run-bug-2803.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/Makefile.am: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/Makefile.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/authkeys.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/buftvtots.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/calendar.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/caljulian.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/clocktime.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/decodenetnum.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/humandate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/lfpfunc.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/lfptostr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/modetoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/msyslog.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/netof.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/numtoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/numtohost.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/octtoint.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/prettydate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/recvbuff.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/refidsmear.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/refnumtoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-a_md5encrypt.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-authkeys.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-calendar.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-decodenetnum.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-humandate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-lfpfunc.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-lfptostr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-modetoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-msyslog.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-netof.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-numtoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-numtohost.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-prettydate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-refnumtoa.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-sfptostr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-socktoa.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-statestr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-strtolfp.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-timespecops.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-timevalops.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-tsafememcmp.c: up to revision 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/run-uglydate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/sfptostr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/socktoa.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/ssl_init.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/statestr.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/strtolfp.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/timespecops.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/timevalops.c: up to revision 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/tsafememcmp.c: up to revision 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/uglydate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/ntpd/leapsec.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/ntp_prio_q.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/ntp_restrict.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/rc_cmdlength.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-leapsec.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-ntp_restrict.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-rc_cmdlength.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-t-ntp_signd.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/t-ntp_scanner.c: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/t-ntp_signd.c: up to revision 1.1.1.4
	external/bsd/ntp/dist/tests/ntpq/Makefile.am: up to revision 1.1.1.2
	external/bsd/ntp/dist/tests/ntpq/Makefile.in: up to revision 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/run-uglydate.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/sandbox/smeartest.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/tests/sandbox/uglydate.c: up to revision 1.1.1.4
	external/bsd/ntp/dist/tests/sec-2853/sec-2853.c: up to revision 1.1.1.5
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to revision 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to revision 1.12
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to revision 1.7
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to revision 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to revision 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.c: up to revision 1.10
	external/bsd/ntp/dist/util/ntp-keygen.html: up to revision 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to revision 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to revision 1.1.1.7
	external/bsd/ntp/include/config.h: up to revision 1.16
	external/bsd/ntp/lib/libiscntp/Makefile: up to revision 1.14
	external/bsd/ntp/lib/libntp/Makefile: up to revision 1.18
	external/bsd/ntp/scripts/mkver: up to revision 1.10
	external/bsd/ntp/bin/ntpd/ntp_parser.c: patch
	external/bsd/ntp/bin/ntpd/ntp_parser.h: patch
Update ntp to 4.2.8p7.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p7.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p7'
PACKAGE_STRING='ntp 4.2.8p7'
a1052 1
enable_bug3020_fix
a1060 1
enable_dynamic_interleave
d1619 1
a1619 1
\`configure' configures ntp 4.2.8p7 to adapt to many kinds of systems.
d1689 1
a1689 1
     short | recursive ) echo "Configuration of ntp 4.2.8p7:";;
a1822 1
  --enable-bug3020-fix    + Provide the explicit 127.0.0.0/8 martian filter
a1832 2
  --enable-dynamic-interleave
                          - dynamic interleave support
d1922 1
a1922 1
ntp configure 4.2.8p7
d2752 1
a2752 1
It was created by ntp $as_me 4.2.8p7, which was
d3753 1
a3753 1
 VERSION='4.2.8p7'
d20021 1
a20021 1
	    for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
a20023 1
		 -D*) ;;
a22119 3

$as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h

d29708 1
a29708 107
for ac_header in sgtty.h stdatomic.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
if ${ac_cv_header_stdbool_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

             #include <stdbool.h>
             #ifndef bool
              "error: bool is not defined"
             #endif
             #ifndef false
              "error: false is not defined"
             #endif
             #if false
              "error: false is not 0"
             #endif
             #ifndef true
              "error: true is not defined"
             #endif
             #if true != 1
              "error: true is not 1"
             #endif
             #ifndef __bool_true_false_are_defined
              "error: __bool_true_false_are_defined is not defined"
             #endif

             struct s { _Bool s: 1; _Bool t; } s;

             char a[true == 1 ? 1 : -1];
             char b[false == 0 ? 1 : -1];
             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
             char d[(bool) 0.5 == true ? 1 : -1];
             /* See body of main program for 'e'.  */
             char f[(_Bool) 0.0 == false ? 1 : -1];
             char g[true];
             char h[sizeof (_Bool)];
             char i[sizeof s.t];
             enum { j = false, k = true, l = false * true, m = true * 256 };
             /* The following fails for
                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
             _Bool n[m];
             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
             /* Catch a bug in an HP-UX C compiler.  See
                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
              */
             _Bool q = true;
             _Bool *pq = &q;

int
main ()
{

             bool e = &s;
             *pq |= q;
             *pq |= ! q;
             /* Refer to every declared value, to avoid compiler optimizations.  */
             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
                     + !m + !n + !o + !p + !q + !pq);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdbool_h=yes
else
  ac_cv_header_stdbool_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
$as_echo "$ac_cv_header_stdbool_h" >&6; }
   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
if test "x$ac_cv_type__Bool" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE__BOOL 1
_ACEOF


fi


if test $ac_cv_header_stdbool_h = yes; then

$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h

fi

for ac_header in stdlib.h string.h termio.h
a35833 20
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5
$as_echo_n "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; }
# Check whether --enable-bug3020-fix was given.
if test "${enable_bug3020_fix+set}" = set; then :
  enableval=$enable_bug3020_fix; ans=$enableval
else
  ans=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 yes)

$as_echo "#define ENABLE_BUG3020_FIX 1" >>confdefs.h

esac


a36852 26
###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5
$as_echo_n "checking if we want dynamic interleave support... " >&6; }
# Check whether --enable-dynamic-interleave was given.
if test "${enable_dynamic_interleave+set}" = set; then :
  enableval=$enable_dynamic_interleave; ntp_ok=$enableval
else
  ntp_ok=no

fi

ntp_dynamic_interleave=0
case "$ntp_ok" in
 yes)
    ntp_dynamic_interleave=1
    ;;
esac

cat >>confdefs.h <<_ACEOF
#define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave
_ACEOF

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

a37037 2
 no:0:*-*-freebsd6.4) ;;
 no:0:*-*-hpux11.23*) ;;
d37039 1
a37056 1
 no:0:*-*-freebsd6.4) ;;
a37074 1
 no:0:*-*-freebsd6.4) ;;
d37839 1
a37839 1
This file was extended by ntp $as_me 4.2.8p7, which was
d37906 1
a37906 1
ntp config.status 4.2.8p7
@


1.1.1.2.16.4
log
@Pull up following revision(s) (requested by spz in ticket #1448):
	doc/3RDPARTY: patch
	external/bsd/ntp/Makefile.inc: up to 1.16 via patch
	external/bsd/ntp/bin/Makefile: up to 1.3
	external/bsd/ntp/bin/ntpd/Makefile: up to 1.21 via patch
	external/bsd/ntp/bin/ntpd/ntp.keys.5: up to 1.2
	external/bsd/ntp/bin/ntpd/ntp_parser.c: patch
	external/bsd/ntp/bin/ntpd/ntp_parser.h: patch
	external/bsd/ntp/bin/sntp/Makefile: up to 1.6 via patch
	external/bsd/ntp/dist/COPYRIGHT: up to 1.1.1.8
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.12
	external/bsd/ntp/dist/CommitLog: up to 1.1.1.12
	external/bsd/ntp/dist/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/NEWS: up to 1.1.1.12
	external/bsd/ntp/dist/aclocal.m4: up to 1.1.1.10
	external/bsd/ntp/dist/adjtimed/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/adjtimed/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/clockstuff/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/clockstuff/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/config.h.in: up to 1.1.1.9
	external/bsd/ntp/dist/configure: up to 1.1.1.12
	external/bsd/ntp/dist/configure.ac: up to 1.1.1.10
	external/bsd/ntp/dist/html/authentic.html: up to 1.1.1.3
	external/bsd/ntp/dist/html/copyright.html: up to 1.1.1.6
	external/bsd/ntp/dist/html/drivers/driver40-ja.html: up to 1.1.1.2
	external/bsd/ntp/dist/html/drivers/driver40.html: up to 1.1.1.5
	external/bsd/ntp/dist/html/miscopt.html: up to 1.1.1.10
	external/bsd/ntp/dist/html/xleave.html: up to 1.1.1.4
	external/bsd/ntp/dist/include/Makefile.am: up to 1.1.1.9
	external/bsd/ntp/dist/include/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/include/isc/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/include/libssl_compat.h: up to 1.1.1.2
	external/bsd/ntp/dist/include/ntp.h: up to 1.8
	external/bsd/ntp/dist/include/ntp_crypto.h: up to 1.5
	external/bsd/ntp/dist/include/ntp_fp.h: up to 1.9
	external/bsd/ntp/dist/include/ntp_intres.h: up to 1.5
	external/bsd/ntp/dist/include/ntp_md5.h: up to 1.7
	external/bsd/ntp/dist/include/ntp_stdlib.h: up to 1.14
	external/bsd/ntp/dist/include/ntp_worker.h: up to 1.5
	external/bsd/ntp/dist/include/ntpd.h: up to 1.10
	external/bsd/ntp/dist/include/parse.h: up to 1.6
	external/bsd/ntp/dist/include/ssl_applink.c: up to 1.5
	external/bsd/ntp/dist/kernel/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/kernel/sys/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/lib/isc/inet_pton.c: up to 1.8
	external/bsd/ntp/dist/libntp/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/libntp/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/libntp/a_md5encrypt.c: up to 1.8
	external/bsd/ntp/dist/libntp/audio.c: up to 1.12
	external/bsd/ntp/dist/libntp/authkeys.c: up to 1.11
	external/bsd/ntp/dist/libntp/authreadkeys.c: up to 1.9
	external/bsd/ntp/dist/libntp/emalloc.c: up to 1.8
	external/bsd/ntp/dist/libntp/libssl_compat.c: up to 1.1.1.2
	external/bsd/ntp/dist/libntp/ntp_calendar.c: up to 1.9
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to 1.11
	external/bsd/ntp/dist/libntp/recvbuff.c: up to 1.7
	external/bsd/ntp/dist/libntp/ssl_init.c: up to 1.10
	external/bsd/ntp/dist/libntp/statestr.c: up to 1.6
	external/bsd/ntp/dist/libntp/work_fork.c: up to 1.11
	external/bsd/ntp/dist/libntp/work_thread.c: up to 1.5
	external/bsd/ntp/dist/libparse/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/libparse/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/libparse/clk_hopf6021.c: up to 1.6
	external/bsd/ntp/dist/libparse/clk_trimtsip.c: up to 1.6
	external/bsd/ntp/dist/libparse/gpstolfp.c: up to 1.6
	external/bsd/ntp/dist/ntpd/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/complete.conf.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.17
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.19
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to 1.25
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.16
	external/bsd/ntp/dist/ntpd/ntp_peer.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.15
	external/bsd/ntp/dist/ntpd/ntp_refclock.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp_request.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_restrict.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_scanner.c: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_timer.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.13
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/refclock_datum.c: up to 1.7
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to 1.11
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to 1.12
	external/bsd/ntp/dist/ntpd/refclock_jupiter.c: up to 1.11
	external/bsd/ntp/dist/ntpd/refclock_mx4200.c: up to 1.5
	external/bsd/ntp/dist/ntpd/refclock_nmea.c: up to 1.12
	external/bsd/ntp/dist/ntpd/refclock_oncore.c: up to 1.14
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to 1.20
	external/bsd/ntp/dist/ntpdate/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/ntpdate/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdate/ntpdate.c: up to 1.11
	external/bsd/ntp/dist/ntpdc/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.c: up to 1.15
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc_ops.c: up to 1.9
	external/bsd/ntp/dist/ntpq/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/libntpq.c: up to 1.5
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpq/ntpq-subs.c: up to 1.15
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.c: up to 1.18
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.12
	external/bsd/ntp/dist/parseutil/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/parseutil/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/build/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/build/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/build/genAuthors.in: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/lib/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.in: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary-opts.def: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/update-leap/Makefile.in: up to 1.1.1.6
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.in: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/COPYRIGHT: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/aclocal.m4: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/config.h.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.12
	external/bsd/ntp/dist/sntp/configure.ac: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/crypto.c: up to 1.13
	external/bsd/ntp/dist/sntp/crypto.h: up to 1.5
	external/bsd/ntp/dist/sntp/harden/README: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/default: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd10: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd11: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd12: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/linux: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/netbsd7.0: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/netbsd7.99: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/include/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/include/copyright.def: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/kod_management.c: up to 1.8
	external/bsd/ntp/dist/sntp/libevent/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/libevent/build-aux/compile: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/config.guess: up to 1.2
	external/bsd/ntp/dist/sntp/libevent/build-aux/config.sub: up to 1.2
	external/bsd/ntp/dist/sntp/libevent/build-aux/depcomp: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/install-sh: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/ltmain.sh: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/build-aux/missing: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/ylwrap: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/config.h.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/configure: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/configure.ac: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/evlog.c: patch
	external/bsd/ntp/dist/sntp/libevent/include/event2/event-config.h: patch
	external/bsd/ntp/dist/sntp/libevent/m4/libtool.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltoptions.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltsugar.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltversion.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/m4/lt~obsolete.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_ssl.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/libopts/configfile.c: up to 1.8
	external/bsd/ntp/dist/sntp/libopts/nested.c: up to 1.10
	external/bsd/ntp/dist/sntp/libopts/parse-duration.c: up to 1.9
	external/bsd/ntp/dist/sntp/m4/libtool.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltoptions.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltsugar.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltversion.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/m4/lt~obsolete.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ntp_compiler.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_harden.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/m4/ntp_openssl.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_problemtests.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_prog_cc.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/sntp_problemtests.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/scm-rev: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/scripts/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/scripts/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/scripts/genHardFlags: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.11
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.10
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.12
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/tests/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/tests/crypto.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.c: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/tests/keyFile.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/packetHandling.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/packetProcessing.c: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/tests/t-log.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/unity/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/unity/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/unity/ulib_setup.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/ulib_teardown.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/unity_fixture.c: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/version.c: up to 1.1.1.9
	external/bsd/ntp/dist/tests/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/tests/bug-2803/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/bug-2803/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/bug-2803/run-bug-2803.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/buftvtots.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/calendar.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/caljulian.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/clocktime.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/decodenetnum.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/lfpfunc.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/netof.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/numtohost.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/octtoint.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/refidsmear.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/refnumtoa.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-calendar.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/sfptostr.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/socktoa.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/timespecops.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/timevalops.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/ntpd/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/tests/ntpd/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/tests/ntpd/leapsec.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/t-ntp_signd.c: up to 1.1.1.4
	external/bsd/ntp/dist/tests/ntpq/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpq/Makefile.in: up to 1.1.1.4
	external/bsd/ntp/dist/tests/sandbox/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/sec-2853/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sec-2853/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/util/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/util/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.15
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.10
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.c: up to 1.12
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/importdate: up to 1.12
	external/bsd/ntp/include/config.h: up to 1.19
	external/bsd/ntp/lib/libntp/Makefile: up to 1.19
	external/bsd/ntp/lib/libopts/Makefile: up to 1.14
	external/bsd/ntp/scripts/mkver: up to 1.13
Update ntp to 4.2.8p10.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p10.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p10'
PACKAGE_STRING='ntp 4.2.8p10'
d726 1
a726 1
LT_SYS_LIBRARY_PATH
a834 3
NTP_HARD_LDFLAGS
NTP_HARD_CPPFLAGS
NTP_HARD_CFLAGS
d837 6
a954 1
with_aix_soname
d1075 3
d1080 1
a1080 1
LT_SYS_LIBRARY_PATH'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p10 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p10:";;
d1710 1
a1710 1
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
a1713 3
  --with-aix-soname=aix|svr4|both
                          shared library versioning (aka "SONAME") variant to
                          provide on AIX, [default=aix].
d1715 2
a1716 2
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
                          compiler's sysroot if not specified).
d1850 2
d1858 1
a1858 2
  LT_SYS_LIBRARY_PATH
              User-defined run-time library search path.
d1927 1
a1927 1
ntp configure 4.2.8p10
d2226 38
d2331 83
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p10, which was
d3758 1
a3758 1
 VERSION='4.2.8p10'
a4039 13

case "$build" in
 *-*-freebsd1?.*)
    cclist=cc
    ;;
 *)
    cclist="cc gcc"
    ;;
esac


#AC_USE_SYSTEM_EXTENSIONS

d4046 191
a4236 1
  for ac_prog in $cclist
d4280 1
a4280 1
  for ac_prog in $cclist
d4335 2
a5016 2


d5486 92
a5577 5
   case $ac_cv_prog_cc_stdc in #(
  no) :
    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
a5749 32
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
d5751 5
a5755 8
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
a5756 4
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d5758 18
a5775 16
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d5777 8
a5784 6
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
d5786 2
a5787 2
rm -f conftest.$ac_ext
CC=$ac_save_CC
d5790 5
a5794 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
d5796 2
a5797 1
  ac_cv_prog_cc_stdc=no
d5800 1
d5802 7
a5808 5
 ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  if ${ac_cv_prog_cc_stdc+:} false; then :
d5810 28
d5840 8
a5847 10
  case $ac_cv_prog_cc_stdc in #(
  no) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;; #(
  '') :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
d5849 32
d5882 10
d5894 32
d5927 22
a5949 2
# Ralf Wildenhues: With per-target flags we need CC_C_O
# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
d5951 10
a5960 4
if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
d5963 24
a5986 9
    ac_pattern="Autoconf.*'x'"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5988 2
a5989 1
  ac_cv_prog_gcc_traditional=no
a5990 1
rm -f conftest*
d5993 2
a5994 9
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5996 28
a6023 1
rm -f conftest*
a6024 1
  fi
d6026 8
a6033 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d6037 2
d6040 12
a6051 4
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d6053 1
d6056 4
d6061 9
a6069 8

case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
d6071 14
d6086 3
a6088 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d6097 4
a6100 1
#warning foo
d6106 1
a6106 1
  ntp_cv_cpp_warning=yes
d6108 1
a6108 2
  ntp_cv_cpp_warning=no

d6111 1
d6114 12
a6125 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
d6128 5
a6132 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6137 1
void foo(void) __attribute__((__noreturn__));
d6144 1
a6144 1
  ntp_cv_cc_attribute=yes
d6146 2
a6147 26
  ntp_cv_cc_attribute=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)

$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h

esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6158 6
  ntp_cv_gcc_Wstrict_overflow=yes
else
  ntp_cv_gcc_Wstrict_overflow=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6159 12
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
  $as_echo_n "(cached) " >&6
d6161 3
a6163 2

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6175 5
a6179 4
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

d6182 18
a6199 2


d6201 3
a6203 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
d6206 25
d6232 8
a6239 4
	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6241 4
a6244 2
			#include <stdlib.h>
			#include <stdio.h>
d6246 6
d6255 1
a6255 23

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


d6260 12
a6271 1
if ac_fn_c_try_link "$LINENO"; then :
d6273 15
a6287 6
		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d6289 458
a6746 2
else
  ntp_cv_gc_sections_runs=no
d6926 1
d7324 13
a7336 8

for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
d7339 144
a7482 2
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
d7491 1
a7491 1
    ac_cv_prog_YACC="$ac_prog"
d7501 4
a7504 4
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
d7511 28
a7538 1
  test -n "$YACC" && break
d7540 2
a7541 1
test -n "$YACC" || YACC="yacc"
d7543 6
a7548 4
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if ${ac_cv_prog_cc_c99+:} false; then :
  $as_echo_n "(cached) " >&6
d7550 3
a7552 9
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>
a7553 14
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}
d7555 2
a7556 13
// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;
d7558 12
a7569 5
struct incomplete_array
{
  int datasize;
  double data[];
};
d7571 26
a7596 5
struct named_init {
  int number;
  const wchar_t *name;
  double average;
};
d7598 7
a7604 1
typedef const char *ccp;
d7606 2
a7607 2
static inline int
test_restrict (ccp restrict text)
d7609 5
a7613 5
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
d7616 30
d7647 2
a7648 3
// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
a7649 4
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);
d7651 2
a7652 23
  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
d7654 7
d7666 5
a7670 2
  // Check bool.
  _Bool success = false;
d7672 5
a7676 4
  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";
d7678 3
a7680 26
  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);
d7686 6
a7691 5
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
d7693 2
a7694 6
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

d7696 16
a7711 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :

d7713 1
a7713 8



	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }


	ac_ext=c
d7719 1
d7721 24
a7744 2
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d7746 8
a7753 2
			struct foo_s {int i1; int i2;};
			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
d7755 16
a7770 7
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d7772 52
a7823 1
$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
d7825 4
a7829 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7831 4
a7834 5
	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7836 5
a7840 11




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
$as_echo_n "checking for compile/link hardening flags... " >&6; }


# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
d7842 2
a7843 2
  with_locfile=no

d7847 61
a7907 13
(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genHardFlags -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genHardFlags.i 2> genHardFlags.err
. ./genHardFlags.i
d7909 59
a7967 11
case "$GENHARDFLAG" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
$as_echo "in file $GENHARDFLAGFILE" >&6; }
    rm genHardFlags.err genHardFlags.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
    ;;
d7969 46
d8016 10
d8027 1
d8029 2
d8032 5
d8401 1
a8401 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d8403 1
a8403 1
	IFS=$lt_save_ifs
d8408 1
a8408 1
      IFS=$lt_save_ifs
d8431 2
a8432 2
macro_version='2.4.6'
macro_revision='2.4.6'
d8446 1
a8446 1
ltmain=$ac_aux_dir/ltmain.sh
d8495 1
a8495 1
case $ECHO in
d8688 1
a8688 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d8694 1
a8694 1
if test yes = "$GCC"; then
d8700 1
a8700 1
    # gcc leaves a trailing carriage return, which upsets mingw
d8714 1
a8714 1
      test -z "$LD" && LD=$ac_prog
d8725 1
a8725 1
elif test yes = "$with_gnu_ld"; then
d8736 1
a8736 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8738 1
a8738 1
    IFS=$lt_save_ifs
d8741 1
a8741 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d8747 1
a8747 1
	test no != "$with_gnu_ld" && break
d8750 1
a8750 1
	test yes != "$with_gnu_ld" && break
d8755 1
a8755 1
  IFS=$lt_save_ifs
d8757 1
a8757 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d8761 1
a8761 1
LD=$lt_cv_path_LD
d8804 1
a8804 1
  lt_cv_path_NM=$NM
d8806 1
a8806 1
  lt_nm_to_check=${ac_tool_prefix}nm
d8811 1
a8811 1
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8813 1
a8813 1
      IFS=$lt_save_ifs
d8815 2
a8816 2
      tmp_nm=$ac_dir/$lt_tmp_nm
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
d8818 1
a8818 1
	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
d8821 2
a8822 7
	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
	case $build_os in
	mingw*) lt_bad_file=conftest.nm/nofile ;;
	*) lt_bad_file=/dev/null ;;
	esac
	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
	*$lt_bad_file* | *'Invalid file or object type'*)
d8824 1
a8824 1
	  break 2
d8830 1
a8830 1
	    break 2
d8841 1
a8841 1
    IFS=$lt_save_ifs
d8848 2
a8849 2
if test no != "$lt_cv_path_NM"; then
  NM=$lt_cv_path_NM
d8955 1
a8955 1
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
d8957 1
a8957 1
      DUMPBIN="$DUMPBIN -symbols -headers"
d8965 2
a8966 2
  if test : != "$DUMPBIN"; then
    NM=$DUMPBIN
d9017 1
a9017 1
  teststring=ABCD
d9057 1
a9057 1
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a9075 5
  os2*)
    # The test takes a long time on OS/2.
    lt_cv_sys_max_cmd_len=8192
    ;;

d9102 1
a9102 2
    if test -n "$lt_cv_sys_max_cmd_len" && \
       test undefined != "$lt_cv_sys_max_cmd_len"; then
d9108 1
a9108 1
      for i in 1 2 3 4 5 6 7 8; do
d9115 1
a9115 1
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
d9117 1
a9117 1
	      test 17 != "$i" # 1/2 MB should be enough
d9135 1
a9135 1
if test -n "$lt_cv_sys_max_cmd_len"; then
d9153 24
d9299 1
a9299 1
    if test yes != "$GCC"; then
d9304 2
a9305 2
    if test yes = "$GCC"; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
d9433 1
a9433 1
# 'unknown' -- same as none, but documents that we really don't know.
d9437 3
a9439 3
# that responds to the $file_magic_cmd with a given extended regex.
# If you have 'file' or equivalent on your system and you're not sure
# whether 'pass_all' will *always* work, you probably want this one.
d9466 2
a9467 1
  if ( file / ) >/dev/null 2>&1; then
d9503 4
d9544 2
a9545 2
# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d9567 2
a9568 2
openbsd* | bitrig*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a9620 3
os2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9778 2
a9779 2
  # two different shell functions defined in ltmain.sh;
  # decide which one to use based on capabilities of $DLLTOOL
d9791 1
a9791 1
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
d9945 1
a9945 1
      if test 0 -eq "$ac_status"; then
d9953 1
a9953 1
	if test 0 -ne "$ac_status"; then
d9966 1
a9966 1
if test no = "$lt_cv_ar_at_file"; then
d10183 2
a10184 2
  bitrig* | openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
d10187 1
a10187 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
d10190 1
a10190 1
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d10273 1
a10273 1
  if test ia64 = "$host_cpu"; then
a10305 17
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  # Gets list of data symbols to import.
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  # Adjust the below global symbol transforms to fixup imported variables.
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
  lt_c_name_lib_hook="\
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
else
  # Disable hooks by default.
  lt_cv_sys_global_symbol_to_import=
  lt_cdecl_hook=
  lt_c_name_hook=
  lt_c_name_lib_hook=
fi

d10309 1
a10309 4
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
$lt_cdecl_hook\
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
d10312 2
a10313 12
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
$lt_c_name_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"

# Transform an extracted symbol line into symbol name with lib prefix and
# symbol address.
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
$lt_c_name_lib_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
d10331 2
a10332 2
    # Fake it for dumpbin and say T for any non-static function,
    # D for any global variable and I for any imported variable.
a10336 1
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
a10337 3
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
d10341 4
a10344 4
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
"     s[1]~/^[@@?]/{print f,s[1],s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print f,t[1],substr(t[1],length(prfx))}"\
d10392 2
a10393 2
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
/* DATA imports from DLLs on WIN32 can't be const, because runtime
d10396 1
a10396 1
#elif defined __osf__
d10422 1
a10422 1
	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
d10442 1
a10442 1
	  LIBS=conftstm.$ac_objext
d10448 1
a10448 1
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
d10469 1
a10469 1
  if test yes = "$pipe_works"; then
a10521 10










d10534 1
a10534 1
case $with_sysroot in #(
d10536 1
a10536 1
   if test yes = "$GCC"; then
d10546 2
a10547 2
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
$as_echo "$with_sysroot" >&6; }
a10558 80
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
$as_echo_n "checking for a working dd... " >&6; }
if ${ac_cv_path_lt_DD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
: ${lt_DD:=$DD}
if test -z "$lt_DD"; then
  ac_path_lt_DD_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in dd; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_lt_DD" || continue
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
fi
      $ac_path_lt_DD_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_lt_DD"; then
    :
  fi
else
  ac_cv_path_lt_DD=$lt_DD
fi

rm -f conftest.i conftest2.i conftest.out
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
$as_echo "$ac_cv_path_lt_DD" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
$as_echo_n "checking how to truncate binary pipes... " >&6; }
if ${lt_cv_truncate_bin+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
lt_cv_truncate_bin=
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
fi
rm -f conftest.i conftest2.i conftest.out
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
$as_echo "$lt_cv_truncate_bin" >&6; }







# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}

d10564 1
a10564 1
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
d10570 1
a10570 2
  # Find out what ABI is being produced by ac_compile, and set mode
  # options accordingly.
d10579 1
a10579 1
	HPUX_IA64_MODE=32
d10582 1
a10582 1
	HPUX_IA64_MODE=64
d10589 1
a10589 2
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10596 1
a10596 1
    if test yes = "$lt_cv_prog_gnu_ld"; then
d10625 1
a10625 37
mips64*-*linux*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    emul=elf
    case `/usr/bin/file conftest.$ac_objext` in
      *32-bit*)
	emul="${emul}32"
	;;
      *64-bit*)
	emul="${emul}64"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *MSB*)
	emul="${emul}btsmip"
	;;
      *LSB*)
	emul="${emul}ltsmip"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *N32*)
	emul="${emul}n32"
	;;
    esac
    LD="${LD-ld} -m $emul"
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
d10627 1
a10627 6
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.  Note that the listed cases only cover the
  # situations where additional linker options are needed (such as when
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  # vice versa); the common cases where no linker options are needed do
  # not appear in the list.
d10641 1
a10641 11
	    case `/usr/bin/file conftest.o` in
	      *x86-64*)
		LD="${LD-ld} -m elf32_x86_64"
		;;
	      *)
		LD="${LD-ld} -m elf_i386"
		;;
	    esac
	    ;;
	  powerpc64le-*linux*)
	    LD="${LD-ld} -m elf32lppclinux"
d10643 1
a10643 1
	  powerpc64-*linux*)
d10662 1
a10662 4
	  powerpcle-*linux*)
	    LD="${LD-ld} -m elf64lppc"
	    ;;
	  powerpc-*linux*)
d10680 1
a10680 1
  SAVE_CFLAGS=$CFLAGS
d10720 1
a10720 1
  if test yes != "$lt_cv_cc_needs_belf"; then
d10722 1
a10722 1
    CFLAGS=$SAVE_CFLAGS
d10725 2
a10726 3
*-*solaris*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10736 1
a10736 14
      yes*)
        case $host in
        i?86-*-solaris*|x86_64-*-solaris*)
          LD="${LD-ld} -m elf_x86_64"
          ;;
        sparc*-*-solaris*)
          LD="${LD-ld} -m elf64_sparc"
          ;;
        esac
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
          LD=${LD-ld}_sol2
        fi
        ;;
d10750 1
a10750 1
need_locks=$enable_libtool_lock
d10861 1
a10861 1
if test yes != "$lt_cv_path_mainfest_tool"; then
d11364 1
a11364 1
      if test -z "$LT_MULTI_MODULE"; then
d11376 1
a11376 7
	# If there is a non-empty error log, and "single_module"
	# appears in it, assume the flag caused a linker warning
        if test -s conftest.err && $GREP single_module conftest.err; then
	  cat conftest.err >&5
	# Otherwise, if the output was created with a 0 exit code from
	# the compiler, it worked.
	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a11386 1

d11414 1
a11414 1
	LDFLAGS=$save_LDFLAGS
a11418 1

d11440 1
a11440 3
      if test -s conftest.err && $GREP force_load conftest.err; then
	cat conftest.err >&5
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
d11453 1
a11453 1
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
d11455 1
a11455 1
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11462 3
a11464 3
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
	10.[012][,.]*)
	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11466 1
a11466 1
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
d11470 1
a11470 1
    if test yes = "$lt_cv_apple_cc_single_mod"; then
d11473 2
a11474 2
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
d11476 1
a11476 1
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
d11478 1
a11478 1
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a11485 35
# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}

d11502 11
d11534 1
a11534 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11536 1
a11536 1
	IFS=$lt_save_ifs
d11541 1
a11541 1
      IFS=$lt_save_ifs
d11559 1
a11559 16
  withval=$with_pic; lt_p=${PACKAGE-default}
    case $withval in
    yes|no) pic_mode=$withval ;;
    *)
      pic_mode=default
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
      for lt_pkg in $withval; do
	IFS=$lt_save_ifs
	if test "X$lt_pkg" = "X$lt_p"; then
	  pic_mode=yes
	fi
      done
      IFS=$lt_save_ifs
      ;;
    esac
d11565 2
d11582 1
a11582 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11584 1
a11584 1
	IFS=$lt_save_ifs
d11589 1
a11589 1
      IFS=$lt_save_ifs
a11602 52
  shared_archive_member_spec=
case $host,$enable_shared in
power*-*-aix[5-9]*,yes)
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }

# Check whether --with-aix-soname was given.
if test "${with_aix_soname+set}" = set; then :
  withval=$with_aix_soname; case $withval in
    aix|svr4|both)
      ;;
    *)
      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
      ;;
    esac
    lt_cv_with_aix_soname=$with_aix_soname
else
  if ${lt_cv_with_aix_soname+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_with_aix_soname=aix
fi

    with_aix_soname=$lt_cv_with_aix_soname
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
$as_echo "$with_aix_soname" >&6; }
  if test aix != "$with_aix_soname"; then
    # For the AIX way of multilib, we name the shared archive member
    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
    # the AIX toolchain works better with OBJECT_MODE set (default 32).
    if test 64 = "${OBJECT_MODE-32}"; then
      shared_archive_member_spec=shr_64
    else
      shared_archive_member_spec=shr
    fi
  fi
  ;;
*)
  with_aix_soname=aix
  ;;
esac







d11607 1
a11607 1
LIBTOOL_DEPS=$ltmain
a11636 4




d11652 1
a11652 1
if test -n "${ZSH_VERSION+set}"; then
d11691 1
a11691 1
  if test set != "${COLLECT_NAMES+set}"; then
d11702 1
a11702 1
# All known linkers require a '.a' archive for static linking (except MSVC,
d11706 1
a11706 1
with_gnu_ld=$lt_cv_prog_gnu_ld
d11708 2
a11709 2
old_CC=$CC
old_CFLAGS=$CFLAGS
d11718 9
a11726 2
func_cc_basename $compiler
cc_basename=$func_cc_basename_result
d11741 1
a11741 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11744 2
a11745 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11748 1
a11748 1
    IFS=$lt_save_ifs
d11750 2
a11751 2
    if test -f "$ac_dir/${ac_tool_prefix}file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
d11756 1
a11756 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11779 2
a11780 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11785 1
a11785 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11807 1
a11807 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11810 2
a11811 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11814 1
a11814 1
    IFS=$lt_save_ifs
d11816 2
a11817 2
    if test -f "$ac_dir/file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
d11822 1
a11822 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11845 2
a11846 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11851 1
a11851 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11872 1
a11872 1
lt_save_CC=$CC
d11934 1
a11934 1
if test yes = "$GCC"; then
d11950 1
a11950 1
   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
d11980 1
a11980 1
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
d11998 1
a11998 1
  if test yes = "$GCC"; then
d12005 1
a12005 1
      if test ia64 = "$host_cpu"; then
a12008 1
      lt_prog_compiler_pic='-fPIC'
d12019 2
a12020 2
            # adding the '-m68020' flag to GCC prevents building anything better,
            # like '-m68040'.
a12035 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12096 1
a12096 3
      if test -n "$lt_prog_compiler_pic"; then
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
      fi
d12104 1
a12104 1
      if test ia64 = "$host_cpu"; then
a12111 14
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      case $cc_basename in
      nagfor*)
        # NAG Fortran compiler
        lt_prog_compiler_wl='-Wl,-Wl,,'
        lt_prog_compiler_pic='-PIC'
        lt_prog_compiler_static='-Bstatic'
        ;;
      esac
      ;;

a12115 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12131 1
a12131 1
      lt_prog_compiler_static='$wl-a ${wl}archive'
d12140 1
a12140 1
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d12142 1
a12142 1
      # old Intel for x86_64, which still supported -KPIC.
a12166 6
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
	;;
d12187 1
a12187 1
	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
a12192 5
	*Sun\ F* | *Sun*Fortran*)
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Qoption ld '
	  ;;
a12198 10
        *Intel*\ [CF]*Compiler*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fPIC'
	  lt_prog_compiler_static='-static'
	  ;;
	*Portland\ Group*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fpic'
	  lt_prog_compiler_static='-Bstatic'
	  ;;
d12249 1
a12249 1
      if test -d /usr/nec; then
d12278 1
a12278 1
  # For platforms that do not support PIC, -DPIC is meaningless:
d12310 1
a12310 1
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
d12340 1
a12340 1
if test yes = "$lt_cv_prog_compiler_pic_works"; then
d12372 1
a12372 1
   save_LDFLAGS=$LDFLAGS
d12391 1
a12391 1
   LDFLAGS=$save_LDFLAGS
d12397 1
a12397 1
if test yes = "$lt_cv_prog_compiler_static_works"; then
d12517 2
a12518 2
hard_links=nottested
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
d12530 3
a12532 3
  if test no = "$hard_links"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
d12560 1
d12576 3
a12578 3
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  # as well as any symbol that contains 'd'.
d12593 1
a12593 1
    if test yes != "$GCC"; then
d12601 1
a12601 1
  openbsd* | bitrig*)
d12611 1
a12611 1
  if test yes = "$with_gnu_ld"; then
d12633 1
a12633 1
  if test yes = "$lt_use_gnu_ld_interface"; then
d12635 1
a12635 1
    wlarc='$wl'
d12641 2
a12642 2
    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
    export_dynamic_flag_spec='$wl--export-dynamic'
d12645 1
a12645 1
      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
d12650 1
a12650 1
    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
d12663 1
a12663 1
      if test ia64 != "$host_cpu"; then
d12682 1
a12682 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12698 1
a12698 1
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12708 1
a12708 1
      export_dynamic_flag_spec='$wl--export-all-symbols'
d12716 10
a12725 10
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file, use it as
	# is; otherwise, prepend EXPORTS...
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
          cp $export_symbols $output_objdir/$soname.def;
        else
          echo EXPORTS > $output_objdir/$soname.def;
          cat $export_symbols >> $output_objdir/$soname.def;
        fi~
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d12732 1
a12732 1
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a12735 28
    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
      ;;

d12739 2
a12740 2
      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
      export_dynamic_flag_spec='$wl-E'
d12747 2
a12748 2
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d12753 1
a12753 1
      if test linux-dietlibc = "$host_os"; then
d12759 1
a12759 1
	 && test no = "$tmp_diet"
d12765 1
a12765 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12770 1
a12770 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
a12780 2
        nagfor*)                        # NAGFOR 5.3
          tmp_sharedflag='-Wl,-shared' ;;
d12785 1
a12785 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12791 1
a12791 1
	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12797 1
a12797 1
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12799 1
a12799 1
        if test yes = "$supports_anon_versioning"; then
d12801 3
a12803 3
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
            echo "local: *; };" >> $output_objdir/$libname.ver~
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a12806 3
	tcc*)
	  export_dynamic_flag_spec='-rdynamic'
	  ;;
d12810 2
a12811 1
	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d12813 1
a12813 1
	  if test yes = "$supports_anon_versioning"; then
d12815 3
a12817 3
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
              echo "local: *; };" >> $output_objdir/$libname.ver~
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
d12831 2
a12832 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12850 2
a12851 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12863 1
a12863 1
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
d12878 3
a12880 3
	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12897 2
a12898 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12905 1
a12905 1
    if test no = "$ld_shlibs"; then
d12921 1
a12921 1
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
d12929 1
a12929 1
      if test ia64 = "$host_cpu"; then
d12934 1
a12934 1
	no_entry_flag=
d12937 3
a12939 7
	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
	# Without the "-l" option, or with the "-B" option, AIX nm treats
	# weak defined symbols like other global defined symbols, whereas
	# GNU nm marks them as "W".
	# While the 'weak' keyword is ignored in the Export File, we need
	# it in the Import File for the 'aix-soname' feature, so we have
	# to replace the "-B" option with "-P" for AIX nm.
d12941 1
a12941 1
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
d12943 1
a12943 1
	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
d12949 1
a12949 13
	# have runtime linking enabled, and use it for executables.
	# For shared libraries, we enable/disable runtime linking
	# depending on the kind of the shared library created -
	# when "with_aix_soname,aix_use_runtimelinking" is:
	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
	# "aix,yes"  lib.so          shared, rtl:yes, for executables
	#            lib.a           static archive
	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
	#            lib.a(lib.so.V) shared, rtl:no,  for executables
	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a(lib.so.V) shared, rtl:no
	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a           static archive
d12952 1
a12952 1
	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a12956 7
	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
	    # so we don't have lib.a shared libs to link our executables.
	    # We have to force runtime linking in this case.
	    aix_use_runtimelinking=yes
	    LDFLAGS="$LDFLAGS -Wl,-brtl"
	  fi
d12975 1
a12975 9
      file_list_spec='$wl-f,'
      case $with_aix_soname,$aix_use_runtimelinking in
      aix,*) ;; # traditional, no import file
      svr4,* | *,yes) # use import file
	# The Import File defines what to hardcode.
	hardcode_direct=no
	hardcode_direct_absolute=no
	;;
      esac
d12977 1
a12977 1
      if test yes = "$GCC"; then
d12981 1
a12981 1
	  collect2name=`$CC -print-prog-name=collect2`
d13000 2
a13001 2
	if test yes = "$aix_use_runtimelinking"; then
	  shared_flag="$shared_flag "'$wl-G'
a13002 5
	# Need to ensure runtime linking is disabled for the traditional
	# shared library, or the linker may eventually find shared libraries
	# /with/ Import File - we do not want to mix them.
	shared_flag_aix='-shared'
	shared_flag_svr4='-shared $wl-G'
d13005 1
a13005 1
	if test ia64 = "$host_cpu"; then
d13010 2
a13011 2
	  if test yes = "$aix_use_runtimelinking"; then
	    shared_flag='$wl-G'
d13013 1
a13013 1
	    shared_flag='$wl-bM:SRE'
a13014 2
	  shared_flag_aix='$wl-bM:SRE'
	  shared_flag_svr4='$wl-G'
d13018 1
a13018 1
      export_dynamic_flag_spec='$wl-bexpall'
d13022 1
a13022 1
      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
d13028 1
a13028 1
        if test set = "${lt_cv_aix_libpath+set}"; then
d13063 1
a13063 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13071 2
a13072 2
        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
d13074 2
a13075 2
	if test ia64 = "$host_cpu"; then
	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
d13077 1
a13077 1
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
d13081 1
a13081 1
	 if test set = "${lt_cv_aix_libpath+set}"; then
d13116 1
a13116 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13124 1
a13124 1
	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
d13127 3
a13129 3
	  no_undefined_flag=' $wl-bernotok'
	  allow_undefined_flag=' $wl-berok'
	  if test yes = "$with_gnu_ld"; then
d13131 1
a13131 1
	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
d13137 2
a13138 14
	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
	  # -brtl affects multiple linker settings, -berok does not and is overridden later
	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
	  if test svr4 != "$with_aix_soname"; then
	    # This is similar to how AIX traditionally builds its shared libraries.
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
	  fi
	  if test aix != "$with_aix_soname"; then
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
	  else
	    # used by -dlpreopen to get the symbols
	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
	  fi
	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
d13147 1
a13147 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d13177 1
a13177 1
	shrext_cmds=.dll
d13179 8
a13186 9
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
            cp "$export_symbols" "$output_objdir/$soname.def";
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
          else
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
          fi~
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
          linknames='
a13189 1
	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
d13194 12
a13205 12
          lt_tool_outputfile="@@TOOL_OUTPUT@@"~
          case $lt_outputfile in
            *.exe|*.EXE) ;;
            *)
              lt_outputfile=$lt_outputfile.exe
              lt_tool_outputfile=$lt_tool_outputfile.exe
              ;;
          esac~
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
            $RM "$lt_outputfile.manifest";
          fi'
d13214 1
a13214 1
	shrext_cmds=.dll
d13233 2
a13234 3
  if test yes = "$lt_cv_ld_force_load"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'

d13239 1
a13239 1
  allow_undefined_flag=$_lt_dar_allow_undefined
d13241 1
a13241 1
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
d13244 1
a13244 1
  if test yes = "$_lt_dar_can_shared"; then
d13246 4
a13249 4
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
d13263 4
d13279 1
a13279 1
    freebsd2.*)
d13295 2
a13296 2
      if test yes = "$GCC"; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13298 1
a13298 1
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13300 1
a13300 1
      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13307 1
a13307 1
      export_dynamic_flag_spec='$wl-E'
d13311 2
a13312 2
      if test yes,no = "$GCC,$with_gnu_ld"; then
	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13316 3
a13318 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13322 1
a13322 1
	export_dynamic_flag_spec='$wl-E'
d13330 1
a13330 1
      if test yes,no = "$GCC,$with_gnu_ld"; then
d13333 1
a13333 1
	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13336 1
a13336 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13339 1
a13339 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13345 1
a13345 1
	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13348 1
a13348 1
	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13360 1
a13360 1
   save_LDFLAGS=$LDFLAGS
d13379 1
a13379 1
   LDFLAGS=$save_LDFLAGS
d13385 2
a13386 2
if test yes = "$lt_cv_prog_compiler__b"; then
    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13394 2
a13395 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13406 1
a13406 1
	  export_dynamic_flag_spec='$wl-E'
d13417 2
a13418 2
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13428 2
a13429 2
  save_LDFLAGS=$LDFLAGS
	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
d13441 1
a13441 1
           LDFLAGS=$save_LDFLAGS
d13445 2
a13446 2
	if test yes = "$lt_cv_irix_exported_symbol"; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
d13449 2
a13450 2
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
d13453 1
a13453 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a13458 10
    linux*)
      case $cc_basename in
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	ld_shlibs=yes
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	;;
      esac
      ;;

d13473 1
a13473 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13481 1
a13481 1
    openbsd* | bitrig*)
d13486 1
a13486 1
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
d13488 3
a13490 3
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
	  export_dynamic_flag_spec='$wl-E'
d13492 10
a13501 2
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
d13512 2
a13513 22
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
d13517 3
a13519 3
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13522 1
a13522 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13525 1
a13525 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13530 4
a13533 4
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13536 1
a13536 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13538 1
a13538 1
          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
d13549 3
a13551 3
      if test yes = "$GCC"; then
	wlarc='$wl'
	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13553 1
a13553 1
          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13558 1
a13558 1
	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
d13560 1
a13560 1
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
d13563 2
a13564 2
	  wlarc='$wl'
	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13566 1
a13566 1
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13576 1
a13576 1
	# but understands '-z linker_flag'.  GCC discards it without '$wl',
d13579 2
a13580 2
	if test yes = "$GCC"; then
	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
d13590 1
a13590 1
      if test sequent = "$host_vendor"; then
d13593 1
a13593 1
	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13642 1
a13642 1
      no_undefined_flag='$wl-z,text'
d13647 3
a13649 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13651 2
a13652 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13657 1
a13657 1
      # Note: We CANNOT use -z defs as we might desire, because we do not
d13663 2
a13664 2
      no_undefined_flag='$wl-z,text'
      allow_undefined_flag='$wl-z,nodefs'
d13667 1
a13667 1
      hardcode_libdir_flag_spec='$wl-R,$libdir'
d13670 1
a13670 1
      export_dynamic_flag_spec='$wl-Bexport'
d13673 3
a13675 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13677 2
a13678 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13693 1
a13693 1
    if test sni = "$host_vendor"; then
d13696 1
a13696 1
	export_dynamic_flag_spec='$wl-Blargedynsym'
d13704 1
a13704 1
test no = "$ld_shlibs" && can_build_shared=no
d13730 1
a13730 1
  if test yes,yes = "$GCC,$enable_shared"; then
d13942 5
d13950 1
a13950 1
if test yes = "$GCC"; then
d13952 2
a13953 2
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
    *) lt_awk_arg='/^libraries:/' ;;
d13956 2
a13957 2
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
    *) lt_sed_strip_eq='s|=/|/|g' ;;
d13973 1
a13973 1
  # and add multilib dir if necessary...
d13975 1
a13975 8
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  # ...but if some path component already ends with the multilib dir we assume
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  case "$lt_multi_os_dir; $lt_search_path_spec " in
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
    lt_multi_os_dir=
    ;;
  esac
d13977 3
a13979 3
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
    elif test -n "$lt_multi_os_dir"; then
d13985 3
a13987 3
BEGIN {RS = " "; FS = "/|\n";} {
  lt_foo = "";
  lt_count = 0;
d13994 1
a13994 1
          lt_foo = "/" $lt_i lt_foo;
d14008 1
a14008 1
      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
d14017 1
a14017 1
shrext_cmds=.so
a14033 2


d14036 2
a14037 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
d14041 1
a14041 1
  soname_spec='$libname$release$shared_ext$major'
d14045 1
a14045 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14049 1
a14049 1
  if test ia64 = "$host_cpu"; then
d14051 1
a14051 1
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
d14056 2
a14057 2
    # the line '#! .'.  This would cause the generated library to
    # depend on '.', always an invalid library.  This was fixed in
d14063 1
a14063 1
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
d14070 1
a14070 24
    # Using Import Files as archive members, it is possible to support
    # filename-based versioning of shared library archives on AIX. While
    # this would work for both with and without runtime linking, it will
    # prevent static linking of such archives. So we do filename-based
    # shared library versioning with .so extension only, which is used
    # when both runtime linking and shared linking is enabled.
    # Unfortunately, runtime linking may impact performance, so we do
    # not want this to be the default eventually. Also, we use the
    # versioned .so libs for executables only if there is the -brtl
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
    # To allow for filename-based versioning support, we need to create
    # libNAME.so.V as an archive file, containing:
    # *) an Import File, referring to the versioned filename of the
    #    archive as well as the shared archive member, telling the
    #    bitwidth (32 or 64) of that shared object, and providing the
    #    list of exported symbols of that shared object, eventually
    #    decorated with the 'weak' keyword
    # *) the shared object with the F_LOADONLY flag set, to really avoid
    #    it being seen by the linker.
    # At run time we better use the real file rather than another symlink,
    # but for link time we create the symlink libNAME.so -> libNAME.so.V

    case $with_aix_soname,$aix_use_runtimelinking in
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
d14073 1
a14073 2
    aix,yes) # traditional libtool
      dynamic_linker='AIX unversionable lib.so'
d14077 2
a14078 4
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      ;;
    aix,no) # traditional AIX only
      dynamic_linker='AIX lib.a(lib.so.V)'
d14081 3
a14083 27
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      ;;
    svr4,*) # full svr4 only
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,yes) # both, prefer svr4
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # unpreferred sharedlib libNAME.a needs extra handling
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,no) # both, prefer aix
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
      ;;
    esac
d14093 1
a14093 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14098 1
a14098 1
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d14104 1
a14104 1
  library_names_spec='$libname$shared_ext'
d14110 1
a14110 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14112 2
a14113 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14125 1
a14125 1
  shrext_cmds=.dll
d14134 2
a14135 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14151 1
a14151 1
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14157 1
a14157 1
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14161 1
a14161 1
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14170 2
a14171 2
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
    library_names_spec='$libname.dll.lib'
d14198 1
a14198 1
      sys_lib_search_path_spec=$LIB
d14211 2
a14212 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14225 1
a14225 1
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
d14238 2
a14239 2
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$major$shared_ext'
d14249 1
a14249 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14252 2
a14253 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14257 4
d14268 1
a14268 1
    freebsd[23].*) objformat=aout ;;
d14275 1
a14275 2
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      soname_spec='$libname$release$shared_ext$major'
d14280 1
a14280 1
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14286 1
a14286 1
  freebsd2.*)
d14305 10
d14316 1
a14316 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14320 2
a14321 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14323 1
a14323 1
  shlibpath_overrides_runpath=no
d14341 3
a14343 3
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
    if test 32 = "$HPUX_IA64_MODE"; then
a14344 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a14346 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
d14348 1
d14356 2
a14357 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14366 2
a14367 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14377 1
a14377 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14380 2
a14381 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14392 2
a14393 2
	if test yes = "$lt_cv_prog_gnu_ld"; then
		version_type=linux # correct to gnu/linux during the next big refactor
d14400 2
a14401 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
d14420 2
a14421 2
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
d14430 3
a14432 23
linux*android*)
  version_type=none # Android doesn't support versioned libraries.
  need_lib_prefix=no
  need_version=no
  library_names_spec='$libname$release$shared_ext'
  soname_spec='$libname$release$shared_ext'
  finish_cmds=
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  dynamic_linker='Android linker'
  # Don't embed -rpath directories since the linker doesn't support them.
  hardcode_libdir_flag_spec='-L$libdir'
  ;;

# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  version_type=linux # correct to gnu/linux during the next big refactor
d14435 2
a14436 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14480 1
a14480 6
  # Ideally, we could use ldconfig to report *all* directores which are
  # searched for libraries, however this is still not possible.  Aside from not
  # being certain /sbin/ldconfig is available, command
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  # even though it is searched at run-time.  Try to do the best guess by
  # appending ld.so.conf contents (and includes) to the search path.
d14500 1
a14500 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14504 2
a14505 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14514 2
a14515 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14524 2
a14525 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14532 1
a14532 1
openbsd* | bitrig*)
d14534 1
a14534 1
  sys_lib_dlsearch_path_spec=/usr/lib
d14536 17
a14552 2
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
    need_version=no
d14554 1
a14554 1
    need_version=yes
a14555 4
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
d14560 1
a14560 3
  version_type=windows
  shrext_cmds=.dll
  need_version=no
d14562 1
a14562 6
  # OS/2 can only load a DLL with a base name of 8 characters or less.
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
    v=$($ECHO $release$versuffix | tr -d .-);
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
    $ECHO $n$v`$shared_ext'
  library_names_spec='${libname}_dll.$libext'
d14564 1
a14564 15
  shlibpath_var=BEGINLIBPATH
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  postinstall_cmds='base_file=`basename \$file`~
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
    dldir=$destdir/`dirname \$dlpath`~
    test -d \$dldir || mkdir -p \$dldir~
    $install_prog $dir/$dlname \$dldir/$dlname~
    chmod a+x \$dldir/$dlname~
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
    fi'
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
    dlpath=$dir/\$dldll~
    $RM \$dlpath'
d14571 2
a14572 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14575 1
a14575 1
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d14583 1
a14583 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14586 2
a14587 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14597 1
a14597 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14601 1
a14601 1
  if test yes = "$with_gnu_ld"; then
d14608 3
a14610 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14631 4
a14634 4
  if test -d /usr/nec; then
    version_type=linux # correct to gnu/linux during the next big refactor
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
    soname_spec='$libname$shared_ext.$major'
d14640 1
a14640 1
  version_type=sco
d14643 2
a14644 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14648 1
a14648 1
  if test yes = "$with_gnu_ld"; then
d14663 1
a14663 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14666 1
a14666 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14673 3
a14675 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14685 1
a14685 1
test no = "$dynamic_linker" && can_build_shared=no
d14688 1
a14688 1
if test yes = "$GCC"; then
d14692 2
a14693 2
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
d14695 2
a14696 3

if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a14698 14
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec

# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"

# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH






d14795 1
a14795 1
   test yes = "$hardcode_automatic"; then
d14798 1
a14798 1
  if test no != "$hardcode_direct" &&
d14802 2
a14803 2
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
     test no != "$hardcode_minus_L"; then
d14818 2
a14819 2
if test relink = "$hardcode_action" ||
   test yes = "$inherit_rpath"; then
d14822 2
a14823 2
elif test yes = "$shlibpath_overrides_runpath" ||
     test no = "$enable_shared"; then
d14833 1
a14833 1
  if test yes != "$enable_dlopen"; then
d14843 1
a14843 1
    lt_cv_dlopen=load_add_on
d14849 1
a14849 1
    lt_cv_dlopen=LoadLibrary
d14854 1
a14854 1
    lt_cv_dlopen=dlopen
d14859 1
a14859 1
    # if libdl is installed we need to link against it
d14897 1
a14897 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d14900 1
a14900 1
    lt_cv_dlopen=dyld
a14907 8
  tpf*)
    # Don't try to run any link tests for TPF.  We know it's impossible
    # because TPF is a cross-compiler, and we know how we open DSOs.
    lt_cv_dlopen=dlopen
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=no
    ;;

d14911 1
a14911 1
  lt_cv_dlopen=shl_load
d14950 1
a14950 1
  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
d14954 1
a14954 1
  lt_cv_dlopen=dlopen
d14993 1
a14993 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d15032 1
a15032 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
d15071 1
a15071 1
  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
d15092 3
a15094 1
  if test no = "$lt_cv_dlopen"; then
a15095 2
  else
    enable_dlopen=yes
d15100 2
a15101 2
    save_CPPFLAGS=$CPPFLAGS
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d15103 1
a15103 1
    save_LDFLAGS=$LDFLAGS
d15106 1
a15106 1
    save_LIBS=$LIBS
d15110 3289
a18398 12
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"
d18400 10
a18409 3
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d18411 3
a18413 1
#include <stdio.h>
d18415 12
a18426 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
d18428 11
a18438 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
d18440 22
a18461 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
d18463 8
a18470 5
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
d18472 11
a18482 10
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
d18484 5
a18488 16
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
a18489 3
  else :
    # compilation failed
    lt_cv_dlopen_self=no
d18491 20
a18510 2
fi
rm -fr conftest*
d18512 7
d18520 3
a18523 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }
d18525 6
a18530 19
    if test yes = "$lt_cv_dlopen_self"; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
a18531 1
#include <stdio.h>
a18532 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
a18533 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
a18534 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
a18535 5
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
a18536 12
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());
a18537 21
  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*
a18539 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi
a18540 5
    CPPFLAGS=$save_CPPFLAGS
    LDFLAGS=$save_LDFLAGS
    LIBS=$save_LIBS
    ;;
  esac
a18541 4
  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac
a18542 5
  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi
a18559 29
striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP"; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi
d18569 6
d18576 20
d18597 9
a18606 5
  # Report what library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }
a18607 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test no = "$can_build_shared" && enable_shared=no
a18608 10
  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test yes = "$enable_shared" && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;
a18609 12
  aix[4-9]*)
    if test ia64 != "$host_cpu"; then
      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
      yes,aix,yes) ;;			# shared object as lib.so file only
      yes,svr4,*) ;;			# shared object as lib.so archive member only
      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
      esac
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }
a18610 6
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test yes = "$enable_shared" || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }
d18613 1
d18615 11
a18626 1
fi
a18632 4
CC=$lt_save_CC



d20866 1
a20866 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d20872 1
a20872 1
if test yes = "$GCC"; then
d20878 1
a20878 1
    # gcc leaves a trailing carriage return, which upsets mingw
d20892 1
a20892 1
      test -z "$LD" && LD=$ac_prog
d20903 1
a20903 1
elif test yes = "$with_gnu_ld"; then
d20914 1
a20914 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d20916 1
a20916 1
    IFS=$lt_save_ifs
d20919 1
a20919 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d20925 1
a20925 1
	test no != "$with_gnu_ld" && break
d20928 1
a20928 1
	test yes != "$with_gnu_ld" && break
d20933 1
a20933 1
  IFS=$lt_save_ifs
d20935 1
a20935 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d20939 1
a20939 1
LD=$lt_cv_path_LD
d28062 4
a28088 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }
d29229 2
a29279 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
a34166 1

a34168 1

a34173 2


d34184 1
a34184 1
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
a34558 1

a37253 1

a37311 2
ac_config_files="$ac_config_files scripts/build/genAuthors"

d37529 4
d37534 4
d38003 1
a38003 1
This file was extended by ntp $as_me 4.2.8p10, which was
d38070 1
a38070 1
ntp config.status 4.2.8p10
a38204 1
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
a38206 1
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
a38252 1
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
a38254 1
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
a38256 1
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
d38289 1
d38322 1
a38322 2
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
d38329 55
a38399 1
PATH_SEPARATOR \
a38426 1
lt_cv_sys_global_symbol_to_import \
a38428 1
lt_cv_nm_interface \
a38429 1
lt_cv_truncate_bin \
d38450 1
d38462 33
a38494 1
striplib; do
d38497 1
a38497 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38524 12
a38535 2
configure_time_dlsearch_path \
configure_time_lt_sys_library_path; do
d38538 1
a38538 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38547 2
d38550 1
a38550 1
# See if we are running on zsh, and set the options that allow our
d38552 1
a38552 1
if test -n "\${ZSH_VERSION+set}"; then
d38559 1
d38566 2
a38597 1
    "scripts/build/genAuthors") CONFIG_FILES="$CONFIG_FILES scripts/build/genAuthors" ;;
d39350 1
a39350 1
    # See if we are running on zsh, and set the options that allow our
d39352 1
a39352 1
    if test -n "${ZSH_VERSION+set}"; then
d39356 1
a39356 1
    cfgfile=${ofile}T
d39362 3
a39364 1
# Generated automatically by $as_me ($PACKAGE) $VERSION
a39366 12

# Provide generalized library-building support services.
# Written by Gordon Matzigkeit, 1996

# Copyright (C) 2014 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions.  There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# GNU Libtool is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of of the License, or
# (at your option) any later version.
d39368 16
a39383 4
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program or library that is built
# using GNU Libtool, you may include this file under the  same
# distribution terms that you use for the rest of that program.
d39385 2
a39386 2
# GNU Libtool is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
d39391 4
a39394 1
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
d39398 1
a39398 4
available_tags=''

# Configured defaults for sys_lib_dlsearch_path munging.
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
a39417 3
# Shared archive member basename,for filename based shared library versioning on AIX.
shared_archive_member_spec=$shared_archive_member_spec

a39423 3
# The PATH separator for the build system.
PATH_SEPARATOR=$lt_PATH_SEPARATOR

a39531 3
# Transform the output of nm into a list of symbols to manually relocate.
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import

a39537 3
# The name lister interface.
nm_interface=$lt_lt_cv_nm_interface

d39541 1
a39541 1
# The root where to search for dependent libraries,and where our libraries should be installed.
a39543 3
# Command to truncate a binary pipe.
lt_truncate_bin=$lt_lt_cv_truncate_bin

d39634 2
a39635 5
# Detected run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path

# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
d39725 4
d39732 1
a39732 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39736 1
a39736 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39738 1
a39738 1
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
d39786 2
a39787 1
# ### END LIBTOOL CONFIG
d39789 10
a39798 40
_LT_EOF

    cat <<'_LT_EOF' >> "$cfgfile"

# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE

# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}
d39800 1
a39800 17

# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}


# ### END FUNCTIONS SHARED WITH CONFIGURE
d39810 1
a39810 1
if test set != "${COLLECT_NAMES+set}"; then
d39819 1
a39819 1
ltmain=$ac_aux_dir/ltmain.sh
d39829 159
d39992 157
a40151 1
    "scripts/build/genAuthors":F) chmod +x scripts/build/genAuthors ;;
@


1.1.1.2.6.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d3 1
a3 3
# Generated by GNU Autoconf 2.68 for ntp 4.2.7p404.
#
# Report bugs to <http://bugs.ntp.org./>.
d247 4
a250 5
    $as_echo "$0: Please tell bug-autoconf@@gnu.org and
$0: http://bugs.ntp.org./ about your system, including any
$0: error possibly output before this message. Then install
$0: a modern shell, or manually run the script under such a
$0: shell if you do have one."
d570 4
a573 4
PACKAGE_VERSION='4.2.7p404'
PACKAGE_STRING='ntp 4.2.7p404'
PACKAGE_BUGREPORT='http://bugs.ntp.org./'
PACKAGE_URL='http://www.ntp.org./'
a610 1
ac_header_list=
d615 1
a616 9
PERLLIBDIR
NTP_KEYSDIR
GTEST_AVAILABLE_FALSE
GTEST_AVAILABLE_TRUE
GTEST_CPPFLAGS
GTEST_CXXFLAGS
GTEST_LIBS
GTEST_LDFLAGS
GTEST_CONFIG
a623 3
BUILD_SNTP_FALSE
BUILD_SNTP_TRUE
SNTP
d630 1
d637 6
a642 2
VER_SUFFIX
PKG_CONFIG
d647 2
a648 3
HAVE_RLIMIT_STACK
HAVE_RLIMIT_MEMLOCK
LDADD_NLIST
a649 1
CONFIG_SHELL
d651 1
a652 22
LIBOBJS
PTHREADS_FALSE
PTHREADS_TRUE
LIBISC_PTHREADS_NOTHREADS
PTHREAD_LIBS
HAVE_INLINE
ALLOCA
LIBM
EDITLINE_LIBS
LDADD_LIBNTP
NTP_CROSSCOMPILE_FALSE
NTP_CROSSCOMPILE_TRUE
LIBOPTS_DIR
LIBOPTS_CFLAGS
LIBOPTS_LDADD
NEED_LIBOPTS_FALSE
NEED_LIBOPTS_TRUE
INSTALL_LIBOPTS_FALSE
INSTALL_LIBOPTS_TRUE
POSIX_SHELL
LIBTOOL_DEPS
CXXCPP
d670 14
a684 60
LIBTOOL
TIMETRIM_MS
TIMETRIM_DS
TIMETRIM_DL
TIMETRIM_DB
TICKADJ_MS
TICKADJ_DS
TICKADJ_DL
TICKADJ_DB
SNTP_MS
SNTP_DS
SNTP_DL
SNTP_DB
NTP_WAIT_MS
NTP_WAIT_DS
NTP_WAIT_DL
NTP_WAIT_DB
NTP_KEYGEN_MS
NTP_KEYGEN_DS
NTP_KEYGEN_DL
NTP_KEYGEN_DB
NTPTRACE_MS
NTPTRACE_DS
NTPTRACE_DL
NTPTRACE_DB
NTPTIME_MS
NTPTIME_DS
NTPTIME_DL
NTPTIME_DB
NTPSNMPD_MS
NTPSNMPD_DS
NTPSNMPD_DL
NTPSNMPD_DB
NTPQ_MS
NTPQ_DS
NTPQ_DL
NTPQ_DB
NTPD_MS
NTPD_DS
NTPD_DL
NTPD_DB
NTPDSIM_MS
NTPDSIM_DS
NTPDSIM_DL
NTPDSIM_DB
NTPDC_MS
NTPDC_DS
NTPDC_DL
NTPDC_DB
NTPDATE_MS
NTPDATE_DS
NTPDATE_DL
NTPDATE_DB
MANTAGFMT
CALC_TICKADJ_MS
CALC_TICKADJ_DS
CALC_TICKADJ_DL
CALC_TICKADJ_DB
WANT_CALC_TICKADJ_MS_FALSE
WANT_CALC_TICKADJ_MS_TRUE
a688 10
am__fastdepCXX_FALSE
am__fastdepCXX_TRUE
CXXDEPMODE
ac_ct_CXX
CXXFLAGS
CXX
LDFLAGS_NTP
LDADD_NTP
CPPFLAGS_NTP
CFLAGS_NTP
a715 2
AM_BACKSLASH
AM_DEFAULT_VERBOSITY
d777 1
a777 6
ac_subst_files='calc_tickadj_opts
ntp_wait_opts
ntpsweep_opts
ntptrace_opts
summary_opts
plot_summary_opts'
a779 1
enable_silent_rules
a780 1
with_locfile
d782 6
d794 1
a794 5
enable_nls
enable_local_libopts
enable_libopts_install
with_autoopts_config
enable_local_libevent
d796 1
a797 10
enable_thread_support
with_threads
enable_c99_snprintf
enable_clockctl
enable_linuxcaps
enable_solarisprivs
with_arlib
with_net_snmp_config
with_stack_limit
with_memlock
d801 1
a838 1
enable_TSYNCPCI
a852 2
enable_SEL240X
with_crypto
d855 2
a856 2
with_rpath
enable_autokey
a861 1
with_sntp
d872 2
a875 1
enable_getifaddrs
a876 1
with_gtest
a886 3
CXX
CXXFLAGS
CCC
d888 1
a888 2
YFLAGS
CXXCPP'
d1431 1
a1431 1
\`configure' configures ntp 4.2.7p404 to adapt to many kinds of systems.
d1501 1
a1501 1
     short | recursive ) echo "Configuration of ntp 4.2.7p404:";;
d1505 1
a1505 1
Optional Features and Packages:
a1508 4
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --enable-silent-rules          less verbose build output (undo: `make V=1')
  --disable-silent-rules         verbose build output (undo: `make V=0')
a1510 1
  --with-locfile=XXX      os-specific or "legacy"
d1512 3
a1515 2
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
a1517 3
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
d1519 3
a1521 8
  --disable-nls           disable nls support in libopts
  --enable-local-libopts  Use the supplied libopts tearoff code
  --enable-libopts-install
                          Install libopts with client installation
  --with-autoopts-config  specify the config-info script
  --enable-local-libevent Force using the supplied libevent tearoff code
  --with-lineeditlibs     edit,editline (readline may be specified if desired)
  defaults:               + yes, - no, s system-specific
a1522 10
  --enable-thread-support s use threads (+ if available)
  --with-threads	  with threads [auto]
  --enable-c99-snprintf   s force replacement
  --enable-clockctl       s Use /dev/clockctl for non-root clock control
  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
  --with-arlib            - deprecated, arlib not distributed
  --with-net-snmp-config  + =net-snmp-config
  --with-stack-limit      ? =50 (200 for openbsd) 4k pages
  --with-memlock          ? =32 (megabytes)
d1525 1
a1525 1
  --enable-dst-minutes    =60 minutes per DST adjustment
d1528 2
a1566 1
  --enable-TSYNCPCI       s Spectracom TSYNC timing board
a1580 10
  --enable-SEL240X        s SEL240X clock
  --with-crypto           + =openssl,libcrypto

  --with-openssl-libdir   + =/something/reasonable

  --with-openssl-incdir   + =/something/reasonable

  --without-rpath         s Disable auto-added -R linker paths

  --enable-autokey        + support NTP Autokey protocol
a1586 2
  --without-sntp          - disable building sntp and sntp/tests
  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
d1598 2
d1602 21
a1623 3
  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
  --enable-saveconfig     + saveconfig mechanism
  --with-gtest            Use the gtest framework (Default: if it's available)
a1633 2
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
a1639 1
  CXXCPP      C++ preprocessor
d1644 1
a1644 2
Report bugs to <http://bugs.ntp.org./>.
ntp home page: <http://www.ntp.org./>.
d1707 1
a1707 1
ntp configure 4.2.7p404
a1865 4
( $as_echo "## ------------------------------------ ##
## Report this to http://bugs.ntp.org./ ##
## ------------------------------------ ##"
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d2002 5
a2006 42
# ac_fn_cxx_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_compile

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
d2014 14
d2030 1
a2030 31
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

d2034 2
a2035 1
return $2 ();
d2040 3
a2042 1
if ac_fn_c_try_link "$LINENO"; then :
a2043 2
else
  eval "$3=no"
d2045 3
a2047 2
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d2054 1
a2054 1
} # ac_fn_c_check_func
d2056 6
a2061 4
# ac_fn_cxx_try_cpp LINENO
# ------------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_cpp ()
d2064 10
a2073 23
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d2075 15
a2089 4
    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval
d2091 3
a2093 140
} # ac_fn_cxx_try_cpp

# ac_fn_cxx_try_link LINENO
# -------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_link

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_type

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
d2234 4
a2237 5
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
# ---------------------------------------------
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
# accordingly.
ac_fn_c_check_decl ()
d2240 2
a2241 4
  as_decl_name=`echo $2|sed 's/ *(.*//'`
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d2247 20
a2266 5
$4
int
main ()
{
#ifndef $as_decl_name
d2268 1
a2268 3
  (void) $as_decl_use;
#else
  (void) $as_decl_name;
d2270 6
d2278 4
d2286 1
a2286 1
if ac_fn_c_try_compile "$LINENO"; then :
d2291 2
a2292 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d2299 1
a2299 1
} # ac_fn_c_check_decl
d2361 1
a2361 1
It was created by ntp $as_me 4.2.7p404, which was
a2640 1
as_fn_append ac_header_list " stdarg.h"
d2711 1
a2711 1
for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
d2727 1
a2727 1
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
d2740 3
a2742 7




# Bump ntp_configure_cache_version for each change to configure.ac or
# .m4 files which invalidates cached values from previous configure
# runs.
d2752 2
a2753 2
# please bump the version numbers of each.  If you are not sure, the
# safe choice is to bump all on any cache-invalidating change.
d2760 1
a2760 1
ntp_configure_cache_version=20120806
a2797 1
		;;
a2802 1
	;;
d2839 1
a2839 1
	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
d3301 1
a3301 1
 VERSION='4.2.7p404'
a3340 14

# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in
yes) AM_DEFAULT_VERBOSITY=0;;
no)  AM_DEFAULT_VERBOSITY=1;;
*)   AM_DEFAULT_VERBOSITY=0;;
esac
AM_BACKSLASH='\'


a4803 2


a4823 8
        case "$host_os" in
    hpux*)

$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h

      ;;
  esac

d4833 2
a4834 2
#         define __EXTENSIONS__ 1
          $ac_includes_default
d4864 24
a4887 3
if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
d4889 1
a4889 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
a4890 7
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a4891 3
int
main ()
{
d4893 13
a4905 193
  ;
  return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
else
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi






ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d5570 6
a5575 12
# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
if test "$am_t" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
d5577 3
a5579 6


if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
a5581 1
    ac_pattern="Autoconf.*'x'"
a5583 10
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
else
  ac_cv_prog_gcc_traditional=no
fi
rm -f conftest*
d5585 3
d5589 3
a5591 5
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
d5593 73
a5665 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5667 1
a5667 1
rm -f conftest*
a5668 7
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d5670 6
d5677 1
d5679 1
d5681 13
a5694 4
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d5696 13
a5708 16




case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d5711 12
d5725 8
a5733 10
int
main ()
{
#warning foo
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cpp_warning=yes
d5735 2
a5736 2
  ntp_cv_cpp_warning=no

d5738 1
a5738 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5740 2
a5741 15
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
  $as_echo_n "(cached) " >&6
else
d5744 1
a5744 9

int
main ()
{
void foo(void) __attribute__((__noreturn__));

  ;
  return 0;
}
d5746 3
a5748 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cc_attribute=yes
d5750 3
a5752 2
  ntp_cv_cc_attribute=no

d5754 1
a5754 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5756 5
a5761 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)
d5763 2
a5764 1
$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
d5766 2
a5767 11
esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
d5769 13
d5784 8
d5793 5
a5797 3
int
main ()
{
d5799 5
a5803 3
  ;
  return 0;
}
d5805 3
a5807 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Wstrict_overflow=yes
d5809 3
a5811 2
  ntp_cv_gcc_Wstrict_overflow=no

d5813 1
a5813 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5815 10
d5826 14
a5839 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
d5842 34
d5877 18
a5894 1
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5896 93
d5994 35
d6033 5
a6037 5
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

d6039 5
a6043 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d6046 19
a6064 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
d6067 26
d6094 8
a6101 4
	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6103 4
a6106 2
			#include <stdlib.h>
			#include <stdio.h>
d6108 6
d6117 1
a6117 23

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


d6122 12
a6133 8
if ac_fn_c_try_link "$LINENO"; then :

		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d6135 16
d6152 2
a6153 1
  ntp_cv_gc_sections_runs=no
d6156 20
a6175 4
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    CFLAGS="$origCFLAGS"
	    { origCFLAGS=; unset origCFLAGS;}
d6177 7
d6185 9
a6193 10
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
$as_echo "$ntp_cv_gc_sections_runs" >&6; }
    case "$ntp_cv_gc_sections_runs" in
     yes)
	LDADD_LIBNTP="-Wl,--gc-sections"
	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
	;;
     no)
	LDADD_LIBNTP=
d6196 14
a6209 21
    CFLAGS_NTP="$CFLAGS_NTP -Wall"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
    case "$ntp_cv_gcc_Winit_self" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
    esac
    case "$ntp_cv_gcc_Wstrict_overflow" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
    esac
    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
d6220 1
a6220 1
	ntp_os_cflags=
a6233 2
	    # XXX Only verified thru AIX6.
	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
d6235 1
a6235 4
	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
d6304 1
a6305 1
    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
d6311 3
a6313 4

 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :
a6315 8
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;
d6317 19
a6336 1
if ac_fn_c_try_compile "$LINENO"; then :
d6338 25
a6362 21
	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
a6363 7
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>
a6364 8
int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif
d6366 21
a6386 3
  ;
  return 0;
}
d6388 14
a6401 3
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6404 1
a6404 1
		#include <sys/param.h>
d6409 2
a6410 4
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

d6416 1
a6416 1
  ac_cv_c_bigendian=yes
d6418 1
a6418 1
  ac_cv_c_bigendian=no
d6422 21
a6442 5
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6443 1
#include <limits.h>
d6445 7
d6455 1
a6455 4
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

d6460 40
a6499 3
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6500 1
#include <limits.h>
d6502 7
d6512 1
a6512 4
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

d6517 18
a6534 2
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
d6536 1
a6536 1
  ac_cv_c_bigendian=no
d6538 9
a6546 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6547 23
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;
a6548 20
int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
a6549 8
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
a6550 8
	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;
d6552 15
a6566 3
  ;
  return 0;
}
a6567 8
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a6568 1
    fi
a6569 9
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)
d6571 1
a6571 1
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
a6572 5
     ;; #(
   *)
     as_fn_error $? "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac
d6574 9
a6582 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
$as_echo_n "checking for working volatile... " >&6; }
if ${ac_cv_c_volatile+:} false; then :
  $as_echo_n "(cached) " >&6
d6584 4
a6587 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a6588 3
int
main ()
{
d6590 7
a6596 6
volatile int x;
int * volatile y = (int *) 0;
return !x && !y;
  ;
  return 0;
}
d6598 1
a6598 2
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_volatile=yes
d6600 1
a6600 3
  ac_cv_c_volatile=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6601 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
$as_echo "$ac_cv_c_volatile" >&6; }
if test $ac_cv_c_volatile = no; then
d6603 1
a6603 1
$as_echo "#define volatile /**/" >>confdefs.h
a6604 1
fi
d6606 7
a6612 35
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
d6614 1
a6614 2
if ac_fn_c_try_cpp "$LINENO"; then :

d6616 1
a6616 2
  # Broken: fails on valid input.
continue
a6617 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6619 10
a6628 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
d6630 1
a6630 3
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
d6632 1
a6632 3
  # Passes both tests.
ac_preproc_ok=:
break
a6633 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6636 21
a6656 4
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
d6659 1
a6659 2
    done
    ac_cv_prog_CPP=$CPP
d6661 32
a6692 24
fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6693 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6695 1
a6695 3
else
  # Broken: fails on valid input.
continue
a6696 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6698 14
a6711 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
a6712 9
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext
a6713 4
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
a6714 5
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
d6717 2
a6718 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6720 3
a6724 10
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
d6726 5
a6730 24
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6731 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6733 1
a6733 3
else
  # Broken: fails on valid input.
continue
d6735 2
a6736 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6738 2
a6739 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
d6741 2
a6742 7
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
d6744 7
a6750 1
rm -f conftest.err conftest.i conftest.$ac_ext
a6751 5
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
d6753 6
a6759 2
    done
    ac_cv_prog_CPP=$CPP
d6762 8
a6769 3
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
d6771 5
a6775 19
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6776 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6778 1
a6778 3
else
  # Broken: fails on valid input.
continue
d6780 2
a6781 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6783 29
a6811 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
a6812 9
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext
a6813 4
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
a6814 5
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
a6816 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6818 10
a6827 17
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CXX+:} false; then :
d6830 2
a6831 2
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
d6833 9
a6841 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d6844 30
d6875 1
a6875 7
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d6877 8
d6887 7
a6893 12
    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
d6896 2
a6897 2
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
d6899 9
a6907 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d6910 2
a6911 9
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a6913 2
  test -n "$ac_ct_CXX" && break
done
d6915 3
a6917 12
  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi
a6918 26
  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done
d6920 7
a6926 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if ${ac_cv_cxx_compiler_gnu+:} false; then :
d6929 1
a6929 9
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif
a6930 6
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
d6932 8
a6939 1
  ac_compiler_gnu=no
a6940 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d6943 17
a6959 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if ${ac_cv_prog_cxx_g+:} false; then :
d6962 3
a6964 5
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6967 7
d6977 1
a6977 1

d6982 2
a6983 2
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
d6985 11
a6995 11
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
a6996 1
if ac_fn_cxx_try_compile "$LINENO"; then :
d6998 1
a6998 5
else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d7000 1
a7000 3
int
main ()
{
d7002 6
a7007 3
  ;
  return 0;
}
a7008 32
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7010 2
a7011 1
depcc="$CXX"  am_compiler_list=
d7013 1
a7013 23
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub
d7015 1
a7015 8
  am_cv_CXX_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac
d7017 2
a7018 69
  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CXX_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done
a7019 5
  cd ..
  rm -rf conftest.dir
else
  am_cv_CXX_dependencies_compiler_type=none
fi
d7021 7
a7027 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a7028 8
 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  am__fastdepCXX_TRUE=
  am__fastdepCXX_FALSE='#'
else
  am__fastdepCXX_TRUE='#'
  am__fastdepCXX_FALSE=
d7031 1
d7033 8
a7040 26
for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_YACC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a7042 12
fi
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$YACC" && break
a7043 1
test -n "$YACC" || YACC="yacc"
d7045 5
a7049 3
if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
d7051 2
a7052 7
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
fi
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
d7056 1
a7056 1

d7061 3
d7068 13
a7080 71
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
d7082 1
a7082 1
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
d7084 12
a7095 2
rm -f core conftest*

d7097 6
a7102 3
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
d7104 2
a7105 29
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
ntp_vpath_hack="no"
case "$srcdir::${force_ntp_vpath_hack-no}" in
 .::*)
    ;; # VPATH_HACK path is for VPATH builds only.
 *::yes)
    ntp_vpath_hack="yes"
    ;;
 *::*)
    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	ntp_vpath_hack="yes"
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
$as_echo "$ntp_vpath_hack" >&6; }
 if test x$ntp_vpath_hack = xyes; then
  VPATH_HACK_TRUE=
  VPATH_HACK_FALSE='#'
d7107 35
a7141 3
  VPATH_HACK_TRUE='#'
  VPATH_HACK_FALSE=
fi
d7143 5
d7149 1
d7151 1
d7153 18
a7170 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
$as_echo_n "checking for install dir and man conventions... " >&6; }
d7172 8
d7181 5
a7185 5
# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
else
  with_locfile=no
d7187 2
a7188 1
fi
d7190 2
d7193 8
a7200 30
(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genLocInfo -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genLocInfo.i 2> genLocInfo.err
. ./genLocInfo.i

case "$GENLOCINFO" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
$as_echo "in file $GENLOCINFOFILE" >&6; }
    rm genLocInfo.err genLocInfo.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
    ;;
esac

 if test "$CALC_TICKADJ_MS" ; then
  WANT_CALC_TICKADJ_MS_TRUE=
  WANT_CALC_TICKADJ_MS_FALSE='#'
d7202 4
a7205 2
  WANT_CALC_TICKADJ_MS_TRUE='#'
  WANT_CALC_TICKADJ_MS_FALSE=
d7208 3
d7212 6
d7219 1
d7221 1
d7223 1
d7225 1
d7227 2
d7230 1
d7232 1
d7234 9
d7244 2
d7247 11
a7257 189



















































# So far, the only shared library we might use is libopts.
# It's a small library - we might as well use a static version of it.
# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then :
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_shared=no
fi









case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac



macro_version='2.4'
macro_revision='1.3293'













ltmain="$ac_aux_dir/ltmain.sh"

# Backslashify metacharacters that are still active within
# double-quoted strings.
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\(["`\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
$as_echo_n "checking how to print strings... " >&6; }
# Test print first, because it will be a builtin if present.
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='print -r --'
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='printf %s\n'
else
  # Use this function as a fallback that always works.
  func_fallback_echo ()
  {
    eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
  }
  ECHO='func_fallback_echo'
fi

# func_echo_all arg...
# Invoke $ECHO with all args, space-separated.
func_echo_all ()
{
    $ECHO ""
}

case "$ECHO" in
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
$as_echo "printf" >&6; } ;;
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
$as_echo "print -r" >&6; } ;;
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
$as_echo "cat" >&6; } ;;
esac














{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
d7316 22
a7337 2
test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"
d7340 1
d7343 1
d7345 11
d7358 4
d7363 7
d7372 3
d7376 7
a7382 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if ${ac_cv_path_FGREP+:} false; then :
d7385 8
a7392 42
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  ac_path_FGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in fgrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
# Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
a7393 10
      $ac_path_FGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_FGREP"; then
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_FGREP=$FGREP
d7395 1
d7397 3
a7399 5
   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"
d7401 13
d7415 4
a7418 2
test -z "$GREP" && GREP=grep

d7420 20
d7443 1
d7446 1
d7448 1
d7451 7
d7459 1
d7461 1
d7463 8
d7472 2
d7475 15
d7491 2
d7494 12
d7507 3
a7510 3
# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d7512 1
a7512 1
  with_gnu_ld=no
d7514 1
a7514 6

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
d7516 6
a7521 16
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
a7522 8
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
d7524 2
a7525 6
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
d7527 5
a7531 1
if ${lt_cv_path_LD+:} false; then :
d7534 2
a7535 21
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
d7537 96
a7632 1
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
d7634 2
a7637 7
LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d7639 8
a7646 15
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
a7647 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld
d7649 1
d7651 1
d7653 1
d7655 1
d7657 2
d7660 1
d7662 1
d7665 3
a7667 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if ${lt_cv_path_NM+:} false; then :
d7670 13
a7682 3
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
d7684 2
a7685 38
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
d7687 2
d7690 16
a7705 17
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$DUMPBIN"; then :
    # Let the user override the test.
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in dumpbin "link -dump"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DUMPBIN+:} false; then :
d7708 13
a7720 2
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7722 1
a7722 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d7725 1
a7725 10
fi
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

a7726 2
    test -n "$DUMPBIN" && break
  done
d7728 145
a7872 3
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in dumpbin "link -dump"
d7878 1
a7878 1
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
d7881 2
a7882 2
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d7891 1
a7891 1
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
d7901 4
a7904 4
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
d7911 1
a7911 1
  test -n "$ac_ct_DUMPBIN" && break
d7914 18
a7931 8
  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
d7933 10
a7942 2
    DUMPBIN=$ac_ct_DUMPBIN
  fi
d7945 53
a7997 7
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
    *COFF*)
      DUMPBIN="$DUMPBIN -symbols"
      ;;
    *)
      DUMPBIN=:
      ;;
d7999 3
a8001 1
  fi
a8002 5
  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
fi
test -z "$NM" && NM=nm
d8005 5
d8013 2
a8015 22
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if ${lt_cv_nm_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }
a8016 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi
a8017 8
# find the maximum length of command line arguments
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if ${lt_cv_sys_max_cmd_len+:} false; then :
  $as_echo_n "(cached) " >&6
else
    i=0
  teststring="ABCD"
a8018 8
  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;
a8019 6
  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;
a8020 10
  cygwin* | mingw* | cegcc*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8021 4
  mint*)
    # On MiNT this can take a long time and run out of memory.
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8022 5
  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8023 13
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;
a8024 4
  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;
a8025 56
  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n "$lt_cv_sys_max_cmd_len"; then
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    else
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      for i in 1 2 3 4 5 6 7 8 ; do
        teststring=$teststring$teststring
      done
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
      # If test is not a shell built-in, we'll probably end up computing a
      # maximum length that is only half of the actual maximum length, but
      # we can't tell.
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
	      test $i != 17 # 1/2 MB should be enough
      do
        i=`expr $i + 1`
        teststring=$teststring$teststring
      done
      # Only check the string length outside the loop.
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
      teststring=
      # Add a significant safety factor because C++ compilers can tack on
      # massive amounts of additional arguments before passing them to the
      # linker.  It appears as though 1/2 is a usable value.
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    fi
    ;;
  esac
a8026 1
fi
d8028 1
a8028 8
if test -n $lt_cv_sys_max_cmd_len ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi
max_cmd_len=$lt_cv_sys_max_cmd_len
d8030 3
d8034 2
d8037 3
d8041 2
d8044 2
d8047 3
a8049 3
: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}
d8051 8
a8058 26
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,b/c, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }


if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
d8060 8
a8067 1
  lt_unset=false
d8070 6
d8077 7
a8083 14



# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
a8093 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
if ${lt_cv_to_host_file_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
        ;;
    esac
    ;;
  *-*-cygwin* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_noop
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
        ;;
    esac
    ;;
  * ) # unhandled hosts (and "normal" native builds)
    lt_cv_to_host_file_cmd=func_convert_file_noop
    ;;
esac
a8094 1
fi
a8095 3
to_host_file_cmd=$lt_cv_to_host_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
d8099 4
a8102 6


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
if ${lt_cv_to_tool_file_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
d8104 44
a8147 10
  #assume ordinary cross tools, or native build.
lt_cv_to_tool_file_cmd=func_convert_file_noop
case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
        ;;
    esac
    ;;
d8150 10
d8162 5
a8166 3
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
d8168 2
a8173 31
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
$as_echo_n "checking for $LD option to reload object files... " >&6; }
if ${lt_cv_ld_reload_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_reload_flag='-r'
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
$as_echo "$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    if test "$GCC" != yes; then
      reload_cmds=false
    fi
    ;;
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac


d8181 3
a8183 6
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OBJDUMP+:} false; then :
d8186 8
a8193 5
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
d8197 1
d8199 33
a8231 6
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d8234 6
d8241 1
d8243 11
a8253 9
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a8255 27
fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a8256 10
fi
fi
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a8257 14
  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi
a8258 1
test -z "$OBJDUMP" && OBJDUMP=objdump
d8268 6
a8273 18
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
if ${lt_cv_deplibs_check_method+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
d8275 22
a8296 55
case $host_os in
aix[4-9]*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    # Keep this pattern in sync with the one in func_win32_libid.
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;

cegcc*)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

freebsd* | dragonfly*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
d8298 3
a8300 24
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

haiku*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
d8303 2
a8304 2
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
d8307 35
a8341 1
  ;;
d8343 18
a8360 3
interix[3-9]*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d8362 2
a8363 9

irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
d8365 5
a8370 4
# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8371 7
netbsd*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;
a8372 5
newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;
a8373 3
*nto* | *qnx*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8374 7
openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;
a8375 3
osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8376 3
rdos*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8377 39
solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
  esac
  ;;

tpf*)
  lt_cv_deplibs_check_method=pass_all
  ;;
esac
d8379 47
a8426 15
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
$as_echo "$lt_cv_deplibs_check_method" >&6; }

file_magic_glob=
want_nocaseglob=no
if test "$build" = "$host"; then
  case $host_os in
  mingw* | pw32*)
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
      want_nocaseglob=yes
    else
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
    fi
    ;;
  esac
d8428 14
a8441 29

file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown






















if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
d8444 1
a8444 1
if ${ac_cv_prog_DLLTOOL+:} false; then :
d8447 2
a8448 2
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
d8457 1
a8457 1
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
d8467 4
a8470 4
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
d8477 2
d8480 6
a8485 4
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
d8488 1
a8488 1
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
d8491 2
a8492 2
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
d8501 1
a8501 1
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
d8511 4
a8514 4
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
d8520 6
a8525 2
  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
d8533 1
a8533 1
    DLLTOOL=$ac_ct_DLLTOOL
a8534 2
else
  DLLTOOL="$ac_cv_prog_DLLTOOL"
d8537 9
a8545 1
test -z "$DLLTOOL" && DLLTOOL=dlltool
d8547 5
d8558 22
d8581 10
d8592 4
a8595 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
d8598 11
a8608 1
  lt_cv_sharedlib_from_linklib_cmd='unknown'
d8610 71
a8680 7
case $host_os in
cygwin* | mingw* | pw32* | cegcc*)
  # two different shell functions defined in ltmain.sh
  # decide which to use based on capabilities of $DLLTOOL
  case `$DLLTOOL --help 2>&1` in
  *--identify-strict*)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
d8683 29
a8711 1
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
a8713 6
  ;;
*)
  # fallback: assume linklib IS sharedlib
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  ;;
esac
d8716 9
a8724 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
d8731 3
d8735 12
a8746 27
if test -n "$ac_tool_prefix"; then
  for ac_prog in ar
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a8747 10
fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d8749 8
a8757 31
    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d8759 2
a8760 6
fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
d8762 1
a8762 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
a8765 15
  test -n "$ac_ct_AR" && break
done

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
fi
a8766 2
: ${AR=ar}
: ${AR_FLAGS=cru}
d8769 12
d8790 3
a8792 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @@FILE support" >&5
$as_echo_n "checking for archiver @@FILE support... " >&6; }
if ${lt_cv_ar_at_file+:} false; then :
d8795 40
a8834 3
  lt_cv_ar_at_file=no
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a8835 3
int
main ()
{
d8837 16
a8852 25
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  echo conftest.$ac_objext > conftest.lst
      lt_ar_try='$AR $AR_FLAGS libconftest.a @@conftest.lst >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
	# Ensure the archiver fails upon bogus file names.
	rm -f conftest.$ac_objext libconftest.a
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	if test "$ac_status" -ne 0; then
          lt_cv_ar_at_file=@@
        fi
      fi
      rm -f conftest.* libconftest.a
a8854 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d8856 7
a8862 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
$as_echo "$lt_cv_ar_at_file" >&6; }
d8864 4
a8867 2
if test "x$lt_cv_ar_at_file" = xno; then
  archiver_list_spec=
d8869 1
a8869 1
  archiver_list_spec=$lt_cv_ar_at_file
d8871 24
d8903 2
a8904 2
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
d8907 1
a8907 1
if ${ac_cv_prog_STRIP+:} false; then :
d8910 2
a8911 2
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d8920 1
a8920 1
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
d8930 4
a8933 4
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
d8941 4
a8944 4
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
d8947 1
a8947 1
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d8950 2
a8951 2
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d8960 1
a8960 1
    ac_cv_prog_ac_ct_STRIP="strip"
d8970 4
a8973 4
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
d8979 2
a8980 2
  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
d8988 1
a8988 1
    STRIP=$ac_ct_STRIP
d8991 1
a8991 1
  STRIP="$ac_cv_prog_STRIP"
d8994 1
a8994 1
test -z "$STRIP" && STRIP=:
a9000 25
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9001 10
fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9004 3
a9006 8
fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
d9009 13
a9021 17
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d9023 20
a9042 10
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9044 8
a9051 2
  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
d9053 3
a9055 7
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
d9057 1
a9057 3
else
  RANLIB="$ac_cv_prog_RANLIB"
fi
d9059 5
a9063 1
test -z "$RANLIB" && RANLIB=:
d9065 3
d9069 15
d9085 3
d9089 3
d9093 10
a9102 10

# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=

if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
d9105 2
a9106 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
d9109 1
a9109 2
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi
d9111 4
a9114 6
case $host_os in
  darwin*)
    lock_old_archive_extraction=yes ;;
  *)
    lock_old_archive_extraction=no ;;
esac
d9116 9
d9126 4
d9131 7
d9139 5
d9145 3
d9149 7
d9157 3
d9161 3
d9165 3
d9169 3
d9173 26
d9200 4
d9205 3
d9209 13
d9223 3
d9248 94
a9343 2
# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}
a9344 2
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
a9345 2
# Allow CC to be a program name with arguments.
compiler=$CC
a9347 6
# Check for command to grab the raw symbol name followed by C symbol from nm.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  $as_echo_n "(cached) " >&6
else
a9348 2
# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
a9349 2
# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'
d9351 6
a9356 2
# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
a9357 1
# Define system-specific variables.
a9358 3
aix*)
  symcode='[BCDT]'
  ;;
d9360 10
a9369 1
  symcode='[ABCDGISTW]'
d9371 3
a9373 25
hpux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris*)
  symcode='[BDRT]'
  ;;
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
d9377 6
a9382 5
# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac
a9383 4
# Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently,
# so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
a9384 3
# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
a9385 7
# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac
a9386 2
# Try without a prefix underscore, then with it.
for ac_symprfx in "" "_"; do
a9387 2
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"
d9389 23
a9411 19
  # Write the raw and C identifiers.
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
    # Fake it for dumpbin and say T for any non-static function
    # and D for any global variable.
    # Also find C++ and __fastcall symbols from MSVC++,
    # which start with @@ or ?.
    lt_cv_sys_global_symbol_pipe="$AWK '"\
"     {last_section=section; section=\$ 3};"\
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
"     \$ 0!~/External *\|/{next};"\
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
"     {if(hide[section]) next};"\
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
"     s[1]~/^[@@?]/{print s[1], s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print t[1], substr(t[1],length(prfx))}"\
"     ' prfx=^$ac_symprfx"
  else
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
d9413 14
a9426 1
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
a9427 2
  # Check to see that the pipe works correctly.
  pipe_works=no
d9429 31
a9459 13
  rm -f conftest*
  cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(void);
void nm_test_func(void){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
_LT_EOF
d9461 10
a9470 34
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<_LT_EOF > conftest.$ac_ext
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
/* DATA imports from DLLs on WIN32 con't be const, because runtime
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
# define LT_DLSYM_CONST
#elif defined(__osf__)
/* This system does not cope well with relocations in const data.  */
# define LT_DLSYM_CONST
#else
# define LT_DLSYM_CONST const
#endif
a9471 3
#ifdef __cplusplus
extern "C" {
#endif
d9473 2
a9474 3
_LT_EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9476 2
a9477 51
	  cat <<_LT_EOF >> conftest.$ac_ext

/* The mapping between symbol names and symbols.  */
LT_DLSYM_CONST struct {
  const char *name;
  void       *address;
}
lt__PROGRAM__LTX_preloaded_symbols[] =
{
  { "@@PROGRAM@@", (void *) 0 },
_LT_EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
	  cat <<\_LT_EOF >> conftest.$ac_ext
  {0, (void *) 0}
};

/* This works around a problem in FreeBSD linker */
#ifdef FREEBSD_WORKAROUND
static const void *lt_preloaded_setup() {
  return lt__PROGRAM__LTX_preloaded_symbols;
}
#endif

#ifdef __cplusplus
}
#endif
_LT_EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_globsym_save_LIBS=$LIBS
	  lt_globsym_save_CFLAGS=$CFLAGS
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
	    pipe_works=yes
	  fi
	  LIBS=$lt_globsym_save_LIBS
	  CFLAGS=$lt_globsym_save_CFLAGS
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
d9479 7
a9485 10
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -rf conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
a9486 2
done

d9489 2
a9490 17
if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
fi

# Response file support.
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  nm_file_list_spec='@@'
elif $NM --help 2>/dev/null | grep '[@@]FILE' >/dev/null; then
  nm_file_list_spec='@@'
fi
d9502 8
d9511 3
d9515 25
d9541 2
d9544 3
d9548 5
d9560 25
d9586 10
d9598 27
d9626 9
a9634 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
$as_echo_n "checking for sysroot... " >&6; }

# Check whether --with-sysroot was given.
if test "${with_sysroot+set}" = set; then :
  withval=$with_sysroot;
else
  with_sysroot=no
d9637 8
a9644 18

lt_sysroot=
case ${with_sysroot} in #(
 yes)
   if test "$GCC" = yes; then
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   fi
   ;; #(
 /*)
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   ;; #(
 no|'')
   ;; #(
 *)
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
$as_echo "${with_sysroot}" >&6; }
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   ;;
d9646 4
a9649 11

 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
$as_echo "${lt_sysroot:-no}" >&6; }





# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then :
  enableval=$enable_libtool_lock;
d9652 1
a9652 128
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.$ac_objext` in
      *ELF-32*)
	HPUX_IA64_MODE="32"
	;;
      *ELF-64*)
	HPUX_IA64_MODE="64"
	;;
    esac
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    if test "$lt_cv_prog_gnu_ld" = yes; then
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -melf32bsmip"
	  ;;
	*N32*)
	  LD="${LD-ld} -melf32bmipn32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -melf64bmip"
	;;
      esac
    else
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -32"
	  ;;
	*N32*)
	  LD="${LD-ld} -n32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -64"
	  ;;
      esac
    fi
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
      *32-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_i386_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_i386"
	    ;;
	  ppc64-*linux*|powerpc64-*linux*)
	    LD="${LD-ld} -m elf32ppclinux"
	    ;;
	  s390x-*linux*)
	    LD="${LD-ld} -m elf_s390"
	    ;;
	  sparc64-*linux*)
	    LD="${LD-ld} -m elf32_sparc"
	    ;;
	esac
	;;
      *64-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_x86_64_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_x86_64"
	    ;;
	  ppc*-*linux*|powerpc*-*linux*)
	    LD="${LD-ld} -m elf64ppc"
	    ;;
	  s390*-*linux*|s390*-*tpf*)
	    LD="${LD-ld} -m elf64_s390"
	    ;;
	  sparc*-*linux*)
	    LD="${LD-ld} -m elf64_sparc"
	    ;;
	esac
	;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
if ${lt_cv_cc_needs_belf+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
a9653 2
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a9654 3
int
main ()
{
a9655 16
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_cc_needs_belf=yes
else
  lt_cv_cc_needs_belf=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
a9656 32
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
$as_echo "$lt_cv_cc_needs_belf" >&6; }
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
	  LD="${LD-ld} -64"
	fi
	;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;
esac
a9657 1
need_locks="$enable_libtool_lock"
d9660 2
a9661 2
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
set dummy ${ac_tool_prefix}mt; ac_word=$2
d9664 1
a9664 1
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
d9667 2
a9668 2
  if test -n "$MANIFEST_TOOL"; then
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
d9677 1
a9677 1
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
d9687 4
a9690 4
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
if test -n "$MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
$as_echo "$MANIFEST_TOOL" >&6; }
d9698 4
a9701 4
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  # Extract the first word of "mt", so it can be a program name with args.
set dummy mt; ac_word=$2
d9704 1
a9704 1
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
d9707 2
a9708 2
  if test -n "$ac_ct_MANIFEST_TOOL"; then
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
d9717 1
a9717 1
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
d9727 4
a9730 4
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
if test -n "$ac_ct_MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
d9736 2
a9737 2
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
    MANIFEST_TOOL=":"
d9745 1
a9745 1
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
d9748 1
a9748 1
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
d9751 22
a9772 19
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
if ${lt_cv_path_mainfest_tool+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_path_mainfest_tool=no
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  cat conftest.err >&5
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
    lt_cv_path_mainfest_tool=yes
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
if test "x$lt_cv_path_mainfest_tool" != xyes; then
  MANIFEST_TOOL=:
d9774 20
a9799 27
  case $host_os in
    rhapsody* | darwin*)
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DSYMUTIL"; then
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9800 10
fi
fi
DSYMUTIL=$ac_cv_prog_DSYMUTIL
if test -n "$DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
$as_echo "$DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9802 27
fi
if test -z "$ac_cv_prog_DSYMUTIL"; then
  ac_ct_DSYMUTIL=$DSYMUTIL
  # Extract the first word of "dsymutil", so it can be a program name with args.
set dummy dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DSYMUTIL"; then
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9803 10
fi
fi
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
if test -n "$ac_ct_DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
$as_echo "$ac_ct_DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9804 14
  if test "x$ac_ct_DSYMUTIL" = x; then
    DSYMUTIL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DSYMUTIL=$ac_ct_DSYMUTIL
  fi
else
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
fi
a9805 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NMEDIT"; then
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9806 10
fi
fi
NMEDIT=$ac_cv_prog_NMEDIT
if test -n "$NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
$as_echo "$NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9808 27
fi
if test -z "$ac_cv_prog_NMEDIT"; then
  ac_ct_NMEDIT=$NMEDIT
  # Extract the first word of "nmedit", so it can be a program name with args.
set dummy nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_NMEDIT"; then
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9809 10
fi
fi
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
if test -n "$ac_ct_NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
$as_echo "$ac_ct_NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9810 14
  if test "x$ac_ct_NMEDIT" = x; then
    NMEDIT=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    NMEDIT=$ac_ct_NMEDIT
  fi
else
  NMEDIT="$ac_cv_prog_NMEDIT"
fi
a9811 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
set dummy ${ac_tool_prefix}lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$LIPO"; then
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9812 10
fi
fi
LIPO=$ac_cv_prog_LIPO
if test -n "$LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
$as_echo "$LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9814 27
fi
if test -z "$ac_cv_prog_LIPO"; then
  ac_ct_LIPO=$LIPO
  # Extract the first word of "lipo", so it can be a program name with args.
set dummy lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_LIPO"; then
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_LIPO="lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9815 10
fi
fi
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
if test -n "$ac_ct_LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
$as_echo "$ac_ct_LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9816 14
  if test "x$ac_ct_LIPO" = x; then
    LIPO=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    LIPO=$ac_ct_LIPO
  fi
else
  LIPO="$ac_cv_prog_LIPO"
fi
a9817 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL"; then
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9818 10
fi
fi
OTOOL=$ac_cv_prog_OTOOL
if test -n "$OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
$as_echo "$OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9820 2
d9823 2
a9824 27
fi
if test -z "$ac_cv_prog_OTOOL"; then
  ac_ct_OTOOL=$OTOOL
  # Extract the first word of "otool", so it can be a program name with args.
set dummy otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL"; then
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL="otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d9826 2
a9827 10
fi
fi
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
if test -n "$ac_ct_OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
$as_echo "$ac_ct_OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9828 14
  if test "x$ac_ct_OTOOL" = x; then
    OTOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL=$ac_ct_OTOOL
  fi
else
  OTOOL="$ac_cv_prog_OTOOL"
fi
d9830 4
a9833 6
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OTOOL64+:} false; then :
a9835 17
  if test -n "$OTOOL64"; then
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d9837 2
a9838 10
fi
fi
OTOOL64=$ac_cv_prog_OTOOL64
if test -n "$OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
$as_echo "$OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9840 2
d9843 214
a10056 27
fi
if test -z "$ac_cv_prog_OTOOL64"; then
  ac_ct_OTOOL64=$OTOOL64
  # Extract the first word of "otool64", so it can be a program name with args.
set dummy otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL64"; then
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL64="otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d10059 3
d10063 3
a10065 4
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
if test -n "$ac_ct_OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
$as_echo "$ac_ct_OTOOL64" >&6; }
d10067 2
a10068 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d10071 5
a10075 13
  if test "x$ac_ct_OTOOL64" = x; then
    OTOOL64=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL64=$ac_ct_OTOOL64
  fi
else
  OTOOL64="$ac_cv_prog_OTOOL64"
d10104 6
a10109 4
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
$as_echo_n "checking for -single_module linker flag... " >&6; }
if ${lt_cv_apple_cc_single_mod+:} false; then :
  $as_echo_n "(cached) " >&6
d10111 33
a10143 21
  lt_cv_apple_cc_single_mod=no
      if test -z "${LT_MULTI_MODULE}"; then
	# By default we will add the -single_module flag. You can override
	# by either setting the environment variable LT_MULTI_MODULE
	# non-empty at configure time, or by adding -multi_module to the
	# link flags.
	rm -rf libconftest.dylib*
	echo "int foo(void){return 1;}" > conftest.c
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-dynamiclib -Wl,-single_module conftest.c" >&5
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
        _lt_result=$?
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
	  lt_cv_apple_cc_single_mod=yes
	else
	  cat conftest.err >&5
	fi
	rm -rf libconftest.dylib*
	rm -f conftest.*
      fi
d10145 122
a10266 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
if ${lt_cv_ld_exported_symbols_list+:} false; then :
d10269 7
a10275 5
  lt_cv_ld_exported_symbols_list=no
      save_LDFLAGS=$LDFLAGS
      echo "_main" > conftest.sym
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d10287 1
a10287 1
  lt_cv_ld_exported_symbols_list=yes
d10289 1
a10289 1
  lt_cv_ld_exported_symbols_list=no
d10293 5
a10297 1
	LDFLAGS="$save_LDFLAGS"
d10300 40
a10339 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
$as_echo_n "checking for -force_load linker flag... " >&6; }
if ${lt_cv_ld_force_load+:} false; then :
d10342 17
a10358 23
  lt_cv_ld_force_load=no
      cat > conftest.c << _LT_EOF
int forced_loaded() { return 2;}
_LT_EOF
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
      echo "$AR cru libconftest.a conftest.o" >&5
      $AR cru libconftest.a conftest.o 2>&5
      echo "$RANLIB libconftest.a" >&5
      $RANLIB libconftest.a 2>&5
      cat > conftest.c << _LT_EOF
int main() { return 0;}
_LT_EOF
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
      _lt_result=$?
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
	lt_cv_ld_force_load=yes
      else
	cat conftest.err >&5
      fi
        rm -f conftest.err libconftest.a conftest conftest.c
        rm -rf conftest.dSYM
d10361 9
a10369 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
$as_echo "$lt_cv_ld_force_load" >&6; }
    case $host_os in
    rhapsody* | darwin1.[012])
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
    darwin1.*)
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    darwin*) # darwin 5.x on
      # if running on 10.5 or later, the deployment target defaults
      # to the OS version, if on x86, and 10.4, the deployment
      # target defaults to 10.4. Don't you love it?
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
	10.[012]*)
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
	10.*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
      esac
    ;;
  esac
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
      _lt_dar_single_mod='$single_module'
    fi
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
    else
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    fi
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
      _lt_dsymutil='~$DSYMUTIL $lib || :'
    else
      _lt_dsymutil=
    fi
    ;;
  esac
a10370 8
for ac_header in dlfcn.h
do :
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
"
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLFCN_H 1
_ACEOF
d10373 23
a10395 1

d10397 2
d10400 10
d10411 14
d10426 20
a10446 7
func_stripname_cnf ()
{
  case ${2} in
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  esac
} # func_stripname_cnf
d10452 27
a10478 1
# Set options
d10480 10
d10492 27
a10518 1
        enable_dlopen=no
d10520 6
a10525 24

  enable_win32_dll=no



  # Check whether --enable-static was given.
if test "${enable_static+set}" = set; then :
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
d10527 2
a10528 1
  enable_static=yes
d10531 14
d10546 25
d10572 10
d10584 27
d10612 10
d10623 14
d10638 25
d10664 6
a10669 4

# Check whether --with-pic was given.
if test "${with_pic+set}" = set; then :
  withval=$with_pic; pic_mode="$withval"
d10671 2
a10672 1
  pic_mode=default
d10676 27
a10702 1
test -z "$pic_mode" && pic_mode=default
d10704 10
d10715 14
d10730 25
d10756 6
a10761 22



  # Check whether --enable-fast-install was given.
if test "${enable_fast_install+set}" = set; then :
  enableval=$enable_fast_install; p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
    *)
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
d10763 2
a10764 1
  enable_fast_install=yes
d10768 27
d10796 10
d10807 14
d10822 25
d10848 10
d10860 27
d10888 10
d10899 14
a10913 5
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ltmain"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d10940 26
a10965 17
test -z "$LN_S" && LN_S="ln -s"














if test -n "${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
d10967 5
a10971 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
$as_echo_n "checking for objdir... " >&6; }
if ${lt_cv_objdir+:} false; then :
d10974 6
a10979 13
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
fi
rmdir .libs 2>/dev/null
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
$as_echo "$lt_cv_objdir" >&6; }
objdir=$lt_cv_objdir
d10981 3
d10985 267
a11251 5



cat >>confdefs.h <<_ACEOF
#define LT_OBJDIR "$lt_cv_objdir/"
d14012 2
a14013 8249
  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




























































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" ||
   test -n "$runpath_var" ||
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi






  if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

    ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if ${ac_cv_lib_dld_shl_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if ${ac_cv_lib_svld_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if ${ac_cv_lib_dld_dld_link+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi

















striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP" ; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi












  # Report which library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test "$can_build_shared" = "no" && enable_shared=no

  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test "$enable_shared" = yes && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;

  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }




fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if ${ac_cv_prog_CXXCPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
$as_echo "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
  _lt_caught_CXX_error=yes
fi

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

archive_cmds_need_lc_CXX=no
allow_undefined_flag_CXX=
always_export_symbols_CXX=no
archive_expsym_cmds_CXX=
compiler_needs_object_CXX=no
export_dynamic_flag_spec_CXX=
hardcode_direct_CXX=no
hardcode_direct_absolute_CXX=no
hardcode_libdir_flag_spec_CXX=
hardcode_libdir_flag_spec_ld_CXX=
hardcode_libdir_separator_CXX=
hardcode_minus_L_CXX=no
hardcode_shlibpath_var_CXX=unsupported
hardcode_automatic_CXX=no
inherit_rpath_CXX=no
module_cmds_CXX=
module_expsym_cmds_CXX=
link_all_deplibs_CXX=unknown
old_archive_cmds_CXX=$old_archive_cmds
reload_flag_CXX=$reload_flag
reload_cmds_CXX=$reload_cmds
no_undefined_flag_CXX=
whole_archive_flag_spec_CXX=
enable_shared_with_static_runtimes_CXX=no

# Source file extension for C++ test sources.
ac_ext=cpp

# Object file extension for compiled C++ test sources.
objext=o
objext_CXX=$objext

# No sense in running all these tests if we already determined that
# the CXX compiler isn't working.  Some variables (like enable_shared)
# are currently assumed to apply to all compilers on this platform,
# and will be corrupted by setting them based on a non-working compiler.
if test "$_lt_caught_CXX_error" != yes; then
  # Code to be used in simple compile tests
  lt_simple_compile_test_code="int some_variable = 0;"

  # Code to be used in simple link tests
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'

  # ltmain only uses $CC for tagged configurations so make sure $CC is set.






# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


  # save warnings/boilerplate of simple test code
  ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

  ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


  # Allow CC to be a program name with arguments.
  lt_save_CC=$CC
  lt_save_CFLAGS=$CFLAGS
  lt_save_LD=$LD
  lt_save_GCC=$GCC
  GCC=$GXX
  lt_save_with_gnu_ld=$with_gnu_ld
  lt_save_path_LD=$lt_cv_path_LD
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  else
    $as_unset lt_cv_prog_gnu_ld
  fi
  if test -n "${lt_cv_path_LDCXX+set}"; then
    lt_cv_path_LD=$lt_cv_path_LDCXX
  else
    $as_unset lt_cv_path_LD
  fi
  test -z "${LDCXX+set}" || LD=$LDCXX
  CC=${CXX-"c++"}
  CFLAGS=$CXXFLAGS
  compiler=$CC
  compiler_CXX=$CC
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`


  if test -n "$compiler"; then
    # We don't want -fno-exception when compiling C++ code, so set the
    # no_builtin_flag separately
    if test "$GXX" = yes; then
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
    else
      lt_prog_compiler_no_builtin_flag_CXX=
    fi

    if test "$GXX" = yes; then
      # Set up default GNU C++ configuration



# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld







      # Check if GNU C++ uses GNU ld as the underlying linker, since the
      # archiving commands below assume that GNU ld is being used.
      if test "$with_gnu_ld" = yes; then
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'

        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

        # If archive_cmds runs LD, not CC, wlarc should be empty
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
        #     investigate it a little bit more. (MM)
        wlarc='${wl}'

        # ancient GNU ld didn't support --whole-archive et. al.
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
	  $GREP 'no-whole-archive' > /dev/null; then
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
        else
          whole_archive_flag_spec_CXX=
        fi
      else
        with_gnu_ld=no
        wlarc=

        # A generic and very simple default shared library creation
        # command for GNU C++ for the case where it uses the native
        # linker, instead of GNU ld.  If possible, this setting should
        # overridden to take advantage of the native linker features on
        # the platform it is being used on.
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
      fi

      # Commands to make compiler produce verbose output that lists
      # what "hidden" libraries, object files and flags are used when
      # linking a shared library.
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

    else
      GXX=no
      with_gnu_ld=no
      wlarc=
    fi

    # PORTME: fill in a description of your system's C++ link characteristics
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
    ld_shlibs_CXX=yes
    case $host_os in
      aix3*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
      aix[4-9]*)
        if test "$host_cpu" = ia64; then
          # On IA64, the linker does run time linking by default, so we don't
          # have to do anything special.
          aix_use_runtimelinking=no
          exp_sym_flag='-Bexport'
          no_entry_flag=""
        else
          aix_use_runtimelinking=no

          # Test if we are trying to use run time linking or normal
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
          # need to do runtime linking.
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	    for ld_flag in $LDFLAGS; do
	      case $ld_flag in
	      *-brtl*)
	        aix_use_runtimelinking=yes
	        break
	        ;;
	      esac
	    done
	    ;;
          esac

          exp_sym_flag='-bexport'
          no_entry_flag='-bnoentry'
        fi

        # When large executables or shared objects are built, AIX ld can
        # have problems creating the table of contents.  If linking a library
        # or program results in "error TOC overflow" add -mminimal-toc to
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

        archive_cmds_CXX=''
        hardcode_direct_CXX=yes
        hardcode_direct_absolute_CXX=yes
        hardcode_libdir_separator_CXX=':'
        link_all_deplibs_CXX=yes
        file_list_spec_CXX='${wl}-f,'

        if test "$GXX" = yes; then
          case $host_os in aix4.[012]|aix4.[012].*)
          # We only want to do this on AIX 4.2 and lower, the check
          # below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	    # We have reworked collect2
	    :
	  else
	    # We have old collect2
	    hardcode_direct_CXX=unsupported
	    # It fails to find uninstalled libraries when the uninstalled
	    # path is not listed in the libpath.  Setting hardcode_minus_L
	    # to unsupported forces relinking
	    hardcode_minus_L_CXX=yes
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
	    hardcode_libdir_separator_CXX=
	  fi
          esac
          shared_flag='-shared'
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag="$shared_flag "'${wl}-G'
	  fi
        else
          # not using gcc
          if test "$host_cpu" = ia64; then
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	  # chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
          else
	    if test "$aix_use_runtimelinking" = yes; then
	      shared_flag='${wl}-G'
	    else
	      shared_flag='${wl}-bM:SRE'
	    fi
          fi
        fi

        export_dynamic_flag_spec_CXX='${wl}-bexpall'
        # It seems that -bexpall does not export symbols beginning with
        # underscore (_), so it is better to generate a list of symbols to
	# export.
        always_export_symbols_CXX=yes
        if test "$aix_use_runtimelinking" = yes; then
          # Warning - without using the other runtime loading flags (-brtl),
          # -berok will link without error, but may produce a broken library.
          allow_undefined_flag_CXX='-berok'
          # Determine the default libpath from the value encoded in an empty
          # executable.
          if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"

          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
        else
          if test "$host_cpu" = ia64; then
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
	    allow_undefined_flag_CXX="-z nodefs"
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
          else
	    # Determine the default libpath from the value encoded in an
	    # empty executable.
	    if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
	    # Warning - without using the other run time loading flags,
	    # -berok will link without error, but may produce a broken library.
	    no_undefined_flag_CXX=' ${wl}-bernotok'
	    allow_undefined_flag_CXX=' ${wl}-berok'
	    if test "$with_gnu_ld" = yes; then
	      # We only use this code for GNU lds that support --whole-archive.
	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    else
	      # Exported symbols can be pulled into shared objects from archives
	      whole_archive_flag_spec_CXX='$convenience'
	    fi
	    archive_cmds_need_lc_CXX=yes
	    # This is similar to how AIX traditionally builds its shared
	    # libraries.
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
          fi
        fi
        ;;

      beos*)
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	  allow_undefined_flag_CXX=unsupported
	  # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	  # support --undefined.  This deserves some investigation.  FIXME
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	else
	  ld_shlibs_CXX=no
	fi
	;;

      chorus*)
        case $cc_basename in
          *)
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	  ;;
        esac
        ;;

      cygwin* | mingw* | pw32* | cegcc*)
	case $GXX,$cc_basename in
	,cl* | no,cl*)
	  # Native MSVC
	  # hardcode_libdir_flag_spec is actually meaningless, as there is
	  # no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX=' '
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=yes
	  file_list_spec_CXX='@@'
	  # Tell ltmain to make .lib files, not .a files.
	  libext=lib
	  # Tell ltmain to make .dll files, not .so files.
	  shrext_cmds=".dll"
	  # FIXME: Setting linknames here is a bad hack.
	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	    else
	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	    fi~
	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	    linknames='
	  # The linker will not automatically build a static lib if we build a DLL.
	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
	  enable_shared_with_static_runtimes_CXX=yes
	  # Don't use ranlib
	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
	  postlink_cmds_CXX='lt_outputfile="@@OUTPUT@@"~
	    lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	    case $lt_outputfile in
	      *.exe|*.EXE) ;;
	      *)
		lt_outputfile="$lt_outputfile.exe"
		lt_tool_outputfile="$lt_tool_outputfile.exe"
		;;
	    esac~
	    func_to_tool_file "$lt_outputfile"~
	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	      $RM "$lt_outputfile.manifest";
	    fi'
	  ;;
	*)
	  # g++
	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
	  # as there is no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=no
	  enable_shared_with_static_runtimes_CXX=yes

	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	    # If the export-symbols file already is a .def file (1st line
	    # is EXPORTS), use it as is; otherwise, prepend...
	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      cp $export_symbols $output_objdir/$soname.def;
	    else
	      echo EXPORTS > $output_objdir/$soname.def;
	      cat $export_symbols >> $output_objdir/$soname.def;
	    fi~
	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	  else
	    ld_shlibs_CXX=no
	  fi
	  ;;
	esac
	;;
      darwin* | rhapsody*)


  archive_cmds_need_lc_CXX=no
  hardcode_direct_CXX=no
  hardcode_automatic_CXX=yes
  hardcode_shlibpath_var_CXX=unsupported
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  else
    whole_archive_flag_spec_CXX=''
  fi
  link_all_deplibs_CXX=yes
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=func_echo_all
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
    fi

  else
  ld_shlibs_CXX=no
  fi

	;;

      dgux*)
        case $cc_basename in
          ec++*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          ghcx*)
	    # Green Hills C++ Compiler
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      freebsd[12]*)
        # C++ shared libraries reported to be fairly broken before
	# switch to ELF
        ld_shlibs_CXX=no
        ;;

      freebsd-elf*)
        archive_cmds_need_lc_CXX=no
        ;;

      freebsd* | dragonfly*)
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
        # conventions
        ld_shlibs_CXX=yes
        ;;

      gnu*)
        ;;

      haiku*)
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
        link_all_deplibs_CXX=yes
        ;;

      hpux9*)
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        export_dynamic_flag_spec_CXX='${wl}-E'
        hardcode_direct_CXX=yes
        hardcode_minus_L_CXX=yes # Not in the search PATH,
				             # but as the default
				             # location of the library.

        case $cc_basename in
          CC*)
            # FIXME: insert proper C++ library support
            ld_shlibs_CXX=no
            ;;
          aCC*)
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            # Commands to make compiler produce verbose output that lists
            # what "hidden" libraries, object files and flags are used when
            # linking a shared library.
            #
            # There doesn't appear to be a way to prevent this compiler from
            # explicitly linking system object files so we need to strip them
            # from the output so that they don't get included in the library
            # dependencies.
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
            ;;
          *)
            if test "$GXX" = yes; then
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            else
              # FIXME: insert proper C++ library support
              ld_shlibs_CXX=no
            fi
            ;;
        esac
        ;;

      hpux10*|hpux11*)
        if test $with_gnu_ld = no; then
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

          case $host_cpu in
            hppa*64*|ia64*)
              ;;
            *)
	      export_dynamic_flag_spec_CXX='${wl}-E'
              ;;
          esac
        fi
        case $host_cpu in
          hppa*64*|ia64*)
            hardcode_direct_CXX=no
            hardcode_shlibpath_var_CXX=no
            ;;
          *)
            hardcode_direct_CXX=yes
            hardcode_direct_absolute_CXX=yes
            hardcode_minus_L_CXX=yes # Not in the search PATH,
					         # but as the default
					         # location of the library.
            ;;
        esac

        case $cc_basename in
          CC*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          aCC*)
	    case $host_cpu in
	      hppa*64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      ia64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      *)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	    esac
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test $with_gnu_ld = no; then
	        case $host_cpu in
	          hppa*64*)
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          ia64*)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          *)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	        esac
	      fi
	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      interix[3-9]*)
	hardcode_direct_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}-E'
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
	# Instead, shared libraries are loaded at an image base (0x10000000 by
	# default) and relocated if they conflict, which is a slow very memory
	# consuming and fragmenting process.  To avoid this, we pick a random,
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	;;
      irix5* | irix6*)
        case $cc_basename in
          CC*)
	    # SGI C++
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'

	    # Archives containing C++ object files must be created using
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test "$with_gnu_ld" = no; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	      else
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
	      fi
	    fi
	    link_all_deplibs_CXX=yes
	    ;;
        esac
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        inherit_rpath_CXX=yes
        ;;

      linux* | k*bsd*-gnu | kopensolaris*-gnu)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

	    # Archives containing C++ object files must be created using
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
	    ;;
	  icpc* | ecpc* )
	    # Intel C++
	    with_gnu_ld=yes
	    # version 8.0 and above of icpc choke on multiply defined symbols
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
	    # earlier do not add the objects themselves.
	    case `$CC -V 2>&1` in
	      *"Version 7."*)
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	      *)  # Version 8.0 or newer
	        tmp_idyn=
	        case $host_cpu in
		  ia64*) tmp_idyn=' -i_dynamic';;
		esac
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	    esac
	    archive_cmds_need_lc_CXX=no
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    ;;
          pgCC* | pgcpp*)
            # Portland Group C++ compiler
	    case `$CC -V` in
	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
	      prelink_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
	      old_archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
		$RANLIB $oldlib'
	      archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    *) # Version 6 and above use weak symbols
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    esac

	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
            ;;
	  cxx*)
	    # Compaq C++
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'

	    runpath_var=LD_RUN_PATH
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
	    ;;
	  xl* | mpixl* | bgxl*)
	    # IBM XL 8.0 on PPC, with GNU ld
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    if test "x$supports_anon_versioning" = xyes; then
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
		echo "local: *; };" >> $output_objdir/$libname.ver~
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	    fi
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      no_undefined_flag_CXX=' -zdefs'
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	      compiler_needs_object_CXX=yes

	      # Not sure whether something based on
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
	      # would be better.
	      output_verbose_link_cmd='func_echo_all'

	      # Archives containing C++ object files must be created using
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	      # necessary to make sure instantiated templates are included
	      # in the archive.
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	      ;;
	    esac
	    ;;
	esac
	;;

      lynxos*)
        # FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;

      m88k*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
	;;

      mvs*)
        case $cc_basename in
          cxx*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	  *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	esac
	;;

      netbsd*)
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
	  wlarc=
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	fi
	# Workaround some broken pre-1.5 toolchains
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
	;;

      *nto* | *qnx*)
        ld_shlibs_CXX=yes
	;;

      openbsd2*)
        # C++ shared libraries are fairly broken
	ld_shlibs_CXX=no
	;;

      openbsd*)
	if test -f /usr/libexec/ld.so; then
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	  hardcode_direct_absolute_CXX=yes
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
	    export_dynamic_flag_spec_CXX='${wl}-E'
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
	  fi
	  output_verbose_link_cmd=func_echo_all
	else
	  ld_shlibs_CXX=no
	fi
	;;

      osf3* | osf4* | osf5*)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    hardcode_libdir_separator_CXX=:

	    # Archives containing C++ object files must be created using
	    # the KAI C++ compiler.
	    case $host in
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
	    esac
	    ;;
          RCC*)
	    # Rational C++ 2.4.1
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          cxx*)
	    case $host in
	      osf3*)
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
		;;
	      *)
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
	          echo "-hidden">> $lib.exp~
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
	          $RM $lib.exp'
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
		;;
	    esac

	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
	  *)
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	      case $host in
	        osf3*)
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	        *)
	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	      esac

	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	      hardcode_libdir_separator_CXX=:

	      # Commands to make compiler produce verbose output that lists
	      # what "hidden" libraries, object files and flags are used when
	      # linking a shared library.
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      psos*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      sunos4*)
        case $cc_basename in
          CC*)
	    # Sun C++ 4.x
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          lcc*)
	    # Lucid
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      solaris*)
        case $cc_basename in
          CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
            archive_cmds_need_lc_CXX=yes
	    no_undefined_flag_CXX=' -zdefs'
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	    hardcode_libdir_flag_spec_CXX='-R$libdir'
	    hardcode_shlibpath_var_CXX=no
	    case $host_os in
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
	      *)
		# The compiler driver will combine and reorder linker options,
		# but understands `-z linker_flag'.
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
	        ;;
	    esac
	    link_all_deplibs_CXX=yes

	    output_verbose_link_cmd='func_echo_all'

	    # Archives containing C++ object files must be created using
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	    ;;
          gcx*)
	    # Green Hills C++ Compiler
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'

	    # The C++ compiler must be used to create the archive.
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
	    ;;
          *)
	    # GNU C++ compiler with Solaris linker
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      else
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
	        # platform.
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      fi

	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
	      case $host_os in
		solaris2.[0-5] | solaris2.[0-5].*) ;;
		*)
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
		  ;;
	      esac
	    fi
	    ;;
        esac
        ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag_CXX='${wl}-z,text'
      archive_cmds_need_lc_CXX=no
      hardcode_shlibpath_var_CXX=no
      runpath_var='LD_RUN_PATH'

      case $cc_basename in
        CC*)
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
      esac
      ;;

      sysv5* | sco3.2v5* | sco5v6*)
	# Note: We can NOT use -z defs as we might desire, because we do not
	# link with -lc, and that would cause any symbols used from libc to
	# always be unresolved, which means just about no library would
	# ever link correctly.  If we're not using GNU ld we use -z text
	# though, which does catch some bad symbols but isn't as heavy-handed
	# as -z defs.
	no_undefined_flag_CXX='${wl}-z,text'
	allow_undefined_flag_CXX='${wl}-z,nodefs'
	archive_cmds_need_lc_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
	hardcode_libdir_separator_CXX=':'
	link_all_deplibs_CXX=yes
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
	runpath_var='LD_RUN_PATH'

	case $cc_basename in
          CC*)
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
	      '"$old_archive_cmds_CXX"
	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
	      '"$reload_cmds_CXX"
	    ;;
	  *)
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    ;;
	esac
      ;;

      tandem*)
        case $cc_basename in
          NCC*)
	    # NonStop-UX NCC 3.20
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      vxworks*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      *)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
    test "$ld_shlibs_CXX" = no && can_build_shared=no

    GCC_CXX="$GXX"
    LD_CXX="$LD"

    ## CAVEAT EMPTOR:
    ## There is no encapsulation within the following macros, do not change
    ## the running order or otherwise move them around unless you know exactly
    ## what you are doing...
    # Dependencies to place before and after the object being linked:
predep_objects_CXX=
postdep_objects_CXX=
predeps_CXX=
postdeps_CXX=
compiler_lib_search_path_CXX=

cat > conftest.$ac_ext <<_LT_EOF
class Foo
{
public:
  Foo (void) { a = 0; }
private:
  int a;
};
_LT_EOF


_lt_libdeps_save_CFLAGS=$CFLAGS
case "$CC $CFLAGS " in #(
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
esac

if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # Parse the compiler output and extract the necessary
  # objects, libraries and library flags.

  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  pre_test_object_deps_done=no

  for p in `eval "$output_verbose_link_cmd"`; do
    case ${prev}${p} in

    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       if test $p = "-L" ||
          test $p = "-R"; then
	 prev=$p
	 continue
       fi

       # Expand the sysroot to ease extracting the directories later.
       if test -z "$prev"; then
         case $p in
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
         esac
       fi
       case $p in
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
       esac
       if test "$pre_test_object_deps_done" = no; then
	 case ${prev} in
	 -L | -R)
	   # Internal compiler library paths should come after those
	   # provided the user.  The postdeps already come after the
	   # user supplied libs so there is no need to process them.
	   if test -z "$compiler_lib_search_path_CXX"; then
	     compiler_lib_search_path_CXX="${prev}${p}"
	   else
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
	   fi
	   ;;
	 # The "-l" case would never come before the object being
	 # linked, so don't bother handling this case.
	 esac
       else
	 if test -z "$postdeps_CXX"; then
	   postdeps_CXX="${prev}${p}"
	 else
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
	 fi
       fi
       prev=
       ;;

    *.lto.$objext) ;; # Ignore GCC LTO objects
    *.$objext)
       # This assumes that the test object file only shows up
       # once in the compiler output.
       if test "$p" = "conftest.$objext"; then
	 pre_test_object_deps_done=yes
	 continue
       fi

       if test "$pre_test_object_deps_done" = no; then
	 if test -z "$predep_objects_CXX"; then
	   predep_objects_CXX="$p"
	 else
	   predep_objects_CXX="$predep_objects_CXX $p"
	 fi
       else
	 if test -z "$postdep_objects_CXX"; then
	   postdep_objects_CXX="$p"
	 else
	   postdep_objects_CXX="$postdep_objects_CXX $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling CXX test program"
fi

$RM -f confest.$objext
CFLAGS=$_lt_libdeps_save_CFLAGS

# PORTME: override above test on systems where it is broken
case $host_os in
interix[3-9]*)
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  # hack all around it, let's just trust "g++" to DTRT.
  predep_objects_CXX=
  postdep_objects_CXX=
  postdeps_CXX=
  ;;

linux*)
  case `$CC -V 2>&1 | sed 5q` in
  *Sun\ C*)
    # Sun C++ 5.9

    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;

solaris*)
  case $cc_basename in
  CC* | sunCC*)
    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;
esac


case " $postdeps_CXX " in
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
esac
 compiler_lib_search_dirs_CXX=
if test -n "${compiler_lib_search_path_CXX}"; then
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
fi































    lt_prog_compiler_wl_CXX=
lt_prog_compiler_pic_CXX=
lt_prog_compiler_static_CXX=


  # C++ specific cases for pic, static, wl, etc.
  if test "$GXX" = yes; then
    lt_prog_compiler_wl_CXX='-Wl,'
    lt_prog_compiler_static_CXX='-static'

    case $host_os in
    aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_CXX='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic_CXX='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | cygwin* | os2* | pw32* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_CXX='-fno-common'
      ;;
    *djgpp*)
      # DJGPP does not support shared libraries at all
      lt_prog_compiler_pic_CXX=
      ;;
    haiku*)
      # PIC is the default for Haiku.
      # The "-static" flag exists, but is broken.
      lt_prog_compiler_static_CXX=
      ;;
    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_CXX=-Kconform_pic
      fi
      ;;
    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	;;
      *)
	lt_prog_compiler_pic_CXX='-fPIC'
	;;
      esac
      ;;
    *qnx* | *nto*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_CXX='-fPIC -shared'
      ;;
    *)
      lt_prog_compiler_pic_CXX='-fPIC'
      ;;
    esac
  else
    case $host_os in
      aix[4-9]*)
	# All AIX code is PIC.
	if test "$host_cpu" = ia64; then
	  # AIX 5 now supports IA64 processor
	  lt_prog_compiler_static_CXX='-Bstatic'
	else
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
	fi
	;;
      chorus*)
	case $cc_basename in
	cxch68*)
	  # Green Hills C++ Compiler
	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
	  ;;
	esac
	;;
      mingw* | cygwin* | os2* | pw32* | cegcc*)
	# This hack is so that the source file can tell whether it is being
	# built for inclusion in a dll (and should export symbols for example).
	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
	;;
      dgux*)
	case $cc_basename in
	  ec++*)
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  ghcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      freebsd* | dragonfly*)
	# FreeBSD uses GNU C++
	;;
      hpux9* | hpux10* | hpux11*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    if test "$host_cpu" != ia64; then
	      lt_prog_compiler_pic_CXX='+Z'
	    fi
	    ;;
	  aCC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    case $host_cpu in
	    hppa*64*|ia64*)
	      # +Z the default
	      ;;
	    *)
	      lt_prog_compiler_pic_CXX='+Z'
	      ;;
	    esac
	    ;;
	  *)
	    ;;
	esac
	;;
      interix*)
	# This is c89, which is MS Visual C++ (no shared libs)
	# Anyone wants to do a port?
	;;
      irix5* | irix6* | nonstopux*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='-non_shared'
	    # CC pic flag -KPIC is the default.
	    ;;
	  *)
	    ;;
	esac
	;;
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
	case $cc_basename in
	  KCC*)
	    # KAI C++ Compiler
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  ecpc* )
	    # old Intel C++ for x86_64 which still supported -KPIC.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  icpc* )
	    # Intel C++, used to be incompatible with GCC.
	    # ICC 10 doesn't accept -KPIC any more.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  pgCC* | pgcpp*)
	    # Portland Group C++ compiler
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fpic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  cxx*)
	    # Compaq C++
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
	    # IBM XL 8.0, 9.0 on PPC and BlueGene
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-qpic'
	    lt_prog_compiler_static_CXX='-qstaticlink'
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      lt_prog_compiler_pic_CXX='-KPIC'
	      lt_prog_compiler_static_CXX='-Bstatic'
	      lt_prog_compiler_wl_CXX='-Qoption ld '
	      ;;
	    esac
	    ;;
	esac
	;;
      lynxos*)
	;;
      m88k*)
	;;
      mvs*)
	case $cc_basename in
	  cxx*)
	    lt_prog_compiler_pic_CXX='-W c,exportall'
	    ;;
	  *)
	    ;;
	esac
	;;
      netbsd*)
	;;
      *qnx* | *nto*)
        # QNX uses GNU C++, but need to define -shared option too, otherwise
        # it will coredump.
        lt_prog_compiler_pic_CXX='-fPIC -shared'
        ;;
      osf3* | osf4* | osf5*)
	case $cc_basename in
	  KCC*)
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    ;;
	  RCC*)
	    # Rational C++ 2.4.1
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  cxx*)
	    # Digital/Compaq C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      psos*)
	;;
      solaris*)
	case $cc_basename in
	  CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    lt_prog_compiler_wl_CXX='-Qoption ld '
	    ;;
	  gcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-PIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sunos4*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.x
	    lt_prog_compiler_pic_CXX='-pic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  lcc*)
	    # Lucid
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	esac
	;;
      tandem*)
	case $cc_basename in
	  NCC*)
	    # NonStop-UX NCC 3.20
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      vxworks*)
	;;
      *)
	lt_prog_compiler_can_build_shared_CXX=no
	;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_CXX=
    ;;
  *)
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works_CXX=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works_CXX=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
    case $lt_prog_compiler_pic_CXX in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
     esac
else
    lt_prog_compiler_pic_CXX=
     lt_prog_compiler_can_build_shared_CXX=no
fi

fi





#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works_CXX=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_cv_prog_compiler_static_works_CXX=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  case $host_os in
  aix[4-9]*)
    # If we're using GNU nm, then we don't want the "-C" option.
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    # Also, AIX nm treats weak defined symbols like other global defined
    # symbols, whereas GNU nm marks them as "W".
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    else
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    fi
    ;;
  pw32*)
    export_symbols_cmds_CXX="$ltdll_cmds"
    ;;
  cygwin* | mingw* | cegcc*)
    case $cc_basename in
    cl*) ;;
    *)
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
      ;;
    esac
    ;;
  *)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    ;;
  esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
test "$ld_shlibs_CXX" = no && can_build_shared=no

with_gnu_ld_CXX=$with_gnu_ld






#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_CXX" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_CXX=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_CXX in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  $RM conftest*
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext

	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
	  soname=conftest
	  lib=conftest
	  libobjs=conftest.$ac_objext
	  deplibs=
	  wl=$lt_prog_compiler_wl_CXX
	  pic_flag=$lt_prog_compiler_pic_CXX
	  compiler_flags=-v
	  linker_flags=-v
	  verstring=
	  output_objdir=.
	  libname=conftest
	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
	  allow_undefined_flag_CXX=
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	  then
	    lt_cv_archive_cmds_need_lc_CXX=no
	  else
	    lt_cv_archive_cmds_need_lc_CXX=yes
	  fi
	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
	else
	  cat conftest.err 1>&5
	fi
	$RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
      ;;
    esac
  fi
  ;;
esac
































































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$cc_basename in
  yes,*)
    # gcc
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'

      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    dynamic_linker='Win32 ld.exe'
    ;;

  *,cl*)
    # Native MSVC
    libname_spec='$name'
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'

    case $build_os in
    mingw*)
      sys_lib_search_path_spec=
      lt_save_ifs=$IFS
      IFS=';'
      for lt_path in $LIB
      do
        IFS=$lt_save_ifs
        # Let DOS variable expansion print the short 8.3 style file name.
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @@echo %~si"`
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
      done
      IFS=$lt_save_ifs
      # Convert to MSYS style.
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
      ;;
    cygwin*)
      # Convert to unix form, then to dos form, then back to unix form
      # but this time dos style (no spaces!) so that the unix form looks
      # like /cygdrive/c/PROGRA~1:/cygdr...
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      ;;
    *)
      sys_lib_search_path_spec="$LIB"
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      fi
      # FIXME: find the short name or the path components, as spaces are
      # common. (e.g. "Program Files" -> "PROGRA~1")
      ;;
    esac

    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
    dynamic_linker='Win32 link.exe'
    ;;

  *)
    # Assume MSVC wrapper
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    dynamic_linker='Win32 ld.exe'
    ;;
  esac
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

haiku*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  dynamic_linker="$host_os runtime_loader"
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  postinstall_cmds='chmod 555 $lib'
  # or fails outright, so override atomically:
  install_override_mode=555
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no

  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi






































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action_CXX=
if test -n "$hardcode_libdir_flag_spec_CXX" ||
   test -n "$runpath_var_CXX" ||
   test "X$hardcode_automatic_CXX" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct_CXX" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_CXX=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_CXX=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_CXX=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
$as_echo "$hardcode_action_CXX" >&6; }

if test "$hardcode_action_CXX" = relink ||
   test "$inherit_rpath_CXX" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi







  fi # test -n "$compiler"

  CC=$lt_save_CC
  CFLAGS=$lt_save_CFLAGS
  LDCXX=$LD
  LD=$lt_save_LD
  GCC=$lt_save_GCC
  with_gnu_ld=$lt_save_with_gnu_ld
  lt_cv_path_LDCXX=$lt_cv_path_LD
  lt_cv_path_LD=$lt_save_path_LD
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
fi # test "$_lt_caught_CXX_error" != yes

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu













        ac_config_commands="$ac_config_commands libtool"




# Only expand once:




# NTP has (so far) been relying on leading-edge autogen, which
# means we need the appropriate corresponding libopts as well.
# Therefore, by default:
# - use the version of libopts we ship with
# - do not install it
# - build a static copy (AC_DISABLE_SHARED - done earlier)
case "${enable_local_libopts+set}" in
 set) ;;
 *) enable_local_libopts=yes ;;
esac
case "${enable_libopts_install+set}" in
 set) ;;
 *) enable_libopts_install=no ;;
esac
enable_nls=no
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi



  ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
if eval \${$as_ac_Header+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$as_ac_Header=yes"
else
  eval "$as_ac_Header=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_ac_Header
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dir; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' x; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi


  # =================
  # AC_CHECK_HEADERS
  # =================
  for ac_header in  \
      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
      fcntl.h       libgen.h      libintl.h     memory.h \
      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
      unistd.h      utime.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  for ac_header in stdarg.h     varargs.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_arg_hdr=true;break
else
  lo_have_arg_hdr=false
fi

done


  for ac_header in string.h     strings.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_str_hdr=true;break
else
  lo_have_str_hdr=false
fi

done


  for ac_header in limits.h     sys/limits.h  values.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_lim_hdr=true;break
else
  lo_have_lim_hdr=false
fi

done


  for ac_header in inttypes.h   stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_typ_hdr=true;break
else
  lo_have_typ_hdr=false
fi

done


  # ----------------------------------------------------------------------
  # check for various programs used during the build.
  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  # ----------------------------------------------------------------------
  for ac_header in runetype.h wchar.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  $ac_includes_default
  #if HAVE_RUNETYPE_H
  # include <runetype.h>
  #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  # Check whether --enable-nls was given.
if test "${enable_nls+set}" = set; then :
  enableval=$enable_nls;
fi

  if test "x$enable_nls" != "xno" && \
  test "X${ac_cv_header_libintl_h}" = Xyes; then :


$as_echo "#define ENABLE_NLS 1" >>confdefs.h

fi

  # --------------------------------------------
  # Verify certain entries from AC_CHECK_HEADERS
  # --------------------------------------------
  ${lo_have_arg_hdr} || \
    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5

  ${lo_have_str_hdr} || \
    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5

  ${lo_have_lim_hdr} || \
    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5

  ${lo_have_typ_hdr} || \
    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5

  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  do eval as_ac_var=\${ac_cv_header_${f}_h}
     test "X${as_ac_var}" = Xyes || {
       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
     }
  done
  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
    echo '#include <stdint.h>' > inttypes.h

  # ----------------------------------------------------------------------
  # Checks for typedefs
  # ----------------------------------------------------------------------
  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
if test "x$ac_cv_type_wchar_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WCHAR_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
    $ac_includes_default
    #if HAVE_RUNETYPE_H
    # include <runetype.h>
    #endif
    #if HAVE_WCHAR_H
    # include <wchar.h>
    #endif

"
if test "x$ac_cv_type_wint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WINT_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
if test "x$ac_cv_type_int8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
if test "x$ac_cv_type_uint8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
if test "x$ac_cv_type_int16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
if test "x$ac_cv_type_uint16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
if test "x$ac_cv_type_int32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
if test "x$ac_cv_type_uint32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
if test "x$ac_cv_type_intptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
if test "x$ac_cv_type_uint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PID_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SIZE_T 1
_ACEOF


fi

  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
$as_echo_n "checking size of char*... " >&6; }
if ${ac_cv_sizeof_charp+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_charp" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (char*)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_charp=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
$as_echo "$ac_cv_sizeof_charp" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHARP $ac_cv_sizeof_charp
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF



  # ------------
  # AC_CHECK_LIB
  # ------------
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
$as_echo_n "checking for pathfind in -lgen... " >&6; }
if ${ac_cv_lib_gen_pathfind+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgen  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pathfind ();
int
main ()
{
return pathfind ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gen_pathfind=yes
else
  ac_cv_lib_gen_pathfind=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGEN 1
_ACEOF

  LIBS="-lgen $LIBS"

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
$as_echo_n "checking for gettext in -lintl... " >&6; }
if ${ac_cv_lib_intl_gettext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lintl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gettext ();
int
main ()
{
return gettext ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_intl_gettext=yes
else
  ac_cv_lib_intl_gettext=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
$as_echo "$ac_cv_lib_intl_gettext" >&6; }
if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBINTL 1
_ACEOF

  LIBS="-lintl $LIBS"

fi

  for ac_func in vprintf
do :
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
if test "x$ac_cv_func_vprintf" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VPRINTF 1
_ACEOF

ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
if test "x$ac_cv_func__doprnt" = xyes; then :

$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h

fi

fi
done


  for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
                 strrchr strsignal fchmod fstat chmod
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

  while :
  do
      POSIX_SHELL=`which bash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`which dash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=/usr/xpg4/bin/sh
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`/bin/sh -c '
          exec 2>/dev/null
          if ! true ; then exit 1 ; fi
          echo /bin/sh'`
      test -x "$POSIX_SHELL" && break
      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  done

cat >>confdefs.h <<_ACEOF
#define POSIX_SHELL "${POSIX_SHELL}"
_ACEOF





  LIBOPTS_BUILD_BLOCKED=true


  NEED_LIBOPTS_DIR=''

  # Check whether --enable-local-libopts was given.
if test "${enable_local_libopts+set}" = set; then :
  enableval=$enable_local_libopts;
    if test x$enableval = xyes ; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
       NEED_LIBOPTS_DIR=true
       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
    fi
fi


  # Check whether --enable-libopts-install was given.
if test "${enable_libopts_install+set}" = set; then :
  enableval=$enable_libopts_install;
fi

   if test "X${enable_libopts_install}" = Xyes; then
  INSTALL_LIBOPTS_TRUE=
  INSTALL_LIBOPTS_FALSE='#'
else
  INSTALL_LIBOPTS_TRUE='#'
  INSTALL_LIBOPTS_FALSE=
fi


  if test -z "${NEED_LIBOPTS_DIR}" ; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
$as_echo_n "checking whether autoopts-config can be found... " >&6; }

# Check whether --with-autoopts-config was given.
if test "${with_autoopts_config+set}" = set; then :
  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
$as_echo_n "checking whether autoopts-config is specified... " >&6; }
if ${lo_cv_with_autoopts_config+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if autoopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=autoopts-config
        elif libopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=libopts-config
        else lo_cv_with_autoopts_config=no ; fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
$as_echo "$lo_cv_with_autoopts_config" >&6; }

fi
 # end of AC_ARG_WITH

     if ${lo_cv_test_autoopts+:} false; then :
  $as_echo_n "(cached) " >&6
else

        if test -z "${lo_cv_with_autoopts_config}" \
                -o X"${lo_cv_with_autoopts_config}" = Xno
        then
           if autoopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=autoopts-config
           elif libopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=libopts-config
           else lo_cv_with_autoopts_config=false ; fi
        fi
        lo_cv_test_autoopts=`
            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
        then lo_cv_test_autoopts=no ; fi

fi
 # end of CACHE_VAL
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
$as_echo "${lo_cv_test_autoopts}" >&6; }

     if test "X${lo_cv_test_autoopts}" != Xno
     then
        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
     else
        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
        NEED_LIBOPTS_DIR=true
     fi
  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
    NEED_LIBOPTS_DIR=''
  fi
   if test -n "${NEED_LIBOPTS_DIR}"; then
  NEED_LIBOPTS_TRUE=
  NEED_LIBOPTS_FALSE='#'
else
  NEED_LIBOPTS_TRUE='#'
  NEED_LIBOPTS_FALSE=
fi



  LIBOPTS_DIR=sntp/libopts


# end of AC_DEFUN of LIBOPTS_CHECK_COMMON

  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD




# Check whether --enable-local-libevent was given.
if test "${enable_local_libevent+set}" = set; then :
  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
else
  ntp_use_local_libevent=${ntp_use_local_libevent-detect}

fi






# Expose a cross-compilation indicator to makefiles
 if test $build != $host; then
  NTP_CROSSCOMPILE_TRUE=
  NTP_CROSSCOMPILE_FALSE='#'
else
  NTP_CROSSCOMPILE_TRUE='#'
  NTP_CROSSCOMPILE_FALSE=
fi



ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi


            # Check whether --enable-c99-snprintf was given.
if test "${enable_c99_snprintf+set}" = set; then :
  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
else
  force_c99_snprintf=no

fi

    case "$force_c99_snprintf" in
     yes)
	hw_force_rpl_snprintf=yes
	hw_force_rpl_vsnprintf=yes
    esac






  for ac_header in $ac_header_list
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done







      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
if test "x$ac_cv_func_vsnprintf" = xyes; then :
  hw_cv_func_vsnprintf=yes
else
  hw_cv_func_vsnprintf=no
fi

  if test "$hw_cv_func_vsnprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
if ${hw_cv_func_vsnprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_vsnprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if HAVE_STDARG_H
          #include <stdarg.h>
          #endif
          #include <stdio.h>
          static int testprintf(char *buf, size_t size, const char *format, ...)
          {
            int result;
            va_list ap;
            va_start(ap, format);
            result = vsnprintf(buf, size, format, ap);
            va_end(ap);
            return result;
          }
int
main ()
{
char buf[43];
          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_vsnprintf_c99=yes
else
  hw_cv_func_vsnprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
else
  hw_cv_func_vsnprintf_c99=no
fi

$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
  hw_use_rpl_vsnprintf=yes
else
  hw_use_rpl_vsnprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
$as_echo "$hw_use_rpl_vsnprintf" >&6; }
  if test "$hw_use_rpl_vsnprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_vsnprintf=no} = no; then :

$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h

fi
    for ac_header in inttypes.h locale.h stddef.h stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
_ACEOF


fi
ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
_ACEOF


fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
$as_echo_n "checking for long double... " >&6; }
if ${ac_cv_type_long_double+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$GCC" = yes; then
       ac_cv_type_long_double=yes
     else
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* The Stardent Vistra knows sizeof (long double), but does
		 not support it.  */
	      long double foo = 0.0L;
int
main ()
{
static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
	      sizeof (double) <= sizeof (long double))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_long_double=yes
else
  ac_cv_type_long_double=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
$as_echo "$ac_cv_type_long_double" >&6; }
  if test $ac_cv_type_long_double = yes; then

$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
$as_echo_n "checking for long long int... " >&6; }
if ${ac_cv_type_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  			if test "$cross_compiling" = yes; then :
  ac_cv_type_long_long_int=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
	       #ifndef LLONG_MAX
	       # define HALF \
			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
	       # define LLONG_MAX (HALF - 1 + HALF)
	       #endif
int
main ()
{
long long int n = 1;
	       int i;
	       for (i = 0; ; i++)
		 {
		   long long int m = n << i;
		   if (m >> i != n)
		     return 1;
		   if (LLONG_MAX / 2 < m)
		     break;
		 }
	       return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_type_long_long_int=yes
else
  ac_cv_type_long_long_int=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

else
  ac_cv_type_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
$as_echo "$ac_cv_type_long_long_int" >&6; }
  if test $ac_cv_type_long_long_int = yes; then

$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
$as_echo_n "checking for unsigned long long int... " >&6; }
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_type_unsigned_long_long_int=yes
else
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h

  fi

    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
if test "x$ac_cv_type_intmax_t" = xyes; then :

$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_long_long_int = yes \
       && ac_type='long long int' \
       || ac_type='long int'

cat >>confdefs.h <<_ACEOF
#define intmax_t $ac_type
_ACEOF

fi




  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
if test "x$ac_cv_type_uintmax_t" = xyes; then :

$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_unsigned_long_long_int = yes \
       && ac_type='unsigned long long int' \
       || ac_type='unsigned long int'

cat >>confdefs.h <<_ACEOF
#define uintmax_t $ac_type
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h

else
  for ac_type in 'unsigned int' 'unsigned long int' \
	'unsigned long long int'; do
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

cat >>confdefs.h <<_ACEOF
#define uintptr_t $ac_type
_ACEOF

	  ac_type=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       test -z "$ac_type" && break
     done
fi


    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi

    for ac_func in localeconv
do :
  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
if test "x$ac_cv_func_localeconv" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LOCALECONV 1
_ACEOF

fi
done


  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi


    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
if test "x$ac_cv_func_snprintf" = xyes; then :
  hw_cv_func_snprintf=yes
else
  hw_cv_func_snprintf=no
fi

  if test "$hw_cv_func_snprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
if ${hw_cv_func_snprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_snprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
char buf[43];
          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_snprintf_c99=yes
else
  hw_cv_func_snprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
$as_echo "$hw_cv_func_snprintf_c99" >&6; }
else
  hw_cv_func_snprintf_c99=no
fi

$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
  hw_use_rpl_snprintf=yes
else
  hw_use_rpl_snprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
$as_echo "$hw_use_rpl_snprintf" >&6; }
  if test "$hw_use_rpl_snprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_snprintf=no} = no; then :

$as_echo "#define snprintf rpl_snprintf" >>confdefs.h

fi

  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi





# HMS: Save $LIBS and empty it.
# any LIBS we add here should go in to LDADD_LIBNTP

__LIBS=$LIBS
LIBS=





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
$as_echo_n "checking for directory path separator... " >&6; }
if ${ntp_cv_dir_sep+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$ntp_cv_dir_sep" in
	 '')
	    case "$target_os" in
	     *djgpp | *mingw32* | *emx*)
		ntp_cv_dir_sep="'\\'"
		;;
	     *)
		ntp_cv_dir_sep="'/'"
		;;
	    esac
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
$as_echo "$ntp_cv_dir_sep" >&6; }

cat >>confdefs.h <<_ACEOF
#define DIR_SEP $ntp_cv_dir_sep
_ACEOF



    NTP_ORIG_LIBS="$LIBS"

# Check whether --with-lineeditlibs was given.
if test "${with_lineeditlibs+set}" = set; then :
  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
else
  use_lineeditlibs="edit,editline"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
$as_echo_n "checking line editing libraries... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
$as_echo "$use_lineeditlibs" >&6; }
    case "$use_lineeditlibs" in
     no)
	ntp_lib_lineedit=no
	;;
     *)
	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
	    for term_lib in "" termcap curses ncurses; do
		case "$term_lib" in
		 '')
		    TRY_LIB="-l$lineedit_lib"
		    ;;
		 *)
		    TRY_LIB="-l$lineedit_lib -l$term_lib"
		    ;;
		esac
		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char readline ();
int
main ()
{
return readline ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		case "$ntp_lib_lineedit" in
		 '')
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		    ;;
		 *)
		    # Use readline()
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
		    break
		esac
		case "$term_lib" in
		 '')
		    # do not try el_gets without a terminal library
		    ;;
		 *)
		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char el_gets ();
int
main ()
{
return el_gets ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		    case "$ntp_lib_lineedit" in
		     '')
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			;;
		     *) # Use el_gets()
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			break
			;;
		    esac	# $ntp_lib_lineedit
		esac		# $term_lib
	    done
	    case "$ntp_lib_lineedit" in
	     '')
		;;
	     *)
		break
		;;
	    esac
	done
	LIBS="$NTP_ORIG_LIBS"
	;;
    esac	# $use_lineeditlibs

    case "$ntp_lib_lineedit" in
     '')
	ntp_lib_lineedit="no"
	;;
     no)
	;;
     *)
	EDITLINE_LIBS="$ntp_lib_lineedit"

	;;
    esac	# $ntp_lib_lineedit

    case "$ntp_lib_lineedit" in
     no)
	;;
     *)
	for ac_header in readline.h readline/readline.h histedit.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	for ac_header in history.h readline/history.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


	case "$ac_cv_header_histedit_h" in
	 yes)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
$as_echo_n "checking number of arguments to el_init()... " >&6; }
if ${ntp_cv_el_init_args+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    #include <stdio.h>
			    #include <histedit.h>

int
main ()
{

			    el_init("conftest", stdin, stdout, stderr);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_el_init_args=4
else
  ntp_cv_el_init_args=3

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
$as_echo "$ntp_cv_el_init_args" >&6; }

cat >>confdefs.h <<_ACEOF
#define EL_INIT_ARGS $ntp_cv_el_init_args
_ACEOF

	esac

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
$as_echo_n "checking whether readline supports history... " >&6; }

	ntp_lib_lineedit_history="no"
	ORIG_LIBS="$LIBS"
	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char add_history ();
int
main ()
{
return add_history ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit_history="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LIBS="$ORIG_LIBS"

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
$as_echo "$ntp_lib_lineedit_history" >&6; }

	case "$ntp_lib_lineedit_history" in
	 yes)

$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h

	esac
    esac	# $ntp_lib_lineedit
    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
    { ORIG_LIBS=; unset ORIG_LIBS;}
    { TRY_LIB=; unset TRY_LIB;}
    { use_lineeditlibs=; unset use_lineeditlibs;}


LIBM=
case "$host" in
 *-*-darwin*)
    ;;
 *)
    _libs=$LIBS
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
$as_echo_n "checking for library containing cos... " >&6; }
if ${ac_cv_search_cos+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cos ();
int
main ()
{
return cos ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' m; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_cos=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_cos+:} false; then :
  break
fi
done
if ${ac_cv_search_cos+:} false; then :

else
  ac_cv_search_cos=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
$as_echo "$ac_cv_search_cos" >&6; }
ac_res=$ac_cv_search_cos
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  LIBM="-lm"
fi

    LIBS=$_libs
    ;;
esac

{ _libs=; unset _libs;}


for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
$as_echo_n "checking for working alloca.h... " >&6; }
if ${ac_cv_working_alloca_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <alloca.h>
int
main ()
{
char *p = (char *) alloca (2 * sizeof (int));
			  if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_working_alloca_h=yes
else
  ac_cv_working_alloca_h=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
$as_echo "$ac_cv_working_alloca_h" >&6; }
if test $ac_cv_working_alloca_h = yes; then

$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
$as_echo_n "checking for alloca... " >&6; }
if ${ac_cv_func_alloca_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  ifdef HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
void *alloca (size_t);
#    endif
#   endif
#  endif
# endif
#endif

int
main ()
{
char *p = (char *) alloca (1);
				    if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_func_alloca_works=yes
else
  ac_cv_func_alloca_works=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
$as_echo "$ac_cv_func_alloca_works" >&6; }

if test $ac_cv_func_alloca_works = yes; then

$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h

else
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble.  Some versions do not even contain alloca or
# contain a buggy version.  If you still want to use their alloca,
# use ar to extract alloca.o from them instead of compiling alloca.c.

ALLOCA=\${LIBOBJDIR}alloca.$ac_objext

$as_echo "#define C_ALLOCA 1" >>confdefs.h


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
if ${ac_cv_os_cray+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if defined CRAY && ! defined CRAY2
webecray
#else
wenotbecray
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "webecray" >/dev/null 2>&1; then :
  ac_cv_os_cray=yes
else
  ac_cv_os_cray=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
$as_echo "$ac_cv_os_cray" >&6; }
if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :

cat >>confdefs.h <<_ACEOF
#define CRAY_STACKSEG_END $ac_func
_ACEOF

    break
fi

  done
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
$as_echo_n "checking stack direction for C alloca... " >&6; }
if ${ac_cv_c_stack_direction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_c_stack_direction=0
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}

int
main ()
{
  return find_stack_direction () < 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_stack_direction=1
else
  ac_cv_c_stack_direction=-1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
$as_echo "$ac_cv_c_stack_direction" >&6; }
cat >>confdefs.h <<_ACEOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
_ACEOF


fi

ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRERROR_R $ac_have_decl
_ACEOF

for ac_func in strerror_r
do :
  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
if test "x$ac_cv_func_strerror_r" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRERROR_R 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
if ${ac_cv_func_strerror_r_char_p+:} false; then :
  $as_echo_n "(cached) " >&6
else

    ac_cv_func_strerror_r_char_p=no
    if test $ac_cv_have_decl_strerror_r = yes; then
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  char *p = strerror_r (0, buf, sizeof buf);
	  return !p || x;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    else
      # strerror_r is not declared.  Choose between
      # systems that have relatively inaccessible declarations for the
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
      # former has a strerror_r that returns char*, while the latter
      # has a strerror_r that returns `int'.
      # This test should segfault on the DEC system.
      if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
	extern char *strerror_r ();
int
main ()
{
char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  return ! isalpha (x);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
if test $ac_cv_func_strerror_r_char_p = yes; then

$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h

fi


ac_busted_vpath_in_make=no
case "$build" in
 *-*-irix6.1*)	# 64 bit only
    # busted vpath?
    ;;
 *-*-irix6*)	# 6.2 (and later?)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-solaris2.5.1)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-unicosmp*)
    ac_busted_vpath_in_make=yes
    ;;
esac

case "$ac_busted_vpath_in_make$srcdir" in
 yes.|no*)
    ;;
 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
    esac
    ;;
esac

case "$host" in
 *-*-aix4*)
	# Bug 2516:
	# Was *-*-aix[[4-9]]*
	# XXX only verified thru AIX6.  But...
	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
	# that this support would be in 5.3, removed in 6, and added back.
	#
	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
	# IBM pulls its thumbs out long enough to implement clock_settime,
	# this conditional will need to change.  Maybe use AC_TRY_RUN
	# instead to try to set the time to itself and check errno.
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
$as_echo_n "checking for library containing clock_gettime... " >&6; }
if ${ac_cv_search_clock_gettime+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char clock_gettime ();
int
main ()
{
return clock_gettime ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_clock_gettime=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_clock_gettime+:} false; then :
  break
fi
done
if ${ac_cv_search_clock_gettime+:} false; then :

else
  ac_cv_search_clock_gettime=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
$as_echo "$ac_cv_search_clock_gettime" >&6; }
ac_res=$ac_cv_search_clock_gettime
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_clock_gettime" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
 esac

fi

    for ac_func in clock_getres clock_gettime clock_settime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac

for ac_func in getclock stime timegm strlcpy strlcat
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


#
for ac_header in errno.h sys/socket.h sys/types.h time.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in net/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif

"
if test "x$ac_cv_header_net_if_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_H 1
_ACEOF

fi

done

case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
if ${ntp_cv_predecl_mpinfou+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    np_cv_predecl_mpinfou=no
	    case "$ac_cv_header_net_if_h" in
	     no)
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    typedef union mpinfou {
				    struct pdk_mpinfo *pdkptr;
				    struct mpinfo *pikptr;
			    } mpinfou_t;
			    #ifdef HAVE_SYS_SOCKET_H
			    # include <sys/socket.h>
			    #endif
			    #include <net/if.h>

int
main ()
{



  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

			ntp_cv_predecl_mpinfou=yes
			ac_cv_header_net_if_h=yes


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
$as_echo "$ntp_cv_predecl_mpinfou" >&6; }
    case "$ntp_cv_predecl_mpinfou" in
     yes)
	cat >>confdefs.h <<_ACEOF
#ifndef MPINFOU_PREDECLARED
# define MPINFOU_PREDECLARED
typedef union mpinfou {
	struct pdk_mpinfo *pdkptr;
	struct mpinfo *pikptr;
} mpinfou_t;
#endif
_ACEOF

    esac
esac

case "$host" in
 *-linux*)
    for ac_header in linux/if_addr.h
do :
  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
	#ifdef HAVE_SYS_SOCKET_H
	# include <sys/socket.h>
	#endif

"
if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LINUX_IF_ADDR_H 1
_ACEOF

fi

done

esac

for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
for ac_header in sys/sysctl.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
    #if defined HAVE_SYS_PARAM_H
    # include <sys/param.h>
    #endif

"
if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SYSCTL_H 1
_ACEOF

fi

done

for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in resolv.h
do :
  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_ARPA_NAMESER_H
    # include <arpa/nameser.h>
    #endif

"
if test "x$ac_cv_header_resolv_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RESOLV_H 1
_ACEOF

fi

done


for ac_header in net/if_var.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
    #if HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif

"
if test "x$ac_cv_header_net_if_var_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_VAR_H 1
_ACEOF

fi

done


for ac_header in netinet/ip.h netinet/in_var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_VAR_H
    # include <net/if_var.h>
    #endif
    #ifdef HAVE_NETINET_IN_SYSTM_H
    # include <netinet/in_systm.h>
    #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


# HMS: Do we need to check for -lsocket before or after these tests?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
$as_echo_n "checking for library containing inet_pton... " >&6; }
if ${ac_cv_search_inet_pton+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_pton ();
int
main ()
{
return inet_pton ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' nsl; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_pton=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_pton+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_pton+:} false; then :

else
  ac_cv_search_inet_pton=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
$as_echo "$ac_cv_search_inet_pton" >&6; }
ac_res=$ac_cv_search_inet_pton
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_pton" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
 esac

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
$as_echo_n "checking for library containing inet_ntop... " >&6; }
if ${ac_cv_search_inet_ntop+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_ntop ();
int
main ()
{
return inet_ntop ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_ntop=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_ntop+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_ntop+:} false; then :

else
  ac_cv_search_inet_ntop=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
$as_echo "$ac_cv_search_inet_ntop" >&6; }
ac_res=$ac_cv_search_inet_ntop
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_ntop" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
 esac

fi


# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
# avoid keying on the OS name:  If we find socket functions in
# libsocket, next try for them in libxnet without libsocket, if found,
# list both.  If we simply tested libxnet first, we would find the
# functions there and never add libsocket.  See also [Bug 660]
# http://bugs.ntp.org/show_bug.cgi?id=660#c9
saved_LIBS=$LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
$as_echo_n "checking for library containing setsockopt... " >&6; }
if ${ac_cv_search_setsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char setsockopt ();
int
main ()
{
return setsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' socket; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_setsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_setsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_setsockopt+:} false; then :

else
  ac_cv_search_setsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
$as_echo "$ac_cv_search_setsockopt" >&6; }
ac_res=$ac_cv_search_setsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_setsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
 esac

fi

case "$ac_cv_search_setsockopt" in
 -lsocket)
    LIBS="$saved_LIBS"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
$as_echo_n "checking for library containing getsockopt... " >&6; }
if ${ac_cv_search_getsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getsockopt ();
int
main ()
{
return getsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' xnet; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_getsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_getsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_getsockopt+:} false; then :

else
  ac_cv_search_getsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
$as_echo "$ac_cv_search_getsockopt" >&6; }
ac_res=$ac_cv_search_getsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_getsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
 esac

fi

    # XXX Possible trouble here - reading the comments above and looking at the
    # code below I wonder if we'll add -lxnet when we don't need it.
    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
    # there when it is not needed?
    case "$ac_cv_search_getsockopt" in
     -lxnet)
	LIBS="-lxnet -lsocket $saved_LIBS"
	;;
     *) LIBS="-lsocket $saved_LIBS"
	;;
    esac
    ;;
esac
{ saved_LIBS=; unset saved_LIBS;}

# Bug 2427 - look for recvmsg here.
for ac_func in recvmsg
do :
  ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
if test "x$ac_cv_func_recvmsg" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RECVMSG 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if ${ac_cv_c_inline+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }

case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac


case "$ac_cv_c_inline" in
 '')
    ;;
 *)

$as_echo "#define HAVE_INLINE 1" >>confdefs.h


esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if ${ac_cv_header_time+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_time=yes
else
  ac_cv_header_time=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h

fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
$as_echo_n "checking size of time_t... " >&6; }
if ${ac_cv_sizeof_time_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_time_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (time_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_time_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
$as_echo "$ac_cv_sizeof_time_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
$as_echo_n "checking whether char is unsigned... " >&6; }
if ${ac_cv_c_char_unsigned+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_char_unsigned=no
else
  ac_cv_c_char_unsigned=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
$as_echo "$ac_cv_c_char_unsigned" >&6; }
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h

fi
		# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
$as_echo_n "checking size of signed char... " >&6; }
if ${ac_cv_sizeof_signed_char+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_signed_char" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (signed char)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_signed_char=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
$as_echo "$ac_cv_sizeof_signed_char" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
_ACEOF


ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
if test "x$ac_cv_type_s_char" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_S_CHAR 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
if test "x$ac_cv_type_long_long" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF



case "$ac_cv_type_long_long" in
 no)
    ;;
 *)
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
if ${ac_cv_sizeof_long_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF


    ;;
esac

case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
 *yes)
    # We have a typedef for s_char.  Might as well believe it...
    ;;
 no0no)
    # We have signed chars, can't say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 no1no)
    # We have signed chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 yes0no)
    # We have unsigned chars, can't say 'signed char', no s_char typedef.
    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
    ;;
 yes1no)
    # We have unsigned chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
if ${ac_cv_type_uid_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "uid_t" >/dev/null 2>&1; then :
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; }
if test $ac_cv_type_uid_t = no; then

$as_echo "#define uid_t int" >>confdefs.h


$as_echo "#define gid_t int" >>confdefs.h

fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
$as_echo_n "checking if we're including debugging code... " >&6; }
# Check whether --enable-debugging was given.
if test "${enable_debugging+set}" = set; then :
  enableval=$enable_debugging; ntp_ok=$enableval
else
  ntp_ok=yes

fi

case "$ntp_ok" in
 yes)

$as_echo "#define DEBUG 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }



# check if we can compile with pthreads
for ac_header in semaphore.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
if test "x$ac_cv_header_semaphore_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SEMAPHORE_H 1
_ACEOF

fi

done

for ac_func in socketpair
do :
  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
if test "x$ac_cv_func_socketpair" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKETPAIR 1
_ACEOF

fi
done

# Check whether --enable-thread-support was given.
if test "${enable_thread_support+set}" = set; then :
  enableval=$enable_thread_support;
else
  enable_thread_support=yes

fi

have_pthreads=no
case "$enable_thread_support" in
 yes)
    ol_found_pthreads=no



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

# OpenLDAP --with-threads

# Check whether --with-threads was given.
if test "${with_threads+set}" = set; then :
  withval=$with_threads;
	ol_arg=invalid
	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
	fi
	ol_with_threads="$ol_arg"

else
  	ol_with_threads="auto"
fi
# end --with-threads


case "$ol_with_threads$host" in
 auto*-*-solaris2.[0-6])
        ol_with_threads=no
    ;;
esac


ol_aix_threads=no
case "$host" in
*-*-aix*) 	if test -z "$CC" ; then
		case "$ol_with_threads" in
		auto | yes |  posix) ol_aix_threads=yes ;;
		esac
	fi
;;
esac

if test $ol_aix_threads = yes ; then
	if test -z "${CC}" ; then
		for ac_prog in cc_r xlc_r cc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$CC" && break
done


		if test "$CC" = cc ; then
						if test $ol_with_threads != auto ; then
				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
			fi
			ol_with_threads=no
  		fi
	fi

	case ${CC} in cc_r | xlc_r)
		ol_with_threads=posix
		ol_cv_pthread_create=yes
		;;
	esac
fi

ol_link_threads=no
ol_with_yielding_select=${ol_with_yielding_select-auto}

case $ol_with_threads in auto | yes | nt)


	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
if test "x$ac_cv_func__beginthread" = xyes; then :

fi


	if test $ac_cv_func__beginthread = yes ; then

$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h

		ol_cv_nt_threads=yes
	fi


	if test "$ol_cv_nt_threads" = yes ; then
		ol_link_threads=nt
		ol_with_threads=found
		ol_with_yielding_select=yes


$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h


$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h

	fi

	if test $ol_with_threads = nt ; then
		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | posix)

	for ac_header in pthread.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_H 1
_ACEOF

fi

done


	if test $ac_cv_header_pthread_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
$as_echo_n "checking POSIX thread version... " >&6; }
if ${ol_cv_pthread_version+:} false; then :
d14016 6
a14021 2

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a14023 2
#		include <pthread.h>

a14027 2
		int i = PTHREAD_CREATE_JOINABLE;

d14032 51
a14082 1
if ac_fn_c_try_compile "$LINENO"; then :
d14084 6
a14089 3
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
d14091 11
a14101 8
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_detach" >/dev/null 2>&1; then :
  ol_cv_pthread_version=10
else
  ol_cv_pthread_version=8
fi
rm -f conftest*
d14103 25
a14127 1
else
d14129 8
a14136 2
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14138 10
a14147 4
#		include <pthread.h>
#		ifdef PTHREAD_CREATE_UNDETACHED
		draft7
#		endif
d14149 3
a14151 5
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft7" >/dev/null 2>&1; then :
  ol_cv_pthread_version=7
else
d14153 12
a14164 3
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
d14166 11
a14176 5
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
  ol_cv_pthread_version=6
else
d14178 22
a14199 2
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14201 8
a14208 4
#		include <pthread.h>
#ifdef		PTHREAD_MUTEX_INITIALIZER
		draft5
#endif
d14210 21
a14230 8
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft5" >/dev/null 2>&1; then :
  ol_cv_pthread_version=5
else
  ol_cv_pthread_version=4
fi
rm -f conftest*
d14232 10
a14241 2
fi
rm -f conftest*
d14243 6
a14248 2
fi
rm -f conftest*
d14250 7
a14256 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d14258 3
a14261 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
$as_echo "$ol_cv_pthread_version" >&6; }
d14263 2
a14264 29

		if test $ol_cv_pthread_version != 0 ; then

cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREADS $ol_cv_pthread_version
_ACEOF

		else
			as_fn_error $? "unknown pthread version" "$LINENO" 5
		fi

		# consider threads found
		ol_with_threads=found


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
d14266 2
a14267 3
rm -f conftest*


a14268 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then
a14269 1
$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
a14270 1
	fi
a14272 11
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
#ifdef _POSIX_THREAD_IS_GNU_PTH
	__gnu_pth__;
#endif
a14273 8
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
  ol_cv_header_gnu_pth_pthread_h=yes
else
  ol_cv_header_gnu_pth_pthread_h=no
fi
rm -f conftest*
a14275 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
a14277 8
		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
			for ac_header in sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_H 1
_ACEOF
a14278 1
fi
a14279 1
done
a14280 1
		fi
a14282 5
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
$as_echo_n "checking for pthread_create in default libraries... " >&6; }
if ${ol_cv_pthread_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14283 3
			if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14284 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14285 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14286 3
int
main ()
{
a14287 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14288 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14289 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14290 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14291 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14292 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14293 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14294 1
	return 0;
a14295 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14297 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14298 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14300 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14301 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14302 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14303 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14304 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14305 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14306 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14307 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14308 1
	return 0;
a14309 1
}
a14310 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14311 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
$as_echo "$ol_cv_pthread_create" >&6; }
a14312 4
		if test $ol_cv_pthread_create != no ; then
			ol_link_threads=posix
			ol_link_pthreads=""
		fi
a14313 8
		# Pthread try link: -kthread (ol_cv_pthread_kthread)
if test "$ol_link_threads" = no ; then
	# try -kthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
$as_echo_n "checking for pthread link with -kthread... " >&6; }
if ${ol_cv_pthread_kthread+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14314 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-kthread $LIBS"
a14315 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14316 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14317 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14318 3
int
main ()
{
a14319 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14320 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14321 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14322 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14323 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14324 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14325 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14326 1
	return 0;
a14327 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14329 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14330 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14332 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14333 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14334 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14335 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14336 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14337 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14338 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14339 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14340 1
	return 0;
a14341 1
}
a14342 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14344 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14345 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
$as_echo "$ol_cv_pthread_kthread" >&6; }
a14346 5
	if test $ol_cv_pthread_kthread = yes ; then
		ol_link_pthreads="-kthread"
		ol_link_threads=posix
	fi
fi
a14347 8
		# Pthread try link: -pthread (ol_cv_pthread_pthread)
if test "$ol_link_threads" = no ; then
	# try -pthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
$as_echo_n "checking for pthread link with -pthread... " >&6; }
if ${ol_cv_pthread_pthread+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14348 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthread $LIBS"
a14349 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14350 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14351 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14352 3
int
main ()
{
a14353 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14354 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14355 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14356 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14357 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14358 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14359 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14361 6
a14366 1
	return 0;
d14368 13
a14380 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_pthread=yes
d14382 15
a14396 1
  ol_cv_pthread_pthread=no
a14397 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14399 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14400 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14402 4
int main(argc, argv)
	int argc;
	char **argv;
{
d14404 7
a14410 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14412 6
a14417 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14419 4
a14422 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d14424 4
a14427 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14429 11
a14439 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d14441 5
a14445 6
	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
d14447 7
a14453 3

	return 0;

a14454 1

d14456 2
a14457 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthread=yes
d14459 1
a14459 1
  ol_cv_pthread_pthread=no
d14461 3
a14463 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14465 5
d14471 3
a14473 3

		# restore the LIBS
		LIBS="$ol_LIBS"
a14475 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
$as_echo "$ol_cv_pthread_pthread" >&6; }
d14477 1
a14477 5
	if test $ol_cv_pthread_pthread = yes ; then
		ol_link_pthreads="-pthread"
		ol_link_threads=posix
	fi
fi
d14479 8
a14486 6
		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
if test "$ol_link_threads" = no ; then
	# try -pthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
$as_echo_n "checking for pthread link with -pthreads... " >&6; }
if ${ol_cv_pthread_pthreads+:} false; then :
d14489 3
a14491 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthreads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14494 5
a14498 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14500 1
a14500 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d14504 1
a14504 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d14510 1
a14510 1
  ol_cv_pthread_pthreads=yes
d14512 1
a14512 1
  ol_cv_pthread_pthreads=no
d14516 15
d14532 3
a14534 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14537 5
a14541 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14543 3
a14545 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d14547 3
a14549 55
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

a14550 1

d14552 2
a14553 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthreads=yes
d14555 1
a14555 1
  ol_cv_pthread_pthreads=no
d14557 3
a14559 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14561 8
a14568 21


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
$as_echo "$ol_cv_pthread_pthreads" >&6; }

	if test $ol_cv_pthread_pthreads = yes ; then
		ol_link_pthreads="-pthreads"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
if test "$ol_link_threads" = no ; then
	# try -mthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
$as_echo_n "checking for pthread link with -mthreads... " >&6; }
if ${ol_cv_pthread_mthreads+:} false; then :
d14571 3
a14573 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-mthreads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14576 5
a14580 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14582 1
a14582 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d14586 1
a14586 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d14592 1
a14592 1
  ol_cv_pthread_mthreads=yes
d14594 1
a14594 1
  ol_cv_pthread_mthreads=no
d14598 11
d14610 3
a14612 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14615 5
a14619 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14621 3
a14623 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d14625 3
a14627 1
	return (void *) (p == NULL);
d14629 15
d14646 1
a14646 16
int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14647 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14648 38
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_mthreads=yes
else
  ol_cv_pthread_mthreads=no
d14650 2
a14651 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14655 1
a14655 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14656 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
$as_echo "$ol_cv_pthread_mthreads" >&6; }
a14657 4
	if test $ol_cv_pthread_mthreads = yes ; then
		ol_link_pthreads="-mthreads"
		ol_link_threads=posix
	fi
d14660 2
a14661 8
		# Pthread try link: -thread (ol_cv_pthread_thread)
if test "$ol_link_threads" = no ; then
	# try -thread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
$as_echo_n "checking for pthread link with -thread... " >&6; }
if ${ol_cv_pthread_thread+:} false; then :
  $as_echo_n "(cached) " >&6
else
d14663 5
a14667 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-thread $LIBS"
d14669 4
a14672 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14674 2
a14675 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d14677 2
a14678 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d14680 13
a14692 3
int
main ()
{
d14694 2
a14695 3
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
a14696 3
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14698 1
a14698 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14700 2
a14701 6
	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
d14703 5
a14707 1
	status = pthread_attr_setdetachstate(&attr, detach);
d14709 21
a14729 4
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
a14730 5
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14732 4
a14735 6
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
d14738 5
a14742 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14744 12
a14755 1
	return 0;
d14757 1
a14757 2
  ;
  return 0;
d14759 17
a14775 5
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_thread=yes
else
  ol_cv_pthread_thread=no
d14777 1
a14777 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14780 3
a14782 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d14784 15
a14798 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d14800 2
a14801 9

int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
a14802 3
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14804 1
a14804 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14806 2
a14807 6
	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
d14809 5
a14813 1
	status = pthread_attr_setdetachstate(&attr, detach);
d14815 21
a14835 4
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
a14836 5
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14838 4
a14841 6
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
d14844 5
a14848 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14850 12
a14861 1
	return 0;
d14863 1
d14865 20
a14885 8
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_thread=yes
else
  ol_cv_pthread_thread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14887 9
d14897 4
d14902 4
a14905 3
		# restore the LIBS
		LIBS="$ol_LIBS"

a14906 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
$as_echo "$ol_cv_pthread_thread" >&6; }
a14907 5
	if test $ol_cv_pthread_thread = yes ; then
		ol_link_pthreads="-thread"
		ol_link_threads=posix
	fi
fi
a14909 8
		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14910 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
a14911 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14912 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14913 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14914 3
int
main ()
{
a14915 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14916 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14917 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14918 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14919 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14920 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14921 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14922 1
	return 0;
d14924 9
a14932 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
d14934 18
a14951 1
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
a14952 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14954 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14955 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14957 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14958 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14959 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14960 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14961 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14962 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14963 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d14965 9
a14973 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14975 10
a14984 1
	return 0;
d14986 8
a14993 1
}
d14995 6
a15000 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a15002 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a15003 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
a15004 4
	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
d15006 5
d15012 1
a15012 12
		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc $LIBS"
a15013 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a15014 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a15015 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a15016 3
int
main ()
{
a15017 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a15018 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a15019 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a15020 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a15021 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a15022 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a15023 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a15024 1
	return 0;
d15026 1
a15026 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
else
  ol_cv_pthread_lpthread_lmach_lexc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a15028 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a15029 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15031 1
a15032 4
int main(argc, argv)
	int argc;
	char **argv;
{
a15033 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15035 10
a15044 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d15046 19
a15064 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a15065 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d15067 11
a15077 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d15079 8
a15086 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d15088 7
a15094 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d15096 3
a15098 1
	return 0;
d15100 5
a15105 1

d15107 2
a15108 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
d15110 1
a15110 1
  ol_cv_pthread_lpthread_lmach_lexc=no
d15112 1
a15112 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15114 3
d15118 1
a15118 3

		# restore the LIBS
		LIBS="$ol_LIBS"
a15120 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
d15122 3
a15124 13
	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
if test "$ol_link_threads" = no ; then
	# try -lpthread -Wl,-woff,85
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
d15127 3
d15131 5
a15135 12
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -Wl,-woff,85 $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15137 1
a15137 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15141 1
a15141 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15146 9
a15154 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
else
  ol_cv_pthread_lib_lpthread_woff=no
d15157 7
a15163 1
    conftest$ac_exeext conftest.$ac_ext
d15165 10
a15174 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d15176 1
a15177 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d15179 26
a15204 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15206 7
a15212 57

int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
d15214 2
a15215 4
  ol_cv_pthread_lib_lpthread_woff=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15219 26
a15244 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15246 2
d15249 7
a15255 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }

	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
		ol_link_pthreads="-lpthread -Wl,-woff,85"
		ol_link_threads=posix
	fi
d15259 5
a15263 6
		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
if test "$ol_link_threads" = no ; then
	# try -lpthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
$as_echo_n "checking for pthread link with -lpthread... " >&6; }
if ${ol_cv_pthread_lpthread+:} false; then :
d15266 19
d15286 11
a15296 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread $LIBS"
a15297 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a15298 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a15299 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15301 5
a15305 3
int
main ()
{
d15307 1
a15307 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15309 49
a15357 27
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d15359 7
a15365 16
	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
d15367 2
a15368 1
  ol_cv_pthread_lpthread=no
a15369 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d15372 4
a15375 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d15377 5
a15381 51
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a15382 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a15383 1
	return 0;
d15385 2
a15386 1
}
a15387 3
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
d15389 3
a15391 26
  ol_cv_pthread_lpthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
$as_echo "$ol_cv_pthread_lpthread" >&6; }

	if test $ol_cv_pthread_lpthread = yes ; then
		ol_link_pthreads="-lpthread"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
$as_echo_n "checking for pthread link with -lc_r... " >&6; }
if ${ol_cv_pthread_lc_r+:} false; then :
d15394 2
a15395 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15398 5
a15402 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15404 1
a15404 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15408 1
a15408 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15413 9
a15421 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
else
  ol_cv_pthread_lc_r=no
d15424 6
a15429 34
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a15430 43
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
d15432 1
a15432 1
  ol_cv_pthread_lc_r=no
d15434 2
a15435 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15437 5
a15441 4


		# restore the LIBS
		LIBS="$ol_LIBS"
a15443 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
$as_echo "$ol_cv_pthread_lc_r" >&6; }
a15444 4
	if test $ol_cv_pthread_lc_r = yes ; then
		ol_link_pthreads="-lc_r"
		ol_link_threads=posix
	fi
d15447 2
d15450 4
a15453 6
		# Pthread try link: -threads (ol_cv_pthread_threads)
if test "$ol_link_threads" = no ; then
	# try -threads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
$as_echo_n "checking for pthread link with -threads... " >&6; }
if ${ol_cv_pthread_threads+:} false; then :
d15456 2
a15457 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-threads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15460 5
a15464 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15466 1
a15466 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15470 1
a15470 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15475 9
a15483 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_threads=yes
else
  ol_cv_pthread_threads=no
d15486 6
a15491 41
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;
a15492 36
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_threads=yes
d15494 1
a15494 1
  ol_cv_pthread_threads=no
d15496 2
a15497 16
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
$as_echo "$ol_cv_pthread_threads" >&6; }

	if test $ol_cv_pthread_threads = yes ; then
		ol_link_pthreads="-threads"
		ol_link_threads=posix
	fi
d15499 5
d15505 4
a15508 7

		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
d15511 2
a15512 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15515 5
a15519 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15521 1
a15521 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15525 1
a15525 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15530 9
a15538 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
d15541 6
a15546 21
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

a15547 56
int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
d15549 1
a15549 1
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
d15551 2
a15552 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15554 5
d15560 1
a15560 3

		# restore the LIBS
		LIBS="$ol_LIBS"
a15562 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
a15563 4
	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
d15566 3
a15568 6
		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
d15571 2
a15572 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15575 5
a15579 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15581 1
a15581 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15585 1
a15585 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15590 9
a15598 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc=no
d15601 6
a15606 72
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;
a15607 5
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
d15609 1
a15609 1
  ol_cv_pthread_lpthreads_lmach_lexc=no
d15611 2
a15612 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15614 5
d15620 1
d15622 7
a15628 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15631 2
a15632 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
a15633 5
	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc"
		ol_link_threads=posix
	fi
fi
d15635 5
a15639 7
		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
  $as_echo_n "(cached) " >&6
d15641 1
d15643 1
a15643 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lexc $LIBS"
d15645 23
a15667 2
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15670 5
a15674 61
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
d15676 5
a15680 3

	return 0;

d15686 1
a15686 3
  ol_cv_pthread_lpthreads_lexc=yes
else
  ol_cv_pthread_lpthreads_lexc=no
d15690 19
a15708 2
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15711 5
a15715 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15717 3
a15719 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d15721 3
a15723 1
	return (void *) (p == NULL);
d15725 30
d15756 8
d15765 2
a15766 4
int main(argc, argv)
	int argc;
	char **argv;
{
d15768 12
a15779 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15781 1
a15781 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d15783 1
a15783 35
	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}
d15785 7
a15792 12
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lexc=yes
else
  ol_cv_pthread_lpthreads_lexc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"
a15794 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
d15796 1
a15796 5
	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lexc"
		ol_link_threads=posix
	fi
fi
d15799 5
a15803 6
		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
if test "$ol_link_threads" = no ; then
	# try -lpthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
if ${ol_cv_pthread_lib_lpthreads+:} false; then :
a15805 6

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads $LIBS"

		if test "$cross_compiling" = yes; then :
d15809 2
a15810 14
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15816 1
a15816 35
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a15817 9
	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;
d15823 2
a15824 2
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
d15826 2
a15827 1
  ol_cv_pthread_lib_lpthreads=no
d15829 1
a15829 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d15831 3
d15835 3
a15837 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d15839 1
a15839 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15841 2
d15844 5
a15848 4
int main(argc, argv)
	int argc;
	char **argv;
{
d15850 5
a15854 3
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
d15856 7
a15862 42
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

a15863 1

d15865 2
a15866 7
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
else
  ol_cv_pthread_lib_lpthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15868 3
d15872 2
d15875 2
a15876 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15878 1
a15878 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
d15880 6
a15885 22
	if test $ol_cv_pthread_lib_lpthreads = yes ; then
		ol_link_pthreads="-lpthreads"
		ol_link_threads=posix
	fi
fi


		if test $ol_link_threads != no ; then
			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"

						save_CPPFLAGS="$CPPFLAGS"
			save_LIBS="$LIBS"
			LIBS="$LTHREAD_LIBS $LIBS"

												for ac_func in sched_yield pthread_yield thr_yield
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a15886 2
fi
done
d15889 8
a15896 6
			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test $ac_cv_func_thr_yield = no ; then
								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
$as_echo_n "checking for sched_yield in -lrt... " >&6; }
if ${ac_cv_lib_rt_sched_yield+:} false; then :
d15910 1
a15910 1
char sched_yield ();
d15914 1
a15914 1
return sched_yield ();
d15920 1
a15920 1
  ac_cv_lib_rt_sched_yield=yes
d15922 1
a15922 1
  ac_cv_lib_rt_sched_yield=no
d15928 3
a15930 24
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"

$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h

					ac_cv_func_sched_yield=yes
else
  ac_cv_func_sched_yield=no
fi

			fi
			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test "$ac_cv_func_thr_yield" = no ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
			fi

						for ac_func in pthread_kill
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
if test "x$ac_cv_func_pthread_kill" = xyes; then :
d15932 1
a15932 1
#define HAVE_PTHREAD_KILL 1
d15935 1
a15935 3
fi
done

d15937 4
a15940 3
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
d15943 3
a15945 2

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15948 7
a15954 3
#include <pthread.h>
pthread_rwlock_t rwlock;

d15958 1
a15958 1
pthread_rwlock_destroy(&rwlock);
d15964 1
a15964 1
  ol_cv_func_pthread_rwlock_destroy=yes
d15966 1
a15966 1
  ol_cv_func_pthread_rwlock_destroy=no
d15970 10
a15981 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
d15983 1
a15983 1
$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
d15985 2
a15986 1
			fi
d15988 3
a15990 3
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_detach+:} false; then :
d15993 2
a15994 2

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15997 5
a16001 3
#include <pthread.h>
#ifndef NULL
#define NULL (void*)0
d16003 1
a16003 1

d16007 1
a16007 1
pthread_detach(NULL);
d16012 9
a16020 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_func_pthread_detach=yes
else
  ol_cv_func_pthread_detach=no
d16023 3
a16025 28
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
$as_echo "$ol_cv_func_pthread_detach" >&6; }

			if test $ol_cv_func_pthread_detach = no ; then
				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
			fi


$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h


						for ac_func in \
				pthread_setconcurrency \
				pthread_getconcurrency \
				thr_setconcurrency \
				thr_getconcurrency \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

d16028 1
d16030 2
a16031 10


	for ac_func in pthread_kill_other_threads_np
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
_ACEOF

d16033 2
a16034 8
done

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
$as_echo_n "checking for LinuxThreads implementation... " >&6; }
if ${ol_cv_sys_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
d16036 5
a16040 21
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
$as_echo "$ol_cv_sys_linux_threads" >&6; }




	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
$as_echo_n "checking for LinuxThreads consistency... " >&6; }
if ${ol_cv_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		if test $ol_cv_header_linux_threads = yes &&
		   test $ol_cv_sys_linux_threads = yes; then
			ol_cv_linux_threads=yes
		elif test $ol_cv_header_linux_threads = no &&
		     test $ol_cv_sys_linux_threads = no; then
			ol_cv_linux_threads=no
		else
			ol_cv_linux_threads=error
		fi
a16042 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
$as_echo "$ol_cv_linux_threads" >&6; }
d16044 3
a16046 8

			if test $ol_cv_linux_threads = error; then
				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
			fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
$as_echo_n "checking if pthread_create() works... " >&6; }
if ${ol_cv_pthread_create_works+:} false; then :
d16049 2
a16050 5

			if test "$cross_compiling" = yes; then :
  				ol_cv_pthread_create_works=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16053 5
a16057 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d16059 3
a16061 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d16063 3
a16065 55
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d16067 18
a16085 3
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create_works=yes
d16087 1
a16087 1
  ol_cv_pthread_create_works=no
d16089 2
a16090 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d16092 5
a16098 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
$as_echo "$ol_cv_pthread_create_works" >&6; }
d16100 5
a16104 16
			if test $ol_cv_pthread_create_works = no ; then
				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
			fi

			ol_replace_broken_yield=no

			if test $ol_replace_broken_yield = yes ; then

$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h

			fi

						if test x$ol_with_yielding_select = xauto ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
$as_echo_n "checking if select yields when using pthreads... " >&6; }
if ${ol_cv_pthread_select_yields+:} false; then :
d16107 3
a16109 5

				if test "$cross_compiling" = yes; then :
  ol_cv_pthread_select_yields=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16112 5
a16116 6
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#ifndef NULL
#define NULL (void*) 0
d16118 3
a16120 5

static int fildes[2];

static void *task(p)
	void *p;
d16122 3
a16124 59
	int i;
	struct timeval tv;

	fd_set rfds;

	tv.tv_sec=10;
	tv.tv_usec=0;

	FD_ZERO(&rfds);
	FD_SET(fildes[0], &rfds);

	/* we're not interested in any fds */
	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);

	if(i < 0) {
		perror("select");
		exit(10);
	}

	exit(0); /* if we exit here, the select blocked the whole process */
}

int main(argc, argv)
	int argc;
	char **argv;
{
	pthread_t t;

	/* create a pipe to select */
	if(pipe(&fildes[0])) {
		perror("select");
		exit(1);
	}

#ifdef HAVE_PTHREAD_SETCONCURRENCY
	(void) pthread_setconcurrency(2);
#else
#ifdef HAVE_THR_SETCONCURRENCY
	/* Set Solaris LWP concurrency to 2 */
	thr_setconcurrency(2);
#endif
#endif

#if HAVE_PTHREADS < 6
	pthread_create(&t, pthread_attr_default, task, NULL);
#else
	pthread_create(&t, NULL, task, NULL);
#endif

	/* make sure task runs first */
#ifdef HAVE_THR_YIELD
	thr_yield();
#elif defined( HAVE_SCHED_YIELD )
	sched_yield();
#elif defined( HAVE_PTHREAD_YIELD )
	pthread_yield();
#endif

	exit(2);
d16127 2
a16128 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_select_yields=no
d16130 1
a16130 1
  ol_cv_pthread_select_yields=yes
d16132 3
a16134 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d16136 8
a16145 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
$as_echo "$ol_cv_pthread_select_yields" >&6; }
d16147 1
a16147 20
				if test $ol_cv_pthread_select_yields = cross ; then
					as_fn_error $? "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
				fi

				if test $ol_cv_pthread_select_yields = yes ; then
					ol_with_yielding_select=yes
				fi
			fi

						CPPFLAGS="$save_CPPFLAGS"
			LIBS="$save_LIBS"
		else
			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
		fi
	fi

	if test $ol_with_threads = posix ; then
		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
	fi
	;;
d16149 1
a16149 4

case $ol_with_threads in auto | yes | mach)

		for ac_header in mach/cthreads.h cthreads.h
d16152 13
a16164 1
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
a16173 2
	if test $ac_cv_header_mach_cthreads_h = yes ; then
		ol_with_threads=found
d16175 9
a16183 3
				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
d16185 1
d16188 3
a16190 4
		if test $ol_link_threads = no ; then
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
$as_echo_n "checking for cthread_fork with -all_load... " >&6; }
if ${ol_cv_cthread_all_load+:} false; then :
d16193 6
a16199 5
								save_LIBS="$LIBS"
				LIBS="-all_load $LIBS"
				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <mach/cthreads.h>
a16203 2
					cthread_fork((void *)0, (void *)0);

d16208 2
a16209 2
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_cthread_all_load=yes
d16211 1
a16211 1
  ol_cv_cthread_all_load=no
d16213 11
a16223 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
								LIBS="$save_LIBS"
d16225 2
d16228 1
a16228 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
$as_echo "$ol_cv_cthread_all_load" >&6; }
d16230 1
a16230 6
			if test $ol_cv_cthread_all_load = yes ; then
				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
				ol_link_threads=mach
				ol_with_threads=found
			fi
		fi
d16232 5
a16236 1
	elif test $ac_cv_header_cthreads_h = yes ; then
d16238 3
a16240 1
		ol_with_threads=found
d16242 2
a16243 5
				save_LIBS="$LIBS"
		LIBS="$LIBS -lthreads"
		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
d16245 1
d16247 1
a16247 1
		LIBS="$save_LIBS"
d16249 19
a16267 7
		if test $ol_link_threads = yes ; then
			LTHREAD_LIBS="-lthreads"
			ol_link_threads=mach
			ol_with_threads=found
		else
			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
		fi
d16269 13
a16281 3
	elif test $ol_with_threads = mach ; then
		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
	fi
d16283 6
a16288 1
	if test $ol_link_threads = mach ; then
d16290 5
a16294 1
$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
d16296 1
a16296 5
	elif test $ol_with_threads = found ; then
		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
	fi
	;;
esac
d16298 1
a16298 1
case $ol_with_threads in auto | yes | pth)
d16300 1
a16300 1
	for ac_header in pth.h
d16302 2
a16303 2
  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
if test "x$ac_cv_header_pth_h" = xyes; then :
d16305 1
a16305 1
#define HAVE_PTH_H 1
d16312 5
a16316 5

	if test $ac_cv_header_pth_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
$as_echo_n "checking for pth_version in -lpth... " >&6; }
if ${ac_cv_lib_pth_pth_version+:} false; then :
d16320 1
a16320 1
LIBS="-lpth  $LIBS"
d16330 1
a16330 1
char pth_version ();
d16334 1
a16334 1
return pth_version ();
d16340 1
a16340 1
  ac_cv_lib_pth_pth_version=yes
d16342 1
a16342 1
  ac_cv_lib_pth_pth_version=no
d16348 45
a16392 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
  have_pth=yes
else
  have_pth=no
d16395 10
d16406 1
a16406 1
		if test $have_pth = yes ; then
d16408 1
a16408 1
$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
d16410 8
a16417 3
			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
			ol_link_threads=pth
			ol_with_threads=found
d16419 1
a16419 7
			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi
		fi
	fi
	;;
esac
d16421 1
a16421 1
case $ol_with_threads in auto | yes | lwp)
d16423 1
a16423 1
		for ac_header in thread.h synch.h
a16435 11
	if test $ac_cv_header_thread_h = yes &&
	   test $ac_cv_header_synch_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
$as_echo_n "checking for thr_create in -lthread... " >&6; }
if ${ac_cv_lib_thread_thr_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16437 24
a16460 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char thr_create ();
int
main ()
{
return thr_create ();
  ;
  return 0;
}
d16462 1
a16462 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_thread_thr_create=yes
else
  ac_cv_lib_thread_thr_create=no
d16464 16
a16479 10
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
  have_thr=yes
else
  have_thr=no
d16482 1
d16484 2
a16485 1
		if test $have_thr = yes ; then
d16487 17
a16503 1
$as_echo "#define HAVE_THR 1" >>confdefs.h
d16505 2
a16506 2
			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
			ol_link_threads=thr
d16508 1
a16508 7
			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi

						for ac_func in \
				thr_setconcurrency \
				thr_getconcurrency \
d16510 1
d16512 2
a16513 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d16515 1
a16515 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16519 1
d16522 1
a16522 4
		fi
	fi

		for ac_header in lwp/lwp.h
d16524 2
a16525 2
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
d16527 1
a16527 1
#define HAVE_LWP_LWP_H 1
a16533 10
	if test $ac_cv_header_lwp_lwp_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
$as_echo_n "checking for lwp_create in -llwp... " >&6; }
if ${ac_cv_lib_lwp_lwp_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llwp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16535 9
a16543 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lwp_create ();
int
main ()
{
return lwp_create ();
  ;
  return 0;
}
d16545 1
a16545 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_lwp_lwp_create=yes
d16547 2
a16548 12
  ac_cv_lib_lwp_lwp_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
  have_lwp=yes
else
  have_lwp=no
d16551 1
d16553 11
a16563 3
		if test $have_lwp = yes ; then

$as_echo "#define HAVE_LWP 1" >>confdefs.h
a16564 8
			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
			ol_link_threads=lwp

			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=no
			fi
		fi
	fi
d16566 2
d16570 8
a16577 1
if test $ol_with_yielding_select = yes ; then
d16579 5
a16583 1
$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
d16587 1
a16587 2
if test $ol_with_threads = manual ; then
		ol_link_threads=yes
d16589 1
a16589 2
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
d16591 1
a16591 1
	for ac_header in pthread.h sched.h
d16593 6
a16598 3
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d16600 1
a16600 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d16607 1
a16607 1
	for ac_func in sched_yield pthread_yield
d16609 2
a16610 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d16612 1
a16612 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16616 1
d16619 6
d16626 4
a16629 8
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
a16630 8
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
fi
rm -f conftest*

a16632 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then
d16634 1
a16634 1
$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
d16636 1
a16636 4
	fi


	for ac_header in mach/cthreads.h
d16638 3
a16640 2
  ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
d16642 1
a16642 1
#define HAVE_MACH_CTHREADS_H 1
d16649 1
a16649 1
	for ac_header in lwp/lwp.h
d16651 15
a16665 2
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
d16667 1
a16667 1
#define HAVE_LWP_LWP_H 1
d16674 1
a16674 1
	for ac_header in thread.h synch.h
d16677 20
a16696 1
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
a16705 14
fi

if test $ol_link_threads != no && test $ol_link_threads != nt ; then

$as_echo "#define REENTRANT 1" >>confdefs.h


$as_echo "#define _REENTRANT 1" >>confdefs.h


$as_echo "#define THREAD_SAFE 1" >>confdefs.h


$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
d16707 4
a16710 13

$as_echo "#define THREADSAFE 1" >>confdefs.h


$as_echo "#define _THREADSAFE 1" >>confdefs.h


$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h


			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
$as_echo_n "checking for thread specific errno... " >&6; }
if ${ol_cv_errno_thread_specific+:} false; then :
d16713 13
a16726 10
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <errno.h>
int
main ()
{
errno = 0;
  ;
  return 0;
}
d16728 3
a16730 2
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_errno_thread_specific=yes
d16732 2
a16733 1
  ol_cv_errno_thread_specific=no
d16735 2
a16736 2
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d16739 6
a16744 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
$as_echo "$ol_cv_errno_thread_specific" >&6; }
d16746 1
a16746 5
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
$as_echo_n "checking for thread specific h_errno... " >&6; }
if ${ol_cv_h_errno_thread_specific+:} false; then :
  $as_echo_n "(cached) " >&6
else
d16748 6
a16753 10
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netdb.h>
int
main ()
{
h_errno = 0;
  ;
  return 0;
}
a16754 7
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_h_errno_thread_specific=yes
else
  ol_cv_h_errno_thread_specific=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
a16756 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
$as_echo "$ol_cv_h_errno_thread_specific" >&6; }
d16758 1
a16758 5
	if test $ol_cv_errno_thread_specific != yes ||
	   test $ol_cv_h_errno_thread_specific != yes ; then
		LIBS="$LTHREAD_LIBS $LIBS"
		LTHREAD_LIBS=""
	fi
d16760 2
a16761 1
fi
d16763 1
a16763 4
if test $ol_link_threads = no ; then
	if test $ol_with_threads = yes ; then
		as_fn_error $? "no suitable thread support" "$LINENO" 5
	fi
d16765 9
a16773 5
	if test $ol_with_threads = auto ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
		ol_with_threads=no
	fi
d16775 1
d16777 1
a16777 1
$as_echo "#define NO_THREADS 1" >>confdefs.h
d16779 8
a16786 9
	LTHREAD_LIBS=""
	BUILD_THREAD=no
else
	BUILD_THREAD=yes
fi

if test $ol_link_threads != no ; then

$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
d16790 1
a16790 4
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
case "$ol_with_threads" in
 no)
    ol_pthread_ok=no
d16792 2
d16796 1
a16796 18
    ol_found_pthreads=yes
    ;;
esac

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    case "$ol_found_pthreads" in
     yes)
	saved_LIBS="$LIBS"
	LIBS="$LTHREAD_LIBS $LIBS"
	saved_CFLAGS="$CFLAGS"
	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
	for ac_func in sem_timedwait
d16798 2
a16799 2
  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
if test "x$ac_cv_func_sem_timedwait" = xyes; then :
d16801 1
a16801 1
#define HAVE_SEM_TIMEDWAIT 1
d16805 1
d16808 1
a16808 10
	LIBS="$saved_LIBS"
	{ saved_LIBS=; unset saved_LIBS;}
	CFLAGS="$saved_CFLAGS"
	{ saved_CFLAGS=; unset saved_CFLAGS;}
	case "$ac_cv_func_sem_timedwait" in
	 yes)
	    PTHREAD_LIBS="$LTHREAD_LIBS"
	    have_pthreads=yes
	esac
    esac
d16810 8
d16819 1
a16819 19
case "$have_pthreads" in
 yes)
    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
    saved_LIBS="$LIBS"
    LIBS="$LTHREAD_LIBS $LIBS"
    saved_CFLAGS="$CFLAGS"
    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
$as_echo_n "checking size of pthread_t... " >&6; }
if ${ac_cv_sizeof_pthread_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
	    $ac_includes_default
	    #include <pthread.h>
d16821 1
d16823 8
a16830 1
"; then :
a16831 9
else
  if test "$ac_cv_type_pthread_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (pthread_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_pthread_t=0
   fi
d16834 1
a16834 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
d16836 8
a16843 4


cat >>confdefs.h <<_ACEOF
#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
d16846 1
d16848 1
a16848 1
    LIBISC_PTHREADS_NOTHREADS=pthreads
d16850 11
a16860 18
$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h

    #
    # We'd like to use sigwait() too
    #
    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
if test "x$ac_cv_func_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
$as_echo_n "checking for sigwait in -lc... " >&6; }
if ${ac_cv_lib_c_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a16861 19
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_sigwait=yes
else
  ac_cv_lib_c_sigwait=no
a16862 18
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
$as_echo "$ac_cv_lib_c_sigwait" >&6; }
if test "x$ac_cv_lib_c_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
$as_echo_n "checking for sigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16864 1
a16864 38
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread_sigwait=yes
else
  ac_cv_lib_pthread_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread__Psigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16866 10
a16875 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char _Psigwait ();
int
main ()
{
return _Psigwait ();
  ;
  return 0;
}
a16876 15
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread__Psigwait=yes
else
  ac_cv_lib_pthread__Psigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
  have_sigwait=yes
else
  have_sigwait=no
d16880 1
d16882 11
a16892 2
fi

d16896 1
d16898 12
a16909 28
fi

    case "$host:$have_sigwait" in
     *-freebsd*:no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
$as_echo_n "checking for sigwait in -lc_r... " >&6; }
if ${ac_cv_lib_c_r_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc_r  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
a16910 13
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_r_sigwait=yes
else
  ac_cv_lib_c_r_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
  have_sigwait=yes
d16914 1
a16914 4
    esac
    case "$have_sigwait" in
     yes)
	ac_cv_func_sigwait=yes
d16916 3
a16918 5
$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h

    esac

    for ac_func in pthread_attr_getstacksize
d16920 3
a16922 2
  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
d16924 1
a16924 1
#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
d16928 1
d16931 2
a16932 1
    for ac_func in pthread_attr_setstacksize sysconf
d16934 5
a16938 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d16940 1
a16940 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16944 1
d16947 8
d16956 1
a16956 14
    case "$host" in
     *-freebsd5.[012]|*-freebsd5.[012].*)
	;;
     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)

$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h

	;;
     *-bsdi3.*|*-bsdi4.0*)

$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h

	;;
     *-linux*)
d16958 1
a16958 5
$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h

	;;
     *-solaris*)
	$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d16960 1
a16960 1
	for ac_func in pthread_setconcurrency
d16962 3
a16964 2
  ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
d16966 1
a16966 1
#define HAVE_PTHREAD_SETCONCURRENCY 1
d16970 1
d16973 1
a16973 28
	case "$ac_cv_func_pthread_setconcurrency" in
	 yes)

$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h

	esac
	;;
     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)

$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h

	;;
    esac
    hack_shutup_pthreadonceinit=no
    case "$host" in
     *-aix5.[123].*)
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.[89])
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.1[0-9])
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16976 10
a16985 1
			#include <pthread.h>
d16987 12
a16998 3
int
main ()
{
a16999 2
		        static pthread_once_t once_test =
						PTHREAD_ONCE_INIT;
d17001 4
a17004 4

  ;
  return 0;
}
a17005 7
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_braces_around_pthread_once_init=no
else
  ntp_cv_braces_around_pthread_once_init=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a17007 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
	case "$ntp_cv_braces_around_pthread_once_init" in
	 yes)
	    hack_shutup_pthreadonceinit=yes
	esac
	;;
    esac
    case "$hack_shutup_pthreadonceinit" in
     yes)
d17009 1
a17009 1
$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
a17010 10
    esac
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
    CFLAGS="$saved_CFLAGS"
    { saved_CFLAGS=; unset saved_CFLAGS;}
    ;;
 *)
    LIBISC_PTHREADS_NOTHREADS=nothreads
    ;;
esac
a17011 6
 if test "$have_pthreads" != "no"; then
  PTHREADS_TRUE=
  PTHREADS_FALSE='#'
else
  PTHREADS_TRUE='#'
  PTHREADS_FALSE=
d17013 1
d17015 8
d17024 1
d17026 1
d17028 3
a17030 8



case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
 no:yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
if ${ntp_cv_vsnprintf_percent_m+:} false; then :
a17032 4
  if test "$cross_compiling" = yes; then :
  ntp_cv_vsnprintf_percent_m=no

else
d17035 3
a17037 29

		    #include <stdarg.h>
		    #include <errno.h>
		    #include <stdio.h>
		    #include <string.h>

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    );

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    )
		    {
			    va_list	ap;
			    int		rc;

			    va_start(ap, fmt);
			    rc = vsnprintf(dst, sz, fmt, ap);
			    va_end(ap);

			    return rc;
		    }
d17042 2
a17043 12

		    char	sbuf[512];
		    char	pbuf[512];
		    int		slen;

		    strcpy(sbuf, strerror(ENOENT));
		    errno = ENOENT;
		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
					  "wrong");
		    return strcmp(sbuf, pbuf);


d17048 2
a17049 2
if ac_fn_c_try_run "$LINENO"; then :
  ntp_cv_vsnprintf_percent_m=yes
d17051 1
a17051 1
  ntp_cv_vsnprintf_percent_m=no
d17053 1
a17053 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d17055 3
d17059 1
a17061 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
    case "$ntp_cv_vsnprintf_percent_m" in
     yes)
d17063 3
a17065 6
$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h

    esac
esac

for ac_header in sys/clockctl.h
d17067 3
a17069 2
  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
d17071 1
a17071 1
#define HAVE_SYS_CLOCKCTL_H 1
d17078 3
a17080 17

# Check whether --enable-clockctl was given.
if test "${enable_clockctl+set}" = set; then :
  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
else
  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
$as_echo "$ntp_use_dev_clockctl" >&6; }


for ac_header in sys/capability.h sys/prctl.h
a17092 35

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }

case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
 yesyes)
    case "$host" in
     mips-sgi-irix*)
	ntp_have_linuxcaps=no
	;;
     *) ntp_have_linuxcaps=yes
	;;
    esac
    ;;
 *)
    ntp_have_linuxcaps=no
    ;;
esac

# Check whether --enable-linuxcaps was given.
if test "${enable_linuxcaps+set}" = set; then :
  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
$as_echo "$ntp_have_linuxcaps" >&6; }

case "$ntp_have_linuxcaps" in
 yes)

$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h

    LIBS="$LIBS -lcap"
d17096 3
a17098 2

for ac_header in priv.h
d17100 3
a17102 2
  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
if test "x$ac_cv_header_priv_h" = xyes; then :
d17104 1
a17104 1
#define HAVE_PRIV_H 1
a17107 1

d17110 3
a17112 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }

case "$ac_cv_header_priv_h" in
d17114 6
a17119 5
    case "$host" in
     *-solaris*)
	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
if test "x$ac_cv_func_setppriv" = xyes; then :
  ntp_have_solarisprivs=yes
d17121 4
a17124 1
  ntp_have_solarisprivs=no
d17126 23
d17150 6
d17157 1
a17157 7
	;;
    esac
esac

# Check whether --enable-solarisprivs was given.
if test "${enable_solarisprivs+set}" = set; then :
  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
d17160 9
d17171 23
d17195 1
a17195 9
case "$ntp_have_solarisprivs" in
 yes)

$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
$as_echo "$ntp_have_solarisprivs" >&6; }
d17197 4
a17200 12
case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
 *yes*)

$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h

esac

case "$host" in
 *-*-darwin*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
$as_echo_n "checking for library containing res_9_init... " >&6; }
if ${ac_cv_search_res_9_init+:} false; then :
d17203 2
a17204 1
  ac_func_search_save_LIBS=$LIBS
d17214 1
a17214 1
char res_9_init ();
d17218 1
a17218 1
return res_9_init ();
d17223 4
a17226 9
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_9_init=$ac_res
d17229 2
a17230 3
    conftest$ac_exeext
  if ${ac_cv_search_res_9_init+:} false; then :
  break
d17232 6
a17237 2
done
if ${ac_cv_search_res_9_init+:} false; then :
d17239 1
a17239 11
else
  ac_cv_search_res_9_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
$as_echo "$ac_cv_search_res_9_init" >&6; }
ac_res=$ac_cv_search_res_9_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17243 3
a17245 4
    ;;
 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
$as_echo_n "checking for library containing res_init... " >&6; }
if ${ac_cv_search_res_init+:} false; then :
d17248 2
a17249 1
  ac_func_search_save_LIBS=$LIBS
d17259 1
a17259 1
char res_init ();
d17263 1
a17263 1
return res_init ();
d17268 4
a17271 9
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_init=$ac_res
d17274 2
a17275 3
    conftest$ac_exeext
  if ${ac_cv_search_res_init+:} false; then :
  break
d17277 6
a17282 2
done
if ${ac_cv_search_res_init+:} false; then :
d17284 1
a17284 11
else
  ac_cv_search_res_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
$as_echo "$ac_cv_search_res_init" >&6; }
ac_res=$ac_cv_search_res_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17288 1
a17288 3
    ;;
esac
for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
d17291 1
a17291 13
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
d17301 2
d17304 1
a17304 8
#HMS: Why do we do this check so "early"?
for ac_func in res_init
do :
  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
if test "x$ac_cv_func_res_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RES_INIT 1
_ACEOF
d17306 4
a17309 72
else
  for ac_func in __res_init
do :
  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
if test "x$ac_cv_func___res_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___RES_INIT 1
_ACEOF

fi
done

fi
done


# We also need -lsocket, but we have tested for that already.
ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
if test "x$ac_cv_func_inet_ntop" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
if test "x$ac_cv_func_inet_pton" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h

fi


ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
if test "x$ac_cv_type_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
if test "x$ac_cv_type_u_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT32 1
_ACEOF


fi




case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
$as_echo_n "checking for int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_int32_with_dns+:} false; then :
d17315 1
a17315 4
		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>
d17321 2
a17322 1
		    size_t cb = sizeof(int32);
d17328 1
d17331 1
a17331 3
  ntp_cv_type_int32_with_dns=yes
else
  ntp_cv_type_int32_with_dns=no
d17337 3
a17339 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
$as_echo "$ntp_cv_type_int32_with_dns" >&6; }
    case "$ntp_cv_type_int32_with_dns" in
d17342 1
a17342 1
$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
d17345 1
d17348 14
a17361 9
case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
$as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_u_int32_with_dns+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d17363 1
a17363 4
		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>
d17365 1
a17365 3
int
main ()
{
a17366 1
		    size_t cb = sizeof(u_int32);
d17368 5
d17374 4
a17377 3
  ;
  return 0;
}
a17378 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_type_u_int32_with_dns=yes
else
  ntp_cv_type_u_int32_with_dns=no
d17381 18
a17398 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a17400 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
    case "$ntp_cv_type_u_int32_with_dns" in
     yes)
d17402 1
a17402 1
$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
a17403 2
    esac
esac
d17405 1
a17405 1
for ac_header in sys/timepps.h
d17407 14
a17420 7
  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
	#ifdef HAVE_SYS_TIME_H
	# include <sys/time.h>
	#endif
	#ifdef HAVE_ERRNO_H
	# include <errno.h>
	#endif
d17422 11
d17435 1
a17435 1
if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
d17437 1
a17437 1
#define HAVE_SYS_TIMEPPS_H 1
d17445 3
a17447 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
$as_echo_n "checking for struct timespec... " >&6; }
if ${ntp_cv_struct_timespec+:} false; then :
a17452 10
		#include <sys/time.h>
		/* Under SunOS, timespec is in sys/timepps.h,
		   which needs errno.h and FRAC */
		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif
		#ifdef HAVE_SYS_TIMEPPS_H
		# define FRAC 4294967296
		# include <sys/timepps.h>
		#endif
d17458 1
a17458 1
		struct timespec n;
d17464 1
d17467 1
a17467 3
  ntp_cv_struct_timespec=yes
else
  ntp_cv_struct_timespec=no
d17473 3
a17475 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
$as_echo "$ntp_cv_struct_timespec" >&6; }
case "$ntp_cv_struct_timespec" in
d17477 2
d17480 1
a17480 1
$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
d17482 1
d17485 3
a17487 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
$as_echo_n "checking for struct ntptimeval... " >&6; }
if ${ntp_cv_struct_ntptimeval+:} false; then :
a17492 3
		#include <sys/time.h>
		#include <sys/timex.h>

d17496 24
d17521 24
a17544 2
		struct ntptimeval n;

d17551 1
a17551 1
  ntp_cv_struct_ntptimeval=yes
d17553 1
a17553 2
  ntp_cv_struct_ntptimeval=no

d17556 6
a17563 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
case "$ntp_cv_struct_ntptimeval" in
 yes)
d17565 13
a17577 1
$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
d17579 2
a17580 1
esac
d17582 29
a17610 6
for ac_header in md5.h
do :
  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
	#ifdef HAVE_SYS_TYPES_H
	# include <sys/types.h>
	#endif
d17612 8
d17621 3
a17623 4
"
if test "x$ac_cv_header_md5_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MD5_H 1
d17625 13
d17639 10
d17650 14
d17665 9
a17673 1
done
d17675 6
d17682 6
a17687 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
$as_echo_n "checking for library containing MD5Init... " >&6; }
if ${ac_cv_search_MD5Init+:} false; then :
  $as_echo_n "(cached) " >&6
d17689 27
a17715 3
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a17716 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char MD5Init ();
d17720 1
a17720 1
return MD5Init ();
d17725 12
a17736 9
for ac_lib in '' md5 md; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_MD5Init=$ac_res
d17738 1
a17738 39
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_MD5Init+:} false; then :
  break
fi
done
if ${ac_cv_search_MD5Init+:} false; then :

else
  ac_cv_search_MD5Init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
$as_echo "$ac_cv_search_MD5Init" >&6; }
ac_res=$ac_cv_search_MD5Init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
$as_echo_n "checking for SIGIO... " >&6; }
if ${ntp_cv_hdr_def_sigio+:} false; then :
  $as_echo_n "(cached) " >&6
d17742 4
d17747 8
a17754 5
	    #include <signal.h>

	    #ifdef SIGIO
		yes
	    #endif
d17756 3
d17760 2
a17761 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_hdr_def_sigio=yes
d17763 1
a17763 2
  ntp_cv_hdr_def_sigio=no

d17765 2
a17766 3
rm -f conftest*


a17767 78
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
$as_echo "$ntp_cv_hdr_def_sigio" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
$as_echo_n "checking if we want to use SIGIO... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigio" in
 yes)
    ans=yes
    case "$host" in
     alpha*-dec-osf4*|alpha*-dec-osf5*)
	ans=no
	;;
     *-convex-*)
	ans=no
	;;
     *-dec-*)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-univel-sysv*)
	ans=no
	;;
     *-*-irix6*)
	ans=no
	;;
     *-*-freebsd*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     m68k-*-mint*)
	ans=no
	;;
    esac
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
$as_echo_n "checking for SIGPOLL... " >&6; }
if ${ntp_cv_hdr_def_sigpoll+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <signal.h>

	    #ifdef SIGPOLL
		yes
	    #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_hdr_def_sigpoll=yes
else
  ntp_cv_hdr_def_sigpoll=no
d17769 1
d17771 9
a17779 123
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-solaris*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)
d17781 1
a17781 1
$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
d17783 5
a17787 3
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d17789 3
a17791 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
d17796 2
a17797 2

		#include <sys/time.h>
d17802 1
a17802 5

		gettimeofday(0, 0);
		settimeofday(0, 0);


d17808 1
a17808 1
  ntp_cv_func_Xettimeofday_nargs=2
d17810 1
a17810 2
  ntp_cv_func_Xettimeofday_nargs=1

a17812 1

d17814 2
a17815 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
case "$ntp_cv_func_Xettimeofday_nargs" in
 1)
d17817 2
a17818 10
$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h

esac

for ac_func in settimeofday
do :
  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
if test "x$ac_cv_func_settimeofday" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETTIMEOFDAY 1
a17820 1
else
d17822 2
a17823 51
    case "$host" in
     *-*-mpeix*) ac_cv_func_settimeofday=yes
    esac

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
ntp_warning='GRONK'
ans=none
case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
 yes*)
    ntp_warning=''
    ans='clock_settime()'
    ;;
 noyes*)
    ntp_warning='But clock_settime() would be better (if we had it)'
    ans='settimeofday()'
    ;;
 nonoyes)
    ntp_warning='Which is the worst of the three'
    ans='stime()'
    ;;
 *)
    case "$build" in
     $host)
	ntp_warning='Which leaves us with nothing to use!'
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ntp_warning" in
 '')
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
    ;;
esac


LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
LIBS=$__LIBS
{ __LIBS=; unset __LIBS;}



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
$as_echo_n "checking for deprecated --with-arlib... " >&6; }
a17824 3
# Check whether --with-arlib was given.
if test "${with_arlib+set}" = set; then :
  withval=$with_arlib; ans=$withval
a17825 2
  ans=no
fi
d17827 3
a17829 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&5
$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&2;}
    ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a17831 46
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi

d17833 2
a17835 8


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
a17836 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi
d17838 2
a17839 23
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
$as_echo_n "checking for library containing strerror... " >&6; }
if ${ac_cv_search_strerror+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strerror ();
int
main ()
{
return strerror ();
  ;
  return 0;
}
a17840 17
for ac_lib in '' cposix; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_strerror=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_strerror+:} false; then :
  break
fi
done
if ${ac_cv_search_strerror+:} false; then :
a17841 2
else
  ac_cv_search_strerror=no
d17843 9
a17851 2
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
d17853 7
a17859 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
$as_echo "$ac_cv_search_strerror" >&6; }
ac_res=$ac_cv_search_strerror
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17862 6
d17870 1
d17872 7
a17878 5
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_PERL+:} false; then :
d17881 1
a17881 19
  case $PATH_PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a17882 7
  ;;
esac
fi
PATH_PERL=$ac_cv_path_PATH_PERL
if test -n "$PATH_PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
$as_echo "$PATH_PERL" >&6; }
d17884 8
a17891 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d17894 3
a17897 27
{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
# Extract the first word of "test", so it can be a program name with args.
set dummy test; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_TEST+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_TEST in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a17898 11
  ;;
esac
fi
PATH_TEST=$ac_cv_path_PATH_TEST
if test -n "$PATH_TEST"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
$as_echo "$PATH_TEST" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d17900 3
a17903 2
{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
a17905 5
# Check whether --with-net-snmp-config was given.
if test "${with_net_snmp_config+set}" = set; then :
  withval=$with_net_snmp_config; ans=$withval
else
  ans=yes
a17906 1
fi
d17908 3
a17910 28
case "$ans" in
 no)
    ;;
 yes)
    ans=net-snmp-config
    ;;
 /*)
    ;;
 */*)
    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
    ;;
 *)
    ;;
esac
PROG_NET_SNMP_CONFIG=$ans
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
case "$PROG_NET_SNMP_CONFIG" in
 no) ;;
 /*)
    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
    ;;
 *)
    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
d17913 4
a17916 19
  case $PATH_NET_SNMP_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d17918 14
a17931 2
  ;;
esac
d17933 1
a17933 7
PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
if test -n "$PATH_NET_SNMP_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d17935 3
d17939 1
d17941 1
a17941 5
    { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
a17942 5
case "$host" in
 *-*-vxworks*)
    ac_link="$ac_link $VX_KERNEL"
    ;;
esac
d17944 3
a17946 4
# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
$as_echo_n "checking for library containing openlog... " >&6; }
if ${ac_cv_search_openlog+:} false; then :
d17949 1
a17949 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17952 4
a17955 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char openlog ();
d17959 4
a17962 1
return openlog ();
d17967 4
a17970 17
for ac_lib in '' gen syslog; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_openlog=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_openlog+:} false; then :
  break
fi
done
if ${ac_cv_search_openlog+:} false; then :
a17971 2
else
  ac_cv_search_openlog=no
d17973 1
a17973 8
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
$as_echo "$ac_cv_search_openlog" >&6; }
ac_res=$ac_cv_search_openlog
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17976 4
d17981 1
a17981 1
# XXX library list will be in ac_cv_search_openlog
d17983 1
d17985 3
a17987 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
$as_echo_n "checking for facilitynames in syslog.h... " >&6; }
if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
d17990 1
a17990 2

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17993 3
a17995 3
#define SYSLOG_NAMES
#include <stdlib.h>
#include <syslog.h>
d18000 4
a18003 1
 void *fnames; fnames = facilitynames;
d18009 1
a18009 1
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
d18011 2
a18012 1
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
d18015 63
d18079 3
a18081 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
d18084 1
a18084 1
$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
a18085 9
    ;;
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
    ;;
 cross)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
    ;;
d18090 3
a18092 12
case "$host" in
 *-*-*linux*) ;;
 *-*-osf4*) ;;
 *-*-osf5*) ;;
 *)
    # HMS: Make sure we check for -lrt for clock_* before this...
    case "$ac_cv_search_clock_gettime" in
     '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
$as_echo_n "checking for library containing sched_setscheduler... " >&6; }
if ${ac_cv_search_sched_setscheduler+:} false; then :
d18095 1
a18095 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18098 5
a18102 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_setscheduler ();
d18106 4
a18109 1
return sched_setscheduler ();
d18114 2
a18115 18
for ac_lib in '' rt posix4; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_sched_setscheduler=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_sched_setscheduler+:} false; then :
  break
fi
done
if ${ac_cv_search_sched_setscheduler+:} false; then :

d18117 1
a18117 10
  ac_cv_search_sched_setscheduler=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
$as_echo "$ac_cv_search_sched_setscheduler" >&6; }
ac_res=$ac_cv_search_sched_setscheduler
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18120 1
a18120 11

    ;;
esac

for ac_header in bstring.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
if test "x$ac_cv_header_bstring_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_BSTRING_H 1
_ACEOF
d18123 2
d18126 3
a18128 7
done

ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
if test "x$ac_cv_header_dns_sd_h" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
$as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
if ${ac_cv_search_DNSServiceRegister+:} false; then :
d18131 1
a18131 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18134 4
a18137 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char DNSServiceRegister ();
d18141 4
a18144 1
return DNSServiceRegister ();
d18149 5
a18153 9
for ac_lib in '' dns_sd; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_DNSServiceRegister=$ac_res
d18155 1
a18155 7
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_DNSServiceRegister+:} false; then :
  break
fi
done
if ${ac_cv_search_DNSServiceRegister+:} false; then :
a18156 2
else
  ac_cv_search_DNSServiceRegister=no
d18158 2
a18159 8
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
$as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
ac_res=$ac_cv_search_DNSServiceRegister
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18161 2
a18162 1
$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
d18164 1
d18166 2
a18167 1
fi
d18169 1
d18171 2
a18172 1
fi
d18174 7
d18182 1
a18182 8
for ac_header in fcntl.h ieeefp.h inttypes.h kvm.h math.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18184 3
a18186 1
fi
d18188 2
a18189 1
done
d18192 3
a18194 7
for ac_header in memory.h netdb.h poll.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18196 7
d18205 4
d18210 1
a18210 1
done
d18212 1
a18212 8
for ac_header in sgtty.h stdlib.h string.h termio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18214 7
a18220 1
fi
d18222 12
a18233 1
done
d18235 3
a18237 8
for ac_header in termios.h timepps.h timex.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18239 2
a18240 1
fi
a18241 1
done
d18243 3
a18245 9

case "$host" in
 *-*-aix*)
    for ac_header in utmpx.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
if test "x$ac_cv_header_utmpx_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMPX_H 1
d18247 4
d18253 1
d18255 5
a18259 1
done
d18261 1
a18261 11
    case "$ac_cv_header_utmpx_h" in
     yes)
	;;
     *)
	for ac_header in utmp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
if test "x$ac_cv_header_utmp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMP_H 1
_ACEOF
d18263 1
a18263 1
fi
d18265 7
a18271 1
done
d18273 9
a18281 12
	;;
    esac
    ;;
 *)
    for ac_header in utmp.h utmpx.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18283 3
a18285 1
fi
d18287 1
a18287 1
done
a18288 2
    ;;
esac
d18290 3
a18292 16
#
# On Suns only (so far) getpass() truncates the typed password to 8
# characters, but getpassphrase() allows up to 257.  Most systems'
# getpass() does not truncate, at least not so as to affect ntpq and
# ntpdc password prompts.
#
# So check for getpassphrase(), but only on Sun operating systems.
#
case "$host" in
 *-*-sunos*|*-*-solaris*)
    for ac_func in getpassphrase
do :
  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
if test "x$ac_cv_func_getpassphrase" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETPASSPHRASE 1
d18294 4
d18300 9
a18308 1
done
d18312 7
d18320 9
a18328 7
for ac_header in net/if6.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
if test "x$ac_cv_header_net_if6_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF6_H 1
_ACEOF
d18330 3
a18332 1
fi
d18334 2
a18335 1
done
a18336 6
for ac_header in net/route.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <net/if.h>
d18338 3
a18340 4
"
if test "x$ac_cv_header_net_route_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_ROUTE_H 1
d18342 4
d18348 1
d18350 3
a18352 1
done
d18354 9
d18364 9
a18372 7
for ac_header in netinfo/ni.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NETINFO_NI_H 1
_ACEOF
d18374 3
a18376 1
fi
d18378 2
a18379 1
done
a18380 2
case "$ac_cv_header_netinfo_ni_h" in
 yes)
d18382 3
a18384 10
$as_echo "#define HAVE_NETINFO 1" >>confdefs.h

esac
for ac_header in sun/audioio.h sys/audioio.h sys/file.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18386 4
d18392 1
a18392 14

done

case "$host" in
 *-*-sunos4*)
    ;;
 *)
    for ac_header in sys/ioctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_IOCTL_H 1
_ACEOF
d18395 4
d18400 1
a18400 1
done
d18402 1
a18402 1
    ;;
a18403 8
for ac_header in sys/ipc.h sys/lock.h sys/mman.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a18404 1
fi
a18405 1
done
d18407 21
a18427 9
# HMS: Check sys/proc.h and sys/resource.h after some others
for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18429 2
a18430 1
fi
a18431 1
done
d18433 3
a18435 10
case "$ac_cv_header_sched_h" in
 yes)
    ;;
 *)
    for ac_header in sys/sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SCHED_H 1
d18437 7
d18446 12
d18459 9
a18467 1
done
d18469 3
a18471 11
    ;;
esac
# HMS: Check sys/shm.h after some others
for ac_header in sys/select.h sys/signal.h sys/sockio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18473 2
a18474 1
fi
a18475 1
done
d18477 3
a18479 12
# HMS: Checked sys/socket.h earlier
case "$host" in
 *-*-netbsd*)
    ;;
 *)
    for ac_header in machine/soundcard.h sys/soundcard.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18481 4
d18487 7
d18495 1
a18495 1
done
d18497 1
a18497 1
    ;;
a18498 8
for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a18499 1
fi
a18500 1
done
d18502 10
a18511 8
for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18513 2
a18514 1
fi
d18516 3
a18518 1
done
d18520 2
a18521 10
case "$host" in
*-convex-*)
    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a18522 1
fi
d18524 3
a18526 11
done

    ;;
*-*-bsdi*)
    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18528 4
d18534 1
d18536 5
a18540 1
done
d18542 1
a18542 19
    ;;
esac

case "$host" in
 *-*-solaris2.6)
    # Broken...
    ;;
 *)
    for ac_func in ntp_adjtime ntp_gettime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done
a18543 1
    ;;
d18546 9
a18554 13
case "$host" in
 *-*-*linux*)
    case "$ac_cv_func_ntp_gettime" in
     yes)
	;;
     *)
	for ac_func in __ntp_gettime
do :
  ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
if test "x$ac_cv_func___ntp_gettime" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___NTP_GETTIME 1
_ACEOF
d18556 6
a18561 2
fi
done
d18563 3
a18565 2
	case "$ac_cv_func___ntp_gettime" in
	 yes)
d18567 2
a18568 1
$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
d18571 3
a18573 11
$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h

	esac
	;;
    esac
    for ac_func in adjtimex
do :
  ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
if test "x$ac_cv_func_adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ADJTIMEX 1
d18575 4
d18581 1
a18581 1
done
d18583 4
a18586 1
    case "$ac_cv_func_adjtimex" in
d18589 1
a18589 1
$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
d18591 2
d18594 7
a18600 1
$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
d18602 1
a18602 10
	have_adjtimex=1
	;;
     *)
	for ac_func in __adjtimex
do :
  ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
if test "x$ac_cv_func___adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___ADJTIMEX 1
_ACEOF
d18604 3
a18606 2
fi
done
d18608 2
a18609 2
	case "$ac_cv_func___adjtimex" in
	 yes)
a18610 1
$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
d18612 8
d18621 2
a18622 1
$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
d18624 5
d18630 1
a18630 1
$as_echo "#define adjtimex __adjtimex" >>confdefs.h
d18632 1
d18634 3
a18636 15
$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h

	    have_adjtimex=1
	esac
	;;
    esac
esac
case "$have_adjtimex" in
 '')
    # nlist stuff is only needed for tickadj.
    saved_LIBS="$LIBS"
    LIBS=
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
$as_echo_n "checking for library containing nlist... " >&6; }
if ${ac_cv_search_nlist+:} false; then :
d18639 1
a18639 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18642 2
a18643 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
d18647 5
a18651 1
return nlist ();
d18656 5
a18660 9
for ac_lib in '' elf ld mld; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_nlist=$ac_res
d18662 2
a18663 4
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_nlist+:} false; then :
  break
d18665 4
a18668 2
done
if ${ac_cv_search_nlist+:} false; then :
d18670 1
a18670 11
else
  ac_cv_search_nlist=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
$as_echo "$ac_cv_search_nlist" >&6; }
ac_res=$ac_cv_search_nlist
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18672 1
a18672 1
fi
d18674 3
a18676 4
    # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
$as_echo_n "checking for library containing kvm_open... " >&6; }
if ${ac_cv_search_kvm_open+:} false; then :
d18679 1
a18679 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18682 11
a18692 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char kvm_open ();
d18696 4
a18699 1
return kvm_open ();
d18704 2
a18705 18
for ac_lib in '' kvm; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_kvm_open=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_kvm_open+:} false; then :
  break
fi
done
if ${ac_cv_search_kvm_open+:} false; then :

d18707 1
a18707 10
  ac_cv_search_kvm_open=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
$as_echo "$ac_cv_search_kvm_open" >&6; }
ac_res=$ac_cv_search_kvm_open
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18710 1
a18710 9
	    # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
    for ac_header in nlist.h sys/var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18713 4
d18718 1
a18718 1
done
d18720 1
a18720 2
    case "$ac_cv_header_nlist_h" in
     yes)
d18722 3
a18724 5
$as_echo "#define NLIST_STRUCT 1" >>confdefs.h

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
$as_echo_n "checking for n_un in struct nlist... " >&6; }
if ${ntp_cv_struct_nlist_n_un+:} false; then :
d18730 2
a18731 1
			#include <nlist.h>
d18737 1
a18737 2
			struct nlist n;
			n.n_un.n_name = 0;
a18742 1
		ntp_cv_struct_nlist_n_un=yes
d18745 3
a18747 1
  ntp_cv_struct_nlist_n_un=no
d18753 4
a18756 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
	case "$ntp_cv_struct_nlist_n_un" in
	 yes)
d18758 1
a18758 1
$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
d18760 1
a18760 2
	esac
    esac
d18762 15
a18776 4
    LDADD_NLIST="$LIBS"
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
esac
a18777 9
for ac_header in sys/proc.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif
d18780 4
a18783 3
if test "x$ac_cv_header_sys_proc_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PROC_H 1
d18786 1
a18788 1
done
d18790 14
a18804 11
for ac_header in sys/resource.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif

"
if test "x$ac_cv_header_sys_resource_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_RESOURCE_H 1
d18806 2
a18807 1

d18809 2
a18810 1

a18812 17

for ac_header in sys/shm.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_IPC_H
    # include <sys/ipc.h>
    #endif

"
if test "x$ac_cv_header_sys_shm_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SHM_H 1
_ACEOF

d18814 2
d18817 14
a18830 1
done
d18833 4
a18836 6
for ac_header in sys/timex.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif
d18838 1
a18838 7
"
if test "x$ac_cv_header_sys_timex_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEX_H 1
_ACEOF

fi
a18839 1
done
d18841 1
d18843 3
a18845 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
if ${ac_cv_type_signal+:} false; then :
d18850 1
a18850 3
#include <sys/types.h>
#include <signal.h>

d18854 3
a18856 1
return *(signal (0, 0)) (0) == 1;
d18862 1
a18862 1
  ac_cv_type_signal=int
d18864 1
a18864 1
  ac_cv_type_signal=void
d18868 33
a18900 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }
d18903 1
a18903 1
#define RETSIGTYPE $ac_cv_type_signal
d18907 2
a18908 4
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
if test "x$ac_cv_type_off_t" = xyes; then :

else
d18911 1
a18911 1
#define off_t long int
d18914 1
d18917 7
a18923 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if ${ac_cv_struct_tm+:} false; then :
d18926 1
a18926 4
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>
a18927 12
int
main ()
{
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_tm=time.h
d18929 8
a18936 1
  ac_cv_struct_tm=sys/time.h
d18938 1
a18938 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d18940 4
a18943 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then
d18945 3
a18947 1
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a18948 1
fi
d18950 7
a18956 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
$as_echo_n "checking for a fallback value for HZ... " >&6; }
if ${ntp_cv_default_hz+:} false; then :
d18959 12
d18972 3
a18974 9
	ntp_cv_default_hz=100
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_default_hz=1024
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_default_hz=256
	    ;;
	esac
a18976 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
$as_echo "$ntp_cv_default_hz" >&6; }
d18979 1
a18979 1
#define DEFAULT_HZ $ntp_cv_default_hz
a18982 24
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
if ${ntp_cv_override_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_override_hz=no
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_override_hz=yes
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-freebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-sunos4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-kfreebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	esac
d18984 6
d18991 1
a18991 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
$as_echo "$ntp_cv_override_hz" >&6; }
case "$ntp_cv_override_hz" in
 yes)
d18993 3
a18995 1
$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
d18997 1
a18997 1
esac
d18999 7
d19007 1
d19009 5
a19013 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
$as_echo_n "checking for struct rt_msghdr... " >&6; }
if ${ntp_cv_struct_rt_msghdr+:} false; then :
d19018 10
d19029 4
a19032 4
		#include <sys/types.h>
		#include <sys/socket.h>
		#include <net/if.h>
		#include <net/route.h>
d19034 1
a19034 3
int
main ()
{
a19035 1
		struct rt_msghdr p;
d19037 1
a19037 9

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_rt_msghdr=yes
else
  ntp_cv_struct_rt_msghdr=no
a19039 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19040 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
d19042 12
a19053 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
$as_echo_n "checking for struct rtattr... " >&6; }
if ${ntp_cv_rtattr+:} false; then :
d19056 2
a19057 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19060 7
a19066 4
		#include <stddef.h>
		#include <sys/socket.h>
		#include <linux/rtnetlink.h>

d19070 1
a19070 4

		struct rtattr p;


d19075 18
a19092 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rtattr=yes
d19094 10
a19103 1
  ntp_cv_rtattr=no
d19106 9
a19114 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19117 1
a19117 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
$as_echo "$ntp_cv_rtattr" >&6; }
d19119 9
a19127 2
case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
 *yes*)
d19129 2
a19130 1
$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
d19132 7
a19138 2
    case "$ntp_cv_rtattr" in
     yes)
d19140 8
a19147 1
$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
d19149 1
a19149 2
    esac
esac
d19151 5
a19155 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19158 1
a19158 1
		#include <signal.h>
d19164 2
a19165 2
		struct sigaction act;
		act.sa_sigaction = 0;
d19172 2
a19173 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_sigaction_has_sa_sigaction=yes
d19175 1
a19175 1
  ntp_cv_struct_sigaction_has_sa_sigaction=no
d19178 11
a19188 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19191 1
a19191 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
 yes)
a19192 1
$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
d19194 2
a19195 1
esac
a19196 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
$as_echo_n "checking for struct ppsclockev... " >&6; }
if ${ntp_cv_struct_ppsclockev+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d19198 8
a19205 12
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TERMIOS_H
		# include <sys/termios.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_PPSCLOCK_H
		# include <sys/ppsclock.h>
		#endif
d19207 2
a19208 3
int
main ()
{
a19209 2
		extern struct ppsclockev *pce;
		return pce->serial;
d19211 3
a19213 7

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ppsclockev=yes
d19215 1
a19215 1
  ntp_cv_struct_ppsclockev=no
a19217 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19218 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
case "$ntp_cv_struct_ppsclockev" in
 yes)
d19220 21
a19240 1
$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
d19242 2
a19243 1
esac
d19245 7
a19251 5
case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
  *yes*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
$as_echo_n "checking for struct snd_size... " >&6; }
if ${ntp_cv_struct_snd_size+:} false; then :
d19253 4
a19256 2
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19259 7
a19265 7
		    #ifdef HAVE_MACHINE_SOUNDCARD_H
		    # include <machine/soundcard.h>
		    #endif
		    #ifdef HAVE_SYS_SOUNDCARD_H
		    # include <sys/soundcard.h>
		    #endif

d19269 1
a19269 5

		    extern struct snd_size *ss;
		    return ss->rec_size;


d19274 2
a19275 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_snd_size=yes
d19277 5
a19281 2
  ntp_cv_struct_snd_size=no

d19283 6
a19288 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19290 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
$as_echo "$ntp_cv_struct_snd_size" >&6; }
    case "$ntp_cv_struct_snd_size" in
     yes)
d19292 4
a19295 1
$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
d19297 8
d19306 14
d19322 3
a19324 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
$as_echo_n "checking struct clockinfo for hz... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
d19327 5
a19331 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19334 6
a19339 1
		#include <sys/time.h>
d19345 3
a19347 2
		extern struct clockinfo *pc;
		return pc->hz;
d19355 12
a19366 3
  ntp_cv_struct_clockinfo_has_hz=yes
else
  ntp_cv_struct_clockinfo_has_hz=no
d19369 16
a19384 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19387 4
a19390 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)
d19392 1
a19392 1
$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
d19394 3
d19398 2
d19401 8
a19408 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
d19411 2
a19412 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19415 7
a19421 2
		#include <sys/time.h>

d19425 1
a19425 5

		extern struct clockinfo *pc;
		return pc->tickadj;


d19430 18
a19447 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_clockinfo_has_hz=yes
d19449 1
a19449 2
  ntp_cv_struct_clockinfo_has_hz=no

d19451 2
a19452 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d19454 5
a19458 35
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)

$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h

esac

case "$ntp_cv_struct_ntptimeval" in
 yes)
    ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
	    #ifdef HAVE_SYS_TIME_H
	    # include <sys/time.h>
	    #else
	    # ifdef HAVE_TIME_H
	    #  include <time.h>
	    # endif
	    #endif
	    #ifdef HAVE_SYS_TIMEX_H
	    # include <sys/timex.h>
	    #else
	    # ifdef HAVE_TIMEX_H
	    #  include <timex.h>
	    # endif
	    #endif


"
if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
_ACEOF

d19463 1
a19463 6

####

saved_LIBS="$LIBS"
LIBS="$LIBS $LDADD_LIBNTP"
for ac_func in daemon
d19465 2
a19466 2
  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
if test "x$ac_cv_func_daemon" = xyes; then :
d19468 1
a19468 1
#define HAVE_DAEMON 1
d19474 2
a19475 3
# XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
LIBS="$saved_LIBS"
{ saved_LIBS=; unset saved_LIBS;}
d19477 1
a19477 7
for ac_func in finite
do :
  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
if test "x$ac_cv_func_finite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FINITE 1
_ACEOF
d19479 1
a19479 8
else
  for ac_func in isfinite
do :
  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
if test "x$ac_cv_func_isfinite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ISFINITE 1
_ACEOF
d19481 4
d19486 2
a19487 7

	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
$as_echo_n "checking for isfinite with <math.h>... " >&6; }
	    _libs=$LIBS
	    # XXX
	    LIBS="$LIBS -lm"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19490 7
a19496 2
			#include <math.h>

d19500 1
a19500 5

			float f = 0.0;
			isfinite(f);


d19505 18
a19522 2
if ac_fn_c_try_link "$LINENO"; then :
  ans=yes
d19524 10
a19533 1
  ans=no
a19535 8
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    LIBS=$_libs
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
	    case "$ans" in
	     yes)
		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
d19537 4
a19540 1
	    esac
d19542 1
a19544 1
done
d19546 2
d19549 1
a19549 2
fi
done
d19551 1
a19551 9

for ac_func in getbootfile getuid getrusage nanosleep strsignal
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a19553 1
done
a19555 1
# kvm_open() is only used by tickadj.  Also see above.
d19572 12
d19586 1
a19586 1
    # Just stubs.  Sigh.
d19613 2
a19614 3
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub.  Sigh.
d19617 4
a19620 1
    # Just a stub in "old" Irix.  Sigh.
a19621 4
# In the belief that the fix for bug 1223 fixes mlockall() under linux...
# *-*-*linux*)
#    # there, but more trouble than it is worth for now (resolver problems)
#    ;;
d19623 1
a19623 1
    # Apparently there but not working in QNX.  Sigh?
d19626 1
a19626 1
    # Just a stub.  Sigh.
d19667 1
a19667 1
for ac_func in nice plock pututline pututxline readlink rtprio
d19680 2
a19681 18
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub in AIX 4.  Sigh.
    ;;
 *-*-solaris2.5*)
    # Just stubs in solaris2.5.  Sigh.
    ;;
 *) for ac_func in sched_setscheduler
do :
  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_SETSCHEDULER 1
_ACEOF

fi
done

d19683 1
a19683 2
esac
for ac_func in setlinebuf setpgid setpriority setsid setvbuf
d19695 3
a19697 1
for ac_func in strdup strerror setrlimit strchr
d19710 2
a19711 3
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just stubs.  Sigh.
d19713 2
a19714 2
 *-*-netbsd1*)
    # Just stubs.  Sigh.
d19716 1
a19716 8
 *-*-netbsdelf1*)
    # Just stubs.  Sigh.
    ;;
 *-*-openbsd*)
    # Just stubs.  Sigh.
    ;;
 *)
    for ac_func in timer_create
d19718 2
a19719 2
  ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
if test "x$ac_cv_func_timer_create" = xyes; then :
d19721 1
a19721 1
#define HAVE_TIMER_CREATE 1
d19729 7
a19735 31



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
if ${ntp_cv_rlimit_memlock+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif

int
main ()
{

		getrlimit(RLIMIT_MEMLOCK, 0);


  ;
  return 0;
}
a19736 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_memlock=yes
else
  ntp_cv_rlimit_memlock=no
d19739 1
a19739 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19741 6
a19746 37
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
$as_echo "$ntp_cv_rlimit_memlock" >&6; }
case "$ntp_cv_rlimit_memlock" in
 yes)

    HAVE_RLIMIT_MEMLOCK=" memlock 32"
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
$as_echo_n "checking for RLIMIT_STACK... " >&6; }
if ${ntp_cv_rlimit_stack+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif

int
main ()
{

		getrlimit(RLIMIT_STACK, 0);


  ;
  return 0;
}
a19747 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_stack=yes
else
  ntp_cv_rlimit_stack=no
d19750 1
a19750 10
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
$as_echo "$ntp_cv_rlimit_stack" >&6; }
case "$ntp_cv_rlimit_stack" in
 yes)

    HAVE_RLIMIT_STACK=" stacksize 50"
esac
d19752 7
a19759 8

# HMS: Only if we are doing the MLOCKALL stuff...
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
$as_echo_n "checking for the default number of 4k stack pages... " >&6; }

# Check whether --with-stack-limit was given.
if test "${with_stack_limit+set}" = set; then :
  withval=$with_stack_limit; ans=$withval
a19760 1
  ans=yes
d19762 2
a19763 15
fi

case "$ans" in
 yes | no)
    case "$host" in
     *-*-openbsd*)
	ans=200
	;;
     *) ans=50
        ;;
    esac
    ;;
 [1-9][0-9]*)
    ;;
 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
d19766 2
a19767 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d19769 7
a19775 2
cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_STACK $ans
a19777 11

# HMS: only if we have RLIMIT_MEMLOCK
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }

# Check whether --with-memlock was given.
if test "${with_memlock+set}" = set; then :
  withval=$with_memlock; ans=$withval
else
  ans=yes

d19779 1
d19781 1
a19781 19
case "$ans" in
 yes | no)
    ans=32
    ;;
 [1-9][0-9]*) ;;
 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
     ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_MEMLOCK $ans
_ACEOF



# some OSes prefer _exit() in forked children to exit()
for ac_func in _exit
d19783 3
a19785 2
  ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
if test "x$ac_cv_func__exit" = xyes; then :
d19787 1
a19787 1
#define HAVE__EXIT 1
d19793 9
a19801 4
ntp_worker_child_exit=exit
case "$ac_cv_func__exit::$host_os" in
 yes::netbsd*)
    ntp_worker_child_exit=_exit
d19803 2
a19804 2
 yes::openbsd*)
    ntp_worker_child_exit=_exit
d19806 7
a19812 4
esac

cat >>confdefs.h <<_ACEOF
#define WORKER_CHILD_EXIT $ntp_worker_child_exit
d19815 2
d19818 3
a19820 1
for ac_func in umask uname updwtmp updwtmpx
d19902 48
d19994 4
d20447 1
a20447 1
	 *-*-bsdi[23]*)
d20457 1
a20457 1
	 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
d20460 1
a20460 1
	 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
d20488 241
a20728 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
if ${ntp_cv_os_routeupdates+:} false; then :
d20732 49
a20780 6
	case "$host" in
	 *-*-netbsd*)
	    ans=yes
	    ;;
	 *)
	    ans=no
d20783 1
a20783 1
	ntp_cv_os_routeupdates=$ans
d20787 3
a20789 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
$as_echo "$ntp_cv_os_routeupdates" >&6; }
case "$ntp_cv_os_routeupdates" in
d20792 1
a20792 1
$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
d20796 3
a20798 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
if ${ntp_cv_os_wildcardreuse+:} false; then :
d20802 46
a20847 5
	case "$host" in
	 *-*-*linux*)
	    ans=yes
	    ;;
	 *) ans=no
d20850 1
a20850 1
	ntp_cv_os_wildcardreuse=$ans
d20854 3
a20856 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
case "$ntp_cv_os_wildcardreuse" in
d20859 1
a20859 1
$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
d20935 19
d21010 162
d21536 1
a21536 2
case "$ntp_ok" in
 yes)
d21541 1
a21541 2
    ;;
esac
d21561 1
a21561 2
case "$ntp_ok" in
 yes)
d21566 1
a21566 2
    ;;
esac
d21705 1
a21705 2
case "$ntp_ok" in
 yes)
d21710 1
a21710 2
    ;;
esac
d21724 1
a21724 2
case "$ntp_ok" in
 yes)
d21729 1
a21729 2
    ;;
esac
d21743 1
a21743 2
case "$ntp_ok" in
 yes)
d21748 1
a21748 2
    ;;
esac
d21762 1
a21762 2
case "$ntp_ok" in
 yes)
d21767 1
a21767 2
    ;;
esac
d21784 1
a21784 2
case "$ntp_ok" in
 yes)
d21789 1
a21789 2
    ;;
esac
d21803 1
a21803 2
case "$ntp_ok" in
 yes)
d21808 1
a21808 2
    ;;
esac
d21822 1
a21822 2
case "$ntp_ok" in
 yes)
d21827 1
a21827 2
    ;;
esac
d21847 5
d21879 1
a21879 2
case "$ntp_ok" in
 yes)
d21884 1
a21884 2
    ;;
esac
d21898 1
a21898 2
case "$ntp_ok" in
 yes)
d21903 1
a21903 2
    ;;
esac
d21917 1
a21917 2
case "$ntp_ok" in
 yes)
d21922 1
a21922 2
    ;;
esac
d21937 1
a21937 2
case "$ntp_ok" in
 yes)
d21942 1
a21942 2
    ;;
esac
d21956 1
a21956 2
case "$ntp_ok" in
 yes)
d21961 1
a21961 2
    ;;
esac
d21975 1
a21975 2
case "$ntp_ok" in
 yes)
d21980 1
a21980 2
    ;;
esac
d21994 1
a21994 2
case "$ntp_ok" in
 yes)
d21999 1
a21999 2
    ;;
esac
d22018 1
a22018 2
case "$ntp_ok" in
 yes)
d22023 1
a22023 2
    ;;
esac
d22041 1
a22041 2
case "$ntp_ok" in
 yes)
d22046 1
a22046 2
    ;;
esac
d22062 1
a22062 2
case "$ntp_ok" in
 yes)
d22067 1
a22067 2
    ;;
esac
d22081 1
a22081 2
case "$ntp_ok" in
 yes)
d22086 1
a22086 2
    ;;
esac
d22100 1
a22100 2
case "$ntp_ok" in
 yes)
d22105 1
a22105 2
    ;;
esac
d22130 1
a22130 2
case "$ntp_ok" in
 yes)
d22135 1
a22135 2
    ;;
esac
d22153 1
a22153 2
case "$ntp_ok" in
 yes)
d22158 1
a22158 2
    ;;
esac
d22172 1
a22172 2
case "$ntp_ok" in
 yes)
d22177 1
a22177 2
    ;;
esac
d22194 1
a22194 2
case "$ntp_ok" in
 yes)
d22199 1
a22199 2
    ;;
esac
d22214 1
a22214 2
case "$ntp_ok" in
 yes)
d22219 1
a22219 2
    ;;
esac
d22233 1
a22233 2
case "$ntp_ok" in
 yes)
d22238 1
a22238 2
    ;;
esac
d22252 1
a22252 2
case "$ntp_ok" in
 yes)
d22257 1
a22257 2
    ;;
esac
d22275 1
a22275 2
case "$ntp_ok" in
 yes)
d22280 1
a22280 2
    ;;
esac
d22301 1
a22301 2
case "$ntp_ok" in
 yes)
d22306 1
a22306 2
    ;;
esac
d22320 1
a22320 2
case "$ntp_ok" in
 yes)
d22325 1
a22325 2
    ;;
esac
d22348 1
a22348 2
case "$ntp_ok" in
 yes)
d22353 1
a22353 2
    ;;
esac
d22361 1
d22382 1
a22382 2
case "$ntp_ok" in
 yes)
d22387 1
a22387 2
    ;;
esac
d22405 1
a22405 2
case "$ntp_ok" in
 yes)
d22410 1
a22410 2
    ;;
esac
d22424 1
a22424 2
case "$ntp_ok" in
 yes)
a22428 21
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
# Check whether --enable-TSYNCPCI was given.
if test "${enable_TSYNCPCI+set}" = set; then :
  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
else

	case "$host" in
	 *-*-*linux*)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	esac


a22429 9

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h

    ;;
esac
d22448 1
a22448 2
case "$ntp_ok" in
 yes)
d22453 1
a22453 2
    ;;
esac
d22471 1
a22471 2
case "$ntp_ok" in
 yes)
d22476 1
a22476 2
    ;;
esac
d22523 1
a22523 2
case "$ntp_ok" in
 yes)
d22529 1
a22529 2
    ;;
esac
d22547 1
a22547 2
case "$ntp_ok" in
 yes)
d22553 1
a22553 2
    ;;
esac
d22571 1
a22571 2
case "$ntp_ok" in
 yes)
d22577 1
a22577 2
    ;;
esac
d22595 1
a22595 2
case "$ntp_ok" in
 yes)
d22601 1
a22601 2
    ;;
esac
d22619 1
a22619 2
case "$ntp_ok" in
 yes)
d22627 1
a22627 2
    ;;
esac
d22673 1
a22673 2
case "$ntp_ok" in
 yes)
d22679 1
a22679 2
    ;;
esac
d22697 1
a22697 2
case "$ntp_ok" in
 yes)
d22703 1
a22703 2
    ;;
esac
d22721 1
a22721 2
case "$ntp_ok" in
 yes)
d22727 1
a22727 2
    ;;
esac
d22745 1
a22745 2
case "$ntp_ok" in
 yes)
d22751 1
a22751 2
    ;;
esac
d22769 1
a22769 2
case "$ntp_ok" in
 yes)
d22775 1
a22775 2
    ;;
esac
d22793 1
a22793 2
case "$ntp_ok" in
 yes)
a22798 24
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
$as_echo_n "checking SEL240X clock... " >&6; }
# Check whether --enable-SEL240X was given.
if test "${enable_SEL240X+set}" = set; then :
  enableval=$enable_SEL240X; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h

a22804 1
    ;;
a22830 119
ntp_pkgconfig_min_version='0.15.0'
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}

case "$PKG_CONFIG" in
 /*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	PKG_CONFIG=""
    fi
    ;;
esac



a22832 1
VER_SUFFIX=
d22835 2
a22836 7


# Check whether --with-crypto was given.
if test "${with_crypto+set}" = set; then :
  withval=$with_crypto;
fi

d22840 2
a22841 2
  withval=$with_openssl_libdir;
fi
d22843 4
a22846 5

# Check whether --with-openssl-incdir was given.
if test "${with_openssl_incdir+set}" = set; then :
  withval=$with_openssl_incdir;
fi
a22848 3
# Check whether --with-rpath was given.
if test "${with_rpath+set}" = set; then :
  withval=$with_rpath;
d22851 8
a22858 30
ntp_openssl=no
ntp_openssl_from_pkg_config=no
with_crypto=${with_crypto:-openssl,libcrypto}
case "$with_crypto" in
 yes)
    with_crypto=openssl,libcrypto
esac
case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
 no:*) ;;
 *:notempty:notgiven:notgiven)
    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
$as_echo_n "checking pkg-config for $pkg... " >&6; }
	if $PKG_CONFIG --exists $pkg ; then
	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
	    VER_SUFFIX=o
	    ntp_openssl=yes
	    ntp_openssl_from_pkg_config=yes
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

	    break
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    done
d22860 6
a22865 11
case "$with_crypto:$ntp_openssl" in
 no:*) ;;
 *:no)
    need_dash_r=
    need_dash_Wlrpath=
    case "${with_rpath-notgiven}" in
     yes)
	# Lame - what to do if we need -Wl... but not -R?
	need_dash_r=1
	;;
     notgiven)
d22867 2
a22868 22
	 *-*-linux*)
	    # This may really only be true for gcc
	    need_dash_Wlrpath=1
	    ;;
	 *-*-netbsd*)
	    need_dash_r=1
	    ;;
	 *-*-solaris*)
	    need_dash_r=1
	    ;;
	esac
	;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
$as_echo_n "checking for openssl library directory... " >&6; }
    with_openssl_libdir=${with_openssl_libdir-notgiven}
    case "$with_openssl_libdir" in
     notgiven)
	case "$build" in
	 $host)
	    with_openssl_libdir=default
d22871 2
a22872 1
	    with_openssl_libdir=no
d22875 2
a22876 9
    esac
    case "$with_openssl_libdir" in
     default)
	# Look in:
	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
    esac
    case "$with_openssl_libdir" in
d22878 2
d22881 2
a22882 14
     *) # Look for libcrypto.a and libssl.a:
	for i in $with_openssl_libdir no
	do
	    case "$host" in
	     *-*-darwin*)
		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
		;;
	     *)
		test -f $i/libcrypto.so -a -f $i/libssl.so && break
		test -f $i/libcrypto.a -a -f $i/libssl.a && break
		;;
	    esac
	done
	openssl_libdir=$i
d22885 4
a22888 8
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
$as_echo "$openssl_libdir" >&6; }
    case "$openssl_libdir" in
     no)
	openssl_libdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
    esac
d22890 1
a22890 1
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
d22892 32
a22923 9
    with_openssl_incdir=${with_openssl_incdir-notgiven}
    case "$with_openssl_incdir" in
     notgiven)
	# Look in:
	with_openssl_incdir="/usr/include /usr/sfw/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
    esac
    case "$with_openssl_incdir" in
d22925 2
d22928 2
a22929 6
     *) # look for openssl/evp.h:
	for i in $with_openssl_incdir no
	do
	    test -f $i/openssl/evp.h && break
	done
	openssl_incdir=$i
d22932 21
a22952 10
    { i=; unset i;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
$as_echo "$openssl_incdir" >&6; }
    case "$openssl_incdir" in
     no)
	openssl_incdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
    esac
    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
d22954 1
a22954 1
	ntp_openssl=no
d22956 1
a22956 2
	ntp_openssl=yes
	VER_SUFFIX=o
d22958 23
a22980 9
    case "$ntp_openssl" in
     yes)
	# We have OpenSSL inc/lib dirs - use them.
	case "$openssl_incdir" in
	 /usr/include)
	    ;;
	 *)
	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
	    ;;
d22982 1
a22982 16
	case "$openssl_libdir" in
	 /usr/lib)
	    ;;
	 *)
	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
	    case "$need_dash_r" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
	    esac
	    case "$need_dash_Wlrpath" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
	    esac
	    ;;
	esac
	LDADD_NTP="$LDADD_NTP -lcrypto"
d22984 1
a22984 6
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
$as_echo_n "checking if we will use crypto... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
$as_echo "$ntp_openssl" >&6; }
a22985 2
case "$ntp_openssl" in
 yes)
d22987 1
a22987 1
$as_echo "#define OPENSSL /**/" >>confdefs.h
a22988 5
    case "$VER_SUFFIX" in
     *o*) ;;
     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
    esac
    ;;
a22990 4
NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
NTPO_SAVED_LIBS="$LIBS"

d22992 1
a22992 1
# check for linking with -lcrypto failure, and try -lcrypto -lz.
d22995 6
a23000 5
case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
 yes:no)
    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
$as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
d23036 3
a23038 3
	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
d23074 1
a23074 1
	     LDADD_NTP="$LDADD_NTP -lz"
d23077 2
d23095 1
a23095 1
NTPO_SAVED_CFLAGS="$CFLAGS"
d23097 2
a23098 2
case "$ntp_openssl:$GCC" in
 yes:yes)
d23162 1
a23162 1
	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
d23165 1
a23165 1
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
d23168 1
a23168 1
 no:yes)
d23170 1
a23170 1
    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
a23172 8
CFLAGS="$NTPO_SAVED_CFLAGS"
CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
LIBS="$NTPO_SAVED_LIBS"
{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
d23175 6
a23180 6
# if we are using OpenSSL (--with-crypto), by default Autokey is enabled
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
# Check whether --enable-autokey was given.
if test "${enable_autokey+set}" = set; then :
  enableval=$enable_autokey; ntp_autokey=$enableval
d23182 1
a23182 1
  ntp_autokey=$ntp_openssl
d23186 2
a23187 3
case "$ntp_autokey" in
 no)
    ;;
d23189 2
a23190 7
    case "$ntp_openssl" in
     no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
	ntp_autokey=no
	;;
     *)
d23192 1
a23192 1
$as_echo "#define AUTOKEY 1" >>confdefs.h
d23194 1
a23194 3
	ntp_autokey=yes
	;;
    esac
d23197 2
a23198 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
$as_echo "$ntp_autokey" >&6; }
d23220 1
a23220 2
case "$ntp_parseutil" in
 yes)
d23225 1
a23225 1
	TESTDCF=testdcf
d23227 1
a23227 2
    ;;
esac
d23273 1
a23273 2
case "$ntp_refclock" in
 yes)
d23277 1
a23277 2
    ;;
esac
a23280 2
PROPDELAY=propdelay

d23292 1
a23292 2
case "$ans" in
 yes)
d23297 1
a23297 7
    ;;
 *) ADJTIMED_DB=
    ADJTIMED_DL=
    ADJTIMED_DS=
    ADJTIMED_MS=
    ;;
esac
d23310 1
a23310 2
case "$ans" in
 yes)
d23314 1
a23314 2
    ;;
esac
a23327 1
    ;;
d23392 1
a23392 2
 *-ibm-aix[4-9]*)
    # XXX only verified thru AIX6.
a23407 1
    ;;
d23451 1
a23451 2
	 *-ibm-aix[3-9]*)
	    # XXX only verified thru AIX6.
a23791 1
	;;
a23797 1
	;;
a23803 1
	;;
a23819 1
    ;;
a23921 6
 *)
    NTPTIME_DB=
    NTPTIME_DL=
    NTPTIME_DS=
    NTPTIME_MS=
    ;;
a23970 11
    ;;
 *)
    CALC_TICKADJ_DB=
    CALC_TICKADJ_DL=
    CALC_TICKADJ_DS=
    CALC_TICKADJ_MS=
    TICKADJ_DB=
    TICKADJ_DL=
    TICKADJ_DS=
    TICKADJ_MS=
    ;;
a23998 6
    ;;
 *) TIMETRIM_DB=
    TIMETRIM_DL=
    TIMETRIM_DS=
    TIMETRIM_MS=
    ;;
a24019 7
    ;;
 *)
    NTPDSIM_DB=
    NTPDSIM_DL=
    NTPDSIM_DS=
    NTPDSIM_MS=
    ;;
a24033 34

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
$as_echo_n "checking if sntp will be built... " >&6; }

# Check whether --with-sntp was given.
if test "${with_sntp+set}" = set; then :
  withval=$with_sntp;
else
  with_sntp="${withsntp=yes}"

fi

case "$with_sntp" in
 no)
    SNTP=
    ;;
 *)
    SNTP=sntp
    ;;
esac

 if test -n "$SNTP"; then
  BUILD_SNTP_TRUE=
  BUILD_SNTP_FALSE='#'
else
  BUILD_SNTP_TRUE='#'
  BUILD_SNTP_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
$as_echo "$with_sntp" >&6; }



a24144 1
	{ save_CFLAGS=; unset save_CFLAGS;}
a24145 1
	{ save_CPPFLAGS=; unset save_CPPFLAGS;}
a24146 1
	{ save_LIBS=; unset save_LIBS;}
a24156 8
case "$MAKE_NTPSNMPD" in
 '')
    NTPSNMPD_DB=
    NTPSNMPD_DL=
    NTPSNMPD_DS=
    NTPSNMPD_MS=
    ;;
esac
a24249 1
    ;;
a24281 1
    ;;
a24323 1
	;;
a24343 1
	;;
a24347 1
    ;;
a24398 1
    ;;
d24418 1
d24441 1
a24479 1
    ;;
d24482 2
a24483 1
for ac_header in libscf.h
d24485 2
a24486 2
  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
if test "x$ac_cv_header_libscf_h" = xyes; then :
d24488 1
a24488 1
#define HAVE_LIBSCF_H 1
d24495 7
a24501 4
LSCF=
case "$ac_cv_header_libscf_h" in
 yes)
    LSCF='-lscf'
d24504 3
a24506 7



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
if ${ntp_cv_sockaddr_storage+:} false; then :
  $as_echo_n "(cached) " >&6
d24508 1
a24508 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24510 1
a24510 9
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif
a24511 3
int
main ()
{
d24513 4
a24516 1
		struct sockaddr_storage n;
d24519 7
a24525 3
  ;
  return 0;
}
a24526 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_sockaddr_storage=yes
else
  ntp_cv_sockaddr_storage=no
a24528 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24530 1
a24530 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
$as_echo "$ntp_cv_sockaddr_storage" >&6; }
case "$ntp_cv_sockaddr_storage" in
 yes)
a24531 1
$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
d24533 2
a24534 45
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
if ${ntp_cv_have___ss_family+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_SYS_TYPES_H
		    # include <sys/types.h>
		    #endif
		    #ifdef HAVE_SYS_SOCKET_H
		    # include <sys/socket.h>
		    #endif
		    #ifdef HAVE_NETINET_IN_H
		    # include <netinet/in.h>
		    #endif

int
main ()
{

		    struct sockaddr_storage s;
		    s.__ss_family = 1;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have___ss_family=yes
else
  ntp_cv_have___ss_family=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
$as_echo "$ntp_cv_have___ss_family" >&6; }
    case "$ntp_cv_have___ss_family" in
     yes)

$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
d24536 8
d24545 4
a24548 1

d24551 3
d24555 1
a24555 10
#
# Look for in_port_t.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
$as_echo_n "checking for in_port_t... " >&6; }
if ${isc_cv_have_in_port_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a24556 2
		#include <sys/types.h>
		#include <netinet/in.h>
d24558 2
a24559 3
int
main ()
{
d24561 2
a24562 2
		in_port_t port = 25;
		return (0);
d24564 1
d24566 2
a24567 11
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_in_port_t=yes
else
  isc_cv_have_in_port_t=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24569 2
a24570 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
$as_echo "$isc_cv_have_in_port_t" >&6; }
case "$isc_cv_have_in_port_t" in
 no)
d24572 1
a24572 1
$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
a24575 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
if ${ntp_cv_getsockname_socklen_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
d24577 9
a24585 5
    getsockname_socklen_type_found=no
    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24587 1
a24587 6
			#ifdef HAVE_SYS_TYPES_H
			# include <sys/types.h>
			#endif
			#ifdef HAVE_SYS_SOCKET_H
			# include <sys/socket.h>
			#endif
d24589 5
a24593 3
int
main ()
{
a24594 3
			extern
			getsockname(int, $getsockname_arg2,
				$ntp_cv_getsockname_socklen_type *);
d24596 5
a24601 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  getsockname_socklen_type_found=yes ; break 2
a24602 9
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	done
    done
    case "$getsockname_socklen_type_found" in
     no)
	ntp_cv_getsockname_socklen_type='socklen_t'
    esac
    { getsockname_arg2=; unset getsockname_arg2;}
    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
d24604 2
d24607 1
a24607 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
d24609 1
a24609 3
cat >>confdefs.h <<_ACEOF
#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
_ACEOF
d24902 1
a24902 1
if ${isc_cv_in6addr_any_links+:} false; then :
d24905 2
d24908 5
a24912 9
	SAVED_LIBS="$LIBS"
	LIBS="$LDADD_LIBNTP $LIBS"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack
d24918 2
a24919 1
		    printf("%x", in6addr_any.s6_addr[15]);
d24927 1
a24927 1
  isc_cv_in6addr_any_links=yes
d24929 1
a24929 1
  isc_cv_in6addr_any_links=no
a24933 3
	LIBS="$SAVED_LIBS"
	{ SAVED_LIBS=; unset SAVED_LIBS;}

d24936 2
a24937 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
$as_echo "$isc_cv_in6addr_any_links" >&6; }
d24939 1
a24939 1
case "$isc_cv_in6addr_any_links" in
d25006 6
a25011 178
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_struct_if_laddrreq=yes
else
  isc_cv_struct_if_laddrreq=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
$as_echo "$isc_cv_struct_if_laddrreq" >&6; }

case "$isc_cv_struct_if_laddrreq" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
$as_echo_n "checking for multicast IP support... " >&6; }
if ${ntp_cv_multicast+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_multicast=no
	case "$host" in
	 i386-sequent-sysv4)
	    ;;
	 *)
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#ifdef HAVE_NETINET_IN_H
			# include <netinet/in.h>
			#endif

int
main ()
{

			struct ip_mreq ipmr;
			ipmr.imr_interface.s_addr = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_multicast=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
$as_echo "$ntp_cv_multicast" >&6; }
case "$ntp_cv_multicast" in
 yes)

$as_echo "#define MCAST 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    case "$host" in
	     *-*-netbsd*|*-*-*linux*)
		ntp_cv_typeof_ip_multicast_loop=u_int
		;;
	     *)
		ntp_cv_typeof_ip_multicast_loop=u_char
		;;
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }

cat >>confdefs.h <<_ACEOF
#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
_ACEOF

esac

# Check whether --enable-getifaddrs was given.
if test "${enable_getifaddrs+set}" = set; then :
  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
else
  want_getifaddrs="yes"

fi


case $want_getifaddrs in
 glibc)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
esac
case $want_getifaddrs in
 no)
    ;;
 *)
    SAVED_LIBS="$LIBS"
    LIBS="$LDADD_LIBNTP $LIBS"
    for ac_func in getifaddrs
do :
  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF

fi
done

    LIBS="$SAVED_LIBS"
    { SAVED_LIBS=; unset SAVED_LIBS;}
    ;;
esac

#
# Check for if_nametoindex() for IPv6 scoped addresses support
#
case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
$as_echo_n "checking for library containing if_nametoindex... " >&6; }
if ${ac_cv_search_if_nametoindex+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char if_nametoindex ();
int
main ()
{
return if_nametoindex ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' ipv6; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_if_nametoindex=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_if_nametoindex+:} false; then :
  break
fi
done
if ${ac_cv_search_if_nametoindex+:} false; then :

d25013 1
a25013 10
  ac_cv_search_if_nametoindex=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
$as_echo "$ac_cv_search_if_nametoindex" >&6; }
ac_res=$ac_cv_search_if_nametoindex
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d25016 1
a25016 11

esac
SAVED_LIBS="$LIBS"
LIBS="$LDADD_LIBNTP $LIBS"
for ac_func in if_nametoindex
do :
  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
if test "x$ac_cv_func_if_nametoindex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_IF_NAMETOINDEX 1
_ACEOF
d25019 2
a25020 1
done
d25022 1
a25022 3
LIBS="$SAVED_LIBS"
{ SAVED_LIBS=; unset SAVED_LIBS;}
case "$ac_cv_func_if_nametoindex" in
d25025 1
a25025 1
$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
a25028 3



d25081 1
a25081 2
case "$ntp_ok" in
 yes)
d25086 1
a25086 2
    ;;
esac
a25097 100

gta=false

# Check whether --with-gtest was given.
if test "${with_gtest+set}" = set; then :
  withval=$with_gtest; try_gtest=$withval
else
  try_gtest=yes

fi

case "$try_gtest" in
 yes)
    # Extract the first word of "gtest-config", so it can be a program name with args.
set dummy gtest-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_GTEST_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $GTEST_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
if test -n "$GTEST_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
$as_echo "$GTEST_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
    case x${GTEST_CONFIG} in
     x) ;;
     *)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
$as_echo_n "checking gtest version... " >&6; }
	gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
	case "$gtest_version_test" in
	 toolow*)
	    ;;
	 *)
	    GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
	    GTEST_LIBS=`$GTEST_CONFIG --libs`
	    GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
	    GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`




	    gta=true
	    ;;
	esac
	gtest_version=`$GTEST_CONFIG --version`
	case "$gta" in
	 true)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
$as_echo "($gtest_version) ok" >&6; }
	    ;;
	 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
$as_echo "($gtest_version) not ok" >&6; }
	    ;;
	esac
	{ gtest_version_test=; unset gtest_version_test;}
	{ gtest_version=; unset gtest_version;}
    esac
esac
 if $gta; then
  GTEST_AVAILABLE_TRUE=
  GTEST_AVAILABLE_FALSE='#'
else
  GTEST_AVAILABLE_TRUE='#'
  GTEST_AVAILABLE_FALSE=
fi




d25101 5
a25105 8
  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$sysconfdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  NTP_KEYSDIR="$ac_define_dir"

d25108 1
a25108 1
#define NTP_KEYSDIR "$ac_define_dir"
a25110 2
  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE
d25115 2
a25134 2
ac_config_files="$ac_config_files ntpd/complete.conf"

d25149 1
a25149 5
ac_config_files="$ac_config_files scripts/lib/Makefile"

ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"

ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
d25151 1
a25151 1
ac_config_files="$ac_config_files scripts/build/mkver"
d25153 1
a25153 1
ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
d25155 1
a25155 1
ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
d25157 1
a25157 1
ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
d25159 1
a25159 1
ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
d25161 1
a25161 1
ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
d25163 1
a25163 1
ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
a25170 8
ac_config_files="$ac_config_files scripts/build/Makefile"

ac_config_files="$ac_config_files tests/Makefile"

ac_config_files="$ac_config_files tests/libntp/Makefile"

ac_config_files="$ac_config_files tests/ntpd/Makefile"

a25173 32
perllibdir="${datadir}/ntp/lib"

  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$perllibdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  PERLLIBDIR="$ac_define_dir"


cat >>confdefs.h <<_ACEOF
#define PERLLIBDIR "$ac_define_dir"
_ACEOF

  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE


calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"

ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"

ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"

ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"

summary_opts="$srcdir/scripts/summary-opts"

plot_summary_opts="$srcdir/scripts/plot_summary-opts"


a25307 5

if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a25311 4
if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d25324 2
a25325 6
if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
  as_fn_error $? "conditional \"PTHREADS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
d25328 1
a25332 4
if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
  as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d25742 1
a25742 1
This file was extended by ntp $as_me 4.2.7p404, which was
d25802 1
a25802 2
Report bugs to <http://bugs.ntp.org./>.
ntp home page: <http://www.ntp.org./>."
d25808 1
a25808 1
ntp config.status 4.2.7p404
a26066 55
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d26145 1
a26145 33
striplib \
compiler_lib_search_dirs \
predep_objects \
postdep_objects \
predeps \
postdeps \
compiler_lib_search_path \
LD_CXX \
reload_flag_CXX \
compiler_CXX \
lt_prog_compiler_no_builtin_flag_CXX \
lt_prog_compiler_pic_CXX \
lt_prog_compiler_wl_CXX \
lt_prog_compiler_static_CXX \
lt_cv_prog_compiler_c_o_CXX \
export_dynamic_flag_spec_CXX \
whole_archive_flag_spec_CXX \
compiler_needs_object_CXX \
with_gnu_ld_CXX \
allow_undefined_flag_CXX \
no_undefined_flag_CXX \
hardcode_libdir_flag_spec_CXX \
hardcode_libdir_flag_spec_ld_CXX \
hardcode_libdir_separator_CXX \
exclude_expsyms_CXX \
include_expsyms_CXX \
file_list_spec_CXX \
compiler_lib_search_dirs_CXX \
predep_objects_CXX \
postdep_objects_CXX \
predeps_CXX \
postdeps_CXX \
compiler_lib_search_path_CXX; do
d26175 1
a26175 12
sys_lib_dlsearch_path_spec \
reload_cmds_CXX \
old_archive_cmds_CXX \
old_archive_from_new_cmds_CXX \
old_archive_from_expsyms_cmds_CXX \
archive_cmds_CXX \
archive_expsym_cmds_CXX \
module_cmds_CXX \
module_expsym_cmds_CXX \
export_symbols_cmds_CXX \
prelink_cmds_CXX \
postlink_cmds_CXX; do
a26205 2


d26218 1
a26227 1
    "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
d26235 8
a26242 10
    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
    "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
    "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
    "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
    "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
a26245 4
    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
    "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
    "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
d26295 1
a26295 18
if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  ac_cs_awk_getline=:
  ac_cs_awk_pipe_init=
  ac_cs_awk_read_file='
      while ((getline aline < (F[key])) > 0)
	print(aline)
      close(F[key])'
  ac_cs_awk_pipe_fini=
else
  ac_cs_awk_getline=false
  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  ac_cs_awk_read_file='
      print "|#_!!_#|"
      print "cat " F[key] " &&"
      '$ac_cs_awk_pipe_init
  # The final `:' finishes the AND list.
  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
fi
a26312 11
# Create commands to substitute file output variables.
{
  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  echo "_ACAWK" &&
  echo "_ACEOF"
} >conf$$files.sh &&
. ./conf$$files.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
rm -f conf$$files.sh
d26389 1
a26389 1
  \$ac_cs_awk_pipe_init
d26407 1
a26407 7
  if (nfields == 3 && !substed) {
    key = field[2]
    if (F[key] != "" && line ~ /^[	 ]*@@.*@@[	 ]*$/) {
      \$ac_cs_awk_read_file
      next
    }
  }
d26410 1
a26410 1
\$ac_cs_awk_pipe_fini
d26757 1
a26757 6
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
if $ac_cs_awk_getline; then
  $AWK -f "$ac_tmp/subs.awk"
else
  $AWK -f "$ac_tmp/subs.awk" | $SHELL
fi \
d26987 1
a26987 1
available_tags="CXX "
a27374 14
# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects
postdep_objects=$lt_postdep_objects
predeps=$lt_predeps
postdeps=$lt_postdeps

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path

a27566 157

    cat <<_LT_EOF >> "$ofile"

# ### BEGIN LIBTOOL TAG CONFIG: CXX

# The linker used to build libraries.
LD=$lt_LD_CXX

# How to create reloadable object files.
reload_flag=$lt_reload_flag_CXX
reload_cmds=$lt_reload_cmds_CXX

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds_CXX

# A language specific compiler.
CC=$lt_compiler_CXX

# Is the compiler the GNU compiler?
with_gcc=$GCC_CXX

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object_CXX

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld_CXX

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute_CXX

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic_CXX

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath_CXX

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds_CXX

# Commands necessary for finishing linking programs.
postlink_cmds=$lt_postlink_cmds_CXX

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec_CXX

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects_CXX
postdep_objects=$lt_postdep_objects_CXX
predeps=$lt_predeps_CXX
postdeps=$lt_postdeps_CXX

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX

# ### END LIBTOOL TAG CONFIG: CXX
_LT_EOF

a27567 1
    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
d27569 8
a27576 5
    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
    "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
    "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
    "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
    "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
@


1.1.1.3
log
@import devel ntpd to avoid amplification attacks.
@
text
@d3 1
a3 3
# Generated by GNU Autoconf 2.68 for ntp 4.2.7p404.
#
# Report bugs to <http://bugs.ntp.org./>.
d247 4
a250 5
    $as_echo "$0: Please tell bug-autoconf@@gnu.org and
$0: http://bugs.ntp.org./ about your system, including any
$0: error possibly output before this message. Then install
$0: a modern shell, or manually run the script under such a
$0: shell if you do have one."
d570 4
a573 4
PACKAGE_VERSION='4.2.7p404'
PACKAGE_STRING='ntp 4.2.7p404'
PACKAGE_BUGREPORT='http://bugs.ntp.org./'
PACKAGE_URL='http://www.ntp.org./'
a610 1
ac_header_list=
d615 1
a616 9
PERLLIBDIR
NTP_KEYSDIR
GTEST_AVAILABLE_FALSE
GTEST_AVAILABLE_TRUE
GTEST_CPPFLAGS
GTEST_CXXFLAGS
GTEST_LIBS
GTEST_LDFLAGS
GTEST_CONFIG
a623 3
BUILD_SNTP_FALSE
BUILD_SNTP_TRUE
SNTP
d630 1
d637 6
a642 2
VER_SUFFIX
PKG_CONFIG
d647 2
a648 3
HAVE_RLIMIT_STACK
HAVE_RLIMIT_MEMLOCK
LDADD_NLIST
a649 1
CONFIG_SHELL
d651 1
a652 22
LIBOBJS
PTHREADS_FALSE
PTHREADS_TRUE
LIBISC_PTHREADS_NOTHREADS
PTHREAD_LIBS
HAVE_INLINE
ALLOCA
LIBM
EDITLINE_LIBS
LDADD_LIBNTP
NTP_CROSSCOMPILE_FALSE
NTP_CROSSCOMPILE_TRUE
LIBOPTS_DIR
LIBOPTS_CFLAGS
LIBOPTS_LDADD
NEED_LIBOPTS_FALSE
NEED_LIBOPTS_TRUE
INSTALL_LIBOPTS_FALSE
INSTALL_LIBOPTS_TRUE
POSIX_SHELL
LIBTOOL_DEPS
CXXCPP
d670 14
a684 60
LIBTOOL
TIMETRIM_MS
TIMETRIM_DS
TIMETRIM_DL
TIMETRIM_DB
TICKADJ_MS
TICKADJ_DS
TICKADJ_DL
TICKADJ_DB
SNTP_MS
SNTP_DS
SNTP_DL
SNTP_DB
NTP_WAIT_MS
NTP_WAIT_DS
NTP_WAIT_DL
NTP_WAIT_DB
NTP_KEYGEN_MS
NTP_KEYGEN_DS
NTP_KEYGEN_DL
NTP_KEYGEN_DB
NTPTRACE_MS
NTPTRACE_DS
NTPTRACE_DL
NTPTRACE_DB
NTPTIME_MS
NTPTIME_DS
NTPTIME_DL
NTPTIME_DB
NTPSNMPD_MS
NTPSNMPD_DS
NTPSNMPD_DL
NTPSNMPD_DB
NTPQ_MS
NTPQ_DS
NTPQ_DL
NTPQ_DB
NTPD_MS
NTPD_DS
NTPD_DL
NTPD_DB
NTPDSIM_MS
NTPDSIM_DS
NTPDSIM_DL
NTPDSIM_DB
NTPDC_MS
NTPDC_DS
NTPDC_DL
NTPDC_DB
NTPDATE_MS
NTPDATE_DS
NTPDATE_DL
NTPDATE_DB
MANTAGFMT
CALC_TICKADJ_MS
CALC_TICKADJ_DS
CALC_TICKADJ_DL
CALC_TICKADJ_DB
WANT_CALC_TICKADJ_MS_FALSE
WANT_CALC_TICKADJ_MS_TRUE
a688 10
am__fastdepCXX_FALSE
am__fastdepCXX_TRUE
CXXDEPMODE
ac_ct_CXX
CXXFLAGS
CXX
LDFLAGS_NTP
LDADD_NTP
CPPFLAGS_NTP
CFLAGS_NTP
a715 2
AM_BACKSLASH
AM_DEFAULT_VERBOSITY
d777 1
a777 6
ac_subst_files='calc_tickadj_opts
ntp_wait_opts
ntpsweep_opts
ntptrace_opts
summary_opts
plot_summary_opts'
a779 1
enable_silent_rules
a780 1
with_locfile
d782 6
d794 1
a794 5
enable_nls
enable_local_libopts
enable_libopts_install
with_autoopts_config
enable_local_libevent
d796 1
a797 10
enable_thread_support
with_threads
enable_c99_snprintf
enable_clockctl
enable_linuxcaps
enable_solarisprivs
with_arlib
with_net_snmp_config
with_stack_limit
with_memlock
d801 1
a838 1
enable_TSYNCPCI
a852 2
enable_SEL240X
with_crypto
d855 2
a856 2
with_rpath
enable_autokey
a861 1
with_sntp
d872 2
a875 1
enable_getifaddrs
a876 1
with_gtest
a886 3
CXX
CXXFLAGS
CCC
d888 1
a888 2
YFLAGS
CXXCPP'
d1431 1
a1431 1
\`configure' configures ntp 4.2.7p404 to adapt to many kinds of systems.
d1501 1
a1501 1
     short | recursive ) echo "Configuration of ntp 4.2.7p404:";;
d1505 1
a1505 1
Optional Features and Packages:
a1508 4
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --enable-silent-rules          less verbose build output (undo: `make V=1')
  --disable-silent-rules         verbose build output (undo: `make V=0')
a1510 1
  --with-locfile=XXX      os-specific or "legacy"
d1512 3
a1515 2
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
a1517 3
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
d1519 3
a1521 8
  --disable-nls           disable nls support in libopts
  --enable-local-libopts  Use the supplied libopts tearoff code
  --enable-libopts-install
                          Install libopts with client installation
  --with-autoopts-config  specify the config-info script
  --enable-local-libevent Force using the supplied libevent tearoff code
  --with-lineeditlibs     edit,editline (readline may be specified if desired)
  defaults:               + yes, - no, s system-specific
a1522 10
  --enable-thread-support s use threads (+ if available)
  --with-threads	  with threads [auto]
  --enable-c99-snprintf   s force replacement
  --enable-clockctl       s Use /dev/clockctl for non-root clock control
  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
  --with-arlib            - deprecated, arlib not distributed
  --with-net-snmp-config  + =net-snmp-config
  --with-stack-limit      ? =50 (200 for openbsd) 4k pages
  --with-memlock          ? =32 (megabytes)
d1525 1
a1525 1
  --enable-dst-minutes    =60 minutes per DST adjustment
d1528 2
a1566 1
  --enable-TSYNCPCI       s Spectracom TSYNC timing board
a1580 10
  --enable-SEL240X        s SEL240X clock
  --with-crypto           + =openssl,libcrypto

  --with-openssl-libdir   + =/something/reasonable

  --with-openssl-incdir   + =/something/reasonable

  --without-rpath         s Disable auto-added -R linker paths

  --enable-autokey        + support NTP Autokey protocol
a1586 2
  --without-sntp          - disable building sntp and sntp/tests
  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
d1598 2
d1602 21
a1623 3
  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
  --enable-saveconfig     + saveconfig mechanism
  --with-gtest            Use the gtest framework (Default: if it's available)
a1633 2
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
a1639 1
  CXXCPP      C++ preprocessor
d1644 1
a1644 2
Report bugs to <http://bugs.ntp.org./>.
ntp home page: <http://www.ntp.org./>.
d1707 1
a1707 1
ntp configure 4.2.7p404
a1865 4
( $as_echo "## ------------------------------------ ##
## Report this to http://bugs.ntp.org./ ##
## ------------------------------------ ##"
     ) | sed "s/^/$as_me: WARNING:     /" >&2
d2002 5
a2006 42
# ac_fn_cxx_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_compile

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
d2014 14
d2030 1
a2030 31
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

d2034 2
a2035 1
return $2 ();
d2040 3
a2042 1
if ac_fn_c_try_link "$LINENO"; then :
a2043 2
else
  eval "$3=no"
d2045 3
a2047 2
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d2054 1
a2054 1
} # ac_fn_c_check_func
d2056 6
a2061 4
# ac_fn_cxx_try_cpp LINENO
# ------------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_cpp ()
d2064 10
a2073 23
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
d2075 15
a2089 4
    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval
d2091 3
a2093 140
} # ac_fn_cxx_try_cpp

# ac_fn_cxx_try_link LINENO
# -------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_link

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_type

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
d2234 4
a2237 5
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
# ---------------------------------------------
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
# accordingly.
ac_fn_c_check_decl ()
d2240 2
a2241 4
  as_decl_name=`echo $2|sed 's/ *(.*//'`
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d2247 20
a2266 5
$4
int
main ()
{
#ifndef $as_decl_name
d2268 1
a2268 3
  (void) $as_decl_use;
#else
  (void) $as_decl_name;
d2270 6
d2278 4
d2286 1
a2286 1
if ac_fn_c_try_compile "$LINENO"; then :
d2291 2
a2292 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d2299 1
a2299 1
} # ac_fn_c_check_decl
d2361 1
a2361 1
It was created by ntp $as_me 4.2.7p404, which was
a2640 1
as_fn_append ac_header_list " stdarg.h"
d2711 1
a2711 1
for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
d2727 1
a2727 1
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
d2740 3
a2742 7




# Bump ntp_configure_cache_version for each change to configure.ac or
# .m4 files which invalidates cached values from previous configure
# runs.
d2752 2
a2753 2
# please bump the version numbers of each.  If you are not sure, the
# safe choice is to bump all on any cache-invalidating change.
d2760 1
a2760 1
ntp_configure_cache_version=20120806
a2797 1
		;;
a2802 1
	;;
d2839 1
a2839 1
	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
d3301 1
a3301 1
 VERSION='4.2.7p404'
a3340 14

# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in
yes) AM_DEFAULT_VERBOSITY=0;;
no)  AM_DEFAULT_VERBOSITY=1;;
*)   AM_DEFAULT_VERBOSITY=0;;
esac
AM_BACKSLASH='\'


a4803 2


a4823 8
        case "$host_os" in
    hpux*)

$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h

      ;;
  esac

d4833 2
a4834 2
#         define __EXTENSIONS__ 1
          $ac_includes_default
d4864 24
a4887 3
if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
d4889 1
a4889 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
a4890 7
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a4891 3
int
main ()
{
d4893 13
a4905 193
  ;
  return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
else
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi






ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d5570 6
a5575 12
# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
if test "$am_t" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
d5577 3
a5579 6


if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
a5581 1
    ac_pattern="Autoconf.*'x'"
a5583 10
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
else
  ac_cv_prog_gcc_traditional=no
fi
rm -f conftest*
d5585 3
d5589 3
a5591 5
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
d5593 73
a5665 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5667 1
a5667 1
rm -f conftest*
a5668 7
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d5670 6
d5677 1
d5679 1
d5681 13
a5694 4
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d5696 13
a5708 16




case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d5711 12
d5725 8
a5733 10
int
main ()
{
#warning foo
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cpp_warning=yes
d5735 2
a5736 2
  ntp_cv_cpp_warning=no

d5738 1
a5738 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5740 2
a5741 15
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
  $as_echo_n "(cached) " >&6
else
d5744 1
a5744 9

int
main ()
{
void foo(void) __attribute__((__noreturn__));

  ;
  return 0;
}
d5746 3
a5748 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cc_attribute=yes
d5750 3
a5752 2
  ntp_cv_cc_attribute=no

d5754 1
a5754 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5756 5
a5761 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)
d5763 2
a5764 1
$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
d5766 2
a5767 11
esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
d5769 13
d5784 8
d5793 5
a5797 3
int
main ()
{
d5799 5
a5803 3
  ;
  return 0;
}
d5805 3
a5807 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Wstrict_overflow=yes
d5809 3
a5811 2
  ntp_cv_gcc_Wstrict_overflow=no

d5813 1
a5813 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5815 10
d5826 14
a5839 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
d5842 34
d5877 18
a5894 1
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5896 93
d5994 35
d6033 5
a6037 5
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

d6039 5
a6043 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d6046 19
a6064 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
d6067 26
d6094 8
a6101 4
	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6103 4
a6106 2
			#include <stdlib.h>
			#include <stdio.h>
d6108 6
d6117 1
a6117 23

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


d6122 12
a6133 8
if ac_fn_c_try_link "$LINENO"; then :

		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d6135 16
d6152 2
a6153 1
  ntp_cv_gc_sections_runs=no
d6156 20
a6175 4
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    CFLAGS="$origCFLAGS"
	    { origCFLAGS=; unset origCFLAGS;}
d6177 7
d6185 9
a6193 10
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
$as_echo "$ntp_cv_gc_sections_runs" >&6; }
    case "$ntp_cv_gc_sections_runs" in
     yes)
	LDADD_LIBNTP="-Wl,--gc-sections"
	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
	;;
     no)
	LDADD_LIBNTP=
d6196 14
a6209 21
    CFLAGS_NTP="$CFLAGS_NTP -Wall"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
    case "$ntp_cv_gcc_Winit_self" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
    esac
    case "$ntp_cv_gcc_Wstrict_overflow" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
    esac
    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
d6220 1
a6220 1
	ntp_os_cflags=
a6233 2
	    # XXX Only verified thru AIX6.
	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
d6235 1
a6235 4
	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
d6304 1
a6305 1
    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
d6311 3
a6313 4

 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :
a6315 8
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;
d6317 19
a6336 1
if ac_fn_c_try_compile "$LINENO"; then :
d6338 25
a6362 21
	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
a6363 7
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>
a6364 8
int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif
d6366 21
a6386 3
  ;
  return 0;
}
d6388 14
a6401 3
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6404 1
a6404 1
		#include <sys/param.h>
d6409 2
a6410 4
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

d6416 1
a6416 1
  ac_cv_c_bigendian=yes
d6418 1
a6418 1
  ac_cv_c_bigendian=no
d6422 21
a6442 5
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6443 1
#include <limits.h>
d6445 7
d6455 1
a6455 4
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

d6460 40
a6499 3
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6500 1
#include <limits.h>
d6502 7
d6512 1
a6512 4
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

d6517 18
a6534 2
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
d6536 1
a6536 1
  ac_cv_c_bigendian=no
d6538 9
a6546 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6547 23
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;
a6548 20
int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
a6549 8
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
a6550 8
	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;
d6552 15
a6566 3
  ;
  return 0;
}
a6567 8
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a6568 1
    fi
a6569 9
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)
d6571 1
a6571 1
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
a6572 5
     ;; #(
   *)
     as_fn_error $? "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac
d6574 9
a6582 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
$as_echo_n "checking for working volatile... " >&6; }
if ${ac_cv_c_volatile+:} false; then :
  $as_echo_n "(cached) " >&6
d6584 4
a6587 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a6588 3
int
main ()
{
d6590 7
a6596 6
volatile int x;
int * volatile y = (int *) 0;
return !x && !y;
  ;
  return 0;
}
d6598 1
a6598 2
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_volatile=yes
d6600 1
a6600 3
  ac_cv_c_volatile=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6601 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
$as_echo "$ac_cv_c_volatile" >&6; }
if test $ac_cv_c_volatile = no; then
d6603 1
a6603 1
$as_echo "#define volatile /**/" >>confdefs.h
a6604 1
fi
d6606 7
a6612 35
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
d6614 1
a6614 2
if ac_fn_c_try_cpp "$LINENO"; then :

d6616 1
a6616 2
  # Broken: fails on valid input.
continue
a6617 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6619 10
a6628 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
d6630 1
a6630 3
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
d6632 1
a6632 3
  # Passes both tests.
ac_preproc_ok=:
break
a6633 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6636 21
a6656 4
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
d6659 1
a6659 2
    done
    ac_cv_prog_CPP=$CPP
d6661 32
a6692 24
fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6693 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6695 1
a6695 3
else
  # Broken: fails on valid input.
continue
a6696 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6698 14
a6711 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
a6712 9
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext
a6713 4
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
a6714 5
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
d6717 2
a6718 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6720 3
a6724 10
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
d6726 5
a6730 24
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6731 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6733 1
a6733 3
else
  # Broken: fails on valid input.
continue
d6735 2
a6736 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6738 2
a6739 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
d6741 2
a6742 7
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
d6744 7
a6750 1
rm -f conftest.err conftest.i conftest.$ac_ext
a6751 5
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
d6753 6
a6759 2
    done
    ac_cv_prog_CPP=$CPP
d6762 8
a6769 3
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
d6771 5
a6775 19
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
a6776 1
if ac_fn_c_try_cpp "$LINENO"; then :
d6778 1
a6778 3
else
  # Broken: fails on valid input.
continue
d6780 2
a6781 1
rm -f conftest.err conftest.i conftest.$ac_ext
d6783 29
a6811 5
  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
a6812 9
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext
a6813 4
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
a6814 5
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
a6816 5
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6818 10
a6827 17
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CXX+:} false; then :
d6830 2
a6831 2
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
d6833 9
a6841 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d6844 30
d6875 1
a6875 7
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d6877 8
d6887 7
a6893 12
    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
d6896 2
a6897 2
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
d6899 9
a6907 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d6910 2
a6911 9
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a6913 2
  test -n "$ac_ct_CXX" && break
done
d6915 3
a6917 12
  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi
a6918 26
  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done
d6920 7
a6926 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if ${ac_cv_cxx_compiler_gnu+:} false; then :
d6929 1
a6929 9
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif
a6930 6
  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
d6932 8
a6939 1
  ac_compiler_gnu=no
a6940 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d6943 17
a6959 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if ${ac_cv_prog_cxx_g+:} false; then :
d6962 3
a6964 5
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6967 7
d6977 1
a6977 1

d6982 2
a6983 2
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
d6985 11
a6995 11
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
a6996 1
if ac_fn_cxx_try_compile "$LINENO"; then :
d6998 1
a6998 5
else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d7000 1
a7000 3
int
main ()
{
d7002 6
a7007 3
  ;
  return 0;
}
a7008 32
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7010 2
a7011 1
depcc="$CXX"  am_compiler_list=
d7013 1
a7013 23
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub
d7015 1
a7015 8
  am_cv_CXX_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac
d7017 2
a7018 69
  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CXX_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done
a7019 5
  cd ..
  rm -rf conftest.dir
else
  am_cv_CXX_dependencies_compiler_type=none
fi
d7021 7
a7027 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a7028 8
 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  am__fastdepCXX_TRUE=
  am__fastdepCXX_FALSE='#'
else
  am__fastdepCXX_TRUE='#'
  am__fastdepCXX_FALSE=
d7031 1
d7033 8
a7040 26
for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_YACC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a7042 12
fi
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$YACC" && break
a7043 1
test -n "$YACC" || YACC="yacc"
d7045 5
a7049 3
if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
d7051 2
a7052 7
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
fi
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
d7056 1
a7056 1

d7061 3
d7068 13
a7080 71
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
d7082 1
a7082 1
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
d7084 12
a7095 2
rm -f core conftest*

d7097 6
a7102 3
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
d7104 2
a7105 29
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
ntp_vpath_hack="no"
case "$srcdir::${force_ntp_vpath_hack-no}" in
 .::*)
    ;; # VPATH_HACK path is for VPATH builds only.
 *::yes)
    ntp_vpath_hack="yes"
    ;;
 *::*)
    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	ntp_vpath_hack="yes"
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
$as_echo "$ntp_vpath_hack" >&6; }
 if test x$ntp_vpath_hack = xyes; then
  VPATH_HACK_TRUE=
  VPATH_HACK_FALSE='#'
d7107 35
a7141 3
  VPATH_HACK_TRUE='#'
  VPATH_HACK_FALSE=
fi
d7143 5
d7149 1
d7151 1
d7153 18
a7170 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
$as_echo_n "checking for install dir and man conventions... " >&6; }
d7172 8
d7181 5
a7185 5
# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
else
  with_locfile=no
d7187 2
a7188 1
fi
d7190 2
d7193 8
a7200 30
(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genLocInfo -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genLocInfo.i 2> genLocInfo.err
. ./genLocInfo.i

case "$GENLOCINFO" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
$as_echo "in file $GENLOCINFOFILE" >&6; }
    rm genLocInfo.err genLocInfo.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
    ;;
esac

 if test "$CALC_TICKADJ_MS" ; then
  WANT_CALC_TICKADJ_MS_TRUE=
  WANT_CALC_TICKADJ_MS_FALSE='#'
d7202 4
a7205 2
  WANT_CALC_TICKADJ_MS_TRUE='#'
  WANT_CALC_TICKADJ_MS_FALSE=
d7208 3
d7212 6
d7219 1
d7221 1
d7223 1
d7225 1
d7227 2
d7230 1
d7232 1
d7234 9
d7244 2
d7247 11
a7257 189



















































# So far, the only shared library we might use is libopts.
# It's a small library - we might as well use a static version of it.
# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then :
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_shared=no
fi









case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac



macro_version='2.4'
macro_revision='1.3293'













ltmain="$ac_aux_dir/ltmain.sh"

# Backslashify metacharacters that are still active within
# double-quoted strings.
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\(["`\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
$as_echo_n "checking how to print strings... " >&6; }
# Test print first, because it will be a builtin if present.
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='print -r --'
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='printf %s\n'
else
  # Use this function as a fallback that always works.
  func_fallback_echo ()
  {
    eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
  }
  ECHO='func_fallback_echo'
fi

# func_echo_all arg...
# Invoke $ECHO with all args, space-separated.
func_echo_all ()
{
    $ECHO ""
}

case "$ECHO" in
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
$as_echo "printf" >&6; } ;;
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
$as_echo "print -r" >&6; } ;;
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
$as_echo "cat" >&6; } ;;
esac














{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
d7316 22
a7337 2
test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"
d7340 1
d7343 1
d7345 11
d7358 4
d7363 7
d7372 3
d7376 7
a7382 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if ${ac_cv_path_FGREP+:} false; then :
d7385 8
a7392 42
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  ac_path_FGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in fgrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
# Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
a7393 10
      $ac_path_FGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_FGREP"; then
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_FGREP=$FGREP
d7395 1
d7397 3
a7399 5
   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"
d7401 13
d7415 4
a7418 2
test -z "$GREP" && GREP=grep

d7420 20
d7443 1
d7446 1
d7448 1
d7451 7
d7459 1
d7461 1
d7463 8
d7472 2
d7475 15
d7491 2
d7494 12
d7507 3
a7510 3
# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d7512 1
a7512 1
  with_gnu_ld=no
d7514 1
a7514 6

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
d7516 6
a7521 16
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
a7522 8
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
d7524 2
a7525 6
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
d7527 5
a7531 1
if ${lt_cv_path_LD+:} false; then :
d7534 2
a7535 21
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
d7537 96
a7632 1
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
d7634 2
a7637 7
LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d7639 8
a7646 15
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
a7647 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld
d7649 1
d7651 1
d7653 1
d7655 1
d7657 2
d7660 1
d7662 1
d7665 3
a7667 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if ${lt_cv_path_NM+:} false; then :
d7670 13
a7682 3
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
d7684 2
a7685 38
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
d7687 2
d7690 16
a7705 17
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$DUMPBIN"; then :
    # Let the user override the test.
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in dumpbin "link -dump"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DUMPBIN+:} false; then :
d7708 13
a7720 2
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7722 1
a7722 14
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d7725 1
a7725 10
fi
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

a7726 2
    test -n "$DUMPBIN" && break
  done
d7728 145
a7872 3
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in dumpbin "link -dump"
d7878 1
a7878 1
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
d7881 2
a7882 2
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d7891 1
a7891 1
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
d7901 4
a7904 4
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
d7911 1
a7911 1
  test -n "$ac_ct_DUMPBIN" && break
d7914 18
a7931 8
  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
d7933 10
a7942 2
    DUMPBIN=$ac_ct_DUMPBIN
  fi
d7945 53
a7997 7
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
    *COFF*)
      DUMPBIN="$DUMPBIN -symbols"
      ;;
    *)
      DUMPBIN=:
      ;;
d7999 3
a8001 1
  fi
a8002 5
  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
fi
test -z "$NM" && NM=nm
d8005 5
d8013 2
a8015 22
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if ${lt_cv_nm_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }
a8016 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi
a8017 8
# find the maximum length of command line arguments
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if ${lt_cv_sys_max_cmd_len+:} false; then :
  $as_echo_n "(cached) " >&6
else
    i=0
  teststring="ABCD"
a8018 8
  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;
a8019 6
  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;
a8020 10
  cygwin* | mingw* | cegcc*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8021 4
  mint*)
    # On MiNT this can take a long time and run out of memory.
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8022 5
  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;
a8023 13
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;
a8024 4
  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;
a8025 56
  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n "$lt_cv_sys_max_cmd_len"; then
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    else
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      for i in 1 2 3 4 5 6 7 8 ; do
        teststring=$teststring$teststring
      done
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
      # If test is not a shell built-in, we'll probably end up computing a
      # maximum length that is only half of the actual maximum length, but
      # we can't tell.
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
	      test $i != 17 # 1/2 MB should be enough
      do
        i=`expr $i + 1`
        teststring=$teststring$teststring
      done
      # Only check the string length outside the loop.
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
      teststring=
      # Add a significant safety factor because C++ compilers can tack on
      # massive amounts of additional arguments before passing them to the
      # linker.  It appears as though 1/2 is a usable value.
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    fi
    ;;
  esac
a8026 1
fi
d8028 1
a8028 8
if test -n $lt_cv_sys_max_cmd_len ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi
max_cmd_len=$lt_cv_sys_max_cmd_len
d8030 3
d8034 2
d8037 3
d8041 2
d8044 2
d8047 3
a8049 3
: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}
d8051 8
a8058 26
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,b/c, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }


if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
d8060 8
a8067 1
  lt_unset=false
d8070 6
d8077 7
a8083 14



# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
a8093 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
if ${lt_cv_to_host_file_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
        ;;
    esac
    ;;
  *-*-cygwin* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_noop
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
        ;;
    esac
    ;;
  * ) # unhandled hosts (and "normal" native builds)
    lt_cv_to_host_file_cmd=func_convert_file_noop
    ;;
esac
a8094 1
fi
a8095 3
to_host_file_cmd=$lt_cv_to_host_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
d8099 4
a8102 6


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
if ${lt_cv_to_tool_file_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
d8104 44
a8147 10
  #assume ordinary cross tools, or native build.
lt_cv_to_tool_file_cmd=func_convert_file_noop
case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
        ;;
    esac
    ;;
d8150 10
d8162 5
a8166 3
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
d8168 2
a8173 31
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
$as_echo_n "checking for $LD option to reload object files... " >&6; }
if ${lt_cv_ld_reload_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_reload_flag='-r'
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
$as_echo "$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    if test "$GCC" != yes; then
      reload_cmds=false
    fi
    ;;
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac


d8181 3
a8183 6
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OBJDUMP+:} false; then :
d8186 8
a8193 5
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
d8197 1
d8199 33
a8231 6
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
d8234 6
d8241 1
d8243 11
a8253 9
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a8255 27
fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a8256 10
fi
fi
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a8257 14
  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi
a8258 1
test -z "$OBJDUMP" && OBJDUMP=objdump
d8268 6
a8273 18
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
if ${lt_cv_deplibs_check_method+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
d8275 22
a8296 55
case $host_os in
aix[4-9]*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    # Keep this pattern in sync with the one in func_win32_libid.
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;

cegcc*)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

freebsd* | dragonfly*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
d8298 3
a8300 24
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

haiku*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
d8303 2
a8304 2
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
d8307 35
a8341 1
  ;;
d8343 18
a8360 3
interix[3-9]*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d8362 2
a8363 9

irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
d8365 5
a8370 4
# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8371 7
netbsd*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;
a8372 5
newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;
a8373 3
*nto* | *qnx*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8374 7
openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;
a8375 3
osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8376 3
rdos*)
  lt_cv_deplibs_check_method=pass_all
  ;;
a8377 39
solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
  esac
  ;;

tpf*)
  lt_cv_deplibs_check_method=pass_all
  ;;
esac
d8379 47
a8426 15
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
$as_echo "$lt_cv_deplibs_check_method" >&6; }

file_magic_glob=
want_nocaseglob=no
if test "$build" = "$host"; then
  case $host_os in
  mingw* | pw32*)
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
      want_nocaseglob=yes
    else
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
    fi
    ;;
  esac
d8428 14
a8441 29

file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown






















if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
d8444 1
a8444 1
if ${ac_cv_prog_DLLTOOL+:} false; then :
d8447 2
a8448 2
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
d8457 1
a8457 1
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
d8467 4
a8470 4
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
d8477 2
d8480 6
a8485 4
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
d8488 1
a8488 1
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
d8491 2
a8492 2
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
d8501 1
a8501 1
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
d8511 4
a8514 4
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
d8520 6
a8525 2
  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
d8533 1
a8533 1
    DLLTOOL=$ac_ct_DLLTOOL
a8534 2
else
  DLLTOOL="$ac_cv_prog_DLLTOOL"
d8537 9
a8545 1
test -z "$DLLTOOL" && DLLTOOL=dlltool
d8547 5
d8558 22
d8581 10
d8592 4
a8595 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
d8598 11
a8608 1
  lt_cv_sharedlib_from_linklib_cmd='unknown'
d8610 71
a8680 7
case $host_os in
cygwin* | mingw* | pw32* | cegcc*)
  # two different shell functions defined in ltmain.sh
  # decide which to use based on capabilities of $DLLTOOL
  case `$DLLTOOL --help 2>&1` in
  *--identify-strict*)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
d8683 29
a8711 1
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
a8713 6
  ;;
*)
  # fallback: assume linklib IS sharedlib
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  ;;
esac
d8716 9
a8724 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
d8731 3
d8735 12
a8746 27
if test -n "$ac_tool_prefix"; then
  for ac_prog in ar
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a8747 10
fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d8749 8
a8757 31
    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d8759 2
a8760 6
fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
d8762 1
a8762 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
a8765 15
  test -n "$ac_ct_AR" && break
done

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
fi
a8766 2
: ${AR=ar}
: ${AR_FLAGS=cru}
d8769 12
d8790 3
a8792 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @@FILE support" >&5
$as_echo_n "checking for archiver @@FILE support... " >&6; }
if ${lt_cv_ar_at_file+:} false; then :
d8795 40
a8834 3
  lt_cv_ar_at_file=no
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a8835 3
int
main ()
{
d8837 16
a8852 25
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  echo conftest.$ac_objext > conftest.lst
      lt_ar_try='$AR $AR_FLAGS libconftest.a @@conftest.lst >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
	# Ensure the archiver fails upon bogus file names.
	rm -f conftest.$ac_objext libconftest.a
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	if test "$ac_status" -ne 0; then
          lt_cv_ar_at_file=@@
        fi
      fi
      rm -f conftest.* libconftest.a
a8854 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d8856 7
a8862 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
$as_echo "$lt_cv_ar_at_file" >&6; }
d8864 4
a8867 2
if test "x$lt_cv_ar_at_file" = xno; then
  archiver_list_spec=
d8869 1
a8869 1
  archiver_list_spec=$lt_cv_ar_at_file
d8871 24
d8903 2
a8904 2
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
d8907 1
a8907 1
if ${ac_cv_prog_STRIP+:} false; then :
d8910 2
a8911 2
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d8920 1
a8920 1
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
d8930 4
a8933 4
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
d8941 4
a8944 4
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
d8947 1
a8947 1
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d8950 2
a8951 2
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d8960 1
a8960 1
    ac_cv_prog_ac_ct_STRIP="strip"
d8970 4
a8973 4
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
d8979 2
a8980 2
  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
d8988 1
a8988 1
    STRIP=$ac_ct_STRIP
d8991 1
a8991 1
  STRIP="$ac_cv_prog_STRIP"
d8994 1
a8994 1
test -z "$STRIP" && STRIP=:
a9000 25
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9001 10
fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9004 3
a9006 8
fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
d9009 13
a9021 17
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d9023 20
a9042 10
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9044 8
a9051 2
  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
d9053 3
a9055 7
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
d9057 1
a9057 3
else
  RANLIB="$ac_cv_prog_RANLIB"
fi
d9059 5
a9063 1
test -z "$RANLIB" && RANLIB=:
d9065 3
d9069 15
d9085 3
d9089 3
d9093 10
a9102 10

# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=

if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
d9105 2
a9106 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
d9109 1
a9109 2
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi
d9111 4
a9114 6
case $host_os in
  darwin*)
    lock_old_archive_extraction=yes ;;
  *)
    lock_old_archive_extraction=no ;;
esac
d9116 9
d9126 4
d9131 7
d9139 5
d9145 3
d9149 7
d9157 3
d9161 3
d9165 3
d9169 3
d9173 26
d9200 4
d9205 3
d9209 13
d9223 3
d9248 94
a9343 2
# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}
a9344 2
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
a9345 2
# Allow CC to be a program name with arguments.
compiler=$CC
a9347 6
# Check for command to grab the raw symbol name followed by C symbol from nm.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  $as_echo_n "(cached) " >&6
else
a9348 2
# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
a9349 2
# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'
d9351 6
a9356 2
# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
a9357 1
# Define system-specific variables.
a9358 3
aix*)
  symcode='[BCDT]'
  ;;
d9360 10
a9369 1
  symcode='[ABCDGISTW]'
d9371 3
a9373 25
hpux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris*)
  symcode='[BDRT]'
  ;;
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
d9377 6
a9382 5
# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac
a9383 4
# Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently,
# so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
a9384 3
# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
a9385 7
# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac
a9386 2
# Try without a prefix underscore, then with it.
for ac_symprfx in "" "_"; do
a9387 2
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"
d9389 23
a9411 19
  # Write the raw and C identifiers.
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
    # Fake it for dumpbin and say T for any non-static function
    # and D for any global variable.
    # Also find C++ and __fastcall symbols from MSVC++,
    # which start with @@ or ?.
    lt_cv_sys_global_symbol_pipe="$AWK '"\
"     {last_section=section; section=\$ 3};"\
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
"     \$ 0!~/External *\|/{next};"\
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
"     {if(hide[section]) next};"\
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
"     s[1]~/^[@@?]/{print s[1], s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print t[1], substr(t[1],length(prfx))}"\
"     ' prfx=^$ac_symprfx"
  else
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
d9413 14
a9426 1
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
a9427 2
  # Check to see that the pipe works correctly.
  pipe_works=no
d9429 31
a9459 13
  rm -f conftest*
  cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(void);
void nm_test_func(void){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
_LT_EOF
d9461 10
a9470 34
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<_LT_EOF > conftest.$ac_ext
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
/* DATA imports from DLLs on WIN32 con't be const, because runtime
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
# define LT_DLSYM_CONST
#elif defined(__osf__)
/* This system does not cope well with relocations in const data.  */
# define LT_DLSYM_CONST
#else
# define LT_DLSYM_CONST const
#endif
a9471 3
#ifdef __cplusplus
extern "C" {
#endif
d9473 2
a9474 3
_LT_EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9476 2
a9477 51
	  cat <<_LT_EOF >> conftest.$ac_ext

/* The mapping between symbol names and symbols.  */
LT_DLSYM_CONST struct {
  const char *name;
  void       *address;
}
lt__PROGRAM__LTX_preloaded_symbols[] =
{
  { "@@PROGRAM@@", (void *) 0 },
_LT_EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
	  cat <<\_LT_EOF >> conftest.$ac_ext
  {0, (void *) 0}
};

/* This works around a problem in FreeBSD linker */
#ifdef FREEBSD_WORKAROUND
static const void *lt_preloaded_setup() {
  return lt__PROGRAM__LTX_preloaded_symbols;
}
#endif

#ifdef __cplusplus
}
#endif
_LT_EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_globsym_save_LIBS=$LIBS
	  lt_globsym_save_CFLAGS=$CFLAGS
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
	    pipe_works=yes
	  fi
	  LIBS=$lt_globsym_save_LIBS
	  CFLAGS=$lt_globsym_save_CFLAGS
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
d9479 7
a9485 10
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -rf conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
a9486 2
done

d9489 2
a9490 17
if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
fi

# Response file support.
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  nm_file_list_spec='@@'
elif $NM --help 2>/dev/null | grep '[@@]FILE' >/dev/null; then
  nm_file_list_spec='@@'
fi
d9502 8
d9511 3
d9515 25
d9541 2
d9544 3
d9548 5
d9560 25
d9586 10
d9598 27
d9626 9
a9634 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
$as_echo_n "checking for sysroot... " >&6; }

# Check whether --with-sysroot was given.
if test "${with_sysroot+set}" = set; then :
  withval=$with_sysroot;
else
  with_sysroot=no
d9637 8
a9644 18

lt_sysroot=
case ${with_sysroot} in #(
 yes)
   if test "$GCC" = yes; then
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   fi
   ;; #(
 /*)
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   ;; #(
 no|'')
   ;; #(
 *)
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
$as_echo "${with_sysroot}" >&6; }
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   ;;
d9646 4
a9649 11

 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
$as_echo "${lt_sysroot:-no}" >&6; }





# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then :
  enableval=$enable_libtool_lock;
d9652 1
a9652 128
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.$ac_objext` in
      *ELF-32*)
	HPUX_IA64_MODE="32"
	;;
      *ELF-64*)
	HPUX_IA64_MODE="64"
	;;
    esac
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    if test "$lt_cv_prog_gnu_ld" = yes; then
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -melf32bsmip"
	  ;;
	*N32*)
	  LD="${LD-ld} -melf32bmipn32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -melf64bmip"
	;;
      esac
    else
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -32"
	  ;;
	*N32*)
	  LD="${LD-ld} -n32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -64"
	  ;;
      esac
    fi
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
      *32-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_i386_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_i386"
	    ;;
	  ppc64-*linux*|powerpc64-*linux*)
	    LD="${LD-ld} -m elf32ppclinux"
	    ;;
	  s390x-*linux*)
	    LD="${LD-ld} -m elf_s390"
	    ;;
	  sparc64-*linux*)
	    LD="${LD-ld} -m elf32_sparc"
	    ;;
	esac
	;;
      *64-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_x86_64_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_x86_64"
	    ;;
	  ppc*-*linux*|powerpc*-*linux*)
	    LD="${LD-ld} -m elf64ppc"
	    ;;
	  s390*-*linux*|s390*-*tpf*)
	    LD="${LD-ld} -m elf64_s390"
	    ;;
	  sparc*-*linux*)
	    LD="${LD-ld} -m elf64_sparc"
	    ;;
	esac
	;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
if ${lt_cv_cc_needs_belf+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
a9653 2
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a9654 3
int
main ()
{
a9655 16
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_cc_needs_belf=yes
else
  lt_cv_cc_needs_belf=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
a9656 32
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
$as_echo "$lt_cv_cc_needs_belf" >&6; }
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
	  LD="${LD-ld} -64"
	fi
	;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;
esac
a9657 1
need_locks="$enable_libtool_lock"
d9660 2
a9661 2
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
set dummy ${ac_tool_prefix}mt; ac_word=$2
d9664 1
a9664 1
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
d9667 2
a9668 2
  if test -n "$MANIFEST_TOOL"; then
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
d9677 1
a9677 1
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
d9687 4
a9690 4
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
if test -n "$MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
$as_echo "$MANIFEST_TOOL" >&6; }
d9698 4
a9701 4
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  # Extract the first word of "mt", so it can be a program name with args.
set dummy mt; ac_word=$2
d9704 1
a9704 1
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
d9707 2
a9708 2
  if test -n "$ac_ct_MANIFEST_TOOL"; then
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
d9717 1
a9717 1
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
d9727 4
a9730 4
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
if test -n "$ac_ct_MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
d9736 2
a9737 2
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
    MANIFEST_TOOL=":"
d9745 1
a9745 1
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
d9748 1
a9748 1
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
d9751 22
a9772 19
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
if ${lt_cv_path_mainfest_tool+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_path_mainfest_tool=no
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  cat conftest.err >&5
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
    lt_cv_path_mainfest_tool=yes
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
if test "x$lt_cv_path_mainfest_tool" != xyes; then
  MANIFEST_TOOL=:
d9774 20
a9799 27
  case $host_os in
    rhapsody* | darwin*)
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DSYMUTIL"; then
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9800 10
fi
fi
DSYMUTIL=$ac_cv_prog_DSYMUTIL
if test -n "$DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
$as_echo "$DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9802 27
fi
if test -z "$ac_cv_prog_DSYMUTIL"; then
  ac_ct_DSYMUTIL=$DSYMUTIL
  # Extract the first word of "dsymutil", so it can be a program name with args.
set dummy dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DSYMUTIL"; then
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9803 10
fi
fi
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
if test -n "$ac_ct_DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
$as_echo "$ac_ct_DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9804 14
  if test "x$ac_ct_DSYMUTIL" = x; then
    DSYMUTIL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DSYMUTIL=$ac_ct_DSYMUTIL
  fi
else
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
fi
a9805 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NMEDIT"; then
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9806 10
fi
fi
NMEDIT=$ac_cv_prog_NMEDIT
if test -n "$NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
$as_echo "$NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9808 27
fi
if test -z "$ac_cv_prog_NMEDIT"; then
  ac_ct_NMEDIT=$NMEDIT
  # Extract the first word of "nmedit", so it can be a program name with args.
set dummy nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_NMEDIT"; then
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9809 10
fi
fi
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
if test -n "$ac_ct_NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
$as_echo "$ac_ct_NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9810 14
  if test "x$ac_ct_NMEDIT" = x; then
    NMEDIT=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    NMEDIT=$ac_ct_NMEDIT
  fi
else
  NMEDIT="$ac_cv_prog_NMEDIT"
fi
a9811 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
set dummy ${ac_tool_prefix}lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$LIPO"; then
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9812 10
fi
fi
LIPO=$ac_cv_prog_LIPO
if test -n "$LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
$as_echo "$LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9814 27
fi
if test -z "$ac_cv_prog_LIPO"; then
  ac_ct_LIPO=$LIPO
  # Extract the first word of "lipo", so it can be a program name with args.
set dummy lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_LIPO"; then
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_LIPO="lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9815 10
fi
fi
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
if test -n "$ac_ct_LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
$as_echo "$ac_ct_LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9816 14
  if test "x$ac_ct_LIPO" = x; then
    LIPO=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    LIPO=$ac_ct_LIPO
  fi
else
  LIPO="$ac_cv_prog_LIPO"
fi
a9817 25
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL"; then
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a9818 10
fi
fi
OTOOL=$ac_cv_prog_OTOOL
if test -n "$OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
$as_echo "$OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9820 2
d9823 2
a9824 27
fi
if test -z "$ac_cv_prog_OTOOL"; then
  ac_ct_OTOOL=$OTOOL
  # Extract the first word of "otool", so it can be a program name with args.
set dummy otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL"; then
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL="otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d9826 2
a9827 10
fi
fi
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
if test -n "$ac_ct_OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
$as_echo "$ac_ct_OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
a9828 14
  if test "x$ac_ct_OTOOL" = x; then
    OTOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL=$ac_ct_OTOOL
  fi
else
  OTOOL="$ac_cv_prog_OTOOL"
fi
d9830 4
a9833 6
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OTOOL64+:} false; then :
a9835 17
  if test -n "$OTOOL64"; then
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d9837 2
a9838 10
fi
fi
OTOOL64=$ac_cv_prog_OTOOL64
if test -n "$OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
$as_echo "$OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d9840 2
d9843 214
a10056 27
fi
if test -z "$ac_cv_prog_OTOOL64"; then
  ac_ct_OTOOL64=$OTOOL64
  # Extract the first word of "otool64", so it can be a program name with args.
set dummy otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL64"; then
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL64="otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d10059 3
d10063 3
a10065 4
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
if test -n "$ac_ct_OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
$as_echo "$ac_ct_OTOOL64" >&6; }
d10067 2
a10068 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d10071 5
a10075 13
  if test "x$ac_ct_OTOOL64" = x; then
    OTOOL64=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL64=$ac_ct_OTOOL64
  fi
else
  OTOOL64="$ac_cv_prog_OTOOL64"
d10104 6
a10109 4
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
$as_echo_n "checking for -single_module linker flag... " >&6; }
if ${lt_cv_apple_cc_single_mod+:} false; then :
  $as_echo_n "(cached) " >&6
d10111 33
a10143 21
  lt_cv_apple_cc_single_mod=no
      if test -z "${LT_MULTI_MODULE}"; then
	# By default we will add the -single_module flag. You can override
	# by either setting the environment variable LT_MULTI_MODULE
	# non-empty at configure time, or by adding -multi_module to the
	# link flags.
	rm -rf libconftest.dylib*
	echo "int foo(void){return 1;}" > conftest.c
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-dynamiclib -Wl,-single_module conftest.c" >&5
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
        _lt_result=$?
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
	  lt_cv_apple_cc_single_mod=yes
	else
	  cat conftest.err >&5
	fi
	rm -rf libconftest.dylib*
	rm -f conftest.*
      fi
d10145 122
a10266 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
if ${lt_cv_ld_exported_symbols_list+:} false; then :
d10269 7
a10275 5
  lt_cv_ld_exported_symbols_list=no
      save_LDFLAGS=$LDFLAGS
      echo "_main" > conftest.sym
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d10287 1
a10287 1
  lt_cv_ld_exported_symbols_list=yes
d10289 1
a10289 1
  lt_cv_ld_exported_symbols_list=no
d10293 5
a10297 1
	LDFLAGS="$save_LDFLAGS"
d10300 40
a10339 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
$as_echo_n "checking for -force_load linker flag... " >&6; }
if ${lt_cv_ld_force_load+:} false; then :
d10342 17
a10358 23
  lt_cv_ld_force_load=no
      cat > conftest.c << _LT_EOF
int forced_loaded() { return 2;}
_LT_EOF
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
      echo "$AR cru libconftest.a conftest.o" >&5
      $AR cru libconftest.a conftest.o 2>&5
      echo "$RANLIB libconftest.a" >&5
      $RANLIB libconftest.a 2>&5
      cat > conftest.c << _LT_EOF
int main() { return 0;}
_LT_EOF
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
      _lt_result=$?
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
	lt_cv_ld_force_load=yes
      else
	cat conftest.err >&5
      fi
        rm -f conftest.err libconftest.a conftest conftest.c
        rm -rf conftest.dSYM
d10361 9
a10369 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
$as_echo "$lt_cv_ld_force_load" >&6; }
    case $host_os in
    rhapsody* | darwin1.[012])
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
    darwin1.*)
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    darwin*) # darwin 5.x on
      # if running on 10.5 or later, the deployment target defaults
      # to the OS version, if on x86, and 10.4, the deployment
      # target defaults to 10.4. Don't you love it?
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
	10.[012]*)
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
	10.*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
      esac
    ;;
  esac
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
      _lt_dar_single_mod='$single_module'
    fi
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
    else
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    fi
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
      _lt_dsymutil='~$DSYMUTIL $lib || :'
    else
      _lt_dsymutil=
    fi
    ;;
  esac
a10370 8
for ac_header in dlfcn.h
do :
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
"
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLFCN_H 1
_ACEOF
d10373 23
a10395 1

d10397 2
d10400 10
d10411 14
d10426 20
a10446 7
func_stripname_cnf ()
{
  case ${2} in
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  esac
} # func_stripname_cnf
d10452 27
a10478 1
# Set options
d10480 10
d10492 27
a10518 1
        enable_dlopen=no
d10520 6
a10525 24

  enable_win32_dll=no



  # Check whether --enable-static was given.
if test "${enable_static+set}" = set; then :
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
d10527 2
a10528 1
  enable_static=yes
d10531 14
d10546 25
d10572 10
d10584 27
d10612 10
d10623 14
d10638 25
d10664 6
a10669 4

# Check whether --with-pic was given.
if test "${with_pic+set}" = set; then :
  withval=$with_pic; pic_mode="$withval"
d10671 2
a10672 1
  pic_mode=default
d10676 27
a10702 1
test -z "$pic_mode" && pic_mode=default
d10704 10
d10715 14
d10730 25
d10756 6
a10761 22



  # Check whether --enable-fast-install was given.
if test "${enable_fast_install+set}" = set; then :
  enableval=$enable_fast_install; p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
    *)
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
d10763 2
a10764 1
  enable_fast_install=yes
d10768 27
d10796 10
d10807 14
d10822 25
d10848 10
d10860 27
d10888 10
d10899 14
a10913 5
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ltmain"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d10940 26
a10965 17
test -z "$LN_S" && LN_S="ln -s"














if test -n "${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
d10967 5
a10971 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
$as_echo_n "checking for objdir... " >&6; }
if ${lt_cv_objdir+:} false; then :
d10974 6
a10979 13
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
fi
rmdir .libs 2>/dev/null
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
$as_echo "$lt_cv_objdir" >&6; }
objdir=$lt_cv_objdir
d10981 3
d10985 267
a11251 5



cat >>confdefs.h <<_ACEOF
#define LT_OBJDIR "$lt_cv_objdir/"
d14012 2
a14013 8249
  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




























































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" ||
   test -n "$runpath_var" ||
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi






  if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

    ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if ${ac_cv_lib_dld_shl_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if ${ac_cv_lib_svld_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if ${ac_cv_lib_dld_dld_link+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi

















striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP" ; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi












  # Report which library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test "$can_build_shared" = "no" && enable_shared=no

  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test "$enable_shared" = yes && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;

  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }




fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if ${ac_cv_prog_CXXCPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
$as_echo "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
  _lt_caught_CXX_error=yes
fi

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

archive_cmds_need_lc_CXX=no
allow_undefined_flag_CXX=
always_export_symbols_CXX=no
archive_expsym_cmds_CXX=
compiler_needs_object_CXX=no
export_dynamic_flag_spec_CXX=
hardcode_direct_CXX=no
hardcode_direct_absolute_CXX=no
hardcode_libdir_flag_spec_CXX=
hardcode_libdir_flag_spec_ld_CXX=
hardcode_libdir_separator_CXX=
hardcode_minus_L_CXX=no
hardcode_shlibpath_var_CXX=unsupported
hardcode_automatic_CXX=no
inherit_rpath_CXX=no
module_cmds_CXX=
module_expsym_cmds_CXX=
link_all_deplibs_CXX=unknown
old_archive_cmds_CXX=$old_archive_cmds
reload_flag_CXX=$reload_flag
reload_cmds_CXX=$reload_cmds
no_undefined_flag_CXX=
whole_archive_flag_spec_CXX=
enable_shared_with_static_runtimes_CXX=no

# Source file extension for C++ test sources.
ac_ext=cpp

# Object file extension for compiled C++ test sources.
objext=o
objext_CXX=$objext

# No sense in running all these tests if we already determined that
# the CXX compiler isn't working.  Some variables (like enable_shared)
# are currently assumed to apply to all compilers on this platform,
# and will be corrupted by setting them based on a non-working compiler.
if test "$_lt_caught_CXX_error" != yes; then
  # Code to be used in simple compile tests
  lt_simple_compile_test_code="int some_variable = 0;"

  # Code to be used in simple link tests
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'

  # ltmain only uses $CC for tagged configurations so make sure $CC is set.






# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


  # save warnings/boilerplate of simple test code
  ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

  ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


  # Allow CC to be a program name with arguments.
  lt_save_CC=$CC
  lt_save_CFLAGS=$CFLAGS
  lt_save_LD=$LD
  lt_save_GCC=$GCC
  GCC=$GXX
  lt_save_with_gnu_ld=$with_gnu_ld
  lt_save_path_LD=$lt_cv_path_LD
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  else
    $as_unset lt_cv_prog_gnu_ld
  fi
  if test -n "${lt_cv_path_LDCXX+set}"; then
    lt_cv_path_LD=$lt_cv_path_LDCXX
  else
    $as_unset lt_cv_path_LD
  fi
  test -z "${LDCXX+set}" || LD=$LDCXX
  CC=${CXX-"c++"}
  CFLAGS=$CXXFLAGS
  compiler=$CC
  compiler_CXX=$CC
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`


  if test -n "$compiler"; then
    # We don't want -fno-exception when compiling C++ code, so set the
    # no_builtin_flag separately
    if test "$GXX" = yes; then
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
    else
      lt_prog_compiler_no_builtin_flag_CXX=
    fi

    if test "$GXX" = yes; then
      # Set up default GNU C++ configuration



# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld







      # Check if GNU C++ uses GNU ld as the underlying linker, since the
      # archiving commands below assume that GNU ld is being used.
      if test "$with_gnu_ld" = yes; then
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'

        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

        # If archive_cmds runs LD, not CC, wlarc should be empty
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
        #     investigate it a little bit more. (MM)
        wlarc='${wl}'

        # ancient GNU ld didn't support --whole-archive et. al.
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
	  $GREP 'no-whole-archive' > /dev/null; then
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
        else
          whole_archive_flag_spec_CXX=
        fi
      else
        with_gnu_ld=no
        wlarc=

        # A generic and very simple default shared library creation
        # command for GNU C++ for the case where it uses the native
        # linker, instead of GNU ld.  If possible, this setting should
        # overridden to take advantage of the native linker features on
        # the platform it is being used on.
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
      fi

      # Commands to make compiler produce verbose output that lists
      # what "hidden" libraries, object files and flags are used when
      # linking a shared library.
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

    else
      GXX=no
      with_gnu_ld=no
      wlarc=
    fi

    # PORTME: fill in a description of your system's C++ link characteristics
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
    ld_shlibs_CXX=yes
    case $host_os in
      aix3*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
      aix[4-9]*)
        if test "$host_cpu" = ia64; then
          # On IA64, the linker does run time linking by default, so we don't
          # have to do anything special.
          aix_use_runtimelinking=no
          exp_sym_flag='-Bexport'
          no_entry_flag=""
        else
          aix_use_runtimelinking=no

          # Test if we are trying to use run time linking or normal
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
          # need to do runtime linking.
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	    for ld_flag in $LDFLAGS; do
	      case $ld_flag in
	      *-brtl*)
	        aix_use_runtimelinking=yes
	        break
	        ;;
	      esac
	    done
	    ;;
          esac

          exp_sym_flag='-bexport'
          no_entry_flag='-bnoentry'
        fi

        # When large executables or shared objects are built, AIX ld can
        # have problems creating the table of contents.  If linking a library
        # or program results in "error TOC overflow" add -mminimal-toc to
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

        archive_cmds_CXX=''
        hardcode_direct_CXX=yes
        hardcode_direct_absolute_CXX=yes
        hardcode_libdir_separator_CXX=':'
        link_all_deplibs_CXX=yes
        file_list_spec_CXX='${wl}-f,'

        if test "$GXX" = yes; then
          case $host_os in aix4.[012]|aix4.[012].*)
          # We only want to do this on AIX 4.2 and lower, the check
          # below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	    # We have reworked collect2
	    :
	  else
	    # We have old collect2
	    hardcode_direct_CXX=unsupported
	    # It fails to find uninstalled libraries when the uninstalled
	    # path is not listed in the libpath.  Setting hardcode_minus_L
	    # to unsupported forces relinking
	    hardcode_minus_L_CXX=yes
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
	    hardcode_libdir_separator_CXX=
	  fi
          esac
          shared_flag='-shared'
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag="$shared_flag "'${wl}-G'
	  fi
        else
          # not using gcc
          if test "$host_cpu" = ia64; then
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	  # chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
          else
	    if test "$aix_use_runtimelinking" = yes; then
	      shared_flag='${wl}-G'
	    else
	      shared_flag='${wl}-bM:SRE'
	    fi
          fi
        fi

        export_dynamic_flag_spec_CXX='${wl}-bexpall'
        # It seems that -bexpall does not export symbols beginning with
        # underscore (_), so it is better to generate a list of symbols to
	# export.
        always_export_symbols_CXX=yes
        if test "$aix_use_runtimelinking" = yes; then
          # Warning - without using the other runtime loading flags (-brtl),
          # -berok will link without error, but may produce a broken library.
          allow_undefined_flag_CXX='-berok'
          # Determine the default libpath from the value encoded in an empty
          # executable.
          if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"

          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
        else
          if test "$host_cpu" = ia64; then
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
	    allow_undefined_flag_CXX="-z nodefs"
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
          else
	    # Determine the default libpath from the value encoded in an
	    # empty executable.
	    if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
	    # Warning - without using the other run time loading flags,
	    # -berok will link without error, but may produce a broken library.
	    no_undefined_flag_CXX=' ${wl}-bernotok'
	    allow_undefined_flag_CXX=' ${wl}-berok'
	    if test "$with_gnu_ld" = yes; then
	      # We only use this code for GNU lds that support --whole-archive.
	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    else
	      # Exported symbols can be pulled into shared objects from archives
	      whole_archive_flag_spec_CXX='$convenience'
	    fi
	    archive_cmds_need_lc_CXX=yes
	    # This is similar to how AIX traditionally builds its shared
	    # libraries.
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
          fi
        fi
        ;;

      beos*)
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	  allow_undefined_flag_CXX=unsupported
	  # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	  # support --undefined.  This deserves some investigation.  FIXME
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	else
	  ld_shlibs_CXX=no
	fi
	;;

      chorus*)
        case $cc_basename in
          *)
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	  ;;
        esac
        ;;

      cygwin* | mingw* | pw32* | cegcc*)
	case $GXX,$cc_basename in
	,cl* | no,cl*)
	  # Native MSVC
	  # hardcode_libdir_flag_spec is actually meaningless, as there is
	  # no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX=' '
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=yes
	  file_list_spec_CXX='@@'
	  # Tell ltmain to make .lib files, not .a files.
	  libext=lib
	  # Tell ltmain to make .dll files, not .so files.
	  shrext_cmds=".dll"
	  # FIXME: Setting linknames here is a bad hack.
	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	    else
	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	    fi~
	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	    linknames='
	  # The linker will not automatically build a static lib if we build a DLL.
	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
	  enable_shared_with_static_runtimes_CXX=yes
	  # Don't use ranlib
	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
	  postlink_cmds_CXX='lt_outputfile="@@OUTPUT@@"~
	    lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	    case $lt_outputfile in
	      *.exe|*.EXE) ;;
	      *)
		lt_outputfile="$lt_outputfile.exe"
		lt_tool_outputfile="$lt_tool_outputfile.exe"
		;;
	    esac~
	    func_to_tool_file "$lt_outputfile"~
	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	      $RM "$lt_outputfile.manifest";
	    fi'
	  ;;
	*)
	  # g++
	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
	  # as there is no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=no
	  enable_shared_with_static_runtimes_CXX=yes

	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	    # If the export-symbols file already is a .def file (1st line
	    # is EXPORTS), use it as is; otherwise, prepend...
	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      cp $export_symbols $output_objdir/$soname.def;
	    else
	      echo EXPORTS > $output_objdir/$soname.def;
	      cat $export_symbols >> $output_objdir/$soname.def;
	    fi~
	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	  else
	    ld_shlibs_CXX=no
	  fi
	  ;;
	esac
	;;
      darwin* | rhapsody*)


  archive_cmds_need_lc_CXX=no
  hardcode_direct_CXX=no
  hardcode_automatic_CXX=yes
  hardcode_shlibpath_var_CXX=unsupported
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  else
    whole_archive_flag_spec_CXX=''
  fi
  link_all_deplibs_CXX=yes
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=func_echo_all
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
    fi

  else
  ld_shlibs_CXX=no
  fi

	;;

      dgux*)
        case $cc_basename in
          ec++*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          ghcx*)
	    # Green Hills C++ Compiler
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      freebsd[12]*)
        # C++ shared libraries reported to be fairly broken before
	# switch to ELF
        ld_shlibs_CXX=no
        ;;

      freebsd-elf*)
        archive_cmds_need_lc_CXX=no
        ;;

      freebsd* | dragonfly*)
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
        # conventions
        ld_shlibs_CXX=yes
        ;;

      gnu*)
        ;;

      haiku*)
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
        link_all_deplibs_CXX=yes
        ;;

      hpux9*)
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        export_dynamic_flag_spec_CXX='${wl}-E'
        hardcode_direct_CXX=yes
        hardcode_minus_L_CXX=yes # Not in the search PATH,
				             # but as the default
				             # location of the library.

        case $cc_basename in
          CC*)
            # FIXME: insert proper C++ library support
            ld_shlibs_CXX=no
            ;;
          aCC*)
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            # Commands to make compiler produce verbose output that lists
            # what "hidden" libraries, object files and flags are used when
            # linking a shared library.
            #
            # There doesn't appear to be a way to prevent this compiler from
            # explicitly linking system object files so we need to strip them
            # from the output so that they don't get included in the library
            # dependencies.
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
            ;;
          *)
            if test "$GXX" = yes; then
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            else
              # FIXME: insert proper C++ library support
              ld_shlibs_CXX=no
            fi
            ;;
        esac
        ;;

      hpux10*|hpux11*)
        if test $with_gnu_ld = no; then
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

          case $host_cpu in
            hppa*64*|ia64*)
              ;;
            *)
	      export_dynamic_flag_spec_CXX='${wl}-E'
              ;;
          esac
        fi
        case $host_cpu in
          hppa*64*|ia64*)
            hardcode_direct_CXX=no
            hardcode_shlibpath_var_CXX=no
            ;;
          *)
            hardcode_direct_CXX=yes
            hardcode_direct_absolute_CXX=yes
            hardcode_minus_L_CXX=yes # Not in the search PATH,
					         # but as the default
					         # location of the library.
            ;;
        esac

        case $cc_basename in
          CC*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          aCC*)
	    case $host_cpu in
	      hppa*64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      ia64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      *)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	    esac
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test $with_gnu_ld = no; then
	        case $host_cpu in
	          hppa*64*)
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          ia64*)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          *)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	        esac
	      fi
	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      interix[3-9]*)
	hardcode_direct_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}-E'
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
	# Instead, shared libraries are loaded at an image base (0x10000000 by
	# default) and relocated if they conflict, which is a slow very memory
	# consuming and fragmenting process.  To avoid this, we pick a random,
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	;;
      irix5* | irix6*)
        case $cc_basename in
          CC*)
	    # SGI C++
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'

	    # Archives containing C++ object files must be created using
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test "$with_gnu_ld" = no; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	      else
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
	      fi
	    fi
	    link_all_deplibs_CXX=yes
	    ;;
        esac
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        inherit_rpath_CXX=yes
        ;;

      linux* | k*bsd*-gnu | kopensolaris*-gnu)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

	    # Archives containing C++ object files must be created using
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
	    ;;
	  icpc* | ecpc* )
	    # Intel C++
	    with_gnu_ld=yes
	    # version 8.0 and above of icpc choke on multiply defined symbols
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
	    # earlier do not add the objects themselves.
	    case `$CC -V 2>&1` in
	      *"Version 7."*)
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	      *)  # Version 8.0 or newer
	        tmp_idyn=
	        case $host_cpu in
		  ia64*) tmp_idyn=' -i_dynamic';;
		esac
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	    esac
	    archive_cmds_need_lc_CXX=no
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    ;;
          pgCC* | pgcpp*)
            # Portland Group C++ compiler
	    case `$CC -V` in
	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
	      prelink_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
	      old_archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
		$RANLIB $oldlib'
	      archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    *) # Version 6 and above use weak symbols
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    esac

	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
            ;;
	  cxx*)
	    # Compaq C++
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'

	    runpath_var=LD_RUN_PATH
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
	    ;;
	  xl* | mpixl* | bgxl*)
	    # IBM XL 8.0 on PPC, with GNU ld
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    if test "x$supports_anon_versioning" = xyes; then
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
		echo "local: *; };" >> $output_objdir/$libname.ver~
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	    fi
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      no_undefined_flag_CXX=' -zdefs'
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	      compiler_needs_object_CXX=yes

	      # Not sure whether something based on
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
	      # would be better.
	      output_verbose_link_cmd='func_echo_all'

	      # Archives containing C++ object files must be created using
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	      # necessary to make sure instantiated templates are included
	      # in the archive.
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	      ;;
	    esac
	    ;;
	esac
	;;

      lynxos*)
        # FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;

      m88k*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
	;;

      mvs*)
        case $cc_basename in
          cxx*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	  *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	esac
	;;

      netbsd*)
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
	  wlarc=
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	fi
	# Workaround some broken pre-1.5 toolchains
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
	;;

      *nto* | *qnx*)
        ld_shlibs_CXX=yes
	;;

      openbsd2*)
        # C++ shared libraries are fairly broken
	ld_shlibs_CXX=no
	;;

      openbsd*)
	if test -f /usr/libexec/ld.so; then
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	  hardcode_direct_absolute_CXX=yes
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
	    export_dynamic_flag_spec_CXX='${wl}-E'
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
	  fi
	  output_verbose_link_cmd=func_echo_all
	else
	  ld_shlibs_CXX=no
	fi
	;;

      osf3* | osf4* | osf5*)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    hardcode_libdir_separator_CXX=:

	    # Archives containing C++ object files must be created using
	    # the KAI C++ compiler.
	    case $host in
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
	    esac
	    ;;
          RCC*)
	    # Rational C++ 2.4.1
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          cxx*)
	    case $host in
	      osf3*)
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
		;;
	      *)
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
	          echo "-hidden">> $lib.exp~
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
	          $RM $lib.exp'
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
		;;
	    esac

	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
	  *)
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	      case $host in
	        osf3*)
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	        *)
	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	      esac

	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	      hardcode_libdir_separator_CXX=:

	      # Commands to make compiler produce verbose output that lists
	      # what "hidden" libraries, object files and flags are used when
	      # linking a shared library.
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      psos*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      sunos4*)
        case $cc_basename in
          CC*)
	    # Sun C++ 4.x
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          lcc*)
	    # Lucid
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      solaris*)
        case $cc_basename in
          CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
            archive_cmds_need_lc_CXX=yes
	    no_undefined_flag_CXX=' -zdefs'
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	    hardcode_libdir_flag_spec_CXX='-R$libdir'
	    hardcode_shlibpath_var_CXX=no
	    case $host_os in
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
	      *)
		# The compiler driver will combine and reorder linker options,
		# but understands `-z linker_flag'.
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
	        ;;
	    esac
	    link_all_deplibs_CXX=yes

	    output_verbose_link_cmd='func_echo_all'

	    # Archives containing C++ object files must be created using
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	    ;;
          gcx*)
	    # Green Hills C++ Compiler
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'

	    # The C++ compiler must be used to create the archive.
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
	    ;;
          *)
	    # GNU C++ compiler with Solaris linker
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      else
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
	        # platform.
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      fi

	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
	      case $host_os in
		solaris2.[0-5] | solaris2.[0-5].*) ;;
		*)
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
		  ;;
	      esac
	    fi
	    ;;
        esac
        ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag_CXX='${wl}-z,text'
      archive_cmds_need_lc_CXX=no
      hardcode_shlibpath_var_CXX=no
      runpath_var='LD_RUN_PATH'

      case $cc_basename in
        CC*)
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
      esac
      ;;

      sysv5* | sco3.2v5* | sco5v6*)
	# Note: We can NOT use -z defs as we might desire, because we do not
	# link with -lc, and that would cause any symbols used from libc to
	# always be unresolved, which means just about no library would
	# ever link correctly.  If we're not using GNU ld we use -z text
	# though, which does catch some bad symbols but isn't as heavy-handed
	# as -z defs.
	no_undefined_flag_CXX='${wl}-z,text'
	allow_undefined_flag_CXX='${wl}-z,nodefs'
	archive_cmds_need_lc_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
	hardcode_libdir_separator_CXX=':'
	link_all_deplibs_CXX=yes
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
	runpath_var='LD_RUN_PATH'

	case $cc_basename in
          CC*)
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
	      '"$old_archive_cmds_CXX"
	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
	      '"$reload_cmds_CXX"
	    ;;
	  *)
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    ;;
	esac
      ;;

      tandem*)
        case $cc_basename in
          NCC*)
	    # NonStop-UX NCC 3.20
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      vxworks*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      *)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
    test "$ld_shlibs_CXX" = no && can_build_shared=no

    GCC_CXX="$GXX"
    LD_CXX="$LD"

    ## CAVEAT EMPTOR:
    ## There is no encapsulation within the following macros, do not change
    ## the running order or otherwise move them around unless you know exactly
    ## what you are doing...
    # Dependencies to place before and after the object being linked:
predep_objects_CXX=
postdep_objects_CXX=
predeps_CXX=
postdeps_CXX=
compiler_lib_search_path_CXX=

cat > conftest.$ac_ext <<_LT_EOF
class Foo
{
public:
  Foo (void) { a = 0; }
private:
  int a;
};
_LT_EOF


_lt_libdeps_save_CFLAGS=$CFLAGS
case "$CC $CFLAGS " in #(
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
esac

if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # Parse the compiler output and extract the necessary
  # objects, libraries and library flags.

  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  pre_test_object_deps_done=no

  for p in `eval "$output_verbose_link_cmd"`; do
    case ${prev}${p} in

    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       if test $p = "-L" ||
          test $p = "-R"; then
	 prev=$p
	 continue
       fi

       # Expand the sysroot to ease extracting the directories later.
       if test -z "$prev"; then
         case $p in
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
         esac
       fi
       case $p in
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
       esac
       if test "$pre_test_object_deps_done" = no; then
	 case ${prev} in
	 -L | -R)
	   # Internal compiler library paths should come after those
	   # provided the user.  The postdeps already come after the
	   # user supplied libs so there is no need to process them.
	   if test -z "$compiler_lib_search_path_CXX"; then
	     compiler_lib_search_path_CXX="${prev}${p}"
	   else
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
	   fi
	   ;;
	 # The "-l" case would never come before the object being
	 # linked, so don't bother handling this case.
	 esac
       else
	 if test -z "$postdeps_CXX"; then
	   postdeps_CXX="${prev}${p}"
	 else
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
	 fi
       fi
       prev=
       ;;

    *.lto.$objext) ;; # Ignore GCC LTO objects
    *.$objext)
       # This assumes that the test object file only shows up
       # once in the compiler output.
       if test "$p" = "conftest.$objext"; then
	 pre_test_object_deps_done=yes
	 continue
       fi

       if test "$pre_test_object_deps_done" = no; then
	 if test -z "$predep_objects_CXX"; then
	   predep_objects_CXX="$p"
	 else
	   predep_objects_CXX="$predep_objects_CXX $p"
	 fi
       else
	 if test -z "$postdep_objects_CXX"; then
	   postdep_objects_CXX="$p"
	 else
	   postdep_objects_CXX="$postdep_objects_CXX $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling CXX test program"
fi

$RM -f confest.$objext
CFLAGS=$_lt_libdeps_save_CFLAGS

# PORTME: override above test on systems where it is broken
case $host_os in
interix[3-9]*)
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  # hack all around it, let's just trust "g++" to DTRT.
  predep_objects_CXX=
  postdep_objects_CXX=
  postdeps_CXX=
  ;;

linux*)
  case `$CC -V 2>&1 | sed 5q` in
  *Sun\ C*)
    # Sun C++ 5.9

    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;

solaris*)
  case $cc_basename in
  CC* | sunCC*)
    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;
esac


case " $postdeps_CXX " in
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
esac
 compiler_lib_search_dirs_CXX=
if test -n "${compiler_lib_search_path_CXX}"; then
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
fi































    lt_prog_compiler_wl_CXX=
lt_prog_compiler_pic_CXX=
lt_prog_compiler_static_CXX=


  # C++ specific cases for pic, static, wl, etc.
  if test "$GXX" = yes; then
    lt_prog_compiler_wl_CXX='-Wl,'
    lt_prog_compiler_static_CXX='-static'

    case $host_os in
    aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_CXX='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic_CXX='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | cygwin* | os2* | pw32* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_CXX='-fno-common'
      ;;
    *djgpp*)
      # DJGPP does not support shared libraries at all
      lt_prog_compiler_pic_CXX=
      ;;
    haiku*)
      # PIC is the default for Haiku.
      # The "-static" flag exists, but is broken.
      lt_prog_compiler_static_CXX=
      ;;
    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_CXX=-Kconform_pic
      fi
      ;;
    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	;;
      *)
	lt_prog_compiler_pic_CXX='-fPIC'
	;;
      esac
      ;;
    *qnx* | *nto*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_CXX='-fPIC -shared'
      ;;
    *)
      lt_prog_compiler_pic_CXX='-fPIC'
      ;;
    esac
  else
    case $host_os in
      aix[4-9]*)
	# All AIX code is PIC.
	if test "$host_cpu" = ia64; then
	  # AIX 5 now supports IA64 processor
	  lt_prog_compiler_static_CXX='-Bstatic'
	else
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
	fi
	;;
      chorus*)
	case $cc_basename in
	cxch68*)
	  # Green Hills C++ Compiler
	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
	  ;;
	esac
	;;
      mingw* | cygwin* | os2* | pw32* | cegcc*)
	# This hack is so that the source file can tell whether it is being
	# built for inclusion in a dll (and should export symbols for example).
	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
	;;
      dgux*)
	case $cc_basename in
	  ec++*)
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  ghcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      freebsd* | dragonfly*)
	# FreeBSD uses GNU C++
	;;
      hpux9* | hpux10* | hpux11*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    if test "$host_cpu" != ia64; then
	      lt_prog_compiler_pic_CXX='+Z'
	    fi
	    ;;
	  aCC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    case $host_cpu in
	    hppa*64*|ia64*)
	      # +Z the default
	      ;;
	    *)
	      lt_prog_compiler_pic_CXX='+Z'
	      ;;
	    esac
	    ;;
	  *)
	    ;;
	esac
	;;
      interix*)
	# This is c89, which is MS Visual C++ (no shared libs)
	# Anyone wants to do a port?
	;;
      irix5* | irix6* | nonstopux*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='-non_shared'
	    # CC pic flag -KPIC is the default.
	    ;;
	  *)
	    ;;
	esac
	;;
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
	case $cc_basename in
	  KCC*)
	    # KAI C++ Compiler
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  ecpc* )
	    # old Intel C++ for x86_64 which still supported -KPIC.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  icpc* )
	    # Intel C++, used to be incompatible with GCC.
	    # ICC 10 doesn't accept -KPIC any more.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  pgCC* | pgcpp*)
	    # Portland Group C++ compiler
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fpic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  cxx*)
	    # Compaq C++
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
	    # IBM XL 8.0, 9.0 on PPC and BlueGene
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-qpic'
	    lt_prog_compiler_static_CXX='-qstaticlink'
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      lt_prog_compiler_pic_CXX='-KPIC'
	      lt_prog_compiler_static_CXX='-Bstatic'
	      lt_prog_compiler_wl_CXX='-Qoption ld '
	      ;;
	    esac
	    ;;
	esac
	;;
      lynxos*)
	;;
      m88k*)
	;;
      mvs*)
	case $cc_basename in
	  cxx*)
	    lt_prog_compiler_pic_CXX='-W c,exportall'
	    ;;
	  *)
	    ;;
	esac
	;;
      netbsd*)
	;;
      *qnx* | *nto*)
        # QNX uses GNU C++, but need to define -shared option too, otherwise
        # it will coredump.
        lt_prog_compiler_pic_CXX='-fPIC -shared'
        ;;
      osf3* | osf4* | osf5*)
	case $cc_basename in
	  KCC*)
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    ;;
	  RCC*)
	    # Rational C++ 2.4.1
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  cxx*)
	    # Digital/Compaq C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      psos*)
	;;
      solaris*)
	case $cc_basename in
	  CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    lt_prog_compiler_wl_CXX='-Qoption ld '
	    ;;
	  gcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-PIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sunos4*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.x
	    lt_prog_compiler_pic_CXX='-pic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  lcc*)
	    # Lucid
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	esac
	;;
      tandem*)
	case $cc_basename in
	  NCC*)
	    # NonStop-UX NCC 3.20
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      vxworks*)
	;;
      *)
	lt_prog_compiler_can_build_shared_CXX=no
	;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_CXX=
    ;;
  *)
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works_CXX=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works_CXX=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
    case $lt_prog_compiler_pic_CXX in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
     esac
else
    lt_prog_compiler_pic_CXX=
     lt_prog_compiler_can_build_shared_CXX=no
fi

fi





#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works_CXX=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_cv_prog_compiler_static_works_CXX=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  case $host_os in
  aix[4-9]*)
    # If we're using GNU nm, then we don't want the "-C" option.
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    # Also, AIX nm treats weak defined symbols like other global defined
    # symbols, whereas GNU nm marks them as "W".
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    else
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    fi
    ;;
  pw32*)
    export_symbols_cmds_CXX="$ltdll_cmds"
    ;;
  cygwin* | mingw* | cegcc*)
    case $cc_basename in
    cl*) ;;
    *)
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
      ;;
    esac
    ;;
  *)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    ;;
  esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
test "$ld_shlibs_CXX" = no && can_build_shared=no

with_gnu_ld_CXX=$with_gnu_ld






#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_CXX" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_CXX=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_CXX in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  $RM conftest*
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext

	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
	  soname=conftest
	  lib=conftest
	  libobjs=conftest.$ac_objext
	  deplibs=
	  wl=$lt_prog_compiler_wl_CXX
	  pic_flag=$lt_prog_compiler_pic_CXX
	  compiler_flags=-v
	  linker_flags=-v
	  verstring=
	  output_objdir=.
	  libname=conftest
	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
	  allow_undefined_flag_CXX=
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	  then
	    lt_cv_archive_cmds_need_lc_CXX=no
	  else
	    lt_cv_archive_cmds_need_lc_CXX=yes
	  fi
	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
	else
	  cat conftest.err 1>&5
	fi
	$RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
      ;;
    esac
  fi
  ;;
esac
































































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$cc_basename in
  yes,*)
    # gcc
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'

      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    dynamic_linker='Win32 ld.exe'
    ;;

  *,cl*)
    # Native MSVC
    libname_spec='$name'
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'

    case $build_os in
    mingw*)
      sys_lib_search_path_spec=
      lt_save_ifs=$IFS
      IFS=';'
      for lt_path in $LIB
      do
        IFS=$lt_save_ifs
        # Let DOS variable expansion print the short 8.3 style file name.
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @@echo %~si"`
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
      done
      IFS=$lt_save_ifs
      # Convert to MSYS style.
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
      ;;
    cygwin*)
      # Convert to unix form, then to dos form, then back to unix form
      # but this time dos style (no spaces!) so that the unix form looks
      # like /cygdrive/c/PROGRA~1:/cygdr...
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      ;;
    *)
      sys_lib_search_path_spec="$LIB"
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      fi
      # FIXME: find the short name or the path components, as spaces are
      # common. (e.g. "Program Files" -> "PROGRA~1")
      ;;
    esac

    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
    dynamic_linker='Win32 link.exe'
    ;;

  *)
    # Assume MSVC wrapper
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    dynamic_linker='Win32 ld.exe'
    ;;
  esac
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

haiku*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  dynamic_linker="$host_os runtime_loader"
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  postinstall_cmds='chmod 555 $lib'
  # or fails outright, so override atomically:
  install_override_mode=555
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no

  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi






































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action_CXX=
if test -n "$hardcode_libdir_flag_spec_CXX" ||
   test -n "$runpath_var_CXX" ||
   test "X$hardcode_automatic_CXX" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct_CXX" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_CXX=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_CXX=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_CXX=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
$as_echo "$hardcode_action_CXX" >&6; }

if test "$hardcode_action_CXX" = relink ||
   test "$inherit_rpath_CXX" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi







  fi # test -n "$compiler"

  CC=$lt_save_CC
  CFLAGS=$lt_save_CFLAGS
  LDCXX=$LD
  LD=$lt_save_LD
  GCC=$lt_save_GCC
  with_gnu_ld=$lt_save_with_gnu_ld
  lt_cv_path_LDCXX=$lt_cv_path_LD
  lt_cv_path_LD=$lt_save_path_LD
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
fi # test "$_lt_caught_CXX_error" != yes

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu













        ac_config_commands="$ac_config_commands libtool"




# Only expand once:




# NTP has (so far) been relying on leading-edge autogen, which
# means we need the appropriate corresponding libopts as well.
# Therefore, by default:
# - use the version of libopts we ship with
# - do not install it
# - build a static copy (AC_DISABLE_SHARED - done earlier)
case "${enable_local_libopts+set}" in
 set) ;;
 *) enable_local_libopts=yes ;;
esac
case "${enable_libopts_install+set}" in
 set) ;;
 *) enable_libopts_install=no ;;
esac
enable_nls=no
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi



  ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
if eval \${$as_ac_Header+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$as_ac_Header=yes"
else
  eval "$as_ac_Header=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_ac_Header
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dir; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' x; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi


  # =================
  # AC_CHECK_HEADERS
  # =================
  for ac_header in  \
      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
      fcntl.h       libgen.h      libintl.h     memory.h \
      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
      unistd.h      utime.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  for ac_header in stdarg.h     varargs.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_arg_hdr=true;break
else
  lo_have_arg_hdr=false
fi

done


  for ac_header in string.h     strings.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_str_hdr=true;break
else
  lo_have_str_hdr=false
fi

done


  for ac_header in limits.h     sys/limits.h  values.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_lim_hdr=true;break
else
  lo_have_lim_hdr=false
fi

done


  for ac_header in inttypes.h   stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_typ_hdr=true;break
else
  lo_have_typ_hdr=false
fi

done


  # ----------------------------------------------------------------------
  # check for various programs used during the build.
  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  # ----------------------------------------------------------------------
  for ac_header in runetype.h wchar.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  $ac_includes_default
  #if HAVE_RUNETYPE_H
  # include <runetype.h>
  #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  # Check whether --enable-nls was given.
if test "${enable_nls+set}" = set; then :
  enableval=$enable_nls;
fi

  if test "x$enable_nls" != "xno" && \
  test "X${ac_cv_header_libintl_h}" = Xyes; then :


$as_echo "#define ENABLE_NLS 1" >>confdefs.h

fi

  # --------------------------------------------
  # Verify certain entries from AC_CHECK_HEADERS
  # --------------------------------------------
  ${lo_have_arg_hdr} || \
    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5

  ${lo_have_str_hdr} || \
    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5

  ${lo_have_lim_hdr} || \
    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5

  ${lo_have_typ_hdr} || \
    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5

  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  do eval as_ac_var=\${ac_cv_header_${f}_h}
     test "X${as_ac_var}" = Xyes || {
       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
     }
  done
  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
    echo '#include <stdint.h>' > inttypes.h

  # ----------------------------------------------------------------------
  # Checks for typedefs
  # ----------------------------------------------------------------------
  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
if test "x$ac_cv_type_wchar_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WCHAR_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
    $ac_includes_default
    #if HAVE_RUNETYPE_H
    # include <runetype.h>
    #endif
    #if HAVE_WCHAR_H
    # include <wchar.h>
    #endif

"
if test "x$ac_cv_type_wint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WINT_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
if test "x$ac_cv_type_int8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
if test "x$ac_cv_type_uint8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
if test "x$ac_cv_type_int16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
if test "x$ac_cv_type_uint16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
if test "x$ac_cv_type_int32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
if test "x$ac_cv_type_uint32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
if test "x$ac_cv_type_intptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
if test "x$ac_cv_type_uint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PID_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SIZE_T 1
_ACEOF


fi

  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
$as_echo_n "checking size of char*... " >&6; }
if ${ac_cv_sizeof_charp+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_charp" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (char*)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_charp=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
$as_echo "$ac_cv_sizeof_charp" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHARP $ac_cv_sizeof_charp
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF



  # ------------
  # AC_CHECK_LIB
  # ------------
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
$as_echo_n "checking for pathfind in -lgen... " >&6; }
if ${ac_cv_lib_gen_pathfind+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgen  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pathfind ();
int
main ()
{
return pathfind ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gen_pathfind=yes
else
  ac_cv_lib_gen_pathfind=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGEN 1
_ACEOF

  LIBS="-lgen $LIBS"

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
$as_echo_n "checking for gettext in -lintl... " >&6; }
if ${ac_cv_lib_intl_gettext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lintl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gettext ();
int
main ()
{
return gettext ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_intl_gettext=yes
else
  ac_cv_lib_intl_gettext=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
$as_echo "$ac_cv_lib_intl_gettext" >&6; }
if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBINTL 1
_ACEOF

  LIBS="-lintl $LIBS"

fi

  for ac_func in vprintf
do :
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
if test "x$ac_cv_func_vprintf" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VPRINTF 1
_ACEOF

ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
if test "x$ac_cv_func__doprnt" = xyes; then :

$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h

fi

fi
done


  for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
                 strrchr strsignal fchmod fstat chmod
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

  while :
  do
      POSIX_SHELL=`which bash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`which dash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=/usr/xpg4/bin/sh
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`/bin/sh -c '
          exec 2>/dev/null
          if ! true ; then exit 1 ; fi
          echo /bin/sh'`
      test -x "$POSIX_SHELL" && break
      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  done

cat >>confdefs.h <<_ACEOF
#define POSIX_SHELL "${POSIX_SHELL}"
_ACEOF





  LIBOPTS_BUILD_BLOCKED=true


  NEED_LIBOPTS_DIR=''

  # Check whether --enable-local-libopts was given.
if test "${enable_local_libopts+set}" = set; then :
  enableval=$enable_local_libopts;
    if test x$enableval = xyes ; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
       NEED_LIBOPTS_DIR=true
       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
    fi
fi


  # Check whether --enable-libopts-install was given.
if test "${enable_libopts_install+set}" = set; then :
  enableval=$enable_libopts_install;
fi

   if test "X${enable_libopts_install}" = Xyes; then
  INSTALL_LIBOPTS_TRUE=
  INSTALL_LIBOPTS_FALSE='#'
else
  INSTALL_LIBOPTS_TRUE='#'
  INSTALL_LIBOPTS_FALSE=
fi


  if test -z "${NEED_LIBOPTS_DIR}" ; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
$as_echo_n "checking whether autoopts-config can be found... " >&6; }

# Check whether --with-autoopts-config was given.
if test "${with_autoopts_config+set}" = set; then :
  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
$as_echo_n "checking whether autoopts-config is specified... " >&6; }
if ${lo_cv_with_autoopts_config+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if autoopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=autoopts-config
        elif libopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=libopts-config
        else lo_cv_with_autoopts_config=no ; fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
$as_echo "$lo_cv_with_autoopts_config" >&6; }

fi
 # end of AC_ARG_WITH

     if ${lo_cv_test_autoopts+:} false; then :
  $as_echo_n "(cached) " >&6
else

        if test -z "${lo_cv_with_autoopts_config}" \
                -o X"${lo_cv_with_autoopts_config}" = Xno
        then
           if autoopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=autoopts-config
           elif libopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=libopts-config
           else lo_cv_with_autoopts_config=false ; fi
        fi
        lo_cv_test_autoopts=`
            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
        then lo_cv_test_autoopts=no ; fi

fi
 # end of CACHE_VAL
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
$as_echo "${lo_cv_test_autoopts}" >&6; }

     if test "X${lo_cv_test_autoopts}" != Xno
     then
        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
     else
        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
        NEED_LIBOPTS_DIR=true
     fi
  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
    NEED_LIBOPTS_DIR=''
  fi
   if test -n "${NEED_LIBOPTS_DIR}"; then
  NEED_LIBOPTS_TRUE=
  NEED_LIBOPTS_FALSE='#'
else
  NEED_LIBOPTS_TRUE='#'
  NEED_LIBOPTS_FALSE=
fi



  LIBOPTS_DIR=sntp/libopts


# end of AC_DEFUN of LIBOPTS_CHECK_COMMON

  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD




# Check whether --enable-local-libevent was given.
if test "${enable_local_libevent+set}" = set; then :
  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
else
  ntp_use_local_libevent=${ntp_use_local_libevent-detect}

fi






# Expose a cross-compilation indicator to makefiles
 if test $build != $host; then
  NTP_CROSSCOMPILE_TRUE=
  NTP_CROSSCOMPILE_FALSE='#'
else
  NTP_CROSSCOMPILE_TRUE='#'
  NTP_CROSSCOMPILE_FALSE=
fi



ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi


            # Check whether --enable-c99-snprintf was given.
if test "${enable_c99_snprintf+set}" = set; then :
  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
else
  force_c99_snprintf=no

fi

    case "$force_c99_snprintf" in
     yes)
	hw_force_rpl_snprintf=yes
	hw_force_rpl_vsnprintf=yes
    esac






  for ac_header in $ac_header_list
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done







      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
if test "x$ac_cv_func_vsnprintf" = xyes; then :
  hw_cv_func_vsnprintf=yes
else
  hw_cv_func_vsnprintf=no
fi

  if test "$hw_cv_func_vsnprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
if ${hw_cv_func_vsnprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_vsnprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if HAVE_STDARG_H
          #include <stdarg.h>
          #endif
          #include <stdio.h>
          static int testprintf(char *buf, size_t size, const char *format, ...)
          {
            int result;
            va_list ap;
            va_start(ap, format);
            result = vsnprintf(buf, size, format, ap);
            va_end(ap);
            return result;
          }
int
main ()
{
char buf[43];
          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_vsnprintf_c99=yes
else
  hw_cv_func_vsnprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
else
  hw_cv_func_vsnprintf_c99=no
fi

$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
  hw_use_rpl_vsnprintf=yes
else
  hw_use_rpl_vsnprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
$as_echo "$hw_use_rpl_vsnprintf" >&6; }
  if test "$hw_use_rpl_vsnprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_vsnprintf=no} = no; then :

$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h

fi
    for ac_header in inttypes.h locale.h stddef.h stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
_ACEOF


fi
ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
_ACEOF


fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
$as_echo_n "checking for long double... " >&6; }
if ${ac_cv_type_long_double+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$GCC" = yes; then
       ac_cv_type_long_double=yes
     else
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* The Stardent Vistra knows sizeof (long double), but does
		 not support it.  */
	      long double foo = 0.0L;
int
main ()
{
static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
	      sizeof (double) <= sizeof (long double))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_long_double=yes
else
  ac_cv_type_long_double=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
$as_echo "$ac_cv_type_long_double" >&6; }
  if test $ac_cv_type_long_double = yes; then

$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
$as_echo_n "checking for long long int... " >&6; }
if ${ac_cv_type_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  			if test "$cross_compiling" = yes; then :
  ac_cv_type_long_long_int=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
	       #ifndef LLONG_MAX
	       # define HALF \
			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
	       # define LLONG_MAX (HALF - 1 + HALF)
	       #endif
int
main ()
{
long long int n = 1;
	       int i;
	       for (i = 0; ; i++)
		 {
		   long long int m = n << i;
		   if (m >> i != n)
		     return 1;
		   if (LLONG_MAX / 2 < m)
		     break;
		 }
	       return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_type_long_long_int=yes
else
  ac_cv_type_long_long_int=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

else
  ac_cv_type_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
$as_echo "$ac_cv_type_long_long_int" >&6; }
  if test $ac_cv_type_long_long_int = yes; then

$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
$as_echo_n "checking for unsigned long long int... " >&6; }
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_type_unsigned_long_long_int=yes
else
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h

  fi

    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
if test "x$ac_cv_type_intmax_t" = xyes; then :

$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_long_long_int = yes \
       && ac_type='long long int' \
       || ac_type='long int'

cat >>confdefs.h <<_ACEOF
#define intmax_t $ac_type
_ACEOF

fi




  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
if test "x$ac_cv_type_uintmax_t" = xyes; then :

$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_unsigned_long_long_int = yes \
       && ac_type='unsigned long long int' \
       || ac_type='unsigned long int'

cat >>confdefs.h <<_ACEOF
#define uintmax_t $ac_type
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h

else
  for ac_type in 'unsigned int' 'unsigned long int' \
	'unsigned long long int'; do
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

cat >>confdefs.h <<_ACEOF
#define uintptr_t $ac_type
_ACEOF

	  ac_type=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       test -z "$ac_type" && break
     done
fi


    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi

    for ac_func in localeconv
do :
  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
if test "x$ac_cv_func_localeconv" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LOCALECONV 1
_ACEOF

fi
done


  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi


    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
if test "x$ac_cv_func_snprintf" = xyes; then :
  hw_cv_func_snprintf=yes
else
  hw_cv_func_snprintf=no
fi

  if test "$hw_cv_func_snprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
if ${hw_cv_func_snprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_snprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
char buf[43];
          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_snprintf_c99=yes
else
  hw_cv_func_snprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
$as_echo "$hw_cv_func_snprintf_c99" >&6; }
else
  hw_cv_func_snprintf_c99=no
fi

$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
  hw_use_rpl_snprintf=yes
else
  hw_use_rpl_snprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
$as_echo "$hw_use_rpl_snprintf" >&6; }
  if test "$hw_use_rpl_snprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_snprintf=no} = no; then :

$as_echo "#define snprintf rpl_snprintf" >>confdefs.h

fi

  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi





# HMS: Save $LIBS and empty it.
# any LIBS we add here should go in to LDADD_LIBNTP

__LIBS=$LIBS
LIBS=





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
$as_echo_n "checking for directory path separator... " >&6; }
if ${ntp_cv_dir_sep+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$ntp_cv_dir_sep" in
	 '')
	    case "$target_os" in
	     *djgpp | *mingw32* | *emx*)
		ntp_cv_dir_sep="'\\'"
		;;
	     *)
		ntp_cv_dir_sep="'/'"
		;;
	    esac
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
$as_echo "$ntp_cv_dir_sep" >&6; }

cat >>confdefs.h <<_ACEOF
#define DIR_SEP $ntp_cv_dir_sep
_ACEOF



    NTP_ORIG_LIBS="$LIBS"

# Check whether --with-lineeditlibs was given.
if test "${with_lineeditlibs+set}" = set; then :
  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
else
  use_lineeditlibs="edit,editline"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
$as_echo_n "checking line editing libraries... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
$as_echo "$use_lineeditlibs" >&6; }
    case "$use_lineeditlibs" in
     no)
	ntp_lib_lineedit=no
	;;
     *)
	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
	    for term_lib in "" termcap curses ncurses; do
		case "$term_lib" in
		 '')
		    TRY_LIB="-l$lineedit_lib"
		    ;;
		 *)
		    TRY_LIB="-l$lineedit_lib -l$term_lib"
		    ;;
		esac
		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char readline ();
int
main ()
{
return readline ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		case "$ntp_lib_lineedit" in
		 '')
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		    ;;
		 *)
		    # Use readline()
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
		    break
		esac
		case "$term_lib" in
		 '')
		    # do not try el_gets without a terminal library
		    ;;
		 *)
		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char el_gets ();
int
main ()
{
return el_gets ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		    case "$ntp_lib_lineedit" in
		     '')
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			;;
		     *) # Use el_gets()
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			break
			;;
		    esac	# $ntp_lib_lineedit
		esac		# $term_lib
	    done
	    case "$ntp_lib_lineedit" in
	     '')
		;;
	     *)
		break
		;;
	    esac
	done
	LIBS="$NTP_ORIG_LIBS"
	;;
    esac	# $use_lineeditlibs

    case "$ntp_lib_lineedit" in
     '')
	ntp_lib_lineedit="no"
	;;
     no)
	;;
     *)
	EDITLINE_LIBS="$ntp_lib_lineedit"

	;;
    esac	# $ntp_lib_lineedit

    case "$ntp_lib_lineedit" in
     no)
	;;
     *)
	for ac_header in readline.h readline/readline.h histedit.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	for ac_header in history.h readline/history.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


	case "$ac_cv_header_histedit_h" in
	 yes)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
$as_echo_n "checking number of arguments to el_init()... " >&6; }
if ${ntp_cv_el_init_args+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    #include <stdio.h>
			    #include <histedit.h>

int
main ()
{

			    el_init("conftest", stdin, stdout, stderr);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_el_init_args=4
else
  ntp_cv_el_init_args=3

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
$as_echo "$ntp_cv_el_init_args" >&6; }

cat >>confdefs.h <<_ACEOF
#define EL_INIT_ARGS $ntp_cv_el_init_args
_ACEOF

	esac

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
$as_echo_n "checking whether readline supports history... " >&6; }

	ntp_lib_lineedit_history="no"
	ORIG_LIBS="$LIBS"
	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char add_history ();
int
main ()
{
return add_history ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit_history="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LIBS="$ORIG_LIBS"

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
$as_echo "$ntp_lib_lineedit_history" >&6; }

	case "$ntp_lib_lineedit_history" in
	 yes)

$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h

	esac
    esac	# $ntp_lib_lineedit
    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
    { ORIG_LIBS=; unset ORIG_LIBS;}
    { TRY_LIB=; unset TRY_LIB;}
    { use_lineeditlibs=; unset use_lineeditlibs;}


LIBM=
case "$host" in
 *-*-darwin*)
    ;;
 *)
    _libs=$LIBS
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
$as_echo_n "checking for library containing cos... " >&6; }
if ${ac_cv_search_cos+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cos ();
int
main ()
{
return cos ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' m; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_cos=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_cos+:} false; then :
  break
fi
done
if ${ac_cv_search_cos+:} false; then :

else
  ac_cv_search_cos=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
$as_echo "$ac_cv_search_cos" >&6; }
ac_res=$ac_cv_search_cos
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  LIBM="-lm"
fi

    LIBS=$_libs
    ;;
esac

{ _libs=; unset _libs;}


for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
$as_echo_n "checking for working alloca.h... " >&6; }
if ${ac_cv_working_alloca_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <alloca.h>
int
main ()
{
char *p = (char *) alloca (2 * sizeof (int));
			  if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_working_alloca_h=yes
else
  ac_cv_working_alloca_h=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
$as_echo "$ac_cv_working_alloca_h" >&6; }
if test $ac_cv_working_alloca_h = yes; then

$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
$as_echo_n "checking for alloca... " >&6; }
if ${ac_cv_func_alloca_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  ifdef HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
void *alloca (size_t);
#    endif
#   endif
#  endif
# endif
#endif

int
main ()
{
char *p = (char *) alloca (1);
				    if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_func_alloca_works=yes
else
  ac_cv_func_alloca_works=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
$as_echo "$ac_cv_func_alloca_works" >&6; }

if test $ac_cv_func_alloca_works = yes; then

$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h

else
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble.  Some versions do not even contain alloca or
# contain a buggy version.  If you still want to use their alloca,
# use ar to extract alloca.o from them instead of compiling alloca.c.

ALLOCA=\${LIBOBJDIR}alloca.$ac_objext

$as_echo "#define C_ALLOCA 1" >>confdefs.h


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
if ${ac_cv_os_cray+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if defined CRAY && ! defined CRAY2
webecray
#else
wenotbecray
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "webecray" >/dev/null 2>&1; then :
  ac_cv_os_cray=yes
else
  ac_cv_os_cray=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
$as_echo "$ac_cv_os_cray" >&6; }
if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :

cat >>confdefs.h <<_ACEOF
#define CRAY_STACKSEG_END $ac_func
_ACEOF

    break
fi

  done
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
$as_echo_n "checking stack direction for C alloca... " >&6; }
if ${ac_cv_c_stack_direction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_c_stack_direction=0
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}

int
main ()
{
  return find_stack_direction () < 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_stack_direction=1
else
  ac_cv_c_stack_direction=-1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
$as_echo "$ac_cv_c_stack_direction" >&6; }
cat >>confdefs.h <<_ACEOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
_ACEOF


fi

ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRERROR_R $ac_have_decl
_ACEOF

for ac_func in strerror_r
do :
  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
if test "x$ac_cv_func_strerror_r" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRERROR_R 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
if ${ac_cv_func_strerror_r_char_p+:} false; then :
  $as_echo_n "(cached) " >&6
else

    ac_cv_func_strerror_r_char_p=no
    if test $ac_cv_have_decl_strerror_r = yes; then
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  char *p = strerror_r (0, buf, sizeof buf);
	  return !p || x;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    else
      # strerror_r is not declared.  Choose between
      # systems that have relatively inaccessible declarations for the
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
      # former has a strerror_r that returns char*, while the latter
      # has a strerror_r that returns `int'.
      # This test should segfault on the DEC system.
      if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
	extern char *strerror_r ();
int
main ()
{
char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  return ! isalpha (x);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
if test $ac_cv_func_strerror_r_char_p = yes; then

$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h

fi


ac_busted_vpath_in_make=no
case "$build" in
 *-*-irix6.1*)	# 64 bit only
    # busted vpath?
    ;;
 *-*-irix6*)	# 6.2 (and later?)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-solaris2.5.1)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-unicosmp*)
    ac_busted_vpath_in_make=yes
    ;;
esac

case "$ac_busted_vpath_in_make$srcdir" in
 yes.|no*)
    ;;
 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
    esac
    ;;
esac

case "$host" in
 *-*-aix4*)
	# Bug 2516:
	# Was *-*-aix[[4-9]]*
	# XXX only verified thru AIX6.  But...
	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
	# that this support would be in 5.3, removed in 6, and added back.
	#
	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
	# IBM pulls its thumbs out long enough to implement clock_settime,
	# this conditional will need to change.  Maybe use AC_TRY_RUN
	# instead to try to set the time to itself and check errno.
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
$as_echo_n "checking for library containing clock_gettime... " >&6; }
if ${ac_cv_search_clock_gettime+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char clock_gettime ();
int
main ()
{
return clock_gettime ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_clock_gettime=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_clock_gettime+:} false; then :
  break
fi
done
if ${ac_cv_search_clock_gettime+:} false; then :

else
  ac_cv_search_clock_gettime=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
$as_echo "$ac_cv_search_clock_gettime" >&6; }
ac_res=$ac_cv_search_clock_gettime
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_clock_gettime" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
 esac

fi

    for ac_func in clock_getres clock_gettime clock_settime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac

for ac_func in getclock stime timegm strlcpy strlcat
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


#
for ac_header in errno.h sys/socket.h sys/types.h time.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in net/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif

"
if test "x$ac_cv_header_net_if_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_H 1
_ACEOF

fi

done

case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
if ${ntp_cv_predecl_mpinfou+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    np_cv_predecl_mpinfou=no
	    case "$ac_cv_header_net_if_h" in
	     no)
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    typedef union mpinfou {
				    struct pdk_mpinfo *pdkptr;
				    struct mpinfo *pikptr;
			    } mpinfou_t;
			    #ifdef HAVE_SYS_SOCKET_H
			    # include <sys/socket.h>
			    #endif
			    #include <net/if.h>

int
main ()
{



  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

			ntp_cv_predecl_mpinfou=yes
			ac_cv_header_net_if_h=yes


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
$as_echo "$ntp_cv_predecl_mpinfou" >&6; }
    case "$ntp_cv_predecl_mpinfou" in
     yes)
	cat >>confdefs.h <<_ACEOF
#ifndef MPINFOU_PREDECLARED
# define MPINFOU_PREDECLARED
typedef union mpinfou {
	struct pdk_mpinfo *pdkptr;
	struct mpinfo *pikptr;
} mpinfou_t;
#endif
_ACEOF

    esac
esac

case "$host" in
 *-linux*)
    for ac_header in linux/if_addr.h
do :
  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
	#ifdef HAVE_SYS_SOCKET_H
	# include <sys/socket.h>
	#endif

"
if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LINUX_IF_ADDR_H 1
_ACEOF

fi

done

esac

for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
for ac_header in sys/sysctl.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
    #if defined HAVE_SYS_PARAM_H
    # include <sys/param.h>
    #endif

"
if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SYSCTL_H 1
_ACEOF

fi

done

for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in resolv.h
do :
  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_ARPA_NAMESER_H
    # include <arpa/nameser.h>
    #endif

"
if test "x$ac_cv_header_resolv_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RESOLV_H 1
_ACEOF

fi

done


for ac_header in net/if_var.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
    #if HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif

"
if test "x$ac_cv_header_net_if_var_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_VAR_H 1
_ACEOF

fi

done


for ac_header in netinet/ip.h netinet/in_var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_VAR_H
    # include <net/if_var.h>
    #endif
    #ifdef HAVE_NETINET_IN_SYSTM_H
    # include <netinet/in_systm.h>
    #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


# HMS: Do we need to check for -lsocket before or after these tests?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
$as_echo_n "checking for library containing inet_pton... " >&6; }
if ${ac_cv_search_inet_pton+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_pton ();
int
main ()
{
return inet_pton ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' nsl; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_pton=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_pton+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_pton+:} false; then :

else
  ac_cv_search_inet_pton=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
$as_echo "$ac_cv_search_inet_pton" >&6; }
ac_res=$ac_cv_search_inet_pton
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_pton" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
 esac

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
$as_echo_n "checking for library containing inet_ntop... " >&6; }
if ${ac_cv_search_inet_ntop+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_ntop ();
int
main ()
{
return inet_ntop ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_ntop=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_ntop+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_ntop+:} false; then :

else
  ac_cv_search_inet_ntop=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
$as_echo "$ac_cv_search_inet_ntop" >&6; }
ac_res=$ac_cv_search_inet_ntop
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_ntop" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
 esac

fi


# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
# avoid keying on the OS name:  If we find socket functions in
# libsocket, next try for them in libxnet without libsocket, if found,
# list both.  If we simply tested libxnet first, we would find the
# functions there and never add libsocket.  See also [Bug 660]
# http://bugs.ntp.org/show_bug.cgi?id=660#c9
saved_LIBS=$LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
$as_echo_n "checking for library containing setsockopt... " >&6; }
if ${ac_cv_search_setsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char setsockopt ();
int
main ()
{
return setsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' socket; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_setsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_setsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_setsockopt+:} false; then :

else
  ac_cv_search_setsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
$as_echo "$ac_cv_search_setsockopt" >&6; }
ac_res=$ac_cv_search_setsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_setsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
 esac

fi

case "$ac_cv_search_setsockopt" in
 -lsocket)
    LIBS="$saved_LIBS"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
$as_echo_n "checking for library containing getsockopt... " >&6; }
if ${ac_cv_search_getsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getsockopt ();
int
main ()
{
return getsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' xnet; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_getsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_getsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_getsockopt+:} false; then :

else
  ac_cv_search_getsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
$as_echo "$ac_cv_search_getsockopt" >&6; }
ac_res=$ac_cv_search_getsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_getsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
 esac

fi

    # XXX Possible trouble here - reading the comments above and looking at the
    # code below I wonder if we'll add -lxnet when we don't need it.
    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
    # there when it is not needed?
    case "$ac_cv_search_getsockopt" in
     -lxnet)
	LIBS="-lxnet -lsocket $saved_LIBS"
	;;
     *) LIBS="-lsocket $saved_LIBS"
	;;
    esac
    ;;
esac
{ saved_LIBS=; unset saved_LIBS;}

# Bug 2427 - look for recvmsg here.
for ac_func in recvmsg
do :
  ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
if test "x$ac_cv_func_recvmsg" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RECVMSG 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if ${ac_cv_c_inline+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }

case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac


case "$ac_cv_c_inline" in
 '')
    ;;
 *)

$as_echo "#define HAVE_INLINE 1" >>confdefs.h


esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if ${ac_cv_header_time+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_time=yes
else
  ac_cv_header_time=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h

fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
$as_echo_n "checking size of time_t... " >&6; }
if ${ac_cv_sizeof_time_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_time_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (time_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_time_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
$as_echo "$ac_cv_sizeof_time_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
$as_echo_n "checking whether char is unsigned... " >&6; }
if ${ac_cv_c_char_unsigned+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_char_unsigned=no
else
  ac_cv_c_char_unsigned=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
$as_echo "$ac_cv_c_char_unsigned" >&6; }
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h

fi
		# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
$as_echo_n "checking size of signed char... " >&6; }
if ${ac_cv_sizeof_signed_char+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_signed_char" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (signed char)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_signed_char=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
$as_echo "$ac_cv_sizeof_signed_char" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
_ACEOF


ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
if test "x$ac_cv_type_s_char" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_S_CHAR 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
if test "x$ac_cv_type_long_long" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF



case "$ac_cv_type_long_long" in
 no)
    ;;
 *)
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
if ${ac_cv_sizeof_long_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF


    ;;
esac

case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
 *yes)
    # We have a typedef for s_char.  Might as well believe it...
    ;;
 no0no)
    # We have signed chars, can't say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 no1no)
    # We have signed chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 yes0no)
    # We have unsigned chars, can't say 'signed char', no s_char typedef.
    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
    ;;
 yes1no)
    # We have unsigned chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
if ${ac_cv_type_uid_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "uid_t" >/dev/null 2>&1; then :
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; }
if test $ac_cv_type_uid_t = no; then

$as_echo "#define uid_t int" >>confdefs.h


$as_echo "#define gid_t int" >>confdefs.h

fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
$as_echo_n "checking if we're including debugging code... " >&6; }
# Check whether --enable-debugging was given.
if test "${enable_debugging+set}" = set; then :
  enableval=$enable_debugging; ntp_ok=$enableval
else
  ntp_ok=yes

fi

case "$ntp_ok" in
 yes)

$as_echo "#define DEBUG 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }



# check if we can compile with pthreads
for ac_header in semaphore.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
if test "x$ac_cv_header_semaphore_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SEMAPHORE_H 1
_ACEOF

fi

done

for ac_func in socketpair
do :
  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
if test "x$ac_cv_func_socketpair" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKETPAIR 1
_ACEOF

fi
done

# Check whether --enable-thread-support was given.
if test "${enable_thread_support+set}" = set; then :
  enableval=$enable_thread_support;
else
  enable_thread_support=yes

fi

have_pthreads=no
case "$enable_thread_support" in
 yes)
    ol_found_pthreads=no



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

# OpenLDAP --with-threads

# Check whether --with-threads was given.
if test "${with_threads+set}" = set; then :
  withval=$with_threads;
	ol_arg=invalid
	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
	fi
	ol_with_threads="$ol_arg"

else
  	ol_with_threads="auto"
fi
# end --with-threads


case "$ol_with_threads$host" in
 auto*-*-solaris2.[0-6])
        ol_with_threads=no
    ;;
esac


ol_aix_threads=no
case "$host" in
*-*-aix*) 	if test -z "$CC" ; then
		case "$ol_with_threads" in
		auto | yes |  posix) ol_aix_threads=yes ;;
		esac
	fi
;;
esac

if test $ol_aix_threads = yes ; then
	if test -z "${CC}" ; then
		for ac_prog in cc_r xlc_r cc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$CC" && break
done


		if test "$CC" = cc ; then
						if test $ol_with_threads != auto ; then
				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
			fi
			ol_with_threads=no
  		fi
	fi

	case ${CC} in cc_r | xlc_r)
		ol_with_threads=posix
		ol_cv_pthread_create=yes
		;;
	esac
fi

ol_link_threads=no
ol_with_yielding_select=${ol_with_yielding_select-auto}

case $ol_with_threads in auto | yes | nt)


	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
if test "x$ac_cv_func__beginthread" = xyes; then :

fi


	if test $ac_cv_func__beginthread = yes ; then

$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h

		ol_cv_nt_threads=yes
	fi


	if test "$ol_cv_nt_threads" = yes ; then
		ol_link_threads=nt
		ol_with_threads=found
		ol_with_yielding_select=yes


$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h


$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h

	fi

	if test $ol_with_threads = nt ; then
		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | posix)

	for ac_header in pthread.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_H 1
_ACEOF

fi

done


	if test $ac_cv_header_pthread_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
$as_echo_n "checking POSIX thread version... " >&6; }
if ${ol_cv_pthread_version+:} false; then :
d14016 6
a14021 2

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a14023 2
#		include <pthread.h>

a14027 2
		int i = PTHREAD_CREATE_JOINABLE;

d14032 51
a14082 1
if ac_fn_c_try_compile "$LINENO"; then :
d14084 6
a14089 3
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
d14091 11
a14101 8
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_detach" >/dev/null 2>&1; then :
  ol_cv_pthread_version=10
else
  ol_cv_pthread_version=8
fi
rm -f conftest*
d14103 25
a14127 1
else
d14129 8
a14136 2
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14138 10
a14147 4
#		include <pthread.h>
#		ifdef PTHREAD_CREATE_UNDETACHED
		draft7
#		endif
d14149 3
a14151 5
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft7" >/dev/null 2>&1; then :
  ol_cv_pthread_version=7
else
d14153 12
a14164 3
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
d14166 11
a14176 5
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
  ol_cv_pthread_version=6
else
d14178 22
a14199 2
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14201 8
a14208 4
#		include <pthread.h>
#ifdef		PTHREAD_MUTEX_INITIALIZER
		draft5
#endif
d14210 21
a14230 8
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft5" >/dev/null 2>&1; then :
  ol_cv_pthread_version=5
else
  ol_cv_pthread_version=4
fi
rm -f conftest*
d14232 10
a14241 2
fi
rm -f conftest*
d14243 6
a14248 2
fi
rm -f conftest*
d14250 7
a14256 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d14258 3
a14261 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
$as_echo "$ol_cv_pthread_version" >&6; }
d14263 2
a14264 29

		if test $ol_cv_pthread_version != 0 ; then

cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREADS $ol_cv_pthread_version
_ACEOF

		else
			as_fn_error $? "unknown pthread version" "$LINENO" 5
		fi

		# consider threads found
		ol_with_threads=found


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
d14266 2
a14267 3
rm -f conftest*


a14268 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then
a14269 1
$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
a14270 1
	fi
a14272 11
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
#ifdef _POSIX_THREAD_IS_GNU_PTH
	__gnu_pth__;
#endif
a14273 8
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
  ol_cv_header_gnu_pth_pthread_h=yes
else
  ol_cv_header_gnu_pth_pthread_h=no
fi
rm -f conftest*
a14275 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
a14277 8
		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
			for ac_header in sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_H 1
_ACEOF
a14278 1
fi
a14279 1
done
a14280 1
		fi
a14282 5
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
$as_echo_n "checking for pthread_create in default libraries... " >&6; }
if ${ol_cv_pthread_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14283 3
			if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14284 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14285 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14286 3
int
main ()
{
a14287 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14288 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14289 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14290 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14291 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14292 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14293 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14294 1
	return 0;
a14295 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14297 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14298 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14300 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14301 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14302 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14303 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14304 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14305 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14306 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14307 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14308 1
	return 0;
a14309 1
}
a14310 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14311 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
$as_echo "$ol_cv_pthread_create" >&6; }
a14312 4
		if test $ol_cv_pthread_create != no ; then
			ol_link_threads=posix
			ol_link_pthreads=""
		fi
a14313 8
		# Pthread try link: -kthread (ol_cv_pthread_kthread)
if test "$ol_link_threads" = no ; then
	# try -kthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
$as_echo_n "checking for pthread link with -kthread... " >&6; }
if ${ol_cv_pthread_kthread+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14314 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-kthread $LIBS"
a14315 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14316 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14317 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14318 3
int
main ()
{
a14319 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14320 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14321 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14322 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14323 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14324 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14325 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14326 1
	return 0;
a14327 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14329 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14330 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14332 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14333 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14334 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14335 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14336 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14337 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14338 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14339 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14340 1
	return 0;
a14341 1
}
a14342 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a14344 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14345 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
$as_echo "$ol_cv_pthread_kthread" >&6; }
a14346 5
	if test $ol_cv_pthread_kthread = yes ; then
		ol_link_pthreads="-kthread"
		ol_link_threads=posix
	fi
fi
a14347 8
		# Pthread try link: -pthread (ol_cv_pthread_pthread)
if test "$ol_link_threads" = no ; then
	# try -pthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
$as_echo_n "checking for pthread link with -pthread... " >&6; }
if ${ol_cv_pthread_pthread+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14348 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthread $LIBS"
a14349 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14350 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14351 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14352 3
int
main ()
{
a14353 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14354 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14355 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14356 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14357 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14358 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14359 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14361 6
a14366 1
	return 0;
d14368 13
a14380 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_pthread=yes
d14382 15
a14396 1
  ol_cv_pthread_pthread=no
a14397 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14399 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14400 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14402 4
int main(argc, argv)
	int argc;
	char **argv;
{
d14404 7
a14410 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14412 6
a14417 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14419 4
a14422 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
d14424 4
a14427 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14429 11
a14439 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d14441 5
a14445 6
	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
d14447 7
a14453 3

	return 0;

a14454 1

d14456 2
a14457 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthread=yes
d14459 1
a14459 1
  ol_cv_pthread_pthread=no
d14461 3
a14463 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14465 5
d14471 3
a14473 3

		# restore the LIBS
		LIBS="$ol_LIBS"
a14475 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
$as_echo "$ol_cv_pthread_pthread" >&6; }
d14477 1
a14477 5
	if test $ol_cv_pthread_pthread = yes ; then
		ol_link_pthreads="-pthread"
		ol_link_threads=posix
	fi
fi
d14479 8
a14486 6
		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
if test "$ol_link_threads" = no ; then
	# try -pthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
$as_echo_n "checking for pthread link with -pthreads... " >&6; }
if ${ol_cv_pthread_pthreads+:} false; then :
d14489 3
a14491 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthreads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14494 5
a14498 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14500 1
a14500 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d14504 1
a14504 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d14510 1
a14510 1
  ol_cv_pthread_pthreads=yes
d14512 1
a14512 1
  ol_cv_pthread_pthreads=no
d14516 15
d14532 3
a14534 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14537 5
a14541 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14543 3
a14545 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d14547 3
a14549 55
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

a14550 1

d14552 2
a14553 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthreads=yes
d14555 1
a14555 1
  ol_cv_pthread_pthreads=no
d14557 3
a14559 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14561 8
a14568 21


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
$as_echo "$ol_cv_pthread_pthreads" >&6; }

	if test $ol_cv_pthread_pthreads = yes ; then
		ol_link_pthreads="-pthreads"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
if test "$ol_link_threads" = no ; then
	# try -mthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
$as_echo_n "checking for pthread link with -mthreads... " >&6; }
if ${ol_cv_pthread_mthreads+:} false; then :
d14571 3
a14573 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-mthreads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14576 5
a14580 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14582 1
a14582 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d14586 1
a14586 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d14592 1
a14592 1
  ol_cv_pthread_mthreads=yes
d14594 1
a14594 1
  ol_cv_pthread_mthreads=no
d14598 11
d14610 3
a14612 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d14615 5
a14619 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d14621 3
a14623 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d14625 3
a14627 1
	return (void *) (p == NULL);
d14629 15
d14646 1
a14646 16
int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14647 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14648 38
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_mthreads=yes
else
  ol_cv_pthread_mthreads=no
d14650 2
a14651 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14655 1
a14655 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a14656 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
$as_echo "$ol_cv_pthread_mthreads" >&6; }
a14657 4
	if test $ol_cv_pthread_mthreads = yes ; then
		ol_link_pthreads="-mthreads"
		ol_link_threads=posix
	fi
d14660 2
a14661 8
		# Pthread try link: -thread (ol_cv_pthread_thread)
if test "$ol_link_threads" = no ; then
	# try -thread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
$as_echo_n "checking for pthread link with -thread... " >&6; }
if ${ol_cv_pthread_thread+:} false; then :
  $as_echo_n "(cached) " >&6
else
d14663 5
a14667 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-thread $LIBS"
d14669 4
a14672 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14674 2
a14675 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d14677 2
a14678 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d14680 13
a14692 3
int
main ()
{
d14694 2
a14695 3
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
a14696 3
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14698 1
a14698 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14700 2
a14701 6
	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
d14703 5
a14707 1
	status = pthread_attr_setdetachstate(&attr, detach);
d14709 21
a14729 4
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
a14730 5
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14732 4
a14735 6
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
d14738 5
a14742 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14744 12
a14755 1
	return 0;
d14757 1
a14757 2
  ;
  return 0;
d14759 17
a14775 5
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_thread=yes
else
  ol_cv_pthread_thread=no
d14777 1
a14777 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d14780 3
a14782 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d14784 15
a14798 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d14800 2
a14801 9

int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
a14802 3
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d14804 1
a14804 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d14806 2
a14807 6
	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
d14809 5
a14813 1
	status = pthread_attr_setdetachstate(&attr, detach);
d14815 21
a14835 4
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
a14836 5
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d14838 4
a14841 6
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
d14844 5
a14848 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14850 12
a14861 1
	return 0;
d14863 1
d14865 20
a14885 8
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_thread=yes
else
  ol_cv_pthread_thread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d14887 9
d14897 4
d14902 4
a14905 3
		# restore the LIBS
		LIBS="$ol_LIBS"

a14906 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
$as_echo "$ol_cv_pthread_thread" >&6; }
a14907 5
	if test $ol_cv_pthread_thread = yes ; then
		ol_link_pthreads="-thread"
		ol_link_threads=posix
	fi
fi
a14909 8
		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
  $as_echo_n "(cached) " >&6
else
a14910 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
a14911 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14912 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14913 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14914 3
int
main ()
{
a14915 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14916 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14917 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14918 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14919 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14920 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a14921 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a14922 1
	return 0;
d14924 9
a14932 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
d14934 18
a14951 1
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
a14952 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a14954 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a14955 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a14957 4
int main(argc, argv)
	int argc;
	char **argv;
{
a14958 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a14959 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a14960 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a14961 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a14962 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a14963 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d14965 9
a14973 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d14975 10
a14984 1
	return 0;
d14986 8
a14993 1
}
d14995 6
a15000 9
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
a15002 2
		# restore the LIBS
		LIBS="$ol_LIBS"
a15003 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
a15004 4
	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
d15006 5
d15012 1
a15012 12
		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc $LIBS"
a15013 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a15014 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a15015 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
a15016 3
int
main ()
{
a15017 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a15018 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
a15019 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a15020 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
a15021 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a15022 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a15023 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a15024 1
	return 0;
d15026 1
a15026 14
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
else
  ol_cv_pthread_lpthread_lmach_lexc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a15028 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a15029 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15031 1
a15032 4
int main(argc, argv)
	int argc;
	char **argv;
{
a15033 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15035 10
a15044 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d15046 19
a15064 2
	status = pthread_attr_init(&attr);
	if( status ) return status;
a15065 16
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;
d15067 11
a15077 3
	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d15079 8
a15086 3
	status = pthread_detach( &t );
	if( status ) return errno;
#endif
d15088 7
a15094 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
d15096 3
a15098 1
	return 0;
d15100 5
a15105 1

d15107 2
a15108 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
d15110 1
a15110 1
  ol_cv_pthread_lpthread_lmach_lexc=no
d15112 1
a15112 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15114 3
d15118 1
a15118 3

		# restore the LIBS
		LIBS="$ol_LIBS"
a15120 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
d15122 3
a15124 13
	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
if test "$ol_link_threads" = no ; then
	# try -lpthread -Wl,-woff,85
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
d15127 3
d15131 5
a15135 12
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -Wl,-woff,85 $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15137 1
a15137 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15141 1
a15141 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15146 9
a15154 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
else
  ol_cv_pthread_lib_lpthread_woff=no
d15157 7
a15163 1
    conftest$ac_exeext conftest.$ac_ext
d15165 10
a15174 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d15176 1
a15177 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d15179 26
a15204 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15206 7
a15212 57

int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
d15214 2
a15215 4
  ol_cv_pthread_lib_lpthread_woff=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15219 26
a15244 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15246 2
d15249 7
a15255 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }

	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
		ol_link_pthreads="-lpthread -Wl,-woff,85"
		ol_link_threads=posix
	fi
d15259 5
a15263 6
		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
if test "$ol_link_threads" = no ; then
	# try -lpthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
$as_echo_n "checking for pthread link with -lpthread... " >&6; }
if ${ol_cv_pthread_lpthread+:} false; then :
d15266 19
d15286 11
a15296 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread $LIBS"
a15297 3
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a15298 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
a15299 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15301 5
a15305 3
int
main ()
{
d15307 1
a15307 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15309 49
a15357 27
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
d15359 7
a15365 16
	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
d15367 2
a15368 1
  ol_cv_pthread_lpthread=no
a15369 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d15372 4
a15375 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d15377 5
a15381 51
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif
a15382 3
#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif
a15383 1
	return 0;
d15385 2
a15386 1
}
a15387 3
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
d15389 3
a15391 26
  ol_cv_pthread_lpthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
$as_echo "$ol_cv_pthread_lpthread" >&6; }

	if test $ol_cv_pthread_lpthread = yes ; then
		ol_link_pthreads="-lpthread"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
$as_echo_n "checking for pthread link with -lc_r... " >&6; }
if ${ol_cv_pthread_lc_r+:} false; then :
d15394 2
a15395 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15398 5
a15402 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15404 1
a15404 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15408 1
a15408 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15413 9
a15421 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
else
  ol_cv_pthread_lc_r=no
d15424 6
a15429 34
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
a15430 43
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
d15432 1
a15432 1
  ol_cv_pthread_lc_r=no
d15434 2
a15435 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15437 5
a15441 4


		# restore the LIBS
		LIBS="$ol_LIBS"
a15443 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
$as_echo "$ol_cv_pthread_lc_r" >&6; }
a15444 4
	if test $ol_cv_pthread_lc_r = yes ; then
		ol_link_pthreads="-lc_r"
		ol_link_threads=posix
	fi
d15447 2
d15450 4
a15453 6
		# Pthread try link: -threads (ol_cv_pthread_threads)
if test "$ol_link_threads" = no ; then
	# try -threads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
$as_echo_n "checking for pthread link with -threads... " >&6; }
if ${ol_cv_pthread_threads+:} false; then :
d15456 2
a15457 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-threads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15460 5
a15464 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15466 1
a15466 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15470 1
a15470 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15475 9
a15483 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_threads=yes
else
  ol_cv_pthread_threads=no
d15486 6
a15491 41
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;
a15492 36
#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_threads=yes
d15494 1
a15494 1
  ol_cv_pthread_threads=no
d15496 2
a15497 16
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
$as_echo "$ol_cv_pthread_threads" >&6; }

	if test $ol_cv_pthread_threads = yes ; then
		ol_link_pthreads="-threads"
		ol_link_threads=posix
	fi
d15499 5
d15505 4
a15508 7

		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
d15511 2
a15512 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15515 5
a15519 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15521 1
a15521 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15525 1
a15525 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15530 9
a15538 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
d15541 6
a15546 21
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

a15547 56
int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
d15549 1
a15549 1
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
d15551 2
a15552 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15554 5
d15560 1
a15560 3

		# restore the LIBS
		LIBS="$ol_LIBS"
a15562 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
a15563 4
	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
d15566 3
a15568 6
		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
d15571 2
a15572 7

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15575 5
a15579 4
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15581 1
a15581 10
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

d15585 1
a15585 47

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d15590 9
a15598 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc=no
d15601 6
a15606 72
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;
a15607 5
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
d15609 1
a15609 1
  ol_cv_pthread_lpthreads_lmach_lexc=no
d15611 2
a15612 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15614 5
d15620 1
d15622 7
a15628 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15631 2
a15632 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
a15633 5
	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc"
		ol_link_threads=posix
	fi
fi
d15635 5
a15639 7
		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
  $as_echo_n "(cached) " >&6
d15641 1
d15643 1
a15643 3
		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lexc $LIBS"
d15645 23
a15667 2
		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15670 5
a15674 61
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
d15676 5
a15680 3

	return 0;

d15686 1
a15686 3
  ol_cv_pthread_lpthreads_lexc=yes
else
  ol_cv_pthread_lpthreads_lexc=no
d15690 19
a15708 2
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15711 5
a15715 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d15717 3
a15719 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d15721 3
a15723 1
	return (void *) (p == NULL);
d15725 30
d15756 8
d15765 2
a15766 4
int main(argc, argv)
	int argc;
	char **argv;
{
d15768 12
a15779 7
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;
d15781 1
a15781 3
#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;
d15783 1
a15783 35
	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}
d15785 7
a15792 12
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lexc=yes
else
  ol_cv_pthread_lpthreads_lexc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"
a15794 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
d15796 1
a15796 5
	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lexc"
		ol_link_threads=posix
	fi
fi
d15799 5
a15803 6
		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
if test "$ol_link_threads" = no ; then
	# try -lpthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
if ${ol_cv_pthread_lib_lpthreads+:} false; then :
a15805 6

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads $LIBS"

		if test "$cross_compiling" = yes; then :
d15809 2
a15810 14
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15816 1
a15816 35
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );
a15817 9
	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;
d15823 2
a15824 2
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
d15826 2
a15827 1
  ol_cv_pthread_lib_lpthreads=no
d15829 1
a15829 5
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d15831 3
d15835 3
a15837 8
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif
d15839 1
a15839 5
static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}
d15841 2
d15844 5
a15848 4
int main(argc, argv)
	int argc;
	char **argv;
{
d15850 5
a15854 3
	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
d15856 7
a15862 42
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

a15863 1

d15865 2
a15866 7
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
else
  ol_cv_pthread_lib_lpthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d15868 3
d15872 2
d15875 2
a15876 2
		# restore the LIBS
		LIBS="$ol_LIBS"
d15878 1
a15878 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
d15880 6
a15885 22
	if test $ol_cv_pthread_lib_lpthreads = yes ; then
		ol_link_pthreads="-lpthreads"
		ol_link_threads=posix
	fi
fi


		if test $ol_link_threads != no ; then
			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"

						save_CPPFLAGS="$CPPFLAGS"
			save_LIBS="$LIBS"
			LIBS="$LTHREAD_LIBS $LIBS"

												for ac_func in sched_yield pthread_yield thr_yield
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a15886 2
fi
done
d15889 8
a15896 6
			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test $ac_cv_func_thr_yield = no ; then
								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
$as_echo_n "checking for sched_yield in -lrt... " >&6; }
if ${ac_cv_lib_rt_sched_yield+:} false; then :
d15910 1
a15910 1
char sched_yield ();
d15914 1
a15914 1
return sched_yield ();
d15920 1
a15920 1
  ac_cv_lib_rt_sched_yield=yes
d15922 1
a15922 1
  ac_cv_lib_rt_sched_yield=no
d15928 3
a15930 24
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"

$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h

					ac_cv_func_sched_yield=yes
else
  ac_cv_func_sched_yield=no
fi

			fi
			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test "$ac_cv_func_thr_yield" = no ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
			fi

						for ac_func in pthread_kill
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
if test "x$ac_cv_func_pthread_kill" = xyes; then :
d15932 1
a15932 1
#define HAVE_PTHREAD_KILL 1
d15935 1
a15935 3
fi
done

d15937 4
a15940 3
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
d15943 3
a15945 2

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15948 7
a15954 3
#include <pthread.h>
pthread_rwlock_t rwlock;

d15958 1
a15958 1
pthread_rwlock_destroy(&rwlock);
d15964 1
a15964 1
  ol_cv_func_pthread_rwlock_destroy=yes
d15966 1
a15966 1
  ol_cv_func_pthread_rwlock_destroy=no
d15970 10
a15981 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
d15983 1
a15983 1
$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
d15985 2
a15986 1
			fi
d15988 3
a15990 3
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_detach+:} false; then :
d15993 2
a15994 2

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d15997 5
a16001 3
#include <pthread.h>
#ifndef NULL
#define NULL (void*)0
d16003 1
a16003 1

d16007 1
a16007 1
pthread_detach(NULL);
d16012 9
a16020 4
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_func_pthread_detach=yes
else
  ol_cv_func_pthread_detach=no
d16023 3
a16025 28
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
$as_echo "$ol_cv_func_pthread_detach" >&6; }

			if test $ol_cv_func_pthread_detach = no ; then
				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
			fi


$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h


						for ac_func in \
				pthread_setconcurrency \
				pthread_getconcurrency \
				thr_setconcurrency \
				thr_getconcurrency \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

d16028 1
d16030 2
a16031 10


	for ac_func in pthread_kill_other_threads_np
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
_ACEOF

d16033 2
a16034 8
done

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
$as_echo_n "checking for LinuxThreads implementation... " >&6; }
if ${ol_cv_sys_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
d16036 5
a16040 21
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
$as_echo "$ol_cv_sys_linux_threads" >&6; }




	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
$as_echo_n "checking for LinuxThreads consistency... " >&6; }
if ${ol_cv_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		if test $ol_cv_header_linux_threads = yes &&
		   test $ol_cv_sys_linux_threads = yes; then
			ol_cv_linux_threads=yes
		elif test $ol_cv_header_linux_threads = no &&
		     test $ol_cv_sys_linux_threads = no; then
			ol_cv_linux_threads=no
		else
			ol_cv_linux_threads=error
		fi
a16042 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
$as_echo "$ol_cv_linux_threads" >&6; }
d16044 3
a16046 8

			if test $ol_cv_linux_threads = error; then
				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
			fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
$as_echo_n "checking if pthread_create() works... " >&6; }
if ${ol_cv_pthread_create_works+:} false; then :
d16049 2
a16050 5

			if test "$cross_compiling" = yes; then :
  				ol_cv_pthread_create_works=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16053 5
a16057 5

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
d16059 3
a16061 6
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
d16063 3
a16065 55
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

d16067 18
a16085 3
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create_works=yes
d16087 1
a16087 1
  ol_cv_pthread_create_works=no
d16089 2
a16090 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d16092 5
a16098 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
$as_echo "$ol_cv_pthread_create_works" >&6; }
d16100 5
a16104 16
			if test $ol_cv_pthread_create_works = no ; then
				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
			fi

			ol_replace_broken_yield=no

			if test $ol_replace_broken_yield = yes ; then

$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h

			fi

						if test x$ol_with_yielding_select = xauto ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
$as_echo_n "checking if select yields when using pthreads... " >&6; }
if ${ol_cv_pthread_select_yields+:} false; then :
d16107 3
a16109 5

				if test "$cross_compiling" = yes; then :
  ol_cv_pthread_select_yields=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16112 5
a16116 6
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#ifndef NULL
#define NULL (void*) 0
d16118 3
a16120 5

static int fildes[2];

static void *task(p)
	void *p;
d16122 3
a16124 59
	int i;
	struct timeval tv;

	fd_set rfds;

	tv.tv_sec=10;
	tv.tv_usec=0;

	FD_ZERO(&rfds);
	FD_SET(fildes[0], &rfds);

	/* we're not interested in any fds */
	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);

	if(i < 0) {
		perror("select");
		exit(10);
	}

	exit(0); /* if we exit here, the select blocked the whole process */
}

int main(argc, argv)
	int argc;
	char **argv;
{
	pthread_t t;

	/* create a pipe to select */
	if(pipe(&fildes[0])) {
		perror("select");
		exit(1);
	}

#ifdef HAVE_PTHREAD_SETCONCURRENCY
	(void) pthread_setconcurrency(2);
#else
#ifdef HAVE_THR_SETCONCURRENCY
	/* Set Solaris LWP concurrency to 2 */
	thr_setconcurrency(2);
#endif
#endif

#if HAVE_PTHREADS < 6
	pthread_create(&t, pthread_attr_default, task, NULL);
#else
	pthread_create(&t, NULL, task, NULL);
#endif

	/* make sure task runs first */
#ifdef HAVE_THR_YIELD
	thr_yield();
#elif defined( HAVE_SCHED_YIELD )
	sched_yield();
#elif defined( HAVE_PTHREAD_YIELD )
	pthread_yield();
#endif

	exit(2);
d16127 2
a16128 2
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_select_yields=no
d16130 1
a16130 1
  ol_cv_pthread_select_yields=yes
d16132 3
a16134 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d16136 8
a16145 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
$as_echo "$ol_cv_pthread_select_yields" >&6; }
d16147 1
a16147 20
				if test $ol_cv_pthread_select_yields = cross ; then
					as_fn_error $? "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
				fi

				if test $ol_cv_pthread_select_yields = yes ; then
					ol_with_yielding_select=yes
				fi
			fi

						CPPFLAGS="$save_CPPFLAGS"
			LIBS="$save_LIBS"
		else
			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
		fi
	fi

	if test $ol_with_threads = posix ; then
		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
	fi
	;;
d16149 1
a16149 4

case $ol_with_threads in auto | yes | mach)

		for ac_header in mach/cthreads.h cthreads.h
d16152 13
a16164 1
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
a16173 2
	if test $ac_cv_header_mach_cthreads_h = yes ; then
		ol_with_threads=found
d16175 9
a16183 3
				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
d16185 1
d16188 3
a16190 4
		if test $ol_link_threads = no ; then
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
$as_echo_n "checking for cthread_fork with -all_load... " >&6; }
if ${ol_cv_cthread_all_load+:} false; then :
d16193 6
a16199 5
								save_LIBS="$LIBS"
				LIBS="-all_load $LIBS"
				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <mach/cthreads.h>
a16203 2
					cthread_fork((void *)0, (void *)0);

d16208 2
a16209 2
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_cthread_all_load=yes
d16211 1
a16211 1
  ol_cv_cthread_all_load=no
d16213 11
a16223 3
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
								LIBS="$save_LIBS"
d16225 2
d16228 1
a16228 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
$as_echo "$ol_cv_cthread_all_load" >&6; }
d16230 1
a16230 6
			if test $ol_cv_cthread_all_load = yes ; then
				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
				ol_link_threads=mach
				ol_with_threads=found
			fi
		fi
d16232 5
a16236 1
	elif test $ac_cv_header_cthreads_h = yes ; then
d16238 3
a16240 1
		ol_with_threads=found
d16242 2
a16243 5
				save_LIBS="$LIBS"
		LIBS="$LIBS -lthreads"
		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
d16245 1
d16247 1
a16247 1
		LIBS="$save_LIBS"
d16249 19
a16267 7
		if test $ol_link_threads = yes ; then
			LTHREAD_LIBS="-lthreads"
			ol_link_threads=mach
			ol_with_threads=found
		else
			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
		fi
d16269 13
a16281 3
	elif test $ol_with_threads = mach ; then
		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
	fi
d16283 6
a16288 1
	if test $ol_link_threads = mach ; then
d16290 5
a16294 1
$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
d16296 1
a16296 5
	elif test $ol_with_threads = found ; then
		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
	fi
	;;
esac
d16298 1
a16298 1
case $ol_with_threads in auto | yes | pth)
d16300 1
a16300 1
	for ac_header in pth.h
d16302 2
a16303 2
  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
if test "x$ac_cv_header_pth_h" = xyes; then :
d16305 1
a16305 1
#define HAVE_PTH_H 1
d16312 5
a16316 5

	if test $ac_cv_header_pth_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
$as_echo_n "checking for pth_version in -lpth... " >&6; }
if ${ac_cv_lib_pth_pth_version+:} false; then :
d16320 1
a16320 1
LIBS="-lpth  $LIBS"
d16330 1
a16330 1
char pth_version ();
d16334 1
a16334 1
return pth_version ();
d16340 1
a16340 1
  ac_cv_lib_pth_pth_version=yes
d16342 1
a16342 1
  ac_cv_lib_pth_pth_version=no
d16348 45
a16392 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
  have_pth=yes
else
  have_pth=no
d16395 10
d16406 1
a16406 1
		if test $have_pth = yes ; then
d16408 1
a16408 1
$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
d16410 8
a16417 3
			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
			ol_link_threads=pth
			ol_with_threads=found
d16419 1
a16419 7
			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi
		fi
	fi
	;;
esac
d16421 1
a16421 1
case $ol_with_threads in auto | yes | lwp)
d16423 1
a16423 1
		for ac_header in thread.h synch.h
a16435 11
	if test $ac_cv_header_thread_h = yes &&
	   test $ac_cv_header_synch_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
$as_echo_n "checking for thr_create in -lthread... " >&6; }
if ${ac_cv_lib_thread_thr_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16437 24
a16460 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char thr_create ();
int
main ()
{
return thr_create ();
  ;
  return 0;
}
d16462 1
a16462 4
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_thread_thr_create=yes
else
  ac_cv_lib_thread_thr_create=no
d16464 16
a16479 10
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
  have_thr=yes
else
  have_thr=no
d16482 1
d16484 2
a16485 1
		if test $have_thr = yes ; then
d16487 17
a16503 1
$as_echo "#define HAVE_THR 1" >>confdefs.h
d16505 2
a16506 2
			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
			ol_link_threads=thr
d16508 1
a16508 7
			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi

						for ac_func in \
				thr_setconcurrency \
				thr_getconcurrency \
d16510 1
d16512 2
a16513 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d16515 1
a16515 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16519 1
d16522 1
a16522 4
		fi
	fi

		for ac_header in lwp/lwp.h
d16524 2
a16525 2
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
d16527 1
a16527 1
#define HAVE_LWP_LWP_H 1
a16533 10
	if test $ac_cv_header_lwp_lwp_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
$as_echo_n "checking for lwp_create in -llwp... " >&6; }
if ${ac_cv_lib_lwp_lwp_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llwp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16535 9
a16543 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lwp_create ();
int
main ()
{
return lwp_create ();
  ;
  return 0;
}
d16545 1
a16545 2
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_lwp_lwp_create=yes
d16547 2
a16548 12
  ac_cv_lib_lwp_lwp_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
  have_lwp=yes
else
  have_lwp=no
d16551 1
d16553 11
a16563 3
		if test $have_lwp = yes ; then

$as_echo "#define HAVE_LWP 1" >>confdefs.h
a16564 8
			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
			ol_link_threads=lwp

			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=no
			fi
		fi
	fi
d16566 2
d16570 8
a16577 1
if test $ol_with_yielding_select = yes ; then
d16579 5
a16583 1
$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
d16587 1
a16587 2
if test $ol_with_threads = manual ; then
		ol_link_threads=yes
d16589 1
a16589 2
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
d16591 1
a16591 1
	for ac_header in pthread.h sched.h
d16593 6
a16598 3
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d16600 1
a16600 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d16607 1
a16607 1
	for ac_func in sched_yield pthread_yield
d16609 2
a16610 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d16612 1
a16612 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16616 1
d16619 6
d16626 4
a16629 8
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
a16630 8
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
fi
rm -f conftest*

a16632 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then
d16634 1
a16634 1
$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
d16636 1
a16636 4
	fi


	for ac_header in mach/cthreads.h
d16638 3
a16640 2
  ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
d16642 1
a16642 1
#define HAVE_MACH_CTHREADS_H 1
d16649 1
a16649 1
	for ac_header in lwp/lwp.h
d16651 15
a16665 2
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
d16667 1
a16667 1
#define HAVE_LWP_LWP_H 1
d16674 1
a16674 1
	for ac_header in thread.h synch.h
d16677 20
a16696 1
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
a16705 14
fi

if test $ol_link_threads != no && test $ol_link_threads != nt ; then

$as_echo "#define REENTRANT 1" >>confdefs.h


$as_echo "#define _REENTRANT 1" >>confdefs.h


$as_echo "#define THREAD_SAFE 1" >>confdefs.h


$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
d16707 4
a16710 13

$as_echo "#define THREADSAFE 1" >>confdefs.h


$as_echo "#define _THREADSAFE 1" >>confdefs.h


$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h


			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
$as_echo_n "checking for thread specific errno... " >&6; }
if ${ol_cv_errno_thread_specific+:} false; then :
d16713 13
a16726 10
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <errno.h>
int
main ()
{
errno = 0;
  ;
  return 0;
}
d16728 3
a16730 2
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_errno_thread_specific=yes
d16732 2
a16733 1
  ol_cv_errno_thread_specific=no
d16735 2
a16736 2
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
d16739 6
a16744 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
$as_echo "$ol_cv_errno_thread_specific" >&6; }
d16746 1
a16746 5
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
$as_echo_n "checking for thread specific h_errno... " >&6; }
if ${ol_cv_h_errno_thread_specific+:} false; then :
  $as_echo_n "(cached) " >&6
else
d16748 6
a16753 10
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netdb.h>
int
main ()
{
h_errno = 0;
  ;
  return 0;
}
a16754 7
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_h_errno_thread_specific=yes
else
  ol_cv_h_errno_thread_specific=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
a16756 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
$as_echo "$ol_cv_h_errno_thread_specific" >&6; }
d16758 1
a16758 5
	if test $ol_cv_errno_thread_specific != yes ||
	   test $ol_cv_h_errno_thread_specific != yes ; then
		LIBS="$LTHREAD_LIBS $LIBS"
		LTHREAD_LIBS=""
	fi
d16760 2
a16761 1
fi
d16763 1
a16763 4
if test $ol_link_threads = no ; then
	if test $ol_with_threads = yes ; then
		as_fn_error $? "no suitable thread support" "$LINENO" 5
	fi
d16765 9
a16773 5
	if test $ol_with_threads = auto ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
		ol_with_threads=no
	fi
d16775 1
d16777 1
a16777 1
$as_echo "#define NO_THREADS 1" >>confdefs.h
d16779 8
a16786 9
	LTHREAD_LIBS=""
	BUILD_THREAD=no
else
	BUILD_THREAD=yes
fi

if test $ol_link_threads != no ; then

$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
d16790 1
a16790 4
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
case "$ol_with_threads" in
 no)
    ol_pthread_ok=no
d16792 2
d16796 1
a16796 18
    ol_found_pthreads=yes
    ;;
esac

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    case "$ol_found_pthreads" in
     yes)
	saved_LIBS="$LIBS"
	LIBS="$LTHREAD_LIBS $LIBS"
	saved_CFLAGS="$CFLAGS"
	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
	for ac_func in sem_timedwait
d16798 2
a16799 2
  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
if test "x$ac_cv_func_sem_timedwait" = xyes; then :
d16801 1
a16801 1
#define HAVE_SEM_TIMEDWAIT 1
d16805 1
d16808 1
a16808 10
	LIBS="$saved_LIBS"
	{ saved_LIBS=; unset saved_LIBS;}
	CFLAGS="$saved_CFLAGS"
	{ saved_CFLAGS=; unset saved_CFLAGS;}
	case "$ac_cv_func_sem_timedwait" in
	 yes)
	    PTHREAD_LIBS="$LTHREAD_LIBS"
	    have_pthreads=yes
	esac
    esac
d16810 8
d16819 1
a16819 19
case "$have_pthreads" in
 yes)
    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
    saved_LIBS="$LIBS"
    LIBS="$LTHREAD_LIBS $LIBS"
    saved_CFLAGS="$CFLAGS"
    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
$as_echo_n "checking size of pthread_t... " >&6; }
if ${ac_cv_sizeof_pthread_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
	    $ac_includes_default
	    #include <pthread.h>
d16821 1
d16823 8
a16830 1
"; then :
a16831 9
else
  if test "$ac_cv_type_pthread_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (pthread_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_pthread_t=0
   fi
d16834 1
a16834 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
d16836 8
a16843 4


cat >>confdefs.h <<_ACEOF
#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
d16846 1
d16848 1
a16848 1
    LIBISC_PTHREADS_NOTHREADS=pthreads
d16850 11
a16860 18
$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h

    #
    # We'd like to use sigwait() too
    #
    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
if test "x$ac_cv_func_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
$as_echo_n "checking for sigwait in -lc... " >&6; }
if ${ac_cv_lib_c_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a16861 19
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_sigwait=yes
else
  ac_cv_lib_c_sigwait=no
a16862 18
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
$as_echo "$ac_cv_lib_c_sigwait" >&6; }
if test "x$ac_cv_lib_c_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
$as_echo_n "checking for sigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16864 1
a16864 38
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread_sigwait=yes
else
  ac_cv_lib_pthread_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread__Psigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d16866 10
a16875 14
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char _Psigwait ();
int
main ()
{
return _Psigwait ();
  ;
  return 0;
}
a16876 15
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread__Psigwait=yes
else
  ac_cv_lib_pthread__Psigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
  have_sigwait=yes
else
  have_sigwait=no
d16880 1
d16882 11
a16892 2
fi

d16896 1
d16898 12
a16909 28
fi

    case "$host:$have_sigwait" in
     *-freebsd*:no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
$as_echo_n "checking for sigwait in -lc_r... " >&6; }
if ${ac_cv_lib_c_r_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc_r  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
a16910 13
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_r_sigwait=yes
else
  ac_cv_lib_c_r_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
  have_sigwait=yes
d16914 1
a16914 4
    esac
    case "$have_sigwait" in
     yes)
	ac_cv_func_sigwait=yes
d16916 3
a16918 5
$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h

    esac

    for ac_func in pthread_attr_getstacksize
d16920 3
a16922 2
  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
d16924 1
a16924 1
#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
d16928 1
d16931 2
a16932 1
    for ac_func in pthread_attr_setstacksize sysconf
d16934 5
a16938 3
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
d16940 1
a16940 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d16944 1
d16947 8
d16956 1
a16956 14
    case "$host" in
     *-freebsd5.[012]|*-freebsd5.[012].*)
	;;
     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)

$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h

	;;
     *-bsdi3.*|*-bsdi4.0*)

$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h

	;;
     *-linux*)
d16958 1
a16958 5
$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h

	;;
     *-solaris*)
	$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d16960 1
a16960 1
	for ac_func in pthread_setconcurrency
d16962 3
a16964 2
  ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
d16966 1
a16966 1
#define HAVE_PTHREAD_SETCONCURRENCY 1
d16970 1
d16973 1
a16973 28
	case "$ac_cv_func_pthread_setconcurrency" in
	 yes)

$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h

	esac
	;;
     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)

$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h

	;;
    esac
    hack_shutup_pthreadonceinit=no
    case "$host" in
     *-aix5.[123].*)
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.[89])
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.1[0-9])
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16976 10
a16985 1
			#include <pthread.h>
d16987 12
a16998 3
int
main ()
{
a16999 2
		        static pthread_once_t once_test =
						PTHREAD_ONCE_INIT;
d17001 4
a17004 4

  ;
  return 0;
}
a17005 7
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_braces_around_pthread_once_init=no
else
  ntp_cv_braces_around_pthread_once_init=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a17007 10
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
	case "$ntp_cv_braces_around_pthread_once_init" in
	 yes)
	    hack_shutup_pthreadonceinit=yes
	esac
	;;
    esac
    case "$hack_shutup_pthreadonceinit" in
     yes)
d17009 1
a17009 1
$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
a17010 10
    esac
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
    CFLAGS="$saved_CFLAGS"
    { saved_CFLAGS=; unset saved_CFLAGS;}
    ;;
 *)
    LIBISC_PTHREADS_NOTHREADS=nothreads
    ;;
esac
a17011 6
 if test "$have_pthreads" != "no"; then
  PTHREADS_TRUE=
  PTHREADS_FALSE='#'
else
  PTHREADS_TRUE='#'
  PTHREADS_FALSE=
d17013 1
d17015 8
d17024 1
d17026 1
d17028 3
a17030 8



case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
 no:yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
if ${ntp_cv_vsnprintf_percent_m+:} false; then :
a17032 4
  if test "$cross_compiling" = yes; then :
  ntp_cv_vsnprintf_percent_m=no

else
d17035 3
a17037 29

		    #include <stdarg.h>
		    #include <errno.h>
		    #include <stdio.h>
		    #include <string.h>

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    );

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    )
		    {
			    va_list	ap;
			    int		rc;

			    va_start(ap, fmt);
			    rc = vsnprintf(dst, sz, fmt, ap);
			    va_end(ap);

			    return rc;
		    }
d17042 2
a17043 12

		    char	sbuf[512];
		    char	pbuf[512];
		    int		slen;

		    strcpy(sbuf, strerror(ENOENT));
		    errno = ENOENT;
		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
					  "wrong");
		    return strcmp(sbuf, pbuf);


d17048 2
a17049 2
if ac_fn_c_try_run "$LINENO"; then :
  ntp_cv_vsnprintf_percent_m=yes
d17051 1
a17051 1
  ntp_cv_vsnprintf_percent_m=no
d17053 1
a17053 2
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
d17055 3
d17059 1
a17061 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
    case "$ntp_cv_vsnprintf_percent_m" in
     yes)
d17063 3
a17065 6
$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h

    esac
esac

for ac_header in sys/clockctl.h
d17067 3
a17069 2
  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
d17071 1
a17071 1
#define HAVE_SYS_CLOCKCTL_H 1
d17078 3
a17080 17

# Check whether --enable-clockctl was given.
if test "${enable_clockctl+set}" = set; then :
  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
else
  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
$as_echo "$ntp_use_dev_clockctl" >&6; }


for ac_header in sys/capability.h sys/prctl.h
a17092 35

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }

case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
 yesyes)
    case "$host" in
     mips-sgi-irix*)
	ntp_have_linuxcaps=no
	;;
     *) ntp_have_linuxcaps=yes
	;;
    esac
    ;;
 *)
    ntp_have_linuxcaps=no
    ;;
esac

# Check whether --enable-linuxcaps was given.
if test "${enable_linuxcaps+set}" = set; then :
  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
$as_echo "$ntp_have_linuxcaps" >&6; }

case "$ntp_have_linuxcaps" in
 yes)

$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h

    LIBS="$LIBS -lcap"
d17096 3
a17098 2

for ac_header in priv.h
d17100 3
a17102 2
  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
if test "x$ac_cv_header_priv_h" = xyes; then :
d17104 1
a17104 1
#define HAVE_PRIV_H 1
a17107 1

d17110 3
a17112 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }

case "$ac_cv_header_priv_h" in
d17114 6
a17119 5
    case "$host" in
     *-solaris*)
	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
if test "x$ac_cv_func_setppriv" = xyes; then :
  ntp_have_solarisprivs=yes
d17121 4
a17124 1
  ntp_have_solarisprivs=no
d17126 23
d17150 6
d17157 1
a17157 7
	;;
    esac
esac

# Check whether --enable-solarisprivs was given.
if test "${enable_solarisprivs+set}" = set; then :
  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
d17160 9
d17171 23
d17195 1
a17195 9
case "$ntp_have_solarisprivs" in
 yes)

$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
$as_echo "$ntp_have_solarisprivs" >&6; }
d17197 4
a17200 12
case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
 *yes*)

$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h

esac

case "$host" in
 *-*-darwin*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
$as_echo_n "checking for library containing res_9_init... " >&6; }
if ${ac_cv_search_res_9_init+:} false; then :
d17203 2
a17204 1
  ac_func_search_save_LIBS=$LIBS
d17214 1
a17214 1
char res_9_init ();
d17218 1
a17218 1
return res_9_init ();
d17223 4
a17226 9
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_9_init=$ac_res
d17229 2
a17230 3
    conftest$ac_exeext
  if ${ac_cv_search_res_9_init+:} false; then :
  break
d17232 6
a17237 2
done
if ${ac_cv_search_res_9_init+:} false; then :
d17239 1
a17239 11
else
  ac_cv_search_res_9_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
$as_echo "$ac_cv_search_res_9_init" >&6; }
ac_res=$ac_cv_search_res_9_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17243 3
a17245 4
    ;;
 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
$as_echo_n "checking for library containing res_init... " >&6; }
if ${ac_cv_search_res_init+:} false; then :
d17248 2
a17249 1
  ac_func_search_save_LIBS=$LIBS
d17259 1
a17259 1
char res_init ();
d17263 1
a17263 1
return res_init ();
d17268 4
a17271 9
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_init=$ac_res
d17274 2
a17275 3
    conftest$ac_exeext
  if ${ac_cv_search_res_init+:} false; then :
  break
d17277 6
a17282 2
done
if ${ac_cv_search_res_init+:} false; then :
d17284 1
a17284 11
else
  ac_cv_search_res_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
$as_echo "$ac_cv_search_res_init" >&6; }
ac_res=$ac_cv_search_res_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17288 1
a17288 3
    ;;
esac
for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
d17291 1
a17291 13
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
d17301 2
d17304 1
a17304 8
#HMS: Why do we do this check so "early"?
for ac_func in res_init
do :
  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
if test "x$ac_cv_func_res_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RES_INIT 1
_ACEOF
d17306 4
a17309 72
else
  for ac_func in __res_init
do :
  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
if test "x$ac_cv_func___res_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___RES_INIT 1
_ACEOF

fi
done

fi
done


# We also need -lsocket, but we have tested for that already.
ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
if test "x$ac_cv_func_inet_ntop" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
if test "x$ac_cv_func_inet_pton" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h

fi


ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
if test "x$ac_cv_type_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
if test "x$ac_cv_type_u_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT32 1
_ACEOF


fi




case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
$as_echo_n "checking for int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_int32_with_dns+:} false; then :
d17315 1
a17315 4
		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>
d17321 2
a17322 1
		    size_t cb = sizeof(int32);
d17328 1
d17331 1
a17331 3
  ntp_cv_type_int32_with_dns=yes
else
  ntp_cv_type_int32_with_dns=no
d17337 3
a17339 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
$as_echo "$ntp_cv_type_int32_with_dns" >&6; }
    case "$ntp_cv_type_int32_with_dns" in
d17342 1
a17342 1
$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
d17345 1
d17348 14
a17361 9
case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
$as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_u_int32_with_dns+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d17363 1
a17363 4
		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>
d17365 1
a17365 3
int
main ()
{
a17366 1
		    size_t cb = sizeof(u_int32);
d17368 5
d17374 4
a17377 3
  ;
  return 0;
}
a17378 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_type_u_int32_with_dns=yes
else
  ntp_cv_type_u_int32_with_dns=no
d17381 18
a17398 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a17400 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
    case "$ntp_cv_type_u_int32_with_dns" in
     yes)
d17402 1
a17402 1
$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
a17403 2
    esac
esac
d17405 1
a17405 1
for ac_header in sys/timepps.h
d17407 14
a17420 7
  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
	#ifdef HAVE_SYS_TIME_H
	# include <sys/time.h>
	#endif
	#ifdef HAVE_ERRNO_H
	# include <errno.h>
	#endif
d17422 11
d17435 1
a17435 1
if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
d17437 1
a17437 1
#define HAVE_SYS_TIMEPPS_H 1
d17445 3
a17447 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
$as_echo_n "checking for struct timespec... " >&6; }
if ${ntp_cv_struct_timespec+:} false; then :
a17452 10
		#include <sys/time.h>
		/* Under SunOS, timespec is in sys/timepps.h,
		   which needs errno.h and FRAC */
		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif
		#ifdef HAVE_SYS_TIMEPPS_H
		# define FRAC 4294967296
		# include <sys/timepps.h>
		#endif
d17458 1
a17458 1
		struct timespec n;
d17464 1
d17467 1
a17467 3
  ntp_cv_struct_timespec=yes
else
  ntp_cv_struct_timespec=no
d17473 3
a17475 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
$as_echo "$ntp_cv_struct_timespec" >&6; }
case "$ntp_cv_struct_timespec" in
d17477 2
d17480 1
a17480 1
$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
d17482 1
d17485 3
a17487 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
$as_echo_n "checking for struct ntptimeval... " >&6; }
if ${ntp_cv_struct_ntptimeval+:} false; then :
a17492 3
		#include <sys/time.h>
		#include <sys/timex.h>

d17496 24
d17521 24
a17544 2
		struct ntptimeval n;

d17551 1
a17551 1
  ntp_cv_struct_ntptimeval=yes
d17553 1
a17553 2
  ntp_cv_struct_ntptimeval=no

d17556 6
a17563 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
case "$ntp_cv_struct_ntptimeval" in
 yes)
d17565 13
a17577 1
$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
d17579 2
a17580 1
esac
d17582 29
a17610 6
for ac_header in md5.h
do :
  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
	#ifdef HAVE_SYS_TYPES_H
	# include <sys/types.h>
	#endif
d17612 8
d17621 3
a17623 4
"
if test "x$ac_cv_header_md5_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MD5_H 1
d17625 13
d17639 10
d17650 14
d17665 9
a17673 1
done
d17675 6
d17682 6
a17687 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
$as_echo_n "checking for library containing MD5Init... " >&6; }
if ${ac_cv_search_MD5Init+:} false; then :
  $as_echo_n "(cached) " >&6
d17689 27
a17715 3
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a17716 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char MD5Init ();
d17720 1
a17720 1
return MD5Init ();
d17725 12
a17736 9
for ac_lib in '' md5 md; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_MD5Init=$ac_res
d17738 1
a17738 39
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_MD5Init+:} false; then :
  break
fi
done
if ${ac_cv_search_MD5Init+:} false; then :

else
  ac_cv_search_MD5Init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
$as_echo "$ac_cv_search_MD5Init" >&6; }
ac_res=$ac_cv_search_MD5Init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
$as_echo_n "checking for SIGIO... " >&6; }
if ${ntp_cv_hdr_def_sigio+:} false; then :
  $as_echo_n "(cached) " >&6
d17742 4
d17747 8
a17754 5
	    #include <signal.h>

	    #ifdef SIGIO
		yes
	    #endif
d17756 3
d17760 2
a17761 3
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_hdr_def_sigio=yes
d17763 1
a17763 2
  ntp_cv_hdr_def_sigio=no

d17765 2
a17766 3
rm -f conftest*


a17767 78
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
$as_echo "$ntp_cv_hdr_def_sigio" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
$as_echo_n "checking if we want to use SIGIO... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigio" in
 yes)
    ans=yes
    case "$host" in
     alpha*-dec-osf4*|alpha*-dec-osf5*)
	ans=no
	;;
     *-convex-*)
	ans=no
	;;
     *-dec-*)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-univel-sysv*)
	ans=no
	;;
     *-*-irix6*)
	ans=no
	;;
     *-*-freebsd*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     m68k-*-mint*)
	ans=no
	;;
    esac
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
$as_echo_n "checking for SIGPOLL... " >&6; }
if ${ntp_cv_hdr_def_sigpoll+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <signal.h>

	    #ifdef SIGPOLL
		yes
	    #endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then :
  ntp_cv_hdr_def_sigpoll=yes
else
  ntp_cv_hdr_def_sigpoll=no
d17769 1
d17771 9
a17779 123
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-solaris*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)
d17781 1
a17781 1
$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
d17783 5
a17787 3
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d17789 3
a17791 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
d17796 2
a17797 2

		#include <sys/time.h>
d17802 1
a17802 5

		gettimeofday(0, 0);
		settimeofday(0, 0);


d17808 1
a17808 1
  ntp_cv_func_Xettimeofday_nargs=2
d17810 1
a17810 2
  ntp_cv_func_Xettimeofday_nargs=1

a17812 1

d17814 2
a17815 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
case "$ntp_cv_func_Xettimeofday_nargs" in
 1)
d17817 2
a17818 10
$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h

esac

for ac_func in settimeofday
do :
  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
if test "x$ac_cv_func_settimeofday" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETTIMEOFDAY 1
a17820 1
else
d17822 2
a17823 51
    case "$host" in
     *-*-mpeix*) ac_cv_func_settimeofday=yes
    esac

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
ntp_warning='GRONK'
ans=none
case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
 yes*)
    ntp_warning=''
    ans='clock_settime()'
    ;;
 noyes*)
    ntp_warning='But clock_settime() would be better (if we had it)'
    ans='settimeofday()'
    ;;
 nonoyes)
    ntp_warning='Which is the worst of the three'
    ans='stime()'
    ;;
 *)
    case "$build" in
     $host)
	ntp_warning='Which leaves us with nothing to use!'
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ntp_warning" in
 '')
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
    ;;
esac


LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
LIBS=$__LIBS
{ __LIBS=; unset __LIBS;}



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
$as_echo_n "checking for deprecated --with-arlib... " >&6; }
a17824 3
# Check whether --with-arlib was given.
if test "${with_arlib+set}" = set; then :
  withval=$with_arlib; ans=$withval
a17825 2
  ans=no
fi
d17827 3
a17829 36
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&5
$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&2;}
    ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a17831 46
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi

d17833 2
a17835 8


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
a17836 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi
d17838 2
a17839 23
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
$as_echo_n "checking for library containing strerror... " >&6; }
if ${ac_cv_search_strerror+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strerror ();
int
main ()
{
return strerror ();
  ;
  return 0;
}
a17840 17
for ac_lib in '' cposix; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_strerror=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_strerror+:} false; then :
  break
fi
done
if ${ac_cv_search_strerror+:} false; then :
a17841 2
else
  ac_cv_search_strerror=no
d17843 9
a17851 2
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
d17853 7
a17859 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
$as_echo "$ac_cv_search_strerror" >&6; }
ac_res=$ac_cv_search_strerror
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17862 6
d17870 1
d17872 7
a17878 5
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_PERL+:} false; then :
d17881 1
a17881 19
  case $PATH_PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a17882 7
  ;;
esac
fi
PATH_PERL=$ac_cv_path_PATH_PERL
if test -n "$PATH_PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
$as_echo "$PATH_PERL" >&6; }
d17884 8
a17891 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d17894 3
a17897 27
{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
# Extract the first word of "test", so it can be a program name with args.
set dummy test; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_TEST+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_TEST in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
a17898 11
  ;;
esac
fi
PATH_TEST=$ac_cv_path_PATH_TEST
if test -n "$PATH_TEST"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
$as_echo "$PATH_TEST" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
d17900 3
a17903 2
{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
a17905 5
# Check whether --with-net-snmp-config was given.
if test "${with_net_snmp_config+set}" = set; then :
  withval=$with_net_snmp_config; ans=$withval
else
  ans=yes
a17906 1
fi
d17908 3
a17910 28
case "$ans" in
 no)
    ;;
 yes)
    ans=net-snmp-config
    ;;
 /*)
    ;;
 */*)
    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
    ;;
 *)
    ;;
esac
PROG_NET_SNMP_CONFIG=$ans
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
case "$PROG_NET_SNMP_CONFIG" in
 no) ;;
 /*)
    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
    ;;
 *)
    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
d17913 4
a17916 19
  case $PATH_NET_SNMP_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS
d17918 14
a17931 2
  ;;
esac
d17933 1
a17933 7
PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
if test -n "$PATH_NET_SNMP_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d17935 3
d17939 1
d17941 1
a17941 5
    { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
a17942 5
case "$host" in
 *-*-vxworks*)
    ac_link="$ac_link $VX_KERNEL"
    ;;
esac
d17944 3
a17946 4
# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
$as_echo_n "checking for library containing openlog... " >&6; }
if ${ac_cv_search_openlog+:} false; then :
d17949 1
a17949 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17952 4
a17955 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char openlog ();
d17959 4
a17962 1
return openlog ();
d17967 4
a17970 17
for ac_lib in '' gen syslog; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_openlog=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_openlog+:} false; then :
  break
fi
done
if ${ac_cv_search_openlog+:} false; then :
a17971 2
else
  ac_cv_search_openlog=no
d17973 1
a17973 8
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
$as_echo "$ac_cv_search_openlog" >&6; }
ac_res=$ac_cv_search_openlog
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d17976 4
d17981 1
a17981 1
# XXX library list will be in ac_cv_search_openlog
d17983 1
d17985 3
a17987 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
$as_echo_n "checking for facilitynames in syslog.h... " >&6; }
if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
d17990 1
a17990 2

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d17993 3
a17995 3
#define SYSLOG_NAMES
#include <stdlib.h>
#include <syslog.h>
d18000 4
a18003 1
 void *fnames; fnames = facilitynames;
d18009 1
a18009 1
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
d18011 2
a18012 1
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
d18015 63
d18079 3
a18081 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
d18084 1
a18084 1
$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
a18085 9
    ;;
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
    ;;
 cross)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
    ;;
d18090 3
a18092 12
case "$host" in
 *-*-*linux*) ;;
 *-*-osf4*) ;;
 *-*-osf5*) ;;
 *)
    # HMS: Make sure we check for -lrt for clock_* before this...
    case "$ac_cv_search_clock_gettime" in
     '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
$as_echo_n "checking for library containing sched_setscheduler... " >&6; }
if ${ac_cv_search_sched_setscheduler+:} false; then :
d18095 1
a18095 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18098 5
a18102 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_setscheduler ();
d18106 4
a18109 1
return sched_setscheduler ();
d18114 2
a18115 18
for ac_lib in '' rt posix4; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_sched_setscheduler=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_sched_setscheduler+:} false; then :
  break
fi
done
if ${ac_cv_search_sched_setscheduler+:} false; then :

d18117 1
a18117 10
  ac_cv_search_sched_setscheduler=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
$as_echo "$ac_cv_search_sched_setscheduler" >&6; }
ac_res=$ac_cv_search_sched_setscheduler
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18120 1
a18120 11

    ;;
esac

for ac_header in bstring.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
if test "x$ac_cv_header_bstring_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_BSTRING_H 1
_ACEOF
d18123 2
d18126 3
a18128 7
done

ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
if test "x$ac_cv_header_dns_sd_h" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
$as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
if ${ac_cv_search_DNSServiceRegister+:} false; then :
d18131 1
a18131 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18134 4
a18137 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char DNSServiceRegister ();
d18141 4
a18144 1
return DNSServiceRegister ();
d18149 5
a18153 9
for ac_lib in '' dns_sd; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_DNSServiceRegister=$ac_res
d18155 1
a18155 7
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_DNSServiceRegister+:} false; then :
  break
fi
done
if ${ac_cv_search_DNSServiceRegister+:} false; then :
a18156 2
else
  ac_cv_search_DNSServiceRegister=no
d18158 2
a18159 8
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
$as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
ac_res=$ac_cv_search_DNSServiceRegister
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18161 2
a18162 1
$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
d18164 1
d18166 2
a18167 1
fi
d18169 1
d18171 2
a18172 1
fi
d18174 7
d18182 1
a18182 8
for ac_header in fcntl.h ieeefp.h inttypes.h kvm.h math.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18184 3
a18186 1
fi
d18188 2
a18189 1
done
d18192 3
a18194 7
for ac_header in memory.h netdb.h poll.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18196 7
d18205 4
d18210 1
a18210 1
done
d18212 1
a18212 8
for ac_header in sgtty.h stdlib.h string.h termio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18214 7
a18220 1
fi
d18222 12
a18233 1
done
d18235 3
a18237 8
for ac_header in termios.h timepps.h timex.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18239 2
a18240 1
fi
a18241 1
done
d18243 3
a18245 9

case "$host" in
 *-*-aix*)
    for ac_header in utmpx.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
if test "x$ac_cv_header_utmpx_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMPX_H 1
d18247 4
d18253 1
d18255 5
a18259 1
done
d18261 1
a18261 11
    case "$ac_cv_header_utmpx_h" in
     yes)
	;;
     *)
	for ac_header in utmp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
if test "x$ac_cv_header_utmp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMP_H 1
_ACEOF
d18263 1
a18263 1
fi
d18265 7
a18271 1
done
d18273 9
a18281 12
	;;
    esac
    ;;
 *)
    for ac_header in utmp.h utmpx.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18283 3
a18285 1
fi
d18287 1
a18287 1
done
a18288 2
    ;;
esac
d18290 3
a18292 16
#
# On Suns only (so far) getpass() truncates the typed password to 8
# characters, but getpassphrase() allows up to 257.  Most systems'
# getpass() does not truncate, at least not so as to affect ntpq and
# ntpdc password prompts.
#
# So check for getpassphrase(), but only on Sun operating systems.
#
case "$host" in
 *-*-sunos*|*-*-solaris*)
    for ac_func in getpassphrase
do :
  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
if test "x$ac_cv_func_getpassphrase" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETPASSPHRASE 1
d18294 4
d18300 9
a18308 1
done
d18312 7
d18320 9
a18328 7
for ac_header in net/if6.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
if test "x$ac_cv_header_net_if6_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF6_H 1
_ACEOF
d18330 3
a18332 1
fi
d18334 2
a18335 1
done
a18336 6
for ac_header in net/route.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <net/if.h>
d18338 3
a18340 4
"
if test "x$ac_cv_header_net_route_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_ROUTE_H 1
d18342 4
d18348 1
d18350 3
a18352 1
done
d18354 9
d18364 9
a18372 7
for ac_header in netinfo/ni.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NETINFO_NI_H 1
_ACEOF
d18374 3
a18376 1
fi
d18378 2
a18379 1
done
a18380 2
case "$ac_cv_header_netinfo_ni_h" in
 yes)
d18382 3
a18384 10
$as_echo "#define HAVE_NETINFO 1" >>confdefs.h

esac
for ac_header in sun/audioio.h sys/audioio.h sys/file.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18386 4
d18392 1
a18392 14

done

case "$host" in
 *-*-sunos4*)
    ;;
 *)
    for ac_header in sys/ioctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_IOCTL_H 1
_ACEOF
d18395 4
d18400 1
a18400 1
done
d18402 1
a18402 1
    ;;
a18403 8
for ac_header in sys/ipc.h sys/lock.h sys/mman.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a18404 1
fi
a18405 1
done
d18407 21
a18427 9
# HMS: Check sys/proc.h and sys/resource.h after some others
for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18429 2
a18430 1
fi
a18431 1
done
d18433 3
a18435 10
case "$ac_cv_header_sched_h" in
 yes)
    ;;
 *)
    for ac_header in sys/sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SCHED_H 1
d18437 7
d18446 12
d18459 9
a18467 1
done
d18469 3
a18471 11
    ;;
esac
# HMS: Check sys/shm.h after some others
for ac_header in sys/select.h sys/signal.h sys/sockio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18473 2
a18474 1
fi
a18475 1
done
d18477 3
a18479 12
# HMS: Checked sys/socket.h earlier
case "$host" in
 *-*-netbsd*)
    ;;
 *)
    for ac_header in machine/soundcard.h sys/soundcard.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18481 4
d18487 7
d18495 1
a18495 1
done
d18497 1
a18497 1
    ;;
a18498 8
for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a18499 1
fi
a18500 1
done
d18502 10
a18511 8
for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18513 2
a18514 1
fi
d18516 3
a18518 1
done
d18520 2
a18521 10
case "$host" in
*-convex-*)
    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
a18522 1
fi
d18524 3
a18526 11
done

    ;;
*-*-bsdi*)
    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d18528 4
d18534 1
d18536 5
a18540 1
done
d18542 1
a18542 19
    ;;
esac

case "$host" in
 *-*-solaris2.6)
    # Broken...
    ;;
 *)
    for ac_func in ntp_adjtime ntp_gettime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done
a18543 1
    ;;
d18546 9
a18554 13
case "$host" in
 *-*-*linux*)
    case "$ac_cv_func_ntp_gettime" in
     yes)
	;;
     *)
	for ac_func in __ntp_gettime
do :
  ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
if test "x$ac_cv_func___ntp_gettime" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___NTP_GETTIME 1
_ACEOF
d18556 6
a18561 2
fi
done
d18563 3
a18565 2
	case "$ac_cv_func___ntp_gettime" in
	 yes)
d18567 2
a18568 1
$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
d18571 3
a18573 11
$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h

	esac
	;;
    esac
    for ac_func in adjtimex
do :
  ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
if test "x$ac_cv_func_adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ADJTIMEX 1
d18575 4
d18581 1
a18581 1
done
d18583 4
a18586 1
    case "$ac_cv_func_adjtimex" in
d18589 1
a18589 1
$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
d18591 2
d18594 7
a18600 1
$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
d18602 1
a18602 10
	have_adjtimex=1
	;;
     *)
	for ac_func in __adjtimex
do :
  ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
if test "x$ac_cv_func___adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___ADJTIMEX 1
_ACEOF
d18604 3
a18606 2
fi
done
d18608 2
a18609 2
	case "$ac_cv_func___adjtimex" in
	 yes)
a18610 1
$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
d18612 8
d18621 2
a18622 1
$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
d18624 5
d18630 1
a18630 1
$as_echo "#define adjtimex __adjtimex" >>confdefs.h
d18632 1
d18634 3
a18636 15
$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h

	    have_adjtimex=1
	esac
	;;
    esac
esac
case "$have_adjtimex" in
 '')
    # nlist stuff is only needed for tickadj.
    saved_LIBS="$LIBS"
    LIBS=
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
$as_echo_n "checking for library containing nlist... " >&6; }
if ${ac_cv_search_nlist+:} false; then :
d18639 1
a18639 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18642 2
a18643 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
d18647 5
a18651 1
return nlist ();
d18656 5
a18660 9
for ac_lib in '' elf ld mld; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_nlist=$ac_res
d18662 2
a18663 4
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_nlist+:} false; then :
  break
d18665 4
a18668 2
done
if ${ac_cv_search_nlist+:} false; then :
d18670 1
a18670 11
else
  ac_cv_search_nlist=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
$as_echo "$ac_cv_search_nlist" >&6; }
ac_res=$ac_cv_search_nlist
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18672 1
a18672 1
fi
d18674 3
a18676 4
    # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
$as_echo_n "checking for library containing kvm_open... " >&6; }
if ${ac_cv_search_kvm_open+:} false; then :
d18679 1
a18679 2
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d18682 11
a18692 7
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char kvm_open ();
d18696 4
a18699 1
return kvm_open ();
d18704 2
a18705 18
for ac_lib in '' kvm; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_kvm_open=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_kvm_open+:} false; then :
  break
fi
done
if ${ac_cv_search_kvm_open+:} false; then :

d18707 1
a18707 10
  ac_cv_search_kvm_open=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
$as_echo "$ac_cv_search_kvm_open" >&6; }
ac_res=$ac_cv_search_kvm_open
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d18710 1
a18710 9
	    # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
    for ac_header in nlist.h sys/var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
d18713 4
d18718 1
a18718 1
done
d18720 1
a18720 2
    case "$ac_cv_header_nlist_h" in
     yes)
d18722 3
a18724 5
$as_echo "#define NLIST_STRUCT 1" >>confdefs.h

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
$as_echo_n "checking for n_un in struct nlist... " >&6; }
if ${ntp_cv_struct_nlist_n_un+:} false; then :
d18730 2
a18731 1
			#include <nlist.h>
d18737 1
a18737 2
			struct nlist n;
			n.n_un.n_name = 0;
a18742 1
		ntp_cv_struct_nlist_n_un=yes
d18745 3
a18747 1
  ntp_cv_struct_nlist_n_un=no
d18753 4
a18756 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
	case "$ntp_cv_struct_nlist_n_un" in
	 yes)
d18758 1
a18758 1
$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
d18760 1
a18760 2
	esac
    esac
d18762 15
a18776 4
    LDADD_NLIST="$LIBS"
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
esac
a18777 9
for ac_header in sys/proc.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif
d18780 4
a18783 3
if test "x$ac_cv_header_sys_proc_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PROC_H 1
d18786 1
a18788 1
done
d18790 14
a18804 11
for ac_header in sys/resource.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif

"
if test "x$ac_cv_header_sys_resource_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_RESOURCE_H 1
d18806 2
a18807 1

d18809 2
a18810 1

a18812 17

for ac_header in sys/shm.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_IPC_H
    # include <sys/ipc.h>
    #endif

"
if test "x$ac_cv_header_sys_shm_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SHM_H 1
_ACEOF

d18814 2
d18817 14
a18830 1
done
d18833 4
a18836 6
for ac_header in sys/timex.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif
d18838 1
a18838 7
"
if test "x$ac_cv_header_sys_timex_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEX_H 1
_ACEOF

fi
a18839 1
done
d18841 1
d18843 3
a18845 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
if ${ac_cv_type_signal+:} false; then :
d18850 1
a18850 3
#include <sys/types.h>
#include <signal.h>

d18854 3
a18856 1
return *(signal (0, 0)) (0) == 1;
d18862 1
a18862 1
  ac_cv_type_signal=int
d18864 1
a18864 1
  ac_cv_type_signal=void
d18868 33
a18900 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }
d18903 1
a18903 1
#define RETSIGTYPE $ac_cv_type_signal
d18907 2
a18908 4
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
if test "x$ac_cv_type_off_t" = xyes; then :

else
d18911 1
a18911 1
#define off_t long int
d18914 1
d18917 7
a18923 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if ${ac_cv_struct_tm+:} false; then :
d18926 1
a18926 4
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>
a18927 12
int
main ()
{
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_tm=time.h
d18929 8
a18936 1
  ac_cv_struct_tm=sys/time.h
d18938 1
a18938 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d18940 4
a18943 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then
d18945 3
a18947 1
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a18948 1
fi
d18950 7
a18956 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
$as_echo_n "checking for a fallback value for HZ... " >&6; }
if ${ntp_cv_default_hz+:} false; then :
d18959 12
d18972 3
a18974 9
	ntp_cv_default_hz=100
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_default_hz=1024
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_default_hz=256
	    ;;
	esac
a18976 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
$as_echo "$ntp_cv_default_hz" >&6; }
d18979 1
a18979 1
#define DEFAULT_HZ $ntp_cv_default_hz
a18982 24
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
if ${ntp_cv_override_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_override_hz=no
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_override_hz=yes
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-freebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-sunos4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-kfreebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	esac
d18984 6
d18991 1
a18991 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
$as_echo "$ntp_cv_override_hz" >&6; }
case "$ntp_cv_override_hz" in
 yes)
d18993 3
a18995 1
$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
d18997 1
a18997 1
esac
d18999 7
d19007 1
d19009 5
a19013 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
$as_echo_n "checking for struct rt_msghdr... " >&6; }
if ${ntp_cv_struct_rt_msghdr+:} false; then :
d19018 10
d19029 4
a19032 4
		#include <sys/types.h>
		#include <sys/socket.h>
		#include <net/if.h>
		#include <net/route.h>
d19034 1
a19034 3
int
main ()
{
a19035 1
		struct rt_msghdr p;
d19037 1
a19037 9

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_rt_msghdr=yes
else
  ntp_cv_struct_rt_msghdr=no
a19039 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19040 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
d19042 12
a19053 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
$as_echo_n "checking for struct rtattr... " >&6; }
if ${ntp_cv_rtattr+:} false; then :
d19056 2
a19057 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19060 7
a19066 4
		#include <stddef.h>
		#include <sys/socket.h>
		#include <linux/rtnetlink.h>

d19070 1
a19070 4

		struct rtattr p;


d19075 18
a19092 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rtattr=yes
d19094 10
a19103 1
  ntp_cv_rtattr=no
d19106 9
a19114 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19117 1
a19117 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
$as_echo "$ntp_cv_rtattr" >&6; }
d19119 9
a19127 2
case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
 *yes*)
d19129 2
a19130 1
$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
d19132 7
a19138 2
    case "$ntp_cv_rtattr" in
     yes)
d19140 8
a19147 1
$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
d19149 1
a19149 2
    esac
esac
d19151 5
a19155 6
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19158 1
a19158 1
		#include <signal.h>
d19164 2
a19165 2
		struct sigaction act;
		act.sa_sigaction = 0;
d19172 2
a19173 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_sigaction_has_sa_sigaction=yes
d19175 1
a19175 1
  ntp_cv_struct_sigaction_has_sa_sigaction=no
d19178 11
a19188 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19191 1
a19191 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
 yes)
a19192 1
$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
d19194 2
a19195 1
esac
a19196 7
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
$as_echo_n "checking for struct ppsclockev... " >&6; }
if ${ntp_cv_struct_ppsclockev+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d19198 8
a19205 12
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TERMIOS_H
		# include <sys/termios.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_PPSCLOCK_H
		# include <sys/ppsclock.h>
		#endif
d19207 2
a19208 3
int
main ()
{
a19209 2
		extern struct ppsclockev *pce;
		return pce->serial;
d19211 3
a19213 7

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ppsclockev=yes
d19215 1
a19215 1
  ntp_cv_struct_ppsclockev=no
a19217 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19218 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
case "$ntp_cv_struct_ppsclockev" in
 yes)
d19220 21
a19240 1
$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
d19242 2
a19243 1
esac
d19245 7
a19251 5
case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
  *yes*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
$as_echo_n "checking for struct snd_size... " >&6; }
if ${ntp_cv_struct_snd_size+:} false; then :
d19253 4
a19256 2
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19259 7
a19265 7
		    #ifdef HAVE_MACHINE_SOUNDCARD_H
		    # include <machine/soundcard.h>
		    #endif
		    #ifdef HAVE_SYS_SOUNDCARD_H
		    # include <sys/soundcard.h>
		    #endif

d19269 1
a19269 5

		    extern struct snd_size *ss;
		    return ss->rec_size;


d19274 2
a19275 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_snd_size=yes
d19277 5
a19281 2
  ntp_cv_struct_snd_size=no

d19283 6
a19288 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a19290 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
$as_echo "$ntp_cv_struct_snd_size" >&6; }
    case "$ntp_cv_struct_snd_size" in
     yes)
d19292 4
a19295 1
$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
d19297 8
d19306 14
d19322 3
a19324 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
$as_echo_n "checking struct clockinfo for hz... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
d19327 5
a19331 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19334 6
a19339 1
		#include <sys/time.h>
d19345 3
a19347 2
		extern struct clockinfo *pc;
		return pc->hz;
d19355 12
a19366 3
  ntp_cv_struct_clockinfo_has_hz=yes
else
  ntp_cv_struct_clockinfo_has_hz=no
d19369 16
a19384 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19387 4
a19390 4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)
d19392 1
a19392 1
$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
d19394 3
d19398 2
d19401 8
a19408 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
d19411 2
a19412 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19415 7
a19421 2
		#include <sys/time.h>

d19425 1
a19425 5

		extern struct clockinfo *pc;
		return pc->tickadj;


d19430 18
a19447 2
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_clockinfo_has_hz=yes
d19449 1
a19449 2
  ntp_cv_struct_clockinfo_has_hz=no

d19451 2
a19452 2
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d19454 5
a19458 35
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)

$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h

esac

case "$ntp_cv_struct_ntptimeval" in
 yes)
    ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
	    #ifdef HAVE_SYS_TIME_H
	    # include <sys/time.h>
	    #else
	    # ifdef HAVE_TIME_H
	    #  include <time.h>
	    # endif
	    #endif
	    #ifdef HAVE_SYS_TIMEX_H
	    # include <sys/timex.h>
	    #else
	    # ifdef HAVE_TIMEX_H
	    #  include <timex.h>
	    # endif
	    #endif


"
if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
_ACEOF

d19463 1
a19463 6

####

saved_LIBS="$LIBS"
LIBS="$LIBS $LDADD_LIBNTP"
for ac_func in daemon
d19465 2
a19466 2
  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
if test "x$ac_cv_func_daemon" = xyes; then :
d19468 1
a19468 1
#define HAVE_DAEMON 1
d19474 2
a19475 3
# XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
LIBS="$saved_LIBS"
{ saved_LIBS=; unset saved_LIBS;}
d19477 1
a19477 7
for ac_func in finite
do :
  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
if test "x$ac_cv_func_finite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FINITE 1
_ACEOF
d19479 1
a19479 8
else
  for ac_func in isfinite
do :
  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
if test "x$ac_cv_func_isfinite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ISFINITE 1
_ACEOF
d19481 4
d19486 2
a19487 7

	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
$as_echo_n "checking for isfinite with <math.h>... " >&6; }
	    _libs=$LIBS
	    # XXX
	    LIBS="$LIBS -lm"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d19490 7
a19496 2
			#include <math.h>

d19500 1
a19500 5

			float f = 0.0;
			isfinite(f);


d19505 18
a19522 2
if ac_fn_c_try_link "$LINENO"; then :
  ans=yes
d19524 10
a19533 1
  ans=no
a19535 8
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    LIBS=$_libs
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
	    case "$ans" in
	     yes)
		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
d19537 4
a19540 1
	    esac
d19542 1
a19544 1
done
d19546 2
d19549 1
a19549 2
fi
done
d19551 1
a19551 9

for ac_func in getbootfile getuid getrusage nanosleep strsignal
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
a19553 1
done
a19555 1
# kvm_open() is only used by tickadj.  Also see above.
d19572 12
d19586 1
a19586 1
    # Just stubs.  Sigh.
d19613 2
a19614 3
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub.  Sigh.
d19617 4
a19620 1
    # Just a stub in "old" Irix.  Sigh.
a19621 4
# In the belief that the fix for bug 1223 fixes mlockall() under linux...
# *-*-*linux*)
#    # there, but more trouble than it is worth for now (resolver problems)
#    ;;
d19623 1
a19623 1
    # Apparently there but not working in QNX.  Sigh?
d19626 1
a19626 1
    # Just a stub.  Sigh.
d19667 1
a19667 1
for ac_func in nice plock pututline pututxline readlink rtprio
d19680 2
a19681 18
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub in AIX 4.  Sigh.
    ;;
 *-*-solaris2.5*)
    # Just stubs in solaris2.5.  Sigh.
    ;;
 *) for ac_func in sched_setscheduler
do :
  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_SETSCHEDULER 1
_ACEOF

fi
done

d19683 1
a19683 2
esac
for ac_func in setlinebuf setpgid setpriority setsid setvbuf
d19695 3
a19697 1
for ac_func in strdup strerror setrlimit strchr
d19710 2
a19711 3
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just stubs.  Sigh.
d19713 2
a19714 2
 *-*-netbsd1*)
    # Just stubs.  Sigh.
d19716 1
a19716 8
 *-*-netbsdelf1*)
    # Just stubs.  Sigh.
    ;;
 *-*-openbsd*)
    # Just stubs.  Sigh.
    ;;
 *)
    for ac_func in timer_create
d19718 2
a19719 2
  ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
if test "x$ac_cv_func_timer_create" = xyes; then :
d19721 1
a19721 1
#define HAVE_TIMER_CREATE 1
d19729 7
a19735 31



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
if ${ntp_cv_rlimit_memlock+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif

int
main ()
{

		getrlimit(RLIMIT_MEMLOCK, 0);


  ;
  return 0;
}
a19736 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_memlock=yes
else
  ntp_cv_rlimit_memlock=no
d19739 1
a19739 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d19741 6
a19746 37
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
$as_echo "$ntp_cv_rlimit_memlock" >&6; }
case "$ntp_cv_rlimit_memlock" in
 yes)

    HAVE_RLIMIT_MEMLOCK=" memlock 32"
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
$as_echo_n "checking for RLIMIT_STACK... " >&6; }
if ${ntp_cv_rlimit_stack+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif

int
main ()
{

		getrlimit(RLIMIT_STACK, 0);


  ;
  return 0;
}
a19747 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_stack=yes
else
  ntp_cv_rlimit_stack=no
d19750 1
a19750 10
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
$as_echo "$ntp_cv_rlimit_stack" >&6; }
case "$ntp_cv_rlimit_stack" in
 yes)

    HAVE_RLIMIT_STACK=" stacksize 50"
esac
d19752 7
a19759 8

# HMS: Only if we are doing the MLOCKALL stuff...
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
$as_echo_n "checking for the default number of 4k stack pages... " >&6; }

# Check whether --with-stack-limit was given.
if test "${with_stack_limit+set}" = set; then :
  withval=$with_stack_limit; ans=$withval
a19760 1
  ans=yes
d19762 2
a19763 15
fi

case "$ans" in
 yes | no)
    case "$host" in
     *-*-openbsd*)
	ans=200
	;;
     *) ans=50
        ;;
    esac
    ;;
 [1-9][0-9]*)
    ;;
 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
d19766 2
a19767 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
d19769 7
a19775 2
cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_STACK $ans
a19777 11

# HMS: only if we have RLIMIT_MEMLOCK
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }

# Check whether --with-memlock was given.
if test "${with_memlock+set}" = set; then :
  withval=$with_memlock; ans=$withval
else
  ans=yes

d19779 1
d19781 1
a19781 19
case "$ans" in
 yes | no)
    ans=32
    ;;
 [1-9][0-9]*) ;;
 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
     ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_MEMLOCK $ans
_ACEOF



# some OSes prefer _exit() in forked children to exit()
for ac_func in _exit
d19783 3
a19785 2
  ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
if test "x$ac_cv_func__exit" = xyes; then :
d19787 1
a19787 1
#define HAVE__EXIT 1
d19793 9
a19801 4
ntp_worker_child_exit=exit
case "$ac_cv_func__exit::$host_os" in
 yes::netbsd*)
    ntp_worker_child_exit=_exit
d19803 2
a19804 2
 yes::openbsd*)
    ntp_worker_child_exit=_exit
d19806 7
a19812 4
esac

cat >>confdefs.h <<_ACEOF
#define WORKER_CHILD_EXIT $ntp_worker_child_exit
d19815 2
d19818 3
a19820 1
for ac_func in umask uname updwtmp updwtmpx
d19902 48
d19994 4
d20447 1
a20447 1
	 *-*-bsdi[23]*)
d20457 1
a20457 1
	 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
d20460 1
a20460 1
	 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
d20488 241
a20728 4

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
if ${ntp_cv_os_routeupdates+:} false; then :
d20732 49
a20780 6
	case "$host" in
	 *-*-netbsd*)
	    ans=yes
	    ;;
	 *)
	    ans=no
d20783 1
a20783 1
	ntp_cv_os_routeupdates=$ans
d20787 3
a20789 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
$as_echo "$ntp_cv_os_routeupdates" >&6; }
case "$ntp_cv_os_routeupdates" in
d20792 1
a20792 1
$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
d20796 3
a20798 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
if ${ntp_cv_os_wildcardreuse+:} false; then :
d20802 46
a20847 5
	case "$host" in
	 *-*-*linux*)
	    ans=yes
	    ;;
	 *) ans=no
d20850 1
a20850 1
	ntp_cv_os_wildcardreuse=$ans
d20854 3
a20856 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
case "$ntp_cv_os_wildcardreuse" in
d20859 1
a20859 1
$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
d20935 19
d21010 162
d21536 1
a21536 2
case "$ntp_ok" in
 yes)
d21541 1
a21541 2
    ;;
esac
d21561 1
a21561 2
case "$ntp_ok" in
 yes)
d21566 1
a21566 2
    ;;
esac
d21705 1
a21705 2
case "$ntp_ok" in
 yes)
d21710 1
a21710 2
    ;;
esac
d21724 1
a21724 2
case "$ntp_ok" in
 yes)
d21729 1
a21729 2
    ;;
esac
d21743 1
a21743 2
case "$ntp_ok" in
 yes)
d21748 1
a21748 2
    ;;
esac
d21762 1
a21762 2
case "$ntp_ok" in
 yes)
d21767 1
a21767 2
    ;;
esac
d21784 1
a21784 2
case "$ntp_ok" in
 yes)
d21789 1
a21789 2
    ;;
esac
d21803 1
a21803 2
case "$ntp_ok" in
 yes)
d21808 1
a21808 2
    ;;
esac
d21822 1
a21822 2
case "$ntp_ok" in
 yes)
d21827 1
a21827 2
    ;;
esac
d21847 5
d21879 1
a21879 2
case "$ntp_ok" in
 yes)
d21884 1
a21884 2
    ;;
esac
d21898 1
a21898 2
case "$ntp_ok" in
 yes)
d21903 1
a21903 2
    ;;
esac
d21917 1
a21917 2
case "$ntp_ok" in
 yes)
d21922 1
a21922 2
    ;;
esac
d21937 1
a21937 2
case "$ntp_ok" in
 yes)
d21942 1
a21942 2
    ;;
esac
d21956 1
a21956 2
case "$ntp_ok" in
 yes)
d21961 1
a21961 2
    ;;
esac
d21975 1
a21975 2
case "$ntp_ok" in
 yes)
d21980 1
a21980 2
    ;;
esac
d21994 1
a21994 2
case "$ntp_ok" in
 yes)
d21999 1
a21999 2
    ;;
esac
d22018 1
a22018 2
case "$ntp_ok" in
 yes)
d22023 1
a22023 2
    ;;
esac
d22041 1
a22041 2
case "$ntp_ok" in
 yes)
d22046 1
a22046 2
    ;;
esac
d22062 1
a22062 2
case "$ntp_ok" in
 yes)
d22067 1
a22067 2
    ;;
esac
d22081 1
a22081 2
case "$ntp_ok" in
 yes)
d22086 1
a22086 2
    ;;
esac
d22100 1
a22100 2
case "$ntp_ok" in
 yes)
d22105 1
a22105 2
    ;;
esac
d22130 1
a22130 2
case "$ntp_ok" in
 yes)
d22135 1
a22135 2
    ;;
esac
d22153 1
a22153 2
case "$ntp_ok" in
 yes)
d22158 1
a22158 2
    ;;
esac
d22172 1
a22172 2
case "$ntp_ok" in
 yes)
d22177 1
a22177 2
    ;;
esac
d22194 1
a22194 2
case "$ntp_ok" in
 yes)
d22199 1
a22199 2
    ;;
esac
d22214 1
a22214 2
case "$ntp_ok" in
 yes)
d22219 1
a22219 2
    ;;
esac
d22233 1
a22233 2
case "$ntp_ok" in
 yes)
d22238 1
a22238 2
    ;;
esac
d22252 1
a22252 2
case "$ntp_ok" in
 yes)
d22257 1
a22257 2
    ;;
esac
d22275 1
a22275 2
case "$ntp_ok" in
 yes)
d22280 1
a22280 2
    ;;
esac
d22301 1
a22301 2
case "$ntp_ok" in
 yes)
d22306 1
a22306 2
    ;;
esac
d22320 1
a22320 2
case "$ntp_ok" in
 yes)
d22325 1
a22325 2
    ;;
esac
d22348 1
a22348 2
case "$ntp_ok" in
 yes)
d22353 1
a22353 2
    ;;
esac
d22361 1
d22382 1
a22382 2
case "$ntp_ok" in
 yes)
d22387 1
a22387 2
    ;;
esac
d22405 1
a22405 2
case "$ntp_ok" in
 yes)
d22410 1
a22410 2
    ;;
esac
d22424 1
a22424 2
case "$ntp_ok" in
 yes)
a22428 21
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
# Check whether --enable-TSYNCPCI was given.
if test "${enable_TSYNCPCI+set}" = set; then :
  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
else

	case "$host" in
	 *-*-*linux*)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	esac


a22429 9

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h

    ;;
esac
d22448 1
a22448 2
case "$ntp_ok" in
 yes)
d22453 1
a22453 2
    ;;
esac
d22471 1
a22471 2
case "$ntp_ok" in
 yes)
d22476 1
a22476 2
    ;;
esac
d22523 1
a22523 2
case "$ntp_ok" in
 yes)
d22529 1
a22529 2
    ;;
esac
d22547 1
a22547 2
case "$ntp_ok" in
 yes)
d22553 1
a22553 2
    ;;
esac
d22571 1
a22571 2
case "$ntp_ok" in
 yes)
d22577 1
a22577 2
    ;;
esac
d22595 1
a22595 2
case "$ntp_ok" in
 yes)
d22601 1
a22601 2
    ;;
esac
d22619 1
a22619 2
case "$ntp_ok" in
 yes)
d22627 1
a22627 2
    ;;
esac
d22673 1
a22673 2
case "$ntp_ok" in
 yes)
d22679 1
a22679 2
    ;;
esac
d22697 1
a22697 2
case "$ntp_ok" in
 yes)
d22703 1
a22703 2
    ;;
esac
d22721 1
a22721 2
case "$ntp_ok" in
 yes)
d22727 1
a22727 2
    ;;
esac
d22745 1
a22745 2
case "$ntp_ok" in
 yes)
d22751 1
a22751 2
    ;;
esac
d22769 1
a22769 2
case "$ntp_ok" in
 yes)
d22775 1
a22775 2
    ;;
esac
d22793 1
a22793 2
case "$ntp_ok" in
 yes)
a22798 24
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
$as_echo_n "checking SEL240X clock... " >&6; }
# Check whether --enable-SEL240X was given.
if test "${enable_SEL240X+set}" = set; then :
  enableval=$enable_SEL240X; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h

a22804 1
    ;;
a22830 119
ntp_pkgconfig_min_version='0.15.0'
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}

case "$PKG_CONFIG" in
 /*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	PKG_CONFIG=""
    fi
    ;;
esac



a22832 1
VER_SUFFIX=
d22835 2
a22836 7


# Check whether --with-crypto was given.
if test "${with_crypto+set}" = set; then :
  withval=$with_crypto;
fi

d22840 2
a22841 2
  withval=$with_openssl_libdir;
fi
d22843 4
a22846 5

# Check whether --with-openssl-incdir was given.
if test "${with_openssl_incdir+set}" = set; then :
  withval=$with_openssl_incdir;
fi
a22848 3
# Check whether --with-rpath was given.
if test "${with_rpath+set}" = set; then :
  withval=$with_rpath;
d22851 8
a22858 30
ntp_openssl=no
ntp_openssl_from_pkg_config=no
with_crypto=${with_crypto:-openssl,libcrypto}
case "$with_crypto" in
 yes)
    with_crypto=openssl,libcrypto
esac
case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
 no:*) ;;
 *:notempty:notgiven:notgiven)
    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
$as_echo_n "checking pkg-config for $pkg... " >&6; }
	if $PKG_CONFIG --exists $pkg ; then
	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
	    VER_SUFFIX=o
	    ntp_openssl=yes
	    ntp_openssl_from_pkg_config=yes
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

	    break
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    done
d22860 6
a22865 11
case "$with_crypto:$ntp_openssl" in
 no:*) ;;
 *:no)
    need_dash_r=
    need_dash_Wlrpath=
    case "${with_rpath-notgiven}" in
     yes)
	# Lame - what to do if we need -Wl... but not -R?
	need_dash_r=1
	;;
     notgiven)
d22867 2
a22868 22
	 *-*-linux*)
	    # This may really only be true for gcc
	    need_dash_Wlrpath=1
	    ;;
	 *-*-netbsd*)
	    need_dash_r=1
	    ;;
	 *-*-solaris*)
	    need_dash_r=1
	    ;;
	esac
	;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
$as_echo_n "checking for openssl library directory... " >&6; }
    with_openssl_libdir=${with_openssl_libdir-notgiven}
    case "$with_openssl_libdir" in
     notgiven)
	case "$build" in
	 $host)
	    with_openssl_libdir=default
d22871 2
a22872 1
	    with_openssl_libdir=no
d22875 2
a22876 9
    esac
    case "$with_openssl_libdir" in
     default)
	# Look in:
	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
    esac
    case "$with_openssl_libdir" in
d22878 2
d22881 2
a22882 14
     *) # Look for libcrypto.a and libssl.a:
	for i in $with_openssl_libdir no
	do
	    case "$host" in
	     *-*-darwin*)
		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
		;;
	     *)
		test -f $i/libcrypto.so -a -f $i/libssl.so && break
		test -f $i/libcrypto.a -a -f $i/libssl.a && break
		;;
	    esac
	done
	openssl_libdir=$i
d22885 4
a22888 8
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
$as_echo "$openssl_libdir" >&6; }
    case "$openssl_libdir" in
     no)
	openssl_libdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
    esac
d22890 1
a22890 1
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
d22892 32
a22923 9
    with_openssl_incdir=${with_openssl_incdir-notgiven}
    case "$with_openssl_incdir" in
     notgiven)
	# Look in:
	with_openssl_incdir="/usr/include /usr/sfw/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
    esac
    case "$with_openssl_incdir" in
d22925 2
d22928 2
a22929 6
     *) # look for openssl/evp.h:
	for i in $with_openssl_incdir no
	do
	    test -f $i/openssl/evp.h && break
	done
	openssl_incdir=$i
d22932 21
a22952 10
    { i=; unset i;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
$as_echo "$openssl_incdir" >&6; }
    case "$openssl_incdir" in
     no)
	openssl_incdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
    esac
    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
d22954 1
a22954 1
	ntp_openssl=no
d22956 1
a22956 2
	ntp_openssl=yes
	VER_SUFFIX=o
d22958 23
a22980 9
    case "$ntp_openssl" in
     yes)
	# We have OpenSSL inc/lib dirs - use them.
	case "$openssl_incdir" in
	 /usr/include)
	    ;;
	 *)
	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
	    ;;
d22982 1
a22982 16
	case "$openssl_libdir" in
	 /usr/lib)
	    ;;
	 *)
	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
	    case "$need_dash_r" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
	    esac
	    case "$need_dash_Wlrpath" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
	    esac
	    ;;
	esac
	LDADD_NTP="$LDADD_NTP -lcrypto"
d22984 1
a22984 6
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
$as_echo_n "checking if we will use crypto... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
$as_echo "$ntp_openssl" >&6; }
a22985 2
case "$ntp_openssl" in
 yes)
d22987 1
a22987 1
$as_echo "#define OPENSSL /**/" >>confdefs.h
a22988 5
    case "$VER_SUFFIX" in
     *o*) ;;
     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
    esac
    ;;
a22990 4
NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
NTPO_SAVED_LIBS="$LIBS"

d22992 1
a22992 1
# check for linking with -lcrypto failure, and try -lcrypto -lz.
d22995 6
a23000 5
case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
 yes:no)
    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
$as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
d23036 3
a23038 3
	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
d23074 1
a23074 1
	     LDADD_NTP="$LDADD_NTP -lz"
d23077 2
d23095 1
a23095 1
NTPO_SAVED_CFLAGS="$CFLAGS"
d23097 2
a23098 2
case "$ntp_openssl:$GCC" in
 yes:yes)
d23162 1
a23162 1
	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
d23165 1
a23165 1
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
d23168 1
a23168 1
 no:yes)
d23170 1
a23170 1
    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
a23172 8
CFLAGS="$NTPO_SAVED_CFLAGS"
CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
LIBS="$NTPO_SAVED_LIBS"
{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
d23175 6
a23180 6
# if we are using OpenSSL (--with-crypto), by default Autokey is enabled
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
# Check whether --enable-autokey was given.
if test "${enable_autokey+set}" = set; then :
  enableval=$enable_autokey; ntp_autokey=$enableval
d23182 1
a23182 1
  ntp_autokey=$ntp_openssl
d23186 2
a23187 3
case "$ntp_autokey" in
 no)
    ;;
d23189 2
a23190 7
    case "$ntp_openssl" in
     no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
	ntp_autokey=no
	;;
     *)
d23192 1
a23192 1
$as_echo "#define AUTOKEY 1" >>confdefs.h
d23194 1
a23194 3
	ntp_autokey=yes
	;;
    esac
d23197 2
a23198 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
$as_echo "$ntp_autokey" >&6; }
d23220 1
a23220 2
case "$ntp_parseutil" in
 yes)
d23225 1
a23225 1
	TESTDCF=testdcf
d23227 1
a23227 2
    ;;
esac
d23273 1
a23273 2
case "$ntp_refclock" in
 yes)
d23277 1
a23277 2
    ;;
esac
a23280 2
PROPDELAY=propdelay

d23292 1
a23292 2
case "$ans" in
 yes)
d23297 1
a23297 7
    ;;
 *) ADJTIMED_DB=
    ADJTIMED_DL=
    ADJTIMED_DS=
    ADJTIMED_MS=
    ;;
esac
d23310 1
a23310 2
case "$ans" in
 yes)
d23314 1
a23314 2
    ;;
esac
a23327 1
    ;;
d23392 1
a23392 2
 *-ibm-aix[4-9]*)
    # XXX only verified thru AIX6.
a23407 1
    ;;
d23451 1
a23451 2
	 *-ibm-aix[3-9]*)
	    # XXX only verified thru AIX6.
a23791 1
	;;
a23797 1
	;;
a23803 1
	;;
a23819 1
    ;;
a23921 6
 *)
    NTPTIME_DB=
    NTPTIME_DL=
    NTPTIME_DS=
    NTPTIME_MS=
    ;;
a23970 11
    ;;
 *)
    CALC_TICKADJ_DB=
    CALC_TICKADJ_DL=
    CALC_TICKADJ_DS=
    CALC_TICKADJ_MS=
    TICKADJ_DB=
    TICKADJ_DL=
    TICKADJ_DS=
    TICKADJ_MS=
    ;;
a23998 6
    ;;
 *) TIMETRIM_DB=
    TIMETRIM_DL=
    TIMETRIM_DS=
    TIMETRIM_MS=
    ;;
a24019 7
    ;;
 *)
    NTPDSIM_DB=
    NTPDSIM_DL=
    NTPDSIM_DS=
    NTPDSIM_MS=
    ;;
a24033 34

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
$as_echo_n "checking if sntp will be built... " >&6; }

# Check whether --with-sntp was given.
if test "${with_sntp+set}" = set; then :
  withval=$with_sntp;
else
  with_sntp="${withsntp=yes}"

fi

case "$with_sntp" in
 no)
    SNTP=
    ;;
 *)
    SNTP=sntp
    ;;
esac

 if test -n "$SNTP"; then
  BUILD_SNTP_TRUE=
  BUILD_SNTP_FALSE='#'
else
  BUILD_SNTP_TRUE='#'
  BUILD_SNTP_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
$as_echo "$with_sntp" >&6; }



a24144 1
	{ save_CFLAGS=; unset save_CFLAGS;}
a24145 1
	{ save_CPPFLAGS=; unset save_CPPFLAGS;}
a24146 1
	{ save_LIBS=; unset save_LIBS;}
a24156 8
case "$MAKE_NTPSNMPD" in
 '')
    NTPSNMPD_DB=
    NTPSNMPD_DL=
    NTPSNMPD_DS=
    NTPSNMPD_MS=
    ;;
esac
a24249 1
    ;;
a24281 1
    ;;
a24323 1
	;;
a24343 1
	;;
a24347 1
    ;;
a24398 1
    ;;
d24418 1
d24441 1
a24479 1
    ;;
d24482 2
a24483 1
for ac_header in libscf.h
d24485 2
a24486 2
  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
if test "x$ac_cv_header_libscf_h" = xyes; then :
d24488 1
a24488 1
#define HAVE_LIBSCF_H 1
d24495 7
a24501 4
LSCF=
case "$ac_cv_header_libscf_h" in
 yes)
    LSCF='-lscf'
d24504 3
a24506 7



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
if ${ntp_cv_sockaddr_storage+:} false; then :
  $as_echo_n "(cached) " >&6
d24508 1
a24508 2
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24510 1
a24510 9
		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif
a24511 3
int
main ()
{
d24513 4
a24516 1
		struct sockaddr_storage n;
d24519 7
a24525 3
  ;
  return 0;
}
a24526 4
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_sockaddr_storage=yes
else
  ntp_cv_sockaddr_storage=no
a24528 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24530 1
a24530 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
$as_echo "$ntp_cv_sockaddr_storage" >&6; }
case "$ntp_cv_sockaddr_storage" in
 yes)
a24531 1
$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
d24533 2
a24534 45
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
if ${ntp_cv_have___ss_family+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_SYS_TYPES_H
		    # include <sys/types.h>
		    #endif
		    #ifdef HAVE_SYS_SOCKET_H
		    # include <sys/socket.h>
		    #endif
		    #ifdef HAVE_NETINET_IN_H
		    # include <netinet/in.h>
		    #endif

int
main ()
{

		    struct sockaddr_storage s;
		    s.__ss_family = 1;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have___ss_family=yes
else
  ntp_cv_have___ss_family=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
$as_echo "$ntp_cv_have___ss_family" >&6; }
    case "$ntp_cv_have___ss_family" in
     yes)

$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
d24536 8
d24545 4
a24548 1

d24551 3
d24555 1
a24555 10
#
# Look for in_port_t.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
$as_echo_n "checking for in_port_t... " >&6; }
if ${isc_cv_have_in_port_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a24556 2
		#include <sys/types.h>
		#include <netinet/in.h>
d24558 2
a24559 3
int
main ()
{
d24561 2
a24562 2
		in_port_t port = 25;
		return (0);
d24564 1
d24566 2
a24567 11
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_in_port_t=yes
else
  isc_cv_have_in_port_t=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d24569 2
a24570 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
$as_echo "$isc_cv_have_in_port_t" >&6; }
case "$isc_cv_have_in_port_t" in
 no)
d24572 1
a24572 1
$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
a24575 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
if ${ntp_cv_getsockname_socklen_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
d24577 9
a24585 5
    getsockname_socklen_type_found=no
    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24587 1
a24587 6
			#ifdef HAVE_SYS_TYPES_H
			# include <sys/types.h>
			#endif
			#ifdef HAVE_SYS_SOCKET_H
			# include <sys/socket.h>
			#endif
d24589 5
a24593 3
int
main ()
{
a24594 3
			extern
			getsockname(int, $getsockname_arg2,
				$ntp_cv_getsockname_socklen_type *);
d24596 5
a24601 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  getsockname_socklen_type_found=yes ; break 2
a24602 9
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	done
    done
    case "$getsockname_socklen_type_found" in
     no)
	ntp_cv_getsockname_socklen_type='socklen_t'
    esac
    { getsockname_arg2=; unset getsockname_arg2;}
    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
d24604 2
d24607 1
a24607 3
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
d24609 1
a24609 3
cat >>confdefs.h <<_ACEOF
#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
_ACEOF
d24902 1
a24902 1
if ${isc_cv_in6addr_any_links+:} false; then :
d24905 2
d24908 5
a24912 9
	SAVED_LIBS="$LIBS"
	LIBS="$LDADD_LIBNTP $LIBS"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack
d24918 2
a24919 1
		    printf("%x", in6addr_any.s6_addr[15]);
d24927 1
a24927 1
  isc_cv_in6addr_any_links=yes
d24929 1
a24929 1
  isc_cv_in6addr_any_links=no
a24933 3
	LIBS="$SAVED_LIBS"
	{ SAVED_LIBS=; unset SAVED_LIBS;}

d24936 2
a24937 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
$as_echo "$isc_cv_in6addr_any_links" >&6; }
d24939 1
a24939 1
case "$isc_cv_in6addr_any_links" in
d25006 6
a25011 178
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_struct_if_laddrreq=yes
else
  isc_cv_struct_if_laddrreq=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
$as_echo "$isc_cv_struct_if_laddrreq" >&6; }

case "$isc_cv_struct_if_laddrreq" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
$as_echo_n "checking for multicast IP support... " >&6; }
if ${ntp_cv_multicast+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_multicast=no
	case "$host" in
	 i386-sequent-sysv4)
	    ;;
	 *)
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#ifdef HAVE_NETINET_IN_H
			# include <netinet/in.h>
			#endif

int
main ()
{

			struct ip_mreq ipmr;
			ipmr.imr_interface.s_addr = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_multicast=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
$as_echo "$ntp_cv_multicast" >&6; }
case "$ntp_cv_multicast" in
 yes)

$as_echo "#define MCAST 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    case "$host" in
	     *-*-netbsd*|*-*-*linux*)
		ntp_cv_typeof_ip_multicast_loop=u_int
		;;
	     *)
		ntp_cv_typeof_ip_multicast_loop=u_char
		;;
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }

cat >>confdefs.h <<_ACEOF
#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
_ACEOF

esac

# Check whether --enable-getifaddrs was given.
if test "${enable_getifaddrs+set}" = set; then :
  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
else
  want_getifaddrs="yes"

fi


case $want_getifaddrs in
 glibc)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
esac
case $want_getifaddrs in
 no)
    ;;
 *)
    SAVED_LIBS="$LIBS"
    LIBS="$LDADD_LIBNTP $LIBS"
    for ac_func in getifaddrs
do :
  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF

fi
done

    LIBS="$SAVED_LIBS"
    { SAVED_LIBS=; unset SAVED_LIBS;}
    ;;
esac

#
# Check for if_nametoindex() for IPv6 scoped addresses support
#
case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
$as_echo_n "checking for library containing if_nametoindex... " >&6; }
if ${ac_cv_search_if_nametoindex+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char if_nametoindex ();
int
main ()
{
return if_nametoindex ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' ipv6; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_if_nametoindex=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_if_nametoindex+:} false; then :
  break
fi
done
if ${ac_cv_search_if_nametoindex+:} false; then :

d25013 1
a25013 10
  ac_cv_search_if_nametoindex=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
$as_echo "$ac_cv_search_if_nametoindex" >&6; }
ac_res=$ac_cv_search_if_nametoindex
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d25016 1
a25016 11

esac
SAVED_LIBS="$LIBS"
LIBS="$LDADD_LIBNTP $LIBS"
for ac_func in if_nametoindex
do :
  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
if test "x$ac_cv_func_if_nametoindex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_IF_NAMETOINDEX 1
_ACEOF
d25019 2
a25020 1
done
d25022 1
a25022 3
LIBS="$SAVED_LIBS"
{ SAVED_LIBS=; unset SAVED_LIBS;}
case "$ac_cv_func_if_nametoindex" in
d25025 1
a25025 1
$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
a25028 3



d25081 1
a25081 2
case "$ntp_ok" in
 yes)
d25086 1
a25086 2
    ;;
esac
a25097 100

gta=false

# Check whether --with-gtest was given.
if test "${with_gtest+set}" = set; then :
  withval=$with_gtest; try_gtest=$withval
else
  try_gtest=yes

fi

case "$try_gtest" in
 yes)
    # Extract the first word of "gtest-config", so it can be a program name with args.
set dummy gtest-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_GTEST_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $GTEST_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
if test -n "$GTEST_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
$as_echo "$GTEST_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
    case x${GTEST_CONFIG} in
     x) ;;
     *)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
$as_echo_n "checking gtest version... " >&6; }
	gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
	case "$gtest_version_test" in
	 toolow*)
	    ;;
	 *)
	    GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
	    GTEST_LIBS=`$GTEST_CONFIG --libs`
	    GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
	    GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`




	    gta=true
	    ;;
	esac
	gtest_version=`$GTEST_CONFIG --version`
	case "$gta" in
	 true)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
$as_echo "($gtest_version) ok" >&6; }
	    ;;
	 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
$as_echo "($gtest_version) not ok" >&6; }
	    ;;
	esac
	{ gtest_version_test=; unset gtest_version_test;}
	{ gtest_version=; unset gtest_version;}
    esac
esac
 if $gta; then
  GTEST_AVAILABLE_TRUE=
  GTEST_AVAILABLE_FALSE='#'
else
  GTEST_AVAILABLE_TRUE='#'
  GTEST_AVAILABLE_FALSE=
fi




d25101 5
a25105 8
  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$sysconfdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  NTP_KEYSDIR="$ac_define_dir"

d25108 1
a25108 1
#define NTP_KEYSDIR "$ac_define_dir"
a25110 2
  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE
d25115 2
a25134 2
ac_config_files="$ac_config_files ntpd/complete.conf"

d25149 1
a25149 5
ac_config_files="$ac_config_files scripts/lib/Makefile"

ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"

ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
d25151 1
a25151 1
ac_config_files="$ac_config_files scripts/build/mkver"
d25153 1
a25153 1
ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
d25155 1
a25155 1
ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
d25157 1
a25157 1
ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
d25159 1
a25159 1
ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
d25161 1
a25161 1
ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
d25163 1
a25163 1
ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
a25170 8
ac_config_files="$ac_config_files scripts/build/Makefile"

ac_config_files="$ac_config_files tests/Makefile"

ac_config_files="$ac_config_files tests/libntp/Makefile"

ac_config_files="$ac_config_files tests/ntpd/Makefile"

a25173 32
perllibdir="${datadir}/ntp/lib"

  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$perllibdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  PERLLIBDIR="$ac_define_dir"


cat >>confdefs.h <<_ACEOF
#define PERLLIBDIR "$ac_define_dir"
_ACEOF

  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE


calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"

ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"

ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"

ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"

summary_opts="$srcdir/scripts/summary-opts"

plot_summary_opts="$srcdir/scripts/plot_summary-opts"


a25307 5

if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a25311 4
if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d25324 2
a25325 6
if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
  as_fn_error $? "conditional \"PTHREADS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
d25328 1
a25332 4
if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
  as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d25742 1
a25742 1
This file was extended by ntp $as_me 4.2.7p404, which was
d25802 1
a25802 2
Report bugs to <http://bugs.ntp.org./>.
ntp home page: <http://www.ntp.org./>."
d25808 1
a25808 1
ntp config.status 4.2.7p404
a26066 55
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d26145 1
a26145 33
striplib \
compiler_lib_search_dirs \
predep_objects \
postdep_objects \
predeps \
postdeps \
compiler_lib_search_path \
LD_CXX \
reload_flag_CXX \
compiler_CXX \
lt_prog_compiler_no_builtin_flag_CXX \
lt_prog_compiler_pic_CXX \
lt_prog_compiler_wl_CXX \
lt_prog_compiler_static_CXX \
lt_cv_prog_compiler_c_o_CXX \
export_dynamic_flag_spec_CXX \
whole_archive_flag_spec_CXX \
compiler_needs_object_CXX \
with_gnu_ld_CXX \
allow_undefined_flag_CXX \
no_undefined_flag_CXX \
hardcode_libdir_flag_spec_CXX \
hardcode_libdir_flag_spec_ld_CXX \
hardcode_libdir_separator_CXX \
exclude_expsyms_CXX \
include_expsyms_CXX \
file_list_spec_CXX \
compiler_lib_search_dirs_CXX \
predep_objects_CXX \
postdep_objects_CXX \
predeps_CXX \
postdeps_CXX \
compiler_lib_search_path_CXX; do
d26175 1
a26175 12
sys_lib_dlsearch_path_spec \
reload_cmds_CXX \
old_archive_cmds_CXX \
old_archive_from_new_cmds_CXX \
old_archive_from_expsyms_cmds_CXX \
archive_cmds_CXX \
archive_expsym_cmds_CXX \
module_cmds_CXX \
module_expsym_cmds_CXX \
export_symbols_cmds_CXX \
prelink_cmds_CXX \
postlink_cmds_CXX; do
a26205 2


d26218 1
a26227 1
    "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
d26235 8
a26242 10
    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
    "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
    "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
    "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
    "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
a26245 4
    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
    "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
    "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
d26295 1
a26295 18
if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  ac_cs_awk_getline=:
  ac_cs_awk_pipe_init=
  ac_cs_awk_read_file='
      while ((getline aline < (F[key])) > 0)
	print(aline)
      close(F[key])'
  ac_cs_awk_pipe_fini=
else
  ac_cs_awk_getline=false
  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  ac_cs_awk_read_file='
      print "|#_!!_#|"
      print "cat " F[key] " &&"
      '$ac_cs_awk_pipe_init
  # The final `:' finishes the AND list.
  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
fi
a26312 11
# Create commands to substitute file output variables.
{
  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  echo "_ACAWK" &&
  echo "_ACEOF"
} >conf$$files.sh &&
. ./conf$$files.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
rm -f conf$$files.sh
d26389 1
a26389 1
  \$ac_cs_awk_pipe_init
d26407 1
a26407 7
  if (nfields == 3 && !substed) {
    key = field[2]
    if (F[key] != "" && line ~ /^[	 ]*@@.*@@[	 ]*$/) {
      \$ac_cs_awk_read_file
      next
    }
  }
d26410 1
a26410 1
\$ac_cs_awk_pipe_fini
d26757 1
a26757 6
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
if $ac_cs_awk_getline; then
  $AWK -f "$ac_tmp/subs.awk"
else
  $AWK -f "$ac_tmp/subs.awk" | $SHELL
fi \
d26987 1
a26987 1
available_tags="CXX "
a27374 14
# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects
postdep_objects=$lt_postdep_objects
predeps=$lt_predeps
postdeps=$lt_postdeps

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path

a27566 157

    cat <<_LT_EOF >> "$ofile"

# ### BEGIN LIBTOOL TAG CONFIG: CXX

# The linker used to build libraries.
LD=$lt_LD_CXX

# How to create reloadable object files.
reload_flag=$lt_reload_flag_CXX
reload_cmds=$lt_reload_cmds_CXX

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds_CXX

# A language specific compiler.
CC=$lt_compiler_CXX

# Is the compiler the GNU compiler?
with_gcc=$GCC_CXX

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object_CXX

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld_CXX

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute_CXX

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic_CXX

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath_CXX

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds_CXX

# Commands necessary for finishing linking programs.
postlink_cmds=$lt_postlink_cmds_CXX

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec_CXX

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects_CXX
postdep_objects=$lt_postdep_objects_CXX
predeps=$lt_predeps_CXX
postdeps=$lt_postdeps_CXX

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX

# ### END LIBTOOL TAG CONFIG: CXX
_LT_EOF

a27567 1
    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
d27569 8
a27576 5
    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
    "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
    "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
    "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
    "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
@


1.1.1.3.4.1
log
@Apply patch (requested by christos in ticket #351):
external/bsd/ntp/Makefile.inc	patch
external/bsd/ntp/importdate	patch
external/bsd/ntp/bin/ntpd/Makefile	patch
external/bsd/ntp/dist/COPYRIGHT	patch
external/bsd/ntp/dist/ChangeLog	patch
external/bsd/ntp/dist/CommitLog	patch
external/bsd/ntp/dist/Makefile.am	patch
external/bsd/ntp/dist/Makefile.in	patch
external/bsd/ntp/dist/NEWS	patch
external/bsd/ntp/dist/aclocal.m4	patch
external/bsd/ntp/dist/bootstrap	patch
external/bsd/ntp/dist/build	patch
external/bsd/ntp/dist/config.h.in	patch
external/bsd/ntp/dist/configure	patch
external/bsd/ntp/dist/configure.ac	patch
external/bsd/ntp/dist/packageinfo.sh	patch
external/bsd/ntp/dist/adjtimed/Makefile.in	patch
external/bsd/ntp/dist/adjtimed/adjtimed.c	patch
external/bsd/ntp/dist/clockstuff/Makefile.in	patch
external/bsd/ntp/dist/clockstuff/chutest.c	patch
external/bsd/ntp/dist/clockstuff/propdelay.c	patch
external/bsd/ntp/dist/html/access.html	patch
external/bsd/ntp/dist/html/accopt.html	patch
external/bsd/ntp/dist/html/assoc.html	patch
external/bsd/ntp/dist/html/audio.html	patch
external/bsd/ntp/dist/html/authentic.html	patch
external/bsd/ntp/dist/html/authopt.html	patch
external/bsd/ntp/dist/html/autokey.html	patch
external/bsd/ntp/dist/html/bugs.html	patch
external/bsd/ntp/dist/html/build.html	patch
external/bsd/ntp/dist/html/clock.html	patch
external/bsd/ntp/dist/html/clockopt.html	patch
external/bsd/ntp/dist/html/cluster.html	patch
external/bsd/ntp/dist/html/comdex.html	patch
external/bsd/ntp/dist/html/config.html	patch
external/bsd/ntp/dist/html/confopt.html	patch
external/bsd/ntp/dist/html/copyright.html	patch
external/bsd/ntp/dist/html/debug.html	patch
external/bsd/ntp/dist/html/decode.html	patch
external/bsd/ntp/dist/html/discipline.html	patch
external/bsd/ntp/dist/html/discover.html	patch
external/bsd/ntp/dist/html/extern.html	patch
external/bsd/ntp/dist/html/filter.html	patch
external/bsd/ntp/dist/html/hints.html	patch
external/bsd/ntp/dist/html/history.html	patch
external/bsd/ntp/dist/html/howto.html	patch
external/bsd/ntp/dist/html/huffpuff.html	patch
external/bsd/ntp/dist/html/index.html	patch
external/bsd/ntp/dist/html/kern.html	patch
external/bsd/ntp/dist/html/kernpps.html	patch
external/bsd/ntp/dist/html/keygen.html	patch
external/bsd/ntp/dist/html/leap.html	patch
external/bsd/ntp/dist/html/miscopt.html	patch
external/bsd/ntp/dist/html/monopt.html	patch
external/bsd/ntp/dist/html/msyslog.html	patch
external/bsd/ntp/dist/html/ntp-wait.html	patch
external/bsd/ntp/dist/html/ntp_conf.html	patch
external/bsd/ntp/dist/html/ntpd.html	patch
external/bsd/ntp/dist/html/ntpdate.html	patch
external/bsd/ntp/dist/html/ntpdc.html	patch
external/bsd/ntp/dist/html/ntpdsim.html	patch
external/bsd/ntp/dist/html/ntpdsim_new.html	patch
external/bsd/ntp/dist/html/ntpq.html	patch
external/bsd/ntp/dist/html/ntptime.html	patch
external/bsd/ntp/dist/html/ntptrace.html	patch
external/bsd/ntp/dist/html/orphan.html	patch
external/bsd/ntp/dist/html/parsedata.html	patch
external/bsd/ntp/dist/html/parsenew.html	patch
external/bsd/ntp/dist/html/poll.html	patch
external/bsd/ntp/dist/html/pps.html	patch
external/bsd/ntp/dist/html/prefer.html	patch
external/bsd/ntp/dist/html/quick.html	patch
external/bsd/ntp/dist/html/rate.html	patch
external/bsd/ntp/dist/html/rdebug.html	patch
external/bsd/ntp/dist/html/refclock.html	patch
external/bsd/ntp/dist/html/release.html	patch
external/bsd/ntp/dist/html/select.html	patch
external/bsd/ntp/dist/html/sitemap.html	patch
external/bsd/ntp/dist/html/sntp.html	patch
external/bsd/ntp/dist/html/stats.html	patch
external/bsd/ntp/dist/html/tickadj.html	patch
external/bsd/ntp/dist/html/warp.html	patch
external/bsd/ntp/dist/html/xleave.html	patch
external/bsd/ntp/dist/html/drivers/driver1.html	patch
external/bsd/ntp/dist/html/drivers/driver10.html	patch
external/bsd/ntp/dist/html/drivers/driver11.html	patch
external/bsd/ntp/dist/html/drivers/driver12.html	patch
external/bsd/ntp/dist/html/drivers/driver16.html	patch
external/bsd/ntp/dist/html/drivers/driver18.html	patch
external/bsd/ntp/dist/html/drivers/driver19.html	patch
external/bsd/ntp/dist/html/drivers/driver20.html	patch
external/bsd/ntp/dist/html/drivers/driver22.html	patch
external/bsd/ntp/dist/html/drivers/driver26.html	patch
external/bsd/ntp/dist/html/drivers/driver27.html	patch
external/bsd/ntp/dist/html/drivers/driver28.html	patch
external/bsd/ntp/dist/html/drivers/driver29.html	patch
external/bsd/ntp/dist/html/drivers/driver3.html	patch
external/bsd/ntp/dist/html/drivers/driver30.html	patch
external/bsd/ntp/dist/html/drivers/driver31.html	patch
external/bsd/ntp/dist/html/drivers/driver32.html	patch
external/bsd/ntp/dist/html/drivers/driver33.html	patch
external/bsd/ntp/dist/html/drivers/driver34.html	patch
external/bsd/ntp/dist/html/drivers/driver35.html	patch
external/bsd/ntp/dist/html/drivers/driver36.html	patch
external/bsd/ntp/dist/html/drivers/driver37.html	patch
external/bsd/ntp/dist/html/drivers/driver38.html	patch
external/bsd/ntp/dist/html/drivers/driver39.html	patch
external/bsd/ntp/dist/html/drivers/driver4.html	patch
external/bsd/ntp/dist/html/drivers/driver40.html	patch
external/bsd/ntp/dist/html/drivers/driver42.html	patch
external/bsd/ntp/dist/html/drivers/driver43.html	patch
external/bsd/ntp/dist/html/drivers/driver44.html	patch
external/bsd/ntp/dist/html/drivers/driver45.html	patch
external/bsd/ntp/dist/html/drivers/driver46.html	patch
external/bsd/ntp/dist/html/drivers/driver5.html	patch
external/bsd/ntp/dist/html/drivers/driver6.html	patch
external/bsd/ntp/dist/html/drivers/driver7.html	patch
external/bsd/ntp/dist/html/drivers/driver8.html	patch
external/bsd/ntp/dist/html/drivers/driver9.html	patch
external/bsd/ntp/dist/html/drivers/mx4200data.html	patch
external/bsd/ntp/dist/html/drivers/oncore-shmem.html	patch
external/bsd/ntp/dist/html/drivers/tf582_4.html	patch
external/bsd/ntp/dist/html/hints/sco.html	patch
external/bsd/ntp/dist/html/hints/solaris.html	patch
external/bsd/ntp/dist/html/hints/vxworks.html	patch
external/bsd/ntp/dist/html/hints/winnt.html	patch
external/bsd/ntp/dist/html/scripts/monopt.txt	patch
external/bsd/ntp/dist/include/Makefile.am	patch
external/bsd/ntp/dist/include/Makefile.in	patch
external/bsd/ntp/dist/include/adjtime.h	patch
external/bsd/ntp/dist/include/ascii.h	patch
external/bsd/ntp/dist/include/audio.h	patch
external/bsd/ntp/dist/include/binio.h	patch
external/bsd/ntp/dist/include/declcond.h	patch
external/bsd/ntp/dist/include/gps.h	patch
external/bsd/ntp/dist/include/hopf6039.h	patch
external/bsd/ntp/dist/include/icom.h	patch
external/bsd/ntp/dist/include/ieee754io.h	patch
external/bsd/ntp/dist/include/intreswork.h	patch
external/bsd/ntp/dist/include/iosignal.h	patch
external/bsd/ntp/dist/include/l_stdlib.h	patch
external/bsd/ntp/dist/include/lib_strbuf.h	patch
external/bsd/ntp/dist/include/libntp.h	patch
external/bsd/ntp/dist/include/mbg_gps166.h	patch
external/bsd/ntp/dist/include/mx4200.h	patch
external/bsd/ntp/dist/include/ntif.h	patch
external/bsd/ntp/dist/include/ntp.h	patch
external/bsd/ntp/dist/include/ntp_assert.h	patch
external/bsd/ntp/dist/include/ntp_calendar.h	patch
external/bsd/ntp/dist/include/ntp_cmdargs.h	patch
external/bsd/ntp/dist/include/ntp_config.h	patch
external/bsd/ntp/dist/include/ntp_control.h	patch
external/bsd/ntp/dist/include/ntp_crypto.h	patch
external/bsd/ntp/dist/include/ntp_datum.h	patch
external/bsd/ntp/dist/include/ntp_debug.h	patch
external/bsd/ntp/dist/include/ntp_filegen.h	patch
external/bsd/ntp/dist/include/ntp_fp.h	patch
external/bsd/ntp/dist/include/ntp_if.h	patch
external/bsd/ntp/dist/include/ntp_intres.h	patch
external/bsd/ntp/dist/include/ntp_io.h	patch
external/bsd/ntp/dist/include/ntp_libopts.h	patch
external/bsd/ntp/dist/include/ntp_lineedit.h	patch
external/bsd/ntp/dist/include/ntp_lists.h	patch
external/bsd/ntp/dist/include/ntp_machine.h	patch
external/bsd/ntp/dist/include/ntp_malloc.h	patch
external/bsd/ntp/dist/include/ntp_md5.h	patch
external/bsd/ntp/dist/include/ntp_net.h	patch
external/bsd/ntp/dist/include/ntp_prio_q.h	patch
external/bsd/ntp/dist/include/ntp_proto.h	patch
external/bsd/ntp/dist/include/ntp_random.h	patch
external/bsd/ntp/dist/include/ntp_refclock.h	patch
external/bsd/ntp/dist/include/ntp_request.h	patch
external/bsd/ntp/dist/include/ntp_rfc2553.h	patch
external/bsd/ntp/dist/include/ntp_select.h	patch
external/bsd/ntp/dist/include/ntp_stdlib.h	patch
external/bsd/ntp/dist/include/ntp_string.h	patch
external/bsd/ntp/dist/include/ntp_syscall.h	patch
external/bsd/ntp/dist/include/ntp_syslog.h	patch
external/bsd/ntp/dist/include/ntp_tty.h	patch
external/bsd/ntp/dist/include/ntp_types.h	patch
external/bsd/ntp/dist/include/ntp_unixtime.h	patch
external/bsd/ntp/dist/include/ntp_worker.h	patch
external/bsd/ntp/dist/include/ntp_workimpl.h	patch
external/bsd/ntp/dist/include/ntpd.h	patch
external/bsd/ntp/dist/include/ntpsim.h	patch
external/bsd/ntp/dist/include/parse.h	patch
external/bsd/ntp/dist/include/parse_conf.h	patch
external/bsd/ntp/dist/include/recvbuff.h	patch
external/bsd/ntp/dist/include/refclock_atom.h	patch
external/bsd/ntp/dist/include/ssl_applink.c	patch
external/bsd/ntp/dist/include/timepps-SCO.h	patch
external/bsd/ntp/dist/include/timepps-Solaris.h	patch
external/bsd/ntp/dist/include/timepps-SunOS.h	patch
external/bsd/ntp/dist/include/timespecops.h	patch
external/bsd/ntp/dist/include/timetoa.h	patch
external/bsd/ntp/dist/include/timevalops.h	patch
external/bsd/ntp/dist/include/trimble.h	patch
external/bsd/ntp/dist/include/vint64ops.h	patch
external/bsd/ntp/dist/include/isc/Makefile.in	patch
external/bsd/ntp/dist/include/isc/mem.h	patch
external/bsd/ntp/dist/kernel/Makefile.in	patch
external/bsd/ntp/dist/kernel/sys/Makefile.in	patch
external/bsd/ntp/dist/kernel/sys/bsd_audioirig.h	patch
external/bsd/ntp/dist/kernel/sys/i8253.h	patch
external/bsd/ntp/dist/kernel/sys/parsestreams.h	patch
external/bsd/ntp/dist/kernel/sys/pcl720.h	patch
external/bsd/ntp/dist/kernel/sys/ppsclock.h	patch
external/bsd/ntp/dist/kernel/sys/timex.h	patch
external/bsd/ntp/dist/kernel/sys/tpro.h	patch
external/bsd/ntp/dist/kernel/sys/tt560_api.h	patch
external/bsd/ntp/dist/lib/isc/app_api.c	patch
external/bsd/ntp/dist/lib/isc/assertions.c	patch
external/bsd/ntp/dist/lib/isc/backtrace-emptytbl.c	patch
external/bsd/ntp/dist/lib/isc/backtrace.c	patch
external/bsd/ntp/dist/lib/isc/base32.c	patch
external/bsd/ntp/dist/lib/isc/base64.c	patch
external/bsd/ntp/dist/lib/isc/bitstring.c	patch
external/bsd/ntp/dist/lib/isc/buffer.c	patch
external/bsd/ntp/dist/lib/isc/bufferlist.c	patch
external/bsd/ntp/dist/lib/isc/commandline.c	patch
external/bsd/ntp/dist/lib/isc/entropy.c	patch
external/bsd/ntp/dist/lib/isc/error.c	patch
external/bsd/ntp/dist/lib/isc/event.c	patch
external/bsd/ntp/dist/lib/isc/fsaccess.c	patch
external/bsd/ntp/dist/lib/isc/hash.c	patch
external/bsd/ntp/dist/lib/isc/heap.c	patch
external/bsd/ntp/dist/lib/isc/hex.c	patch
external/bsd/ntp/dist/lib/isc/hmacmd5.c	patch
external/bsd/ntp/dist/lib/isc/hmacsha.c	patch
external/bsd/ntp/dist/lib/isc/httpd.c	patch
external/bsd/ntp/dist/lib/isc/inet_aton.c	patch
external/bsd/ntp/dist/lib/isc/inet_ntop.c	patch
external/bsd/ntp/dist/lib/isc/inet_pton.c	patch
external/bsd/ntp/dist/lib/isc/iterated_hash.c	patch
external/bsd/ntp/dist/lib/isc/lex.c	patch
external/bsd/ntp/dist/lib/isc/lfsr.c	patch
external/bsd/ntp/dist/lib/isc/lib.c	patch
external/bsd/ntp/dist/lib/isc/log.c	patch
external/bsd/ntp/dist/lib/isc/md5.c	patch
external/bsd/ntp/dist/lib/isc/mem.c	patch
external/bsd/ntp/dist/lib/isc/mem_api.c	patch
external/bsd/ntp/dist/lib/isc/mutexblock.c	patch
external/bsd/ntp/dist/lib/isc/netaddr.c	patch
external/bsd/ntp/dist/lib/isc/netscope.c	patch
external/bsd/ntp/dist/lib/isc/ondestroy.c	patch
external/bsd/ntp/dist/lib/isc/parseint.c	patch
external/bsd/ntp/dist/lib/isc/portset.c	patch
external/bsd/ntp/dist/lib/isc/print.c	patch
external/bsd/ntp/dist/lib/isc/quota.c	patch
external/bsd/ntp/dist/lib/isc/radix.c	patch
external/bsd/ntp/dist/lib/isc/random.c	patch
external/bsd/ntp/dist/lib/isc/ratelimiter.c	patch
external/bsd/ntp/dist/lib/isc/refcount.c	patch
external/bsd/ntp/dist/lib/isc/region.c	patch
external/bsd/ntp/dist/lib/isc/result.c	patch
external/bsd/ntp/dist/lib/isc/rwlock.c	patch
external/bsd/ntp/dist/lib/isc/serial.c	patch
external/bsd/ntp/dist/lib/isc/sha1.c	patch
external/bsd/ntp/dist/lib/isc/sha2.c	patch
external/bsd/ntp/dist/lib/isc/sockaddr.c	patch
external/bsd/ntp/dist/lib/isc/socket_api.c	patch
external/bsd/ntp/dist/lib/isc/stats.c	patch
external/bsd/ntp/dist/lib/isc/string.c	patch
external/bsd/ntp/dist/lib/isc/strtoul.c	patch
external/bsd/ntp/dist/lib/isc/symtab.c	patch
external/bsd/ntp/dist/lib/isc/task.c	patch
external/bsd/ntp/dist/lib/isc/task_api.c	patch
external/bsd/ntp/dist/lib/isc/task_p.h	patch
external/bsd/ntp/dist/lib/isc/taskpool.c	patch
external/bsd/ntp/dist/lib/isc/timer.c	patch
external/bsd/ntp/dist/lib/isc/timer_api.c	patch
external/bsd/ntp/dist/lib/isc/timer_p.h	patch
external/bsd/ntp/dist/lib/isc/version.c	patch
external/bsd/ntp/dist/lib/isc/alpha/include/isc/atomic.h	patch
external/bsd/ntp/dist/lib/isc/ia64/include/isc/atomic.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/Makefile	patch
external/bsd/ntp/dist/lib/isc/include/isc/app.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/assertions.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/backtrace.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/base32.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/base64.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/bind9.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/bitstring.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/boolean.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/buffer.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/bufferlist.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/commandline.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/entropy.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/error.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/event.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/eventclass.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/file.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/formatcheck.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/fsaccess.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/hash.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/heap.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/hex.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/hmacmd5.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/hmacsha.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/httpd.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/interfaceiter.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/ipv6.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/iterated_hash.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/lang.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/lex.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/lfsr.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/lib.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/list.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/log.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/magic.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/md5.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/mem.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/msgcat.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/msgs.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/mutexblock.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/namespace.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/netaddr.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/netscope.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/ondestroy.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/os.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/parseint.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/platform.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/portset.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/print.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/queue.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/quota.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/radix.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/random.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/ratelimiter.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/refcount.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/region.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/resource.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/result.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/resultclass.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/rwlock.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/serial.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/sha1.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/sha2.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/sockaddr.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/socket.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/stats.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/stdio.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/stdlib.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/string.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/symtab.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/task.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/taskpool.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/timer.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/types.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/util.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/version.h	patch
external/bsd/ntp/dist/lib/isc/include/isc/xml.h	patch
external/bsd/ntp/dist/lib/isc/mips/include/isc/atomic.h	patch
external/bsd/ntp/dist/lib/isc/nls/msgcat.c	patch
external/bsd/ntp/dist/lib/isc/noatomic/include/isc/atomic.h	patch
external/bsd/ntp/dist/lib/isc/nothreads/condition.c	patch
external/bsd/ntp/dist/lib/isc/nothreads/mutex.c	patch
external/bsd/ntp/dist/lib/isc/nothreads/thread.c	patch
external/bsd/ntp/dist/lib/isc/nothreads/include/isc/condition.h	patch
external/bsd/ntp/dist/lib/isc/nothreads/include/isc/mutex.h	patch
external/bsd/ntp/dist/lib/isc/nothreads/include/isc/once.h	patch
external/bsd/ntp/dist/lib/isc/nothreads/include/isc/thread.h	patch
external/bsd/ntp/dist/lib/isc/powerpc/include/isc/atomic.h	patch
external/bsd/ntp/dist/lib/isc/pthreads/condition.c	patch
external/bsd/ntp/dist/lib/isc/pthreads/mutex.c	patch
external/bsd/ntp/dist/lib/isc/pthreads/thread.c	patch
external/bsd/ntp/dist/lib/isc/pthreads/include/isc/condition.h	patch
external/bsd/ntp/dist/lib/isc/pthreads/include/isc/mutex.h	patch
external/bsd/ntp/dist/lib/isc/pthreads/include/isc/once.h	patch
external/bsd/ntp/dist/lib/isc/pthreads/include/isc/thread.h	patch
external/bsd/ntp/dist/lib/isc/sparc64/include/isc/atomic.h	patch
external/bsd/ntp/dist/lib/isc/tests/hash_test.c	patch
external/bsd/ntp/dist/lib/isc/tests/isctest.c	patch
external/bsd/ntp/dist/lib/isc/tests/isctest.h	patch
external/bsd/ntp/dist/lib/isc/tests/queue_test.c	patch
external/bsd/ntp/dist/lib/isc/tests/socket_test.c	patch
external/bsd/ntp/dist/lib/isc/tests/symtab_test.c	patch
external/bsd/ntp/dist/lib/isc/tests/task_test.c	patch
external/bsd/ntp/dist/lib/isc/tests/taskpool_test.c	patch
external/bsd/ntp/dist/lib/isc/unix/app.c	patch
external/bsd/ntp/dist/lib/isc/unix/dir.c	patch
external/bsd/ntp/dist/lib/isc/unix/entropy.c	patch
external/bsd/ntp/dist/lib/isc/unix/errno2result.c	patch
external/bsd/ntp/dist/lib/isc/unix/errno2result.h	patch
external/bsd/ntp/dist/lib/isc/unix/file.c	patch
external/bsd/ntp/dist/lib/isc/unix/fsaccess.c	patch
external/bsd/ntp/dist/lib/isc/unix/ifiter_getifaddrs.c	patch
external/bsd/ntp/dist/lib/isc/unix/ifiter_ioctl.c	patch
external/bsd/ntp/dist/lib/isc/unix/ifiter_sysctl.c	patch
external/bsd/ntp/dist/lib/isc/unix/interfaceiter.c	patch
external/bsd/ntp/dist/lib/isc/unix/ipv6.c	patch
external/bsd/ntp/dist/lib/isc/unix/keyboard.c	patch
external/bsd/ntp/dist/lib/isc/unix/net.c	patch
external/bsd/ntp/dist/lib/isc/unix/os.c	patch
external/bsd/ntp/dist/lib/isc/unix/resource.c	patch
external/bsd/ntp/dist/lib/isc/unix/socket.c	patch
external/bsd/ntp/dist/lib/isc/unix/socket_p.h	patch
external/bsd/ntp/dist/lib/isc/unix/stdio.c	patch
external/bsd/ntp/dist/lib/isc/unix/stdtime.c	patch
external/bsd/ntp/dist/lib/isc/unix/strerror.c	patch
external/bsd/ntp/dist/lib/isc/unix/syslog.c	patch
external/bsd/ntp/dist/lib/isc/unix/time.c	patch
external/bsd/ntp/dist/lib/isc/unix/include/isc/Makefile	patch
external/bsd/ntp/dist/lib/isc/unix/include/isc/dir.h	patch
external/bsd/ntp/dist/lib/isc/unix/include/isc/int.h	patch
external/bsd/ntp/dist/lib/isc/unix/include/isc/keyboard.h	patch
external/bsd/ntp/dist/lib/isc/unix/include/isc/net.h	patch
external/bsd/ntp/dist/lib/isc/unix/include/isc/netdb.h	patch
external/bsd/ntp/dist/lib/isc/unix/include/isc/offset.h	patch
external/bsd/ntp/dist/lib/isc/unix/include/isc/stat.h	patch
external/bsd/ntp/dist/lib/isc/unix/include/isc/stdtime.h	patch
external/bsd/ntp/dist/lib/isc/unix/include/isc/strerror.h	patch
external/bsd/ntp/dist/lib/isc/unix/include/isc/syslog.h	patch
external/bsd/ntp/dist/lib/isc/unix/include/isc/time.h	patch
external/bsd/ntp/dist/lib/isc/win32/DLLMain.c	patch
external/bsd/ntp/dist/lib/isc/win32/app.c	patch
external/bsd/ntp/dist/lib/isc/win32/condition.c	patch
external/bsd/ntp/dist/lib/isc/win32/dir.c	patch
external/bsd/ntp/dist/lib/isc/win32/entropy.c	patch
external/bsd/ntp/dist/lib/isc/win32/errno2result.c	patch
external/bsd/ntp/dist/lib/isc/win32/errno2result.h	patch
external/bsd/ntp/dist/lib/isc/win32/file.c	patch
external/bsd/ntp/dist/lib/isc/win32/fsaccess.c	patch
external/bsd/ntp/dist/lib/isc/win32/interfaceiter.c	patch
external/bsd/ntp/dist/lib/isc/win32/ipv6.c	patch
external/bsd/ntp/dist/lib/isc/win32/keyboard.c	patch
external/bsd/ntp/dist/lib/isc/win32/libgen.h	patch
external/bsd/ntp/dist/lib/isc/win32/net.c	patch
external/bsd/ntp/dist/lib/isc/win32/netdb.h	patch
external/bsd/ntp/dist/lib/isc/win32/ntgroups.c	patch
external/bsd/ntp/dist/lib/isc/win32/ntpaths.c	patch
external/bsd/ntp/dist/lib/isc/win32/once.c	patch
external/bsd/ntp/dist/lib/isc/win32/os.c	patch
external/bsd/ntp/dist/lib/isc/win32/resource.c	patch
external/bsd/ntp/dist/lib/isc/win32/socket.c	patch
external/bsd/ntp/dist/lib/isc/win32/stdio.c	patch
external/bsd/ntp/dist/lib/isc/win32/stdtime.c	patch
external/bsd/ntp/dist/lib/isc/win32/strerror.c	patch
external/bsd/ntp/dist/lib/isc/win32/syslog.c	patch
external/bsd/ntp/dist/lib/isc/win32/syslog.h	patch
external/bsd/ntp/dist/lib/isc/win32/thread.c	patch
external/bsd/ntp/dist/lib/isc/win32/time.c	patch
external/bsd/ntp/dist/lib/isc/win32/unistd.h	patch
external/bsd/ntp/dist/lib/isc/win32/version.c	patch
external/bsd/ntp/dist/lib/isc/win32/win32os.c	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/bind_registry.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/bindevt.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/condition.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/dir.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/int.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/ipv6.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/keyboard.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/mutex.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/net.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/netdb.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/ntgroups.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/ntpaths.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/offset.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/once.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/platform.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/stat.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/stdtime.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/strerror.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/syslog.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/thread.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/time.h	patch
external/bsd/ntp/dist/lib/isc/win32/include/isc/win32os.h	patch
external/bsd/ntp/dist/lib/isc/x86_32/include/isc/atomic.h	patch
external/bsd/ntp/dist/lib/isc/x86_64/include/isc/atomic.h	patch
external/bsd/ntp/dist/libjsmn/LICENSE	patch
external/bsd/ntp/dist/libjsmn/Makefile	patch
external/bsd/ntp/dist/libjsmn/README.md	patch
external/bsd/ntp/dist/libjsmn/jsmn.c	patch
external/bsd/ntp/dist/libjsmn/jsmn.h	patch
external/bsd/ntp/dist/libjsmn/jsmn_test.c	patch
external/bsd/ntp/dist/libntp/Makefile.am	patch
external/bsd/ntp/dist/libntp/Makefile.in	patch
external/bsd/ntp/dist/libntp/a_md5encrypt.c	patch
external/bsd/ntp/dist/libntp/adjtime.c	patch
external/bsd/ntp/dist/libntp/adjtimex.c	patch
external/bsd/ntp/dist/libntp/atoint.c	patch
external/bsd/ntp/dist/libntp/atolfp.c	patch
external/bsd/ntp/dist/libntp/atouint.c	patch
external/bsd/ntp/dist/libntp/audio.c	patch
external/bsd/ntp/dist/libntp/authkeys.c	patch
external/bsd/ntp/dist/libntp/authreadkeys.c	patch
external/bsd/ntp/dist/libntp/authusekey.c	patch
external/bsd/ntp/dist/libntp/bsd_strerror.c	patch
external/bsd/ntp/dist/libntp/buftvtots.c	patch
external/bsd/ntp/dist/libntp/caljulian.c	patch
external/bsd/ntp/dist/libntp/caltontp.c	patch
external/bsd/ntp/dist/libntp/calyearstart.c	patch
external/bsd/ntp/dist/libntp/clocktime.c	patch
external/bsd/ntp/dist/libntp/clocktypes.c	patch
external/bsd/ntp/dist/libntp/decodenetnum.c	patch
external/bsd/ntp/dist/libntp/dofptoa.c	patch
external/bsd/ntp/dist/libntp/dolfptoa.c	patch
external/bsd/ntp/dist/libntp/emalloc.c	patch
external/bsd/ntp/dist/libntp/findconfig.c	patch
external/bsd/ntp/dist/libntp/getopt.c	patch
external/bsd/ntp/dist/libntp/hextoint.c	patch
external/bsd/ntp/dist/libntp/hextolfp.c	patch
external/bsd/ntp/dist/libntp/humandate.c	patch
external/bsd/ntp/dist/libntp/icom.c	patch
external/bsd/ntp/dist/libntp/iosignal.c	patch
external/bsd/ntp/dist/libntp/lib_strbuf.c	patch
external/bsd/ntp/dist/libntp/machines.c	patch
external/bsd/ntp/dist/libntp/mktime.c	patch
external/bsd/ntp/dist/libntp/modetoa.c	patch
external/bsd/ntp/dist/libntp/mstolfp.c	patch
external/bsd/ntp/dist/libntp/msyslog.c	patch
external/bsd/ntp/dist/libntp/netof.c	patch
external/bsd/ntp/dist/libntp/ntp_calendar.c	patch
external/bsd/ntp/dist/libntp/ntp_crypto_rnd.c	patch
external/bsd/ntp/dist/libntp/ntp_intres.c	patch
external/bsd/ntp/dist/libntp/ntp_libopts.c	patch
external/bsd/ntp/dist/libntp/ntp_lineedit.c	patch
external/bsd/ntp/dist/libntp/ntp_random.c	patch
external/bsd/ntp/dist/libntp/ntp_rfc2553.c	patch
external/bsd/ntp/dist/libntp/ntp_worker.c	patch
external/bsd/ntp/dist/libntp/numtoa.c	patch
external/bsd/ntp/dist/libntp/numtohost.c	patch
external/bsd/ntp/dist/libntp/octtoint.c	patch
external/bsd/ntp/dist/libntp/prettydate.c	patch
external/bsd/ntp/dist/libntp/recvbuff.c	patch
external/bsd/ntp/dist/libntp/refnumtoa.c	patch
external/bsd/ntp/dist/libntp/snprintf.c	patch
external/bsd/ntp/dist/libntp/socket.c	patch
external/bsd/ntp/dist/libntp/socktoa.c	patch
external/bsd/ntp/dist/libntp/socktohost.c	patch
external/bsd/ntp/dist/libntp/ssl_init.c	patch
external/bsd/ntp/dist/libntp/statestr.c	patch
external/bsd/ntp/dist/libntp/strdup.c	patch
external/bsd/ntp/dist/libntp/strl_obsd.c	patch
external/bsd/ntp/dist/libntp/syssignal.c	patch
external/bsd/ntp/dist/libntp/systime.c	patch
external/bsd/ntp/dist/libntp/systime_s.c	patch
external/bsd/ntp/dist/libntp/timetoa.c	patch
external/bsd/ntp/dist/libntp/timevalops.c	patch
external/bsd/ntp/dist/libntp/uglydate.c	patch
external/bsd/ntp/dist/libntp/vint64ops.c	patch
external/bsd/ntp/dist/libntp/work_fork.c	patch
external/bsd/ntp/dist/libntp/work_thread.c	patch
external/bsd/ntp/dist/libntp/ymd2yd.c	patch
external/bsd/ntp/dist/libparse/Makefile.in	patch
external/bsd/ntp/dist/libparse/binio.c	patch
external/bsd/ntp/dist/libparse/clk_computime.c	patch
external/bsd/ntp/dist/libparse/clk_dcf7000.c	patch
external/bsd/ntp/dist/libparse/clk_hopf6021.c	patch
external/bsd/ntp/dist/libparse/clk_meinberg.c	patch
external/bsd/ntp/dist/libparse/clk_rawdcf.c	patch
external/bsd/ntp/dist/libparse/clk_rcc8000.c	patch
external/bsd/ntp/dist/libparse/clk_schmid.c	patch
external/bsd/ntp/dist/libparse/clk_sel240x.c	patch
external/bsd/ntp/dist/libparse/clk_trimtaip.c	patch
external/bsd/ntp/dist/libparse/clk_trimtsip.c	patch
external/bsd/ntp/dist/libparse/clk_varitext.c	patch
external/bsd/ntp/dist/libparse/clk_wharton.c	patch
external/bsd/ntp/dist/libparse/data_mbg.c	patch
external/bsd/ntp/dist/libparse/gpstolfp.c	patch
external/bsd/ntp/dist/libparse/ieee754io.c	patch
external/bsd/ntp/dist/libparse/info_trimble.c	patch
external/bsd/ntp/dist/libparse/mfp_mul.c	patch
external/bsd/ntp/dist/libparse/parse.c	patch
external/bsd/ntp/dist/libparse/parse_conf.c	patch
external/bsd/ntp/dist/libparse/parsesolaris.c	patch
external/bsd/ntp/dist/libparse/parsestreams.c	patch
external/bsd/ntp/dist/libparse/trim_info.c	patch
external/bsd/ntp/dist/ntpd/Makefile.am	patch
external/bsd/ntp/dist/ntpd/Makefile.in	patch
external/bsd/ntp/dist/ntpd/check_y2k.c	patch
external/bsd/ntp/dist/ntpd/cmd_args.c	patch
external/bsd/ntp/dist/ntpd/complete.conf.in	patch
external/bsd/ntp/dist/ntpd/declcond.h	patch
external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi	patch
external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi	patch
external/bsd/ntp/dist/ntpd/invoke-ntpd.texi	patch
external/bsd/ntp/dist/ntpd/jupiter.h	patch
external/bsd/ntp/dist/ntpd/keyword-gen.c	patch
external/bsd/ntp/dist/ntpd/ntp.conf.5man	patch
external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc	patch
external/bsd/ntp/dist/ntpd/ntp.conf.def	patch
external/bsd/ntp/dist/ntpd/ntp.conf.html	patch
external/bsd/ntp/dist/ntpd/ntp.conf.man.in	patch
external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in	patch
external/bsd/ntp/dist/ntpd/ntp.keys.5man	patch
external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc	patch
external/bsd/ntp/dist/ntpd/ntp.keys.def	patch
external/bsd/ntp/dist/ntpd/ntp.keys.html	patch
external/bsd/ntp/dist/ntpd/ntp.keys.man.in	patch
external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in	patch
external/bsd/ntp/dist/ntpd/ntp_config.c	patch
external/bsd/ntp/dist/ntpd/ntp_control.c	patch
external/bsd/ntp/dist/ntpd/ntp_crypto.c	patch
external/bsd/ntp/dist/ntpd/ntp_filegen.c	patch
external/bsd/ntp/dist/ntpd/ntp_io.c	patch
external/bsd/ntp/dist/ntpd/ntp_leapsec.c	patch
external/bsd/ntp/dist/ntpd/ntp_leapsec.h	patch
external/bsd/ntp/dist/ntpd/ntp_loopfilter.c	patch
external/bsd/ntp/dist/ntpd/ntp_monitor.c	patch
external/bsd/ntp/dist/ntpd/ntp_parser.c	patch
external/bsd/ntp/dist/ntpd/ntp_parser.h	patch
external/bsd/ntp/dist/ntpd/ntp_parser.y	patch
external/bsd/ntp/dist/ntpd/ntp_peer.c	patch
external/bsd/ntp/dist/ntpd/ntp_prio_q.c	patch
external/bsd/ntp/dist/ntpd/ntp_proto.c	patch
external/bsd/ntp/dist/ntpd/ntp_refclock.c	patch
external/bsd/ntp/dist/ntpd/ntp_request.c	patch
external/bsd/ntp/dist/ntpd/ntp_restrict.c	patch
external/bsd/ntp/dist/ntpd/ntp_scanner.c	patch
external/bsd/ntp/dist/ntpd/ntp_scanner.h	patch
external/bsd/ntp/dist/ntpd/ntp_signd.c	patch
external/bsd/ntp/dist/ntpd/ntp_timer.c	patch
external/bsd/ntp/dist/ntpd/ntp_util.c	patch
external/bsd/ntp/dist/ntpd/ntpd-opts.c	patch
external/bsd/ntp/dist/ntpd/ntpd-opts.def	patch
external/bsd/ntp/dist/ntpd/ntpd-opts.h	patch
external/bsd/ntp/dist/ntpd/ntpd.1ntpdman	patch
external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc	patch
external/bsd/ntp/dist/ntpd/ntpd.c	patch
external/bsd/ntp/dist/ntpd/ntpd.html	patch
external/bsd/ntp/dist/ntpd/ntpd.man.in	patch
external/bsd/ntp/dist/ntpd/ntpd.mdoc.in	patch
external/bsd/ntp/dist/ntpd/ntpdbase-opts.def	patch
external/bsd/ntp/dist/ntpd/ntpsim.c	patch
external/bsd/ntp/dist/ntpd/ppsapi_timepps.h	patch
external/bsd/ntp/dist/ntpd/refclock_acts.c	patch
external/bsd/ntp/dist/ntpd/refclock_arbiter.c	patch
external/bsd/ntp/dist/ntpd/refclock_arc.c	patch
external/bsd/ntp/dist/ntpd/refclock_as2201.c	patch
external/bsd/ntp/dist/ntpd/refclock_atom.c	patch
external/bsd/ntp/dist/ntpd/refclock_bancomm.c	patch
external/bsd/ntp/dist/ntpd/refclock_chronolog.c	patch
external/bsd/ntp/dist/ntpd/refclock_chu.c	patch
external/bsd/ntp/dist/ntpd/refclock_conf.c	patch
external/bsd/ntp/dist/ntpd/refclock_datum.c	patch
external/bsd/ntp/dist/ntpd/refclock_dumbclock.c	patch
external/bsd/ntp/dist/ntpd/refclock_fg.c	patch
external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c	patch
external/bsd/ntp/dist/ntpd/refclock_gpsvme.c	patch
external/bsd/ntp/dist/ntpd/refclock_heath.c	patch
external/bsd/ntp/dist/ntpd/refclock_hopfpci.c	patch
external/bsd/ntp/dist/ntpd/refclock_hopfser.c	patch
external/bsd/ntp/dist/ntpd/refclock_hpgps.c	patch
external/bsd/ntp/dist/ntpd/refclock_irig.c	patch
external/bsd/ntp/dist/ntpd/refclock_jjy.c	patch
external/bsd/ntp/dist/ntpd/refclock_jupiter.c	patch
external/bsd/ntp/dist/ntpd/refclock_leitch.c	patch
external/bsd/ntp/dist/ntpd/refclock_local.c	patch
external/bsd/ntp/dist/ntpd/refclock_msfees.c	patch
external/bsd/ntp/dist/ntpd/refclock_mx4200.c	patch
external/bsd/ntp/dist/ntpd/refclock_neoclock4x.c	patch
external/bsd/ntp/dist/ntpd/refclock_nmea.c	patch
external/bsd/ntp/dist/ntpd/refclock_oncore.c	patch
external/bsd/ntp/dist/ntpd/refclock_palisade.c	patch
external/bsd/ntp/dist/ntpd/refclock_palisade.h	patch
external/bsd/ntp/dist/ntpd/refclock_parse.c	patch
external/bsd/ntp/dist/ntpd/refclock_pcf.c	patch
external/bsd/ntp/dist/ntpd/refclock_pst.c	patch
external/bsd/ntp/dist/ntpd/refclock_ripencc.c	patch
external/bsd/ntp/dist/ntpd/refclock_shm.c	patch
external/bsd/ntp/dist/ntpd/refclock_tpro.c	patch
external/bsd/ntp/dist/ntpd/refclock_true.c	patch
external/bsd/ntp/dist/ntpd/refclock_tsyncpci.c	patch
external/bsd/ntp/dist/ntpd/refclock_tt560.c	patch
external/bsd/ntp/dist/ntpd/refclock_ulink.c	patch
external/bsd/ntp/dist/ntpd/refclock_wwv.c	patch
external/bsd/ntp/dist/ntpd/refclock_wwvb.c	patch
external/bsd/ntp/dist/ntpd/refclock_zyfer.c	patch
external/bsd/ntp/dist/ntpdate/Makefile.in	patch
external/bsd/ntp/dist/ntpdate/ntpdate.c	patch
external/bsd/ntp/dist/ntpdate/ntpdate.h	patch
external/bsd/ntp/dist/ntpdc/Makefile.am	patch
external/bsd/ntp/dist/ntpdc/Makefile.in	patch
external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi	patch
external/bsd/ntp/dist/ntpdc/nl_in.c	patch
external/bsd/ntp/dist/ntpdc/ntpdc-layout.c	patch
external/bsd/ntp/dist/ntpdc/ntpdc-opts.c	patch
external/bsd/ntp/dist/ntpdc/ntpdc-opts.def	patch
external/bsd/ntp/dist/ntpdc/ntpdc-opts.h	patch
external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman	patch
external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc	patch
external/bsd/ntp/dist/ntpdc/ntpdc.c	patch
external/bsd/ntp/dist/ntpdc/ntpdc.h	patch
external/bsd/ntp/dist/ntpdc/ntpdc.html	patch
external/bsd/ntp/dist/ntpdc/ntpdc.man.in	patch
external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in	patch
external/bsd/ntp/dist/ntpdc/ntpdc_ops.c	patch
external/bsd/ntp/dist/ntpq/Makefile.am	patch
external/bsd/ntp/dist/ntpq/Makefile.in	patch
external/bsd/ntp/dist/ntpq/invoke-ntpq.texi	patch
external/bsd/ntp/dist/ntpq/libntpq.c	patch
external/bsd/ntp/dist/ntpq/libntpq.h	patch
external/bsd/ntp/dist/ntpq/libntpq_subs.c	patch
external/bsd/ntp/dist/ntpq/ntpq-opts.c	patch
external/bsd/ntp/dist/ntpq/ntpq-opts.def	patch
external/bsd/ntp/dist/ntpq/ntpq-opts.h	patch
external/bsd/ntp/dist/ntpq/ntpq-subs.c	patch
external/bsd/ntp/dist/ntpq/ntpq.1ntpqman	patch
external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc	patch
external/bsd/ntp/dist/ntpq/ntpq.c	patch
external/bsd/ntp/dist/ntpq/ntpq.h	patch
external/bsd/ntp/dist/ntpq/ntpq.html	patch
external/bsd/ntp/dist/ntpq/ntpq.man.in	patch
external/bsd/ntp/dist/ntpq/ntpq.mdoc.in	patch
external/bsd/ntp/dist/ntpsnmpd/Makefile.am	patch
external/bsd/ntp/dist/ntpsnmpd/Makefile.in	patch
external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi	patch
external/bsd/ntp/dist/ntpsnmpd/netsnmp_daemonize.c	patch
external/bsd/ntp/dist/ntpsnmpd/ntpSnmpSubagentObject.c	patch
external/bsd/ntp/dist/ntpsnmpd/ntpSnmpSubagentObject.h	patch
external/bsd/ntp/dist/ntpsnmpd/ntp_snmp.h	patch
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c	patch
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.def	patch
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h	patch
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman	patch
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc	patch
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.c	patch
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html	patch
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in	patch
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in	patch
external/bsd/ntp/dist/parseutil/Makefile.in	patch
external/bsd/ntp/dist/parseutil/dcfd.c	patch
external/bsd/ntp/dist/parseutil/testdcf.c	patch
external/bsd/ntp/dist/scripts/Makefile.am	patch
external/bsd/ntp/dist/scripts/Makefile.in	patch
external/bsd/ntp/dist/scripts/invoke-plot_summary.texi	patch
external/bsd/ntp/dist/scripts/invoke-summary.texi	patch
external/bsd/ntp/dist/scripts/plot_summary-opts	patch
external/bsd/ntp/dist/scripts/plot_summary-opts.def	patch
external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman	patch
external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc	patch
external/bsd/ntp/dist/scripts/plot_summary.html	patch
external/bsd/ntp/dist/scripts/plot_summary.man.in	patch
external/bsd/ntp/dist/scripts/plot_summary.mdoc.in	patch
external/bsd/ntp/dist/scripts/summary-opts	patch
external/bsd/ntp/dist/scripts/summary-opts.def	patch
external/bsd/ntp/dist/scripts/summary.1summaryman	patch
external/bsd/ntp/dist/scripts/summary.1summarymdoc	patch
external/bsd/ntp/dist/scripts/summary.html	patch
external/bsd/ntp/dist/scripts/summary.man.in	patch
external/bsd/ntp/dist/scripts/summary.mdoc.in	patch
external/bsd/ntp/dist/scripts/build/Makefile.am	patch
external/bsd/ntp/dist/scripts/build/Makefile.in	patch
external/bsd/ntp/dist/scripts/build/VersionName	patch
external/bsd/ntp/dist/scripts/build/checkHtmlFileDates	patch
external/bsd/ntp/dist/scripts/build/updateBEDate	patch
external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.am	patch
external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in	patch
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj-opts	patch
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj-opts.def	patch
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman	patch
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc	patch
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html	patch
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in	patch
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in	patch
external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi	patch
external/bsd/ntp/dist/scripts/lib/Makefile.in	patch
external/bsd/ntp/dist/scripts/lib/NTP/Util.pm	patch
external/bsd/ntp/dist/scripts/monitoring/ntp.pl	patch
external/bsd/ntp/dist/scripts/monitoring/ntptrap	patch
external/bsd/ntp/dist/scripts/ntp-wait/Makefile.am	patch
external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in	patch
external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi	patch
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts	patch
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts.def	patch
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman	patch
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc	patch
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html	patch
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in	patch
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in	patch
external/bsd/ntp/dist/scripts/ntpsweep/Makefile.am	patch
external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in	patch
external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi	patch
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts	patch
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts.def	patch
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman	patch
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc	patch
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html	patch
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in	patch
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in	patch
external/bsd/ntp/dist/scripts/ntptrace/Makefile.am	patch
external/bsd/ntp/dist/scripts/ntptrace/Makefile.in	patch
external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi	patch
external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts	patch
external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts.def	patch
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman	patch
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc	patch
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html	patch
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in	patch
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in	patch
external/bsd/ntp/dist/sntp/COPYRIGHT	patch
external/bsd/ntp/dist/sntp/Makefile.am	patch
external/bsd/ntp/dist/sntp/Makefile.in	patch
external/bsd/ntp/dist/sntp/aclocal.m4	patch
external/bsd/ntp/dist/sntp/configure	patch
external/bsd/ntp/dist/sntp/crypto.c	patch
external/bsd/ntp/dist/sntp/crypto.h	patch
external/bsd/ntp/dist/sntp/data_formats.h	patch
external/bsd/ntp/dist/sntp/invoke-sntp.texi	patch
external/bsd/ntp/dist/sntp/kod_management.c	patch
external/bsd/ntp/dist/sntp/kod_management.h	patch
external/bsd/ntp/dist/sntp/log.c	patch
external/bsd/ntp/dist/sntp/log.h	patch
external/bsd/ntp/dist/sntp/main.c	patch
external/bsd/ntp/dist/sntp/main.h	patch
external/bsd/ntp/dist/sntp/networking.c	patch
external/bsd/ntp/dist/sntp/networking.h	patch
external/bsd/ntp/dist/sntp/scm-rev	patch
external/bsd/ntp/dist/sntp/sntp-opts.c	patch
external/bsd/ntp/dist/sntp/sntp-opts.def	patch
external/bsd/ntp/dist/sntp/sntp-opts.h	patch
external/bsd/ntp/dist/sntp/sntp.1sntpman	patch
external/bsd/ntp/dist/sntp/sntp.1sntpmdoc	patch
external/bsd/ntp/dist/sntp/sntp.c	patch
external/bsd/ntp/dist/sntp/sntp.html	patch
external/bsd/ntp/dist/sntp/sntp.man.in	patch
external/bsd/ntp/dist/sntp/sntp.mdoc.in	patch
external/bsd/ntp/dist/sntp/tests_main.h	patch
external/bsd/ntp/dist/sntp/utilities.c	patch
external/bsd/ntp/dist/sntp/utilities.h	patch
external/bsd/ntp/dist/sntp/ag-tpl/Mdoc.pm	patch
external/bsd/ntp/dist/sntp/ag-tpl/agman-cmd.tpl	patch
external/bsd/ntp/dist/sntp/ag-tpl/agmdoc-cmd.tpl	patch
external/bsd/ntp/dist/sntp/ag-tpl/cmd-doc.tlib	patch
external/bsd/ntp/dist/sntp/ag-tpl/mdoc-synopsis.tlib	patch
external/bsd/ntp/dist/sntp/ag-tpl/mdoc2man	patch
external/bsd/ntp/dist/sntp/ag-tpl/mdoc2texi	patch
external/bsd/ntp/dist/sntp/ag-tpl/perlopt.tpl	patch
external/bsd/ntp/dist/sntp/ag-tpl/0-old/Mdoc.pm	patch
external/bsd/ntp/dist/sntp/ag-tpl/0-old/agman-cmd.tpl	patch
external/bsd/ntp/dist/sntp/ag-tpl/0-old/agmdoc-cmd.tpl	patch
external/bsd/ntp/dist/sntp/ag-tpl/0-old/cmd-doc.tlib	patch
external/bsd/ntp/dist/sntp/ag-tpl/0-old/mdoc-synopsis.tlib	patch
external/bsd/ntp/dist/sntp/ag-tpl/0-old/mdoc2man	patch
external/bsd/ntp/dist/sntp/ag-tpl/0-old/mdoc2texi	patch
external/bsd/ntp/dist/sntp/ag-tpl/0-old/perlopt.tpl	patch
external/bsd/ntp/dist/sntp/ag-tpl/Old/agman-file.tpl	patch
external/bsd/ntp/dist/sntp/ag-tpl/Old/agmdoc-file.tpl	patch
external/bsd/ntp/dist/sntp/ag-tpl/Old/agtexi-cmd.tpl	patch
external/bsd/ntp/dist/sntp/ag-tpl/Old/cmd-doc.tlib	patch
external/bsd/ntp/dist/sntp/ag-tpl/Old/mdoc2man	patch
external/bsd/ntp/dist/sntp/include/Makefile.in	patch
external/bsd/ntp/dist/sntp/include/autogen-version.def	patch
external/bsd/ntp/dist/sntp/include/copyright.def	patch
external/bsd/ntp/dist/sntp/include/version.def	patch
external/bsd/ntp/dist/sntp/include/version.texi	patch
external/bsd/ntp/dist/sntp/libevent/ChangeLog	patch
external/bsd/ntp/dist/sntp/libevent/CommitLog	patch
external/bsd/ntp/dist/sntp/libevent/Makefile.am	patch
external/bsd/ntp/dist/sntp/libevent/Makefile.in	patch
external/bsd/ntp/dist/sntp/libevent/Makefile.nmake	patch
external/bsd/ntp/dist/sntp/libevent/arc4random.c	patch
external/bsd/ntp/dist/sntp/libevent/buffer.c	patch
external/bsd/ntp/dist/sntp/libevent/buffer_iocp.c	patch
external/bsd/ntp/dist/sntp/libevent/bufferevent-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/bufferevent.c	patch
external/bsd/ntp/dist/sntp/libevent/bufferevent_async.c	patch
external/bsd/ntp/dist/sntp/libevent/bufferevent_filter.c	patch
external/bsd/ntp/dist/sntp/libevent/bufferevent_openssl.c	patch
external/bsd/ntp/dist/sntp/libevent/bufferevent_pair.c	patch
external/bsd/ntp/dist/sntp/libevent/bufferevent_ratelim.c	patch
external/bsd/ntp/dist/sntp/libevent/bufferevent_sock.c	patch
external/bsd/ntp/dist/sntp/libevent/changelist-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/config.h.in	patch
external/bsd/ntp/dist/sntp/libevent/configure	patch
external/bsd/ntp/dist/sntp/libevent/configure.ac	patch
external/bsd/ntp/dist/sntp/libevent/defer-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/devpoll.c	patch
external/bsd/ntp/dist/sntp/libevent/epoll.c	patch
external/bsd/ntp/dist/sntp/libevent/epoll_sub.c	patch
external/bsd/ntp/dist/sntp/libevent/epolltable-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/evbuffer-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/evconfig-private.h	patch
external/bsd/ntp/dist/sntp/libevent/evdns.3	patch
external/bsd/ntp/dist/sntp/libevent/evdns.c	patch
external/bsd/ntp/dist/sntp/libevent/event-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/event.3	patch
external/bsd/ntp/dist/sntp/libevent/event.c	patch
external/bsd/ntp/dist/sntp/libevent/event_iocp.c	patch
external/bsd/ntp/dist/sntp/libevent/event_tagging.c	patch
external/bsd/ntp/dist/sntp/libevent/evmap-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/evmap.c	patch
external/bsd/ntp/dist/sntp/libevent/evport.c	patch
external/bsd/ntp/dist/sntp/libevent/evrpc-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/evrpc.c	patch
external/bsd/ntp/dist/sntp/libevent/evsignal-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/evthread-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/evthread.c	patch
external/bsd/ntp/dist/sntp/libevent/evthread_pthread.c	patch
external/bsd/ntp/dist/sntp/libevent/evthread_win32.c	patch
external/bsd/ntp/dist/sntp/libevent/evutil.c	patch
external/bsd/ntp/dist/sntp/libevent/evutil_rand.c	patch
external/bsd/ntp/dist/sntp/libevent/evutil_time.c	patch
external/bsd/ntp/dist/sntp/libevent/ht-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/http-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/http.c	patch
external/bsd/ntp/dist/sntp/libevent/iocp-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/ipv6-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/kqueue-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/kqueue.c	patch
external/bsd/ntp/dist/sntp/libevent/listener.c	patch
external/bsd/ntp/dist/sntp/libevent/log-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/log.c	patch
external/bsd/ntp/dist/sntp/libevent/make_epoll_table.py	patch
external/bsd/ntp/dist/sntp/libevent/minheap-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/mm-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/poll.c	patch
external/bsd/ntp/dist/sntp/libevent/ratelim-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/select.c	patch
external/bsd/ntp/dist/sntp/libevent/signal.c	patch
external/bsd/ntp/dist/sntp/libevent/strlcpy-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/strlcpy.c	patch
external/bsd/ntp/dist/sntp/libevent/time-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/util-internal.h	patch
external/bsd/ntp/dist/sntp/libevent/whatsnew-2.1.txt	patch
external/bsd/ntp/dist/sntp/libevent/win32select.c	patch
external/bsd/ntp/dist/sntp/libevent/WIN32-Code/evconfig-private.h	patch
external/bsd/ntp/dist/sntp/libevent/WIN32-Code/tree.h	patch
external/bsd/ntp/dist/sntp/libevent/WIN32-Code/event2/event-config.h	patch
external/bsd/ntp/dist/sntp/libevent/WIN32-Code/nmake/evconfig-private.h	patch
external/bsd/ntp/dist/sntp/libevent/WIN32-Code/nmake/event2/event-config.h	patch
external/bsd/ntp/dist/sntp/libevent/compat/sys/queue.h	patch
external/bsd/ntp/dist/sntp/libevent/include/Makefile.in	patch
external/bsd/ntp/dist/sntp/libevent/include/evdns.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event.h	patch
external/bsd/ntp/dist/sntp/libevent/include/evhttp.h	patch
external/bsd/ntp/dist/sntp/libevent/include/evrpc.h	patch
external/bsd/ntp/dist/sntp/libevent/include/evutil.h	patch
external/bsd/ntp/dist/sntp/libevent/include/include.am	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/buffer.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/buffer_compat.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent_compat.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent_ssl.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent_struct.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/dns.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/dns_compat.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/dns_struct.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/event.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/event_compat.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/event_struct.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/http.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/http_compat.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/http_struct.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/keyvalq_struct.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/listener.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/rpc.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/rpc_compat.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/rpc_struct.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/tag.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/tag_compat.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/thread.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/util.h	patch
external/bsd/ntp/dist/sntp/libevent/include/event2/visibility.h	patch
external/bsd/ntp/dist/sntp/libevent/m4/LICENSE-OPENLDAP	patch
external/bsd/ntp/dist/sntp/libevent/m4/openldap-thread-check.m4	patch
external/bsd/ntp/dist/sntp/libevent/sample/Makefile.in	patch
external/bsd/ntp/dist/sntp/libevent/sample/dns-example.c	patch
external/bsd/ntp/dist/sntp/libevent/sample/event-read-fifo.c	patch
external/bsd/ntp/dist/sntp/libevent/sample/hello-world.c	patch
external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.c	patch
external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.h	patch
external/bsd/ntp/dist/sntp/libevent/sample/http-server.c	patch
external/bsd/ntp/dist/sntp/libevent/sample/https-client.c	patch
external/bsd/ntp/dist/sntp/libevent/sample/include.am	patch
external/bsd/ntp/dist/sntp/libevent/sample/le-proxy.c	patch
external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.c	patch
external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.h	patch
external/bsd/ntp/dist/sntp/libevent/sample/signal-test.c	patch
external/bsd/ntp/dist/sntp/libevent/sample/time-test.c	patch
external/bsd/ntp/dist/sntp/libevent/test/Makefile.in	patch
external/bsd/ntp/dist/sntp/libevent/test/Makefile.nmake	patch
external/bsd/ntp/dist/sntp/libevent/test/bench.c	patch
external/bsd/ntp/dist/sntp/libevent/test/bench_cascade.c	patch
external/bsd/ntp/dist/sntp/libevent/test/bench_http.c	patch
external/bsd/ntp/dist/sntp/libevent/test/bench_httpclient.c	patch
external/bsd/ntp/dist/sntp/libevent/test/include.am	patch
external/bsd/ntp/dist/sntp/libevent/test/print-winsock-errors.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress.gen.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress.gen.h	patch
external/bsd/ntp/dist/sntp/libevent/test/regress.h	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_buffer.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_bufferevent.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_dns.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_et.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_finalize.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_http.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_iocp.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_listener.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_main.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_minheap.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_rpc.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_ssl.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_testutils.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_testutils.h	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_thread.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_thread.h	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_util.c	patch
external/bsd/ntp/dist/sntp/libevent/test/regress_zlib.c	patch
external/bsd/ntp/dist/sntp/libevent/test/rpcgen_wrapper.sh	patch
external/bsd/ntp/dist/sntp/libevent/test/test-changelist.c	patch
external/bsd/ntp/dist/sntp/libevent/test/test-closed.c	patch
external/bsd/ntp/dist/sntp/libevent/test/test-dumpevents.c	patch
external/bsd/ntp/dist/sntp/libevent/test/test-eof.c	patch
external/bsd/ntp/dist/sntp/libevent/test/test-fdleak.c	patch
external/bsd/ntp/dist/sntp/libevent/test/test-init.c	patch
external/bsd/ntp/dist/sntp/libevent/test/test-ratelim.c	patch
external/bsd/ntp/dist/sntp/libevent/test/test-ratelim.sh	patch
external/bsd/ntp/dist/sntp/libevent/test/test-time.c	patch
external/bsd/ntp/dist/sntp/libevent/test/test-weof.c	patch
external/bsd/ntp/dist/sntp/libevent/test/test.sh	patch
external/bsd/ntp/dist/sntp/libevent/test/tinytest.c	patch
external/bsd/ntp/dist/sntp/libevent/test/tinytest.h	patch
external/bsd/ntp/dist/sntp/libevent/test/tinytest_demo.c	patch
external/bsd/ntp/dist/sntp/libevent/test/tinytest_local.h	patch
external/bsd/ntp/dist/sntp/libevent/test/tinytest_macros.h	patch
external/bsd/ntp/dist/sntp/libopts/COPYING.gplv3	patch
external/bsd/ntp/dist/sntp/libopts/COPYING.lgplv3	patch
external/bsd/ntp/dist/sntp/libopts/Makefile.am	patch
external/bsd/ntp/dist/sntp/libopts/Makefile.in	patch
external/bsd/ntp/dist/sntp/libopts/README	patch
external/bsd/ntp/dist/sntp/libopts/ag-char-map.h	patch
external/bsd/ntp/dist/sntp/libopts/alias.c	patch
external/bsd/ntp/dist/sntp/libopts/ao-strs.c	patch
external/bsd/ntp/dist/sntp/libopts/ao-strs.h	patch
external/bsd/ntp/dist/sntp/libopts/autoopts.c	patch
external/bsd/ntp/dist/sntp/libopts/autoopts.h	patch
external/bsd/ntp/dist/sntp/libopts/boolean.c	patch
external/bsd/ntp/dist/sntp/libopts/check.c	patch
external/bsd/ntp/dist/sntp/libopts/configfile.c	patch
external/bsd/ntp/dist/sntp/libopts/cook.c	patch
external/bsd/ntp/dist/sntp/libopts/enum.c	patch
external/bsd/ntp/dist/sntp/libopts/env.c	patch
external/bsd/ntp/dist/sntp/libopts/file.c	patch
external/bsd/ntp/dist/sntp/libopts/find.c	patch
external/bsd/ntp/dist/sntp/libopts/genshell.c	patch
external/bsd/ntp/dist/sntp/libopts/genshell.h	patch
external/bsd/ntp/dist/sntp/libopts/gettext.h	patch
external/bsd/ntp/dist/sntp/libopts/init.c	patch
external/bsd/ntp/dist/sntp/libopts/intprops.h	patch
external/bsd/ntp/dist/sntp/libopts/libopts.c	patch
external/bsd/ntp/dist/sntp/libopts/load.c	patch
external/bsd/ntp/dist/sntp/libopts/makeshell.c	patch
external/bsd/ntp/dist/sntp/libopts/nested.c	patch
external/bsd/ntp/dist/sntp/libopts/numeric.c	patch
external/bsd/ntp/dist/sntp/libopts/option-value-type.c	patch
external/bsd/ntp/dist/sntp/libopts/option-value-type.h	patch
external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.c	patch
external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.h	patch
external/bsd/ntp/dist/sntp/libopts/parse-duration.c	patch
external/bsd/ntp/dist/sntp/libopts/parse-duration.h	patch
external/bsd/ntp/dist/sntp/libopts/pgusage.c	patch
external/bsd/ntp/dist/sntp/libopts/proto.h	patch
external/bsd/ntp/dist/sntp/libopts/putshell.c	patch
external/bsd/ntp/dist/sntp/libopts/reset.c	patch
external/bsd/ntp/dist/sntp/libopts/restore.c	patch
external/bsd/ntp/dist/sntp/libopts/save.c	patch
external/bsd/ntp/dist/sntp/libopts/sort.c	patch
external/bsd/ntp/dist/sntp/libopts/stack.c	patch
external/bsd/ntp/dist/sntp/libopts/stdnoreturn.in.h	patch
external/bsd/ntp/dist/sntp/libopts/streqvcmp.c	patch
external/bsd/ntp/dist/sntp/libopts/text_mmap.c	patch
external/bsd/ntp/dist/sntp/libopts/time.c	patch
external/bsd/ntp/dist/sntp/libopts/tokenize.c	patch
external/bsd/ntp/dist/sntp/libopts/usage.c	patch
external/bsd/ntp/dist/sntp/libopts/version.c	patch
external/bsd/ntp/dist/sntp/libopts/autoopts/options.h	patch
external/bsd/ntp/dist/sntp/libopts/autoopts/project.h	patch
external/bsd/ntp/dist/sntp/libopts/autoopts/usage-txt.h	patch
external/bsd/ntp/dist/sntp/libopts/compat/_Noreturn.h	patch
external/bsd/ntp/dist/sntp/libopts/compat/compat.h	patch
external/bsd/ntp/dist/sntp/libopts/compat/pathfind.c	patch
external/bsd/ntp/dist/sntp/libopts/compat/snprintf.c	patch
external/bsd/ntp/dist/sntp/libopts/compat/strchr.c	patch
external/bsd/ntp/dist/sntp/libopts/compat/strdup.c	patch
external/bsd/ntp/dist/sntp/libopts/compat/windows-config.h	patch
external/bsd/ntp/dist/sntp/libopts/m4/libopts.m4	patch
external/bsd/ntp/dist/sntp/libopts/m4/liboptschk.m4	patch
external/bsd/ntp/dist/sntp/libopts/m4/stdnoreturn.m4	patch
external/bsd/ntp/dist/sntp/loc/README	patch
external/bsd/ntp/dist/sntp/loc/darwin	patch
external/bsd/ntp/dist/sntp/loc/debian	patch
external/bsd/ntp/dist/sntp/loc/freebsd	patch
external/bsd/ntp/dist/sntp/loc/legacy	patch
external/bsd/ntp/dist/sntp/loc/netbsd	patch
external/bsd/ntp/dist/sntp/loc/redhat	patch
external/bsd/ntp/dist/sntp/loc/solaris	patch
external/bsd/ntp/dist/sntp/m4/ntp_crypto_rand.m4	patch
external/bsd/ntp/dist/sntp/m4/ntp_dir_sep.m4	patch
external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4	patch
external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4	patch
external/bsd/ntp/dist/sntp/m4/ntp_locinfo.m4	patch
external/bsd/ntp/dist/sntp/m4/version.m4	patch
external/bsd/ntp/dist/sntp/scripts/Makefile.in	patch
external/bsd/ntp/dist/sntp/scripts/genLocInfo	patch
external/bsd/ntp/dist/sntp/tests/Makefile.in	patch
external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h	patch
external/bsd/ntp/dist/sntp/tests/sntptest.h	patch
external/bsd/ntp/dist/tests/Makefile.in	patch
external/bsd/ntp/dist/tests/libntp/Makefile.am	patch
external/bsd/ntp/dist/tests/libntp/Makefile.in	patch
external/bsd/ntp/dist/tests/libntp/lfpfunc.cpp	patch
external/bsd/ntp/dist/tests/libntp/lfptest.h	patch
external/bsd/ntp/dist/tests/libntp/libntptest.h	patch
external/bsd/ntp/dist/tests/libntp/sockaddrtest.h	patch
external/bsd/ntp/dist/tests/libntp/timestructs.h	patch
external/bsd/ntp/dist/tests/libntp/vi64ops.cpp	patch
external/bsd/ntp/dist/tests/ntpd/Makefile.in	patch
external/bsd/ntp/dist/tests/ntpd/leapsec.cpp	patch
external/bsd/ntp/dist/tests/ntpd/ntpdtest.h	patch
external/bsd/ntp/dist/util/Makefile.am	patch
external/bsd/ntp/dist/util/Makefile.in	patch
external/bsd/ntp/dist/util/audio-pcm.c	patch
external/bsd/ntp/dist/util/byteorder.c	patch
external/bsd/ntp/dist/util/hist.c	patch
external/bsd/ntp/dist/util/invoke-ntp-keygen.texi	patch
external/bsd/ntp/dist/util/jitter.c	patch
external/bsd/ntp/dist/util/jitter.h	patch
external/bsd/ntp/dist/util/kern.c	patch
external/bsd/ntp/dist/util/longsize.c	patch
external/bsd/ntp/dist/util/ntp-keygen-opts.c	patch
external/bsd/ntp/dist/util/ntp-keygen-opts.def	patch
external/bsd/ntp/dist/util/ntp-keygen-opts.h	patch
external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman	patch
external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc	patch
external/bsd/ntp/dist/util/ntp-keygen.c	patch
external/bsd/ntp/dist/util/ntp-keygen.html	patch
external/bsd/ntp/dist/util/ntp-keygen.man.in	patch
external/bsd/ntp/dist/util/ntp-keygen.mdoc.in	patch
external/bsd/ntp/dist/util/ntptime.c	patch
external/bsd/ntp/dist/util/pps-api.c	patch
external/bsd/ntp/dist/util/precision.c	patch
external/bsd/ntp/dist/util/sht.c	patch
external/bsd/ntp/dist/util/testrs6000.c	patch
external/bsd/ntp/dist/util/tg.c	patch
external/bsd/ntp/dist/util/tg2.c	patch
external/bsd/ntp/dist/util/tickadj.c	patch
external/bsd/ntp/dist/util/timetrim.c	patch
external/bsd/ntp/include/config.h	patch
external/bsd/ntp/lib/libiscntp/Makefile	patch
external/bsd/ntp/lib/libntp/Makefile	patch
external/bsd/ntp/lib/libopts/Makefile	patch
external/bsd/ntp/scripts/mkver	patch

	Update ntp to version 4.2.8.
	[christos, ticket #351]
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.68 for ntp4 4.2.8.
d571 4
a574 4
PACKAGE_NAME='ntp4'
PACKAGE_TARNAME='ntp4'
PACKAGE_VERSION='4.2.8'
PACKAGE_STRING='ntp4 4.2.8'
a683 3
GL_GENERATE_STDNORETURN_H_FALSE
GL_GENERATE_STDNORETURN_H_TRUE
STDNORETURN_H
a704 1
TIMETRIM_NI
a708 1
TICKADJ_NI
a712 1
SNTP_NI
a716 1
NTP_WAIT_NI
a720 1
NTP_KEYGEN_NI
a724 1
NTPTRACE_NI
a728 1
NTPTIME_NI
a732 8
INSTALL_NTPSWEEP_FALSE
INSTALL_NTPSWEEP_TRUE
NTPSWEEP_NI
NTPSWEEP_MS
NTPSWEEP_DS
NTPSWEEP_DL
NTPSWEEP_DB
NTPSNMPD_NI
a736 1
NTPQ_NI
a740 1
NTPD_NI
a744 1
NTPDSIM_NI
a748 1
NTPDC_NI
a752 1
NTPDATE_NI
a757 1
CALC_TICKADJ_NI
a894 1
with_yielding_select
a900 1
enable_libseccomp
a931 1
enable_GPSD
a962 1
enable_openssl_random
d1543 1
a1543 1
\`configure' configures ntp4 4.2.8 to adapt to many kinds of systems.
d1591 1
a1591 1
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp4]
d1613 1
a1613 1
     short | recursive ) echo "Configuration of ntp4 4.2.8:";;
a1648 1
  --with-yielding-select  with yielding select [auto]
a1654 2
  --enable-libseccomp     EXPERIMENTAL: enable support for libseccomp
                          sandboxing (default is no)
a1687 1
  --enable-GPSD           + GPSD JSON receiver
a1722 2
  --enable-openssl-random Use OpenSSL's crypto random number functions, if
                          available (default is yes)
d1773 1
a1773 1
ntp4 home page: <http://www.ntp.org./>.
d1836 1
a1836 1
ntp4 configure 4.2.8
d2661 1
a2661 1
It was created by ntp4 $as_me 4.2.8, which was
d3607 2
a3608 2
 PACKAGE='ntp4'
 VERSION='4.2.8'
a7684 27
 if test -z "$NTPSWEEP_NI" ; then
  INSTALL_NTPSWEEP_TRUE=
  INSTALL_NTPSWEEP_FALSE='#'
else
  INSTALL_NTPSWEEP_TRUE='#'
  INSTALL_NTPSWEEP_FALSE=
fi




















a18243 56
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
$as_echo_n "checking for working stdnoreturn.h... " >&6; }
if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
            #include <stdnoreturn.h>
            /* Do not check for 'noreturn' after the return type.
               C11 allows it, but it's rarely done that way
               and circa-2012 bleeding-edge GCC rejects it when given
               -Werror=old-style-declaration.  */
            noreturn void foo1 (void) { exit (0); }
            _Noreturn void foo2 (void) { exit (0); }
            int testit (int argc, char **argv) {
              if (argc & 1)
                return 0;
              (argv[0][0] ? foo1 : foo2) ();
            }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  gl_cv_header_working_stdnoreturn_h=yes
else
  gl_cv_header_working_stdnoreturn_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }

  if test $gl_cv_header_working_stdnoreturn_h = yes; then
    STDNORETURN_H=''
  else
    STDNORETURN_H='stdnoreturn.h'
  fi


   if test -n "$STDNORETURN_H"; then
  GL_GENERATE_STDNORETURN_H_TRUE=
  GL_GENERATE_STDNORETURN_H_FALSE='#'
else
  GL_GENERATE_STDNORETURN_H_TRUE='#'
  GL_GENERATE_STDNORETURN_H_FALSE=
fi



a18435 9
ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi
a19865 111
# [Bug 2332] because we need to know if we are using GNU ld...


# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld






d19876 1
a19876 1
	    case "$host_os" in
d21948 1
a21948 21
# OpenLDAP --with-yielding_select

# Check whether --with-yielding_select was given.
if test "${with_yielding_select+set}" = set; then :
  withval=$with_yielding_select;
	ol_arg=invalid
	for ol_val in auto yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
	fi
	ol_with_yielding_select="$ol_arg"

else
  	ol_with_yielding_select="auto"
fi
# end --with-yielding_select

d25676 1
a25676 1
					as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
a26295 50
	    # Bug 2332: With GCC we need to force a reference to libgcc_s
	    # (if libgcc_s exists) or the combination of
	    # threads + setuid + mlockall does not work on linux because
	    # thread cancellation fails to load libgcc_s with dlopen().
	    # We have to pass this all as linker options to avoid argument
	    # reordering by libtool.
	    case "$GCC$with_gnu_ld" in
	    yesyes)
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lgcc_s" >&5
$as_echo_n "checking for exit in -lgcc_s... " >&6; }
if ${ac_cv_lib_gcc_s_exit+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgcc_s  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char exit ();
int
main ()
{
return exit ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gcc_s_exit=yes
else
  ac_cv_lib_gcc_s_exit=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_exit" >&5
$as_echo "$ac_cv_lib_gcc_s_exit" >&6; }
if test "x$ac_cv_lib_gcc_s_exit" = xyes; then :
  PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed"
fi

		;;
	    esac
d27422 2
a27423 2
	    #ifndef SIGIO
	    # error
d27427 2
a27428 1
if ac_fn_c_try_cpp "$LINENO"; then :
d27434 2
a27435 1
rm -f conftest.err conftest.i conftest.$ac_ext
d27506 2
a27507 2
	    #ifndef SIGPOLL
	    # error
d27511 2
a27512 1
if ac_fn_c_try_cpp "$LINENO"; then :
d27518 2
a27519 1
rm -f conftest.err conftest.i conftest.$ac_ext
a28140 134
# LIBSECCOMP is off by default -- needs testing with all the features
# Please send bug reports to loganaden@@gmail.com
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
# Check whether --enable-libseccomp was given.
if test "${enable_libseccomp+set}" = set; then :
  enableval=$enable_libseccomp; ntp_ok=$enableval
else
  ntp_ok=no

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
$as_echo_n "checking for library containing seccomp_init... " >&6; }
if ${ac_cv_search_seccomp_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char seccomp_init ();
int
main ()
{
return seccomp_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' seccomp; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_seccomp_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_seccomp_init+:} false; then :
  break
fi
done
if ${ac_cv_search_seccomp_init+:} false; then :

else
  ac_cv_search_seccomp_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
$as_echo "$ac_cv_search_seccomp_init" >&6; }
ac_res=$ac_cv_search_seccomp_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

$as_echo "#define LIBSECCOMP 1" >>confdefs.h


fi

    if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	#include <stdio.h>
	#include <stdlib.h>
	#include <errno.h>
	#include <sys/prctl.h>
	#include <linux/seccomp.h>

	int main(void)
	{
		int ret;
		ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
		if (ret < 0) {
			switch (errno) {
			case ENOSYS:
				return 1;
			case EINVAL:
				return 1;
			default:
				return 1;
			}
		}
		ret =
		prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
		if (ret < 0) {
			switch (errno) {
			case EINVAL:
				return 1;
			case EFAULT:
				return 0;
			default:
				return 1;
		}
	}
return 1;
}


_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

$as_echo "#define KERN_SECCOMP 1" >>confdefs.h


fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    ;;
esac

d28335 1
a28335 1
for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
d29602 1
a29602 1
for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
d30807 3
a30809 2
		    #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
		    # error
d30813 2
a30814 1
if ac_fn_c_try_cpp "$LINENO"; then :
d30818 2
a30819 1
rm -f conftest.err conftest.i conftest.$ac_ext
d30849 3
a30851 2
	    #ifndef STA_FLL
	    # error
d30855 2
a30856 1
if ac_fn_c_try_cpp "$LINENO"; then :
d30862 2
a30863 1
rm -f conftest.err conftest.i conftest.$ac_ext
d30933 3
a30935 2
	    #ifndef TIOCGPPSEV
	    # error
d30939 2
a30940 1
if ac_fn_c_try_cpp "$LINENO"; then :
d30946 2
a30947 1
rm -f conftest.err conftest.i conftest.$ac_ext
d30971 3
a30973 2
	    #ifndef TIOCSPPS
	    # error
d30977 2
a30978 1
if ac_fn_c_try_cpp "$LINENO"; then :
d30984 2
a30985 1
rm -f conftest.err conftest.i conftest.$ac_ext
d31009 3
a31011 2
	    #ifndef CIOGETEV
	    # error
d31015 2
a31016 1
if ac_fn_c_try_cpp "$LINENO"; then :
d31022 2
a31023 1
rm -f conftest.err conftest.i conftest.$ac_ext
d31083 6
a31088 2
	    #ifndef TIOCGSERIAL
	    # error
a31089 2
	    #ifndef TIOCSSERIAL
	    # error
a31090 2
	    #ifndef ASYNC_PPS_CD_POS
	    # error
a31091 2
	    #ifndef ASYNC_PPS_CD_NEG
	    # error
a31092 2
	    #ifndef CIOGETEV
	    # error
d31096 2
a31097 1
if ac_fn_c_try_cpp "$LINENO"; then :
d31103 2
a31104 1
rm -f conftest.err conftest.i conftest.$ac_ext
a31839 35
for ac_func in strtoll
do :
  ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
if test "x$ac_cv_func_strtoll" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRTOLL 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
$as_echo_n "checking for GPSD JSON receiver... " >&6; }
# Check whether --enable-GPSD was given.
if test "${enable_GPSD+set}" = set; then :
  enableval=$enable_GPSD; ntp_ok=$enableval
else
  case "$ac_cv_func_strtoll" in
     yes) ntp_ok=$ntp_eac ;;
     *)   ntp_ok="no" ;;
    esac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

a33120 43



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
# Check whether --enable-openssl-random was given.
if test "${enable_openssl_random+set}" = set; then :
  enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
else
  ntp_use_openssl_random=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
$as_echo "$ntp_use_openssl_random" >&6; }

# The following might need extra libraries
NTPO_SAVED_LIBS="$LIBS"
LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
for ac_func in RAND_bytes RAND_poll
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

LIBS="$NTPO_SAVED_LIBS"
case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
 yesyesyes)

$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h

     ;;
 *) ntp_use_openssl_random=no ;;
esac



d35385 2
a35386 2
	    #ifndef NET_RT_IFLIST
	    # error
d35390 2
a35391 1
if ac_fn_c_try_cpp "$LINENO"; then :
d35397 2
a35398 1
rm -f conftest.err conftest.i conftest.$ac_ext
a35813 8
if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d36251 1
a36251 1
This file was extended by ntp4 $as_me 4.2.8, which was
d36312 1
a36312 1
ntp4 home page: <http://www.ntp.org./>."
d36318 1
a36318 1
ntp4 config.status 4.2.8
@


1.1.1.3.4.2
log
@Pull up following revision(s) (requested by christos in ticket #682):
	external/bsd/ntp/dist/COPYRIGHT: up to 1.1.1.5
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.5
	external/bsd/ntp/dist/CommitLog: up to 1.1.1.5
	external/bsd/ntp/dist/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/NEWS: up to 1.1.1.5
	external/bsd/ntp/dist/aclocal.m4: up to 1.1.1.5
	external/bsd/ntp/dist/adjtimed/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/build: up to 1.1.1.5
	external/bsd/ntp/dist/clockstuff/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/config.h.in: up to 1.1.1.5
	external/bsd/ntp/dist/configure: up to 1.1.1.5
	external/bsd/ntp/dist/configure.ac: up to 1.1.1.5
	external/bsd/ntp/dist/html/build.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/confopt.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/copyright.html: up to 1.1.1.5
	external/bsd/ntp/dist/html/drivers/driver28.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/miscopt.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/sntp.html: up to 1.1.1.4
	external/bsd/ntp/dist/include/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/include/binio.h: up to 1.3
	external/bsd/ntp/dist/include/isc/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/include/mbg_gps166.h: up to 1.3
	external/bsd/ntp/dist/include/ntp.h: up to 1.3
	external/bsd/ntp/dist/include/ntp_calendar.h: up to 1.3
	external/bsd/ntp/dist/include/ntp_fp.h: up to 1.6
	external/bsd/ntp/dist/include/ntp_md5.h: up to 1.3
	external/bsd/ntp/dist/include/ntpd.h: up to 1.6
	external/bsd/ntp/dist/include/parse.h: up to 1.3
	external/bsd/ntp/dist/include/parse_conf.h: up to 1.3
	external/bsd/ntp/dist/include/timepps-Solaris.h: up to 1.3
	external/bsd/ntp/dist/kernel/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/kernel/sys/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/kernel/sys/parsestreams.h: up to 1.3
	external/bsd/ntp/dist/lib/isc/include/isc/backtrace.h: up to 1.3
	external/bsd/ntp/dist/lib/isc/include/isc/socket.h: up to 1.3
	external/bsd/ntp/dist/lib/isc/inet_ntop.c: up to 1.5
	external/bsd/ntp/dist/lib/isc/log.c: up to 1.5
	external/bsd/ntp/dist/lib/isc/result.c: up to 1.5
	external/bsd/ntp/dist/lib/isc/unix/file.c: up to 1.5
	external/bsd/ntp/dist/lib/isc/unix/ifiter_getifaddrs.c: up to 1.5
	external/bsd/ntp/dist/lib/isc/unix/ifiter_ioctl.c: up to 1.3
	external/bsd/ntp/dist/lib/isc/unix/net.c: up to 1.6
	external/bsd/ntp/dist/libjsmn/jsmn.c: up to 1.3
	external/bsd/ntp/dist/libntp/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/libntp/audio.c: up to 1.7
	external/bsd/ntp/dist/libntp/ntp_calendar.c: up to 1.5
	external/bsd/ntp/dist/libntp/ntp_crypto_rnd.c: up to 1.3
	external/bsd/ntp/dist/libntp/work_fork.c: up to 1.4
	external/bsd/ntp/dist/libparse/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/libparse/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/libparse/clk_computime.c: up to 1.3
	external/bsd/ntp/dist/libparse/clk_dcf7000.c: up to 1.3
	external/bsd/ntp/dist/libparse/clk_hopf6021.c: up to 1.3
	external/bsd/ntp/dist/libparse/clk_meinberg.c: up to 1.4
	external/bsd/ntp/dist/libparse/clk_rawdcf.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_rcc8000.c: up to 1.3
	external/bsd/ntp/dist/libparse/clk_schmid.c: up to 1.3
	external/bsd/ntp/dist/libparse/clk_sel240x.c: up to 1.3
	external/bsd/ntp/dist/libparse/clk_trimtaip.c: up to 1.3
	external/bsd/ntp/dist/libparse/clk_trimtsip.c: up to 1.3
	external/bsd/ntp/dist/libparse/clk_varitext.c: up to 1.3
	external/bsd/ntp/dist/libparse/clk_wharton.c: up to 1.3
	external/bsd/ntp/dist/libparse/data_mbg.c: up to 1.6
	external/bsd/ntp/dist/libparse/gpstolfp.c: up to 1.3
	external/bsd/ntp/dist/libparse/info_trimble.c: up to 1.5
	external/bsd/ntp/dist/libparse/mkinfo_rcmd.sed: up to 1.1.1.3
	external/bsd/ntp/dist/libparse/mkinfo_scmd.sed: up to 1.1.1.3
	external/bsd/ntp/dist/libparse/parse.c: up to 1.3
	external/bsd/ntp/dist/libparse/parse_conf.c: up to 1.3
	external/bsd/ntp/dist/libparse/parsesolaris.c: up to 1.3
	external/bsd/ntp/dist/libparse/parsestreams.c: up to 1.3
	external/bsd/ntp/dist/libparse/trim_info.c: up to 1.3
	external/bsd/ntp/dist/ntpd/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/cmd_args.c: up to 1.3
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to 1.6
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to 1.8
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to 1.17
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to 1.7
	external/bsd/ntp/dist/ntpd/ntp_leapsec.c: up to 1.3
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to 1.6
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_peer.c: up to 1.6
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntp_util.c: up to 1.6
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.3
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.6
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntpd.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntpdbase-opts.def: up to 1.1.1.4
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to 1.5
	external/bsd/ntp/dist/ntpd/refclock_nmea.c: up to 1.8
	external/bsd/ntp/dist/ntpd/refclock_palisade.c: up to 1.3
	external/bsd/ntp/dist/ntpd/refclock_palisade.h: up to 1.3
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to 1.15
	external/bsd/ntp/dist/ntpd/refclock_shm.c: up to 1.5
	external/bsd/ntp/dist/ntpdate/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.3
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.3
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.3
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.3
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.3
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.3
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/dist/ntpq/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.3
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.3
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.3
	external/bsd/ntp/dist/ntpq/ntpq-subs.c: up to 1.9
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.3
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.3
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.3
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/dist/ntpsnmpd/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.3
	external/bsd/ntp/dist/ntpsnmpd/netsnmp_daemonize.c: up to 1.3
	external/bsd/ntp/dist/ntpsnmpd/ntp_snmp.h: up to 1.3
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.3
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.3
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.3
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.3
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.3
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.5
	external/bsd/ntp/dist/parseutil/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/parseutil/dcfd.c: up to 1.3
	external/bsd/ntp/dist/parseutil/testdcf.c: up to 1.3
	external/bsd/ntp/dist/readme.y2kfixes: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/build/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/build/UpdatePoint: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/build/VersionName: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/lib/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/lib/NTP/Util.pm: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntptrace/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/Makefile.am: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/Makefile.in: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.menu: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts.def: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/update-leap/update-leap.texi: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/COPYRIGHT: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/aclocal.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/config.h.in: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/configure.ac: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/include/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/include/copyright.def: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/include/ntp.lic: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/ChangeLog: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/README: delete
	external/bsd/ntp/dist/sntp/libevent/WIN32-Code/nmake/event2/event-config.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/WIN32-Code/tree.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/aclocal.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/libevent/buffer.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/bufferevent.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/bufferevent_async.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/bufferevent_filter.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/bufferevent_openssl.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/bufferevent_pair.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/config.h.in: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/configure: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/configure.ac: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/evbuffer-internal.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/evdns.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/event.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/event_tagging.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/evrpc-internal.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/evthread-internal.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/evthread.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/evutil.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/evutil_time.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/ht-internal.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/http-internal.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/http.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/include/event2/buffer.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/include/event2/dns.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/include/event2/event.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/include/event2/http.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/include/event2/listener.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/include/event2/util.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/kqueue.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/listener.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/m4/acx_pthread.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/libevent/m4/openldap-thread-check.m4: delete
	external/bsd/ntp/dist/sntp/libevent/m4/openldap.m4: delete
	external/bsd/ntp/dist/sntp/libevent/sample/http-server.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/sample/https-client.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/sample/include.am: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/test/include.am: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libevent/test/regress.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/regress.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/regress_buffer.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/regress_bufferevent.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/regress_dns.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/regress_finalize.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/regress_http.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/regress_main.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/regress_minheap.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/regress_ssl.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/regress_thread.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/regress_util.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/regress_zlib.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/test-fdleak.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/test-ratelim.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/test-time.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/tinytest.c: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/tinytest.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/test/tinytest_macros.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/time-internal.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/util-internal.h: up to 1.3
	external/bsd/ntp/dist/sntp/libevent/whatsnew-2.1.txt: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/libopts/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/m4/libopts.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/usage.c: up to 1.4
	external/bsd/ntp/dist/sntp/loc/darwin: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/debian: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/freebsd: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/legacy: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/netbsd: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/loc/solaris: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ax_c99_struct_init.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/hms_search_lib.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ntp_compiler.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_locinfo.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/openldap-thread-check.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/openldap.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/main.c: up to 1.12
	external/bsd/ntp/dist/sntp/networking.c: up to 1.10
	external/bsd/ntp/dist/sntp/scripts/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/scripts/cvo.sh: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.4
	external/bsd/ntp/dist/sntp/sntp-opts.def: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.3
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/tests/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/tests/libntp/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/util/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/util/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.3
	external/bsd/ntp/dist/util/jitter.c: up to 1.3
	external/bsd/ntp/dist/util/jitter.h: delete
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.8
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.3
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.3
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.3
	external/bsd/ntp/dist/util/ntp-keygen.c: up to 1.7
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.3
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.3
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.3
	external/bsd/ntp/importdate: up to 1.5
	external/bsd/ntp/include/config.h: up to 1.11
	external/bsd/ntp/ntp2netbsd: up to 1.5
	external/bsd/ntp/scripts/mkver: up to 1.6
Update ntp to 4.2.8p2
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.68 for ntp 4.2.8p2.
d571 4
a574 4
PACKAGE_NAME='ntp'
PACKAGE_TARNAME='ntp'
PACKAGE_VERSION='4.2.8p2'
PACKAGE_STRING='ntp 4.2.8p2'
d652 1
a669 1
LDADD_LIBUTIL
a675 5
BUILD_LIBEVENT_FALSE
BUILD_LIBEVENT_TRUE
LDADD_LIBEVENT
CPPFLAGS_LIBEVENT
PKG_CONFIG
a707 7
INSTALL_UPDATE_LEAP_FALSE
INSTALL_UPDATE_LEAP_TRUE
UPDATE_LEAP_NI
UPDATE_LEAP_MS
UPDATE_LEAP_DS
UPDATE_LEAP_DL
UPDATE_LEAP_DB
d1571 1
a1571 1
\`configure' configures ntp 4.2.8p2 to adapt to many kinds of systems.
d1619 1
a1619 1
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp]
d1641 1
a1641 1
     short | recursive ) echo "Configuration of ntp 4.2.8p2:";;
d1807 1
a1807 1
ntp home page: <http://www.ntp.org./>.
d1870 1
a1870 1
ntp configure 4.2.8p2
d2695 1
a2695 1
It was created by ntp $as_me 4.2.8p2, which was
d3641 2
a3642 2
 PACKAGE='ntp'
 VERSION='4.2.8p2'
a5431 177
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if ${ac_cv_prog_cc_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>

// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}

// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;

struct incomplete_array
{
  int datasize;
  double data[];
};

struct named_init {
  int number;
  const wchar_t *name;
  double average;
};

typedef const char *ccp;

static inline int
test_restrict (ccp restrict text)
{
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
  return 0;
}

// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
{
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);

  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
}

int
main ()
{

  // Check bool.
  _Bool success = false;

  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";

  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);

  ;
  return 0;
}
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :

fi


a6164 1

a7599 38
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }


	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			struct foo_s {int i1; int i2;};
			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



a7765 13

 if test -z "$UPDATE_LEAP_NI" ; then
  INSTALL_UPDATE_LEAP_TRUE=
  INSTALL_UPDATE_LEAP_FALSE='#'
else
  INSTALL_UPDATE_LEAP_TRUE='#'
  INSTALL_UPDATE_LEAP_FALSE=
fi





a19239 120
ntp_pkgconfig_min_version='0.15.0'
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}

case "$PKG_CONFIG" in
 /*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	PKG_CONFIG=""
    fi
    ;;
esac




a19251 85
ntp_libevent_min_version=2
ntp_libevent_tearoff=sntp/libevent




case "$ntp_use_local_libevent" in
 yes)
    ;;
 *) # If we have (a good enough) pkg-config, see if it can find libevent
    case "$PKG_CONFIG" in
     /*)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
	if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
	then
	    ntp_use_local_libevent=no
	    { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
$as_echo "$as_me: Using the installed libevent" >&6;}
	    CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
	    # HMS: I hope the following is accurate.
	    # We don't need -levent, we only need  -levent_core.
	    # While we could grab only the -L stuff, there *might* be
	    # other flags there we want.  Originally we just removed -levent
	    # but then somebody decided to install -levent-2.0
	    # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
	    # So now we dance...
	    LDADD_LIBEVENT=
	    for i in `$PKG_CONFIG --libs libevent`
	    do
		case "$i" in
		 -levent*) ;;
		 *) case "$LDADD_LIBEVENT" in
		     '') LDADD_LIBEVENT="$i" ;;
		     *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
		    esac
		    ;;
		esac
	    done
	    case "$LIBISC_PTHREADS_NOTHREADS" in
	     pthreads)
		LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
	    esac
	    LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	else
	    ntp_use_local_libevent=yes
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	fi
	;;
     *)
	ntp_use_local_libevent=yes
	;;
    esac
    ;;
esac

case "$ntp_use_local_libevent" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
$as_echo "$as_me: Using libevent tearoff" >&6;}
    CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
    case "$LIBISC_PTHREADS_NOTHREADS" in
     pthreads)
	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
	;;
     *)
	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
    esac
esac

 if test "x$ntp_use_local_libevent" = "xyes"; then
  BUILD_LIBEVENT_TRUE=
  BUILD_LIBEVENT_FALSE='#'
else
  BUILD_LIBEVENT_TRUE='#'
  BUILD_LIBEVENT_FALSE=
fi





a21080 67
# Bug 2713
LDADD_LIBUTIL=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
$as_echo_n "checking for library containing snprintb... " >&6; }
if ${ac_cv_search_snprintb+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char snprintb ();
int
main ()
{
return snprintb ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' util; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_snprintb=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_snprintb+:} false; then :
  break
fi
done
if ${ac_cv_search_snprintb+:} false; then :

else
  ac_cv_search_snprintb=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
$as_echo "$ac_cv_search_snprintb" >&6; }
ac_res=$ac_cv_search_snprintb
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_snprintb" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
 esac

$as_echo "#define USE_SNPRINTB 1" >>confdefs.h

fi


a29954 14
for ac_func in arc4random_buf
do :
  ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
if test "x$ac_cv_func_arc4random_buf" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ARC4RANDOM_BUF 1
_ACEOF

fi
done


####

d31243 4
a31246 4
			#include <sys/syscall.h>
			#if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
			# error
			#endif
d31282 4
a31285 4
		#include <sys/timex.h>
		#ifndef STA_FLL
		# error
		#endif
d33049 120
d34980 1
d35002 1
d36098 1
a36098 1
ac_config_files="$ac_config_files scripts/build/Makefile"
d36100 1
a36100 1
ac_config_files="$ac_config_files scripts/build/mkver"
d36104 1
a36104 1
ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
d36106 1
a36106 1
ac_config_files="$ac_config_files scripts/lib/Makefile"
d36110 1
a36110 1
ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
d36114 1
a36114 1
ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
a36117 2
ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"

d36124 1
a36124 1
ac_config_files="$ac_config_files scripts/update-leap/Makefile"
a36317 4
if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a36329 4
if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d36759 1
a36759 1
This file was extended by ntp $as_me 4.2.8p2, which was
d36820 1
a36820 1
ntp home page: <http://www.ntp.org./>."
d36826 1
a36826 1
ntp config.status 4.2.8p2
d37353 3
a37355 1
    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
d37357 1
a37357 3
    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
d37359 1
a37359 1
    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
d37361 1
a37361 1
    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
a37362 1
    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
d37366 1
a37366 1
    "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
d38904 1
a38905 1
    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
@


1.1.1.3.4.2.2.1
log
@Pull up following revisions (requested by christos in ticket #1024):

doc/3RDPARTY					patch
external/bsd/ntp/dist/tests/libntp/atoint.c     up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/atouint.c    up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/authkeys.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/buftvtots.c  up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/calendar.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/caljulian.c  up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/caltontp.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/calyearstart.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/clocktime.c  up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/decodenetnum.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/lfptest.c    up to 1.1.1.1
external/bsd/ntp/dist/tests/libntp/sockaddrtest.c up to 1.1.1.1
external/bsd/ntp/dist/tests/libntp/hextolfp.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/humandate.c  up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/lfpfunc.c    up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/lfptostr.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/modetoa.c    up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/msyslog.c    up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/netof.c      up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/numtoa.c     up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/numtohost.c  up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/octtoint.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/prettydate.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/recvbuff.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/refidsmear.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/refnumtoa.c  up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-a_md5encrypt.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-atoint.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/socktoa.c    up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/ssl_init.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/statestr.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/strtolfp.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/test-libntp.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/timevalops.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/tstotv.c     up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/tvtots.c     up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/uglydate.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/vi64ops.c    up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/ymd2yd.c     up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-netof.c  up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-msyslog.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/hextoint.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-atouint.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-authkeys.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-buftvtots.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-calendar.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-caljulian.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-caltontp.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-calyearstart.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-clocktime.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-decodenetnum.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-hextoint.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-hextolfp.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-humandate.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-lfpfunc.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-lfptostr.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-modetoa.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-numtoa.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-numtohost.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-octtoint.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-prettydate.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-recvbuff.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-refidsmear.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-refnumtoa.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-sfptostr.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-socktoa.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-ssl_init.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-statestr.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-strtolfp.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-timespecops.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-timevalops.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-tstotv.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-tvtots.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-uglydate.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-vi64ops.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-ymd2yd.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/sfptostr.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/test-libntp.h up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/timespecops.c up to 1.1.1.3
external/bsd/ntp/dist/tests/ntpd/rc_cmdlength.c up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/run-leapsec.c  up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/leapsec.c      up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/ntp_prio_q.c   up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/ntp_restrict.c up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/run-ntp_prio_q.c up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/run-ntp_restrict.c up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/run-rc_cmdlength.c up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/run-t-ntp_scanner.c up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/run-t-ntp_signd.c up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/t-ntp_scanner.c up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/t-ntp_signd.c  up to 1.1.1.1
external/bsd/ntp/dist/tests/bug-2803/Makefile.am up to 1.1.1.2
external/bsd/ntp/dist/tests/bug-2803/Makefile.in up to 1.1.1.2
external/bsd/ntp/dist/tests/bug-2803/bug-2803.c up to 1.1.1.2
external/bsd/ntp/dist/tests/bug-2803/run-bug-2803.c up to 1.1.1.3
external/bsd/ntp/dist/tests/sandbox/Makefile.am up to 1.1.1.2
external/bsd/ntp/dist/tests/sandbox/Makefile.in up to 1.1.1.2
external/bsd/ntp/dist/tests/sandbox/bug-2803.c  up to 1.1.1.2
external/bsd/ntp/dist/tests/sandbox/modetoa.c   up to 1.1.1.2
external/bsd/ntp/dist/tests/sandbox/run-modetoa.c up to 1.1.1.3
external/bsd/ntp/dist/tests/sandbox/run-uglydate.c up to 1.1.1.3
external/bsd/ntp/dist/tests/sandbox/run-ut-2803.c up to 1.1.1.3
external/bsd/ntp/dist/tests/sandbox/smeartest.c up to 1.1.1.3
external/bsd/ntp/dist/tests/sandbox/uglydate.c  up to 1.1.1.2
external/bsd/ntp/dist/tests/sandbox/ut-2803.c   up to 1.1.1.2
external/bsd/ntp/dist/tests/sec-2853/Makefile.am up to 1.1.1.2
external/bsd/ntp/dist/tests/sec-2853/Makefile.in up to 1.1.1.2
external/bsd/ntp/dist/tests/sec-2853/run-sec-2853.c up to 1.1.1.3
external/bsd/ntp/dist/tests/sec-2853/sec-2853.c up to 1.1.1.3
external/bsd/ntp/dist/tests/ntpq/Makefile.am    up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpq/Makefile.in    up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpq/run-t-ntpq.c   up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpq/t-ntpq.c       up to 1.1.1.1
external/bsd/ntp/dist/libjsmn/example/jsondump.c up to 1.1.1.2
external/bsd/ntp/dist/libjsmn/example/simple.c  up to 1.1.1.2
external/bsd/ntp/dist/README.leapsmear          up to 1.1.1.1
external/bsd/ntp/dist/html/drivers/driver40-ja.html up to 1.1.1.1
external/bsd/ntp/dist/include/refidsmear.h      up to 1.1.1.2
external/bsd/ntp/dist/include/rc_cmdlength.h    up to 1.1.1.1
external/bsd/ntp/dist/libntp/refidsmear.c       up to 1.1.1.2
external/bsd/ntp/dist/ntpd/rc_cmdlength.c       up to 1.3
external/bsd/ntp/dist/scripts/update-leap/update-leap.in up to 1.1.1.1
external/bsd/ntp/dist/scripts/update-leap/update-leap.sh up to 1.1.1.1
external/bsd/ntp/dist/sntp/libevent/build-aux/ar-lib up to 1.1.1.1
external/bsd/ntp/dist/sntp/libevent/build-aux/test-driver up to 1.1.1.1
external/bsd/ntp/dist/sntp/m4/ntp_unitytest.m4  up to 1.1.1.1
external/bsd/ntp/dist/sntp/m4/ntp_problemtests.m4 up to 1.1.1.1
external/bsd/ntp/dist/sntp/tests/run-t-log.c    up to 1.1.1.1
external/bsd/ntp/dist/sntp/tests/kodFile.c      up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/packetHandling.c up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/packetProcessing.c up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/run-crypto.c   up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/run-keyFile.c  up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/sntptest.c     up to 1.1.1.1
external/bsd/ntp/dist/sntp/tests/networking.c   up to 1.1.1.2
external/bsd/ntp/dist/sntp/tests/crypto.c       up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h.in up to 1.1.1.2
external/bsd/ntp/dist/sntp/tests/t-log.c        up to 1.1.1.1
external/bsd/ntp/dist/sntp/tests/keyFile.c      up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/kodDatabase.c  up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/run-kodDatabase.c up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/run-kodFile.c  up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/run-networking.c up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/run-packetHandling.c up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/run-utilities.c up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/utilities.c    up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/fileHandlingTest.c up to 1.1.1.1
external/bsd/ntp/dist/sntp/libpkgver/colcomp.c  up to 1.1.1.2
external/bsd/ntp/dist/sntp/libpkgver/pkgver.h   up to 1.1.1.2
external/bsd/ntp/dist/sntp/version.c            up to 1.1.1.3
external/bsd/ntp/dist/sntp/unity/auto/colour_prompt.rb up to 1.1.1.1
external/bsd/ntp/dist/sntp/unity/auto/colour_reporter.rb up to 1.1.1.1
external/bsd/ntp/dist/sntp/unity/auto/generate_config.yml up to 1.1.1.1
external/bsd/ntp/dist/sntp/unity/auto/generate_module.rb up to 1.1.1.1
external/bsd/ntp/dist/sntp/unity/auto/generate_test_runner.rb up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/auto/runner_maybe.c up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/auto/test_file_filter.rb up to 1.1.1.1
external/bsd/ntp/dist/sntp/unity/auto/unity_test_summary.rb up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/auto/parseOutput.rb up to 1.1.1.1
external/bsd/ntp/dist/sntp/unity/auto/type_sanitizer.rb up to 1.1.1.1
external/bsd/ntp/dist/sntp/unity/auto/unity_test_summary.py up to 1.1.1.1
external/bsd/ntp/dist/sntp/unity/Makefile.am    up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/Makefile.in    up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/unity.c        up to 1.1.1.3
external/bsd/ntp/dist/sntp/unity/unity.h        up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/unity_fixture.c up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/unity_fixture.h up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/unity_fixture_internals.h up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/unity_fixture_malloc_overrides.h up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/unity_internals.h up to 1.1.1.3
external/bsd/ntp/dist/sntp/unity/unity_config.h up to 1.1.1.1
external/bsd/ntp/dist/scripts/update-leap/update-leap delete
external/bsd/ntp/dist/sntp/tests_main.cpp       delete
external/bsd/ntp/dist/sntp/tests_main.h         delete
external/bsd/ntp/dist/sntp/libevent/sample/dns-example.c delete
external/bsd/ntp/dist/sntp/libevent/sample/event-read-fifo.c delete
external/bsd/ntp/dist/sntp/libevent/sample/hello-world.c delete
external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.c delete
external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.h delete
external/bsd/ntp/dist/sntp/libevent/sample/http-server.c delete
external/bsd/ntp/dist/sntp/libevent/sample/https-client.c delete
external/bsd/ntp/dist/sntp/libevent/sample/include.am delete
external/bsd/ntp/dist/sntp/libevent/sample/le-proxy.c delete
external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.c delete
external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.h delete
external/bsd/ntp/dist/sntp/libevent/sample/signal-test.c delete
external/bsd/ntp/dist/sntp/libevent/sample/time-test.c delete
external/bsd/ntp/dist/sntp/tests/crypto.cpp     delete
external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h delete
external/bsd/ntp/dist/sntp/tests/keyFile.cpp    delete
external/bsd/ntp/dist/sntp/tests/kodDatabase.cpp delete
external/bsd/ntp/dist/sntp/tests/kodFile.cpp    delete
external/bsd/ntp/dist/sntp/tests/networking.cpp delete
external/bsd/ntp/dist/sntp/tests/packetHandling.cpp delete
external/bsd/ntp/dist/sntp/tests/packetProcessing.cpp delete
external/bsd/ntp/dist/sntp/tests/utilities.cpp  delete
external/bsd/ntp/dist/tests/libntp/a_md5encrypt.cpp delete
external/bsd/ntp/dist/tests/libntp/atoint.cpp   delete
external/bsd/ntp/dist/tests/libntp/atouint.cpp  delete
external/bsd/ntp/dist/tests/libntp/authkeys.cpp delete
external/bsd/ntp/dist/tests/libntp/buftvtots.cpp delete
external/bsd/ntp/dist/tests/libntp/calendar.cpp delete
external/bsd/ntp/dist/tests/libntp/caljulian.cpp delete
external/bsd/ntp/dist/tests/libntp/caltontp.cpp delete
external/bsd/ntp/dist/tests/libntp/calyearstart.cpp delete
external/bsd/ntp/dist/tests/libntp/clocktime.cpp delete
external/bsd/ntp/dist/tests/libntp/decodenetnum.cpp delete
external/bsd/ntp/dist/tests/libntp/hextoint.cpp delete
external/bsd/ntp/dist/tests/libntp/hextolfp.cpp delete
external/bsd/ntp/dist/tests/libntp/humandate.cpp delete
external/bsd/ntp/dist/tests/libntp/lfpfunc.cpp  delete
external/bsd/ntp/dist/tests/libntp/lfptostr.cpp delete
external/bsd/ntp/dist/tests/libntp/libntptest.cpp delete
external/bsd/ntp/dist/tests/libntp/libntptest.h delete
external/bsd/ntp/dist/tests/libntp/modetoa.cpp  delete
external/bsd/ntp/dist/tests/libntp/msyslog.cpp  delete
external/bsd/ntp/dist/tests/libntp/netof.cpp    delete
external/bsd/ntp/dist/tests/libntp/numtoa.cpp   delete
external/bsd/ntp/dist/tests/libntp/numtohost.cpp delete
external/bsd/ntp/dist/tests/libntp/octtoint.cpp delete
external/bsd/ntp/dist/tests/libntp/prettydate.cpp delete
external/bsd/ntp/dist/tests/libntp/recvbuff.cpp delete
external/bsd/ntp/dist/tests/libntp/refnumtoa.cpp delete
external/bsd/ntp/dist/tests/libntp/sfptostr.cpp delete
external/bsd/ntp/dist/tests/libntp/socktoa.cpp  delete
external/bsd/ntp/dist/tests/libntp/ssl_init.cpp delete
external/bsd/ntp/dist/tests/libntp/statestr.cpp delete
external/bsd/ntp/dist/tests/libntp/strtolfp.cpp delete
external/bsd/ntp/dist/tests/libntp/timespecops.cpp delete
external/bsd/ntp/dist/tests/libntp/timestructs.cpp delete
external/bsd/ntp/dist/tests/libntp/timestructs.h delete
external/bsd/ntp/dist/tests/libntp/timevalops.cpp delete
external/bsd/ntp/dist/tests/libntp/tstotv.cpp   delete
external/bsd/ntp/dist/tests/libntp/tvtots.cpp   delete
external/bsd/ntp/dist/tests/libntp/uglydate.cpp delete
external/bsd/ntp/dist/tests/libntp/vi64ops.cpp  delete
external/bsd/ntp/dist/tests/libntp/ymd2yd.cpp   delete
external/bsd/ntp/dist/tests/ntpd/leapsec.cpp    delete
external/bsd/ntp/dist/tests/ntpd/ntpdtest.cpp   delete
external/bsd/ntp/dist/tests/ntpd/ntpdtest.h     delete
external/bsd/ntp/importdate                     up to 1.7
external/bsd/ntp/bin/ntpd/Makefile              up to 1.19
external/bsd/ntp/dist/ChangeLog                 up to 1.1.1.7
external/bsd/ntp/dist/CommitLog                 up to 1.1.1.7
external/bsd/ntp/dist/Makefile.am               up to 1.1.1.7
external/bsd/ntp/dist/Makefile.in               up to 1.1.1.7
external/bsd/ntp/dist/NEWS                      up to 1.1.1.7
external/bsd/ntp/dist/aclocal.m4                up to 1.1.1.7
external/bsd/ntp/dist/bootstrap                 up to 1.1.1.5
external/bsd/ntp/dist/config.h.in               up to 1.1.1.6
external/bsd/ntp/dist/configure                 up to 1.1.1.7
external/bsd/ntp/dist/configure.ac              up to 1.1.1.7
external/bsd/ntp/dist/packageinfo.sh            up to 1.1.1.7
external/bsd/ntp/dist/adjtimed/Makefile.in      up to 1.1.1.7
external/bsd/ntp/dist/adjtimed/adjtimed.c       up to 1.4
external/bsd/ntp/dist/clockstuff/Makefile.in    up to 1.1.1.7
external/bsd/ntp/dist/clockstuff/chutest.c      up to 1.4
external/bsd/ntp/dist/clockstuff/propdelay.c    up to 1.4
external/bsd/ntp/dist/html/decode.html          up to 1.1.1.5
external/bsd/ntp/dist/html/miscopt.html         up to 1.1.1.6
external/bsd/ntp/dist/html/refclock.html        up to 1.1.1.4
external/bsd/ntp/dist/html/stats.html           up to 1.1.1.3
external/bsd/ntp/dist/html/drivers/driver22.html up to 1.1.1.4
external/bsd/ntp/dist/html/drivers/driver40.html up to 1.1.1.4
external/bsd/ntp/dist/html/drivers/driver46.html up to 1.1.1.2
external/bsd/ntp/dist/include/Makefile.am       up to 1.1.1.6
external/bsd/ntp/dist/include/Makefile.in       up to 1.1.1.7
external/bsd/ntp/dist/include/ntp_assert.h      up to 1.4
external/bsd/ntp/dist/include/ntp_calendar.h    up to 1.5
external/bsd/ntp/dist/include/ntp_config.h      up to 1.9
external/bsd/ntp/dist/include/ntp_control.h     up to 1.4
external/bsd/ntp/dist/include/ntp_io.h          up to 1.3
external/bsd/ntp/dist/include/ntp_lists.h       up to 1.4
external/bsd/ntp/dist/include/ntp_stdlib.h      up to 1.11
external/bsd/ntp/dist/include/ntp_syslog.h      up to 1.4
external/bsd/ntp/dist/include/ntp_types.h       up to 1.4
external/bsd/ntp/dist/include/ntpd.h            up to 1.7
external/bsd/ntp/dist/include/parse.h           up to 1.4
external/bsd/ntp/dist/include/isc/Makefile.in   up to 1.1.1.7
external/bsd/ntp/dist/kernel/Makefile.in        up to 1.1.1.7
external/bsd/ntp/dist/kernel/sys/Makefile.in    up to 1.1.1.7
external/bsd/ntp/dist/lib/isc/unix/ifiter_getifaddrs.c up to 1.6
external/bsd/ntp/dist/libjsmn/Makefile          up to 1.1.1.2
external/bsd/ntp/dist/libjsmn/README.md         up to 1.1.1.2
external/bsd/ntp/dist/libjsmn/jsmn.c            up to 1.4
external/bsd/ntp/dist/libjsmn/jsmn.h            up to 1.3
external/bsd/ntp/dist/libjsmn/jsmn_test.c       up to 1.3
external/bsd/ntp/dist/libntp/Makefile.am        up to 1.1.1.5
external/bsd/ntp/dist/libntp/Makefile.in        up to 1.1.1.7
external/bsd/ntp/dist/libntp/atolfp.c           up to 1.7
external/bsd/ntp/dist/libntp/audio.c            up to 1.9
external/bsd/ntp/dist/libntp/authkeys.c         up to 1.7
external/bsd/ntp/dist/libntp/authreadkeys.c     up to 1.7
external/bsd/ntp/dist/libntp/caljulian.c        up to 1.4
external/bsd/ntp/dist/libntp/caltontp.c         up to 1.4
external/bsd/ntp/dist/libntp/decodenetnum.c     up to 1.4
external/bsd/ntp/dist/libntp/emalloc.c          up to 1.6
external/bsd/ntp/dist/libntp/icom.c             up to 1.8
external/bsd/ntp/dist/libntp/machines.c         up to 1.4
external/bsd/ntp/dist/libntp/msyslog.c          up to 1.4
external/bsd/ntp/dist/libntp/ntp_calendar.c     up to 1.7
external/bsd/ntp/dist/libntp/ntp_intres.c       up to 1.7
external/bsd/ntp/dist/libntp/ntp_lineedit.c     up to 1.8
external/bsd/ntp/dist/libntp/ntp_rfc2553.c      up to 1.4
external/bsd/ntp/dist/libntp/ntp_worker.c       up to 1.4
external/bsd/ntp/dist/libntp/prettydate.c       up to 1.7
external/bsd/ntp/dist/libntp/recvbuff.c         up to 1.4
external/bsd/ntp/dist/libntp/socket.c           up to 1.4
external/bsd/ntp/dist/libntp/socktohost.c       up to 1.4
external/bsd/ntp/dist/libntp/statestr.c         up to 1.4
external/bsd/ntp/dist/libntp/strdup.c           up to 1.3
external/bsd/ntp/dist/libntp/work_fork.c        up to 1.7
external/bsd/ntp/dist/libparse/Makefile.in      up to 1.1.1.7
external/bsd/ntp/dist/libparse/clk_meinberg.c   up to 1.5
external/bsd/ntp/dist/libparse/clk_rawdcf.c     up to 1.6
external/bsd/ntp/dist/libparse/clk_schmid.c     up to 1.4
external/bsd/ntp/dist/libparse/parse.c          up to 1.4
external/bsd/ntp/dist/ntpd/Makefile.am          up to 1.1.1.7
external/bsd/ntp/dist/ntpd/Makefile.in          up to 1.1.1.7
external/bsd/ntp/dist/ntpd/complete.conf.in     up to 1.1.1.3
external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi up to 1.1.1.5
external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi up to 1.1.1.5
external/bsd/ntp/dist/ntpd/invoke-ntpd.texi     up to 1.1.1.5
external/bsd/ntp/dist/ntpd/keyword-gen-utd      up to 1.1.1.4
external/bsd/ntp/dist/ntpd/keyword-gen.c        up to 1.7
external/bsd/ntp/dist/ntpd/ntp.conf.5man        up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc       up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.conf.def         up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.conf.html        up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.conf.man.in      up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in     up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.keys.5man        up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc       up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.keys.html        up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.keys.man.in      up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in     up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp_config.c         up to 1.12
external/bsd/ntp/dist/ntpd/ntp_control.c        up to 1.14
external/bsd/ntp/dist/ntpd/ntp_crypto.c         up to 1.10
external/bsd/ntp/dist/ntpd/ntp_io.c             up to 1.20
external/bsd/ntp/dist/ntpd/ntp_keyword.h        up to 1.8
external/bsd/ntp/dist/ntpd/ntp_leapsec.c        up to 1.4
external/bsd/ntp/dist/ntpd/ntp_leapsec.h        up to 1.3
external/bsd/ntp/dist/ntpd/ntp_loopfilter.c     up to 1.8
external/bsd/ntp/dist/ntpd/ntp_monitor.c        up to 1.4
external/bsd/ntp/dist/ntpd/ntp_parser.y         up to 1.11
external/bsd/ntp/dist/ntpd/ntp_peer.c           up to 1.8
external/bsd/ntp/dist/ntpd/ntp_proto.c          up to 1.9
external/bsd/ntp/dist/ntpd/ntp_refclock.c       up to 1.8
external/bsd/ntp/dist/ntpd/ntp_request.c        up to 1.12
external/bsd/ntp/dist/ntpd/ntp_restrict.c       up to 1.7
external/bsd/ntp/dist/ntpd/ntp_scanner.c        up to 1.9
external/bsd/ntp/dist/ntpd/ntp_scanner.h        up to 1.3
external/bsd/ntp/dist/ntpd/ntp_timer.c          up to 1.5
external/bsd/ntp/dist/ntpd/ntpd-opts.c          up to 1.5
external/bsd/ntp/dist/ntpd/ntpd-opts.def        up to 1.1.1.4
external/bsd/ntp/dist/ntpd/ntpd-opts.h          up to 1.8
external/bsd/ntp/dist/ntpd/ntpd.1ntpdman        up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc       up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntpd.c               up to 1.11
external/bsd/ntp/dist/ntpd/ntpd.html            up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntpd.man.in          up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntpd.mdoc.in         up to 1.1.1.5
external/bsd/ntp/dist/ntpd/refclock_arc.c       up to 1.8
external/bsd/ntp/dist/ntpd/refclock_chu.c       up to 1.7
external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c  up to 1.7
external/bsd/ntp/dist/ntpd/refclock_jjy.c       up to 1.8
external/bsd/ntp/dist/ntpd/refclock_jupiter.c   up to 1.9
external/bsd/ntp/dist/ntpd/refclock_local.c     up to 1.4
external/bsd/ntp/dist/ntpd/refclock_nmea.c      up to 1.10
external/bsd/ntp/dist/ntpd/refclock_oncore.c    up to 1.12
external/bsd/ntp/dist/ntpd/refclock_palisade.c  up to 1.5
external/bsd/ntp/dist/ntpd/refclock_parse.c     up to 1.17
external/bsd/ntp/dist/ntpd/refclock_shm.c       up to 1.6
external/bsd/ntp/dist/ntpd/refclock_true.c      up to 1.5
external/bsd/ntp/dist/ntpd/refclock_wwv.c       up to 1.6
external/bsd/ntp/dist/ntpdate/Makefile.in       up to 1.1.1.7
external/bsd/ntp/dist/ntpdate/ntpdate.c         up to 1.8
external/bsd/ntp/dist/ntpdc/Makefile.in         up to 1.1.1.7
external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi   up to 1.1.1.5
external/bsd/ntp/dist/ntpdc/ntpdc-opts.c        up to 1.5
external/bsd/ntp/dist/ntpdc/ntpdc-opts.h        up to 1.5
external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman     up to 1.1.1.5
external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc    up to 1.1.1.5
external/bsd/ntp/dist/ntpdc/ntpdc.c             up to 1.11
external/bsd/ntp/dist/ntpdc/ntpdc.html          up to 1.1.1.5
external/bsd/ntp/dist/ntpdc/ntpdc.man.in        up to 1.1.1.5
external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in       up to 1.1.1.5
external/bsd/ntp/dist/ntpq/Makefile.in          up to 1.1.1.7
external/bsd/ntp/dist/ntpq/invoke-ntpq.texi     up to 1.1.1.5
external/bsd/ntp/dist/ntpq/libntpq.h            up to 1.4
external/bsd/ntp/dist/ntpq/ntpq-opts.c          up to 1.5
external/bsd/ntp/dist/ntpq/ntpq-opts.def        up to 1.1.1.4
external/bsd/ntp/dist/ntpq/ntpq-opts.h          up to 1.5
external/bsd/ntp/dist/ntpq/ntpq-subs.c          up to 1.12
external/bsd/ntp/dist/ntpq/ntpq.1ntpqman        up to 1.1.1.5
external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc       up to 1.1.1.5
external/bsd/ntp/dist/ntpq/ntpq.c               up to 1.13
external/bsd/ntp/dist/ntpq/ntpq.html            up to 1.1.1.5
external/bsd/ntp/dist/ntpq/ntpq.man.in          up to 1.1.1.5
external/bsd/ntp/dist/ntpq/ntpq.mdoc.in         up to 1.1.1.5
external/bsd/ntp/dist/ntpsnmpd/Makefile.in      up to 1.1.1.7
external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi up to 1.1.1.5
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c  up to 1.5
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h  up to 1.5
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman up to 1.1.1.5
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc up to 1.1.1.5
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html    up to 1.1.1.5
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in  up to 1.1.1.5
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in up to 1.1.1.5
external/bsd/ntp/dist/parseutil/Makefile.in     up to 1.1.1.7
external/bsd/ntp/dist/parseutil/dcfd.c          up to 1.4
external/bsd/ntp/dist/parseutil/testdcf.c       up to 1.4
external/bsd/ntp/dist/scripts/Makefile.in       up to 1.1.1.7
external/bsd/ntp/dist/scripts/invoke-plot_summary.texi up to 1.1.1.5
external/bsd/ntp/dist/scripts/invoke-summary.texi up to 1.1.1.5
external/bsd/ntp/dist/scripts/plot_summary-opts up to 1.1.1.5
external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman up to 1.1.1.5
external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc up to 1.1.1.5
external/bsd/ntp/dist/scripts/plot_summary.html up to 1.1.1.5
external/bsd/ntp/dist/scripts/plot_summary.man.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/plot_summary.mdoc.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/summary-opts      up to 1.1.1.5
external/bsd/ntp/dist/scripts/summary.1summaryman up to 1.1.1.5
external/bsd/ntp/dist/scripts/summary.1summarymdoc up to 1.1.1.5
external/bsd/ntp/dist/scripts/summary.html      up to 1.1.1.5
external/bsd/ntp/dist/scripts/summary.man.in    up to 1.1.1.5
external/bsd/ntp/dist/scripts/summary.mdoc.in   up to 1.1.1.5
external/bsd/ntp/dist/scripts/build/Makefile.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman up to 1.1.1.5
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc up to 1.1.1.5
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html up to 1.1.1.5
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi up to 1.1.1.5
external/bsd/ntp/dist/scripts/lib/Makefile.in   up to 1.1.1.5
external/bsd/ntp/dist/scripts/lib/NTP/Util.pm   up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.in up to 1.1.1.4
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntptrace/Makefile.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/update-leap/Makefile.am up to 1.1.1.2
external/bsd/ntp/dist/scripts/update-leap/Makefile.in up to 1.1.1.3
external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi up to 1.1.1.3
external/bsd/ntp/dist/scripts/update-leap/update-leap-opts up to 1.1.1.3
external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman up to 1.1.1.3
external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc up to 1.1.1.3
external/bsd/ntp/dist/scripts/update-leap/update-leap.html up to 1.1.1.3
external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in up to 1.1.1.3
external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in up to 1.1.1.3
external/bsd/ntp/dist/sntp/Makefile.am          up to 1.1.1.7
external/bsd/ntp/dist/sntp/Makefile.in          up to 1.1.1.7
external/bsd/ntp/dist/sntp/aclocal.m4           up to 1.1.1.6
external/bsd/ntp/dist/sntp/config.h.in          up to 1.1.1.5
external/bsd/ntp/dist/sntp/configure            up to 1.1.1.7
external/bsd/ntp/dist/sntp/configure.ac         up to 1.1.1.6
external/bsd/ntp/dist/sntp/invoke-sntp.texi     up to 1.1.1.5
external/bsd/ntp/dist/sntp/kod_management.c     up to 1.6
external/bsd/ntp/dist/sntp/log.c                up to 1.9
external/bsd/ntp/dist/sntp/log.h                up to 1.7
external/bsd/ntp/dist/sntp/networking.c         up to 1.12
external/bsd/ntp/dist/sntp/sntp-opts.c          up to 1.6
external/bsd/ntp/dist/sntp/sntp-opts.h          up to 1.5
external/bsd/ntp/dist/sntp/sntp.1sntpman        up to 1.1.1.5
external/bsd/ntp/dist/sntp/sntp.1sntpmdoc       up to 1.1.1.5
external/bsd/ntp/dist/sntp/sntp.html            up to 1.1.1.7
external/bsd/ntp/dist/sntp/sntp.man.in          up to 1.1.1.5
external/bsd/ntp/dist/sntp/sntp.mdoc.in         up to 1.1.1.5
external/bsd/ntp/dist/sntp/include/Makefile.in  up to 1.1.1.5
external/bsd/ntp/dist/sntp/include/autogen-version.def up to 1.1.1.3
external/bsd/ntp/dist/sntp/include/version.def  up to 1.1.1.5
external/bsd/ntp/dist/sntp/include/version.texi up to 1.1.1.5
external/bsd/ntp/dist/sntp/libevent/Makefile.am up to 1.1.1.4
external/bsd/ntp/dist/sntp/libevent/Makefile.in up to 1.1.1.5
external/bsd/ntp/dist/sntp/libevent/aclocal.m4  up to 1.1.1.3
external/bsd/ntp/dist/sntp/libevent/config.h.in up to 1.1.1.4
external/bsd/ntp/dist/sntp/libevent/configure   up to 1.1.1.4
external/bsd/ntp/dist/sntp/libevent/listener.c  up to 1.4
external/bsd/ntp/dist/sntp/libevent/build-aux/ltmain.sh up to 1.1.1.2
external/bsd/ntp/dist/sntp/libevent/m4/ltversion.m4 up to 1.1.1.2
external/bsd/ntp/dist/sntp/libevent/test/bench_httpclient.c up to 1.4
external/bsd/ntp/dist/sntp/libevent/test/regress.c up to 1.5
external/bsd/ntp/dist/sntp/libevent/test/regress_dns.c up to 1.5
external/bsd/ntp/dist/sntp/libevent/test/regress_http.c up to 1.5
external/bsd/ntp/dist/sntp/libevent/test/regress_minheap.c up to 1.5
external/bsd/ntp/dist/sntp/libevent/test/test-ratelim.c up to 1.5
external/bsd/ntp/dist/sntp/libevent/test/test-time.c up to 1.5
external/bsd/ntp/dist/sntp/libopts/COPYING.gplv3 up to 1.1.1.5
external/bsd/ntp/dist/sntp/libopts/COPYING.lgplv3 up to 1.1.1.5
external/bsd/ntp/dist/sntp/libopts/COPYING.mbsd up to 1.1.1.2
external/bsd/ntp/dist/sntp/libopts/Makefile.in  up to 1.1.1.7
external/bsd/ntp/dist/sntp/libopts/README       up to 1.1.1.5
external/bsd/ntp/dist/sntp/libopts/ag-char-map.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/alias.c      up to 1.3
external/bsd/ntp/dist/sntp/libopts/ao-strs.c    up to 1.3
external/bsd/ntp/dist/sntp/libopts/ao-strs.h    up to 1.3
external/bsd/ntp/dist/sntp/libopts/autoopts.c   up to 1.5
external/bsd/ntp/dist/sntp/libopts/autoopts.h   up to 1.9
external/bsd/ntp/dist/sntp/libopts/boolean.c    up to 1.3
external/bsd/ntp/dist/sntp/libopts/check.c      up to 1.3
external/bsd/ntp/dist/sntp/libopts/configfile.c up to 1.6
external/bsd/ntp/dist/sntp/libopts/cook.c       up to 1.3
external/bsd/ntp/dist/sntp/libopts/enum.c       up to 1.5
external/bsd/ntp/dist/sntp/libopts/env.c        up to 1.3
external/bsd/ntp/dist/sntp/libopts/file.c       up to 1.6
external/bsd/ntp/dist/sntp/libopts/find.c       up to 1.5
external/bsd/ntp/dist/sntp/libopts/genshell.c   up to 1.3
external/bsd/ntp/dist/sntp/libopts/gettext.h    up to 1.3
external/bsd/ntp/dist/sntp/libopts/init.c       up to 1.6
external/bsd/ntp/dist/sntp/libopts/intprops.h   up to 1.3
external/bsd/ntp/dist/sntp/libopts/libopts.c    up to 1.3
external/bsd/ntp/dist/sntp/libopts/load.c       up to 1.6
external/bsd/ntp/dist/sntp/libopts/makeshell.c  up to 1.6
external/bsd/ntp/dist/sntp/libopts/nested.c     up to 1.8
external/bsd/ntp/dist/sntp/libopts/numeric.c    up to 1.6
external/bsd/ntp/dist/sntp/libopts/option-value-type.c up to 1.3
external/bsd/ntp/dist/sntp/libopts/option-value-type.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.c up to 1.3
external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/parse-duration.c up to 1.7
external/bsd/ntp/dist/sntp/libopts/parse-duration.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/pgusage.c    up to 1.5
external/bsd/ntp/dist/sntp/libopts/proto.h      up to 1.3
external/bsd/ntp/dist/sntp/libopts/putshell.c   up to 1.5
external/bsd/ntp/dist/sntp/libopts/reset.c      up to 1.6
external/bsd/ntp/dist/sntp/libopts/restore.c    up to 1.3
external/bsd/ntp/dist/sntp/libopts/save.c       up to 1.8
external/bsd/ntp/dist/sntp/libopts/sort.c       up to 1.3
external/bsd/ntp/dist/sntp/libopts/stack.c      up to 1.6
external/bsd/ntp/dist/sntp/libopts/stdnoreturn.in.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/streqvcmp.c  up to 1.5
external/bsd/ntp/dist/sntp/libopts/text_mmap.c  up to 1.3
external/bsd/ntp/dist/sntp/libopts/time.c       up to 1.3
external/bsd/ntp/dist/sntp/libopts/tokenize.c   up to 1.6
external/bsd/ntp/dist/sntp/libopts/usage.c      up to 1.5
external/bsd/ntp/dist/sntp/libopts/version.c    up to 1.3
external/bsd/ntp/dist/sntp/libopts/autoopts/options.h up to 1.10
external/bsd/ntp/dist/sntp/libopts/autoopts/project.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/autoopts/usage-txt.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/compat/compat.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/compat/pathfind.c up to 1.6
external/bsd/ntp/dist/sntp/libopts/compat/windows-config.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/m4/libopts.m4 up to 1.1.1.6
external/bsd/ntp/dist/sntp/libopts/m4/liboptschk.m4 up to 1.1.1.5
external/bsd/ntp/dist/sntp/libopts/m4/stdnoreturn.m4 up to 1.1.1.2
external/bsd/ntp/dist/sntp/m4/ltversion.m4      up to 1.1.1.2
external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4   up to 1.1.1.4
external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4     up to 1.1.1.5
external/bsd/ntp/dist/sntp/m4/ntp_openssl.m4    up to 1.1.1.2
external/bsd/ntp/dist/sntp/m4/ntp_rlimit.m4     up to 1.1.1.2
external/bsd/ntp/dist/sntp/m4/openldap-thread-check.m4 up to 1.1.1.2
external/bsd/ntp/dist/sntp/m4/os_cflags.m4      up to 1.1.1.3
external/bsd/ntp/dist/sntp/m4/version.m4        up to 1.1.1.5
external/bsd/ntp/dist/sntp/scripts/Makefile.in  up to 1.1.1.5
external/bsd/ntp/dist/sntp/scripts/genLocInfo   up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/Makefile.am    up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/Makefile.in    up to 1.1.1.5
external/bsd/ntp/dist/sntp/tests/sntptest.h     up to 1.4
external/bsd/ntp/dist/tests/Makefile.am         up to 1.1.1.3
external/bsd/ntp/dist/tests/Makefile.in         up to 1.1.1.5
external/bsd/ntp/dist/tests/libntp/Makefile.am  up to 1.1.1.4
external/bsd/ntp/dist/tests/libntp/Makefile.in  up to 1.1.1.5
external/bsd/ntp/dist/tests/libntp/lfptest.h    up to 1.4
external/bsd/ntp/dist/tests/libntp/sockaddrtest.h up to 1.4
external/bsd/ntp/dist/tests/ntpd/Makefile.am    up to 1.1.1.2
external/bsd/ntp/dist/tests/ntpd/Makefile.in    up to 1.1.1.5
external/bsd/ntp/dist/util/Makefile.in          up to 1.1.1.7
external/bsd/ntp/dist/util/invoke-ntp-keygen.texi up to 1.1.1.5
external/bsd/ntp/dist/util/ntp-keygen-opts.c    up to 1.10
external/bsd/ntp/dist/util/ntp-keygen-opts.h    up to 1.5
external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman up to 1.1.1.5
external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc up to 1.1.1.5
external/bsd/ntp/dist/util/ntp-keygen.c         up to 1.9
external/bsd/ntp/dist/util/ntp-keygen.html      up to 1.1.1.5
external/bsd/ntp/dist/util/ntp-keygen.man.in    up to 1.1.1.5
external/bsd/ntp/dist/util/ntp-keygen.mdoc.in   up to 1.1.1.5
external/bsd/ntp/dist/util/ntptime.c            up to 1.7
external/bsd/ntp/include/config.h               up to 1.13
external/bsd/ntp/scripts/mkver                  up to 1.7

	Update ntp to 4.2.8p4.
	[christos, ticket #1024]
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p4.
d8 3
a10 1
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
a138 25
# Use a proper internal environment variable to ensure we don't fall
  # into an infinite loop, continuously re-executing ourselves.
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    _as_can_reexec=no; export _as_can_reexec;
    # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
as_fn_exit 255
  fi
  # We don't want this to propagate to other subprocesses.
          { _as_can_reexec=; unset _as_can_reexec;}
d172 1
a172 2
test x\$exitcode = x0 || exit 1
test -x / || exit 1"
d225 15
a239 19
  export CONFIG_SHELL
             # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
a341 8

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
a462 4
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  # already done that, so ensure we don't try to do so again and fall
  # in an infinite loop.  This has already happened in practice.
  _as_can_reexec=no; export _as_can_reexec
d497 1
a497 1
    # In both cases, we have to default to `cp -pR'.
d499 1
a499 1
      as_ln_s='cp -pR'
d503 1
a503 1
    as_ln_s='cp -pR'
d506 1
a506 1
  as_ln_s='cp -pR'
d518 22
a539 2
as_test_x='test -x'
as_executable_p=as_fn_executable_p
d573 2
a574 2
PACKAGE_VERSION='4.2.8p4'
PACKAGE_STRING='ntp 4.2.8p4'
a621 6
BUILD_TEST_NTP_SIGND_FALSE
BUILD_TEST_NTP_SIGND_TRUE
BUILD_TEST_NTP_SCANNER_FALSE
BUILD_TEST_NTP_SCANNER_TRUE
BUILD_TEST_NTP_RESTRICT_FALSE
BUILD_TEST_NTP_RESTRICT_TRUE
a628 4
UNITYBUILD_AVAILABLE_FALSE
UNITYBUILD_AVAILABLE_TRUE
PATH_RUBY
HAVE_LEAPSMEARINTERVAL
a667 2
LTHREAD_LIBS
BUILD_THREAD
a679 1
CFLAGS_LIBEVENT
d701 2
a712 2
ac_ct_AR
AR
a819 1
am__nodep
a842 2
AM_DEFAULT_V
AM_V
a1023 1
enable_leap_smear
a1024 1
enable_problem_tests
d1496 2
d1583 1
a1583 1
\`configure' configures ntp 4.2.8p4 to adapt to many kinds of systems.
d1653 1
a1653 1
     short | recursive ) echo "Configuration of ntp 4.2.8p4:";;
d1663 4
a1666 6
  --enable-silent-rules   less verbose build output (undo: "make V=1")
  --disable-silent-rules  verbose build output (undo: "make V=0")
  --enable-dependency-tracking
                          do not reject slow dependency extractors
  --disable-dependency-tracking
                          speeds up one-time build
d1699 1
a1699 1
  --with-memlock          ? =32 (-1 on linux) megabytes
a1793 1
  --enable-leap-smear     - experimental leap smear code
a1794 1
  --enable-problem-tests  + enable tests with undiagnosed problems
d1882 2
a1883 2
ntp configure 4.2.8p4
generated by GNU Autoconf 2.69
d1885 1
a1885 1
Copyright (C) 2012 Free Software Foundation, Inc.
d2162 1
a2162 1
	 test -x conftest$ac_exeext
d2350 1
a2350 1
	 test -x conftest$ac_exeext
d2440 1
a2440 2
test_array [0] = 0;
return test_array [0];
d2456 1
a2456 2
test_array [0] = 0;
return test_array [0];
d2482 1
a2482 2
test_array [0] = 0;
return test_array [0];
d2498 1
a2498 2
test_array [0] = 0;
return test_array [0];
d2532 1
a2532 2
test_array [0] = 0;
return test_array [0];
d2707 2
a2708 2
It was created by ntp $as_me 4.2.8p4, which was
generated by GNU Autoconf 2.69.  Invocation command line was
a3085 6
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

d3216 1
a3216 1
am__api_version='1.15'
d3255 1
a3255 1
	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d3313 3
d3326 1
a3326 1
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
d3329 1
a3329 1
# Do 'set' in a subshell so we don't clobber the current shell's
d3335 16
a3350 10
   am_has_slept=no
   for am_try in 1 2; do
     echo "timestamp, slept: $am_has_slept" > conftest.file
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
     if test "$*" = "X"; then
	# -L didn't work.
	set X `ls -t "$srcdir/configure" conftest.file`
     fi
     if test "$*" != "X $srcdir/configure conftest.file" \
	&& test "$*" != "X conftest.file $srcdir/configure"; then
a3351 14
	# If neither matched, then we have a broken ls.  This can happen
	# if, for instance, CONFIG_SHELL is bash and it inherits a
	# broken ls alias from the environment.  This has actually
	# happened.  Such a system could not be considered "sane".
	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  alias in your environment" "$LINENO" 5
     fi
     if test "$2" = conftest.file || test $am_try -eq 2; then
       break
     fi
     # Just in case.
     sleep 1
     am_has_slept=yes
   done
a3362 10
# If we didn't sleep, we still need to ensure time stamps of config.status and
# generated files are strictly newer.
am_sleep_pid=
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  ( sleep 1 ) &
  am_sleep_pid=$!
fi

rm -f conftest.file

d3373 2
a3374 2
# Expand $ac_aux_dir to an absolute path.
am_aux_dir=`cd "$ac_aux_dir" && pwd`
d3385 2
a3386 2
if eval "$MISSING --is-lightweight"; then
  am_missing_run="$MISSING "
d3389 2
a3390 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
d3393 1
a3393 1
if test x"${install_sh+set}" != xset; then
d3402 2
a3403 2
# Installed binaries are usually stripped using 'strip' when the user
# run "make install-strip".  However 'strip' might not be the right
d3405 1
a3405 1
# will honor the 'STRIP' environment variable to overrule this program.
d3424 1
a3424 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3464 1
a3464 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3515 1
a3515 1
	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
d3544 6
d3568 1
a3568 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a3631 39
# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in # (((
  yes) AM_DEFAULT_VERBOSITY=0;;
   no) AM_DEFAULT_VERBOSITY=1;;
    *) AM_DEFAULT_VERBOSITY=1;;
esac
am_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if ${am_cv_make_support_nested_variables+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
	@@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  am_cv_make_support_nested_variables=yes
else
  am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
    AM_V='$(V)'
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
  AM_V=$AM_DEFAULT_VERBOSITY
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
AM_BACKSLASH='\'

d3654 1
a3654 1
 VERSION='4.2.8p4'
d3682 3
a3684 5
# For better backward compatibility.  To be removed once Automake 1.9.x
# dies out for good.  For more background, see:
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
mkdir_p='$(MKDIR_P)'
d3686 1
a3686 5
# We need awk for the "check" target (and possibly the TAP driver).  The
# system "awk" is bad on some platforms.
# Always define AMTAR for backward compatibility.  Yes, it's still used
# in the wild :-(  We should find a proper way to deprecate it ...
AMTAR='$${TAR-tar}'
d3688 1
a3689 2
# We'll loop over all known methods to create a tar archive until one works.
_am_tools='gnutar  pax cpio none'
a3690 1
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
a3694 45


# POSIX will say in a future version that running "rm -f" with no argument
# is OK; and we want to be able to make that assumption in our Makefile
# recipes.  So use an aggressive probe to check that the usage we want is
# actually supported "in the wild" to an acceptable degree.
# See automake bug#10828.
# To make any issue more visible, cause the running configure to be aborted
# by default if the 'rm' program in use doesn't match our expectations; the
# user can still override this though.
if rm -f && rm -fr && rm -rf; then : OK; else
  cat >&2 <<'END'
Oops!

Your 'rm' program seems unable to run without file operands specified
on the command line, even when the '-f' option is present.  This is contrary
to the behaviour of most rm programs out there, and not conforming with
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>

Please tell bug-automake@@gnu.org about your system, including the value
of your $PATH and any error possibly output before this message.  This
can help us improve future automake versions.

END
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
    echo 'Configuration will proceed anyway, since you have set the' >&2
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
    echo >&2
  else
    cat >&2 <<'END'
Aborting the configuration process, to ensure you take notice of the issue.

You can download and install GNU coreutils to get an 'rm' implementation
that behaves properly: <http://www.gnu.org/software/coreutils/>.

If you want to complete the configuration process using your problematic
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
to "yes", and re-run configure.

END
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  fi
fi


d3700 4
a3703 4
case $enable_silent_rules in # (((
  yes) AM_DEFAULT_VERBOSITY=0;;
   no) AM_DEFAULT_VERBOSITY=1;;
    *) AM_DEFAULT_VERBOSITY=0;;
a3704 27
am_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if ${am_cv_make_support_nested_variables+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
	@@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  am_cv_make_support_nested_variables=yes
else
  am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
    AM_V='$(V)'
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
  AM_V=$AM_DEFAULT_VERBOSITY
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
d3812 1
a3812 1
# Ignore all kinds of additional output from 'make'.
a3844 1
  am__nodep='_no'
d3877 1
a3877 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3917 1
a3917 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3970 1
a3970 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4011 1
a4011 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4069 1
a4069 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4113 1
a4113 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4559 2
a4560 1
struct stat;
a4644 59
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
if ${am_cv_prog_cc_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
  # Make sure it works both with $CC and with simple cc.
  # Following AC_PROG_CC_C_O, we do the test twice because some
  # compilers refuse to overwrite an existing .o file with -o,
  # though they will create one.
  am_cv_prog_cc_c_o=yes
  for am_i in 1 2; do
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } \
         && test -f conftest2.$ac_objext; then
      : OK
    else
      am_cv_prog_cc_c_o=no
      break
    fi
  done
  rm -f core conftest*
  unset am_i
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
$as_echo "$am_cv_prog_cc_c_o" >&6; }
if test "$am_cv_prog_cc_c_o" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


d4656 2
a4657 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d4691 3
a4693 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d4697 1
a4697 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d4699 2
a4700 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d4709 2
a4710 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d4717 2
a4718 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d4927 1
a4927 1
      as_fn_executable_p "$ac_path_GREP" || continue
d4993 1
a4993 1
      as_fn_executable_p "$ac_path_EGREP" || continue
d5241 110
d5363 2
a5364 1
struct stat;
d5590 1
a5590 1
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
d5647 1
a5647 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5687 1
a5687 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5740 1
a5740 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5781 1
a5781 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5839 1
a5839 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5883 1
a5883 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d6079 2
a6080 1
struct stat;
a6164 59
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
if ${am_cv_prog_cc_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
  # Make sure it works both with $CC and with simple cc.
  # Following AC_PROG_CC_C_O, we do the test twice because some
  # compilers refuse to overwrite an existing .o file with -o,
  # though they will create one.
  am_cv_prog_cc_c_o=yes
  for am_i in 1 2; do
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } \
         && test -f conftest2.$ac_objext; then
      : OK
    else
      am_cv_prog_cc_c_o=no
      break
    fi
  done
  rm -f core conftest*
  unset am_i
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
$as_echo "$am_cv_prog_cc_c_o" >&6; }
if test "$am_cv_prog_cc_c_o" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


d6176 2
a6177 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d6211 3
a6213 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d6217 1
a6217 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d6219 2
a6220 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d6229 2
a6230 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d6237 2
a6238 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d6294 14
d6615 1
a6615 1
    # allow ntp_os_cflags to be preset to skip this stuff
d6658 1
a6658 1
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
d6668 1
a6668 1
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
d6703 1
a6703 1
    case "$ntp_os_cflags" in
a6713 32
    ###
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
$as_echo_n "checking additional linker flags... " >&6; }
    # HMS: The following might still need tweaking
    # allow ntp_os_ldflags to be preset to skip this stuff
    case "${ntp_os_ldflags+set}" in
     set)
	;;
     *)
	ntp_os_ldflags=
	case "$host_os" in
	 hpux*)
	    case "$GCC" in
	     yes)
		ntp_os_ldflags="-Wl,+allowdups"
		;;
	    esac
	    ;;
	esac
	;;
    esac
    case "$ntp_os_ldflags" in
     '')
	ntp_os_ldflags_msg="none needed"
	;;
     *)
	ntp_os_ldflags_msg="$ntp_os_ldflags"
    esac
    LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
$as_echo "$ntp_os_ldflags_msg" >&6; }
    { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
a7250 1
# Do we need CXX for anything besides google test?
d7279 1
a7279 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7323 1
a7323 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7519 2
a7520 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d7554 3
a7556 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d7560 1
a7560 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d7562 2
a7563 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d7572 2
a7573 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d7580 2
a7581 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d7653 1
a7653 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8004 171
if test -n "$ac_tool_prefix"; then
  for ac_prog in ar lib "link -lib"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar lib "link -lib"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_AR" && break
done

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
fi

: ${AR=ar}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
$as_echo_n "checking the archiver ($AR) interface... " >&6; }
if ${am_cv_ar_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

   am_cv_ar_interface=ar
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int some_variable = 0;
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  (eval $am_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
        am_cv_ar_interface=ar
      else
        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  (eval $am_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        if test "$ac_status" -eq 0; then
          am_cv_ar_interface=lib
        else
          am_cv_ar_interface=unknown
        fi
      fi
      rm -f conftest.lib libconftest.a

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
$as_echo "$am_cv_ar_interface" >&6; }

case $am_cv_ar_interface in
ar)
  ;;
lib)
  # Microsoft lib, so override with the ar-lib wrapper script.
  # FIXME: It is wrong to rewrite AR.
  # But if we don't then we get into trouble of one sort or another.
  # A longer-term fix would be to have automake use am__AR in this case,
  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  # similar.
  AR="$am_aux_dir/ar-lib $AR"
  ;;
unknown)
  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  ;;
esac

d8048 2
a8049 2
macro_version='2.4.2'
macro_revision='1.3337'
d8156 1
a8156 1
      as_fn_executable_p "$ac_path_SED" || continue
d8235 1
a8235 1
      as_fn_executable_p "$ac_path_FGREP" || continue
d8491 1
a8491 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8535 1
a8535 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8954 1
a8954 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8994 1
a8994 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9300 1
a9300 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9340 1
a9340 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9443 1
a9443 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9487 1
a9487 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9612 1
a9612 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9652 1
a9652 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9711 1
a9711 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9751 1
a9751 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10386 1
a10386 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10426 1
a10426 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10506 1
a10506 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10546 1
a10546 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10598 1
a10598 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10638 1
a10638 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10690 1
a10690 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10730 1
a10730 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10782 1
a10782 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10822 1
a10822 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10874 1
a10874 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10914 1
a10914 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d18808 3
a18810 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
$as_echo_n "checking size of char *... " >&6; }
if ${ac_cv_sizeof_char_p+:} false; then :
d18813 1
a18813 1
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
d18816 1
a18816 1
  if test "$ac_cv_type_char_p" = yes; then
d18819 1
a18819 1
as_fn_error 77 "cannot compute sizeof (char *)
d18822 1
a18822 1
     ac_cv_sizeof_char_p=0
d18827 2
a18828 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
$as_echo "$ac_cv_sizeof_char_p" >&6; }
d18833 1
a18833 1
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
d19297 1
a19297 1
      as_fn_executable_p "$ac_path_SED" || continue
d19501 1
a19501 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d19544 1
a19544 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a19618 1

a19631 1
	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
a19660 3
	    # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
	    # is "pthreads"?
	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
a19685 1

a19760 57
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
$as_echo_n "checking for unsigned long long int... " >&6; }
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_unsigned_long_long_int=yes
     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

else
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h

  fi


d19893 1
a19893 2
test_array [0] = 0;
return test_array [0];
a19915 1

d19921 34
a19955 5
      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
	if test $ac_cv_type_long_long_int = yes; then
	  	  	  	  if test "$cross_compiling" = yes; then :
  :
d19960 5
a19964 5
		 #ifndef LLONG_MAX
		 # define HALF \
			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
		 # define LLONG_MAX (HALF - 1 + HALF)
		 #endif
d19969 10
a19978 10
		 int i;
		 for (i = 0; ; i++)
		   {
		     long long int m = n << i;
		     if (m >> i != n)
		       return 1;
		     if (LLONG_MAX / 2 < m)
		       break;
		   }
		 return 0;
d19984 1
a19984 1

d19992 5
a19996 2
	fi
      fi
d20012 1
a20012 3
  ac_cv_type_unsigned_long_long_int=yes
     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20045 1
a20045 1

a20050 1
     fi
d20125 1
a20125 2
test_array [0] = 0;
return test_array [0];
d20179 1
a20179 1

d20181 1
a20181 1
  /* Ultrix mips cc rejects this sort of thing.  */
d20183 1
a20183 1
  const charset cs = { 0, 0 };
d20200 2
a20201 3
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char tx;
    char *t = &tx;
d20217 1
a20217 1
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
d20219 2
a20220 2
    struct s { int j; const int *ap[3]; } bx;
    struct s *b = &bx; b->j = 5;
d20343 1
a20343 1

d20345 1
a20345 1
  /* Ultrix mips cc rejects this sort of thing.  */
d20347 1
a20347 1
  const charset cs = { 0, 0 };
d20364 2
a20365 3
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char tx;
    char *t = &tx;
d20381 1
a20381 1
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
d20383 2
a20384 2
    struct s { int j; const int *ap[3]; } bx;
    struct s *b = &bx; b->j = 5;
d21266 1
a21266 1
find_stack_direction (int *addr, int depth)
d21268 9
a21276 6
  int dir, dummy = 0;
  if (! addr)
    addr = &dummy;
  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  return dir + dummy;
d21280 1
a21280 1
main (int argc, char **argv)
d21282 1
a21282 1
  return find_stack_direction (0, argc + !argv + 20) < 0;
d22255 1
a22255 2
test_array [0] = 0;
return test_array [0];
d22584 1
a22584 2
 no) ;;
 *)
d22654 1
a22654 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a26000 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
$as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}

a27040 4




d27066 50
a28280 3
     *-stratus-vos)
	ans=no
	;;
a28358 3
     *-stratus-vos)
	ans=no
	;;
a28421 3
     *-stratus-vos)
	ans=no
	;;
d28601 1
a28601 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28748 1
a28748 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28789 1
a28789 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28864 1
a28864 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a28891 14
case "$PATH_NET_SNMP_CONFIG" in
 /*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
$as_echo_n "checking for net-snmp version... " >&6; }
if ${ntp_cv_net_snmp_version+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
$as_echo "$ntp_cv_net_snmp_version" >&6; }
	;;
esac

d29312 1
a29312 1
for ac_header in sgtty.h stdatomic.h stdlib.h string.h termio.h
a29629 47
case "$ac_cv_header_stdatomic_h" in
 yes)
	for ac_func in atomic_thread_fence
do :
  ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ATOMIC_THREAD_FENCE 1
_ACEOF

fi
done

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
$as_echo_n "checking for atomic_thread_fence()... " >&6; }
if ${ntp_cv_func_atomic_thread_fence+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <stdatomic.h>

int
main ()
{

			atomic_thread_fence(memory_order_seq_cst);


  ;
  return 0;
}
		ntp_cv_func_atomic_thread_fence=yes
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_func_atomic_thread_fence=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
$as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
    ;;
esac

a30808 5
case "$host" in
 *-*-*linux*)
    ntp_dflt_rlimit_memlock="-1" ;;
 *) ntp_dflt_rlimit_memlock="32" ;;
esac
d30812 1
a30812 1
    HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock"  ;;
d30861 2
d30912 1
a30912 1
    ans=$ntp_dflt_rlimit_memlock
a30926 1

a33976 1
# Because we don't want -Werror for the EVP_MD_do_all_sorted check
a33977 18

case "$ntp_openssl" in
 yes)
    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
    for ac_func in EVP_MD_do_all_sorted
do :
  ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_EVP_MD_DO_ALL_SORTED 1
_ACEOF

fi
done

    ;;
esac

a34493 3
	 *-stratus-vos)
	    ans=no
	    ;;
a34555 3
	 *-stratus-vos)
	    ans=no
	    ;;
a35006 5
	# Bug 2815.  This is a bit of a hack, but it works...
	case "$ntp_cv_net_snmp_version" in
	 5.3*)	SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
		;;
	esac
a35166 3
 *-stratus-vos)
    ans=no
    ;;
a36346 88
###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
$as_echo_n "checking if we want the experimental leap smear code... " >&6; }
# Check whether --enable-leap-smear was given.
if test "${enable_leap_smear+set}" = set; then :
  enableval=$enable_leap_smear; ntp_ok=$enableval
else
  ntp_ok=no

fi

ntp_leap_smear_enabled=0
case "$ntp_ok" in
 yes)
    ntp_leap_smear_enabled=1

$as_echo "#define LEAP_SMEAR 1" >>confdefs.h


    HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }


# We may not need have_unity
have_unity=false
# Extract the first word of "ruby", so it can be a program name with args.
set dummy ruby; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_RUBY+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_RUBY in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_RUBY=$ac_cv_path_PATH_RUBY
if test -n "$PATH_RUBY"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
$as_echo "$PATH_RUBY" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


case "$PATH_RUBY" in
 /*)
    have_unity=true
    ;;
 *) PATH_RUBY="false"
    ;;
esac
# We may not need UNITYBUILD_AVAILABLE
 if $have_unity; then
  UNITYBUILD_AVAILABLE_TRUE=
  UNITYBUILD_AVAILABLE_FALSE='#'
else
  UNITYBUILD_AVAILABLE_TRUE='#'
  UNITYBUILD_AVAILABLE_FALSE=
fi




d36378 1
a36378 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a36446 75

case "$build" in
 $host)	cross=0 ;;
 *)	cross=1 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
$as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
# Check whether --enable-problem-tests was given.
if test "${enable_problem_tests+set}" = set; then :
  enableval=$enable_problem_tests; ntp_ept=$enableval
else
  ntp_ept=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
$as_echo "$ntp_ept" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
$as_echo_n "checking if we can run test-ntp_restrict... " >&6; }
ntp_test_ntp_restrict="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 no:0:*-*-hpux-11.23*) ;;
 *) ntp_test_ntp_restrict="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
$as_echo "$ntp_test_ntp_restrict" >&6; }
 if test x$ntp_test_ntp_restrict = xyes; then
  BUILD_TEST_NTP_RESTRICT_TRUE=
  BUILD_TEST_NTP_RESTRICT_FALSE='#'
else
  BUILD_TEST_NTP_RESTRICT_TRUE='#'
  BUILD_TEST_NTP_RESTRICT_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
$as_echo_n "checking if we can run test-ntp_scanner... " >&6; }
ntp_test_ntp_scanner="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 *) ntp_test_ntp_scanner="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
$as_echo "$ntp_test_ntp_scanner" >&6; }
 if test x$ntp_test_ntp_scanner = xyes; then
  BUILD_TEST_NTP_SCANNER_TRUE=
  BUILD_TEST_NTP_SCANNER_FALSE='#'
else
  BUILD_TEST_NTP_SCANNER_TRUE='#'
  BUILD_TEST_NTP_SCANNER_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
$as_echo_n "checking if we can run test-ntp_signd... " >&6; }
ntp_test_ntp_signd="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 *) ntp_test_ntp_signd="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
$as_echo "$ntp_test_ntp_signd" >&6; }
 if test x$ntp_test_ntp_signd = xyes; then
  BUILD_TEST_NTP_SIGND_TRUE=
  BUILD_TEST_NTP_SIGND_FALSE='#'
else
  BUILD_TEST_NTP_SIGND_TRUE='#'
  BUILD_TEST_NTP_SIGND_FALSE=
fi



a36532 2
ac_config_files="$ac_config_files scripts/update-leap/update-leap"

a36534 2
ac_config_files="$ac_config_files tests/bug-2803/Makefile"

a36538 6
ac_config_files="$ac_config_files tests/ntpq/Makefile"

ac_config_files="$ac_config_files tests/sandbox/Makefile"

ac_config_files="$ac_config_files tests/sec-2853/Makefile"

a36687 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
$as_echo_n "checking that generated files are newer than configure... " >&6; }
   if test -n "$am_sleep_pid"; then
     # Hide warnings about reused PIDs.
     wait $am_sleep_pid 2>/dev/null
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
$as_echo "done" >&6; }
a36760 4
if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
  as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a36764 12
if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d37063 1
a37063 1
    # In both cases, we have to default to `cp -pR'.
d37065 1
a37065 1
      as_ln_s='cp -pR'
d37069 1
a37069 1
    as_ln_s='cp -pR'
d37072 1
a37072 1
  as_ln_s='cp -pR'
d37132 22
a37153 10

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
as_test_x='test -x'
as_executable_p=as_fn_executable_p
d37174 2
a37175 2
This file was extended by ntp $as_me 4.2.8p4, which was
generated by GNU Autoconf 2.69.  Invocation command line was
d37241 2
a37242 2
ntp config.status 4.2.8p4
configured by $0, generated by GNU Autoconf 2.69,
d37245 1
a37245 1
Copyright (C) 2012 Free Software Foundation, Inc.
d37336 1
a37336 1
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
a37782 1
    "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
a37783 1
    "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
a37785 3
    "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;;
    "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
    "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
d38422 1
a38422 1
  # Older Autoconf quotes --file arguments for eval, but not when files
d38435 1
a38435 1
    # We used to match only the files named 'Makefile.in', but
d38469 1
a38469 1
    # from the Makefile without running 'make'.
d38473 1
a38473 1
    test -z "$am__include" && continue
d38475 2
d38483 1
a38483 1
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
d39318 1
a39318 1
    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' -e '/^$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
a39327 1
    "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
@


1.1.1.3.4.2.2.2
log
@Pull up following revision(s) (requested by snj in ticket #1166):
	doc/3RDPARTY: patch
	external/bsd/ntp/Makefile.inc: up to 1.15 via patch
	external/bsd/ntp/bin/ntpd/Makefile: up to 1.21
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.9
	external/bsd/ntp/dist/CommitLog: up to 1.1.1.9
	external/bsd/ntp/dist/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/NEWS: up to 1.1.1.9
	external/bsd/ntp/dist/README.pullrequests: up to 1.1.1.1
	external/bsd/ntp/dist/config.h.in: up to 1.1.1.8
	external/bsd/ntp/dist/configure: up to 1.1.1.9
	external/bsd/ntp/dist/configure.ac: up to 1.1.1.8
	external/bsd/ntp/dist/html/authentic.html: up to 1.1.1.3
	external/bsd/ntp/dist/html/miscopt.html: up to 1.1.1.8
	external/bsd/ntp/dist/html/monopt.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/xleave.html: up to 1.1.1.4
	external/bsd/ntp/dist/include/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/include/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/include/ntp.h: up to 1.6
	external/bsd/ntp/dist/include/ntp_io.h: up to 1.5
	external/bsd/ntp/dist/include/ntp_keyacc.h: up to 1.1.1.1
	external/bsd/ntp/dist/include/ntp_refclock.h: up to 1.5
	external/bsd/ntp/dist/include/ntp_stdlib.h: up to 1.13
	external/bsd/ntp/dist/include/ntp_types.h: up to 1.6
	external/bsd/ntp/dist/include/ntp_worker.h: up to 1.5
	external/bsd/ntp/dist/include/ntpd.h: up to 1.8
	external/bsd/ntp/dist/include/parse.h: up to 1.6
	external/bsd/ntp/dist/include/recvbuff.h: up to 1.5
	external/bsd/ntp/dist/include/safecast.h: up to 1.1.1.2
	external/bsd/ntp/dist/install-sh                delete
	external/bsd/ntp/dist/lib/isc/backtrace.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/buffer.c: up to 1.4
	external/bsd/ntp/dist/lib/isc/hmacmd5.c: up to 1.5
	external/bsd/ntp/dist/lib/isc/hmacsha.c: up to 1.5
	external/bsd/ntp/dist/lib/isc/include/isc/string.h: up to 1.5
	external/bsd/ntp/dist/lib/isc/inet_aton.c: up to 1.4
	external/bsd/ntp/dist/lib/isc/inet_pton.c: up to 1.7
	external/bsd/ntp/dist/lib/isc/log.c: up to 1.7
	external/bsd/ntp/dist/lib/isc/netaddr.c: up to 1.9
	external/bsd/ntp/dist/lib/isc/sockaddr.c: up to 1.7
	external/bsd/ntp/dist/lib/isc/task.c: up to 1.4
	external/bsd/ntp/dist/lib/isc/tsmemcmp.c: up to 1.1.1.1
	external/bsd/ntp/dist/lib/isc/win32/interfaceiter.c: up to 1.4
	external/bsd/ntp/dist/lib/isc/win32/net.c: up to 1.4
	external/bsd/ntp/dist/libntp/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/libntp/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/libntp/a_md5encrypt.c: up to 1.5
	external/bsd/ntp/dist/libntp/atolfp.c: up to 1.8
	external/bsd/ntp/dist/libntp/authkeys.c: up to 1.10
	external/bsd/ntp/dist/libntp/authreadkeys.c: up to 1.9
	external/bsd/ntp/dist/libntp/authusekey.c: up to 1.5
	external/bsd/ntp/dist/libntp/dolfptoa.c: up to 1.4
	external/bsd/ntp/dist/libntp/hextolfp.c: up to 1.7
	external/bsd/ntp/dist/libntp/is_ip_address.c: up to 1.1.1.1
	external/bsd/ntp/dist/libntp/mstolfp.c: up to 1.7
	external/bsd/ntp/dist/libntp/msyslog.c: up to 1.5
	external/bsd/ntp/dist/libntp/ntp_crypto_rnd.c: up to 1.5
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to 1.9
	external/bsd/ntp/dist/libntp/ntp_lineedit.c: up to 1.9
	external/bsd/ntp/dist/libntp/ntp_rfc2553.c: up to 1.5
	external/bsd/ntp/dist/libntp/ntp_worker.c: up to 1.6
	external/bsd/ntp/dist/libntp/recvbuff.c: up to 1.6
	external/bsd/ntp/dist/libntp/snprintf.c: up to 1.4
	external/bsd/ntp/dist/libntp/socktohost.c: up to 1.5
	external/bsd/ntp/dist/libntp/systime.c: up to 1.5
	external/bsd/ntp/dist/libntp/work_fork.c: up to 1.9
	external/bsd/ntp/dist/libntp/work_thread.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_computime.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_dcf7000.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_hopf6021.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_meinberg.c: up to 1.6
	external/bsd/ntp/dist/libparse/clk_rawdcf.c: up to 1.7
	external/bsd/ntp/dist/libparse/clk_rcc8000.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_schmid.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_trimtaip.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_varitext.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_wharton.c: up to 1.5
	external/bsd/ntp/dist/libparse/parse.c: up to 1.5
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to 1.1.1.6
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.def: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.16
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to 1.22
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.13
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_refclock.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_request.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_restrict.c: up to 1.8
	external/bsd/ntp/dist/ntpd/ntp_signd.c: up to 1.4
	external/bsd/ntp/dist/ntpd/ntp_timer.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntp_util.c: up to 1.8
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.c: up to 1.13
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/refclock_chu.c: up to 1.9
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to 1.9
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to 1.10
	external/bsd/ntp/dist/ntpd/refclock_local.c: up to 1.5
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to 1.18
	external/bsd/ntp/dist/ntpd/refclock_shm.c: up to 1.8
	external/bsd/ntp/dist/ntpd/refclock_true.c: up to 1.6
	external/bsd/ntp/dist/ntpd/refclock_tsyncpci.c: up to 1.4
	external/bsd/ntp/dist/ntpdate/ntpdate.c: up to 1.10
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.7
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.c: up to 1.13
	external/bsd/ntp/dist/ntpdc/ntpdc.h: up to 1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc_ops.c: up to 1.8
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.7
	external/bsd/ntp/dist/ntpq/libntpq.c: up to 1.4
	external/bsd/ntp/dist/ntpq/libntpq.h: up to 1.5
	external/bsd/ntp/dist/ntpq/libntpq_subs.c: up to 1.4
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.7
	external/bsd/ntp/dist/ntpq/ntpq-opts.def: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.7
	external/bsd/ntp/dist/ntpq/ntpq-subs.c: up to 1.14
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.c: up to 1.15
	external/bsd/ntp/dist/ntpq/ntpq.h: up to 1.9
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/config.h.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/crypto.c: up to 1.10
	external/bsd/ntp/dist/sntp/crypto.h: up to 1.5
	external/bsd/ntp/dist/sntp/include/copyright.def: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/install-sh           delete
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/test/regress.gen.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/configfile.c: up to 1.8
	external/bsd/ntp/dist/sntp/libopts/enum.c: up to 1.8
	external/bsd/ntp/dist/sntp/libopts/init.c: up to 1.8
	external/bsd/ntp/dist/sntp/libopts/nested.c: up to 1.10
	external/bsd/ntp/dist/sntp/libopts/parse-duration.c: up to 1.9
	external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/m4/ntp_problemtests.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/main.c: up to 1.15
	external/bsd/ntp/dist/sntp/networking.c: up to 1.14
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.8
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.7
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/tests/crypto.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.c: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h.in: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/keyFile.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/kodDatabase.c: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/kodFile.c: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/packetHandling.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/packetProcessing.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/run-kodDatabase.c: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/run-t-log.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/t-log.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/utilities.c: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/unity/unity_internals.h: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/version.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/bug-2803/bug-2803.c: up to 1.1.1.4
	external/bsd/ntp/dist/tests/bug-2803/run-bug-2803.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/authkeys.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/buftvtots.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/calendar.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/caljulian.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/clocktime.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/decodenetnum.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/humandate.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/lfpfunc.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/lfptostr.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/modetoa.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/msyslog.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/netof.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/numtoa.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/numtohost.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/octtoint.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/prettydate.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/recvbuff.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/refidsmear.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/refnumtoa.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-a_md5encrypt.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-authkeys.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-calendar.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-decodenetnum.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-humandate.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-lfpfunc.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-lfptostr.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-modetoa.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-msyslog.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-netof.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-numtoa.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-numtohost.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-prettydate.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-refnumtoa.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-sfptostr.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-socktoa.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-statestr.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-strtolfp.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-timespecops.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-timevalops.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-tsafememcmp.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/run-uglydate.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/sfptostr.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/socktoa.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/ssl_init.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/statestr.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/strtolfp.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/timespecops.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/timevalops.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/tsafememcmp.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/uglydate.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/ntpd/leapsec.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/ntp_prio_q.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/ntp_restrict.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/rc_cmdlength.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-leapsec.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-ntp_restrict.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-rc_cmdlength.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-t-ntp_signd.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/t-ntp_scanner.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/t-ntp_signd.c: up to 1.1.1.4
	external/bsd/ntp/dist/tests/ntpq/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/tests/ntpq/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/run-uglydate.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/sandbox/smeartest.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/sandbox/uglydate.c: up to 1.1.1.4
	external/bsd/ntp/dist/tests/sec-2853/sec-2853.c: up to 1.1.1.5
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.12
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.7
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.c: up to 1.10
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/importdate: up to 1.9
	external/bsd/ntp/include/config.h: up to 1.16
	external/bsd/ntp/lib/libiscntp/Makefile: up to 1.14
	external/bsd/ntp/lib/libntp/Makefile: up to 1.18
	external/bsd/ntp/scripts/mkver: up to 1.10
Update ntp to 4.2.8p7.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p7.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p7'
PACKAGE_STRING='ntp 4.2.8p7'
a1052 1
enable_bug3020_fix
a1060 1
enable_dynamic_interleave
d1619 1
a1619 1
\`configure' configures ntp 4.2.8p7 to adapt to many kinds of systems.
d1689 1
a1689 1
     short | recursive ) echo "Configuration of ntp 4.2.8p7:";;
a1822 1
  --enable-bug3020-fix    + Provide the explicit 127.0.0.0/8 martian filter
a1832 2
  --enable-dynamic-interleave
                          - dynamic interleave support
d1922 1
a1922 1
ntp configure 4.2.8p7
d2752 1
a2752 1
It was created by ntp $as_me 4.2.8p7, which was
d3753 1
a3753 1
 VERSION='4.2.8p7'
d20021 1
a20021 1
	    for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
a20023 1
		 -D*) ;;
a22119 3

$as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h

d29708 1
a29708 107
for ac_header in sgtty.h stdatomic.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
if ${ac_cv_header_stdbool_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

             #include <stdbool.h>
             #ifndef bool
              "error: bool is not defined"
             #endif
             #ifndef false
              "error: false is not defined"
             #endif
             #if false
              "error: false is not 0"
             #endif
             #ifndef true
              "error: true is not defined"
             #endif
             #if true != 1
              "error: true is not 1"
             #endif
             #ifndef __bool_true_false_are_defined
              "error: __bool_true_false_are_defined is not defined"
             #endif

             struct s { _Bool s: 1; _Bool t; } s;

             char a[true == 1 ? 1 : -1];
             char b[false == 0 ? 1 : -1];
             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
             char d[(bool) 0.5 == true ? 1 : -1];
             /* See body of main program for 'e'.  */
             char f[(_Bool) 0.0 == false ? 1 : -1];
             char g[true];
             char h[sizeof (_Bool)];
             char i[sizeof s.t];
             enum { j = false, k = true, l = false * true, m = true * 256 };
             /* The following fails for
                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
             _Bool n[m];
             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
             /* Catch a bug in an HP-UX C compiler.  See
                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
              */
             _Bool q = true;
             _Bool *pq = &q;

int
main ()
{

             bool e = &s;
             *pq |= q;
             *pq |= ! q;
             /* Refer to every declared value, to avoid compiler optimizations.  */
             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
                     + !m + !n + !o + !p + !q + !pq);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdbool_h=yes
else
  ac_cv_header_stdbool_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
$as_echo "$ac_cv_header_stdbool_h" >&6; }
   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
if test "x$ac_cv_type__Bool" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE__BOOL 1
_ACEOF


fi


if test $ac_cv_header_stdbool_h = yes; then

$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h

fi

for ac_header in stdlib.h string.h termio.h
a35833 20
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5
$as_echo_n "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; }
# Check whether --enable-bug3020-fix was given.
if test "${enable_bug3020_fix+set}" = set; then :
  enableval=$enable_bug3020_fix; ans=$enableval
else
  ans=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 yes)

$as_echo "#define ENABLE_BUG3020_FIX 1" >>confdefs.h

esac


a36852 26
###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5
$as_echo_n "checking if we want dynamic interleave support... " >&6; }
# Check whether --enable-dynamic-interleave was given.
if test "${enable_dynamic_interleave+set}" = set; then :
  enableval=$enable_dynamic_interleave; ntp_ok=$enableval
else
  ntp_ok=no

fi

ntp_dynamic_interleave=0
case "$ntp_ok" in
 yes)
    ntp_dynamic_interleave=1
    ;;
esac

cat >>confdefs.h <<_ACEOF
#define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave
_ACEOF

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

a37037 2
 no:0:*-*-freebsd6.4) ;;
 no:0:*-*-hpux11.23*) ;;
d37039 1
a37056 1
 no:0:*-*-freebsd6.4) ;;
a37074 1
 no:0:*-*-freebsd6.4) ;;
d37839 1
a37839 1
This file was extended by ntp $as_me 4.2.8p7, which was
d37906 1
a37906 1
ntp config.status 4.2.8p7
@


1.1.1.3.4.2.2.3
log
@doc/3RDPARTY					1.1336, 1.1337 via patch
external/bsd/ntp/Makefile.inc                   up to 1.16 via patch
external/bsd/ntp/bin/Makefile                   up to 1.3
external/bsd/ntp/dist/ChangeLog                 up to 1.1.1.10
external/bsd/ntp/dist/CommitLog                 up to 1.1.1.10
external/bsd/ntp/dist/NEWS                      up to 1.1.1.10
external/bsd/ntp/dist/configure                 up to 1.1.1.10
external/bsd/ntp/dist/configure.ac              up to 1.1.1.9
external/bsd/ntp/dist/html/miscopt.html         up to 1.1.1.9
external/bsd/ntp/dist/include/ntp.h             up to 1.7
external/bsd/ntp/dist/include/ntp_md5.h         up to 1.6
external/bsd/ntp/dist/libntp/a_md5encrypt.c     up to 1.6
external/bsd/ntp/dist/ntpd/complete.conf.in     up to 1.1.1.4
external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi up to 1.1.1.8
external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi up to 1.1.1.8
external/bsd/ntp/dist/ntpd/invoke-ntpd.texi     up to 1.1.1.8
external/bsd/ntp/dist/ntpd/keyword-gen-utd      up to 1.1.1.6
external/bsd/ntp/dist/ntpd/keyword-gen.c        up to 1.10
external/bsd/ntp/dist/ntpd/ntp.conf.5man        up to 1.1.1.8
external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc       up to 1.1.1.8
external/bsd/ntp/dist/ntpd/ntp.conf.def         up to 1.1.1.7
external/bsd/ntp/dist/ntpd/ntp.conf.html        up to 1.1.1.8
external/bsd/ntp/dist/ntpd/ntp.conf.man.in      up to 1.1.1.8
external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in     up to 1.1.1.8
external/bsd/ntp/dist/ntpd/ntp.keys.5man        up to 1.1.1.8
external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc       up to 1.1.1.8
external/bsd/ntp/dist/ntpd/ntp.keys.html        up to 1.1.1.8
external/bsd/ntp/dist/ntpd/ntp.keys.man.in      up to 1.1.1.8
external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in     up to 1.1.1.8
external/bsd/ntp/dist/ntpd/ntp_config.c         up to 1.15
external/bsd/ntp/dist/ntpd/ntp_control.c        up to 1.17
external/bsd/ntp/dist/ntpd/ntp_io.c             up to 1.23
external/bsd/ntp/dist/ntpd/ntp_keyword.h        up to 1.11
external/bsd/ntp/dist/ntpd/ntp_parser.y         up to 1.14
external/bsd/ntp/dist/ntpd/ntp_proto.c          up to 1.13
external/bsd/ntp/dist/ntpd/ntpd-opts.c          up to 1.8
external/bsd/ntp/dist/ntpd/ntpd-opts.h          up to 1.11
external/bsd/ntp/dist/ntpd/ntpd.1ntpdman        up to 1.1.1.8
external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc       up to 1.1.1.8
external/bsd/ntp/dist/ntpd/ntpd.html            up to 1.1.1.8
external/bsd/ntp/dist/ntpd/ntpd.man.in          up to 1.1.1.8
external/bsd/ntp/dist/ntpd/ntpd.mdoc.in         up to 1.1.1.8
external/bsd/ntp/dist/ntpd/refclock_parse.c     up to 1.19
external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi   up to 1.1.1.8
external/bsd/ntp/dist/ntpdc/ntpdc-opts.c        up to 1.8
external/bsd/ntp/dist/ntpdc/ntpdc-opts.h        up to 1.8
external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman     up to 1.1.1.8
external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc    up to 1.1.1.8
external/bsd/ntp/dist/ntpdc/ntpdc.c             up to 1.14
external/bsd/ntp/dist/ntpdc/ntpdc.html          up to 1.1.1.8
external/bsd/ntp/dist/ntpdc/ntpdc.man.in        up to 1.1.1.8
external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in       up to 1.1.1.8
external/bsd/ntp/dist/ntpq/invoke-ntpq.texi     up to 1.1.1.8
external/bsd/ntp/dist/ntpq/ntpq-opts.c          up to 1.8
external/bsd/ntp/dist/ntpq/ntpq-opts.h          up to 1.8
external/bsd/ntp/dist/ntpq/ntpq.1ntpqman        up to 1.1.1.8
external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc       up to 1.1.1.8
external/bsd/ntp/dist/ntpq/ntpq.c               up to 1.16
external/bsd/ntp/dist/ntpq/ntpq.html            up to 1.1.1.8
external/bsd/ntp/dist/ntpq/ntpq.man.in          up to 1.1.1.8
external/bsd/ntp/dist/ntpq/ntpq.mdoc.in         up to 1.1.1.8
external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi up to 1.1.1.8
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c  up to 1.8
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h  up to 1.8
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman up to 1.1.1.8
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc up to 1.1.1.8
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html    up to 1.1.1.8
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in  up to 1.1.1.8
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in up to 1.1.1.8
external/bsd/ntp/dist/packageinfo.sh            up to 1.1.1.10
external/bsd/ntp/dist/scripts/build/Makefile.am up to 1.1.1.3
external/bsd/ntp/dist/scripts/build/Makefile.in up to 1.1.1.8
external/bsd/ntp/dist/scripts/build/genAuthors.in up to 1.1.1.1
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman up to 1.1.1.8
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc up to 1.1.1.8
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html up to 1.1.1.8
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in up to 1.1.1.8
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in up to 1.1.1.8
external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi up to 1.1.1.8
external/bsd/ntp/dist/scripts/invoke-plot_summary.texi up to 1.1.1.8
external/bsd/ntp/dist/scripts/invoke-summary.texi up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.in up to 1.1.1.2
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in up to 1.1.1.8
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in up to 1.1.1.8
external/bsd/ntp/dist/scripts/plot_summary-opts up to 1.1.1.8
external/bsd/ntp/dist/scripts/plot_summary-opts.def up to 1.1.1.3
external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman up to 1.1.1.8
external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc up to 1.1.1.8
external/bsd/ntp/dist/scripts/plot_summary.html up to 1.1.1.8
external/bsd/ntp/dist/scripts/plot_summary.man.in up to 1.1.1.8
external/bsd/ntp/dist/scripts/plot_summary.mdoc.in up to 1.1.1.8
external/bsd/ntp/dist/scripts/summary-opts      up to 1.1.1.8
external/bsd/ntp/dist/scripts/summary.1summaryman up to 1.1.1.8
external/bsd/ntp/dist/scripts/summary.1summarymdoc up to 1.1.1.8
external/bsd/ntp/dist/scripts/summary.html      up to 1.1.1.8
external/bsd/ntp/dist/scripts/summary.man.in    up to 1.1.1.8
external/bsd/ntp/dist/scripts/summary.mdoc.in   up to 1.1.1.8
external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi up to 1.1.1.6
external/bsd/ntp/dist/scripts/update-leap/update-leap-opts up to 1.1.1.6
external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman up to 1.1.1.6
external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc up to 1.1.1.6
external/bsd/ntp/dist/scripts/update-leap/update-leap.html up to 1.1.1.6
external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in up to 1.1.1.6
external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in up to 1.1.1.6
external/bsd/ntp/dist/sntp/Makefile.in          up to 1.1.1.10
external/bsd/ntp/dist/sntp/aclocal.m4           up to 1.1.1.9
external/bsd/ntp/dist/sntp/configure            up to 1.1.1.10
external/bsd/ntp/dist/sntp/configure.ac         up to 1.1.1.7
external/bsd/ntp/dist/sntp/crypto.c             up to 1.11
external/bsd/ntp/dist/sntp/include/Makefile.in  up to 1.1.1.8
external/bsd/ntp/dist/sntp/include/version.def  up to 1.1.1.8
external/bsd/ntp/dist/sntp/include/version.texi up to 1.1.1.8
external/bsd/ntp/dist/sntp/invoke-sntp.texi     up to 1.1.1.8
external/bsd/ntp/dist/sntp/libopts/Makefile.in  up to 1.1.1.10
external/bsd/ntp/dist/sntp/m4/ntp_problemtests.m4 up to 1.1.1.3
external/bsd/ntp/dist/sntp/m4/sntp_problemtests.m4 up to 1.1.1.1
external/bsd/ntp/dist/sntp/m4/version.m4        up to 1.1.1.8
external/bsd/ntp/dist/sntp/scripts/Makefile.in  up to 1.1.1.8
external/bsd/ntp/dist/sntp/sntp-opts.c          up to 1.9
external/bsd/ntp/dist/sntp/sntp-opts.h          up to 1.8
external/bsd/ntp/dist/sntp/sntp.1sntpman        up to 1.1.1.8
external/bsd/ntp/dist/sntp/sntp.1sntpmdoc       up to 1.1.1.8
external/bsd/ntp/dist/sntp/sntp.html            up to 1.1.1.10
external/bsd/ntp/dist/sntp/sntp.man.in          up to 1.1.1.8
external/bsd/ntp/dist/sntp/sntp.mdoc.in         up to 1.1.1.8
external/bsd/ntp/dist/sntp/tests/Makefile.am    up to 1.1.1.4
external/bsd/ntp/dist/sntp/tests/Makefile.in    up to 1.1.1.8
external/bsd/ntp/dist/sntp/unity/Makefile.in    up to 1.1.1.5
external/bsd/ntp/dist/sntp/version.c            up to 1.1.1.7
external/bsd/ntp/dist/util/invoke-ntp-keygen.texi up to 1.1.1.8
external/bsd/ntp/dist/util/ntp-keygen-opts.c    up to 1.13
external/bsd/ntp/dist/util/ntp-keygen-opts.h    up to 1.8
external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman up to 1.1.1.8
external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc up to 1.1.1.8
external/bsd/ntp/dist/util/ntp-keygen.html      up to 1.1.1.8
external/bsd/ntp/dist/util/ntp-keygen.man.in    up to 1.1.1.8
external/bsd/ntp/dist/util/ntp-keygen.mdoc.in   up to 1.1.1.8
external/bsd/ntp/importdate                     up to 1.10
external/bsd/ntp/include/config.h               up to 1.18
external/bsd/ntp/scripts/mkver                  up to 1.11

	Update ntp to 4.2.8p8.
	[snj, ticket #1204]
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p8.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p8'
PACKAGE_STRING='ntp 4.2.8p8'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p8 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p8:";;
d1927 1
a1927 1
ntp configure 4.2.8p8
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p8, which was
d3758 1
a3758 1
 VERSION='4.2.8p8'
a37253 1

a37311 2
ac_config_files="$ac_config_files scripts/build/genAuthors"

d38003 1
a38003 1
This file was extended by ntp $as_me 4.2.8p8, which was
d38070 1
a38070 1
ntp config.status 4.2.8p8
a38597 1
    "scripts/build/genAuthors") CONFIG_FILES="$CONFIG_FILES scripts/build/genAuthors" ;;
a40151 1
    "scripts/build/genAuthors":F) chmod +x scripts/build/genAuthors ;;
@


1.1.1.3.4.2.2.4
log
@Pull up following revision(s) (requested by snj in ticket #1389):
	doc/3RDPARTY: 1.1380, 1.1381
	external/bsd/ntp/Makefile.inc: up to 1.16 via patch
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.11
	external/bsd/ntp/dist/CommitLog: up to 1.1.1.11
	external/bsd/ntp/dist/NEWS: up to 1.1.1.11
	external/bsd/ntp/dist/configure: up to 1.1.1.11
	external/bsd/ntp/dist/html/drivers/driver40-ja.html: up to 1.1.1.2
	external/bsd/ntp/dist/html/drivers/driver40.html: up to 1.1.1.5
	external/bsd/ntp/dist/html/miscopt.html: up to 1.1.1.10
	external/bsd/ntp/dist/include/Makefile.am: up to 1.1.1.9
	external/bsd/ntp/dist/include/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/include/libssl_compat.h: up to 1.1.1.1
	external/bsd/ntp/dist/include/ntp.h: up to 1.8
	external/bsd/ntp/dist/include/ntp_intres.h: up to 1.5
	external/bsd/ntp/dist/include/ntpd.h: up to 1.9
	external/bsd/ntp/dist/libntp/Makefile.am: up to 1.1.1.7
	external/bsd/ntp/dist/libntp/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/libntp/a_md5encrypt.c: up to 1.7
	external/bsd/ntp/dist/libntp/audio.c: up to 1.11
	external/bsd/ntp/dist/libntp/libssl_compat.c: up to 1.1.1.1
	external/bsd/ntp/dist/libntp/ntp_calendar.c: up to 1.9
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to 1.10
	external/bsd/ntp/dist/libntp/ssl_init.c: up to 1.9
	external/bsd/ntp/dist/libntp/work_fork.c: up to 1.10
	external/bsd/ntp/dist/libparse/clk_hopf6021.c: up to 1.6
	external/bsd/ntp/dist/ntpd/complete.conf.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.16
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.18
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to 1.13
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.15
	external/bsd/ntp/dist/ntpd/ntp_peer.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_refclock.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.12
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to 1.10
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to 1.11
	external/bsd/ntp/dist/ntpd/refclock_jupiter.c: up to 1.11
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.9
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.9
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.9
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.9
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.9
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/ntpq.c: up to 1.17
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/build/genAuthors.in: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap.in: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/crypto.c: up to 1.12
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/libevent/build-aux/config.guess: up to 1.2
	external/bsd/ntp/dist/sntp/libevent/build-aux/config.sub: up to 1.2
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.10
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.9
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/tests/packetProcessing.c: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/unity/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/unity/Makefile.in: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/unity/ulib_setup.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/ulib_teardown.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/unity_fixture.c: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/version.c: up to 1.1.1.8
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/calendar.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-calendar.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/sfptostr.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/ntpd/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.9
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.14
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.9
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.9
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/util/ntp-keygen.c: up to 1.11
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.9
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/importdate: up to 1.11
	external/bsd/ntp/include/config.h: up to 1.19
	external/bsd/ntp/lib/libntp/Makefile: up to 1.19
	external/bsd/ntp/lib/libopts/Makefile: up to 1.14
	external/bsd/ntp/scripts/mkver: up to 1.12
Update ntp to 4.2.8p9.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p9.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p9'
PACKAGE_STRING='ntp 4.2.8p9'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p9 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p9:";;
d1927 1
a1927 1
ntp configure 4.2.8p9
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p9, which was
d3758 1
a3758 1
 VERSION='4.2.8p9'
d38006 1
a38006 1
This file was extended by ntp $as_me 4.2.8p9, which was
d38073 1
a38073 1
ntp config.status 4.2.8p9
@


1.1.1.3.4.2.2.5
log
@Pull up following revision(s) (requested by spz in ticket #1405):
	doc/3RDPARTY: 1.1431
	external/bsd/ntp/bin/ntpd/ntp.keys.5: up to 1.2
	external/bsd/ntp/dist/COPYRIGHT: up to 1.1.1.8
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.12
	external/bsd/ntp/dist/CommitLog: up to 1.1.1.12
	external/bsd/ntp/dist/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/NEWS: up to 1.1.1.12
	external/bsd/ntp/dist/aclocal.m4: up to 1.1.1.10
	external/bsd/ntp/dist/adjtimed/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/adjtimed/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/clockstuff/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/clockstuff/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/config.h.in: up to 1.1.1.9
	external/bsd/ntp/dist/configure: up to 1.1.1.12
	external/bsd/ntp/dist/configure.ac: up to 1.1.1.10
	external/bsd/ntp/dist/html/copyright.html: up to 1.1.1.6
	external/bsd/ntp/dist/include/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/include/isc/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/include/libssl_compat.h: up to 1.1.1.2
	external/bsd/ntp/dist/include/ntp_crypto.h: up to 1.5
	external/bsd/ntp/dist/include/ntp_fp.h: up to 1.9
	external/bsd/ntp/dist/include/ntp_md5.h: up to 1.7
	external/bsd/ntp/dist/include/ntp_stdlib.h: up to 1.14
	external/bsd/ntp/dist/include/ntpd.h: up to 1.10
	external/bsd/ntp/dist/include/ssl_applink.c: up to 1.5
	external/bsd/ntp/dist/kernel/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/kernel/sys/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/lib/isc/inet_pton.c: up to 1.8
	external/bsd/ntp/dist/libntp/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/libntp/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/libntp/a_md5encrypt.c: up to 1.8
	external/bsd/ntp/dist/libntp/audio.c: up to 1.12
	external/bsd/ntp/dist/libntp/authkeys.c: up to 1.11
	external/bsd/ntp/dist/libntp/emalloc.c: up to 1.8
	external/bsd/ntp/dist/libntp/libssl_compat.c: up to 1.1.1.2
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to 1.11
	external/bsd/ntp/dist/libntp/recvbuff.c: up to 1.7
	external/bsd/ntp/dist/libntp/ssl_init.c: up to 1.10
	external/bsd/ntp/dist/libntp/statestr.c: up to 1.6
	external/bsd/ntp/dist/libntp/work_fork.c: up to 1.11
	external/bsd/ntp/dist/libparse/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/libparse/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/libparse/clk_trimtsip.c: up to 1.6
	external/bsd/ntp/dist/libparse/gpstolfp.c: up to 1.6
	external/bsd/ntp/dist/ntpd/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.17
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.19
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to 1.25
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.16
	external/bsd/ntp/dist/ntpd/ntp_peer.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.15
	external/bsd/ntp/dist/ntpd/ntp_restrict.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_scanner.c: up to 1.12
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.13
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/refclock_datum.c: up to 1.7
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to 1.11
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to 1.12
	external/bsd/ntp/dist/ntpd/refclock_mx4200.c: up to 1.5
	external/bsd/ntp/dist/ntpd/refclock_nmea.c: up to 1.12
	external/bsd/ntp/dist/ntpd/refclock_oncore.c: up to 1.14
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to 1.20
	external/bsd/ntp/dist/ntpdate/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/ntpdate/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdate/ntpdate.c: up to 1.11
	external/bsd/ntp/dist/ntpdc/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.c: up to 1.15
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc_ops.c: up to 1.9
	external/bsd/ntp/dist/ntpq/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/libntpq.c: up to 1.5
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpq/ntpq-subs.c: up to 1.15
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.c: up to 1.18
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.12
	external/bsd/ntp/dist/parseutil/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/parseutil/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/build/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/lib/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/update-leap/Makefile.in: up to 1.1.1.6
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/COPYRIGHT: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/aclocal.m4: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/config.h.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.12
	external/bsd/ntp/dist/sntp/configure.ac: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/crypto.c: up to 1.13
	external/bsd/ntp/dist/sntp/harden/README: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/default: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd10: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd11: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd12: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/linux: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/netbsd7.0: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/netbsd7.99: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/include/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/include/copyright.def: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/kod_management.c: up to 1.8
	external/bsd/ntp/dist/sntp/libevent/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/libevent/build-aux/compile: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/depcomp: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/install-sh: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/ltmain.sh: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/build-aux/missing: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/ylwrap: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/config.h.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/configure: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/configure.ac: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/libtool.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltoptions.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltsugar.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltversion.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/m4/lt~obsolete.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_ssl.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/m4/libtool.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltoptions.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltsugar.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltversion.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/m4/lt~obsolete.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ntp_compiler.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_harden.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/m4/ntp_openssl.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_prog_cc.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/scm-rev: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/scripts/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/scripts/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/scripts/genHardFlags: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.11
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.10
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.12
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/tests/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/unity/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/unity/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/version.c: up to 1.1.1.9
	external/bsd/ntp/dist/tests/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/tests/bug-2803/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/bug-2803/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/tests/ntpd/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/tests/ntpd/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/tests/ntpq/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpq/Makefile.in: up to 1.1.1.4
	external/bsd/ntp/dist/tests/sandbox/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/sec-2853/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sec-2853/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/util/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/util/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.15
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.10
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.c: up to 1.12
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/importdate: up to 1.12
	external/bsd/ntp/scripts/mkver: up to 1.13
Update ntp to 4.2.8p10.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p10.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p10'
PACKAGE_STRING='ntp 4.2.8p10'
d726 1
a726 1
LT_SYS_LIBRARY_PATH
a834 3
NTP_HARD_LDFLAGS
NTP_HARD_CPPFLAGS
NTP_HARD_CFLAGS
d837 6
a954 1
with_aix_soname
d1075 3
d1080 1
a1080 1
LT_SYS_LIBRARY_PATH'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p10 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p10:";;
d1710 1
a1710 1
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
a1713 3
  --with-aix-soname=aix|svr4|both
                          shared library versioning (aka "SONAME") variant to
                          provide on AIX, [default=aix].
d1715 2
a1716 2
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
                          compiler's sysroot if not specified).
d1850 2
d1858 1
a1858 2
  LT_SYS_LIBRARY_PATH
              User-defined run-time library search path.
d1927 1
a1927 1
ntp configure 4.2.8p10
d2226 38
d2331 83
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p10, which was
d3758 1
a3758 1
 VERSION='4.2.8p10'
a4039 13

case "$build" in
 *-*-freebsd1?.*)
    cclist=cc
    ;;
 *)
    cclist="cc gcc"
    ;;
esac


#AC_USE_SYSTEM_EXTENSIONS

d4046 191
a4236 1
  for ac_prog in $cclist
d4280 1
a4280 1
  for ac_prog in $cclist
d4335 2
a5016 2


d5486 92
a5577 5
   case $ac_cv_prog_cc_stdc in #(
  no) :
    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
a5749 32
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
d5751 5
a5755 8
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
a5756 4
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d5758 18
a5775 16
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d5777 8
a5784 6
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
d5786 2
a5787 2
rm -f conftest.$ac_ext
CC=$ac_save_CC
d5790 5
a5794 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
d5796 2
a5797 1
  ac_cv_prog_cc_stdc=no
d5800 1
d5802 7
a5808 5
 ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  if ${ac_cv_prog_cc_stdc+:} false; then :
d5810 28
d5840 8
a5847 10
  case $ac_cv_prog_cc_stdc in #(
  no) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;; #(
  '') :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
d5849 32
d5882 10
d5894 32
d5927 22
a5949 2
# Ralf Wildenhues: With per-target flags we need CC_C_O
# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
d5951 10
a5960 4
if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
d5963 24
a5986 9
    ac_pattern="Autoconf.*'x'"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5988 2
a5989 1
  ac_cv_prog_gcc_traditional=no
a5990 1
rm -f conftest*
d5993 2
a5994 9
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5996 28
a6023 1
rm -f conftest*
a6024 1
  fi
d6026 8
a6033 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d6037 2
d6040 12
a6051 4
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d6053 1
d6056 4
d6061 9
a6069 8

case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
d6071 14
d6086 3
a6088 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d6097 4
a6100 1
#warning foo
d6106 1
a6106 1
  ntp_cv_cpp_warning=yes
d6108 1
a6108 2
  ntp_cv_cpp_warning=no

d6111 1
d6114 12
a6125 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
d6128 5
a6132 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6137 1
void foo(void) __attribute__((__noreturn__));
d6144 1
a6144 1
  ntp_cv_cc_attribute=yes
d6146 2
a6147 26
  ntp_cv_cc_attribute=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)

$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h

esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6158 6
  ntp_cv_gcc_Wstrict_overflow=yes
else
  ntp_cv_gcc_Wstrict_overflow=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6159 12
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
  $as_echo_n "(cached) " >&6
d6161 3
a6163 2

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6175 5
a6179 4
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

d6182 18
a6199 2


d6201 3
a6203 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
d6206 25
d6232 8
a6239 4
	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6241 4
a6244 2
			#include <stdlib.h>
			#include <stdio.h>
d6246 6
d6255 1
a6255 23

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


d6260 12
a6271 1
if ac_fn_c_try_link "$LINENO"; then :
d6273 15
a6287 6
		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d6289 458
a6746 2
else
  ntp_cv_gc_sections_runs=no
d6926 1
d7324 13
a7336 8

for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
d7339 144
a7482 2
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
d7491 1
a7491 1
    ac_cv_prog_YACC="$ac_prog"
d7501 4
a7504 4
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
d7511 28
a7538 1
  test -n "$YACC" && break
d7540 2
a7541 1
test -n "$YACC" || YACC="yacc"
d7543 6
a7548 4
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if ${ac_cv_prog_cc_c99+:} false; then :
  $as_echo_n "(cached) " >&6
d7550 3
a7552 9
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>
a7553 14
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}
d7555 2
a7556 13
// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;
d7558 12
a7569 5
struct incomplete_array
{
  int datasize;
  double data[];
};
d7571 26
a7596 5
struct named_init {
  int number;
  const wchar_t *name;
  double average;
};
d7598 7
a7604 1
typedef const char *ccp;
d7606 2
a7607 2
static inline int
test_restrict (ccp restrict text)
d7609 5
a7613 5
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
d7616 30
d7647 2
a7648 3
// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
a7649 4
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);
d7651 2
a7652 23
  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
d7654 7
d7666 5
a7670 2
  // Check bool.
  _Bool success = false;
d7672 5
a7676 4
  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";
d7678 3
a7680 26
  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);
d7686 6
a7691 5
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
d7693 2
a7694 6
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

d7696 16
a7711 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :

d7713 1
a7713 8



	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }


	ac_ext=c
d7719 1
d7721 24
a7744 2
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d7746 8
a7753 2
			struct foo_s {int i1; int i2;};
			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
d7755 16
a7770 7
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d7772 52
a7823 1
$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
d7825 4
a7829 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7831 4
a7834 5
	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7836 5
a7840 11




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
$as_echo_n "checking for compile/link hardening flags... " >&6; }


# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
d7842 2
a7843 2
  with_locfile=no

d7847 61
a7907 13
(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genHardFlags -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genHardFlags.i 2> genHardFlags.err
. ./genHardFlags.i
d7909 59
a7967 11
case "$GENHARDFLAG" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
$as_echo "in file $GENHARDFLAGFILE" >&6; }
    rm genHardFlags.err genHardFlags.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
    ;;
d7969 46
d8016 10
d8027 1
d8029 2
d8032 5
d8401 1
a8401 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d8403 1
a8403 1
	IFS=$lt_save_ifs
d8408 1
a8408 1
      IFS=$lt_save_ifs
d8431 2
a8432 2
macro_version='2.4.6'
macro_revision='2.4.6'
d8446 1
a8446 1
ltmain=$ac_aux_dir/ltmain.sh
d8495 1
a8495 1
case $ECHO in
d8688 1
a8688 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d8694 1
a8694 1
if test yes = "$GCC"; then
d8700 1
a8700 1
    # gcc leaves a trailing carriage return, which upsets mingw
d8714 1
a8714 1
      test -z "$LD" && LD=$ac_prog
d8725 1
a8725 1
elif test yes = "$with_gnu_ld"; then
d8736 1
a8736 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8738 1
a8738 1
    IFS=$lt_save_ifs
d8741 1
a8741 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d8747 1
a8747 1
	test no != "$with_gnu_ld" && break
d8750 1
a8750 1
	test yes != "$with_gnu_ld" && break
d8755 1
a8755 1
  IFS=$lt_save_ifs
d8757 1
a8757 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d8761 1
a8761 1
LD=$lt_cv_path_LD
d8804 1
a8804 1
  lt_cv_path_NM=$NM
d8806 1
a8806 1
  lt_nm_to_check=${ac_tool_prefix}nm
d8811 1
a8811 1
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8813 1
a8813 1
      IFS=$lt_save_ifs
d8815 2
a8816 2
      tmp_nm=$ac_dir/$lt_tmp_nm
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
d8818 1
a8818 1
	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
d8821 2
a8822 7
	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
	case $build_os in
	mingw*) lt_bad_file=conftest.nm/nofile ;;
	*) lt_bad_file=/dev/null ;;
	esac
	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
	*$lt_bad_file* | *'Invalid file or object type'*)
d8824 1
a8824 1
	  break 2
d8830 1
a8830 1
	    break 2
d8841 1
a8841 1
    IFS=$lt_save_ifs
d8848 2
a8849 2
if test no != "$lt_cv_path_NM"; then
  NM=$lt_cv_path_NM
d8955 1
a8955 1
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
d8957 1
a8957 1
      DUMPBIN="$DUMPBIN -symbols -headers"
d8965 2
a8966 2
  if test : != "$DUMPBIN"; then
    NM=$DUMPBIN
d9017 1
a9017 1
  teststring=ABCD
d9057 1
a9057 1
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a9075 5
  os2*)
    # The test takes a long time on OS/2.
    lt_cv_sys_max_cmd_len=8192
    ;;

d9102 1
a9102 2
    if test -n "$lt_cv_sys_max_cmd_len" && \
       test undefined != "$lt_cv_sys_max_cmd_len"; then
d9108 1
a9108 1
      for i in 1 2 3 4 5 6 7 8; do
d9115 1
a9115 1
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
d9117 1
a9117 1
	      test 17 != "$i" # 1/2 MB should be enough
d9135 1
a9135 1
if test -n "$lt_cv_sys_max_cmd_len"; then
d9153 24
d9299 1
a9299 1
    if test yes != "$GCC"; then
d9304 2
a9305 2
    if test yes = "$GCC"; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
d9433 1
a9433 1
# 'unknown' -- same as none, but documents that we really don't know.
d9437 3
a9439 3
# that responds to the $file_magic_cmd with a given extended regex.
# If you have 'file' or equivalent on your system and you're not sure
# whether 'pass_all' will *always* work, you probably want this one.
d9466 2
a9467 1
  if ( file / ) >/dev/null 2>&1; then
d9503 4
d9544 2
a9545 2
# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d9567 2
a9568 2
openbsd* | bitrig*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a9620 3
os2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9778 2
a9779 2
  # two different shell functions defined in ltmain.sh;
  # decide which one to use based on capabilities of $DLLTOOL
d9791 1
a9791 1
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
d9945 1
a9945 1
      if test 0 -eq "$ac_status"; then
d9953 1
a9953 1
	if test 0 -ne "$ac_status"; then
d9966 1
a9966 1
if test no = "$lt_cv_ar_at_file"; then
d10183 2
a10184 2
  bitrig* | openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
d10187 1
a10187 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
d10190 1
a10190 1
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d10273 1
a10273 1
  if test ia64 = "$host_cpu"; then
a10305 17
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  # Gets list of data symbols to import.
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  # Adjust the below global symbol transforms to fixup imported variables.
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
  lt_c_name_lib_hook="\
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
else
  # Disable hooks by default.
  lt_cv_sys_global_symbol_to_import=
  lt_cdecl_hook=
  lt_c_name_hook=
  lt_c_name_lib_hook=
fi

d10309 1
a10309 4
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
$lt_cdecl_hook\
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
d10312 2
a10313 12
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
$lt_c_name_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"

# Transform an extracted symbol line into symbol name with lib prefix and
# symbol address.
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
$lt_c_name_lib_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
d10331 2
a10332 2
    # Fake it for dumpbin and say T for any non-static function,
    # D for any global variable and I for any imported variable.
a10336 1
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
a10337 3
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
d10341 4
a10344 4
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
"     s[1]~/^[@@?]/{print f,s[1],s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print f,t[1],substr(t[1],length(prfx))}"\
d10392 2
a10393 2
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
/* DATA imports from DLLs on WIN32 can't be const, because runtime
d10396 1
a10396 1
#elif defined __osf__
d10422 1
a10422 1
	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
d10442 1
a10442 1
	  LIBS=conftstm.$ac_objext
d10448 1
a10448 1
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
d10469 1
a10469 1
  if test yes = "$pipe_works"; then
a10521 10










d10534 1
a10534 1
case $with_sysroot in #(
d10536 1
a10536 1
   if test yes = "$GCC"; then
d10546 2
a10547 2
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
$as_echo "$with_sysroot" >&6; }
a10558 80
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
$as_echo_n "checking for a working dd... " >&6; }
if ${ac_cv_path_lt_DD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
: ${lt_DD:=$DD}
if test -z "$lt_DD"; then
  ac_path_lt_DD_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in dd; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_lt_DD" || continue
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
fi
      $ac_path_lt_DD_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_lt_DD"; then
    :
  fi
else
  ac_cv_path_lt_DD=$lt_DD
fi

rm -f conftest.i conftest2.i conftest.out
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
$as_echo "$ac_cv_path_lt_DD" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
$as_echo_n "checking how to truncate binary pipes... " >&6; }
if ${lt_cv_truncate_bin+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
lt_cv_truncate_bin=
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
fi
rm -f conftest.i conftest2.i conftest.out
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
$as_echo "$lt_cv_truncate_bin" >&6; }







# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}

d10564 1
a10564 1
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
d10570 1
a10570 2
  # Find out what ABI is being produced by ac_compile, and set mode
  # options accordingly.
d10579 1
a10579 1
	HPUX_IA64_MODE=32
d10582 1
a10582 1
	HPUX_IA64_MODE=64
d10589 1
a10589 2
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10596 1
a10596 1
    if test yes = "$lt_cv_prog_gnu_ld"; then
d10625 1
a10625 37
mips64*-*linux*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    emul=elf
    case `/usr/bin/file conftest.$ac_objext` in
      *32-bit*)
	emul="${emul}32"
	;;
      *64-bit*)
	emul="${emul}64"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *MSB*)
	emul="${emul}btsmip"
	;;
      *LSB*)
	emul="${emul}ltsmip"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *N32*)
	emul="${emul}n32"
	;;
    esac
    LD="${LD-ld} -m $emul"
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
d10627 1
a10627 6
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.  Note that the listed cases only cover the
  # situations where additional linker options are needed (such as when
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  # vice versa); the common cases where no linker options are needed do
  # not appear in the list.
d10641 1
a10641 11
	    case `/usr/bin/file conftest.o` in
	      *x86-64*)
		LD="${LD-ld} -m elf32_x86_64"
		;;
	      *)
		LD="${LD-ld} -m elf_i386"
		;;
	    esac
	    ;;
	  powerpc64le-*linux*)
	    LD="${LD-ld} -m elf32lppclinux"
d10643 1
a10643 1
	  powerpc64-*linux*)
d10662 1
a10662 4
	  powerpcle-*linux*)
	    LD="${LD-ld} -m elf64lppc"
	    ;;
	  powerpc-*linux*)
d10680 1
a10680 1
  SAVE_CFLAGS=$CFLAGS
d10720 1
a10720 1
  if test yes != "$lt_cv_cc_needs_belf"; then
d10722 1
a10722 1
    CFLAGS=$SAVE_CFLAGS
d10725 2
a10726 3
*-*solaris*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10736 1
a10736 14
      yes*)
        case $host in
        i?86-*-solaris*|x86_64-*-solaris*)
          LD="${LD-ld} -m elf_x86_64"
          ;;
        sparc*-*-solaris*)
          LD="${LD-ld} -m elf64_sparc"
          ;;
        esac
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
          LD=${LD-ld}_sol2
        fi
        ;;
d10750 1
a10750 1
need_locks=$enable_libtool_lock
d10861 1
a10861 1
if test yes != "$lt_cv_path_mainfest_tool"; then
d11364 1
a11364 1
      if test -z "$LT_MULTI_MODULE"; then
d11376 1
a11376 7
	# If there is a non-empty error log, and "single_module"
	# appears in it, assume the flag caused a linker warning
        if test -s conftest.err && $GREP single_module conftest.err; then
	  cat conftest.err >&5
	# Otherwise, if the output was created with a 0 exit code from
	# the compiler, it worked.
	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a11386 1

d11414 1
a11414 1
	LDFLAGS=$save_LDFLAGS
a11418 1

d11440 1
a11440 3
      if test -s conftest.err && $GREP force_load conftest.err; then
	cat conftest.err >&5
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
d11453 1
a11453 1
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
d11455 1
a11455 1
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11462 3
a11464 3
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
	10.[012][,.]*)
	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11466 1
a11466 1
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
d11470 1
a11470 1
    if test yes = "$lt_cv_apple_cc_single_mod"; then
d11473 2
a11474 2
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
d11476 1
a11476 1
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
d11478 1
a11478 1
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a11485 35
# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}

d11502 11
d11534 1
a11534 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11536 1
a11536 1
	IFS=$lt_save_ifs
d11541 1
a11541 1
      IFS=$lt_save_ifs
d11559 1
a11559 16
  withval=$with_pic; lt_p=${PACKAGE-default}
    case $withval in
    yes|no) pic_mode=$withval ;;
    *)
      pic_mode=default
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
      for lt_pkg in $withval; do
	IFS=$lt_save_ifs
	if test "X$lt_pkg" = "X$lt_p"; then
	  pic_mode=yes
	fi
      done
      IFS=$lt_save_ifs
      ;;
    esac
d11565 2
d11582 1
a11582 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11584 1
a11584 1
	IFS=$lt_save_ifs
d11589 1
a11589 1
      IFS=$lt_save_ifs
a11602 52
  shared_archive_member_spec=
case $host,$enable_shared in
power*-*-aix[5-9]*,yes)
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }

# Check whether --with-aix-soname was given.
if test "${with_aix_soname+set}" = set; then :
  withval=$with_aix_soname; case $withval in
    aix|svr4|both)
      ;;
    *)
      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
      ;;
    esac
    lt_cv_with_aix_soname=$with_aix_soname
else
  if ${lt_cv_with_aix_soname+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_with_aix_soname=aix
fi

    with_aix_soname=$lt_cv_with_aix_soname
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
$as_echo "$with_aix_soname" >&6; }
  if test aix != "$with_aix_soname"; then
    # For the AIX way of multilib, we name the shared archive member
    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
    # the AIX toolchain works better with OBJECT_MODE set (default 32).
    if test 64 = "${OBJECT_MODE-32}"; then
      shared_archive_member_spec=shr_64
    else
      shared_archive_member_spec=shr
    fi
  fi
  ;;
*)
  with_aix_soname=aix
  ;;
esac







d11607 1
a11607 1
LIBTOOL_DEPS=$ltmain
a11636 4




d11652 1
a11652 1
if test -n "${ZSH_VERSION+set}"; then
d11691 1
a11691 1
  if test set != "${COLLECT_NAMES+set}"; then
d11702 1
a11702 1
# All known linkers require a '.a' archive for static linking (except MSVC,
d11706 1
a11706 1
with_gnu_ld=$lt_cv_prog_gnu_ld
d11708 2
a11709 2
old_CC=$CC
old_CFLAGS=$CFLAGS
d11718 9
a11726 2
func_cc_basename $compiler
cc_basename=$func_cc_basename_result
d11741 1
a11741 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11744 2
a11745 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11748 1
a11748 1
    IFS=$lt_save_ifs
d11750 2
a11751 2
    if test -f "$ac_dir/${ac_tool_prefix}file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
d11756 1
a11756 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11779 2
a11780 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11785 1
a11785 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11807 1
a11807 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11810 2
a11811 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11814 1
a11814 1
    IFS=$lt_save_ifs
d11816 2
a11817 2
    if test -f "$ac_dir/file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
d11822 1
a11822 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11845 2
a11846 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11851 1
a11851 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11872 1
a11872 1
lt_save_CC=$CC
d11934 1
a11934 1
if test yes = "$GCC"; then
d11950 1
a11950 1
   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
d11980 1
a11980 1
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
d11998 1
a11998 1
  if test yes = "$GCC"; then
d12005 1
a12005 1
      if test ia64 = "$host_cpu"; then
a12008 1
      lt_prog_compiler_pic='-fPIC'
d12019 2
a12020 2
            # adding the '-m68020' flag to GCC prevents building anything better,
            # like '-m68040'.
a12035 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12096 1
a12096 3
      if test -n "$lt_prog_compiler_pic"; then
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
      fi
d12104 1
a12104 1
      if test ia64 = "$host_cpu"; then
a12111 14
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      case $cc_basename in
      nagfor*)
        # NAG Fortran compiler
        lt_prog_compiler_wl='-Wl,-Wl,,'
        lt_prog_compiler_pic='-PIC'
        lt_prog_compiler_static='-Bstatic'
        ;;
      esac
      ;;

a12115 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12131 1
a12131 1
      lt_prog_compiler_static='$wl-a ${wl}archive'
d12140 1
a12140 1
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d12142 1
a12142 1
      # old Intel for x86_64, which still supported -KPIC.
a12166 6
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
	;;
d12187 1
a12187 1
	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
a12192 5
	*Sun\ F* | *Sun*Fortran*)
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Qoption ld '
	  ;;
a12198 10
        *Intel*\ [CF]*Compiler*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fPIC'
	  lt_prog_compiler_static='-static'
	  ;;
	*Portland\ Group*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fpic'
	  lt_prog_compiler_static='-Bstatic'
	  ;;
d12249 1
a12249 1
      if test -d /usr/nec; then
d12278 1
a12278 1
  # For platforms that do not support PIC, -DPIC is meaningless:
d12310 1
a12310 1
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
d12340 1
a12340 1
if test yes = "$lt_cv_prog_compiler_pic_works"; then
d12372 1
a12372 1
   save_LDFLAGS=$LDFLAGS
d12391 1
a12391 1
   LDFLAGS=$save_LDFLAGS
d12397 1
a12397 1
if test yes = "$lt_cv_prog_compiler_static_works"; then
d12517 2
a12518 2
hard_links=nottested
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
d12530 3
a12532 3
  if test no = "$hard_links"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
d12560 1
d12576 3
a12578 3
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  # as well as any symbol that contains 'd'.
d12593 1
a12593 1
    if test yes != "$GCC"; then
d12601 1
a12601 1
  openbsd* | bitrig*)
d12611 1
a12611 1
  if test yes = "$with_gnu_ld"; then
d12633 1
a12633 1
  if test yes = "$lt_use_gnu_ld_interface"; then
d12635 1
a12635 1
    wlarc='$wl'
d12641 2
a12642 2
    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
    export_dynamic_flag_spec='$wl--export-dynamic'
d12645 1
a12645 1
      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
d12650 1
a12650 1
    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
d12663 1
a12663 1
      if test ia64 != "$host_cpu"; then
d12682 1
a12682 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12698 1
a12698 1
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12708 1
a12708 1
      export_dynamic_flag_spec='$wl--export-all-symbols'
d12716 10
a12725 10
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file, use it as
	# is; otherwise, prepend EXPORTS...
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
          cp $export_symbols $output_objdir/$soname.def;
        else
          echo EXPORTS > $output_objdir/$soname.def;
          cat $export_symbols >> $output_objdir/$soname.def;
        fi~
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d12732 1
a12732 1
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a12735 28
    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
      ;;

d12739 2
a12740 2
      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
      export_dynamic_flag_spec='$wl-E'
d12747 2
a12748 2
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d12753 1
a12753 1
      if test linux-dietlibc = "$host_os"; then
d12759 1
a12759 1
	 && test no = "$tmp_diet"
d12765 1
a12765 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12770 1
a12770 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
a12780 2
        nagfor*)                        # NAGFOR 5.3
          tmp_sharedflag='-Wl,-shared' ;;
d12785 1
a12785 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12791 1
a12791 1
	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12797 1
a12797 1
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12799 1
a12799 1
        if test yes = "$supports_anon_versioning"; then
d12801 3
a12803 3
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
            echo "local: *; };" >> $output_objdir/$libname.ver~
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a12806 3
	tcc*)
	  export_dynamic_flag_spec='-rdynamic'
	  ;;
d12810 2
a12811 1
	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d12813 1
a12813 1
	  if test yes = "$supports_anon_versioning"; then
d12815 3
a12817 3
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
              echo "local: *; };" >> $output_objdir/$libname.ver~
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
d12831 2
a12832 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12850 2
a12851 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12863 1
a12863 1
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
d12878 3
a12880 3
	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12897 2
a12898 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12905 1
a12905 1
    if test no = "$ld_shlibs"; then
d12921 1
a12921 1
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
d12929 1
a12929 1
      if test ia64 = "$host_cpu"; then
d12934 1
a12934 1
	no_entry_flag=
d12937 3
a12939 7
	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
	# Without the "-l" option, or with the "-B" option, AIX nm treats
	# weak defined symbols like other global defined symbols, whereas
	# GNU nm marks them as "W".
	# While the 'weak' keyword is ignored in the Export File, we need
	# it in the Import File for the 'aix-soname' feature, so we have
	# to replace the "-B" option with "-P" for AIX nm.
d12941 1
a12941 1
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
d12943 1
a12943 1
	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
d12949 1
a12949 13
	# have runtime linking enabled, and use it for executables.
	# For shared libraries, we enable/disable runtime linking
	# depending on the kind of the shared library created -
	# when "with_aix_soname,aix_use_runtimelinking" is:
	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
	# "aix,yes"  lib.so          shared, rtl:yes, for executables
	#            lib.a           static archive
	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
	#            lib.a(lib.so.V) shared, rtl:no,  for executables
	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a(lib.so.V) shared, rtl:no
	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a           static archive
d12952 1
a12952 1
	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a12956 7
	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
	    # so we don't have lib.a shared libs to link our executables.
	    # We have to force runtime linking in this case.
	    aix_use_runtimelinking=yes
	    LDFLAGS="$LDFLAGS -Wl,-brtl"
	  fi
d12975 1
a12975 9
      file_list_spec='$wl-f,'
      case $with_aix_soname,$aix_use_runtimelinking in
      aix,*) ;; # traditional, no import file
      svr4,* | *,yes) # use import file
	# The Import File defines what to hardcode.
	hardcode_direct=no
	hardcode_direct_absolute=no
	;;
      esac
d12977 1
a12977 1
      if test yes = "$GCC"; then
d12981 1
a12981 1
	  collect2name=`$CC -print-prog-name=collect2`
d13000 2
a13001 2
	if test yes = "$aix_use_runtimelinking"; then
	  shared_flag="$shared_flag "'$wl-G'
a13002 5
	# Need to ensure runtime linking is disabled for the traditional
	# shared library, or the linker may eventually find shared libraries
	# /with/ Import File - we do not want to mix them.
	shared_flag_aix='-shared'
	shared_flag_svr4='-shared $wl-G'
d13005 1
a13005 1
	if test ia64 = "$host_cpu"; then
d13010 2
a13011 2
	  if test yes = "$aix_use_runtimelinking"; then
	    shared_flag='$wl-G'
d13013 1
a13013 1
	    shared_flag='$wl-bM:SRE'
a13014 2
	  shared_flag_aix='$wl-bM:SRE'
	  shared_flag_svr4='$wl-G'
d13018 1
a13018 1
      export_dynamic_flag_spec='$wl-bexpall'
d13022 1
a13022 1
      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
d13028 1
a13028 1
        if test set = "${lt_cv_aix_libpath+set}"; then
d13063 1
a13063 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13071 2
a13072 2
        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
d13074 2
a13075 2
	if test ia64 = "$host_cpu"; then
	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
d13077 1
a13077 1
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
d13081 1
a13081 1
	 if test set = "${lt_cv_aix_libpath+set}"; then
d13116 1
a13116 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13124 1
a13124 1
	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
d13127 3
a13129 3
	  no_undefined_flag=' $wl-bernotok'
	  allow_undefined_flag=' $wl-berok'
	  if test yes = "$with_gnu_ld"; then
d13131 1
a13131 1
	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
d13137 2
a13138 14
	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
	  # -brtl affects multiple linker settings, -berok does not and is overridden later
	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
	  if test svr4 != "$with_aix_soname"; then
	    # This is similar to how AIX traditionally builds its shared libraries.
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
	  fi
	  if test aix != "$with_aix_soname"; then
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
	  else
	    # used by -dlpreopen to get the symbols
	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
	  fi
	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
d13147 1
a13147 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d13177 1
a13177 1
	shrext_cmds=.dll
d13179 8
a13186 9
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
            cp "$export_symbols" "$output_objdir/$soname.def";
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
          else
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
          fi~
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
          linknames='
a13189 1
	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
d13194 12
a13205 12
          lt_tool_outputfile="@@TOOL_OUTPUT@@"~
          case $lt_outputfile in
            *.exe|*.EXE) ;;
            *)
              lt_outputfile=$lt_outputfile.exe
              lt_tool_outputfile=$lt_tool_outputfile.exe
              ;;
          esac~
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
            $RM "$lt_outputfile.manifest";
          fi'
d13214 1
a13214 1
	shrext_cmds=.dll
d13233 2
a13234 3
  if test yes = "$lt_cv_ld_force_load"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'

d13239 1
a13239 1
  allow_undefined_flag=$_lt_dar_allow_undefined
d13241 1
a13241 1
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
d13244 1
a13244 1
  if test yes = "$_lt_dar_can_shared"; then
d13246 4
a13249 4
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
d13263 4
d13279 1
a13279 1
    freebsd2.*)
d13295 2
a13296 2
      if test yes = "$GCC"; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13298 1
a13298 1
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13300 1
a13300 1
      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13307 1
a13307 1
      export_dynamic_flag_spec='$wl-E'
d13311 2
a13312 2
      if test yes,no = "$GCC,$with_gnu_ld"; then
	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13316 3
a13318 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13322 1
a13322 1
	export_dynamic_flag_spec='$wl-E'
d13330 1
a13330 1
      if test yes,no = "$GCC,$with_gnu_ld"; then
d13333 1
a13333 1
	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13336 1
a13336 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13339 1
a13339 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13345 1
a13345 1
	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13348 1
a13348 1
	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13360 1
a13360 1
   save_LDFLAGS=$LDFLAGS
d13379 1
a13379 1
   LDFLAGS=$save_LDFLAGS
d13385 2
a13386 2
if test yes = "$lt_cv_prog_compiler__b"; then
    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13394 2
a13395 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13406 1
a13406 1
	  export_dynamic_flag_spec='$wl-E'
d13417 2
a13418 2
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13428 2
a13429 2
  save_LDFLAGS=$LDFLAGS
	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
d13441 1
a13441 1
           LDFLAGS=$save_LDFLAGS
d13445 2
a13446 2
	if test yes = "$lt_cv_irix_exported_symbol"; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
d13449 2
a13450 2
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
d13453 1
a13453 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a13458 10
    linux*)
      case $cc_basename in
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	ld_shlibs=yes
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	;;
      esac
      ;;

d13473 1
a13473 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13481 1
a13481 1
    openbsd* | bitrig*)
d13486 1
a13486 1
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
d13488 3
a13490 3
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
	  export_dynamic_flag_spec='$wl-E'
d13492 10
a13501 2
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
d13512 2
a13513 22
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
d13517 3
a13519 3
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13522 1
a13522 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13525 1
a13525 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13530 4
a13533 4
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13536 1
a13536 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13538 1
a13538 1
          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
d13549 3
a13551 3
      if test yes = "$GCC"; then
	wlarc='$wl'
	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13553 1
a13553 1
          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13558 1
a13558 1
	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
d13560 1
a13560 1
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
d13563 2
a13564 2
	  wlarc='$wl'
	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13566 1
a13566 1
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13576 1
a13576 1
	# but understands '-z linker_flag'.  GCC discards it without '$wl',
d13579 2
a13580 2
	if test yes = "$GCC"; then
	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
d13590 1
a13590 1
      if test sequent = "$host_vendor"; then
d13593 1
a13593 1
	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13642 1
a13642 1
      no_undefined_flag='$wl-z,text'
d13647 3
a13649 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13651 2
a13652 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13657 1
a13657 1
      # Note: We CANNOT use -z defs as we might desire, because we do not
d13663 2
a13664 2
      no_undefined_flag='$wl-z,text'
      allow_undefined_flag='$wl-z,nodefs'
d13667 1
a13667 1
      hardcode_libdir_flag_spec='$wl-R,$libdir'
d13670 1
a13670 1
      export_dynamic_flag_spec='$wl-Bexport'
d13673 3
a13675 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13677 2
a13678 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13693 1
a13693 1
    if test sni = "$host_vendor"; then
d13696 1
a13696 1
	export_dynamic_flag_spec='$wl-Blargedynsym'
d13704 1
a13704 1
test no = "$ld_shlibs" && can_build_shared=no
d13730 1
a13730 1
  if test yes,yes = "$GCC,$enable_shared"; then
d13942 5
d13950 1
a13950 1
if test yes = "$GCC"; then
d13952 2
a13953 2
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
    *) lt_awk_arg='/^libraries:/' ;;
d13956 2
a13957 2
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
    *) lt_sed_strip_eq='s|=/|/|g' ;;
d13973 1
a13973 1
  # and add multilib dir if necessary...
d13975 1
a13975 8
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  # ...but if some path component already ends with the multilib dir we assume
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  case "$lt_multi_os_dir; $lt_search_path_spec " in
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
    lt_multi_os_dir=
    ;;
  esac
d13977 3
a13979 3
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
    elif test -n "$lt_multi_os_dir"; then
d13985 3
a13987 3
BEGIN {RS = " "; FS = "/|\n";} {
  lt_foo = "";
  lt_count = 0;
d13994 1
a13994 1
          lt_foo = "/" $lt_i lt_foo;
d14008 1
a14008 1
      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
d14017 1
a14017 1
shrext_cmds=.so
a14033 2


d14036 2
a14037 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
d14041 1
a14041 1
  soname_spec='$libname$release$shared_ext$major'
d14045 1
a14045 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14049 1
a14049 1
  if test ia64 = "$host_cpu"; then
d14051 1
a14051 1
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
d14056 2
a14057 2
    # the line '#! .'.  This would cause the generated library to
    # depend on '.', always an invalid library.  This was fixed in
d14063 1
a14063 1
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
d14070 1
a14070 24
    # Using Import Files as archive members, it is possible to support
    # filename-based versioning of shared library archives on AIX. While
    # this would work for both with and without runtime linking, it will
    # prevent static linking of such archives. So we do filename-based
    # shared library versioning with .so extension only, which is used
    # when both runtime linking and shared linking is enabled.
    # Unfortunately, runtime linking may impact performance, so we do
    # not want this to be the default eventually. Also, we use the
    # versioned .so libs for executables only if there is the -brtl
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
    # To allow for filename-based versioning support, we need to create
    # libNAME.so.V as an archive file, containing:
    # *) an Import File, referring to the versioned filename of the
    #    archive as well as the shared archive member, telling the
    #    bitwidth (32 or 64) of that shared object, and providing the
    #    list of exported symbols of that shared object, eventually
    #    decorated with the 'weak' keyword
    # *) the shared object with the F_LOADONLY flag set, to really avoid
    #    it being seen by the linker.
    # At run time we better use the real file rather than another symlink,
    # but for link time we create the symlink libNAME.so -> libNAME.so.V

    case $with_aix_soname,$aix_use_runtimelinking in
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
d14073 1
a14073 2
    aix,yes) # traditional libtool
      dynamic_linker='AIX unversionable lib.so'
d14077 2
a14078 4
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      ;;
    aix,no) # traditional AIX only
      dynamic_linker='AIX lib.a(lib.so.V)'
d14081 3
a14083 27
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      ;;
    svr4,*) # full svr4 only
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,yes) # both, prefer svr4
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # unpreferred sharedlib libNAME.a needs extra handling
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,no) # both, prefer aix
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
      ;;
    esac
d14093 1
a14093 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14098 1
a14098 1
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d14104 1
a14104 1
  library_names_spec='$libname$shared_ext'
d14110 1
a14110 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14112 2
a14113 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14125 1
a14125 1
  shrext_cmds=.dll
d14134 2
a14135 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14151 1
a14151 1
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14157 1
a14157 1
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14161 1
a14161 1
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14170 2
a14171 2
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
    library_names_spec='$libname.dll.lib'
d14198 1
a14198 1
      sys_lib_search_path_spec=$LIB
d14211 2
a14212 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14225 1
a14225 1
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
d14238 2
a14239 2
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$major$shared_ext'
d14249 1
a14249 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14252 2
a14253 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14257 4
d14268 1
a14268 1
    freebsd[23].*) objformat=aout ;;
d14275 1
a14275 2
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      soname_spec='$libname$release$shared_ext$major'
d14280 1
a14280 1
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14286 1
a14286 1
  freebsd2.*)
d14305 10
d14316 1
a14316 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14320 2
a14321 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14323 1
a14323 1
  shlibpath_overrides_runpath=no
d14341 3
a14343 3
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
    if test 32 = "$HPUX_IA64_MODE"; then
a14344 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a14346 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
d14348 1
d14356 2
a14357 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14366 2
a14367 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14377 1
a14377 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14380 2
a14381 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14392 2
a14393 2
	if test yes = "$lt_cv_prog_gnu_ld"; then
		version_type=linux # correct to gnu/linux during the next big refactor
d14400 2
a14401 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
d14420 2
a14421 2
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
d14430 3
a14432 23
linux*android*)
  version_type=none # Android doesn't support versioned libraries.
  need_lib_prefix=no
  need_version=no
  library_names_spec='$libname$release$shared_ext'
  soname_spec='$libname$release$shared_ext'
  finish_cmds=
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  dynamic_linker='Android linker'
  # Don't embed -rpath directories since the linker doesn't support them.
  hardcode_libdir_flag_spec='-L$libdir'
  ;;

# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  version_type=linux # correct to gnu/linux during the next big refactor
d14435 2
a14436 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14480 1
a14480 6
  # Ideally, we could use ldconfig to report *all* directores which are
  # searched for libraries, however this is still not possible.  Aside from not
  # being certain /sbin/ldconfig is available, command
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  # even though it is searched at run-time.  Try to do the best guess by
  # appending ld.so.conf contents (and includes) to the search path.
d14500 1
a14500 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14504 2
a14505 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14514 2
a14515 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14524 2
a14525 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14532 1
a14532 1
openbsd* | bitrig*)
d14534 1
a14534 1
  sys_lib_dlsearch_path_spec=/usr/lib
d14536 17
a14552 2
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
    need_version=no
d14554 1
a14554 1
    need_version=yes
a14555 4
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
d14560 1
a14560 3
  version_type=windows
  shrext_cmds=.dll
  need_version=no
d14562 1
a14562 6
  # OS/2 can only load a DLL with a base name of 8 characters or less.
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
    v=$($ECHO $release$versuffix | tr -d .-);
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
    $ECHO $n$v`$shared_ext'
  library_names_spec='${libname}_dll.$libext'
d14564 1
a14564 15
  shlibpath_var=BEGINLIBPATH
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  postinstall_cmds='base_file=`basename \$file`~
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
    dldir=$destdir/`dirname \$dlpath`~
    test -d \$dldir || mkdir -p \$dldir~
    $install_prog $dir/$dlname \$dldir/$dlname~
    chmod a+x \$dldir/$dlname~
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
    fi'
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
    dlpath=$dir/\$dldll~
    $RM \$dlpath'
d14571 2
a14572 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14575 1
a14575 1
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d14583 1
a14583 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14586 2
a14587 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14597 1
a14597 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14601 1
a14601 1
  if test yes = "$with_gnu_ld"; then
d14608 3
a14610 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14631 4
a14634 4
  if test -d /usr/nec; then
    version_type=linux # correct to gnu/linux during the next big refactor
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
    soname_spec='$libname$shared_ext.$major'
d14640 1
a14640 1
  version_type=sco
d14643 2
a14644 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14648 1
a14648 1
  if test yes = "$with_gnu_ld"; then
d14663 1
a14663 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14666 1
a14666 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14673 3
a14675 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14685 1
a14685 1
test no = "$dynamic_linker" && can_build_shared=no
d14688 1
a14688 1
if test yes = "$GCC"; then
d14692 2
a14693 2
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
d14695 2
a14696 3

if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a14698 14
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec

# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"

# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH






d14795 1
a14795 1
   test yes = "$hardcode_automatic"; then
d14798 1
a14798 1
  if test no != "$hardcode_direct" &&
d14802 2
a14803 2
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
     test no != "$hardcode_minus_L"; then
d14818 2
a14819 2
if test relink = "$hardcode_action" ||
   test yes = "$inherit_rpath"; then
d14822 2
a14823 2
elif test yes = "$shlibpath_overrides_runpath" ||
     test no = "$enable_shared"; then
d14833 1
a14833 1
  if test yes != "$enable_dlopen"; then
d14843 1
a14843 1
    lt_cv_dlopen=load_add_on
d14849 1
a14849 1
    lt_cv_dlopen=LoadLibrary
d14854 1
a14854 1
    lt_cv_dlopen=dlopen
d14859 1
a14859 1
    # if libdl is installed we need to link against it
d14897 1
a14897 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d14900 1
a14900 1
    lt_cv_dlopen=dyld
a14907 8
  tpf*)
    # Don't try to run any link tests for TPF.  We know it's impossible
    # because TPF is a cross-compiler, and we know how we open DSOs.
    lt_cv_dlopen=dlopen
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=no
    ;;

d14911 1
a14911 1
  lt_cv_dlopen=shl_load
d14950 1
a14950 1
  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
d14954 1
a14954 1
  lt_cv_dlopen=dlopen
d14993 1
a14993 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d15032 1
a15032 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
d15071 1
a15071 1
  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
d15092 3
a15094 1
  if test no = "$lt_cv_dlopen"; then
a15095 2
  else
    enable_dlopen=yes
d15100 2
a15101 2
    save_CPPFLAGS=$CPPFLAGS
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d15103 1
a15103 1
    save_LDFLAGS=$LDFLAGS
d15106 1
a15106 1
    save_LIBS=$LIBS
d15109 3301
a18409 13
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"
d18411 3
a18413 3
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d18415 12
a18426 1
#include <stdio.h>
d18428 11
a18438 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
d18440 22
a18461 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
d18463 8
a18470 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
d18472 11
a18482 16
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
d18484 5
a18488 16
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
a18489 3
  else :
    # compilation failed
    lt_cv_dlopen_self=no
d18491 20
a18510 2
fi
rm -fr conftest*
d18512 7
d18520 3
a18523 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }
d18525 6
a18530 19
    if test yes = "$lt_cv_dlopen_self"; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
a18531 1
#include <stdio.h>
a18532 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
a18533 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
a18534 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
a18535 5
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
a18536 12
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());
a18537 21
  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*
a18539 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi
a18540 5
    CPPFLAGS=$save_CPPFLAGS
    LDFLAGS=$save_LDFLAGS
    LIBS=$save_LIBS
    ;;
  esac
a18541 4
  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac
a18542 5
  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi
a18559 29
striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP"; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi
d18569 6
d18576 20
d18597 9
a18606 5
  # Report what library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }
a18607 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test no = "$can_build_shared" && enable_shared=no
a18608 10
  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test yes = "$enable_shared" && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;
a18609 12
  aix[4-9]*)
    if test ia64 != "$host_cpu"; then
      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
      yes,aix,yes) ;;			# shared object as lib.so file only
      yes,svr4,*) ;;			# shared object as lib.so archive member only
      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
      esac
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }
a18610 6
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test yes = "$enable_shared" || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }
d18613 1
d18615 11
a18626 1
fi
a18632 4
CC=$lt_save_CC



d20866 1
a20866 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d20872 1
a20872 1
if test yes = "$GCC"; then
d20878 1
a20878 1
    # gcc leaves a trailing carriage return, which upsets mingw
d20892 1
a20892 1
      test -z "$LD" && LD=$ac_prog
d20903 1
a20903 1
elif test yes = "$with_gnu_ld"; then
d20914 1
a20914 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d20916 1
a20916 1
    IFS=$lt_save_ifs
d20919 1
a20919 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d20925 1
a20925 1
	test no != "$with_gnu_ld" && break
d20928 1
a20928 1
	test yes != "$with_gnu_ld" && break
d20933 1
a20933 1
  IFS=$lt_save_ifs
d20935 1
a20935 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d20939 1
a20939 1
LD=$lt_cv_path_LD
d28062 4
a28088 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }
d29229 2
a29279 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
a34166 1

a34168 1

a34173 2


d34184 1
a34184 1
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
a34558 1

d37532 4
d37537 4
d38006 1
a38006 1
This file was extended by ntp $as_me 4.2.8p10, which was
d38073 1
a38073 1
ntp config.status 4.2.8p10
a38207 1
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
a38209 1
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
a38255 1
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
a38257 1
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
a38259 1
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
d38292 1
d38325 1
a38325 2
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
d38332 55
a38402 1
PATH_SEPARATOR \
a38429 1
lt_cv_sys_global_symbol_to_import \
a38431 1
lt_cv_nm_interface \
a38432 1
lt_cv_truncate_bin \
d38453 1
d38465 33
a38497 1
striplib; do
d38500 1
a38500 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38527 12
a38538 2
configure_time_dlsearch_path \
configure_time_lt_sys_library_path; do
d38541 1
a38541 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38550 2
d38553 1
a38553 1
# See if we are running on zsh, and set the options that allow our
d38555 1
a38555 1
if test -n "\${ZSH_VERSION+set}"; then
d38562 1
d38569 2
d39354 1
a39354 1
    # See if we are running on zsh, and set the options that allow our
d39356 1
a39356 1
    if test -n "${ZSH_VERSION+set}"; then
d39360 1
a39360 1
    cfgfile=${ofile}T
d39366 3
a39368 1
# Generated automatically by $as_me ($PACKAGE) $VERSION
a39370 12

# Provide generalized library-building support services.
# Written by Gordon Matzigkeit, 1996

# Copyright (C) 2014 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions.  There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# GNU Libtool is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of of the License, or
# (at your option) any later version.
d39372 16
a39387 4
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program or library that is built
# using GNU Libtool, you may include this file under the  same
# distribution terms that you use for the rest of that program.
d39389 2
a39390 2
# GNU Libtool is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
d39395 4
a39398 1
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
d39402 1
a39402 4
available_tags=''

# Configured defaults for sys_lib_dlsearch_path munging.
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
a39421 3
# Shared archive member basename,for filename based shared library versioning on AIX.
shared_archive_member_spec=$shared_archive_member_spec

a39427 3
# The PATH separator for the build system.
PATH_SEPARATOR=$lt_PATH_SEPARATOR

a39535 3
# Transform the output of nm into a list of symbols to manually relocate.
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import

a39541 3
# The name lister interface.
nm_interface=$lt_lt_cv_nm_interface

d39545 1
a39545 1
# The root where to search for dependent libraries,and where our libraries should be installed.
a39547 3
# Command to truncate a binary pipe.
lt_truncate_bin=$lt_lt_cv_truncate_bin

d39638 2
a39639 5
# Detected run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path

# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
d39729 4
d39736 1
a39736 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39740 1
a39740 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39742 1
a39742 1
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
d39790 2
a39791 1
# ### END LIBTOOL CONFIG
d39793 10
a39802 40
_LT_EOF

    cat <<'_LT_EOF' >> "$cfgfile"

# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE

# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}
d39804 1
a39804 17

# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}


# ### END FUNCTIONS SHARED WITH CONFIGURE
d39814 1
a39814 1
if test set != "${COLLECT_NAMES+set}"; then
d39823 1
a39823 1
ltmain=$ac_aux_dir/ltmain.sh
d39833 159
d39996 157
@


1.1.1.3.4.3
log
@Pull up following revisions (requested by christos in ticket #1024):

doc/3RDPARTY					patch
external/bsd/ntp/dist/tests/libntp/atoint.c     up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/atouint.c    up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/authkeys.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/buftvtots.c  up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/calendar.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/caljulian.c  up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/caltontp.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/calyearstart.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/clocktime.c  up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/decodenetnum.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/lfptest.c    up to 1.1.1.1
external/bsd/ntp/dist/tests/libntp/sockaddrtest.c up to 1.1.1.1
external/bsd/ntp/dist/tests/libntp/hextolfp.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/humandate.c  up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/lfpfunc.c    up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/lfptostr.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/modetoa.c    up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/msyslog.c    up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/netof.c      up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/numtoa.c     up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/numtohost.c  up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/octtoint.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/prettydate.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/recvbuff.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/refidsmear.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/refnumtoa.c  up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-a_md5encrypt.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-atoint.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/socktoa.c    up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/ssl_init.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/statestr.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/strtolfp.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/test-libntp.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/timevalops.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/tstotv.c     up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/tvtots.c     up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/uglydate.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/vi64ops.c    up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/ymd2yd.c     up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-netof.c  up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-msyslog.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/hextoint.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-atouint.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-authkeys.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-buftvtots.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-calendar.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-caljulian.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-caltontp.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-calyearstart.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-clocktime.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-decodenetnum.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-hextoint.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-hextolfp.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-humandate.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-lfpfunc.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-lfptostr.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-modetoa.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-numtoa.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-numtohost.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-octtoint.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-prettydate.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-recvbuff.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-refidsmear.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-refnumtoa.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-sfptostr.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-socktoa.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-ssl_init.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-statestr.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-strtolfp.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-timespecops.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-timevalops.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-tstotv.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-tvtots.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-uglydate.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-vi64ops.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/run-ymd2yd.c up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/sfptostr.c   up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/test-libntp.h up to 1.1.1.3
external/bsd/ntp/dist/tests/libntp/timespecops.c up to 1.1.1.3
external/bsd/ntp/dist/tests/ntpd/rc_cmdlength.c up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/run-leapsec.c  up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/leapsec.c      up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/ntp_prio_q.c   up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/ntp_restrict.c up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/run-ntp_prio_q.c up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/run-ntp_restrict.c up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/run-rc_cmdlength.c up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/run-t-ntp_scanner.c up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/run-t-ntp_signd.c up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/t-ntp_scanner.c up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpd/t-ntp_signd.c  up to 1.1.1.1
external/bsd/ntp/dist/tests/bug-2803/Makefile.am up to 1.1.1.2
external/bsd/ntp/dist/tests/bug-2803/Makefile.in up to 1.1.1.2
external/bsd/ntp/dist/tests/bug-2803/bug-2803.c up to 1.1.1.2
external/bsd/ntp/dist/tests/bug-2803/run-bug-2803.c up to 1.1.1.3
external/bsd/ntp/dist/tests/sandbox/Makefile.am up to 1.1.1.2
external/bsd/ntp/dist/tests/sandbox/Makefile.in up to 1.1.1.2
external/bsd/ntp/dist/tests/sandbox/bug-2803.c  up to 1.1.1.2
external/bsd/ntp/dist/tests/sandbox/modetoa.c   up to 1.1.1.2
external/bsd/ntp/dist/tests/sandbox/run-modetoa.c up to 1.1.1.3
external/bsd/ntp/dist/tests/sandbox/run-uglydate.c up to 1.1.1.3
external/bsd/ntp/dist/tests/sandbox/run-ut-2803.c up to 1.1.1.3
external/bsd/ntp/dist/tests/sandbox/smeartest.c up to 1.1.1.3
external/bsd/ntp/dist/tests/sandbox/uglydate.c  up to 1.1.1.2
external/bsd/ntp/dist/tests/sandbox/ut-2803.c   up to 1.1.1.2
external/bsd/ntp/dist/tests/sec-2853/Makefile.am up to 1.1.1.2
external/bsd/ntp/dist/tests/sec-2853/Makefile.in up to 1.1.1.2
external/bsd/ntp/dist/tests/sec-2853/run-sec-2853.c up to 1.1.1.3
external/bsd/ntp/dist/tests/sec-2853/sec-2853.c up to 1.1.1.3
external/bsd/ntp/dist/tests/ntpq/Makefile.am    up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpq/Makefile.in    up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpq/run-t-ntpq.c   up to 1.1.1.1
external/bsd/ntp/dist/tests/ntpq/t-ntpq.c       up to 1.1.1.1
external/bsd/ntp/dist/libjsmn/example/jsondump.c up to 1.1.1.2
external/bsd/ntp/dist/libjsmn/example/simple.c  up to 1.1.1.2
external/bsd/ntp/dist/README.leapsmear          up to 1.1.1.1
external/bsd/ntp/dist/html/drivers/driver40-ja.html up to 1.1.1.1
external/bsd/ntp/dist/include/refidsmear.h      up to 1.1.1.2
external/bsd/ntp/dist/include/rc_cmdlength.h    up to 1.1.1.1
external/bsd/ntp/dist/libntp/refidsmear.c       up to 1.1.1.2
external/bsd/ntp/dist/ntpd/rc_cmdlength.c       up to 1.3
external/bsd/ntp/dist/scripts/update-leap/update-leap.in up to 1.1.1.1
external/bsd/ntp/dist/scripts/update-leap/update-leap.sh up to 1.1.1.1
external/bsd/ntp/dist/sntp/libevent/build-aux/ar-lib up to 1.1.1.1
external/bsd/ntp/dist/sntp/libevent/build-aux/test-driver up to 1.1.1.1
external/bsd/ntp/dist/sntp/m4/ntp_unitytest.m4  up to 1.1.1.1
external/bsd/ntp/dist/sntp/m4/ntp_problemtests.m4 up to 1.1.1.1
external/bsd/ntp/dist/sntp/tests/run-t-log.c    up to 1.1.1.1
external/bsd/ntp/dist/sntp/tests/kodFile.c      up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/packetHandling.c up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/packetProcessing.c up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/run-crypto.c   up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/run-keyFile.c  up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/sntptest.c     up to 1.1.1.1
external/bsd/ntp/dist/sntp/tests/networking.c   up to 1.1.1.2
external/bsd/ntp/dist/sntp/tests/crypto.c       up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h.in up to 1.1.1.2
external/bsd/ntp/dist/sntp/tests/t-log.c        up to 1.1.1.1
external/bsd/ntp/dist/sntp/tests/keyFile.c      up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/kodDatabase.c  up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/run-kodDatabase.c up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/run-kodFile.c  up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/run-networking.c up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/run-packetHandling.c up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/run-utilities.c up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/utilities.c    up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/fileHandlingTest.c up to 1.1.1.1
external/bsd/ntp/dist/sntp/libpkgver/colcomp.c  up to 1.1.1.2
external/bsd/ntp/dist/sntp/libpkgver/pkgver.h   up to 1.1.1.2
external/bsd/ntp/dist/sntp/version.c            up to 1.1.1.3
external/bsd/ntp/dist/sntp/unity/auto/colour_prompt.rb up to 1.1.1.1
external/bsd/ntp/dist/sntp/unity/auto/colour_reporter.rb up to 1.1.1.1
external/bsd/ntp/dist/sntp/unity/auto/generate_config.yml up to 1.1.1.1
external/bsd/ntp/dist/sntp/unity/auto/generate_module.rb up to 1.1.1.1
external/bsd/ntp/dist/sntp/unity/auto/generate_test_runner.rb up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/auto/runner_maybe.c up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/auto/test_file_filter.rb up to 1.1.1.1
external/bsd/ntp/dist/sntp/unity/auto/unity_test_summary.rb up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/auto/parseOutput.rb up to 1.1.1.1
external/bsd/ntp/dist/sntp/unity/auto/type_sanitizer.rb up to 1.1.1.1
external/bsd/ntp/dist/sntp/unity/auto/unity_test_summary.py up to 1.1.1.1
external/bsd/ntp/dist/sntp/unity/Makefile.am    up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/Makefile.in    up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/unity.c        up to 1.1.1.3
external/bsd/ntp/dist/sntp/unity/unity.h        up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/unity_fixture.c up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/unity_fixture.h up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/unity_fixture_internals.h up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/unity_fixture_malloc_overrides.h up to 1.1.1.2
external/bsd/ntp/dist/sntp/unity/unity_internals.h up to 1.1.1.3
external/bsd/ntp/dist/sntp/unity/unity_config.h up to 1.1.1.1
external/bsd/ntp/dist/scripts/update-leap/update-leap delete
external/bsd/ntp/dist/sntp/tests_main.cpp       delete
external/bsd/ntp/dist/sntp/tests_main.h         delete
external/bsd/ntp/dist/sntp/libevent/sample/dns-example.c delete
external/bsd/ntp/dist/sntp/libevent/sample/event-read-fifo.c delete
external/bsd/ntp/dist/sntp/libevent/sample/hello-world.c delete
external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.c delete
external/bsd/ntp/dist/sntp/libevent/sample/http-server.c delete
external/bsd/ntp/dist/sntp/libevent/sample/include.am delete
external/bsd/ntp/dist/sntp/libevent/sample/le-proxy.c delete
external/bsd/ntp/dist/sntp/libevent/sample/signal-test.c delete
external/bsd/ntp/dist/sntp/libevent/sample/time-test.c delete
external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.h delete
external/bsd/ntp/dist/sntp/libevent/sample/https-client.c delete
external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.c delete
external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.h delete
external/bsd/ntp/dist/sntp/tests/crypto.cpp     delete
external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h delete
external/bsd/ntp/dist/sntp/tests/keyFile.cpp    delete
external/bsd/ntp/dist/sntp/tests/kodDatabase.cpp delete
external/bsd/ntp/dist/sntp/tests/kodFile.cpp    delete
external/bsd/ntp/dist/sntp/tests/networking.cpp delete
external/bsd/ntp/dist/sntp/tests/packetHandling.cpp delete
external/bsd/ntp/dist/sntp/tests/packetProcessing.cpp delete
external/bsd/ntp/dist/sntp/tests/utilities.cpp  delete
external/bsd/ntp/dist/tests/libntp/lfpfunc.cpp  delete
external/bsd/ntp/dist/tests/libntp/a_md5encrypt.cpp delete
external/bsd/ntp/dist/tests/libntp/atoint.cpp   delete
external/bsd/ntp/dist/tests/libntp/atouint.cpp  delete
external/bsd/ntp/dist/tests/libntp/authkeys.cpp delete
external/bsd/ntp/dist/tests/libntp/buftvtots.cpp delete
external/bsd/ntp/dist/tests/libntp/calendar.cpp delete
external/bsd/ntp/dist/tests/libntp/caljulian.cpp delete
external/bsd/ntp/dist/tests/libntp/caltontp.cpp delete
external/bsd/ntp/dist/tests/libntp/calyearstart.cpp delete
external/bsd/ntp/dist/tests/libntp/clocktime.cpp delete
external/bsd/ntp/dist/tests/libntp/decodenetnum.cpp delete
external/bsd/ntp/dist/tests/libntp/hextoint.cpp delete
external/bsd/ntp/dist/tests/libntp/hextolfp.cpp delete
external/bsd/ntp/dist/tests/libntp/humandate.cpp delete
external/bsd/ntp/dist/tests/libntp/lfptostr.cpp delete
external/bsd/ntp/dist/tests/libntp/libntptest.cpp delete
external/bsd/ntp/dist/tests/libntp/libntptest.h delete
external/bsd/ntp/dist/tests/libntp/modetoa.cpp  delete
external/bsd/ntp/dist/tests/libntp/msyslog.cpp  delete
external/bsd/ntp/dist/tests/libntp/netof.cpp    delete
external/bsd/ntp/dist/tests/libntp/numtoa.cpp   delete
external/bsd/ntp/dist/tests/libntp/numtohost.cpp delete
external/bsd/ntp/dist/tests/libntp/octtoint.cpp delete
external/bsd/ntp/dist/tests/libntp/prettydate.cpp delete
external/bsd/ntp/dist/tests/libntp/recvbuff.cpp delete
external/bsd/ntp/dist/tests/libntp/refnumtoa.cpp delete
external/bsd/ntp/dist/tests/libntp/sfptostr.cpp delete
external/bsd/ntp/dist/tests/libntp/socktoa.cpp  delete
external/bsd/ntp/dist/tests/libntp/ssl_init.cpp delete
external/bsd/ntp/dist/tests/libntp/statestr.cpp delete
external/bsd/ntp/dist/tests/libntp/strtolfp.cpp delete
external/bsd/ntp/dist/tests/libntp/timespecops.cpp delete
external/bsd/ntp/dist/tests/libntp/timestructs.cpp delete
external/bsd/ntp/dist/tests/libntp/timestructs.h delete
external/bsd/ntp/dist/tests/libntp/timevalops.cpp delete
external/bsd/ntp/dist/tests/libntp/tstotv.cpp   delete
external/bsd/ntp/dist/tests/libntp/tvtots.cpp   delete
external/bsd/ntp/dist/tests/libntp/uglydate.cpp delete
external/bsd/ntp/dist/tests/libntp/ymd2yd.cpp   delete
external/bsd/ntp/dist/tests/libntp/vi64ops.cpp  delete
external/bsd/ntp/dist/tests/ntpd/leapsec.cpp    delete
external/bsd/ntp/dist/tests/ntpd/ntpdtest.h     delete
external/bsd/ntp/dist/tests/ntpd/ntpdtest.cpp   delete
external/bsd/ntp/importdate                     up to 1.7
external/bsd/ntp/bin/ntpd/Makefile              up to 1.19
external/bsd/ntp/dist/ChangeLog                 up to 1.1.1.7
external/bsd/ntp/dist/CommitLog                 up to 1.1.1.7
external/bsd/ntp/dist/Makefile.am               up to 1.1.1.7
external/bsd/ntp/dist/Makefile.in               up to 1.1.1.7
external/bsd/ntp/dist/NEWS                      up to 1.1.1.7
external/bsd/ntp/dist/aclocal.m4                up to 1.1.1.7
external/bsd/ntp/dist/bootstrap                 up to 1.1.1.5
external/bsd/ntp/dist/config.h.in               up to 1.1.1.6
external/bsd/ntp/dist/configure                 up to 1.1.1.7
external/bsd/ntp/dist/configure.ac              up to 1.1.1.7
external/bsd/ntp/dist/packageinfo.sh            up to 1.1.1.7
external/bsd/ntp/dist/adjtimed/Makefile.in      up to 1.1.1.7
external/bsd/ntp/dist/adjtimed/adjtimed.c       up to 1.4
external/bsd/ntp/dist/clockstuff/Makefile.in    up to 1.1.1.7
external/bsd/ntp/dist/clockstuff/chutest.c      up to 1.4
external/bsd/ntp/dist/clockstuff/propdelay.c    up to 1.4
external/bsd/ntp/dist/html/decode.html          up to 1.1.1.5
external/bsd/ntp/dist/html/miscopt.html         up to 1.1.1.6
external/bsd/ntp/dist/html/refclock.html        up to 1.1.1.4
external/bsd/ntp/dist/html/stats.html           up to 1.1.1.3
external/bsd/ntp/dist/html/drivers/driver22.html up to 1.1.1.4
external/bsd/ntp/dist/html/drivers/driver40.html up to 1.1.1.4
external/bsd/ntp/dist/html/drivers/driver46.html up to 1.1.1.2
external/bsd/ntp/dist/include/Makefile.am       up to 1.1.1.6
external/bsd/ntp/dist/include/Makefile.in       up to 1.1.1.7
external/bsd/ntp/dist/include/ntp_assert.h      up to 1.4
external/bsd/ntp/dist/include/ntp_calendar.h    up to 1.5
external/bsd/ntp/dist/include/ntp_config.h      up to 1.9
external/bsd/ntp/dist/include/ntp_control.h     up to 1.4
external/bsd/ntp/dist/include/ntp_io.h          up to 1.3
external/bsd/ntp/dist/include/ntp_lists.h       up to 1.4
external/bsd/ntp/dist/include/ntp_stdlib.h      up to 1.11
external/bsd/ntp/dist/include/ntp_syslog.h      up to 1.4
external/bsd/ntp/dist/include/ntp_types.h       up to 1.4
external/bsd/ntp/dist/include/ntpd.h            up to 1.7
external/bsd/ntp/dist/include/parse.h           up to 1.4
external/bsd/ntp/dist/include/isc/Makefile.in   up to 1.1.1.7
external/bsd/ntp/dist/kernel/Makefile.in        up to 1.1.1.7
external/bsd/ntp/dist/kernel/sys/Makefile.in    up to 1.1.1.7
external/bsd/ntp/dist/lib/isc/unix/ifiter_getifaddrs.c up to 1.6
external/bsd/ntp/dist/libjsmn/Makefile          up to 1.1.1.2
external/bsd/ntp/dist/libjsmn/README.md         up to 1.1.1.2
external/bsd/ntp/dist/libjsmn/jsmn.c            up to 1.4
external/bsd/ntp/dist/libjsmn/jsmn.h            up to 1.3
external/bsd/ntp/dist/libjsmn/jsmn_test.c       up to 1.3
external/bsd/ntp/dist/libntp/Makefile.am        up to 1.1.1.5
external/bsd/ntp/dist/libntp/Makefile.in        up to 1.1.1.7
external/bsd/ntp/dist/libntp/atolfp.c           up to 1.7
external/bsd/ntp/dist/libntp/audio.c            up to 1.9
external/bsd/ntp/dist/libntp/authkeys.c         up to 1.7
external/bsd/ntp/dist/libntp/authreadkeys.c     up to 1.7
external/bsd/ntp/dist/libntp/caljulian.c        up to 1.4
external/bsd/ntp/dist/libntp/caltontp.c         up to 1.4
external/bsd/ntp/dist/libntp/decodenetnum.c     up to 1.4
external/bsd/ntp/dist/libntp/emalloc.c          up to 1.6
external/bsd/ntp/dist/libntp/icom.c             up to 1.8
external/bsd/ntp/dist/libntp/machines.c         up to 1.4
external/bsd/ntp/dist/libntp/msyslog.c          up to 1.4
external/bsd/ntp/dist/libntp/ntp_calendar.c     up to 1.7
external/bsd/ntp/dist/libntp/ntp_intres.c       up to 1.7
external/bsd/ntp/dist/libntp/ntp_lineedit.c     up to 1.8
external/bsd/ntp/dist/libntp/ntp_rfc2553.c      up to 1.4
external/bsd/ntp/dist/libntp/ntp_worker.c       up to 1.4
external/bsd/ntp/dist/libntp/prettydate.c       up to 1.7
external/bsd/ntp/dist/libntp/recvbuff.c         up to 1.4
external/bsd/ntp/dist/libntp/socket.c           up to 1.4
external/bsd/ntp/dist/libntp/socktohost.c       up to 1.4
external/bsd/ntp/dist/libntp/statestr.c         up to 1.4
external/bsd/ntp/dist/libntp/strdup.c           up to 1.3
external/bsd/ntp/dist/libntp/work_fork.c        up to 1.7
external/bsd/ntp/dist/libparse/Makefile.in      up to 1.1.1.7
external/bsd/ntp/dist/libparse/clk_meinberg.c   up to 1.5
external/bsd/ntp/dist/libparse/clk_rawdcf.c     up to 1.6
external/bsd/ntp/dist/libparse/clk_schmid.c     up to 1.4
external/bsd/ntp/dist/libparse/parse.c          up to 1.4
external/bsd/ntp/dist/ntpd/Makefile.am          up to 1.1.1.7
external/bsd/ntp/dist/ntpd/Makefile.in          up to 1.1.1.7
external/bsd/ntp/dist/ntpd/complete.conf.in     up to 1.1.1.3
external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi up to 1.1.1.5
external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi up to 1.1.1.5
external/bsd/ntp/dist/ntpd/invoke-ntpd.texi     up to 1.1.1.5
external/bsd/ntp/dist/ntpd/keyword-gen-utd      up to 1.1.1.4
external/bsd/ntp/dist/ntpd/keyword-gen.c        up to 1.7
external/bsd/ntp/dist/ntpd/ntp.conf.5man        up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc       up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.conf.def         up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.conf.html        up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.conf.man.in      up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in     up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.keys.5man        up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc       up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.keys.html        up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.keys.man.in      up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in     up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntp_config.c         up to 1.12
external/bsd/ntp/dist/ntpd/ntp_control.c        up to 1.14
external/bsd/ntp/dist/ntpd/ntp_crypto.c         up to 1.10
external/bsd/ntp/dist/ntpd/ntp_io.c             up to 1.20
external/bsd/ntp/dist/ntpd/ntp_keyword.h        up to 1.8
external/bsd/ntp/dist/ntpd/ntp_leapsec.c        up to 1.4
external/bsd/ntp/dist/ntpd/ntp_leapsec.h        up to 1.3
external/bsd/ntp/dist/ntpd/ntp_loopfilter.c     up to 1.8
external/bsd/ntp/dist/ntpd/ntp_monitor.c        up to 1.4
external/bsd/ntp/dist/ntpd/ntp_parser.y         up to 1.11
external/bsd/ntp/dist/ntpd/ntp_peer.c           up to 1.8
external/bsd/ntp/dist/ntpd/ntp_proto.c          up to 1.9
external/bsd/ntp/dist/ntpd/ntp_refclock.c       up to 1.8
external/bsd/ntp/dist/ntpd/ntp_request.c        up to 1.12
external/bsd/ntp/dist/ntpd/ntp_restrict.c       up to 1.7
external/bsd/ntp/dist/ntpd/ntp_scanner.c        up to 1.9
external/bsd/ntp/dist/ntpd/ntp_scanner.h        up to 1.3
external/bsd/ntp/dist/ntpd/ntp_timer.c          up to 1.5
external/bsd/ntp/dist/ntpd/ntpd-opts.c          up to 1.5
external/bsd/ntp/dist/ntpd/ntpd-opts.def        up to 1.1.1.4
external/bsd/ntp/dist/ntpd/ntpd-opts.h          up to 1.8
external/bsd/ntp/dist/ntpd/ntpd.1ntpdman        up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc       up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntpd.c               up to 1.11
external/bsd/ntp/dist/ntpd/ntpd.html            up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntpd.man.in          up to 1.1.1.5
external/bsd/ntp/dist/ntpd/ntpd.mdoc.in         up to 1.1.1.5
external/bsd/ntp/dist/ntpd/refclock_arc.c       up to 1.8
external/bsd/ntp/dist/ntpd/refclock_chu.c       up to 1.7
external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c  up to 1.7
external/bsd/ntp/dist/ntpd/refclock_jjy.c       up to 1.8
external/bsd/ntp/dist/ntpd/refclock_jupiter.c   up to 1.9
external/bsd/ntp/dist/ntpd/refclock_local.c     up to 1.4
external/bsd/ntp/dist/ntpd/refclock_nmea.c      up to 1.10
external/bsd/ntp/dist/ntpd/refclock_oncore.c    up to 1.12
external/bsd/ntp/dist/ntpd/refclock_palisade.c  up to 1.5
external/bsd/ntp/dist/ntpd/refclock_parse.c     up to 1.17
external/bsd/ntp/dist/ntpd/refclock_shm.c       up to 1.6
external/bsd/ntp/dist/ntpd/refclock_true.c      up to 1.5
external/bsd/ntp/dist/ntpd/refclock_wwv.c       up to 1.6
external/bsd/ntp/dist/ntpdate/Makefile.in       up to 1.1.1.7
external/bsd/ntp/dist/ntpdate/ntpdate.c         up to 1.8
external/bsd/ntp/dist/ntpdc/Makefile.in         up to 1.1.1.7
external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi   up to 1.1.1.5
external/bsd/ntp/dist/ntpdc/ntpdc-opts.c        up to 1.5
external/bsd/ntp/dist/ntpdc/ntpdc-opts.h        up to 1.5
external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman     up to 1.1.1.5
external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc    up to 1.1.1.5
external/bsd/ntp/dist/ntpdc/ntpdc.c             up to 1.11
external/bsd/ntp/dist/ntpdc/ntpdc.html          up to 1.1.1.5
external/bsd/ntp/dist/ntpdc/ntpdc.man.in        up to 1.1.1.5
external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in       up to 1.1.1.5
external/bsd/ntp/dist/ntpq/Makefile.in          up to 1.1.1.7
external/bsd/ntp/dist/ntpq/invoke-ntpq.texi     up to 1.1.1.5
external/bsd/ntp/dist/ntpq/libntpq.h            up to 1.4
external/bsd/ntp/dist/ntpq/ntpq-opts.c          up to 1.5
external/bsd/ntp/dist/ntpq/ntpq-opts.def        up to 1.1.1.4
external/bsd/ntp/dist/ntpq/ntpq-opts.h          up to 1.5
external/bsd/ntp/dist/ntpq/ntpq-subs.c          up to 1.12
external/bsd/ntp/dist/ntpq/ntpq.1ntpqman        up to 1.1.1.5
external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc       up to 1.1.1.5
external/bsd/ntp/dist/ntpq/ntpq.c               up to 1.13
external/bsd/ntp/dist/ntpq/ntpq.html            up to 1.1.1.5
external/bsd/ntp/dist/ntpq/ntpq.man.in          up to 1.1.1.5
external/bsd/ntp/dist/ntpq/ntpq.mdoc.in         up to 1.1.1.5
external/bsd/ntp/dist/ntpsnmpd/Makefile.in      up to 1.1.1.7
external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi up to 1.1.1.5
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c  up to 1.5
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h  up to 1.5
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman up to 1.1.1.5
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc up to 1.1.1.5
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html    up to 1.1.1.5
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in  up to 1.1.1.5
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in up to 1.1.1.5
external/bsd/ntp/dist/parseutil/Makefile.in     up to 1.1.1.7
external/bsd/ntp/dist/parseutil/dcfd.c          up to 1.4
external/bsd/ntp/dist/parseutil/testdcf.c       up to 1.4
external/bsd/ntp/dist/scripts/Makefile.in       up to 1.1.1.7
external/bsd/ntp/dist/scripts/invoke-plot_summary.texi up to 1.1.1.5
external/bsd/ntp/dist/scripts/invoke-summary.texi up to 1.1.1.5
external/bsd/ntp/dist/scripts/plot_summary-opts up to 1.1.1.5
external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman up to 1.1.1.5
external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc up to 1.1.1.5
external/bsd/ntp/dist/scripts/plot_summary.html up to 1.1.1.5
external/bsd/ntp/dist/scripts/plot_summary.man.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/plot_summary.mdoc.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/summary-opts      up to 1.1.1.5
external/bsd/ntp/dist/scripts/summary.1summaryman up to 1.1.1.5
external/bsd/ntp/dist/scripts/summary.1summarymdoc up to 1.1.1.5
external/bsd/ntp/dist/scripts/summary.html      up to 1.1.1.5
external/bsd/ntp/dist/scripts/summary.man.in    up to 1.1.1.5
external/bsd/ntp/dist/scripts/summary.mdoc.in   up to 1.1.1.5
external/bsd/ntp/dist/scripts/build/Makefile.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman up to 1.1.1.5
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc up to 1.1.1.5
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html up to 1.1.1.5
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi up to 1.1.1.5
external/bsd/ntp/dist/scripts/lib/Makefile.in   up to 1.1.1.5
external/bsd/ntp/dist/scripts/lib/NTP/Util.pm   up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.in up to 1.1.1.4
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntptrace/Makefile.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in up to 1.1.1.5
external/bsd/ntp/dist/scripts/update-leap/Makefile.am up to 1.1.1.2
external/bsd/ntp/dist/scripts/update-leap/Makefile.in up to 1.1.1.3
external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi up to 1.1.1.3
external/bsd/ntp/dist/scripts/update-leap/update-leap-opts up to 1.1.1.3
external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman up to 1.1.1.3
external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc up to 1.1.1.3
external/bsd/ntp/dist/scripts/update-leap/update-leap.html up to 1.1.1.3
external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in up to 1.1.1.3
external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in up to 1.1.1.3
external/bsd/ntp/dist/sntp/Makefile.am          up to 1.1.1.7
external/bsd/ntp/dist/sntp/Makefile.in          up to 1.1.1.7
external/bsd/ntp/dist/sntp/aclocal.m4           up to 1.1.1.6
external/bsd/ntp/dist/sntp/config.h.in          up to 1.1.1.5
external/bsd/ntp/dist/sntp/configure            up to 1.1.1.7
external/bsd/ntp/dist/sntp/configure.ac         up to 1.1.1.6
external/bsd/ntp/dist/sntp/invoke-sntp.texi     up to 1.1.1.5
external/bsd/ntp/dist/sntp/kod_management.c     up to 1.6
external/bsd/ntp/dist/sntp/log.c                up to 1.9
external/bsd/ntp/dist/sntp/log.h                up to 1.7
external/bsd/ntp/dist/sntp/networking.c         up to 1.12
external/bsd/ntp/dist/sntp/sntp-opts.c          up to 1.6
external/bsd/ntp/dist/sntp/sntp-opts.h          up to 1.5
external/bsd/ntp/dist/sntp/sntp.1sntpman        up to 1.1.1.5
external/bsd/ntp/dist/sntp/sntp.1sntpmdoc       up to 1.1.1.5
external/bsd/ntp/dist/sntp/sntp.html            up to 1.1.1.7
external/bsd/ntp/dist/sntp/sntp.man.in          up to 1.1.1.5
external/bsd/ntp/dist/sntp/sntp.mdoc.in         up to 1.1.1.5
external/bsd/ntp/dist/sntp/include/Makefile.in  up to 1.1.1.5
external/bsd/ntp/dist/sntp/include/autogen-version.def up to 1.1.1.3
external/bsd/ntp/dist/sntp/include/version.def  up to 1.1.1.5
external/bsd/ntp/dist/sntp/include/version.texi up to 1.1.1.5
external/bsd/ntp/dist/sntp/libevent/Makefile.am up to 1.1.1.4
external/bsd/ntp/dist/sntp/libevent/Makefile.in up to 1.1.1.5
external/bsd/ntp/dist/sntp/libevent/aclocal.m4  up to 1.1.1.3
external/bsd/ntp/dist/sntp/libevent/config.h.in up to 1.1.1.4
external/bsd/ntp/dist/sntp/libevent/configure   up to 1.1.1.4
external/bsd/ntp/dist/sntp/libevent/listener.c  up to 1.4
external/bsd/ntp/dist/sntp/libevent/build-aux/ltmain.sh up to 1.1.1.2
external/bsd/ntp/dist/sntp/libevent/m4/ltversion.m4 up to 1.1.1.2
external/bsd/ntp/dist/sntp/libevent/test/bench_httpclient.c up to 1.4
external/bsd/ntp/dist/sntp/libevent/test/regress.c up to 1.5
external/bsd/ntp/dist/sntp/libevent/test/regress_dns.c up to 1.5
external/bsd/ntp/dist/sntp/libevent/test/regress_http.c up to 1.5
external/bsd/ntp/dist/sntp/libevent/test/regress_minheap.c up to 1.5
external/bsd/ntp/dist/sntp/libevent/test/test-ratelim.c up to 1.5
external/bsd/ntp/dist/sntp/libevent/test/test-time.c up to 1.5
external/bsd/ntp/dist/sntp/libopts/COPYING.gplv3 up to 1.1.1.5
external/bsd/ntp/dist/sntp/libopts/COPYING.lgplv3 up to 1.1.1.5
external/bsd/ntp/dist/sntp/libopts/COPYING.mbsd up to 1.1.1.2
external/bsd/ntp/dist/sntp/libopts/Makefile.in  up to 1.1.1.7
external/bsd/ntp/dist/sntp/libopts/README       up to 1.1.1.5
external/bsd/ntp/dist/sntp/libopts/ag-char-map.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/alias.c      up to 1.3
external/bsd/ntp/dist/sntp/libopts/ao-strs.c    up to 1.3
external/bsd/ntp/dist/sntp/libopts/ao-strs.h    up to 1.3
external/bsd/ntp/dist/sntp/libopts/autoopts.c   up to 1.5
external/bsd/ntp/dist/sntp/libopts/autoopts.h   up to 1.9
external/bsd/ntp/dist/sntp/libopts/boolean.c    up to 1.3
external/bsd/ntp/dist/sntp/libopts/check.c      up to 1.3
external/bsd/ntp/dist/sntp/libopts/configfile.c up to 1.6
external/bsd/ntp/dist/sntp/libopts/cook.c       up to 1.3
external/bsd/ntp/dist/sntp/libopts/enum.c       up to 1.5
external/bsd/ntp/dist/sntp/libopts/env.c        up to 1.3
external/bsd/ntp/dist/sntp/libopts/file.c       up to 1.6
external/bsd/ntp/dist/sntp/libopts/find.c       up to 1.5
external/bsd/ntp/dist/sntp/libopts/genshell.c   up to 1.3
external/bsd/ntp/dist/sntp/libopts/gettext.h    up to 1.3
external/bsd/ntp/dist/sntp/libopts/init.c       up to 1.6
external/bsd/ntp/dist/sntp/libopts/intprops.h   up to 1.3
external/bsd/ntp/dist/sntp/libopts/libopts.c    up to 1.3
external/bsd/ntp/dist/sntp/libopts/load.c       up to 1.6
external/bsd/ntp/dist/sntp/libopts/makeshell.c  up to 1.6
external/bsd/ntp/dist/sntp/libopts/nested.c     up to 1.8
external/bsd/ntp/dist/sntp/libopts/numeric.c    up to 1.6
external/bsd/ntp/dist/sntp/libopts/option-value-type.c up to 1.3
external/bsd/ntp/dist/sntp/libopts/option-value-type.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.c up to 1.3
external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/parse-duration.c up to 1.7
external/bsd/ntp/dist/sntp/libopts/parse-duration.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/pgusage.c    up to 1.5
external/bsd/ntp/dist/sntp/libopts/proto.h      up to 1.3
external/bsd/ntp/dist/sntp/libopts/putshell.c   up to 1.5
external/bsd/ntp/dist/sntp/libopts/reset.c      up to 1.6
external/bsd/ntp/dist/sntp/libopts/restore.c    up to 1.3
external/bsd/ntp/dist/sntp/libopts/save.c       up to 1.8
external/bsd/ntp/dist/sntp/libopts/sort.c       up to 1.3
external/bsd/ntp/dist/sntp/libopts/stack.c      up to 1.6
external/bsd/ntp/dist/sntp/libopts/stdnoreturn.in.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/streqvcmp.c  up to 1.5
external/bsd/ntp/dist/sntp/libopts/text_mmap.c  up to 1.3
external/bsd/ntp/dist/sntp/libopts/time.c       up to 1.3
external/bsd/ntp/dist/sntp/libopts/tokenize.c   up to 1.6
external/bsd/ntp/dist/sntp/libopts/usage.c      up to 1.5
external/bsd/ntp/dist/sntp/libopts/version.c    up to 1.3
external/bsd/ntp/dist/sntp/libopts/autoopts/options.h up to 1.10
external/bsd/ntp/dist/sntp/libopts/autoopts/project.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/autoopts/usage-txt.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/compat/compat.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/compat/pathfind.c up to 1.6
external/bsd/ntp/dist/sntp/libopts/compat/windows-config.h up to 1.3
external/bsd/ntp/dist/sntp/libopts/m4/libopts.m4 up to 1.1.1.6
external/bsd/ntp/dist/sntp/libopts/m4/liboptschk.m4 up to 1.1.1.5
external/bsd/ntp/dist/sntp/libopts/m4/stdnoreturn.m4 up to 1.1.1.2
external/bsd/ntp/dist/sntp/m4/ltversion.m4      up to 1.1.1.2
external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4   up to 1.1.1.4
external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4     up to 1.1.1.5
external/bsd/ntp/dist/sntp/m4/ntp_openssl.m4    up to 1.1.1.2
external/bsd/ntp/dist/sntp/m4/ntp_rlimit.m4     up to 1.1.1.2
external/bsd/ntp/dist/sntp/m4/openldap-thread-check.m4 up to 1.1.1.2
external/bsd/ntp/dist/sntp/m4/os_cflags.m4      up to 1.1.1.3
external/bsd/ntp/dist/sntp/m4/version.m4        up to 1.1.1.5
external/bsd/ntp/dist/sntp/scripts/Makefile.in  up to 1.1.1.5
external/bsd/ntp/dist/sntp/scripts/genLocInfo   up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/Makefile.am    up to 1.1.1.3
external/bsd/ntp/dist/sntp/tests/Makefile.in    up to 1.1.1.5
external/bsd/ntp/dist/sntp/tests/sntptest.h     up to 1.4
external/bsd/ntp/dist/tests/Makefile.am         up to 1.1.1.3
external/bsd/ntp/dist/tests/Makefile.in         up to 1.1.1.5
external/bsd/ntp/dist/tests/libntp/Makefile.am  up to 1.1.1.4
external/bsd/ntp/dist/tests/libntp/Makefile.in  up to 1.1.1.5
external/bsd/ntp/dist/tests/libntp/lfptest.h    up to 1.4
external/bsd/ntp/dist/tests/libntp/sockaddrtest.h up to 1.4
external/bsd/ntp/dist/tests/ntpd/Makefile.am    up to 1.1.1.2
external/bsd/ntp/dist/tests/ntpd/Makefile.in    up to 1.1.1.5
external/bsd/ntp/dist/util/Makefile.in          up to 1.1.1.7
external/bsd/ntp/dist/util/invoke-ntp-keygen.texi up to 1.1.1.5
external/bsd/ntp/dist/util/ntp-keygen-opts.c    up to 1.10
external/bsd/ntp/dist/util/ntp-keygen-opts.h    up to 1.5
external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman up to 1.1.1.5
external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc up to 1.1.1.5
external/bsd/ntp/dist/util/ntp-keygen.c         up to 1.9
external/bsd/ntp/dist/util/ntp-keygen.html      up to 1.1.1.5
external/bsd/ntp/dist/util/ntp-keygen.man.in    up to 1.1.1.5
external/bsd/ntp/dist/util/ntp-keygen.mdoc.in   up to 1.1.1.5
external/bsd/ntp/dist/util/ntptime.c            up to 1.7
external/bsd/ntp/include/config.h               up to 1.13
external/bsd/ntp/scripts/mkver                  up to 1.7

	Update ntp to 4.2.8p4.
	[christos, ticket #1024]
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p4.
d8 3
a10 1
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
a138 25
# Use a proper internal environment variable to ensure we don't fall
  # into an infinite loop, continuously re-executing ourselves.
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    _as_can_reexec=no; export _as_can_reexec;
    # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
as_fn_exit 255
  fi
  # We don't want this to propagate to other subprocesses.
          { _as_can_reexec=; unset _as_can_reexec;}
d172 1
a172 2
test x\$exitcode = x0 || exit 1
test -x / || exit 1"
d225 15
a239 19
  export CONFIG_SHELL
             # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
a341 8

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
a462 4
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  # already done that, so ensure we don't try to do so again and fall
  # in an infinite loop.  This has already happened in practice.
  _as_can_reexec=no; export _as_can_reexec
d497 1
a497 1
    # In both cases, we have to default to `cp -pR'.
d499 1
a499 1
      as_ln_s='cp -pR'
d503 1
a503 1
    as_ln_s='cp -pR'
d506 1
a506 1
  as_ln_s='cp -pR'
d518 22
a539 2
as_test_x='test -x'
as_executable_p=as_fn_executable_p
d573 2
a574 2
PACKAGE_VERSION='4.2.8p4'
PACKAGE_STRING='ntp 4.2.8p4'
a621 6
BUILD_TEST_NTP_SIGND_FALSE
BUILD_TEST_NTP_SIGND_TRUE
BUILD_TEST_NTP_SCANNER_FALSE
BUILD_TEST_NTP_SCANNER_TRUE
BUILD_TEST_NTP_RESTRICT_FALSE
BUILD_TEST_NTP_RESTRICT_TRUE
a628 4
UNITYBUILD_AVAILABLE_FALSE
UNITYBUILD_AVAILABLE_TRUE
PATH_RUBY
HAVE_LEAPSMEARINTERVAL
a667 2
LTHREAD_LIBS
BUILD_THREAD
a679 1
CFLAGS_LIBEVENT
d701 2
a712 2
ac_ct_AR
AR
a819 1
am__nodep
a842 2
AM_DEFAULT_V
AM_V
a1023 1
enable_leap_smear
a1024 1
enable_problem_tests
d1496 2
d1583 1
a1583 1
\`configure' configures ntp 4.2.8p4 to adapt to many kinds of systems.
d1653 1
a1653 1
     short | recursive ) echo "Configuration of ntp 4.2.8p4:";;
d1663 4
a1666 6
  --enable-silent-rules   less verbose build output (undo: "make V=1")
  --disable-silent-rules  verbose build output (undo: "make V=0")
  --enable-dependency-tracking
                          do not reject slow dependency extractors
  --disable-dependency-tracking
                          speeds up one-time build
d1699 1
a1699 1
  --with-memlock          ? =32 (-1 on linux) megabytes
a1793 1
  --enable-leap-smear     - experimental leap smear code
a1794 1
  --enable-problem-tests  + enable tests with undiagnosed problems
d1882 2
a1883 2
ntp configure 4.2.8p4
generated by GNU Autoconf 2.69
d1885 1
a1885 1
Copyright (C) 2012 Free Software Foundation, Inc.
d2162 1
a2162 1
	 test -x conftest$ac_exeext
d2350 1
a2350 1
	 test -x conftest$ac_exeext
d2440 1
a2440 2
test_array [0] = 0;
return test_array [0];
d2456 1
a2456 2
test_array [0] = 0;
return test_array [0];
d2482 1
a2482 2
test_array [0] = 0;
return test_array [0];
d2498 1
a2498 2
test_array [0] = 0;
return test_array [0];
d2532 1
a2532 2
test_array [0] = 0;
return test_array [0];
d2707 2
a2708 2
It was created by ntp $as_me 4.2.8p4, which was
generated by GNU Autoconf 2.69.  Invocation command line was
a3085 6
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

d3216 1
a3216 1
am__api_version='1.15'
d3255 1
a3255 1
	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d3313 3
d3326 1
a3326 1
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
d3329 1
a3329 1
# Do 'set' in a subshell so we don't clobber the current shell's
d3335 16
a3350 10
   am_has_slept=no
   for am_try in 1 2; do
     echo "timestamp, slept: $am_has_slept" > conftest.file
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
     if test "$*" = "X"; then
	# -L didn't work.
	set X `ls -t "$srcdir/configure" conftest.file`
     fi
     if test "$*" != "X $srcdir/configure conftest.file" \
	&& test "$*" != "X conftest.file $srcdir/configure"; then
a3351 14
	# If neither matched, then we have a broken ls.  This can happen
	# if, for instance, CONFIG_SHELL is bash and it inherits a
	# broken ls alias from the environment.  This has actually
	# happened.  Such a system could not be considered "sane".
	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  alias in your environment" "$LINENO" 5
     fi
     if test "$2" = conftest.file || test $am_try -eq 2; then
       break
     fi
     # Just in case.
     sleep 1
     am_has_slept=yes
   done
a3362 10
# If we didn't sleep, we still need to ensure time stamps of config.status and
# generated files are strictly newer.
am_sleep_pid=
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  ( sleep 1 ) &
  am_sleep_pid=$!
fi

rm -f conftest.file

d3373 2
a3374 2
# Expand $ac_aux_dir to an absolute path.
am_aux_dir=`cd "$ac_aux_dir" && pwd`
d3385 2
a3386 2
if eval "$MISSING --is-lightweight"; then
  am_missing_run="$MISSING "
d3389 2
a3390 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
d3393 1
a3393 1
if test x"${install_sh+set}" != xset; then
d3402 2
a3403 2
# Installed binaries are usually stripped using 'strip' when the user
# run "make install-strip".  However 'strip' might not be the right
d3405 1
a3405 1
# will honor the 'STRIP' environment variable to overrule this program.
d3424 1
a3424 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3464 1
a3464 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3515 1
a3515 1
	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
d3544 6
d3568 1
a3568 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a3631 39
# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in # (((
  yes) AM_DEFAULT_VERBOSITY=0;;
   no) AM_DEFAULT_VERBOSITY=1;;
    *) AM_DEFAULT_VERBOSITY=1;;
esac
am_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if ${am_cv_make_support_nested_variables+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
	@@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  am_cv_make_support_nested_variables=yes
else
  am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
    AM_V='$(V)'
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
  AM_V=$AM_DEFAULT_VERBOSITY
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
AM_BACKSLASH='\'

d3654 1
a3654 1
 VERSION='4.2.8p4'
d3682 3
a3684 5
# For better backward compatibility.  To be removed once Automake 1.9.x
# dies out for good.  For more background, see:
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
mkdir_p='$(MKDIR_P)'
d3686 1
a3686 5
# We need awk for the "check" target (and possibly the TAP driver).  The
# system "awk" is bad on some platforms.
# Always define AMTAR for backward compatibility.  Yes, it's still used
# in the wild :-(  We should find a proper way to deprecate it ...
AMTAR='$${TAR-tar}'
d3688 1
a3689 2
# We'll loop over all known methods to create a tar archive until one works.
_am_tools='gnutar  pax cpio none'
a3690 1
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
a3694 45


# POSIX will say in a future version that running "rm -f" with no argument
# is OK; and we want to be able to make that assumption in our Makefile
# recipes.  So use an aggressive probe to check that the usage we want is
# actually supported "in the wild" to an acceptable degree.
# See automake bug#10828.
# To make any issue more visible, cause the running configure to be aborted
# by default if the 'rm' program in use doesn't match our expectations; the
# user can still override this though.
if rm -f && rm -fr && rm -rf; then : OK; else
  cat >&2 <<'END'
Oops!

Your 'rm' program seems unable to run without file operands specified
on the command line, even when the '-f' option is present.  This is contrary
to the behaviour of most rm programs out there, and not conforming with
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>

Please tell bug-automake@@gnu.org about your system, including the value
of your $PATH and any error possibly output before this message.  This
can help us improve future automake versions.

END
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
    echo 'Configuration will proceed anyway, since you have set the' >&2
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
    echo >&2
  else
    cat >&2 <<'END'
Aborting the configuration process, to ensure you take notice of the issue.

You can download and install GNU coreutils to get an 'rm' implementation
that behaves properly: <http://www.gnu.org/software/coreutils/>.

If you want to complete the configuration process using your problematic
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
to "yes", and re-run configure.

END
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  fi
fi


d3700 4
a3703 4
case $enable_silent_rules in # (((
  yes) AM_DEFAULT_VERBOSITY=0;;
   no) AM_DEFAULT_VERBOSITY=1;;
    *) AM_DEFAULT_VERBOSITY=0;;
a3704 27
am_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if ${am_cv_make_support_nested_variables+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
	@@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  am_cv_make_support_nested_variables=yes
else
  am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
    AM_V='$(V)'
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
  AM_V=$AM_DEFAULT_VERBOSITY
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
d3812 1
a3812 1
# Ignore all kinds of additional output from 'make'.
a3844 1
  am__nodep='_no'
d3877 1
a3877 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3917 1
a3917 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3970 1
a3970 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4011 1
a4011 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4069 1
a4069 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4113 1
a4113 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4559 2
a4560 1
struct stat;
a4644 59
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
if ${am_cv_prog_cc_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
  # Make sure it works both with $CC and with simple cc.
  # Following AC_PROG_CC_C_O, we do the test twice because some
  # compilers refuse to overwrite an existing .o file with -o,
  # though they will create one.
  am_cv_prog_cc_c_o=yes
  for am_i in 1 2; do
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } \
         && test -f conftest2.$ac_objext; then
      : OK
    else
      am_cv_prog_cc_c_o=no
      break
    fi
  done
  rm -f core conftest*
  unset am_i
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
$as_echo "$am_cv_prog_cc_c_o" >&6; }
if test "$am_cv_prog_cc_c_o" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


d4656 2
a4657 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d4691 3
a4693 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d4697 1
a4697 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d4699 2
a4700 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d4709 2
a4710 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d4717 2
a4718 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d4927 1
a4927 1
      as_fn_executable_p "$ac_path_GREP" || continue
d4993 1
a4993 1
      as_fn_executable_p "$ac_path_EGREP" || continue
d5241 110
d5363 2
a5364 1
struct stat;
d5590 1
a5590 1
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
d5647 1
a5647 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5687 1
a5687 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5740 1
a5740 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5781 1
a5781 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5839 1
a5839 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5883 1
a5883 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d6079 2
a6080 1
struct stat;
a6164 59
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
if ${am_cv_prog_cc_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
  # Make sure it works both with $CC and with simple cc.
  # Following AC_PROG_CC_C_O, we do the test twice because some
  # compilers refuse to overwrite an existing .o file with -o,
  # though they will create one.
  am_cv_prog_cc_c_o=yes
  for am_i in 1 2; do
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } \
         && test -f conftest2.$ac_objext; then
      : OK
    else
      am_cv_prog_cc_c_o=no
      break
    fi
  done
  rm -f core conftest*
  unset am_i
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
$as_echo "$am_cv_prog_cc_c_o" >&6; }
if test "$am_cv_prog_cc_c_o" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


d6176 2
a6177 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d6211 3
a6213 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d6217 1
a6217 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d6219 2
a6220 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d6229 2
a6230 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d6237 2
a6238 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d6294 14
d6615 1
a6615 1
    # allow ntp_os_cflags to be preset to skip this stuff
d6658 1
a6658 1
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
d6668 1
a6668 1
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
d6703 1
a6703 1
    case "$ntp_os_cflags" in
a6713 32
    ###
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
$as_echo_n "checking additional linker flags... " >&6; }
    # HMS: The following might still need tweaking
    # allow ntp_os_ldflags to be preset to skip this stuff
    case "${ntp_os_ldflags+set}" in
     set)
	;;
     *)
	ntp_os_ldflags=
	case "$host_os" in
	 hpux*)
	    case "$GCC" in
	     yes)
		ntp_os_ldflags="-Wl,+allowdups"
		;;
	    esac
	    ;;
	esac
	;;
    esac
    case "$ntp_os_ldflags" in
     '')
	ntp_os_ldflags_msg="none needed"
	;;
     *)
	ntp_os_ldflags_msg="$ntp_os_ldflags"
    esac
    LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
$as_echo "$ntp_os_ldflags_msg" >&6; }
    { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
a7250 1
# Do we need CXX for anything besides google test?
d7279 1
a7279 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7323 1
a7323 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7519 2
a7520 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d7554 3
a7556 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d7560 1
a7560 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d7562 2
a7563 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d7572 2
a7573 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d7580 2
a7581 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d7653 1
a7653 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8004 171
if test -n "$ac_tool_prefix"; then
  for ac_prog in ar lib "link -lib"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar lib "link -lib"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_AR" && break
done

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
fi

: ${AR=ar}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
$as_echo_n "checking the archiver ($AR) interface... " >&6; }
if ${am_cv_ar_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

   am_cv_ar_interface=ar
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int some_variable = 0;
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  (eval $am_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
        am_cv_ar_interface=ar
      else
        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  (eval $am_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        if test "$ac_status" -eq 0; then
          am_cv_ar_interface=lib
        else
          am_cv_ar_interface=unknown
        fi
      fi
      rm -f conftest.lib libconftest.a

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
$as_echo "$am_cv_ar_interface" >&6; }

case $am_cv_ar_interface in
ar)
  ;;
lib)
  # Microsoft lib, so override with the ar-lib wrapper script.
  # FIXME: It is wrong to rewrite AR.
  # But if we don't then we get into trouble of one sort or another.
  # A longer-term fix would be to have automake use am__AR in this case,
  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  # similar.
  AR="$am_aux_dir/ar-lib $AR"
  ;;
unknown)
  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  ;;
esac

d8048 2
a8049 2
macro_version='2.4.2'
macro_revision='1.3337'
d8156 1
a8156 1
      as_fn_executable_p "$ac_path_SED" || continue
d8235 1
a8235 1
      as_fn_executable_p "$ac_path_FGREP" || continue
d8491 1
a8491 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8535 1
a8535 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8954 1
a8954 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8994 1
a8994 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9300 1
a9300 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9340 1
a9340 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9443 1
a9443 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9487 1
a9487 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9612 1
a9612 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9652 1
a9652 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9711 1
a9711 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9751 1
a9751 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10386 1
a10386 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10426 1
a10426 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10506 1
a10506 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10546 1
a10546 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10598 1
a10598 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10638 1
a10638 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10690 1
a10690 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10730 1
a10730 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10782 1
a10782 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10822 1
a10822 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10874 1
a10874 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10914 1
a10914 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d18808 3
a18810 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
$as_echo_n "checking size of char *... " >&6; }
if ${ac_cv_sizeof_char_p+:} false; then :
d18813 1
a18813 1
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
d18816 1
a18816 1
  if test "$ac_cv_type_char_p" = yes; then
d18819 1
a18819 1
as_fn_error 77 "cannot compute sizeof (char *)
d18822 1
a18822 1
     ac_cv_sizeof_char_p=0
d18827 2
a18828 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
$as_echo "$ac_cv_sizeof_char_p" >&6; }
d18833 1
a18833 1
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
d19297 1
a19297 1
      as_fn_executable_p "$ac_path_SED" || continue
d19501 1
a19501 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d19544 1
a19544 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a19618 1

a19631 1
	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
a19660 3
	    # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
	    # is "pthreads"?
	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
a19685 1

a19760 57
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
$as_echo_n "checking for unsigned long long int... " >&6; }
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_unsigned_long_long_int=yes
     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

else
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h

  fi


d19893 1
a19893 2
test_array [0] = 0;
return test_array [0];
a19915 1

d19921 34
a19955 5
      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
	if test $ac_cv_type_long_long_int = yes; then
	  	  	  	  if test "$cross_compiling" = yes; then :
  :
d19960 5
a19964 5
		 #ifndef LLONG_MAX
		 # define HALF \
			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
		 # define LLONG_MAX (HALF - 1 + HALF)
		 #endif
d19969 10
a19978 10
		 int i;
		 for (i = 0; ; i++)
		   {
		     long long int m = n << i;
		     if (m >> i != n)
		       return 1;
		     if (LLONG_MAX / 2 < m)
		       break;
		   }
		 return 0;
d19984 1
a19984 1

d19992 5
a19996 2
	fi
      fi
d20012 1
a20012 3
  ac_cv_type_unsigned_long_long_int=yes
     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20045 1
a20045 1

a20050 1
     fi
d20125 1
a20125 2
test_array [0] = 0;
return test_array [0];
d20179 1
a20179 1

d20181 1
a20181 1
  /* Ultrix mips cc rejects this sort of thing.  */
d20183 1
a20183 1
  const charset cs = { 0, 0 };
d20200 2
a20201 3
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char tx;
    char *t = &tx;
d20217 1
a20217 1
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
d20219 2
a20220 2
    struct s { int j; const int *ap[3]; } bx;
    struct s *b = &bx; b->j = 5;
d20343 1
a20343 1

d20345 1
a20345 1
  /* Ultrix mips cc rejects this sort of thing.  */
d20347 1
a20347 1
  const charset cs = { 0, 0 };
d20364 2
a20365 3
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char tx;
    char *t = &tx;
d20381 1
a20381 1
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
d20383 2
a20384 2
    struct s { int j; const int *ap[3]; } bx;
    struct s *b = &bx; b->j = 5;
d21266 1
a21266 1
find_stack_direction (int *addr, int depth)
d21268 9
a21276 6
  int dir, dummy = 0;
  if (! addr)
    addr = &dummy;
  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  return dir + dummy;
d21280 1
a21280 1
main (int argc, char **argv)
d21282 1
a21282 1
  return find_stack_direction (0, argc + !argv + 20) < 0;
d22255 1
a22255 2
test_array [0] = 0;
return test_array [0];
d22584 1
a22584 2
 no) ;;
 *)
d22654 1
a22654 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a26000 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
$as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}

a27040 4




d27066 50
a28280 3
     *-stratus-vos)
	ans=no
	;;
a28358 3
     *-stratus-vos)
	ans=no
	;;
a28421 3
     *-stratus-vos)
	ans=no
	;;
d28601 1
a28601 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28748 1
a28748 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28789 1
a28789 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28864 1
a28864 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a28891 14
case "$PATH_NET_SNMP_CONFIG" in
 /*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
$as_echo_n "checking for net-snmp version... " >&6; }
if ${ntp_cv_net_snmp_version+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
$as_echo "$ntp_cv_net_snmp_version" >&6; }
	;;
esac

d29312 1
a29312 1
for ac_header in sgtty.h stdatomic.h stdlib.h string.h termio.h
a29629 47
case "$ac_cv_header_stdatomic_h" in
 yes)
	for ac_func in atomic_thread_fence
do :
  ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ATOMIC_THREAD_FENCE 1
_ACEOF

fi
done

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
$as_echo_n "checking for atomic_thread_fence()... " >&6; }
if ${ntp_cv_func_atomic_thread_fence+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <stdatomic.h>

int
main ()
{

			atomic_thread_fence(memory_order_seq_cst);


  ;
  return 0;
}
		ntp_cv_func_atomic_thread_fence=yes
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_func_atomic_thread_fence=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
$as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
    ;;
esac

a30808 5
case "$host" in
 *-*-*linux*)
    ntp_dflt_rlimit_memlock="-1" ;;
 *) ntp_dflt_rlimit_memlock="32" ;;
esac
d30812 1
a30812 1
    HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock"  ;;
d30861 2
d30912 1
a30912 1
    ans=$ntp_dflt_rlimit_memlock
a30926 1

a33976 1
# Because we don't want -Werror for the EVP_MD_do_all_sorted check
a33977 18

case "$ntp_openssl" in
 yes)
    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
    for ac_func in EVP_MD_do_all_sorted
do :
  ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_EVP_MD_DO_ALL_SORTED 1
_ACEOF

fi
done

    ;;
esac

a34493 3
	 *-stratus-vos)
	    ans=no
	    ;;
a34555 3
	 *-stratus-vos)
	    ans=no
	    ;;
a35006 5
	# Bug 2815.  This is a bit of a hack, but it works...
	case "$ntp_cv_net_snmp_version" in
	 5.3*)	SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
		;;
	esac
a35166 3
 *-stratus-vos)
    ans=no
    ;;
a36346 88
###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
$as_echo_n "checking if we want the experimental leap smear code... " >&6; }
# Check whether --enable-leap-smear was given.
if test "${enable_leap_smear+set}" = set; then :
  enableval=$enable_leap_smear; ntp_ok=$enableval
else
  ntp_ok=no

fi

ntp_leap_smear_enabled=0
case "$ntp_ok" in
 yes)
    ntp_leap_smear_enabled=1

$as_echo "#define LEAP_SMEAR 1" >>confdefs.h


    HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }


# We may not need have_unity
have_unity=false
# Extract the first word of "ruby", so it can be a program name with args.
set dummy ruby; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_RUBY+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_RUBY in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_RUBY=$ac_cv_path_PATH_RUBY
if test -n "$PATH_RUBY"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
$as_echo "$PATH_RUBY" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


case "$PATH_RUBY" in
 /*)
    have_unity=true
    ;;
 *) PATH_RUBY="false"
    ;;
esac
# We may not need UNITYBUILD_AVAILABLE
 if $have_unity; then
  UNITYBUILD_AVAILABLE_TRUE=
  UNITYBUILD_AVAILABLE_FALSE='#'
else
  UNITYBUILD_AVAILABLE_TRUE='#'
  UNITYBUILD_AVAILABLE_FALSE=
fi




d36378 1
a36378 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a36446 75

case "$build" in
 $host)	cross=0 ;;
 *)	cross=1 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
$as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
# Check whether --enable-problem-tests was given.
if test "${enable_problem_tests+set}" = set; then :
  enableval=$enable_problem_tests; ntp_ept=$enableval
else
  ntp_ept=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
$as_echo "$ntp_ept" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
$as_echo_n "checking if we can run test-ntp_restrict... " >&6; }
ntp_test_ntp_restrict="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 no:0:*-*-hpux-11.23*) ;;
 *) ntp_test_ntp_restrict="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
$as_echo "$ntp_test_ntp_restrict" >&6; }
 if test x$ntp_test_ntp_restrict = xyes; then
  BUILD_TEST_NTP_RESTRICT_TRUE=
  BUILD_TEST_NTP_RESTRICT_FALSE='#'
else
  BUILD_TEST_NTP_RESTRICT_TRUE='#'
  BUILD_TEST_NTP_RESTRICT_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
$as_echo_n "checking if we can run test-ntp_scanner... " >&6; }
ntp_test_ntp_scanner="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 *) ntp_test_ntp_scanner="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
$as_echo "$ntp_test_ntp_scanner" >&6; }
 if test x$ntp_test_ntp_scanner = xyes; then
  BUILD_TEST_NTP_SCANNER_TRUE=
  BUILD_TEST_NTP_SCANNER_FALSE='#'
else
  BUILD_TEST_NTP_SCANNER_TRUE='#'
  BUILD_TEST_NTP_SCANNER_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
$as_echo_n "checking if we can run test-ntp_signd... " >&6; }
ntp_test_ntp_signd="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 *) ntp_test_ntp_signd="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
$as_echo "$ntp_test_ntp_signd" >&6; }
 if test x$ntp_test_ntp_signd = xyes; then
  BUILD_TEST_NTP_SIGND_TRUE=
  BUILD_TEST_NTP_SIGND_FALSE='#'
else
  BUILD_TEST_NTP_SIGND_TRUE='#'
  BUILD_TEST_NTP_SIGND_FALSE=
fi



a36532 2
ac_config_files="$ac_config_files scripts/update-leap/update-leap"

a36534 2
ac_config_files="$ac_config_files tests/bug-2803/Makefile"

a36538 6
ac_config_files="$ac_config_files tests/ntpq/Makefile"

ac_config_files="$ac_config_files tests/sandbox/Makefile"

ac_config_files="$ac_config_files tests/sec-2853/Makefile"

a36687 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
$as_echo_n "checking that generated files are newer than configure... " >&6; }
   if test -n "$am_sleep_pid"; then
     # Hide warnings about reused PIDs.
     wait $am_sleep_pid 2>/dev/null
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
$as_echo "done" >&6; }
a36760 4
if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
  as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a36764 12
if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d37063 1
a37063 1
    # In both cases, we have to default to `cp -pR'.
d37065 1
a37065 1
      as_ln_s='cp -pR'
d37069 1
a37069 1
    as_ln_s='cp -pR'
d37072 1
a37072 1
  as_ln_s='cp -pR'
d37132 22
a37153 10

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
as_test_x='test -x'
as_executable_p=as_fn_executable_p
d37174 2
a37175 2
This file was extended by ntp $as_me 4.2.8p4, which was
generated by GNU Autoconf 2.69.  Invocation command line was
d37241 2
a37242 2
ntp config.status 4.2.8p4
configured by $0, generated by GNU Autoconf 2.69,
d37245 1
a37245 1
Copyright (C) 2012 Free Software Foundation, Inc.
d37336 1
a37336 1
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
a37782 1
    "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
a37783 1
    "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
a37785 3
    "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;;
    "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
    "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
d38422 1
a38422 1
  # Older Autoconf quotes --file arguments for eval, but not when files
d38435 1
a38435 1
    # We used to match only the files named 'Makefile.in', but
d38469 1
a38469 1
    # from the Makefile without running 'make'.
d38473 1
a38473 1
    test -z "$am__include" && continue
d38475 2
d38483 1
a38483 1
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
d39318 1
a39318 1
    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' -e '/^$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
a39327 1
    "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
@


1.1.1.3.4.4
log
@Pull up following revision(s) (requested by snj in ticket #1166):
	doc/3RDPARTY: patch
	external/bsd/ntp/Makefile.inc: up to 1.15 via patch
	external/bsd/ntp/bin/ntpd/Makefile: up to 1.21
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.9
	external/bsd/ntp/dist/CommitLog: up to 1.1.1.9
	external/bsd/ntp/dist/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/NEWS: up to 1.1.1.9
	external/bsd/ntp/dist/README.pullrequests: up to 1.1.1.1
	external/bsd/ntp/dist/config.h.in: up to 1.1.1.8
	external/bsd/ntp/dist/configure: up to 1.1.1.9
	external/bsd/ntp/dist/configure.ac: up to 1.1.1.8
	external/bsd/ntp/dist/html/authentic.html: up to 1.1.1.3
	external/bsd/ntp/dist/html/miscopt.html: up to 1.1.1.8
	external/bsd/ntp/dist/html/monopt.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/xleave.html: up to 1.1.1.4
	external/bsd/ntp/dist/include/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/include/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/include/ntp.h: up to 1.6
	external/bsd/ntp/dist/include/ntp_io.h: up to 1.5
	external/bsd/ntp/dist/include/ntp_keyacc.h: up to 1.1.1.1
	external/bsd/ntp/dist/include/ntp_refclock.h: up to 1.5
	external/bsd/ntp/dist/include/ntp_stdlib.h: up to 1.13
	external/bsd/ntp/dist/include/ntp_types.h: up to 1.6
	external/bsd/ntp/dist/include/ntp_worker.h: up to 1.5
	external/bsd/ntp/dist/include/ntpd.h: up to 1.8
	external/bsd/ntp/dist/include/parse.h: up to 1.6
	external/bsd/ntp/dist/include/recvbuff.h: up to 1.5
	external/bsd/ntp/dist/include/safecast.h: up to 1.1.1.2
	external/bsd/ntp/dist/install-sh                delete
	external/bsd/ntp/dist/lib/isc/backtrace.c: up to 1.6
	external/bsd/ntp/dist/lib/isc/buffer.c: up to 1.4
	external/bsd/ntp/dist/lib/isc/hmacmd5.c: up to 1.5
	external/bsd/ntp/dist/lib/isc/hmacsha.c: up to 1.5
	external/bsd/ntp/dist/lib/isc/include/isc/string.h: up to 1.5
	external/bsd/ntp/dist/lib/isc/inet_aton.c: up to 1.4
	external/bsd/ntp/dist/lib/isc/inet_pton.c: up to 1.7
	external/bsd/ntp/dist/lib/isc/log.c: up to 1.7
	external/bsd/ntp/dist/lib/isc/netaddr.c: up to 1.9
	external/bsd/ntp/dist/lib/isc/sockaddr.c: up to 1.7
	external/bsd/ntp/dist/lib/isc/task.c: up to 1.4
	external/bsd/ntp/dist/lib/isc/tsmemcmp.c: up to 1.1.1.1
	external/bsd/ntp/dist/lib/isc/win32/interfaceiter.c: up to 1.4
	external/bsd/ntp/dist/lib/isc/win32/net.c: up to 1.4
	external/bsd/ntp/dist/libntp/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/libntp/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/libntp/a_md5encrypt.c: up to 1.5
	external/bsd/ntp/dist/libntp/atolfp.c: up to 1.8
	external/bsd/ntp/dist/libntp/authkeys.c: up to 1.10
	external/bsd/ntp/dist/libntp/authreadkeys.c: up to 1.9
	external/bsd/ntp/dist/libntp/authusekey.c: up to 1.5
	external/bsd/ntp/dist/libntp/dolfptoa.c: up to 1.4
	external/bsd/ntp/dist/libntp/hextolfp.c: up to 1.7
	external/bsd/ntp/dist/libntp/is_ip_address.c: up to 1.1.1.1
	external/bsd/ntp/dist/libntp/mstolfp.c: up to 1.7
	external/bsd/ntp/dist/libntp/msyslog.c: up to 1.5
	external/bsd/ntp/dist/libntp/ntp_crypto_rnd.c: up to 1.5
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to 1.9
	external/bsd/ntp/dist/libntp/ntp_lineedit.c: up to 1.9
	external/bsd/ntp/dist/libntp/ntp_rfc2553.c: up to 1.5
	external/bsd/ntp/dist/libntp/ntp_worker.c: up to 1.6
	external/bsd/ntp/dist/libntp/recvbuff.c: up to 1.6
	external/bsd/ntp/dist/libntp/snprintf.c: up to 1.4
	external/bsd/ntp/dist/libntp/socktohost.c: up to 1.5
	external/bsd/ntp/dist/libntp/systime.c: up to 1.5
	external/bsd/ntp/dist/libntp/work_fork.c: up to 1.9
	external/bsd/ntp/dist/libntp/work_thread.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_computime.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_dcf7000.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_hopf6021.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_meinberg.c: up to 1.6
	external/bsd/ntp/dist/libparse/clk_rawdcf.c: up to 1.7
	external/bsd/ntp/dist/libparse/clk_rcc8000.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_schmid.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_trimtaip.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_varitext.c: up to 1.5
	external/bsd/ntp/dist/libparse/clk_wharton.c: up to 1.5
	external/bsd/ntp/dist/libparse/parse.c: up to 1.5
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to 1.1.1.6
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.def: up to 1.1.1.3
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.16
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to 1.22
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.13
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_refclock.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_request.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_restrict.c: up to 1.8
	external/bsd/ntp/dist/ntpd/ntp_signd.c: up to 1.4
	external/bsd/ntp/dist/ntpd/ntp_timer.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntp_util.c: up to 1.8
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.7
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.c: up to 1.13
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/refclock_chu.c: up to 1.9
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to 1.9
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to 1.10
	external/bsd/ntp/dist/ntpd/refclock_local.c: up to 1.5
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to 1.18
	external/bsd/ntp/dist/ntpd/refclock_shm.c: up to 1.8
	external/bsd/ntp/dist/ntpd/refclock_true.c: up to 1.6
	external/bsd/ntp/dist/ntpd/refclock_tsyncpci.c: up to 1.4
	external/bsd/ntp/dist/ntpdate/ntpdate.c: up to 1.10
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.7
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.c: up to 1.13
	external/bsd/ntp/dist/ntpdc/ntpdc.h: up to 1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpdc/ntpdc_ops.c: up to 1.8
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.7
	external/bsd/ntp/dist/ntpq/libntpq.c: up to 1.4
	external/bsd/ntp/dist/ntpq/libntpq.h: up to 1.5
	external/bsd/ntp/dist/ntpq/libntpq_subs.c: up to 1.4
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.7
	external/bsd/ntp/dist/ntpq/ntpq-opts.def: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.7
	external/bsd/ntp/dist/ntpq/ntpq-subs.c: up to 1.14
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.c: up to 1.15
	external/bsd/ntp/dist/ntpq/ntpq.h: up to 1.9
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.5
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/config.h.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/crypto.c: up to 1.10
	external/bsd/ntp/dist/sntp/crypto.h: up to 1.5
	external/bsd/ntp/dist/sntp/include/copyright.def: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/install-sh           delete
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/test/regress.gen.c: up to 1.5
	external/bsd/ntp/dist/sntp/libopts/configfile.c: up to 1.8
	external/bsd/ntp/dist/sntp/libopts/enum.c: up to 1.8
	external/bsd/ntp/dist/sntp/libopts/init.c: up to 1.8
	external/bsd/ntp/dist/sntp/libopts/nested.c: up to 1.10
	external/bsd/ntp/dist/sntp/libopts/parse-duration.c: up to 1.9
	external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/m4/ntp_problemtests.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/main.c: up to 1.15
	external/bsd/ntp/dist/sntp/networking.c: up to 1.14
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.8
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.7
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/tests/crypto.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.c: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h.in: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/keyFile.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/kodDatabase.c: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/kodFile.c: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/packetHandling.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/packetProcessing.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/run-kodDatabase.c: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/run-t-log.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/t-log.c: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/tests/utilities.c: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/unity/unity_internals.h: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/version.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/bug-2803/bug-2803.c: up to 1.1.1.4
	external/bsd/ntp/dist/tests/bug-2803/run-bug-2803.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/authkeys.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/buftvtots.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/calendar.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/caljulian.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/clocktime.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/decodenetnum.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/humandate.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/lfpfunc.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/lfptostr.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/modetoa.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/msyslog.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/netof.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/numtoa.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/numtohost.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/octtoint.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/prettydate.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/recvbuff.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/refidsmear.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/refnumtoa.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-a_md5encrypt.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-authkeys.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-calendar.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-decodenetnum.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-humandate.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-lfpfunc.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-lfptostr.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-modetoa.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-msyslog.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-netof.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-numtoa.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-numtohost.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-prettydate.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-refnumtoa.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-sfptostr.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-socktoa.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-statestr.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-strtolfp.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-timespecops.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/run-timevalops.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-tsafememcmp.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/run-uglydate.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/sfptostr.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/socktoa.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/ssl_init.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/statestr.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/strtolfp.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/timespecops.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/timevalops.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/tsafememcmp.c: up to 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/uglydate.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/ntpd/leapsec.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/ntp_prio_q.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/ntp_restrict.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/rc_cmdlength.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-leapsec.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-ntp_restrict.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-rc_cmdlength.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/run-t-ntp_signd.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/t-ntp_scanner.c: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/t-ntp_signd.c: up to 1.1.1.4
	external/bsd/ntp/dist/tests/ntpq/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/tests/ntpq/Makefile.in: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/run-uglydate.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/sandbox/smeartest.c: up to 1.1.1.5
	external/bsd/ntp/dist/tests/sandbox/uglydate.c: up to 1.1.1.4
	external/bsd/ntp/dist/tests/sec-2853/sec-2853.c: up to 1.1.1.5
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.12
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.7
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.c: up to 1.10
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/importdate: up to 1.9
	external/bsd/ntp/include/config.h: up to 1.16
	external/bsd/ntp/lib/libiscntp/Makefile: up to 1.14
	external/bsd/ntp/lib/libntp/Makefile: up to 1.18
	external/bsd/ntp/scripts/mkver: up to 1.10
Update ntp to 4.2.8p7.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p7.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p7'
PACKAGE_STRING='ntp 4.2.8p7'
a1052 1
enable_bug3020_fix
a1060 1
enable_dynamic_interleave
d1619 1
a1619 1
\`configure' configures ntp 4.2.8p7 to adapt to many kinds of systems.
d1689 1
a1689 1
     short | recursive ) echo "Configuration of ntp 4.2.8p7:";;
a1822 1
  --enable-bug3020-fix    + Provide the explicit 127.0.0.0/8 martian filter
a1832 2
  --enable-dynamic-interleave
                          - dynamic interleave support
d1922 1
a1922 1
ntp configure 4.2.8p7
d2752 1
a2752 1
It was created by ntp $as_me 4.2.8p7, which was
d3753 1
a3753 1
 VERSION='4.2.8p7'
d20021 1
a20021 1
	    for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
a20023 1
		 -D*) ;;
a22119 3

$as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h

d29708 1
a29708 107
for ac_header in sgtty.h stdatomic.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
if ${ac_cv_header_stdbool_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

             #include <stdbool.h>
             #ifndef bool
              "error: bool is not defined"
             #endif
             #ifndef false
              "error: false is not defined"
             #endif
             #if false
              "error: false is not 0"
             #endif
             #ifndef true
              "error: true is not defined"
             #endif
             #if true != 1
              "error: true is not 1"
             #endif
             #ifndef __bool_true_false_are_defined
              "error: __bool_true_false_are_defined is not defined"
             #endif

             struct s { _Bool s: 1; _Bool t; } s;

             char a[true == 1 ? 1 : -1];
             char b[false == 0 ? 1 : -1];
             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
             char d[(bool) 0.5 == true ? 1 : -1];
             /* See body of main program for 'e'.  */
             char f[(_Bool) 0.0 == false ? 1 : -1];
             char g[true];
             char h[sizeof (_Bool)];
             char i[sizeof s.t];
             enum { j = false, k = true, l = false * true, m = true * 256 };
             /* The following fails for
                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
             _Bool n[m];
             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
             /* Catch a bug in an HP-UX C compiler.  See
                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
              */
             _Bool q = true;
             _Bool *pq = &q;

int
main ()
{

             bool e = &s;
             *pq |= q;
             *pq |= ! q;
             /* Refer to every declared value, to avoid compiler optimizations.  */
             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
                     + !m + !n + !o + !p + !q + !pq);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdbool_h=yes
else
  ac_cv_header_stdbool_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
$as_echo "$ac_cv_header_stdbool_h" >&6; }
   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
if test "x$ac_cv_type__Bool" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE__BOOL 1
_ACEOF


fi


if test $ac_cv_header_stdbool_h = yes; then

$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h

fi

for ac_header in stdlib.h string.h termio.h
a35833 20
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5
$as_echo_n "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; }
# Check whether --enable-bug3020-fix was given.
if test "${enable_bug3020_fix+set}" = set; then :
  enableval=$enable_bug3020_fix; ans=$enableval
else
  ans=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 yes)

$as_echo "#define ENABLE_BUG3020_FIX 1" >>confdefs.h

esac


a36852 26
###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5
$as_echo_n "checking if we want dynamic interleave support... " >&6; }
# Check whether --enable-dynamic-interleave was given.
if test "${enable_dynamic_interleave+set}" = set; then :
  enableval=$enable_dynamic_interleave; ntp_ok=$enableval
else
  ntp_ok=no

fi

ntp_dynamic_interleave=0
case "$ntp_ok" in
 yes)
    ntp_dynamic_interleave=1
    ;;
esac

cat >>confdefs.h <<_ACEOF
#define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave
_ACEOF

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

a37037 2
 no:0:*-*-freebsd6.4) ;;
 no:0:*-*-hpux11.23*) ;;
d37039 1
a37056 1
 no:0:*-*-freebsd6.4) ;;
a37074 1
 no:0:*-*-freebsd6.4) ;;
d37839 1
a37839 1
This file was extended by ntp $as_me 4.2.8p7, which was
d37906 1
a37906 1
ntp config.status 4.2.8p7
@


1.1.1.3.4.5
log
@Pull up following revision(s) (requested by snj in ticket #1204):
	doc/3RDPARTY: 1.1336, 1.1337 via patch
	external/bsd/ntp/Makefile.inc: up to 1.16 via patch
	external/bsd/ntp/bin/Makefile: up to 1.3
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.10
	external/bsd/ntp/dist/CommitLog: up to 1.1.1.10
	external/bsd/ntp/dist/NEWS: up to 1.1.1.10
	external/bsd/ntp/dist/configure: up to 1.1.1.10
	external/bsd/ntp/dist/configure.ac: up to 1.1.1.9
	external/bsd/ntp/dist/html/miscopt.html: up to 1.1.1.9
	external/bsd/ntp/dist/include/ntp.h: up to 1.7
	external/bsd/ntp/dist/include/ntp_md5.h: up to 1.6
	external/bsd/ntp/dist/libntp/a_md5encrypt.c: up to 1.6
	external/bsd/ntp/dist/ntpd/complete.conf.in: up to 1.1.1.4
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to 1.1.1.6
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.15
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.17
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to 1.23
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.13
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.8
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.11
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to 1.19
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.8
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.8
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.8
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.8
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.8
	external/bsd/ntp/dist/ntpdc/ntpdc.c: up to 1.14
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.8
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.8
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.8
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.8
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.8
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.8
	external/bsd/ntp/dist/ntpq/ntpq.c: up to 1.16
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.8
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.8
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.8
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.8
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.8
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.8
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.8
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/build/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/build/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/build/genAuthors.in: up to 1.1.1.1
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.in: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/plot_summary-opts.def: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.6
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.6
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.6
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.6
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.6
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.6
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/aclocal.m4: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/configure.ac: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/crypto.c: up to 1.11
	external/bsd/ntp/dist/sntp/include/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/libopts/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/m4/ntp_problemtests.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/sntp_problemtests.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/scripts/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.9
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.8
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/tests/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/tests/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/unity/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/version.c: up to 1.1.1.7
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.8
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.13
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.8
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.8
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.8
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.8
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/importdate: up to 1.10
	external/bsd/ntp/include/config.h: up to 1.18
	external/bsd/ntp/scripts/mkver: up to 1.11
Update ntp to 4.2.8p8.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p8.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p8'
PACKAGE_STRING='ntp 4.2.8p8'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p8 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p8:";;
d1927 1
a1927 1
ntp configure 4.2.8p8
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p8, which was
d3758 1
a3758 1
 VERSION='4.2.8p8'
a37253 1

a37311 2
ac_config_files="$ac_config_files scripts/build/genAuthors"

d38003 1
a38003 1
This file was extended by ntp $as_me 4.2.8p8, which was
d38070 1
a38070 1
ntp config.status 4.2.8p8
a38597 1
    "scripts/build/genAuthors") CONFIG_FILES="$CONFIG_FILES scripts/build/genAuthors" ;;
a40151 1
    "scripts/build/genAuthors":F) chmod +x scripts/build/genAuthors ;;
@


1.1.1.3.4.6
log
@Pull up following revision(s) (requested by snj in ticket #1389):
	doc/3RDPARTY: 1.1380, 1.1381
	external/bsd/ntp/Makefile.inc: up to 1.16 via patch
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.11
	external/bsd/ntp/dist/CommitLog: up to 1.1.1.11
	external/bsd/ntp/dist/NEWS: up to 1.1.1.11
	external/bsd/ntp/dist/configure: up to 1.1.1.11
	external/bsd/ntp/dist/html/drivers/driver40-ja.html: up to 1.1.1.2
	external/bsd/ntp/dist/html/drivers/driver40.html: up to 1.1.1.5
	external/bsd/ntp/dist/html/miscopt.html: up to 1.1.1.10
	external/bsd/ntp/dist/include/Makefile.am: up to 1.1.1.9
	external/bsd/ntp/dist/include/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/include/libssl_compat.h: up to 1.1.1.1
	external/bsd/ntp/dist/include/ntp.h: up to 1.8
	external/bsd/ntp/dist/include/ntp_intres.h: up to 1.5
	external/bsd/ntp/dist/include/ntpd.h: up to 1.9
	external/bsd/ntp/dist/libntp/Makefile.am: up to 1.1.1.7
	external/bsd/ntp/dist/libntp/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/libntp/a_md5encrypt.c: up to 1.7
	external/bsd/ntp/dist/libntp/audio.c: up to 1.11
	external/bsd/ntp/dist/libntp/libssl_compat.c: up to 1.1.1.1
	external/bsd/ntp/dist/libntp/ntp_calendar.c: up to 1.9
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to 1.10
	external/bsd/ntp/dist/libntp/ssl_init.c: up to 1.9
	external/bsd/ntp/dist/libntp/work_fork.c: up to 1.10
	external/bsd/ntp/dist/libparse/clk_hopf6021.c: up to 1.6
	external/bsd/ntp/dist/ntpd/complete.conf.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.16
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.18
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to 1.13
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.15
	external/bsd/ntp/dist/ntpd/ntp_peer.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_refclock.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.12
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to 1.10
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to 1.11
	external/bsd/ntp/dist/ntpd/refclock_jupiter.c: up to 1.11
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.9
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.9
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.9
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.9
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.9
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/ntpq.c: up to 1.17
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/build/genAuthors.in: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap.in: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/crypto.c: up to 1.12
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/libevent/build-aux/config.guess: up to 1.2
	external/bsd/ntp/dist/sntp/libevent/build-aux/config.sub: up to 1.2
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.10
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.9
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/tests/packetProcessing.c: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/unity/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/unity/Makefile.in: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/unity/ulib_setup.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/ulib_teardown.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/unity_fixture.c: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/version.c: up to 1.1.1.8
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/calendar.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-calendar.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/sfptostr.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/ntpd/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.9
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.14
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.9
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.9
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/util/ntp-keygen.c: up to 1.11
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.9
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/importdate: up to 1.11
	external/bsd/ntp/include/config.h: up to 1.19
	external/bsd/ntp/lib/libntp/Makefile: up to 1.19
	external/bsd/ntp/lib/libopts/Makefile: up to 1.14
	external/bsd/ntp/scripts/mkver: up to 1.12
Update ntp to 4.2.8p9.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p9.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p9'
PACKAGE_STRING='ntp 4.2.8p9'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p9 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p9:";;
d1927 1
a1927 1
ntp configure 4.2.8p9
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p9, which was
d3758 1
a3758 1
 VERSION='4.2.8p9'
d38006 1
a38006 1
This file was extended by ntp $as_me 4.2.8p9, which was
d38073 1
a38073 1
ntp config.status 4.2.8p9
@


1.1.1.3.4.7
log
@Pull up following revision(s) (requested by spz in ticket #1405):
	doc/3RDPARTY: 1.1431
	external/bsd/ntp/bin/ntpd/ntp.keys.5: up to 1.2
	external/bsd/ntp/dist/COPYRIGHT: up to 1.1.1.8
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.12
	external/bsd/ntp/dist/CommitLog: up to 1.1.1.12
	external/bsd/ntp/dist/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/NEWS: up to 1.1.1.12
	external/bsd/ntp/dist/aclocal.m4: up to 1.1.1.10
	external/bsd/ntp/dist/adjtimed/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/adjtimed/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/clockstuff/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/clockstuff/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/config.h.in: up to 1.1.1.9
	external/bsd/ntp/dist/configure: up to 1.1.1.12
	external/bsd/ntp/dist/configure.ac: up to 1.1.1.10
	external/bsd/ntp/dist/html/copyright.html: up to 1.1.1.6
	external/bsd/ntp/dist/include/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/include/isc/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/include/libssl_compat.h: up to 1.1.1.2
	external/bsd/ntp/dist/include/ntp_crypto.h: up to 1.5
	external/bsd/ntp/dist/include/ntp_fp.h: up to 1.9
	external/bsd/ntp/dist/include/ntp_md5.h: up to 1.7
	external/bsd/ntp/dist/include/ntp_stdlib.h: up to 1.14
	external/bsd/ntp/dist/include/ntpd.h: up to 1.10
	external/bsd/ntp/dist/include/ssl_applink.c: up to 1.5
	external/bsd/ntp/dist/kernel/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/kernel/sys/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/lib/isc/inet_pton.c: up to 1.8
	external/bsd/ntp/dist/libntp/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/libntp/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/libntp/a_md5encrypt.c: up to 1.8
	external/bsd/ntp/dist/libntp/audio.c: up to 1.12
	external/bsd/ntp/dist/libntp/authkeys.c: up to 1.11
	external/bsd/ntp/dist/libntp/emalloc.c: up to 1.8
	external/bsd/ntp/dist/libntp/libssl_compat.c: up to 1.1.1.2
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to 1.11
	external/bsd/ntp/dist/libntp/recvbuff.c: up to 1.7
	external/bsd/ntp/dist/libntp/ssl_init.c: up to 1.10
	external/bsd/ntp/dist/libntp/statestr.c: up to 1.6
	external/bsd/ntp/dist/libntp/work_fork.c: up to 1.11
	external/bsd/ntp/dist/libparse/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/libparse/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/libparse/clk_trimtsip.c: up to 1.6
	external/bsd/ntp/dist/libparse/gpstolfp.c: up to 1.6
	external/bsd/ntp/dist/ntpd/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.17
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.19
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to 1.25
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.16
	external/bsd/ntp/dist/ntpd/ntp_peer.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.15
	external/bsd/ntp/dist/ntpd/ntp_restrict.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_scanner.c: up to 1.12
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.13
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/refclock_datum.c: up to 1.7
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to 1.11
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to 1.12
	external/bsd/ntp/dist/ntpd/refclock_mx4200.c: up to 1.5
	external/bsd/ntp/dist/ntpd/refclock_nmea.c: up to 1.12
	external/bsd/ntp/dist/ntpd/refclock_oncore.c: up to 1.14
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to 1.20
	external/bsd/ntp/dist/ntpdate/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/ntpdate/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdate/ntpdate.c: up to 1.11
	external/bsd/ntp/dist/ntpdc/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.c: up to 1.15
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc_ops.c: up to 1.9
	external/bsd/ntp/dist/ntpq/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/libntpq.c: up to 1.5
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpq/ntpq-subs.c: up to 1.15
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.c: up to 1.18
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.12
	external/bsd/ntp/dist/parseutil/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/parseutil/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/build/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/lib/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/update-leap/Makefile.in: up to 1.1.1.6
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/COPYRIGHT: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/aclocal.m4: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/config.h.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.12
	external/bsd/ntp/dist/sntp/configure.ac: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/crypto.c: up to 1.13
	external/bsd/ntp/dist/sntp/harden/README: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/default: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd10: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd11: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd12: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/linux: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/netbsd7.0: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/netbsd7.99: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/include/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/include/copyright.def: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/kod_management.c: up to 1.8
	external/bsd/ntp/dist/sntp/libevent/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/libevent/build-aux/compile: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/depcomp: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/install-sh: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/ltmain.sh: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/build-aux/missing: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/ylwrap: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/config.h.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/configure: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/configure.ac: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/libtool.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltoptions.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltsugar.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltversion.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/m4/lt~obsolete.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_ssl.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/m4/libtool.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltoptions.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltsugar.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltversion.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/m4/lt~obsolete.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ntp_compiler.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_harden.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/m4/ntp_openssl.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_prog_cc.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/scm-rev: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/scripts/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/scripts/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/scripts/genHardFlags: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.11
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.10
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.12
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/tests/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/unity/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/unity/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/version.c: up to 1.1.1.9
	external/bsd/ntp/dist/tests/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/tests/bug-2803/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/bug-2803/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/tests/ntpd/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/tests/ntpd/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/tests/ntpq/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpq/Makefile.in: up to 1.1.1.4
	external/bsd/ntp/dist/tests/sandbox/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/sec-2853/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sec-2853/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/util/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/util/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.15
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.10
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.c: up to 1.12
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/importdate: up to 1.12
	external/bsd/ntp/scripts/mkver: up to 1.13
Update ntp to 4.2.8p10.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p10.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p10'
PACKAGE_STRING='ntp 4.2.8p10'
d726 1
a726 1
LT_SYS_LIBRARY_PATH
a834 3
NTP_HARD_LDFLAGS
NTP_HARD_CPPFLAGS
NTP_HARD_CFLAGS
d837 6
a954 1
with_aix_soname
d1075 3
d1080 1
a1080 1
LT_SYS_LIBRARY_PATH'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p10 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p10:";;
d1710 1
a1710 1
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
a1713 3
  --with-aix-soname=aix|svr4|both
                          shared library versioning (aka "SONAME") variant to
                          provide on AIX, [default=aix].
d1715 2
a1716 2
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
                          compiler's sysroot if not specified).
d1850 2
d1858 1
a1858 2
  LT_SYS_LIBRARY_PATH
              User-defined run-time library search path.
d1927 1
a1927 1
ntp configure 4.2.8p10
d2226 38
d2331 83
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p10, which was
d3758 1
a3758 1
 VERSION='4.2.8p10'
a4039 13

case "$build" in
 *-*-freebsd1?.*)
    cclist=cc
    ;;
 *)
    cclist="cc gcc"
    ;;
esac


#AC_USE_SYSTEM_EXTENSIONS

d4046 191
a4236 1
  for ac_prog in $cclist
d4280 1
a4280 1
  for ac_prog in $cclist
d4335 2
a5016 2


d5486 92
a5577 5
   case $ac_cv_prog_cc_stdc in #(
  no) :
    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
a5749 32
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
d5751 5
a5755 8
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
a5756 4
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d5758 18
a5775 16
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d5777 8
a5784 6
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
d5786 2
a5787 2
rm -f conftest.$ac_ext
CC=$ac_save_CC
d5790 5
a5794 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
d5796 2
a5797 1
  ac_cv_prog_cc_stdc=no
d5800 1
d5802 7
a5808 5
 ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  if ${ac_cv_prog_cc_stdc+:} false; then :
d5810 28
d5840 8
a5847 10
  case $ac_cv_prog_cc_stdc in #(
  no) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;; #(
  '') :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
d5849 32
d5882 10
d5894 32
d5927 22
a5949 2
# Ralf Wildenhues: With per-target flags we need CC_C_O
# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
d5951 10
a5960 4
if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
d5963 24
a5986 9
    ac_pattern="Autoconf.*'x'"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5988 2
a5989 1
  ac_cv_prog_gcc_traditional=no
a5990 1
rm -f conftest*
d5993 2
a5994 9
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5996 28
a6023 1
rm -f conftest*
a6024 1
  fi
d6026 8
a6033 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d6037 2
d6040 12
a6051 4
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d6053 1
d6056 4
d6061 9
a6069 8

case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
d6071 14
d6086 3
a6088 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d6097 4
a6100 1
#warning foo
d6106 1
a6106 1
  ntp_cv_cpp_warning=yes
d6108 1
a6108 2
  ntp_cv_cpp_warning=no

d6111 1
d6114 12
a6125 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
d6128 5
a6132 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6137 1
void foo(void) __attribute__((__noreturn__));
d6144 1
a6144 1
  ntp_cv_cc_attribute=yes
d6146 2
a6147 26
  ntp_cv_cc_attribute=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)

$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h

esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6158 6
  ntp_cv_gcc_Wstrict_overflow=yes
else
  ntp_cv_gcc_Wstrict_overflow=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6159 12
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
  $as_echo_n "(cached) " >&6
d6161 3
a6163 2

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6175 5
a6179 4
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

d6182 18
a6199 2


d6201 3
a6203 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
d6206 25
d6232 8
a6239 4
	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6241 4
a6244 2
			#include <stdlib.h>
			#include <stdio.h>
d6246 6
d6255 1
a6255 23

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


d6260 12
a6271 1
if ac_fn_c_try_link "$LINENO"; then :
d6273 15
a6287 6
		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d6289 458
a6746 2
else
  ntp_cv_gc_sections_runs=no
d6926 1
d7324 13
a7336 8

for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
d7339 144
a7482 2
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
d7491 1
a7491 1
    ac_cv_prog_YACC="$ac_prog"
d7501 4
a7504 4
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
d7511 28
a7538 1
  test -n "$YACC" && break
d7540 2
a7541 1
test -n "$YACC" || YACC="yacc"
d7543 6
a7548 4
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if ${ac_cv_prog_cc_c99+:} false; then :
  $as_echo_n "(cached) " >&6
d7550 3
a7552 9
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>
a7553 14
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}
d7555 2
a7556 13
// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;
d7558 12
a7569 5
struct incomplete_array
{
  int datasize;
  double data[];
};
d7571 26
a7596 5
struct named_init {
  int number;
  const wchar_t *name;
  double average;
};
d7598 7
a7604 1
typedef const char *ccp;
d7606 2
a7607 2
static inline int
test_restrict (ccp restrict text)
d7609 5
a7613 5
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
d7616 30
d7647 2
a7648 3
// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
a7649 4
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);
d7651 2
a7652 23
  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
d7654 7
d7666 5
a7670 2
  // Check bool.
  _Bool success = false;
d7672 5
a7676 4
  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";
d7678 3
a7680 26
  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);
d7686 6
a7691 5
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
d7693 2
a7694 6
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

d7696 16
a7711 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :

d7713 1
a7713 8



	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }


	ac_ext=c
d7719 1
d7721 24
a7744 2
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d7746 8
a7753 2
			struct foo_s {int i1; int i2;};
			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
d7755 16
a7770 7
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d7772 52
a7823 1
$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
d7825 4
a7829 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7831 4
a7834 5
	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7836 5
a7840 11




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
$as_echo_n "checking for compile/link hardening flags... " >&6; }


# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
d7842 2
a7843 2
  with_locfile=no

d7847 61
a7907 13
(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genHardFlags -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genHardFlags.i 2> genHardFlags.err
. ./genHardFlags.i
d7909 59
a7967 11
case "$GENHARDFLAG" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
$as_echo "in file $GENHARDFLAGFILE" >&6; }
    rm genHardFlags.err genHardFlags.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
    ;;
d7969 46
d8016 10
d8027 1
d8029 2
d8032 5
d8401 1
a8401 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d8403 1
a8403 1
	IFS=$lt_save_ifs
d8408 1
a8408 1
      IFS=$lt_save_ifs
d8431 2
a8432 2
macro_version='2.4.6'
macro_revision='2.4.6'
d8446 1
a8446 1
ltmain=$ac_aux_dir/ltmain.sh
d8495 1
a8495 1
case $ECHO in
d8688 1
a8688 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d8694 1
a8694 1
if test yes = "$GCC"; then
d8700 1
a8700 1
    # gcc leaves a trailing carriage return, which upsets mingw
d8714 1
a8714 1
      test -z "$LD" && LD=$ac_prog
d8725 1
a8725 1
elif test yes = "$with_gnu_ld"; then
d8736 1
a8736 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8738 1
a8738 1
    IFS=$lt_save_ifs
d8741 1
a8741 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d8747 1
a8747 1
	test no != "$with_gnu_ld" && break
d8750 1
a8750 1
	test yes != "$with_gnu_ld" && break
d8755 1
a8755 1
  IFS=$lt_save_ifs
d8757 1
a8757 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d8761 1
a8761 1
LD=$lt_cv_path_LD
d8804 1
a8804 1
  lt_cv_path_NM=$NM
d8806 1
a8806 1
  lt_nm_to_check=${ac_tool_prefix}nm
d8811 1
a8811 1
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8813 1
a8813 1
      IFS=$lt_save_ifs
d8815 2
a8816 2
      tmp_nm=$ac_dir/$lt_tmp_nm
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
d8818 1
a8818 1
	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
d8821 2
a8822 7
	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
	case $build_os in
	mingw*) lt_bad_file=conftest.nm/nofile ;;
	*) lt_bad_file=/dev/null ;;
	esac
	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
	*$lt_bad_file* | *'Invalid file or object type'*)
d8824 1
a8824 1
	  break 2
d8830 1
a8830 1
	    break 2
d8841 1
a8841 1
    IFS=$lt_save_ifs
d8848 2
a8849 2
if test no != "$lt_cv_path_NM"; then
  NM=$lt_cv_path_NM
d8955 1
a8955 1
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
d8957 1
a8957 1
      DUMPBIN="$DUMPBIN -symbols -headers"
d8965 2
a8966 2
  if test : != "$DUMPBIN"; then
    NM=$DUMPBIN
d9017 1
a9017 1
  teststring=ABCD
d9057 1
a9057 1
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a9075 5
  os2*)
    # The test takes a long time on OS/2.
    lt_cv_sys_max_cmd_len=8192
    ;;

d9102 1
a9102 2
    if test -n "$lt_cv_sys_max_cmd_len" && \
       test undefined != "$lt_cv_sys_max_cmd_len"; then
d9108 1
a9108 1
      for i in 1 2 3 4 5 6 7 8; do
d9115 1
a9115 1
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
d9117 1
a9117 1
	      test 17 != "$i" # 1/2 MB should be enough
d9135 1
a9135 1
if test -n "$lt_cv_sys_max_cmd_len"; then
d9153 24
d9299 1
a9299 1
    if test yes != "$GCC"; then
d9304 2
a9305 2
    if test yes = "$GCC"; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
d9433 1
a9433 1
# 'unknown' -- same as none, but documents that we really don't know.
d9437 3
a9439 3
# that responds to the $file_magic_cmd with a given extended regex.
# If you have 'file' or equivalent on your system and you're not sure
# whether 'pass_all' will *always* work, you probably want this one.
d9466 2
a9467 1
  if ( file / ) >/dev/null 2>&1; then
d9503 4
d9544 2
a9545 2
# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d9567 2
a9568 2
openbsd* | bitrig*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a9620 3
os2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9778 2
a9779 2
  # two different shell functions defined in ltmain.sh;
  # decide which one to use based on capabilities of $DLLTOOL
d9791 1
a9791 1
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
d9945 1
a9945 1
      if test 0 -eq "$ac_status"; then
d9953 1
a9953 1
	if test 0 -ne "$ac_status"; then
d9966 1
a9966 1
if test no = "$lt_cv_ar_at_file"; then
d10183 2
a10184 2
  bitrig* | openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
d10187 1
a10187 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
d10190 1
a10190 1
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d10273 1
a10273 1
  if test ia64 = "$host_cpu"; then
a10305 17
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  # Gets list of data symbols to import.
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  # Adjust the below global symbol transforms to fixup imported variables.
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
  lt_c_name_lib_hook="\
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
else
  # Disable hooks by default.
  lt_cv_sys_global_symbol_to_import=
  lt_cdecl_hook=
  lt_c_name_hook=
  lt_c_name_lib_hook=
fi

d10309 1
a10309 4
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
$lt_cdecl_hook\
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
d10312 2
a10313 12
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
$lt_c_name_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"

# Transform an extracted symbol line into symbol name with lib prefix and
# symbol address.
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
$lt_c_name_lib_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
d10331 2
a10332 2
    # Fake it for dumpbin and say T for any non-static function,
    # D for any global variable and I for any imported variable.
a10336 1
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
a10337 3
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
d10341 4
a10344 4
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
"     s[1]~/^[@@?]/{print f,s[1],s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print f,t[1],substr(t[1],length(prfx))}"\
d10392 2
a10393 2
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
/* DATA imports from DLLs on WIN32 can't be const, because runtime
d10396 1
a10396 1
#elif defined __osf__
d10422 1
a10422 1
	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
d10442 1
a10442 1
	  LIBS=conftstm.$ac_objext
d10448 1
a10448 1
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
d10469 1
a10469 1
  if test yes = "$pipe_works"; then
a10521 10










d10534 1
a10534 1
case $with_sysroot in #(
d10536 1
a10536 1
   if test yes = "$GCC"; then
d10546 2
a10547 2
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
$as_echo "$with_sysroot" >&6; }
a10558 80
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
$as_echo_n "checking for a working dd... " >&6; }
if ${ac_cv_path_lt_DD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
: ${lt_DD:=$DD}
if test -z "$lt_DD"; then
  ac_path_lt_DD_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in dd; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_lt_DD" || continue
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
fi
      $ac_path_lt_DD_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_lt_DD"; then
    :
  fi
else
  ac_cv_path_lt_DD=$lt_DD
fi

rm -f conftest.i conftest2.i conftest.out
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
$as_echo "$ac_cv_path_lt_DD" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
$as_echo_n "checking how to truncate binary pipes... " >&6; }
if ${lt_cv_truncate_bin+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
lt_cv_truncate_bin=
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
fi
rm -f conftest.i conftest2.i conftest.out
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
$as_echo "$lt_cv_truncate_bin" >&6; }







# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}

d10564 1
a10564 1
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
d10570 1
a10570 2
  # Find out what ABI is being produced by ac_compile, and set mode
  # options accordingly.
d10579 1
a10579 1
	HPUX_IA64_MODE=32
d10582 1
a10582 1
	HPUX_IA64_MODE=64
d10589 1
a10589 2
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10596 1
a10596 1
    if test yes = "$lt_cv_prog_gnu_ld"; then
d10625 1
a10625 37
mips64*-*linux*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    emul=elf
    case `/usr/bin/file conftest.$ac_objext` in
      *32-bit*)
	emul="${emul}32"
	;;
      *64-bit*)
	emul="${emul}64"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *MSB*)
	emul="${emul}btsmip"
	;;
      *LSB*)
	emul="${emul}ltsmip"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *N32*)
	emul="${emul}n32"
	;;
    esac
    LD="${LD-ld} -m $emul"
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
d10627 1
a10627 6
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.  Note that the listed cases only cover the
  # situations where additional linker options are needed (such as when
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  # vice versa); the common cases where no linker options are needed do
  # not appear in the list.
d10641 1
a10641 11
	    case `/usr/bin/file conftest.o` in
	      *x86-64*)
		LD="${LD-ld} -m elf32_x86_64"
		;;
	      *)
		LD="${LD-ld} -m elf_i386"
		;;
	    esac
	    ;;
	  powerpc64le-*linux*)
	    LD="${LD-ld} -m elf32lppclinux"
d10643 1
a10643 1
	  powerpc64-*linux*)
d10662 1
a10662 4
	  powerpcle-*linux*)
	    LD="${LD-ld} -m elf64lppc"
	    ;;
	  powerpc-*linux*)
d10680 1
a10680 1
  SAVE_CFLAGS=$CFLAGS
d10720 1
a10720 1
  if test yes != "$lt_cv_cc_needs_belf"; then
d10722 1
a10722 1
    CFLAGS=$SAVE_CFLAGS
d10725 2
a10726 3
*-*solaris*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10736 1
a10736 14
      yes*)
        case $host in
        i?86-*-solaris*|x86_64-*-solaris*)
          LD="${LD-ld} -m elf_x86_64"
          ;;
        sparc*-*-solaris*)
          LD="${LD-ld} -m elf64_sparc"
          ;;
        esac
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
          LD=${LD-ld}_sol2
        fi
        ;;
d10750 1
a10750 1
need_locks=$enable_libtool_lock
d10861 1
a10861 1
if test yes != "$lt_cv_path_mainfest_tool"; then
d11364 1
a11364 1
      if test -z "$LT_MULTI_MODULE"; then
d11376 1
a11376 7
	# If there is a non-empty error log, and "single_module"
	# appears in it, assume the flag caused a linker warning
        if test -s conftest.err && $GREP single_module conftest.err; then
	  cat conftest.err >&5
	# Otherwise, if the output was created with a 0 exit code from
	# the compiler, it worked.
	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a11386 1

d11414 1
a11414 1
	LDFLAGS=$save_LDFLAGS
a11418 1

d11440 1
a11440 3
      if test -s conftest.err && $GREP force_load conftest.err; then
	cat conftest.err >&5
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
d11453 1
a11453 1
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
d11455 1
a11455 1
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11462 3
a11464 3
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
	10.[012][,.]*)
	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11466 1
a11466 1
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
d11470 1
a11470 1
    if test yes = "$lt_cv_apple_cc_single_mod"; then
d11473 2
a11474 2
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
d11476 1
a11476 1
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
d11478 1
a11478 1
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a11485 35
# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}

d11502 11
d11534 1
a11534 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11536 1
a11536 1
	IFS=$lt_save_ifs
d11541 1
a11541 1
      IFS=$lt_save_ifs
d11559 1
a11559 16
  withval=$with_pic; lt_p=${PACKAGE-default}
    case $withval in
    yes|no) pic_mode=$withval ;;
    *)
      pic_mode=default
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
      for lt_pkg in $withval; do
	IFS=$lt_save_ifs
	if test "X$lt_pkg" = "X$lt_p"; then
	  pic_mode=yes
	fi
      done
      IFS=$lt_save_ifs
      ;;
    esac
d11565 2
d11582 1
a11582 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11584 1
a11584 1
	IFS=$lt_save_ifs
d11589 1
a11589 1
      IFS=$lt_save_ifs
a11602 52
  shared_archive_member_spec=
case $host,$enable_shared in
power*-*-aix[5-9]*,yes)
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }

# Check whether --with-aix-soname was given.
if test "${with_aix_soname+set}" = set; then :
  withval=$with_aix_soname; case $withval in
    aix|svr4|both)
      ;;
    *)
      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
      ;;
    esac
    lt_cv_with_aix_soname=$with_aix_soname
else
  if ${lt_cv_with_aix_soname+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_with_aix_soname=aix
fi

    with_aix_soname=$lt_cv_with_aix_soname
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
$as_echo "$with_aix_soname" >&6; }
  if test aix != "$with_aix_soname"; then
    # For the AIX way of multilib, we name the shared archive member
    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
    # the AIX toolchain works better with OBJECT_MODE set (default 32).
    if test 64 = "${OBJECT_MODE-32}"; then
      shared_archive_member_spec=shr_64
    else
      shared_archive_member_spec=shr
    fi
  fi
  ;;
*)
  with_aix_soname=aix
  ;;
esac







d11607 1
a11607 1
LIBTOOL_DEPS=$ltmain
a11636 4




d11652 1
a11652 1
if test -n "${ZSH_VERSION+set}"; then
d11691 1
a11691 1
  if test set != "${COLLECT_NAMES+set}"; then
d11702 1
a11702 1
# All known linkers require a '.a' archive for static linking (except MSVC,
d11706 1
a11706 1
with_gnu_ld=$lt_cv_prog_gnu_ld
d11708 2
a11709 2
old_CC=$CC
old_CFLAGS=$CFLAGS
d11718 9
a11726 2
func_cc_basename $compiler
cc_basename=$func_cc_basename_result
d11741 1
a11741 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11744 2
a11745 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11748 1
a11748 1
    IFS=$lt_save_ifs
d11750 2
a11751 2
    if test -f "$ac_dir/${ac_tool_prefix}file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
d11756 1
a11756 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11779 2
a11780 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11785 1
a11785 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11807 1
a11807 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11810 2
a11811 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11814 1
a11814 1
    IFS=$lt_save_ifs
d11816 2
a11817 2
    if test -f "$ac_dir/file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
d11822 1
a11822 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11845 2
a11846 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11851 1
a11851 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11872 1
a11872 1
lt_save_CC=$CC
d11934 1
a11934 1
if test yes = "$GCC"; then
d11950 1
a11950 1
   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
d11980 1
a11980 1
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
d11998 1
a11998 1
  if test yes = "$GCC"; then
d12005 1
a12005 1
      if test ia64 = "$host_cpu"; then
a12008 1
      lt_prog_compiler_pic='-fPIC'
d12019 2
a12020 2
            # adding the '-m68020' flag to GCC prevents building anything better,
            # like '-m68040'.
a12035 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12096 1
a12096 3
      if test -n "$lt_prog_compiler_pic"; then
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
      fi
d12104 1
a12104 1
      if test ia64 = "$host_cpu"; then
a12111 14
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      case $cc_basename in
      nagfor*)
        # NAG Fortran compiler
        lt_prog_compiler_wl='-Wl,-Wl,,'
        lt_prog_compiler_pic='-PIC'
        lt_prog_compiler_static='-Bstatic'
        ;;
      esac
      ;;

a12115 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12131 1
a12131 1
      lt_prog_compiler_static='$wl-a ${wl}archive'
d12140 1
a12140 1
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d12142 1
a12142 1
      # old Intel for x86_64, which still supported -KPIC.
a12166 6
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
	;;
d12187 1
a12187 1
	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
a12192 5
	*Sun\ F* | *Sun*Fortran*)
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Qoption ld '
	  ;;
a12198 10
        *Intel*\ [CF]*Compiler*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fPIC'
	  lt_prog_compiler_static='-static'
	  ;;
	*Portland\ Group*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fpic'
	  lt_prog_compiler_static='-Bstatic'
	  ;;
d12249 1
a12249 1
      if test -d /usr/nec; then
d12278 1
a12278 1
  # For platforms that do not support PIC, -DPIC is meaningless:
d12310 1
a12310 1
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
d12340 1
a12340 1
if test yes = "$lt_cv_prog_compiler_pic_works"; then
d12372 1
a12372 1
   save_LDFLAGS=$LDFLAGS
d12391 1
a12391 1
   LDFLAGS=$save_LDFLAGS
d12397 1
a12397 1
if test yes = "$lt_cv_prog_compiler_static_works"; then
d12517 2
a12518 2
hard_links=nottested
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
d12530 3
a12532 3
  if test no = "$hard_links"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
d12560 1
d12576 3
a12578 3
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  # as well as any symbol that contains 'd'.
d12593 1
a12593 1
    if test yes != "$GCC"; then
d12601 1
a12601 1
  openbsd* | bitrig*)
d12611 1
a12611 1
  if test yes = "$with_gnu_ld"; then
d12633 1
a12633 1
  if test yes = "$lt_use_gnu_ld_interface"; then
d12635 1
a12635 1
    wlarc='$wl'
d12641 2
a12642 2
    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
    export_dynamic_flag_spec='$wl--export-dynamic'
d12645 1
a12645 1
      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
d12650 1
a12650 1
    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
d12663 1
a12663 1
      if test ia64 != "$host_cpu"; then
d12682 1
a12682 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12698 1
a12698 1
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12708 1
a12708 1
      export_dynamic_flag_spec='$wl--export-all-symbols'
d12716 10
a12725 10
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file, use it as
	# is; otherwise, prepend EXPORTS...
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
          cp $export_symbols $output_objdir/$soname.def;
        else
          echo EXPORTS > $output_objdir/$soname.def;
          cat $export_symbols >> $output_objdir/$soname.def;
        fi~
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d12732 1
a12732 1
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a12735 28
    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
      ;;

d12739 2
a12740 2
      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
      export_dynamic_flag_spec='$wl-E'
d12747 2
a12748 2
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d12753 1
a12753 1
      if test linux-dietlibc = "$host_os"; then
d12759 1
a12759 1
	 && test no = "$tmp_diet"
d12765 1
a12765 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12770 1
a12770 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
a12780 2
        nagfor*)                        # NAGFOR 5.3
          tmp_sharedflag='-Wl,-shared' ;;
d12785 1
a12785 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12791 1
a12791 1
	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12797 1
a12797 1
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12799 1
a12799 1
        if test yes = "$supports_anon_versioning"; then
d12801 3
a12803 3
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
            echo "local: *; };" >> $output_objdir/$libname.ver~
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a12806 3
	tcc*)
	  export_dynamic_flag_spec='-rdynamic'
	  ;;
d12810 2
a12811 1
	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d12813 1
a12813 1
	  if test yes = "$supports_anon_versioning"; then
d12815 3
a12817 3
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
              echo "local: *; };" >> $output_objdir/$libname.ver~
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
d12831 2
a12832 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12850 2
a12851 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12863 1
a12863 1
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
d12878 3
a12880 3
	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12897 2
a12898 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12905 1
a12905 1
    if test no = "$ld_shlibs"; then
d12921 1
a12921 1
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
d12929 1
a12929 1
      if test ia64 = "$host_cpu"; then
d12934 1
a12934 1
	no_entry_flag=
d12937 3
a12939 7
	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
	# Without the "-l" option, or with the "-B" option, AIX nm treats
	# weak defined symbols like other global defined symbols, whereas
	# GNU nm marks them as "W".
	# While the 'weak' keyword is ignored in the Export File, we need
	# it in the Import File for the 'aix-soname' feature, so we have
	# to replace the "-B" option with "-P" for AIX nm.
d12941 1
a12941 1
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
d12943 1
a12943 1
	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
d12949 1
a12949 13
	# have runtime linking enabled, and use it for executables.
	# For shared libraries, we enable/disable runtime linking
	# depending on the kind of the shared library created -
	# when "with_aix_soname,aix_use_runtimelinking" is:
	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
	# "aix,yes"  lib.so          shared, rtl:yes, for executables
	#            lib.a           static archive
	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
	#            lib.a(lib.so.V) shared, rtl:no,  for executables
	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a(lib.so.V) shared, rtl:no
	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a           static archive
d12952 1
a12952 1
	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a12956 7
	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
	    # so we don't have lib.a shared libs to link our executables.
	    # We have to force runtime linking in this case.
	    aix_use_runtimelinking=yes
	    LDFLAGS="$LDFLAGS -Wl,-brtl"
	  fi
d12975 1
a12975 9
      file_list_spec='$wl-f,'
      case $with_aix_soname,$aix_use_runtimelinking in
      aix,*) ;; # traditional, no import file
      svr4,* | *,yes) # use import file
	# The Import File defines what to hardcode.
	hardcode_direct=no
	hardcode_direct_absolute=no
	;;
      esac
d12977 1
a12977 1
      if test yes = "$GCC"; then
d12981 1
a12981 1
	  collect2name=`$CC -print-prog-name=collect2`
d13000 2
a13001 2
	if test yes = "$aix_use_runtimelinking"; then
	  shared_flag="$shared_flag "'$wl-G'
a13002 5
	# Need to ensure runtime linking is disabled for the traditional
	# shared library, or the linker may eventually find shared libraries
	# /with/ Import File - we do not want to mix them.
	shared_flag_aix='-shared'
	shared_flag_svr4='-shared $wl-G'
d13005 1
a13005 1
	if test ia64 = "$host_cpu"; then
d13010 2
a13011 2
	  if test yes = "$aix_use_runtimelinking"; then
	    shared_flag='$wl-G'
d13013 1
a13013 1
	    shared_flag='$wl-bM:SRE'
a13014 2
	  shared_flag_aix='$wl-bM:SRE'
	  shared_flag_svr4='$wl-G'
d13018 1
a13018 1
      export_dynamic_flag_spec='$wl-bexpall'
d13022 1
a13022 1
      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
d13028 1
a13028 1
        if test set = "${lt_cv_aix_libpath+set}"; then
d13063 1
a13063 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13071 2
a13072 2
        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
d13074 2
a13075 2
	if test ia64 = "$host_cpu"; then
	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
d13077 1
a13077 1
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
d13081 1
a13081 1
	 if test set = "${lt_cv_aix_libpath+set}"; then
d13116 1
a13116 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13124 1
a13124 1
	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
d13127 3
a13129 3
	  no_undefined_flag=' $wl-bernotok'
	  allow_undefined_flag=' $wl-berok'
	  if test yes = "$with_gnu_ld"; then
d13131 1
a13131 1
	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
d13137 2
a13138 14
	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
	  # -brtl affects multiple linker settings, -berok does not and is overridden later
	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
	  if test svr4 != "$with_aix_soname"; then
	    # This is similar to how AIX traditionally builds its shared libraries.
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
	  fi
	  if test aix != "$with_aix_soname"; then
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
	  else
	    # used by -dlpreopen to get the symbols
	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
	  fi
	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
d13147 1
a13147 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d13177 1
a13177 1
	shrext_cmds=.dll
d13179 8
a13186 9
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
            cp "$export_symbols" "$output_objdir/$soname.def";
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
          else
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
          fi~
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
          linknames='
a13189 1
	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
d13194 12
a13205 12
          lt_tool_outputfile="@@TOOL_OUTPUT@@"~
          case $lt_outputfile in
            *.exe|*.EXE) ;;
            *)
              lt_outputfile=$lt_outputfile.exe
              lt_tool_outputfile=$lt_tool_outputfile.exe
              ;;
          esac~
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
            $RM "$lt_outputfile.manifest";
          fi'
d13214 1
a13214 1
	shrext_cmds=.dll
d13233 2
a13234 3
  if test yes = "$lt_cv_ld_force_load"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'

d13239 1
a13239 1
  allow_undefined_flag=$_lt_dar_allow_undefined
d13241 1
a13241 1
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
d13244 1
a13244 1
  if test yes = "$_lt_dar_can_shared"; then
d13246 4
a13249 4
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
d13263 4
d13279 1
a13279 1
    freebsd2.*)
d13295 2
a13296 2
      if test yes = "$GCC"; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13298 1
a13298 1
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13300 1
a13300 1
      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13307 1
a13307 1
      export_dynamic_flag_spec='$wl-E'
d13311 2
a13312 2
      if test yes,no = "$GCC,$with_gnu_ld"; then
	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13316 3
a13318 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13322 1
a13322 1
	export_dynamic_flag_spec='$wl-E'
d13330 1
a13330 1
      if test yes,no = "$GCC,$with_gnu_ld"; then
d13333 1
a13333 1
	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13336 1
a13336 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13339 1
a13339 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13345 1
a13345 1
	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13348 1
a13348 1
	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13360 1
a13360 1
   save_LDFLAGS=$LDFLAGS
d13379 1
a13379 1
   LDFLAGS=$save_LDFLAGS
d13385 2
a13386 2
if test yes = "$lt_cv_prog_compiler__b"; then
    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13394 2
a13395 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13406 1
a13406 1
	  export_dynamic_flag_spec='$wl-E'
d13417 2
a13418 2
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13428 2
a13429 2
  save_LDFLAGS=$LDFLAGS
	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
d13441 1
a13441 1
           LDFLAGS=$save_LDFLAGS
d13445 2
a13446 2
	if test yes = "$lt_cv_irix_exported_symbol"; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
d13449 2
a13450 2
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
d13453 1
a13453 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a13458 10
    linux*)
      case $cc_basename in
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	ld_shlibs=yes
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	;;
      esac
      ;;

d13473 1
a13473 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13481 1
a13481 1
    openbsd* | bitrig*)
d13486 1
a13486 1
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
d13488 3
a13490 3
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
	  export_dynamic_flag_spec='$wl-E'
d13492 10
a13501 2
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
d13512 2
a13513 22
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
d13517 3
a13519 3
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13522 1
a13522 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13525 1
a13525 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13530 4
a13533 4
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13536 1
a13536 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13538 1
a13538 1
          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
d13549 3
a13551 3
      if test yes = "$GCC"; then
	wlarc='$wl'
	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13553 1
a13553 1
          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13558 1
a13558 1
	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
d13560 1
a13560 1
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
d13563 2
a13564 2
	  wlarc='$wl'
	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13566 1
a13566 1
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13576 1
a13576 1
	# but understands '-z linker_flag'.  GCC discards it without '$wl',
d13579 2
a13580 2
	if test yes = "$GCC"; then
	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
d13590 1
a13590 1
      if test sequent = "$host_vendor"; then
d13593 1
a13593 1
	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13642 1
a13642 1
      no_undefined_flag='$wl-z,text'
d13647 3
a13649 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13651 2
a13652 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13657 1
a13657 1
      # Note: We CANNOT use -z defs as we might desire, because we do not
d13663 2
a13664 2
      no_undefined_flag='$wl-z,text'
      allow_undefined_flag='$wl-z,nodefs'
d13667 1
a13667 1
      hardcode_libdir_flag_spec='$wl-R,$libdir'
d13670 1
a13670 1
      export_dynamic_flag_spec='$wl-Bexport'
d13673 3
a13675 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13677 2
a13678 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13693 1
a13693 1
    if test sni = "$host_vendor"; then
d13696 1
a13696 1
	export_dynamic_flag_spec='$wl-Blargedynsym'
d13704 1
a13704 1
test no = "$ld_shlibs" && can_build_shared=no
d13730 1
a13730 1
  if test yes,yes = "$GCC,$enable_shared"; then
d13942 5
d13950 1
a13950 1
if test yes = "$GCC"; then
d13952 2
a13953 2
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
    *) lt_awk_arg='/^libraries:/' ;;
d13956 2
a13957 2
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
    *) lt_sed_strip_eq='s|=/|/|g' ;;
d13973 1
a13973 1
  # and add multilib dir if necessary...
d13975 1
a13975 8
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  # ...but if some path component already ends with the multilib dir we assume
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  case "$lt_multi_os_dir; $lt_search_path_spec " in
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
    lt_multi_os_dir=
    ;;
  esac
d13977 3
a13979 3
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
    elif test -n "$lt_multi_os_dir"; then
d13985 3
a13987 3
BEGIN {RS = " "; FS = "/|\n";} {
  lt_foo = "";
  lt_count = 0;
d13994 1
a13994 1
          lt_foo = "/" $lt_i lt_foo;
d14008 1
a14008 1
      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
d14017 1
a14017 1
shrext_cmds=.so
a14033 2


d14036 2
a14037 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
d14041 1
a14041 1
  soname_spec='$libname$release$shared_ext$major'
d14045 1
a14045 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14049 1
a14049 1
  if test ia64 = "$host_cpu"; then
d14051 1
a14051 1
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
d14056 2
a14057 2
    # the line '#! .'.  This would cause the generated library to
    # depend on '.', always an invalid library.  This was fixed in
d14063 1
a14063 1
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
d14070 1
a14070 24
    # Using Import Files as archive members, it is possible to support
    # filename-based versioning of shared library archives on AIX. While
    # this would work for both with and without runtime linking, it will
    # prevent static linking of such archives. So we do filename-based
    # shared library versioning with .so extension only, which is used
    # when both runtime linking and shared linking is enabled.
    # Unfortunately, runtime linking may impact performance, so we do
    # not want this to be the default eventually. Also, we use the
    # versioned .so libs for executables only if there is the -brtl
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
    # To allow for filename-based versioning support, we need to create
    # libNAME.so.V as an archive file, containing:
    # *) an Import File, referring to the versioned filename of the
    #    archive as well as the shared archive member, telling the
    #    bitwidth (32 or 64) of that shared object, and providing the
    #    list of exported symbols of that shared object, eventually
    #    decorated with the 'weak' keyword
    # *) the shared object with the F_LOADONLY flag set, to really avoid
    #    it being seen by the linker.
    # At run time we better use the real file rather than another symlink,
    # but for link time we create the symlink libNAME.so -> libNAME.so.V

    case $with_aix_soname,$aix_use_runtimelinking in
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
d14073 1
a14073 2
    aix,yes) # traditional libtool
      dynamic_linker='AIX unversionable lib.so'
d14077 2
a14078 4
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      ;;
    aix,no) # traditional AIX only
      dynamic_linker='AIX lib.a(lib.so.V)'
d14081 3
a14083 27
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      ;;
    svr4,*) # full svr4 only
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,yes) # both, prefer svr4
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # unpreferred sharedlib libNAME.a needs extra handling
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,no) # both, prefer aix
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
      ;;
    esac
d14093 1
a14093 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14098 1
a14098 1
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d14104 1
a14104 1
  library_names_spec='$libname$shared_ext'
d14110 1
a14110 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14112 2
a14113 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14125 1
a14125 1
  shrext_cmds=.dll
d14134 2
a14135 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14151 1
a14151 1
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14157 1
a14157 1
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14161 1
a14161 1
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14170 2
a14171 2
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
    library_names_spec='$libname.dll.lib'
d14198 1
a14198 1
      sys_lib_search_path_spec=$LIB
d14211 2
a14212 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14225 1
a14225 1
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
d14238 2
a14239 2
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$major$shared_ext'
d14249 1
a14249 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14252 2
a14253 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14257 4
d14268 1
a14268 1
    freebsd[23].*) objformat=aout ;;
d14275 1
a14275 2
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      soname_spec='$libname$release$shared_ext$major'
d14280 1
a14280 1
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14286 1
a14286 1
  freebsd2.*)
d14305 10
d14316 1
a14316 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14320 2
a14321 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14323 1
a14323 1
  shlibpath_overrides_runpath=no
d14341 3
a14343 3
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
    if test 32 = "$HPUX_IA64_MODE"; then
a14344 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a14346 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
d14348 1
d14356 2
a14357 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14366 2
a14367 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14377 1
a14377 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14380 2
a14381 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14392 2
a14393 2
	if test yes = "$lt_cv_prog_gnu_ld"; then
		version_type=linux # correct to gnu/linux during the next big refactor
d14400 2
a14401 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
d14420 2
a14421 2
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
d14430 3
a14432 23
linux*android*)
  version_type=none # Android doesn't support versioned libraries.
  need_lib_prefix=no
  need_version=no
  library_names_spec='$libname$release$shared_ext'
  soname_spec='$libname$release$shared_ext'
  finish_cmds=
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  dynamic_linker='Android linker'
  # Don't embed -rpath directories since the linker doesn't support them.
  hardcode_libdir_flag_spec='-L$libdir'
  ;;

# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  version_type=linux # correct to gnu/linux during the next big refactor
d14435 2
a14436 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14480 1
a14480 6
  # Ideally, we could use ldconfig to report *all* directores which are
  # searched for libraries, however this is still not possible.  Aside from not
  # being certain /sbin/ldconfig is available, command
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  # even though it is searched at run-time.  Try to do the best guess by
  # appending ld.so.conf contents (and includes) to the search path.
d14500 1
a14500 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14504 2
a14505 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14514 2
a14515 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14524 2
a14525 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14532 1
a14532 1
openbsd* | bitrig*)
d14534 1
a14534 1
  sys_lib_dlsearch_path_spec=/usr/lib
d14536 17
a14552 2
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
    need_version=no
d14554 1
a14554 1
    need_version=yes
a14555 4
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
d14560 1
a14560 3
  version_type=windows
  shrext_cmds=.dll
  need_version=no
d14562 1
a14562 6
  # OS/2 can only load a DLL with a base name of 8 characters or less.
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
    v=$($ECHO $release$versuffix | tr -d .-);
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
    $ECHO $n$v`$shared_ext'
  library_names_spec='${libname}_dll.$libext'
d14564 1
a14564 15
  shlibpath_var=BEGINLIBPATH
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  postinstall_cmds='base_file=`basename \$file`~
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
    dldir=$destdir/`dirname \$dlpath`~
    test -d \$dldir || mkdir -p \$dldir~
    $install_prog $dir/$dlname \$dldir/$dlname~
    chmod a+x \$dldir/$dlname~
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
    fi'
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
    dlpath=$dir/\$dldll~
    $RM \$dlpath'
d14571 2
a14572 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14575 1
a14575 1
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d14583 1
a14583 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14586 2
a14587 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14597 1
a14597 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14601 1
a14601 1
  if test yes = "$with_gnu_ld"; then
d14608 3
a14610 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14631 4
a14634 4
  if test -d /usr/nec; then
    version_type=linux # correct to gnu/linux during the next big refactor
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
    soname_spec='$libname$shared_ext.$major'
d14640 1
a14640 1
  version_type=sco
d14643 2
a14644 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14648 1
a14648 1
  if test yes = "$with_gnu_ld"; then
d14663 1
a14663 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14666 1
a14666 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14673 3
a14675 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14685 1
a14685 1
test no = "$dynamic_linker" && can_build_shared=no
d14688 1
a14688 1
if test yes = "$GCC"; then
d14692 2
a14693 2
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
d14695 2
a14696 3

if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a14698 14
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec

# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"

# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH






d14795 1
a14795 1
   test yes = "$hardcode_automatic"; then
d14798 1
a14798 1
  if test no != "$hardcode_direct" &&
d14802 2
a14803 2
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
     test no != "$hardcode_minus_L"; then
d14818 2
a14819 2
if test relink = "$hardcode_action" ||
   test yes = "$inherit_rpath"; then
d14822 2
a14823 2
elif test yes = "$shlibpath_overrides_runpath" ||
     test no = "$enable_shared"; then
d14833 1
a14833 1
  if test yes != "$enable_dlopen"; then
d14843 1
a14843 1
    lt_cv_dlopen=load_add_on
d14849 1
a14849 1
    lt_cv_dlopen=LoadLibrary
d14854 1
a14854 1
    lt_cv_dlopen=dlopen
d14859 1
a14859 1
    # if libdl is installed we need to link against it
d14897 1
a14897 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d14900 1
a14900 1
    lt_cv_dlopen=dyld
a14907 8
  tpf*)
    # Don't try to run any link tests for TPF.  We know it's impossible
    # because TPF is a cross-compiler, and we know how we open DSOs.
    lt_cv_dlopen=dlopen
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=no
    ;;

d14911 1
a14911 1
  lt_cv_dlopen=shl_load
d14950 1
a14950 1
  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
d14954 1
a14954 1
  lt_cv_dlopen=dlopen
d14993 1
a14993 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d15032 1
a15032 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
d15071 1
a15071 1
  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
d15092 3
a15094 1
  if test no = "$lt_cv_dlopen"; then
a15095 2
  else
    enable_dlopen=yes
d15100 2
a15101 2
    save_CPPFLAGS=$CPPFLAGS
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d15103 1
a15103 1
    save_LDFLAGS=$LDFLAGS
d15106 1
a15106 1
    save_LIBS=$LIBS
d15109 3301
a18409 13
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"
d18411 3
a18413 3
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d18415 12
a18426 1
#include <stdio.h>
d18428 11
a18438 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
d18440 22
a18461 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
d18463 8
a18470 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
d18472 11
a18482 16
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
d18484 5
a18488 16
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
a18489 3
  else :
    # compilation failed
    lt_cv_dlopen_self=no
d18491 20
a18510 2
fi
rm -fr conftest*
d18512 7
d18520 3
a18523 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }
d18525 6
a18530 19
    if test yes = "$lt_cv_dlopen_self"; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
a18531 1
#include <stdio.h>
a18532 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
a18533 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
a18534 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
a18535 5
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
a18536 12
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());
a18537 21
  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*
a18539 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi
a18540 5
    CPPFLAGS=$save_CPPFLAGS
    LDFLAGS=$save_LDFLAGS
    LIBS=$save_LIBS
    ;;
  esac
a18541 4
  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac
a18542 5
  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi
a18559 29
striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP"; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi
d18569 6
d18576 20
d18597 9
a18606 5
  # Report what library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }
a18607 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test no = "$can_build_shared" && enable_shared=no
a18608 10
  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test yes = "$enable_shared" && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;
a18609 12
  aix[4-9]*)
    if test ia64 != "$host_cpu"; then
      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
      yes,aix,yes) ;;			# shared object as lib.so file only
      yes,svr4,*) ;;			# shared object as lib.so archive member only
      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
      esac
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }
a18610 6
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test yes = "$enable_shared" || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }
d18613 1
d18615 11
a18626 1
fi
a18632 4
CC=$lt_save_CC



d20866 1
a20866 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d20872 1
a20872 1
if test yes = "$GCC"; then
d20878 1
a20878 1
    # gcc leaves a trailing carriage return, which upsets mingw
d20892 1
a20892 1
      test -z "$LD" && LD=$ac_prog
d20903 1
a20903 1
elif test yes = "$with_gnu_ld"; then
d20914 1
a20914 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d20916 1
a20916 1
    IFS=$lt_save_ifs
d20919 1
a20919 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d20925 1
a20925 1
	test no != "$with_gnu_ld" && break
d20928 1
a20928 1
	test yes != "$with_gnu_ld" && break
d20933 1
a20933 1
  IFS=$lt_save_ifs
d20935 1
a20935 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d20939 1
a20939 1
LD=$lt_cv_path_LD
d28062 4
a28088 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }
d29229 2
a29279 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
a34166 1

a34168 1

a34173 2


d34184 1
a34184 1
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
a34558 1

d37532 4
d37537 4
d38006 1
a38006 1
This file was extended by ntp $as_me 4.2.8p10, which was
d38073 1
a38073 1
ntp config.status 4.2.8p10
a38207 1
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
a38209 1
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
a38255 1
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
a38257 1
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
a38259 1
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
d38292 1
d38325 1
a38325 2
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
d38332 55
a38402 1
PATH_SEPARATOR \
a38429 1
lt_cv_sys_global_symbol_to_import \
a38431 1
lt_cv_nm_interface \
a38432 1
lt_cv_truncate_bin \
d38453 1
d38465 33
a38497 1
striplib; do
d38500 1
a38500 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38527 12
a38538 2
configure_time_dlsearch_path \
configure_time_lt_sys_library_path; do
d38541 1
a38541 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38550 2
d38553 1
a38553 1
# See if we are running on zsh, and set the options that allow our
d38555 1
a38555 1
if test -n "\${ZSH_VERSION+set}"; then
d38562 1
d38569 2
d39354 1
a39354 1
    # See if we are running on zsh, and set the options that allow our
d39356 1
a39356 1
    if test -n "${ZSH_VERSION+set}"; then
d39360 1
a39360 1
    cfgfile=${ofile}T
d39366 3
a39368 1
# Generated automatically by $as_me ($PACKAGE) $VERSION
a39370 12

# Provide generalized library-building support services.
# Written by Gordon Matzigkeit, 1996

# Copyright (C) 2014 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions.  There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# GNU Libtool is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of of the License, or
# (at your option) any later version.
d39372 16
a39387 4
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program or library that is built
# using GNU Libtool, you may include this file under the  same
# distribution terms that you use for the rest of that program.
d39389 2
a39390 2
# GNU Libtool is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
d39395 4
a39398 1
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
d39402 1
a39402 4
available_tags=''

# Configured defaults for sys_lib_dlsearch_path munging.
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
a39421 3
# Shared archive member basename,for filename based shared library versioning on AIX.
shared_archive_member_spec=$shared_archive_member_spec

a39427 3
# The PATH separator for the build system.
PATH_SEPARATOR=$lt_PATH_SEPARATOR

a39535 3
# Transform the output of nm into a list of symbols to manually relocate.
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import

a39541 3
# The name lister interface.
nm_interface=$lt_lt_cv_nm_interface

d39545 1
a39545 1
# The root where to search for dependent libraries,and where our libraries should be installed.
a39547 3
# Command to truncate a binary pipe.
lt_truncate_bin=$lt_lt_cv_truncate_bin

d39638 2
a39639 5
# Detected run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path

# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
d39729 4
d39736 1
a39736 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39740 1
a39740 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39742 1
a39742 1
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
d39790 2
a39791 1
# ### END LIBTOOL CONFIG
d39793 10
a39802 40
_LT_EOF

    cat <<'_LT_EOF' >> "$cfgfile"

# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE

# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}
d39804 1
a39804 17

# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}


# ### END FUNCTIONS SHARED WITH CONFIGURE
d39814 1
a39814 1
if test set != "${COLLECT_NAMES+set}"; then
d39823 1
a39823 1
ltmain=$ac_aux_dir/ltmain.sh
d39833 159
d39996 157
@


1.1.1.3.4.5.4.1
log
@Pull up following revision(s) (requested by snj in ticket #1389):
	doc/3RDPARTY: 1.1380, 1.1381
	external/bsd/ntp/Makefile.inc: up to 1.16 via patch
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.11
	external/bsd/ntp/dist/CommitLog: up to 1.1.1.11
	external/bsd/ntp/dist/NEWS: up to 1.1.1.11
	external/bsd/ntp/dist/configure: up to 1.1.1.11
	external/bsd/ntp/dist/html/drivers/driver40-ja.html: up to 1.1.1.2
	external/bsd/ntp/dist/html/drivers/driver40.html: up to 1.1.1.5
	external/bsd/ntp/dist/html/miscopt.html: up to 1.1.1.10
	external/bsd/ntp/dist/include/Makefile.am: up to 1.1.1.9
	external/bsd/ntp/dist/include/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/include/libssl_compat.h: up to 1.1.1.1
	external/bsd/ntp/dist/include/ntp.h: up to 1.8
	external/bsd/ntp/dist/include/ntp_intres.h: up to 1.5
	external/bsd/ntp/dist/include/ntpd.h: up to 1.9
	external/bsd/ntp/dist/libntp/Makefile.am: up to 1.1.1.7
	external/bsd/ntp/dist/libntp/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/libntp/a_md5encrypt.c: up to 1.7
	external/bsd/ntp/dist/libntp/audio.c: up to 1.11
	external/bsd/ntp/dist/libntp/libssl_compat.c: up to 1.1.1.1
	external/bsd/ntp/dist/libntp/ntp_calendar.c: up to 1.9
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to 1.10
	external/bsd/ntp/dist/libntp/ssl_init.c: up to 1.9
	external/bsd/ntp/dist/libntp/work_fork.c: up to 1.10
	external/bsd/ntp/dist/libparse/clk_hopf6021.c: up to 1.6
	external/bsd/ntp/dist/ntpd/complete.conf.in: up to 1.1.1.5
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to 1.1.1.7
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.16
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.18
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to 1.13
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.15
	external/bsd/ntp/dist/ntpd/ntp_peer.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_refclock.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.12
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to 1.10
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to 1.11
	external/bsd/ntp/dist/ntpd/refclock_jupiter.c: up to 1.11
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.9
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.9
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.9
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.9
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.9
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/ntpq.c: up to 1.17
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/build/genAuthors.in: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap.in: up to 1.1.1.2
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/crypto.c: up to 1.12
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/libevent/build-aux/config.guess: up to 1.2
	external/bsd/ntp/dist/sntp/libevent/build-aux/config.sub: up to 1.2
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.10
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.9
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/tests/packetProcessing.c: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/unity/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/unity/Makefile.in: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/unity/ulib_setup.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/ulib_teardown.c: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/unity_fixture.c: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/version.c: up to 1.1.1.8
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/calendar.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/run-calendar.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/sfptostr.c: up to 1.1.1.6
	external/bsd/ntp/dist/tests/ntpd/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpd/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.9
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.14
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.9
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.9
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/util/ntp-keygen.c: up to 1.11
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.9
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/importdate: up to 1.11
	external/bsd/ntp/include/config.h: up to 1.19
	external/bsd/ntp/lib/libntp/Makefile: up to 1.19
	external/bsd/ntp/lib/libopts/Makefile: up to 1.14
	external/bsd/ntp/scripts/mkver: up to 1.12
Update ntp to 4.2.8p9.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p9.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p9'
PACKAGE_STRING='ntp 4.2.8p9'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p9 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p9:";;
d1927 1
a1927 1
ntp configure 4.2.8p9
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p9, which was
d3758 1
a3758 1
 VERSION='4.2.8p9'
d38006 1
a38006 1
This file was extended by ntp $as_me 4.2.8p9, which was
d38073 1
a38073 1
ntp config.status 4.2.8p9
@


1.1.1.3.4.5.4.2
log
@Pull up following revision(s) (requested by spz in ticket #1405):
	doc/3RDPARTY: 1.1431
	external/bsd/ntp/bin/ntpd/ntp.keys.5: up to 1.2
	external/bsd/ntp/dist/COPYRIGHT: up to 1.1.1.8
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.12
	external/bsd/ntp/dist/CommitLog: up to 1.1.1.12
	external/bsd/ntp/dist/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/NEWS: up to 1.1.1.12
	external/bsd/ntp/dist/aclocal.m4: up to 1.1.1.10
	external/bsd/ntp/dist/adjtimed/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/adjtimed/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/clockstuff/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/clockstuff/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/config.h.in: up to 1.1.1.9
	external/bsd/ntp/dist/configure: up to 1.1.1.12
	external/bsd/ntp/dist/configure.ac: up to 1.1.1.10
	external/bsd/ntp/dist/html/copyright.html: up to 1.1.1.6
	external/bsd/ntp/dist/include/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/include/isc/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/include/libssl_compat.h: up to 1.1.1.2
	external/bsd/ntp/dist/include/ntp_crypto.h: up to 1.5
	external/bsd/ntp/dist/include/ntp_fp.h: up to 1.9
	external/bsd/ntp/dist/include/ntp_md5.h: up to 1.7
	external/bsd/ntp/dist/include/ntp_stdlib.h: up to 1.14
	external/bsd/ntp/dist/include/ntpd.h: up to 1.10
	external/bsd/ntp/dist/include/ssl_applink.c: up to 1.5
	external/bsd/ntp/dist/kernel/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/kernel/sys/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/lib/isc/inet_pton.c: up to 1.8
	external/bsd/ntp/dist/libntp/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/libntp/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/libntp/a_md5encrypt.c: up to 1.8
	external/bsd/ntp/dist/libntp/audio.c: up to 1.12
	external/bsd/ntp/dist/libntp/authkeys.c: up to 1.11
	external/bsd/ntp/dist/libntp/emalloc.c: up to 1.8
	external/bsd/ntp/dist/libntp/libssl_compat.c: up to 1.1.1.2
	external/bsd/ntp/dist/libntp/ntp_intres.c: up to 1.11
	external/bsd/ntp/dist/libntp/recvbuff.c: up to 1.7
	external/bsd/ntp/dist/libntp/ssl_init.c: up to 1.10
	external/bsd/ntp/dist/libntp/statestr.c: up to 1.6
	external/bsd/ntp/dist/libntp/work_fork.c: up to 1.11
	external/bsd/ntp/dist/libparse/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/libparse/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/libparse/clk_trimtsip.c: up to 1.6
	external/bsd/ntp/dist/libparse/gpstolfp.c: up to 1.6
	external/bsd/ntp/dist/ntpd/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.17
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.19
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to 1.25
	external/bsd/ntp/dist/ntpd/ntp_loopfilter.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.16
	external/bsd/ntp/dist/ntpd/ntp_peer.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.15
	external/bsd/ntp/dist/ntpd/ntp_restrict.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntp_scanner.c: up to 1.12
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.13
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.c: up to 1.14
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpd/refclock_datum.c: up to 1.7
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to 1.11
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to 1.12
	external/bsd/ntp/dist/ntpd/refclock_mx4200.c: up to 1.5
	external/bsd/ntp/dist/ntpd/refclock_nmea.c: up to 1.12
	external/bsd/ntp/dist/ntpd/refclock_oncore.c: up to 1.14
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to 1.20
	external/bsd/ntp/dist/ntpdate/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/ntpdate/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdate/ntpdate.c: up to 1.11
	external/bsd/ntp/dist/ntpdc/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpdc/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.c: up to 1.15
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpdc/ntpdc_ops.c: up to 1.9
	external/bsd/ntp/dist/ntpq/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpq/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/libntpq.c: up to 1.5
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpq/ntpq-subs.c: up to 1.15
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.c: up to 1.18
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/ntpsnmpd/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.12
	external/bsd/ntp/dist/parseutil/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/parseutil/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/build/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/lib/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/update-leap/Makefile.in: up to 1.1.1.6
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.8
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/COPYRIGHT: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/Makefile.am: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/aclocal.m4: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/config.h.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.12
	external/bsd/ntp/dist/sntp/configure.ac: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/crypto.c: up to 1.13
	external/bsd/ntp/dist/sntp/harden/README: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/default: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd10: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd11: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/freebsd12: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/linux: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/netbsd7.0: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/harden/netbsd7.99: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/include/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/include/copyright.def: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/kod_management.c: up to 1.8
	external/bsd/ntp/dist/sntp/libevent/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/sntp/libevent/build-aux/compile: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/depcomp: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/install-sh: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/ltmain.sh: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/build-aux/missing: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/build-aux/ylwrap: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/config.h.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/configure: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/libevent/configure.ac: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/libtool.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltoptions.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltsugar.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/m4/ltversion.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libevent/m4/lt~obsolete.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/libevent/test/regress_ssl.c: up to 1.6
	external/bsd/ntp/dist/sntp/libopts/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/libopts/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/m4/libtool.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltoptions.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltsugar.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ltversion.m4: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/m4/lt~obsolete.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/ntp_compiler.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_harden.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/m4/ntp_openssl.m4: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/m4/ntp_prog_cc.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/scm-rev: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/scripts/Makefile.am: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/scripts/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/scripts/genHardFlags: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.11
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.10
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.12
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/tests/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/sntp/tests/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/unity/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/unity/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/version.c: up to 1.1.1.9
	external/bsd/ntp/dist/tests/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/tests/bug-2803/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/bug-2803/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/libntp/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/tests/libntp/Makefile.in: up to 1.1.1.8
	external/bsd/ntp/dist/tests/ntpd/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/tests/ntpd/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/tests/ntpq/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/ntpq/Makefile.in: up to 1.1.1.4
	external/bsd/ntp/dist/tests/sandbox/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sandbox/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/sec-2853/Makefile.am: up to 1.1.1.3
	external/bsd/ntp/dist/tests/sec-2853/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/util/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/util/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.15
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.10
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.c: up to 1.12
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.10
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.10
	external/bsd/ntp/importdate: up to 1.12
	external/bsd/ntp/scripts/mkver: up to 1.13
Update ntp to 4.2.8p10.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p10.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p10'
PACKAGE_STRING='ntp 4.2.8p10'
d726 1
a726 1
LT_SYS_LIBRARY_PATH
a834 3
NTP_HARD_LDFLAGS
NTP_HARD_CPPFLAGS
NTP_HARD_CFLAGS
d837 6
a954 1
with_aix_soname
d1075 3
d1080 1
a1080 1
LT_SYS_LIBRARY_PATH'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p10 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p10:";;
d1710 1
a1710 1
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
a1713 3
  --with-aix-soname=aix|svr4|both
                          shared library versioning (aka "SONAME") variant to
                          provide on AIX, [default=aix].
d1715 2
a1716 2
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
                          compiler's sysroot if not specified).
d1850 2
d1858 1
a1858 2
  LT_SYS_LIBRARY_PATH
              User-defined run-time library search path.
d1927 1
a1927 1
ntp configure 4.2.8p10
d2226 38
d2331 83
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p10, which was
d3758 1
a3758 1
 VERSION='4.2.8p10'
a4039 13

case "$build" in
 *-*-freebsd1?.*)
    cclist=cc
    ;;
 *)
    cclist="cc gcc"
    ;;
esac


#AC_USE_SYSTEM_EXTENSIONS

d4046 191
a4236 1
  for ac_prog in $cclist
d4280 1
a4280 1
  for ac_prog in $cclist
d4335 2
a5016 2


d5486 92
a5577 5
   case $ac_cv_prog_cc_stdc in #(
  no) :
    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
a5749 32
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
d5751 5
a5755 8
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
a5756 4
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d5758 18
a5775 16
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d5777 8
a5784 6
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
d5786 2
a5787 2
rm -f conftest.$ac_ext
CC=$ac_save_CC
d5790 5
a5794 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
d5796 2
a5797 1
  ac_cv_prog_cc_stdc=no
d5800 1
d5802 7
a5808 5
 ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  if ${ac_cv_prog_cc_stdc+:} false; then :
d5810 28
d5840 8
a5847 10
  case $ac_cv_prog_cc_stdc in #(
  no) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;; #(
  '') :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
d5849 32
d5882 10
d5894 32
d5927 22
a5949 2
# Ralf Wildenhues: With per-target flags we need CC_C_O
# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
d5951 10
a5960 4
if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
d5963 24
a5986 9
    ac_pattern="Autoconf.*'x'"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5988 2
a5989 1
  ac_cv_prog_gcc_traditional=no
a5990 1
rm -f conftest*
d5993 2
a5994 9
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5996 28
a6023 1
rm -f conftest*
a6024 1
  fi
d6026 8
a6033 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d6037 2
d6040 12
a6051 4
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d6053 1
d6056 4
d6061 9
a6069 8

case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
d6071 14
d6086 3
a6088 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d6097 4
a6100 1
#warning foo
d6106 1
a6106 1
  ntp_cv_cpp_warning=yes
d6108 1
a6108 2
  ntp_cv_cpp_warning=no

d6111 1
d6114 12
a6125 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
d6128 5
a6132 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6137 1
void foo(void) __attribute__((__noreturn__));
d6144 1
a6144 1
  ntp_cv_cc_attribute=yes
d6146 2
a6147 26
  ntp_cv_cc_attribute=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)

$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h

esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6158 6
  ntp_cv_gcc_Wstrict_overflow=yes
else
  ntp_cv_gcc_Wstrict_overflow=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6159 12
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
  $as_echo_n "(cached) " >&6
d6161 3
a6163 2

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6175 5
a6179 4
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

d6182 18
a6199 2


d6201 3
a6203 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
d6206 25
d6232 8
a6239 4
	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6241 4
a6244 2
			#include <stdlib.h>
			#include <stdio.h>
d6246 6
d6255 1
a6255 23

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


d6260 12
a6271 1
if ac_fn_c_try_link "$LINENO"; then :
d6273 15
a6287 6
		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d6289 458
a6746 2
else
  ntp_cv_gc_sections_runs=no
d6926 1
d7324 13
a7336 8

for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
d7339 144
a7482 2
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
d7491 1
a7491 1
    ac_cv_prog_YACC="$ac_prog"
d7501 4
a7504 4
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
d7511 28
a7538 1
  test -n "$YACC" && break
d7540 2
a7541 1
test -n "$YACC" || YACC="yacc"
d7543 6
a7548 4
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if ${ac_cv_prog_cc_c99+:} false; then :
  $as_echo_n "(cached) " >&6
d7550 3
a7552 9
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>
a7553 14
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}
d7555 2
a7556 13
// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;
d7558 12
a7569 5
struct incomplete_array
{
  int datasize;
  double data[];
};
d7571 26
a7596 5
struct named_init {
  int number;
  const wchar_t *name;
  double average;
};
d7598 7
a7604 1
typedef const char *ccp;
d7606 2
a7607 2
static inline int
test_restrict (ccp restrict text)
d7609 5
a7613 5
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
d7616 30
d7647 2
a7648 3
// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
a7649 4
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);
d7651 2
a7652 23
  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
d7654 7
d7666 5
a7670 2
  // Check bool.
  _Bool success = false;
d7672 5
a7676 4
  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";
d7678 3
a7680 26
  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);
d7686 6
a7691 5
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
d7693 2
a7694 6
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

d7696 16
a7711 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :

d7713 1
a7713 8



	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }


	ac_ext=c
d7719 1
d7721 24
a7744 2
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d7746 8
a7753 2
			struct foo_s {int i1; int i2;};
			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
d7755 16
a7770 7
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d7772 52
a7823 1
$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
d7825 4
a7829 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7831 4
a7834 5
	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7836 5
a7840 11




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
$as_echo_n "checking for compile/link hardening flags... " >&6; }


# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
d7842 2
a7843 2
  with_locfile=no

d7847 61
a7907 13
(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genHardFlags -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genHardFlags.i 2> genHardFlags.err
. ./genHardFlags.i
d7909 59
a7967 11
case "$GENHARDFLAG" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
$as_echo "in file $GENHARDFLAGFILE" >&6; }
    rm genHardFlags.err genHardFlags.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
    ;;
d7969 46
d8016 10
d8027 1
d8029 2
d8032 5
d8401 1
a8401 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d8403 1
a8403 1
	IFS=$lt_save_ifs
d8408 1
a8408 1
      IFS=$lt_save_ifs
d8431 2
a8432 2
macro_version='2.4.6'
macro_revision='2.4.6'
d8446 1
a8446 1
ltmain=$ac_aux_dir/ltmain.sh
d8495 1
a8495 1
case $ECHO in
d8688 1
a8688 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d8694 1
a8694 1
if test yes = "$GCC"; then
d8700 1
a8700 1
    # gcc leaves a trailing carriage return, which upsets mingw
d8714 1
a8714 1
      test -z "$LD" && LD=$ac_prog
d8725 1
a8725 1
elif test yes = "$with_gnu_ld"; then
d8736 1
a8736 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8738 1
a8738 1
    IFS=$lt_save_ifs
d8741 1
a8741 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d8747 1
a8747 1
	test no != "$with_gnu_ld" && break
d8750 1
a8750 1
	test yes != "$with_gnu_ld" && break
d8755 1
a8755 1
  IFS=$lt_save_ifs
d8757 1
a8757 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d8761 1
a8761 1
LD=$lt_cv_path_LD
d8804 1
a8804 1
  lt_cv_path_NM=$NM
d8806 1
a8806 1
  lt_nm_to_check=${ac_tool_prefix}nm
d8811 1
a8811 1
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8813 1
a8813 1
      IFS=$lt_save_ifs
d8815 2
a8816 2
      tmp_nm=$ac_dir/$lt_tmp_nm
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
d8818 1
a8818 1
	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
d8821 2
a8822 7
	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
	case $build_os in
	mingw*) lt_bad_file=conftest.nm/nofile ;;
	*) lt_bad_file=/dev/null ;;
	esac
	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
	*$lt_bad_file* | *'Invalid file or object type'*)
d8824 1
a8824 1
	  break 2
d8830 1
a8830 1
	    break 2
d8841 1
a8841 1
    IFS=$lt_save_ifs
d8848 2
a8849 2
if test no != "$lt_cv_path_NM"; then
  NM=$lt_cv_path_NM
d8955 1
a8955 1
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
d8957 1
a8957 1
      DUMPBIN="$DUMPBIN -symbols -headers"
d8965 2
a8966 2
  if test : != "$DUMPBIN"; then
    NM=$DUMPBIN
d9017 1
a9017 1
  teststring=ABCD
d9057 1
a9057 1
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a9075 5
  os2*)
    # The test takes a long time on OS/2.
    lt_cv_sys_max_cmd_len=8192
    ;;

d9102 1
a9102 2
    if test -n "$lt_cv_sys_max_cmd_len" && \
       test undefined != "$lt_cv_sys_max_cmd_len"; then
d9108 1
a9108 1
      for i in 1 2 3 4 5 6 7 8; do
d9115 1
a9115 1
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
d9117 1
a9117 1
	      test 17 != "$i" # 1/2 MB should be enough
d9135 1
a9135 1
if test -n "$lt_cv_sys_max_cmd_len"; then
d9153 24
d9299 1
a9299 1
    if test yes != "$GCC"; then
d9304 2
a9305 2
    if test yes = "$GCC"; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
d9433 1
a9433 1
# 'unknown' -- same as none, but documents that we really don't know.
d9437 3
a9439 3
# that responds to the $file_magic_cmd with a given extended regex.
# If you have 'file' or equivalent on your system and you're not sure
# whether 'pass_all' will *always* work, you probably want this one.
d9466 2
a9467 1
  if ( file / ) >/dev/null 2>&1; then
d9503 4
d9544 2
a9545 2
# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d9567 2
a9568 2
openbsd* | bitrig*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a9620 3
os2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9778 2
a9779 2
  # two different shell functions defined in ltmain.sh;
  # decide which one to use based on capabilities of $DLLTOOL
d9791 1
a9791 1
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
d9945 1
a9945 1
      if test 0 -eq "$ac_status"; then
d9953 1
a9953 1
	if test 0 -ne "$ac_status"; then
d9966 1
a9966 1
if test no = "$lt_cv_ar_at_file"; then
d10183 2
a10184 2
  bitrig* | openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
d10187 1
a10187 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
d10190 1
a10190 1
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d10273 1
a10273 1
  if test ia64 = "$host_cpu"; then
a10305 17
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  # Gets list of data symbols to import.
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  # Adjust the below global symbol transforms to fixup imported variables.
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
  lt_c_name_lib_hook="\
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
else
  # Disable hooks by default.
  lt_cv_sys_global_symbol_to_import=
  lt_cdecl_hook=
  lt_c_name_hook=
  lt_c_name_lib_hook=
fi

d10309 1
a10309 4
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
$lt_cdecl_hook\
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
d10312 2
a10313 12
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
$lt_c_name_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"

# Transform an extracted symbol line into symbol name with lib prefix and
# symbol address.
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
$lt_c_name_lib_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
d10331 2
a10332 2
    # Fake it for dumpbin and say T for any non-static function,
    # D for any global variable and I for any imported variable.
a10336 1
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
a10337 3
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
d10341 4
a10344 4
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
"     s[1]~/^[@@?]/{print f,s[1],s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print f,t[1],substr(t[1],length(prfx))}"\
d10392 2
a10393 2
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
/* DATA imports from DLLs on WIN32 can't be const, because runtime
d10396 1
a10396 1
#elif defined __osf__
d10422 1
a10422 1
	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
d10442 1
a10442 1
	  LIBS=conftstm.$ac_objext
d10448 1
a10448 1
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
d10469 1
a10469 1
  if test yes = "$pipe_works"; then
a10521 10










d10534 1
a10534 1
case $with_sysroot in #(
d10536 1
a10536 1
   if test yes = "$GCC"; then
d10546 2
a10547 2
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
$as_echo "$with_sysroot" >&6; }
a10558 80
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
$as_echo_n "checking for a working dd... " >&6; }
if ${ac_cv_path_lt_DD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
: ${lt_DD:=$DD}
if test -z "$lt_DD"; then
  ac_path_lt_DD_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in dd; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_lt_DD" || continue
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
fi
      $ac_path_lt_DD_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_lt_DD"; then
    :
  fi
else
  ac_cv_path_lt_DD=$lt_DD
fi

rm -f conftest.i conftest2.i conftest.out
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
$as_echo "$ac_cv_path_lt_DD" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
$as_echo_n "checking how to truncate binary pipes... " >&6; }
if ${lt_cv_truncate_bin+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
lt_cv_truncate_bin=
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
fi
rm -f conftest.i conftest2.i conftest.out
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
$as_echo "$lt_cv_truncate_bin" >&6; }







# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}

d10564 1
a10564 1
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
d10570 1
a10570 2
  # Find out what ABI is being produced by ac_compile, and set mode
  # options accordingly.
d10579 1
a10579 1
	HPUX_IA64_MODE=32
d10582 1
a10582 1
	HPUX_IA64_MODE=64
d10589 1
a10589 2
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10596 1
a10596 1
    if test yes = "$lt_cv_prog_gnu_ld"; then
d10625 1
a10625 37
mips64*-*linux*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    emul=elf
    case `/usr/bin/file conftest.$ac_objext` in
      *32-bit*)
	emul="${emul}32"
	;;
      *64-bit*)
	emul="${emul}64"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *MSB*)
	emul="${emul}btsmip"
	;;
      *LSB*)
	emul="${emul}ltsmip"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *N32*)
	emul="${emul}n32"
	;;
    esac
    LD="${LD-ld} -m $emul"
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
d10627 1
a10627 6
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.  Note that the listed cases only cover the
  # situations where additional linker options are needed (such as when
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  # vice versa); the common cases where no linker options are needed do
  # not appear in the list.
d10641 1
a10641 11
	    case `/usr/bin/file conftest.o` in
	      *x86-64*)
		LD="${LD-ld} -m elf32_x86_64"
		;;
	      *)
		LD="${LD-ld} -m elf_i386"
		;;
	    esac
	    ;;
	  powerpc64le-*linux*)
	    LD="${LD-ld} -m elf32lppclinux"
d10643 1
a10643 1
	  powerpc64-*linux*)
d10662 1
a10662 4
	  powerpcle-*linux*)
	    LD="${LD-ld} -m elf64lppc"
	    ;;
	  powerpc-*linux*)
d10680 1
a10680 1
  SAVE_CFLAGS=$CFLAGS
d10720 1
a10720 1
  if test yes != "$lt_cv_cc_needs_belf"; then
d10722 1
a10722 1
    CFLAGS=$SAVE_CFLAGS
d10725 2
a10726 3
*-*solaris*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10736 1
a10736 14
      yes*)
        case $host in
        i?86-*-solaris*|x86_64-*-solaris*)
          LD="${LD-ld} -m elf_x86_64"
          ;;
        sparc*-*-solaris*)
          LD="${LD-ld} -m elf64_sparc"
          ;;
        esac
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
          LD=${LD-ld}_sol2
        fi
        ;;
d10750 1
a10750 1
need_locks=$enable_libtool_lock
d10861 1
a10861 1
if test yes != "$lt_cv_path_mainfest_tool"; then
d11364 1
a11364 1
      if test -z "$LT_MULTI_MODULE"; then
d11376 1
a11376 7
	# If there is a non-empty error log, and "single_module"
	# appears in it, assume the flag caused a linker warning
        if test -s conftest.err && $GREP single_module conftest.err; then
	  cat conftest.err >&5
	# Otherwise, if the output was created with a 0 exit code from
	# the compiler, it worked.
	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a11386 1

d11414 1
a11414 1
	LDFLAGS=$save_LDFLAGS
a11418 1

d11440 1
a11440 3
      if test -s conftest.err && $GREP force_load conftest.err; then
	cat conftest.err >&5
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
d11453 1
a11453 1
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
d11455 1
a11455 1
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11462 3
a11464 3
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
	10.[012][,.]*)
	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11466 1
a11466 1
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
d11470 1
a11470 1
    if test yes = "$lt_cv_apple_cc_single_mod"; then
d11473 2
a11474 2
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
d11476 1
a11476 1
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
d11478 1
a11478 1
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a11485 35
# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}

d11502 11
d11534 1
a11534 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11536 1
a11536 1
	IFS=$lt_save_ifs
d11541 1
a11541 1
      IFS=$lt_save_ifs
d11559 1
a11559 16
  withval=$with_pic; lt_p=${PACKAGE-default}
    case $withval in
    yes|no) pic_mode=$withval ;;
    *)
      pic_mode=default
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
      for lt_pkg in $withval; do
	IFS=$lt_save_ifs
	if test "X$lt_pkg" = "X$lt_p"; then
	  pic_mode=yes
	fi
      done
      IFS=$lt_save_ifs
      ;;
    esac
d11565 2
d11582 1
a11582 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11584 1
a11584 1
	IFS=$lt_save_ifs
d11589 1
a11589 1
      IFS=$lt_save_ifs
a11602 52
  shared_archive_member_spec=
case $host,$enable_shared in
power*-*-aix[5-9]*,yes)
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }

# Check whether --with-aix-soname was given.
if test "${with_aix_soname+set}" = set; then :
  withval=$with_aix_soname; case $withval in
    aix|svr4|both)
      ;;
    *)
      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
      ;;
    esac
    lt_cv_with_aix_soname=$with_aix_soname
else
  if ${lt_cv_with_aix_soname+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_with_aix_soname=aix
fi

    with_aix_soname=$lt_cv_with_aix_soname
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
$as_echo "$with_aix_soname" >&6; }
  if test aix != "$with_aix_soname"; then
    # For the AIX way of multilib, we name the shared archive member
    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
    # the AIX toolchain works better with OBJECT_MODE set (default 32).
    if test 64 = "${OBJECT_MODE-32}"; then
      shared_archive_member_spec=shr_64
    else
      shared_archive_member_spec=shr
    fi
  fi
  ;;
*)
  with_aix_soname=aix
  ;;
esac







d11607 1
a11607 1
LIBTOOL_DEPS=$ltmain
a11636 4




d11652 1
a11652 1
if test -n "${ZSH_VERSION+set}"; then
d11691 1
a11691 1
  if test set != "${COLLECT_NAMES+set}"; then
d11702 1
a11702 1
# All known linkers require a '.a' archive for static linking (except MSVC,
d11706 1
a11706 1
with_gnu_ld=$lt_cv_prog_gnu_ld
d11708 2
a11709 2
old_CC=$CC
old_CFLAGS=$CFLAGS
d11718 9
a11726 2
func_cc_basename $compiler
cc_basename=$func_cc_basename_result
d11741 1
a11741 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11744 2
a11745 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11748 1
a11748 1
    IFS=$lt_save_ifs
d11750 2
a11751 2
    if test -f "$ac_dir/${ac_tool_prefix}file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
d11756 1
a11756 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11779 2
a11780 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11785 1
a11785 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11807 1
a11807 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11810 2
a11811 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11814 1
a11814 1
    IFS=$lt_save_ifs
d11816 2
a11817 2
    if test -f "$ac_dir/file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
d11822 1
a11822 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11845 2
a11846 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11851 1
a11851 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11872 1
a11872 1
lt_save_CC=$CC
d11934 1
a11934 1
if test yes = "$GCC"; then
d11950 1
a11950 1
   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
d11980 1
a11980 1
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
d11998 1
a11998 1
  if test yes = "$GCC"; then
d12005 1
a12005 1
      if test ia64 = "$host_cpu"; then
a12008 1
      lt_prog_compiler_pic='-fPIC'
d12019 2
a12020 2
            # adding the '-m68020' flag to GCC prevents building anything better,
            # like '-m68040'.
a12035 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12096 1
a12096 3
      if test -n "$lt_prog_compiler_pic"; then
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
      fi
d12104 1
a12104 1
      if test ia64 = "$host_cpu"; then
a12111 14
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      case $cc_basename in
      nagfor*)
        # NAG Fortran compiler
        lt_prog_compiler_wl='-Wl,-Wl,,'
        lt_prog_compiler_pic='-PIC'
        lt_prog_compiler_static='-Bstatic'
        ;;
      esac
      ;;

a12115 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12131 1
a12131 1
      lt_prog_compiler_static='$wl-a ${wl}archive'
d12140 1
a12140 1
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d12142 1
a12142 1
      # old Intel for x86_64, which still supported -KPIC.
a12166 6
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
	;;
d12187 1
a12187 1
	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
a12192 5
	*Sun\ F* | *Sun*Fortran*)
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Qoption ld '
	  ;;
a12198 10
        *Intel*\ [CF]*Compiler*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fPIC'
	  lt_prog_compiler_static='-static'
	  ;;
	*Portland\ Group*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fpic'
	  lt_prog_compiler_static='-Bstatic'
	  ;;
d12249 1
a12249 1
      if test -d /usr/nec; then
d12278 1
a12278 1
  # For platforms that do not support PIC, -DPIC is meaningless:
d12310 1
a12310 1
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
d12340 1
a12340 1
if test yes = "$lt_cv_prog_compiler_pic_works"; then
d12372 1
a12372 1
   save_LDFLAGS=$LDFLAGS
d12391 1
a12391 1
   LDFLAGS=$save_LDFLAGS
d12397 1
a12397 1
if test yes = "$lt_cv_prog_compiler_static_works"; then
d12517 2
a12518 2
hard_links=nottested
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
d12530 3
a12532 3
  if test no = "$hard_links"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
d12560 1
d12576 3
a12578 3
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  # as well as any symbol that contains 'd'.
d12593 1
a12593 1
    if test yes != "$GCC"; then
d12601 1
a12601 1
  openbsd* | bitrig*)
d12611 1
a12611 1
  if test yes = "$with_gnu_ld"; then
d12633 1
a12633 1
  if test yes = "$lt_use_gnu_ld_interface"; then
d12635 1
a12635 1
    wlarc='$wl'
d12641 2
a12642 2
    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
    export_dynamic_flag_spec='$wl--export-dynamic'
d12645 1
a12645 1
      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
d12650 1
a12650 1
    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
d12663 1
a12663 1
      if test ia64 != "$host_cpu"; then
d12682 1
a12682 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12698 1
a12698 1
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12708 1
a12708 1
      export_dynamic_flag_spec='$wl--export-all-symbols'
d12716 10
a12725 10
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file, use it as
	# is; otherwise, prepend EXPORTS...
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
          cp $export_symbols $output_objdir/$soname.def;
        else
          echo EXPORTS > $output_objdir/$soname.def;
          cat $export_symbols >> $output_objdir/$soname.def;
        fi~
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d12732 1
a12732 1
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a12735 28
    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
      ;;

d12739 2
a12740 2
      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
      export_dynamic_flag_spec='$wl-E'
d12747 2
a12748 2
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d12753 1
a12753 1
      if test linux-dietlibc = "$host_os"; then
d12759 1
a12759 1
	 && test no = "$tmp_diet"
d12765 1
a12765 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12770 1
a12770 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
a12780 2
        nagfor*)                        # NAGFOR 5.3
          tmp_sharedflag='-Wl,-shared' ;;
d12785 1
a12785 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12791 1
a12791 1
	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12797 1
a12797 1
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12799 1
a12799 1
        if test yes = "$supports_anon_versioning"; then
d12801 3
a12803 3
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
            echo "local: *; };" >> $output_objdir/$libname.ver~
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a12806 3
	tcc*)
	  export_dynamic_flag_spec='-rdynamic'
	  ;;
d12810 2
a12811 1
	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d12813 1
a12813 1
	  if test yes = "$supports_anon_versioning"; then
d12815 3
a12817 3
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
              echo "local: *; };" >> $output_objdir/$libname.ver~
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
d12831 2
a12832 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12850 2
a12851 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12863 1
a12863 1
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
d12878 3
a12880 3
	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12897 2
a12898 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12905 1
a12905 1
    if test no = "$ld_shlibs"; then
d12921 1
a12921 1
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
d12929 1
a12929 1
      if test ia64 = "$host_cpu"; then
d12934 1
a12934 1
	no_entry_flag=
d12937 3
a12939 7
	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
	# Without the "-l" option, or with the "-B" option, AIX nm treats
	# weak defined symbols like other global defined symbols, whereas
	# GNU nm marks them as "W".
	# While the 'weak' keyword is ignored in the Export File, we need
	# it in the Import File for the 'aix-soname' feature, so we have
	# to replace the "-B" option with "-P" for AIX nm.
d12941 1
a12941 1
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
d12943 1
a12943 1
	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
d12949 1
a12949 13
	# have runtime linking enabled, and use it for executables.
	# For shared libraries, we enable/disable runtime linking
	# depending on the kind of the shared library created -
	# when "with_aix_soname,aix_use_runtimelinking" is:
	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
	# "aix,yes"  lib.so          shared, rtl:yes, for executables
	#            lib.a           static archive
	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
	#            lib.a(lib.so.V) shared, rtl:no,  for executables
	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a(lib.so.V) shared, rtl:no
	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a           static archive
d12952 1
a12952 1
	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a12956 7
	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
	    # so we don't have lib.a shared libs to link our executables.
	    # We have to force runtime linking in this case.
	    aix_use_runtimelinking=yes
	    LDFLAGS="$LDFLAGS -Wl,-brtl"
	  fi
d12975 1
a12975 9
      file_list_spec='$wl-f,'
      case $with_aix_soname,$aix_use_runtimelinking in
      aix,*) ;; # traditional, no import file
      svr4,* | *,yes) # use import file
	# The Import File defines what to hardcode.
	hardcode_direct=no
	hardcode_direct_absolute=no
	;;
      esac
d12977 1
a12977 1
      if test yes = "$GCC"; then
d12981 1
a12981 1
	  collect2name=`$CC -print-prog-name=collect2`
d13000 2
a13001 2
	if test yes = "$aix_use_runtimelinking"; then
	  shared_flag="$shared_flag "'$wl-G'
a13002 5
	# Need to ensure runtime linking is disabled for the traditional
	# shared library, or the linker may eventually find shared libraries
	# /with/ Import File - we do not want to mix them.
	shared_flag_aix='-shared'
	shared_flag_svr4='-shared $wl-G'
d13005 1
a13005 1
	if test ia64 = "$host_cpu"; then
d13010 2
a13011 2
	  if test yes = "$aix_use_runtimelinking"; then
	    shared_flag='$wl-G'
d13013 1
a13013 1
	    shared_flag='$wl-bM:SRE'
a13014 2
	  shared_flag_aix='$wl-bM:SRE'
	  shared_flag_svr4='$wl-G'
d13018 1
a13018 1
      export_dynamic_flag_spec='$wl-bexpall'
d13022 1
a13022 1
      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
d13028 1
a13028 1
        if test set = "${lt_cv_aix_libpath+set}"; then
d13063 1
a13063 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13071 2
a13072 2
        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
d13074 2
a13075 2
	if test ia64 = "$host_cpu"; then
	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
d13077 1
a13077 1
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
d13081 1
a13081 1
	 if test set = "${lt_cv_aix_libpath+set}"; then
d13116 1
a13116 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13124 1
a13124 1
	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
d13127 3
a13129 3
	  no_undefined_flag=' $wl-bernotok'
	  allow_undefined_flag=' $wl-berok'
	  if test yes = "$with_gnu_ld"; then
d13131 1
a13131 1
	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
d13137 2
a13138 14
	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
	  # -brtl affects multiple linker settings, -berok does not and is overridden later
	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
	  if test svr4 != "$with_aix_soname"; then
	    # This is similar to how AIX traditionally builds its shared libraries.
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
	  fi
	  if test aix != "$with_aix_soname"; then
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
	  else
	    # used by -dlpreopen to get the symbols
	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
	  fi
	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
d13147 1
a13147 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d13177 1
a13177 1
	shrext_cmds=.dll
d13179 8
a13186 9
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
            cp "$export_symbols" "$output_objdir/$soname.def";
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
          else
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
          fi~
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
          linknames='
a13189 1
	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
d13194 12
a13205 12
          lt_tool_outputfile="@@TOOL_OUTPUT@@"~
          case $lt_outputfile in
            *.exe|*.EXE) ;;
            *)
              lt_outputfile=$lt_outputfile.exe
              lt_tool_outputfile=$lt_tool_outputfile.exe
              ;;
          esac~
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
            $RM "$lt_outputfile.manifest";
          fi'
d13214 1
a13214 1
	shrext_cmds=.dll
d13233 2
a13234 3
  if test yes = "$lt_cv_ld_force_load"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'

d13239 1
a13239 1
  allow_undefined_flag=$_lt_dar_allow_undefined
d13241 1
a13241 1
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
d13244 1
a13244 1
  if test yes = "$_lt_dar_can_shared"; then
d13246 4
a13249 4
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
d13263 4
d13279 1
a13279 1
    freebsd2.*)
d13295 2
a13296 2
      if test yes = "$GCC"; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13298 1
a13298 1
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13300 1
a13300 1
      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13307 1
a13307 1
      export_dynamic_flag_spec='$wl-E'
d13311 2
a13312 2
      if test yes,no = "$GCC,$with_gnu_ld"; then
	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13316 3
a13318 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13322 1
a13322 1
	export_dynamic_flag_spec='$wl-E'
d13330 1
a13330 1
      if test yes,no = "$GCC,$with_gnu_ld"; then
d13333 1
a13333 1
	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13336 1
a13336 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13339 1
a13339 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13345 1
a13345 1
	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13348 1
a13348 1
	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13360 1
a13360 1
   save_LDFLAGS=$LDFLAGS
d13379 1
a13379 1
   LDFLAGS=$save_LDFLAGS
d13385 2
a13386 2
if test yes = "$lt_cv_prog_compiler__b"; then
    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13394 2
a13395 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13406 1
a13406 1
	  export_dynamic_flag_spec='$wl-E'
d13417 2
a13418 2
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13428 2
a13429 2
  save_LDFLAGS=$LDFLAGS
	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
d13441 1
a13441 1
           LDFLAGS=$save_LDFLAGS
d13445 2
a13446 2
	if test yes = "$lt_cv_irix_exported_symbol"; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
d13449 2
a13450 2
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
d13453 1
a13453 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a13458 10
    linux*)
      case $cc_basename in
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	ld_shlibs=yes
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	;;
      esac
      ;;

d13473 1
a13473 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13481 1
a13481 1
    openbsd* | bitrig*)
d13486 1
a13486 1
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
d13488 3
a13490 3
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
	  export_dynamic_flag_spec='$wl-E'
d13492 10
a13501 2
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
d13512 2
a13513 22
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
d13517 3
a13519 3
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13522 1
a13522 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13525 1
a13525 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13530 4
a13533 4
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13536 1
a13536 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13538 1
a13538 1
          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
d13549 3
a13551 3
      if test yes = "$GCC"; then
	wlarc='$wl'
	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13553 1
a13553 1
          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13558 1
a13558 1
	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
d13560 1
a13560 1
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
d13563 2
a13564 2
	  wlarc='$wl'
	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13566 1
a13566 1
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13576 1
a13576 1
	# but understands '-z linker_flag'.  GCC discards it without '$wl',
d13579 2
a13580 2
	if test yes = "$GCC"; then
	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
d13590 1
a13590 1
      if test sequent = "$host_vendor"; then
d13593 1
a13593 1
	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13642 1
a13642 1
      no_undefined_flag='$wl-z,text'
d13647 3
a13649 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13651 2
a13652 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13657 1
a13657 1
      # Note: We CANNOT use -z defs as we might desire, because we do not
d13663 2
a13664 2
      no_undefined_flag='$wl-z,text'
      allow_undefined_flag='$wl-z,nodefs'
d13667 1
a13667 1
      hardcode_libdir_flag_spec='$wl-R,$libdir'
d13670 1
a13670 1
      export_dynamic_flag_spec='$wl-Bexport'
d13673 3
a13675 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13677 2
a13678 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13693 1
a13693 1
    if test sni = "$host_vendor"; then
d13696 1
a13696 1
	export_dynamic_flag_spec='$wl-Blargedynsym'
d13704 1
a13704 1
test no = "$ld_shlibs" && can_build_shared=no
d13730 1
a13730 1
  if test yes,yes = "$GCC,$enable_shared"; then
d13942 5
d13950 1
a13950 1
if test yes = "$GCC"; then
d13952 2
a13953 2
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
    *) lt_awk_arg='/^libraries:/' ;;
d13956 2
a13957 2
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
    *) lt_sed_strip_eq='s|=/|/|g' ;;
d13973 1
a13973 1
  # and add multilib dir if necessary...
d13975 1
a13975 8
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  # ...but if some path component already ends with the multilib dir we assume
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  case "$lt_multi_os_dir; $lt_search_path_spec " in
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
    lt_multi_os_dir=
    ;;
  esac
d13977 3
a13979 3
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
    elif test -n "$lt_multi_os_dir"; then
d13985 3
a13987 3
BEGIN {RS = " "; FS = "/|\n";} {
  lt_foo = "";
  lt_count = 0;
d13994 1
a13994 1
          lt_foo = "/" $lt_i lt_foo;
d14008 1
a14008 1
      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
d14017 1
a14017 1
shrext_cmds=.so
a14033 2


d14036 2
a14037 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
d14041 1
a14041 1
  soname_spec='$libname$release$shared_ext$major'
d14045 1
a14045 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14049 1
a14049 1
  if test ia64 = "$host_cpu"; then
d14051 1
a14051 1
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
d14056 2
a14057 2
    # the line '#! .'.  This would cause the generated library to
    # depend on '.', always an invalid library.  This was fixed in
d14063 1
a14063 1
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
d14070 1
a14070 24
    # Using Import Files as archive members, it is possible to support
    # filename-based versioning of shared library archives on AIX. While
    # this would work for both with and without runtime linking, it will
    # prevent static linking of such archives. So we do filename-based
    # shared library versioning with .so extension only, which is used
    # when both runtime linking and shared linking is enabled.
    # Unfortunately, runtime linking may impact performance, so we do
    # not want this to be the default eventually. Also, we use the
    # versioned .so libs for executables only if there is the -brtl
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
    # To allow for filename-based versioning support, we need to create
    # libNAME.so.V as an archive file, containing:
    # *) an Import File, referring to the versioned filename of the
    #    archive as well as the shared archive member, telling the
    #    bitwidth (32 or 64) of that shared object, and providing the
    #    list of exported symbols of that shared object, eventually
    #    decorated with the 'weak' keyword
    # *) the shared object with the F_LOADONLY flag set, to really avoid
    #    it being seen by the linker.
    # At run time we better use the real file rather than another symlink,
    # but for link time we create the symlink libNAME.so -> libNAME.so.V

    case $with_aix_soname,$aix_use_runtimelinking in
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
d14073 1
a14073 2
    aix,yes) # traditional libtool
      dynamic_linker='AIX unversionable lib.so'
d14077 2
a14078 4
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      ;;
    aix,no) # traditional AIX only
      dynamic_linker='AIX lib.a(lib.so.V)'
d14081 3
a14083 27
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      ;;
    svr4,*) # full svr4 only
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,yes) # both, prefer svr4
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # unpreferred sharedlib libNAME.a needs extra handling
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,no) # both, prefer aix
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
      ;;
    esac
d14093 1
a14093 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14098 1
a14098 1
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d14104 1
a14104 1
  library_names_spec='$libname$shared_ext'
d14110 1
a14110 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14112 2
a14113 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14125 1
a14125 1
  shrext_cmds=.dll
d14134 2
a14135 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14151 1
a14151 1
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14157 1
a14157 1
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14161 1
a14161 1
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14170 2
a14171 2
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
    library_names_spec='$libname.dll.lib'
d14198 1
a14198 1
      sys_lib_search_path_spec=$LIB
d14211 2
a14212 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14225 1
a14225 1
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
d14238 2
a14239 2
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$major$shared_ext'
d14249 1
a14249 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14252 2
a14253 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14257 4
d14268 1
a14268 1
    freebsd[23].*) objformat=aout ;;
d14275 1
a14275 2
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      soname_spec='$libname$release$shared_ext$major'
d14280 1
a14280 1
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14286 1
a14286 1
  freebsd2.*)
d14305 10
d14316 1
a14316 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14320 2
a14321 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14323 1
a14323 1
  shlibpath_overrides_runpath=no
d14341 3
a14343 3
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
    if test 32 = "$HPUX_IA64_MODE"; then
a14344 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a14346 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
d14348 1
d14356 2
a14357 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14366 2
a14367 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14377 1
a14377 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14380 2
a14381 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14392 2
a14393 2
	if test yes = "$lt_cv_prog_gnu_ld"; then
		version_type=linux # correct to gnu/linux during the next big refactor
d14400 2
a14401 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
d14420 2
a14421 2
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
d14430 3
a14432 23
linux*android*)
  version_type=none # Android doesn't support versioned libraries.
  need_lib_prefix=no
  need_version=no
  library_names_spec='$libname$release$shared_ext'
  soname_spec='$libname$release$shared_ext'
  finish_cmds=
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  dynamic_linker='Android linker'
  # Don't embed -rpath directories since the linker doesn't support them.
  hardcode_libdir_flag_spec='-L$libdir'
  ;;

# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  version_type=linux # correct to gnu/linux during the next big refactor
d14435 2
a14436 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14480 1
a14480 6
  # Ideally, we could use ldconfig to report *all* directores which are
  # searched for libraries, however this is still not possible.  Aside from not
  # being certain /sbin/ldconfig is available, command
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  # even though it is searched at run-time.  Try to do the best guess by
  # appending ld.so.conf contents (and includes) to the search path.
d14500 1
a14500 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14504 2
a14505 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14514 2
a14515 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14524 2
a14525 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14532 1
a14532 1
openbsd* | bitrig*)
d14534 1
a14534 1
  sys_lib_dlsearch_path_spec=/usr/lib
d14536 17
a14552 2
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
    need_version=no
d14554 1
a14554 1
    need_version=yes
a14555 4
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
d14560 1
a14560 3
  version_type=windows
  shrext_cmds=.dll
  need_version=no
d14562 1
a14562 6
  # OS/2 can only load a DLL with a base name of 8 characters or less.
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
    v=$($ECHO $release$versuffix | tr -d .-);
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
    $ECHO $n$v`$shared_ext'
  library_names_spec='${libname}_dll.$libext'
d14564 1
a14564 15
  shlibpath_var=BEGINLIBPATH
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  postinstall_cmds='base_file=`basename \$file`~
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
    dldir=$destdir/`dirname \$dlpath`~
    test -d \$dldir || mkdir -p \$dldir~
    $install_prog $dir/$dlname \$dldir/$dlname~
    chmod a+x \$dldir/$dlname~
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
    fi'
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
    dlpath=$dir/\$dldll~
    $RM \$dlpath'
d14571 2
a14572 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14575 1
a14575 1
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d14583 1
a14583 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14586 2
a14587 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14597 1
a14597 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14601 1
a14601 1
  if test yes = "$with_gnu_ld"; then
d14608 3
a14610 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14631 4
a14634 4
  if test -d /usr/nec; then
    version_type=linux # correct to gnu/linux during the next big refactor
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
    soname_spec='$libname$shared_ext.$major'
d14640 1
a14640 1
  version_type=sco
d14643 2
a14644 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14648 1
a14648 1
  if test yes = "$with_gnu_ld"; then
d14663 1
a14663 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14666 1
a14666 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14673 3
a14675 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14685 1
a14685 1
test no = "$dynamic_linker" && can_build_shared=no
d14688 1
a14688 1
if test yes = "$GCC"; then
d14692 2
a14693 2
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
d14695 2
a14696 3

if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a14698 14
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec

# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"

# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH






d14795 1
a14795 1
   test yes = "$hardcode_automatic"; then
d14798 1
a14798 1
  if test no != "$hardcode_direct" &&
d14802 2
a14803 2
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
     test no != "$hardcode_minus_L"; then
d14818 2
a14819 2
if test relink = "$hardcode_action" ||
   test yes = "$inherit_rpath"; then
d14822 2
a14823 2
elif test yes = "$shlibpath_overrides_runpath" ||
     test no = "$enable_shared"; then
d14833 1
a14833 1
  if test yes != "$enable_dlopen"; then
d14843 1
a14843 1
    lt_cv_dlopen=load_add_on
d14849 1
a14849 1
    lt_cv_dlopen=LoadLibrary
d14854 1
a14854 1
    lt_cv_dlopen=dlopen
d14859 1
a14859 1
    # if libdl is installed we need to link against it
d14897 1
a14897 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d14900 1
a14900 1
    lt_cv_dlopen=dyld
a14907 8
  tpf*)
    # Don't try to run any link tests for TPF.  We know it's impossible
    # because TPF is a cross-compiler, and we know how we open DSOs.
    lt_cv_dlopen=dlopen
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=no
    ;;

d14911 1
a14911 1
  lt_cv_dlopen=shl_load
d14950 1
a14950 1
  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
d14954 1
a14954 1
  lt_cv_dlopen=dlopen
d14993 1
a14993 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d15032 1
a15032 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
d15071 1
a15071 1
  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
d15092 3
a15094 1
  if test no = "$lt_cv_dlopen"; then
a15095 2
  else
    enable_dlopen=yes
d15100 2
a15101 2
    save_CPPFLAGS=$CPPFLAGS
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d15103 1
a15103 1
    save_LDFLAGS=$LDFLAGS
d15106 1
a15106 1
    save_LIBS=$LIBS
d15109 3301
a18409 13
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"
d18411 3
a18413 3
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d18415 12
a18426 1
#include <stdio.h>
d18428 11
a18438 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
d18440 22
a18461 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
d18463 8
a18470 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
d18472 11
a18482 16
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
d18484 5
a18488 16
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
a18489 3
  else :
    # compilation failed
    lt_cv_dlopen_self=no
d18491 20
a18510 2
fi
rm -fr conftest*
d18512 7
d18520 3
a18523 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }
d18525 6
a18530 19
    if test yes = "$lt_cv_dlopen_self"; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
a18531 1
#include <stdio.h>
a18532 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
a18533 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
a18534 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
a18535 5
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
a18536 12
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());
a18537 21
  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*
a18539 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi
a18540 5
    CPPFLAGS=$save_CPPFLAGS
    LDFLAGS=$save_LDFLAGS
    LIBS=$save_LIBS
    ;;
  esac
a18541 4
  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac
a18542 5
  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi
a18559 29
striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP"; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi
d18569 6
d18576 20
d18597 9
a18606 5
  # Report what library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }
a18607 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test no = "$can_build_shared" && enable_shared=no
a18608 10
  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test yes = "$enable_shared" && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;
a18609 12
  aix[4-9]*)
    if test ia64 != "$host_cpu"; then
      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
      yes,aix,yes) ;;			# shared object as lib.so file only
      yes,svr4,*) ;;			# shared object as lib.so archive member only
      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
      esac
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }
a18610 6
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test yes = "$enable_shared" || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }
d18613 1
d18615 11
a18626 1
fi
a18632 4
CC=$lt_save_CC



d20866 1
a20866 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d20872 1
a20872 1
if test yes = "$GCC"; then
d20878 1
a20878 1
    # gcc leaves a trailing carriage return, which upsets mingw
d20892 1
a20892 1
      test -z "$LD" && LD=$ac_prog
d20903 1
a20903 1
elif test yes = "$with_gnu_ld"; then
d20914 1
a20914 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d20916 1
a20916 1
    IFS=$lt_save_ifs
d20919 1
a20919 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d20925 1
a20925 1
	test no != "$with_gnu_ld" && break
d20928 1
a20928 1
	test yes != "$with_gnu_ld" && break
d20933 1
a20933 1
  IFS=$lt_save_ifs
d20935 1
a20935 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d20939 1
a20939 1
LD=$lt_cv_path_LD
d28062 4
a28088 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }
d29229 2
a29279 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
a34166 1

a34168 1

a34173 2


d34184 1
a34184 1
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
a34558 1

d37532 4
d37537 4
d38006 1
a38006 1
This file was extended by ntp $as_me 4.2.8p10, which was
d38073 1
a38073 1
ntp config.status 4.2.8p10
a38207 1
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
a38209 1
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
a38255 1
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
a38257 1
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
a38259 1
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
d38292 1
d38325 1
a38325 2
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
d38332 55
a38402 1
PATH_SEPARATOR \
a38429 1
lt_cv_sys_global_symbol_to_import \
a38431 1
lt_cv_nm_interface \
a38432 1
lt_cv_truncate_bin \
d38453 1
d38465 33
a38497 1
striplib; do
d38500 1
a38500 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38527 12
a38538 2
configure_time_dlsearch_path \
configure_time_lt_sys_library_path; do
d38541 1
a38541 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38550 2
d38553 1
a38553 1
# See if we are running on zsh, and set the options that allow our
d38555 1
a38555 1
if test -n "\${ZSH_VERSION+set}"; then
d38562 1
d38569 2
d39354 1
a39354 1
    # See if we are running on zsh, and set the options that allow our
d39356 1
a39356 1
    if test -n "${ZSH_VERSION+set}"; then
d39360 1
a39360 1
    cfgfile=${ofile}T
d39366 3
a39368 1
# Generated automatically by $as_me ($PACKAGE) $VERSION
a39370 12

# Provide generalized library-building support services.
# Written by Gordon Matzigkeit, 1996

# Copyright (C) 2014 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions.  There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# GNU Libtool is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of of the License, or
# (at your option) any later version.
d39372 16
a39387 4
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program or library that is built
# using GNU Libtool, you may include this file under the  same
# distribution terms that you use for the rest of that program.
d39389 2
a39390 2
# GNU Libtool is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
d39395 4
a39398 1
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
d39402 1
a39402 4
available_tags=''

# Configured defaults for sys_lib_dlsearch_path munging.
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
a39421 3
# Shared archive member basename,for filename based shared library versioning on AIX.
shared_archive_member_spec=$shared_archive_member_spec

a39427 3
# The PATH separator for the build system.
PATH_SEPARATOR=$lt_PATH_SEPARATOR

a39535 3
# Transform the output of nm into a list of symbols to manually relocate.
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import

a39541 3
# The name lister interface.
nm_interface=$lt_lt_cv_nm_interface

d39545 1
a39545 1
# The root where to search for dependent libraries,and where our libraries should be installed.
a39547 3
# Command to truncate a binary pipe.
lt_truncate_bin=$lt_lt_cv_truncate_bin

d39638 2
a39639 5
# Detected run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path

# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
d39729 4
d39736 1
a39736 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39740 1
a39740 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39742 1
a39742 1
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
d39790 2
a39791 1
# ### END LIBTOOL CONFIG
d39793 10
a39802 40
_LT_EOF

    cat <<'_LT_EOF' >> "$cfgfile"

# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE

# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}
d39804 1
a39804 17

# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}


# ### END FUNCTIONS SHARED WITH CONFIGURE
d39814 1
a39814 1
if test set != "${COLLECT_NAMES+set}"; then
d39823 1
a39823 1
ltmain=$ac_aux_dir/ltmain.sh
d39833 159
d39996 157
@


1.1.1.4
log
@Import ntp 4.2.8
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.68 for ntp4 4.2.8.
d571 4
a574 4
PACKAGE_NAME='ntp4'
PACKAGE_TARNAME='ntp4'
PACKAGE_VERSION='4.2.8'
PACKAGE_STRING='ntp4 4.2.8'
a683 3
GL_GENERATE_STDNORETURN_H_FALSE
GL_GENERATE_STDNORETURN_H_TRUE
STDNORETURN_H
a704 1
TIMETRIM_NI
a708 1
TICKADJ_NI
a712 1
SNTP_NI
a716 1
NTP_WAIT_NI
a720 1
NTP_KEYGEN_NI
a724 1
NTPTRACE_NI
a728 1
NTPTIME_NI
a732 8
INSTALL_NTPSWEEP_FALSE
INSTALL_NTPSWEEP_TRUE
NTPSWEEP_NI
NTPSWEEP_MS
NTPSWEEP_DS
NTPSWEEP_DL
NTPSWEEP_DB
NTPSNMPD_NI
a736 1
NTPQ_NI
a740 1
NTPD_NI
a744 1
NTPDSIM_NI
a748 1
NTPDC_NI
a752 1
NTPDATE_NI
a757 1
CALC_TICKADJ_NI
a894 1
with_yielding_select
a900 1
enable_libseccomp
a931 1
enable_GPSD
a962 1
enable_openssl_random
d1543 1
a1543 1
\`configure' configures ntp4 4.2.8 to adapt to many kinds of systems.
d1591 1
a1591 1
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp4]
d1613 1
a1613 1
     short | recursive ) echo "Configuration of ntp4 4.2.8:";;
a1648 1
  --with-yielding-select  with yielding select [auto]
a1654 2
  --enable-libseccomp     EXPERIMENTAL: enable support for libseccomp
                          sandboxing (default is no)
a1687 1
  --enable-GPSD           + GPSD JSON receiver
a1722 2
  --enable-openssl-random Use OpenSSL's crypto random number functions, if
                          available (default is yes)
d1773 1
a1773 1
ntp4 home page: <http://www.ntp.org./>.
d1836 1
a1836 1
ntp4 configure 4.2.8
d2661 1
a2661 1
It was created by ntp4 $as_me 4.2.8, which was
d3607 2
a3608 2
 PACKAGE='ntp4'
 VERSION='4.2.8'
a7684 27
 if test -z "$NTPSWEEP_NI" ; then
  INSTALL_NTPSWEEP_TRUE=
  INSTALL_NTPSWEEP_FALSE='#'
else
  INSTALL_NTPSWEEP_TRUE='#'
  INSTALL_NTPSWEEP_FALSE=
fi




















a18243 56
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
$as_echo_n "checking for working stdnoreturn.h... " >&6; }
if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
            #include <stdnoreturn.h>
            /* Do not check for 'noreturn' after the return type.
               C11 allows it, but it's rarely done that way
               and circa-2012 bleeding-edge GCC rejects it when given
               -Werror=old-style-declaration.  */
            noreturn void foo1 (void) { exit (0); }
            _Noreturn void foo2 (void) { exit (0); }
            int testit (int argc, char **argv) {
              if (argc & 1)
                return 0;
              (argv[0][0] ? foo1 : foo2) ();
            }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  gl_cv_header_working_stdnoreturn_h=yes
else
  gl_cv_header_working_stdnoreturn_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }

  if test $gl_cv_header_working_stdnoreturn_h = yes; then
    STDNORETURN_H=''
  else
    STDNORETURN_H='stdnoreturn.h'
  fi


   if test -n "$STDNORETURN_H"; then
  GL_GENERATE_STDNORETURN_H_TRUE=
  GL_GENERATE_STDNORETURN_H_FALSE='#'
else
  GL_GENERATE_STDNORETURN_H_TRUE='#'
  GL_GENERATE_STDNORETURN_H_FALSE=
fi



a18435 9
ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi
a19865 111
# [Bug 2332] because we need to know if we are using GNU ld...


# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld






d19876 1
a19876 1
	    case "$host_os" in
d21948 1
a21948 21
# OpenLDAP --with-yielding_select

# Check whether --with-yielding_select was given.
if test "${with_yielding_select+set}" = set; then :
  withval=$with_yielding_select;
	ol_arg=invalid
	for ol_val in auto yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
	fi
	ol_with_yielding_select="$ol_arg"

else
  	ol_with_yielding_select="auto"
fi
# end --with-yielding_select

d25676 1
a25676 1
					as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
a26295 50
	    # Bug 2332: With GCC we need to force a reference to libgcc_s
	    # (if libgcc_s exists) or the combination of
	    # threads + setuid + mlockall does not work on linux because
	    # thread cancellation fails to load libgcc_s with dlopen().
	    # We have to pass this all as linker options to avoid argument
	    # reordering by libtool.
	    case "$GCC$with_gnu_ld" in
	    yesyes)
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lgcc_s" >&5
$as_echo_n "checking for exit in -lgcc_s... " >&6; }
if ${ac_cv_lib_gcc_s_exit+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgcc_s  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char exit ();
int
main ()
{
return exit ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gcc_s_exit=yes
else
  ac_cv_lib_gcc_s_exit=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_exit" >&5
$as_echo "$ac_cv_lib_gcc_s_exit" >&6; }
if test "x$ac_cv_lib_gcc_s_exit" = xyes; then :
  PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed"
fi

		;;
	    esac
d27422 2
a27423 2
	    #ifndef SIGIO
	    # error
d27427 2
a27428 1
if ac_fn_c_try_cpp "$LINENO"; then :
d27434 2
a27435 1
rm -f conftest.err conftest.i conftest.$ac_ext
d27506 2
a27507 2
	    #ifndef SIGPOLL
	    # error
d27511 2
a27512 1
if ac_fn_c_try_cpp "$LINENO"; then :
d27518 2
a27519 1
rm -f conftest.err conftest.i conftest.$ac_ext
a28140 134
# LIBSECCOMP is off by default -- needs testing with all the features
# Please send bug reports to loganaden@@gmail.com
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
# Check whether --enable-libseccomp was given.
if test "${enable_libseccomp+set}" = set; then :
  enableval=$enable_libseccomp; ntp_ok=$enableval
else
  ntp_ok=no

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
$as_echo_n "checking for library containing seccomp_init... " >&6; }
if ${ac_cv_search_seccomp_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char seccomp_init ();
int
main ()
{
return seccomp_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' seccomp; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_seccomp_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_seccomp_init+:} false; then :
  break
fi
done
if ${ac_cv_search_seccomp_init+:} false; then :

else
  ac_cv_search_seccomp_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
$as_echo "$ac_cv_search_seccomp_init" >&6; }
ac_res=$ac_cv_search_seccomp_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

$as_echo "#define LIBSECCOMP 1" >>confdefs.h


fi

    if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	#include <stdio.h>
	#include <stdlib.h>
	#include <errno.h>
	#include <sys/prctl.h>
	#include <linux/seccomp.h>

	int main(void)
	{
		int ret;
		ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
		if (ret < 0) {
			switch (errno) {
			case ENOSYS:
				return 1;
			case EINVAL:
				return 1;
			default:
				return 1;
			}
		}
		ret =
		prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
		if (ret < 0) {
			switch (errno) {
			case EINVAL:
				return 1;
			case EFAULT:
				return 0;
			default:
				return 1;
		}
	}
return 1;
}


_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

$as_echo "#define KERN_SECCOMP 1" >>confdefs.h


fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    ;;
esac

d28335 1
a28335 1
for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
d29602 1
a29602 1
for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
d30807 3
a30809 2
		    #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
		    # error
d30813 2
a30814 1
if ac_fn_c_try_cpp "$LINENO"; then :
d30818 2
a30819 1
rm -f conftest.err conftest.i conftest.$ac_ext
d30849 3
a30851 2
	    #ifndef STA_FLL
	    # error
d30855 2
a30856 1
if ac_fn_c_try_cpp "$LINENO"; then :
d30862 2
a30863 1
rm -f conftest.err conftest.i conftest.$ac_ext
d30933 3
a30935 2
	    #ifndef TIOCGPPSEV
	    # error
d30939 2
a30940 1
if ac_fn_c_try_cpp "$LINENO"; then :
d30946 2
a30947 1
rm -f conftest.err conftest.i conftest.$ac_ext
d30971 3
a30973 2
	    #ifndef TIOCSPPS
	    # error
d30977 2
a30978 1
if ac_fn_c_try_cpp "$LINENO"; then :
d30984 2
a30985 1
rm -f conftest.err conftest.i conftest.$ac_ext
d31009 3
a31011 2
	    #ifndef CIOGETEV
	    # error
d31015 2
a31016 1
if ac_fn_c_try_cpp "$LINENO"; then :
d31022 2
a31023 1
rm -f conftest.err conftest.i conftest.$ac_ext
d31083 6
a31088 2
	    #ifndef TIOCGSERIAL
	    # error
a31089 2
	    #ifndef TIOCSSERIAL
	    # error
a31090 2
	    #ifndef ASYNC_PPS_CD_POS
	    # error
a31091 2
	    #ifndef ASYNC_PPS_CD_NEG
	    # error
a31092 2
	    #ifndef CIOGETEV
	    # error
d31096 2
a31097 1
if ac_fn_c_try_cpp "$LINENO"; then :
d31103 2
a31104 1
rm -f conftest.err conftest.i conftest.$ac_ext
a31839 35
for ac_func in strtoll
do :
  ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
if test "x$ac_cv_func_strtoll" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRTOLL 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
$as_echo_n "checking for GPSD JSON receiver... " >&6; }
# Check whether --enable-GPSD was given.
if test "${enable_GPSD+set}" = set; then :
  enableval=$enable_GPSD; ntp_ok=$enableval
else
  case "$ac_cv_func_strtoll" in
     yes) ntp_ok=$ntp_eac ;;
     *)   ntp_ok="no" ;;
    esac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

a33120 43



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
# Check whether --enable-openssl-random was given.
if test "${enable_openssl_random+set}" = set; then :
  enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
else
  ntp_use_openssl_random=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
$as_echo "$ntp_use_openssl_random" >&6; }

# The following might need extra libraries
NTPO_SAVED_LIBS="$LIBS"
LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
for ac_func in RAND_bytes RAND_poll
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

LIBS="$NTPO_SAVED_LIBS"
case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
 yesyesyes)

$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h

     ;;
 *) ntp_use_openssl_random=no ;;
esac



d35385 2
a35386 2
	    #ifndef NET_RT_IFLIST
	    # error
d35390 2
a35391 1
if ac_fn_c_try_cpp "$LINENO"; then :
d35397 2
a35398 1
rm -f conftest.err conftest.i conftest.$ac_ext
a35813 8
if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d36251 1
a36251 1
This file was extended by ntp4 $as_me 4.2.8, which was
d36312 1
a36312 1
ntp4 home page: <http://www.ntp.org./>."
d36318 1
a36318 1
ntp4 config.status 4.2.8
@


1.1.1.5
log
@---
(4.2.8p2) 2015/04/07 Released by Harlan Stenn <stenn@@ntp.org>
(4.2.8p2-RC3) 2015/04/03 Released by Harlan Stenn <stenn@@ntp.org>

* [Bug 2763] Fix for different thresholds for forward and backward steps.
---
(4.2.8p2-RC2) 2015/04/03 Released by Harlan Stenn <stenn@@ntp.org>

* [Bug 2592] FLAG_TSTAMP_PPS cleanup for refclock_parse.c.
* [Bug 2769] New script: update-leap
* [Bug 2769] cleannup for update-leap
* [Bug 2788] New flag -G (force_step_once).
* [Bug 2794] Clean up kernel clock status reports.
* [Bug 2795] Cannot build without OpenSLL (on Win32).
  Provided a Win32 specific wrapper around libevent/arc4random.c.
  fixed some minor warnings.
* [Bug 2796] ntp-keygen crashes in 'getclock()' on Win32.
* [Bug 2797] ntp-keygen trapped in endless loop for MD5 keys
  on big-endian machines.
* [Bug 2798] sntp should decode and display the leap indicator.
* Simple cleanup to html/build.html
---
(4.2.8p2-RC1) 2015/03/30 Released by Harlan Stenn <stenn@@ntp.org>

* [Bug 2794] Don't let reports on normal kernel status changes
  look like errors.
* [Bug 2788] New flag -G (force_step_once).
* [Bug 2592] Account for PPS sources which can provide an accurate
  absolute time stamp, and status information.
  Fixed indention and removed trailing whitespace.
* [Bug 1787] DCF77's formerly "antenna" bit is "call bit" since 2003.
* [Bug 1960] setsockopt IPV6_MULTICAST_IF: Invalid argument.
* [Bug 2346] "graceful termination" signals do not do peer cleanup.
* [Bug 2728] See if C99-style structure initialization works.
* [Bug 2747] Upgrade libevent to 2.1.5-beta.
* [Bug 2749] ntp/lib/NTP/Util.pm needs update for ntpq -w, IPv6, .POOL. .
* [Bug 2751] jitter.h has stale copies of l_fp macros.
* [Bug 2756] ntpd hangs in startup with gcc 3.3.5 on ARM.
* [Bug 2757] Quiet compiler warnings.
* [Bug 2759] Expose nonvolatile/clk_wander_threshold to ntpq.
* [Bug 2763] Allow different thresholds for forward and backward steps.
* [Bug 2766] ntp-keygen output files should not be world-readable.
* [Bug 2767] ntp-keygen -M should symlink to ntp.keys.
* [Bug 2771] nonvolatile value is documented in wrong units.
* [Bug 2773] Early leap announcement from Palisade/Thunderbolt
* [Bug 2774] Unreasonably verbose printout - leap pending/warning
* [Bug 2775] ntp-keygen.c fails to compile under Windows.
* [Bug 2777] Fixed loops and decoding of Meinberg GPS satellite info.
  Removed non-ASCII characters from some copyright comments.
  Removed trailing whitespace.
  Updated definitions for Meinberg clocks from current Meinberg header files.
  Now use C99 fixed-width types and avoid non-ASCII characters in comments.
  Account for updated definitions pulled from Meinberg header files.
  Updated comments on Meinberg GPS receivers which are not only called GPS16x.
  Replaced some constant numbers by defines from ntp_calendar.h
  Modified creation of parse-specific variables for Meinberg devices
  in gps16x_message().
  Reworked mk_utcinfo() to avoid printing of ambiguous leap second dates.
  Modified mbg_tm_str() which now expexts an additional parameter controlling
  if the time status shall be printed.
* [Sec 2779] ntpd accepts unauthenticated packets with symmetric key crypto.
* [Sec 2781] Authentication doesn't protect symmetric associations against
  DoS attacks.
* [Bug 2783] Quiet autoconf warnings about missing AC_LANG_SOURCE.
* [Bug 2789] Quiet compiler warnings from libevent.
* [Bug 2790] If ntpd sets the Windows MM timer highest resolution
  pause briefly before measuring system clock precision to yield
  correct results.
* Comment from Juergen Perlinger in ntp_calendar.c to make the code clearer.
* Use predefined function types for parse driver functions
  used to set up function pointers.
  Account for changed prototype of parse_inp_fnc_t functions.
  Cast parse conversion results to appropriate types to avoid
  compiler warnings.
  Let ioctl() for Windows accept a (void *) to avoid compiler warnings
  when called with pointers to different types.
---
(4.2.8p1) 2015/02/04 Released by Harlan Stenn <stenn@@ntp.org>

* Update the NEWS file.
* [Sec 2671] vallen in extension fields are not validated.
---
(4.2.8p1-RC2) 2015/01/29 Released by Harlan Stenn <stenn@@ntp.org>

* [Bug 2627] shm refclock allows only two units with owner-only access
  rework: reverted sense of mode bit (so default reflects previous
  behaviour) and updated ducumentation.
* [Bug 2732] - Leap second not handled correctly on Windows 8
  use 'GetTickCount()' to get the true elapsed time of slew
  (This should work for all versions of Windows >= W2K)
* [Bug 2738] Missing buffer initialization in refclocK_parse.c::parsestate().
* [Bug 2739] Parse driver with PPS enabled occasionally evaluates
  PPS timestamp with wrong sign.
  Removed some German umlauts.
* [Bug 2740] Removed some obsolete code from the parse driver.
* [Bug 2741] Incorrect buffer check in refclocK_parse.c::parsestatus().
---
(4.2.8p1-RC1) 2015/01/24 Released by Harlan Stenn <stenn@@ntp.org>

* Start the RC for 4.2.8p1.
* [Bug 2187] Update version number generation scripts.
* [Bug 2617] Fix sntp Usage documentation section.
* [Sec 2672] Code cleanup: On some OSes ::1 can be spoofed...
* [Bug 2736] Show error message if we cannot open the config file.
* Copyright update.
* Fix the package name.
---
(4.2.8p1-beta5) 2015/01/07 Released by Harlan Stenn <stenn@@ntp.org>

* [Bug 2695] Windows build: __func__ not supported under Windows.
* [Bug 2728] Work around C99-style structure initialization code
  for older compilers, specifically Visual Studio prior to VS2013.
---
(4.2.8p1-beta4) 2015/01/04 Released by Harlan Stenn <stenn@@ntp.org>

* [Bug 1084] PPSAPI for ntpd on Windows with DLL backends
* [Bug 2695] Build problem on Windows (sys/socket.h).
* [Bug 2715] mdnstries option for ntp.conf from NetBSD.
* Fix a regression introduced to timepps-Solaris.h as part of:
  [Bug 1206] Required compiler changes for Windows
  (4.2.5p181) 2009/06/06
---
(4.2.8p1-beta3) 2015/01/02 Released by Harlan Stenn <stenn@@ntp.org>

* [Bug 2627] shm refclock allows only two units with owner-only access
  Use mode bit 0 to select public access for units >= 2 (units 0 & 1 are
  always private.
* [Bug 2681] Fix display of certificate EOValidity dates on 32-bit systems.
* [Bug 2695] 4.2.8 does not build on Windows.
* [bug 2700] mrulist stopped working in 4.2.8.
* [Bug 2706] libparse/info_trimble.c build dependencies are broken.
* [Bug 2713] variable type/cast, parameter name, general cleanup from NetBSD.
* [Bug 2714] libevent may need to be built independently of any build of sntp.
* [Bug 2715] mdnstries option for ntp.conf from NetBSD.
---
(4.2.8p1-beta2) 2014/12/27 Released by Harlan Stenn <stenn@@ntp.org>

* [Bug 2674] Install sntp in sbin on NetBSD.
* [Bug 2693] ntp-keygen doesn't build without OpenSSL and sntp.
* [Bug 2707] Avoid a C90 extension in libjsmn/jsmn.c.
* [Bug 2709] see if we have a C99 compiler (not yet required).
---
(4.2.8p1-beta1) 2014/12/23 Released by Harlan Stenn <stenn@@ntp.org>

* [Sec 2672] On some OSes ::1 can be spoofed, bypassing source IP ACLs.
* [Bug 2693] ntp-keygen doesn't build without OpenSSL.
* [Bug 2697] IN6_IS_ADDR_LOOPBACK build problems on some OSes.
* [Bug 2699] HAVE_SYS_SELECT_H is misspelled in refclock_gpsdjson.c.
---
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.68 for ntp 4.2.8p2.
d571 4
a574 4
PACKAGE_NAME='ntp'
PACKAGE_TARNAME='ntp'
PACKAGE_VERSION='4.2.8p2'
PACKAGE_STRING='ntp 4.2.8p2'
d652 1
a669 1
LDADD_LIBUTIL
a675 5
BUILD_LIBEVENT_FALSE
BUILD_LIBEVENT_TRUE
LDADD_LIBEVENT
CPPFLAGS_LIBEVENT
PKG_CONFIG
a707 7
INSTALL_UPDATE_LEAP_FALSE
INSTALL_UPDATE_LEAP_TRUE
UPDATE_LEAP_NI
UPDATE_LEAP_MS
UPDATE_LEAP_DS
UPDATE_LEAP_DL
UPDATE_LEAP_DB
d1571 1
a1571 1
\`configure' configures ntp 4.2.8p2 to adapt to many kinds of systems.
d1619 1
a1619 1
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp]
d1641 1
a1641 1
     short | recursive ) echo "Configuration of ntp 4.2.8p2:";;
d1807 1
a1807 1
ntp home page: <http://www.ntp.org./>.
d1870 1
a1870 1
ntp configure 4.2.8p2
d2695 1
a2695 1
It was created by ntp $as_me 4.2.8p2, which was
d3641 2
a3642 2
 PACKAGE='ntp'
 VERSION='4.2.8p2'
a5431 177
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if ${ac_cv_prog_cc_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>

// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}

// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;

struct incomplete_array
{
  int datasize;
  double data[];
};

struct named_init {
  int number;
  const wchar_t *name;
  double average;
};

typedef const char *ccp;

static inline int
test_restrict (ccp restrict text)
{
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
  return 0;
}

// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
{
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);

  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
}

int
main ()
{

  // Check bool.
  _Bool success = false;

  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";

  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);

  ;
  return 0;
}
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :

fi


a6164 1

a7599 38
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }


	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			struct foo_s {int i1; int i2;};
			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



a7765 13

 if test -z "$UPDATE_LEAP_NI" ; then
  INSTALL_UPDATE_LEAP_TRUE=
  INSTALL_UPDATE_LEAP_FALSE='#'
else
  INSTALL_UPDATE_LEAP_TRUE='#'
  INSTALL_UPDATE_LEAP_FALSE=
fi





a19239 120
ntp_pkgconfig_min_version='0.15.0'
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}

case "$PKG_CONFIG" in
 /*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	PKG_CONFIG=""
    fi
    ;;
esac




a19251 85
ntp_libevent_min_version=2
ntp_libevent_tearoff=sntp/libevent




case "$ntp_use_local_libevent" in
 yes)
    ;;
 *) # If we have (a good enough) pkg-config, see if it can find libevent
    case "$PKG_CONFIG" in
     /*)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
	if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
	then
	    ntp_use_local_libevent=no
	    { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
$as_echo "$as_me: Using the installed libevent" >&6;}
	    CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
	    # HMS: I hope the following is accurate.
	    # We don't need -levent, we only need  -levent_core.
	    # While we could grab only the -L stuff, there *might* be
	    # other flags there we want.  Originally we just removed -levent
	    # but then somebody decided to install -levent-2.0
	    # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
	    # So now we dance...
	    LDADD_LIBEVENT=
	    for i in `$PKG_CONFIG --libs libevent`
	    do
		case "$i" in
		 -levent*) ;;
		 *) case "$LDADD_LIBEVENT" in
		     '') LDADD_LIBEVENT="$i" ;;
		     *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
		    esac
		    ;;
		esac
	    done
	    case "$LIBISC_PTHREADS_NOTHREADS" in
	     pthreads)
		LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
	    esac
	    LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	else
	    ntp_use_local_libevent=yes
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	fi
	;;
     *)
	ntp_use_local_libevent=yes
	;;
    esac
    ;;
esac

case "$ntp_use_local_libevent" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
$as_echo "$as_me: Using libevent tearoff" >&6;}
    CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
    case "$LIBISC_PTHREADS_NOTHREADS" in
     pthreads)
	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
	;;
     *)
	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
    esac
esac

 if test "x$ntp_use_local_libevent" = "xyes"; then
  BUILD_LIBEVENT_TRUE=
  BUILD_LIBEVENT_FALSE='#'
else
  BUILD_LIBEVENT_TRUE='#'
  BUILD_LIBEVENT_FALSE=
fi





a21080 67
# Bug 2713
LDADD_LIBUTIL=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
$as_echo_n "checking for library containing snprintb... " >&6; }
if ${ac_cv_search_snprintb+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char snprintb ();
int
main ()
{
return snprintb ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' util; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_snprintb=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_snprintb+:} false; then :
  break
fi
done
if ${ac_cv_search_snprintb+:} false; then :

else
  ac_cv_search_snprintb=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
$as_echo "$ac_cv_search_snprintb" >&6; }
ac_res=$ac_cv_search_snprintb
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_snprintb" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
 esac

$as_echo "#define USE_SNPRINTB 1" >>confdefs.h

fi


a29954 14
for ac_func in arc4random_buf
do :
  ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
if test "x$ac_cv_func_arc4random_buf" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ARC4RANDOM_BUF 1
_ACEOF

fi
done


####

d31243 4
a31246 4
			#include <sys/syscall.h>
			#if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
			# error
			#endif
d31282 4
a31285 4
		#include <sys/timex.h>
		#ifndef STA_FLL
		# error
		#endif
d33049 120
d34980 1
d35002 1
d36098 1
a36098 1
ac_config_files="$ac_config_files scripts/build/Makefile"
d36100 1
a36100 1
ac_config_files="$ac_config_files scripts/build/mkver"
d36104 1
a36104 1
ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
d36106 1
a36106 1
ac_config_files="$ac_config_files scripts/lib/Makefile"
d36110 1
a36110 1
ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
d36114 1
a36114 1
ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
a36117 2
ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"

d36124 1
a36124 1
ac_config_files="$ac_config_files scripts/update-leap/Makefile"
a36317 4
if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
a36329 4
if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d36759 1
a36759 1
This file was extended by ntp $as_me 4.2.8p2, which was
d36820 1
a36820 1
ntp home page: <http://www.ntp.org./>."
d36826 1
a36826 1
ntp config.status 4.2.8p2
d37353 3
a37355 1
    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
d37357 1
a37357 3
    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
d37359 1
a37359 1
    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
d37361 1
a37361 1
    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
a37362 1
    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
d37366 1
a37366 1
    "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
d38904 1
a38905 1
    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
@


1.1.1.6
log
@Import ntp 4.2.8p3
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p3.
d8 3
a10 1
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
a138 25
# Use a proper internal environment variable to ensure we don't fall
  # into an infinite loop, continuously re-executing ourselves.
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    _as_can_reexec=no; export _as_can_reexec;
    # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
as_fn_exit 255
  fi
  # We don't want this to propagate to other subprocesses.
          { _as_can_reexec=; unset _as_can_reexec;}
d172 1
a172 2
test x\$exitcode = x0 || exit 1
test -x / || exit 1"
d225 15
a239 19
  export CONFIG_SHELL
             # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
a341 8

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
a462 4
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  # already done that, so ensure we don't try to do so again and fall
  # in an infinite loop.  This has already happened in practice.
  _as_can_reexec=no; export _as_can_reexec
d497 1
a497 1
    # In both cases, we have to default to `cp -pR'.
d499 1
a499 1
      as_ln_s='cp -pR'
d503 1
a503 1
    as_ln_s='cp -pR'
d506 1
a506 1
  as_ln_s='cp -pR'
d518 22
a539 2
as_test_x='test -x'
as_executable_p=as_fn_executable_p
d573 2
a574 2
PACKAGE_VERSION='4.2.8p3'
PACKAGE_STRING='ntp 4.2.8p3'
a628 4
UNITYBUILD_AVAILABLE_FALSE
UNITYBUILD_AVAILABLE_TRUE
PATH_RUBY
HAVE_LEAPSMEARINTERVAL
d701 2
a712 2
ac_ct_AR
AR
a819 1
am__nodep
a842 2
AM_DEFAULT_V
AM_V
a1023 1
enable_leap_smear
d1496 2
d1583 1
a1583 1
\`configure' configures ntp 4.2.8p3 to adapt to many kinds of systems.
d1653 1
a1653 1
     short | recursive ) echo "Configuration of ntp 4.2.8p3:";;
d1663 4
a1666 6
  --enable-silent-rules   less verbose build output (undo: "make V=1")
  --disable-silent-rules  verbose build output (undo: "make V=0")
  --enable-dependency-tracking
                          do not reject slow dependency extractors
  --disable-dependency-tracking
                          speeds up one-time build
a1793 1
  --enable-leap-smear     - experimental leap smear code
d1882 2
a1883 2
ntp configure 4.2.8p3
generated by GNU Autoconf 2.69
d1885 1
a1885 1
Copyright (C) 2012 Free Software Foundation, Inc.
d2162 1
a2162 1
	 test -x conftest$ac_exeext
d2350 1
a2350 1
	 test -x conftest$ac_exeext
d2440 1
a2440 2
test_array [0] = 0;
return test_array [0];
d2456 1
a2456 2
test_array [0] = 0;
return test_array [0];
d2482 1
a2482 2
test_array [0] = 0;
return test_array [0];
d2498 1
a2498 2
test_array [0] = 0;
return test_array [0];
d2532 1
a2532 2
test_array [0] = 0;
return test_array [0];
d2707 2
a2708 2
It was created by ntp $as_me 4.2.8p3, which was
generated by GNU Autoconf 2.69.  Invocation command line was
d3216 1
a3216 1
am__api_version='1.15'
d3255 1
a3255 1
	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d3313 3
d3326 1
a3326 1
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
d3329 1
a3329 1
# Do 'set' in a subshell so we don't clobber the current shell's
d3335 16
a3350 10
   am_has_slept=no
   for am_try in 1 2; do
     echo "timestamp, slept: $am_has_slept" > conftest.file
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
     if test "$*" = "X"; then
	# -L didn't work.
	set X `ls -t "$srcdir/configure" conftest.file`
     fi
     if test "$*" != "X $srcdir/configure conftest.file" \
	&& test "$*" != "X conftest.file $srcdir/configure"; then
a3351 14
	# If neither matched, then we have a broken ls.  This can happen
	# if, for instance, CONFIG_SHELL is bash and it inherits a
	# broken ls alias from the environment.  This has actually
	# happened.  Such a system could not be considered "sane".
	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  alias in your environment" "$LINENO" 5
     fi
     if test "$2" = conftest.file || test $am_try -eq 2; then
       break
     fi
     # Just in case.
     sleep 1
     am_has_slept=yes
   done
a3362 10
# If we didn't sleep, we still need to ensure time stamps of config.status and
# generated files are strictly newer.
am_sleep_pid=
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  ( sleep 1 ) &
  am_sleep_pid=$!
fi

rm -f conftest.file

d3373 2
a3374 2
# Expand $ac_aux_dir to an absolute path.
am_aux_dir=`cd "$ac_aux_dir" && pwd`
d3385 2
a3386 2
if eval "$MISSING --is-lightweight"; then
  am_missing_run="$MISSING "
d3389 2
a3390 2
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
d3393 1
a3393 1
if test x"${install_sh+set}" != xset; then
d3402 2
a3403 2
# Installed binaries are usually stripped using 'strip' when the user
# run "make install-strip".  However 'strip' might not be the right
d3405 1
a3405 1
# will honor the 'STRIP' environment variable to overrule this program.
d3424 1
a3424 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3464 1
a3464 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3515 1
a3515 1
	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
d3544 6
d3568 1
a3568 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a3631 39
# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in # (((
  yes) AM_DEFAULT_VERBOSITY=0;;
   no) AM_DEFAULT_VERBOSITY=1;;
    *) AM_DEFAULT_VERBOSITY=1;;
esac
am_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if ${am_cv_make_support_nested_variables+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
	@@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  am_cv_make_support_nested_variables=yes
else
  am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
    AM_V='$(V)'
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
  AM_V=$AM_DEFAULT_VERBOSITY
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
AM_BACKSLASH='\'

d3654 1
a3654 1
 VERSION='4.2.8p3'
d3682 3
a3684 18
# For better backward compatibility.  To be removed once Automake 1.9.x
# dies out for good.  For more background, see:
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
mkdir_p='$(MKDIR_P)'

# We need awk for the "check" target (and possibly the TAP driver).  The
# system "awk" is bad on some platforms.
# Always define AMTAR for backward compatibility.  Yes, it's still used
# in the wild :-(  We should find a proper way to deprecate it ...
AMTAR='$${TAR-tar}'


# We'll loop over all known methods to create a tar archive until one works.
_am_tools='gnutar  pax cpio none'

am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'

d3686 1
d3688 1
a3691 11
# POSIX will say in a future version that running "rm -f" with no argument
# is OK; and we want to be able to make that assumption in our Makefile
# recipes.  So use an aggressive probe to check that the usage we want is
# actually supported "in the wild" to an acceptable degree.
# See automake bug#10828.
# To make any issue more visible, cause the running configure to be aborted
# by default if the 'rm' program in use doesn't match our expectations; the
# user can still override this though.
if rm -f && rm -fr && rm -rf; then : OK; else
  cat >&2 <<'END'
Oops!
a3692 29
Your 'rm' program seems unable to run without file operands specified
on the command line, even when the '-f' option is present.  This is contrary
to the behaviour of most rm programs out there, and not conforming with
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>

Please tell bug-automake@@gnu.org about your system, including the value
of your $PATH and any error possibly output before this message.  This
can help us improve future automake versions.

END
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
    echo 'Configuration will proceed anyway, since you have set the' >&2
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
    echo >&2
  else
    cat >&2 <<'END'
Aborting the configuration process, to ensure you take notice of the issue.

You can download and install GNU coreutils to get an 'rm' implementation
that behaves properly: <http://www.gnu.org/software/coreutils/>.

If you want to complete the configuration process using your problematic
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
to "yes", and re-run configure.

END
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  fi
fi
d3700 4
a3703 4
case $enable_silent_rules in # (((
  yes) AM_DEFAULT_VERBOSITY=0;;
   no) AM_DEFAULT_VERBOSITY=1;;
    *) AM_DEFAULT_VERBOSITY=0;;
a3704 27
am_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if ${am_cv_make_support_nested_variables+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
	@@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  am_cv_make_support_nested_variables=yes
else
  am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
    AM_V='$(V)'
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
  AM_V=$AM_DEFAULT_VERBOSITY
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
d3812 1
a3812 1
# Ignore all kinds of additional output from 'make'.
a3844 1
  am__nodep='_no'
d3877 1
a3877 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3917 1
a3917 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d3970 1
a3970 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4011 1
a4011 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4069 1
a4069 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4113 1
a4113 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4559 2
a4560 1
struct stat;
a4644 59
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
if ${am_cv_prog_cc_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
  # Make sure it works both with $CC and with simple cc.
  # Following AC_PROG_CC_C_O, we do the test twice because some
  # compilers refuse to overwrite an existing .o file with -o,
  # though they will create one.
  am_cv_prog_cc_c_o=yes
  for am_i in 1 2; do
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } \
         && test -f conftest2.$ac_objext; then
      : OK
    else
      am_cv_prog_cc_c_o=no
      break
    fi
  done
  rm -f core conftest*
  unset am_i
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
$as_echo "$am_cv_prog_cc_c_o" >&6; }
if test "$am_cv_prog_cc_c_o" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


d4656 2
a4657 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d4691 3
a4693 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d4697 1
a4697 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d4699 2
a4700 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d4709 2
a4710 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d4717 2
a4718 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d4927 1
a4927 1
      as_fn_executable_p "$ac_path_GREP" || continue
d4993 1
a4993 1
      as_fn_executable_p "$ac_path_EGREP" || continue
d5241 110
d5363 2
a5364 1
struct stat;
d5590 1
a5590 1
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
d5647 1
a5647 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5687 1
a5687 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5740 1
a5740 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5781 1
a5781 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5839 1
a5839 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5883 1
a5883 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d6079 2
a6080 1
struct stat;
a6164 59
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
if ${am_cv_prog_cc_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
  # Make sure it works both with $CC and with simple cc.
  # Following AC_PROG_CC_C_O, we do the test twice because some
  # compilers refuse to overwrite an existing .o file with -o,
  # though they will create one.
  am_cv_prog_cc_c_o=yes
  for am_i in 1 2; do
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } \
         && test -f conftest2.$ac_objext; then
      : OK
    else
      am_cv_prog_cc_c_o=no
      break
    fi
  done
  rm -f core conftest*
  unset am_i
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
$as_echo "$am_cv_prog_cc_c_o" >&6; }
if test "$am_cv_prog_cc_c_o" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


d6176 2
a6177 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d6211 3
a6213 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d6217 1
a6217 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d6219 2
a6220 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d6229 2
a6230 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d6237 2
a6238 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d6294 14
d6658 1
a6658 1
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
d6668 1
a6668 1
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
a7250 1
# Do we need CXX for anything besides google test?
d7279 1
a7279 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7323 1
a7323 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7519 2
a7520 3
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
d7554 3
a7556 3
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
d7560 1
a7560 1
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
d7562 2
a7563 2
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
d7572 2
a7573 2
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
d7580 2
a7581 2
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
d7653 1
a7653 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8004 171
if test -n "$ac_tool_prefix"; then
  for ac_prog in ar lib "link -lib"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar lib "link -lib"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_AR" && break
done

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
fi

: ${AR=ar}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
$as_echo_n "checking the archiver ($AR) interface... " >&6; }
if ${am_cv_ar_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

   am_cv_ar_interface=ar
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int some_variable = 0;
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  (eval $am_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
        am_cv_ar_interface=ar
      else
        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  (eval $am_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        if test "$ac_status" -eq 0; then
          am_cv_ar_interface=lib
        else
          am_cv_ar_interface=unknown
        fi
      fi
      rm -f conftest.lib libconftest.a

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
$as_echo "$am_cv_ar_interface" >&6; }

case $am_cv_ar_interface in
ar)
  ;;
lib)
  # Microsoft lib, so override with the ar-lib wrapper script.
  # FIXME: It is wrong to rewrite AR.
  # But if we don't then we get into trouble of one sort or another.
  # A longer-term fix would be to have automake use am__AR in this case,
  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  # similar.
  AR="$am_aux_dir/ar-lib $AR"
  ;;
unknown)
  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  ;;
esac

d8048 2
a8049 2
macro_version='2.4.2'
macro_revision='1.3337'
d8156 1
a8156 1
      as_fn_executable_p "$ac_path_SED" || continue
d8235 1
a8235 1
      as_fn_executable_p "$ac_path_FGREP" || continue
d8491 1
a8491 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8535 1
a8535 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8954 1
a8954 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d8994 1
a8994 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9300 1
a9300 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9340 1
a9340 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9443 1
a9443 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9487 1
a9487 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9612 1
a9612 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9652 1
a9652 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9711 1
a9711 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9751 1
a9751 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10386 1
a10386 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10426 1
a10426 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10506 1
a10506 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10546 1
a10546 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10598 1
a10598 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10638 1
a10638 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10690 1
a10690 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10730 1
a10730 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10782 1
a10782 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10822 1
a10822 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10874 1
a10874 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d10914 1
a10914 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d18808 3
a18810 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
$as_echo_n "checking size of char *... " >&6; }
if ${ac_cv_sizeof_char_p+:} false; then :
d18813 1
a18813 1
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
d18816 1
a18816 1
  if test "$ac_cv_type_char_p" = yes; then
d18819 1
a18819 1
as_fn_error 77 "cannot compute sizeof (char *)
d18822 1
a18822 1
     ac_cv_sizeof_char_p=0
d18827 2
a18828 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
$as_echo "$ac_cv_sizeof_char_p" >&6; }
d18833 1
a18833 1
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
d19297 1
a19297 1
      as_fn_executable_p "$ac_path_SED" || continue
d19501 1
a19501 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d19544 1
a19544 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a19760 57
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
$as_echo_n "checking for unsigned long long int... " >&6; }
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_unsigned_long_long_int=yes
     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

else
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h

  fi


d19893 1
a19893 2
test_array [0] = 0;
return test_array [0];
a19915 1

d19921 34
a19955 5
      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
	if test $ac_cv_type_long_long_int = yes; then
	  	  	  	  if test "$cross_compiling" = yes; then :
  :
d19960 5
a19964 5
		 #ifndef LLONG_MAX
		 # define HALF \
			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
		 # define LLONG_MAX (HALF - 1 + HALF)
		 #endif
d19969 10
a19978 10
		 int i;
		 for (i = 0; ; i++)
		   {
		     long long int m = n << i;
		     if (m >> i != n)
		       return 1;
		     if (LLONG_MAX / 2 < m)
		       break;
		   }
		 return 0;
d19984 1
a19984 1

d19992 5
a19996 2
	fi
      fi
d20012 1
a20012 3
  ac_cv_type_unsigned_long_long_int=yes
     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d20045 1
a20045 1

a20050 1
     fi
d20125 1
a20125 2
test_array [0] = 0;
return test_array [0];
d20179 1
a20179 1

d20181 1
a20181 1
  /* Ultrix mips cc rejects this sort of thing.  */
d20183 1
a20183 1
  const charset cs = { 0, 0 };
d20200 2
a20201 3
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char tx;
    char *t = &tx;
d20217 1
a20217 1
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
d20219 2
a20220 2
    struct s { int j; const int *ap[3]; } bx;
    struct s *b = &bx; b->j = 5;
d20343 1
a20343 1

d20345 1
a20345 1
  /* Ultrix mips cc rejects this sort of thing.  */
d20347 1
a20347 1
  const charset cs = { 0, 0 };
d20364 2
a20365 3
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char tx;
    char *t = &tx;
d20381 1
a20381 1
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
d20383 2
a20384 2
    struct s { int j; const int *ap[3]; } bx;
    struct s *b = &bx; b->j = 5;
d21266 1
a21266 1
find_stack_direction (int *addr, int depth)
d21268 9
a21276 6
  int dir, dummy = 0;
  if (! addr)
    addr = &dummy;
  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  return dir + dummy;
d21280 1
a21280 1
main (int argc, char **argv)
d21282 1
a21282 1
  return find_stack_direction (0, argc + !argv + 20) < 0;
d22255 1
a22255 2
test_array [0] = 0;
return test_array [0];
d22654 1
a22654 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a28280 3
     *-stratus-vos)
	ans=no
	;;
a28358 3
     *-stratus-vos)
	ans=no
	;;
a28421 3
     *-stratus-vos)
	ans=no
	;;
d28601 1
a28601 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28748 1
a28748 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28789 1
a28789 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d28864 1
a28864 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a28891 14
case "$PATH_NET_SNMP_CONFIG" in
 /*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
$as_echo_n "checking for net-snmp version... " >&6; }
if ${ntp_cv_net_snmp_version+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
$as_echo "$ntp_cv_net_snmp_version" >&6; }
	;;
esac

d29312 1
a29312 1
for ac_header in sgtty.h stdatomic.h stdlib.h string.h termio.h
a29629 47
case "$ac_cv_header_stdatomic_h" in
 yes)
	for ac_func in atomic_thread_fence
do :
  ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ATOMIC_THREAD_FENCE 1
_ACEOF

fi
done

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
$as_echo_n "checking for atomic_thread_fence()... " >&6; }
if ${ntp_cv_func_atomic_thread_fence+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <stdatomic.h>

int
main ()
{

			atomic_thread_fence(memory_order_seq_cst);


  ;
  return 0;
}
		ntp_cv_func_atomic_thread_fence=yes
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_func_atomic_thread_fence=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
$as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
    ;;
esac

a33976 1
# Because we don't want -Werror for the EVP_MD_do_all_sorted check
a33977 18

case "$ntp_openssl" in
 yes)
    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
    for ac_func in EVP_MD_do_all_sorted
do :
  ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_EVP_MD_DO_ALL_SORTED 1
_ACEOF

fi
done

    ;;
esac

a34493 3
	 *-stratus-vos)
	    ans=no
	    ;;
a34555 3
	 *-stratus-vos)
	    ans=no
	    ;;
a35006 5
	# Bug 2815.  This is a bit of a hack, but it works...
	case "$ntp_cv_net_snmp_version" in
	 5.3*)	SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
		;;
	esac
a35166 3
 *-stratus-vos)
    ans=no
    ;;
a36346 88
###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
$as_echo_n "checking if we want the experimental leap smear code... " >&6; }
# Check whether --enable-leap-smear was given.
if test "${enable_leap_smear+set}" = set; then :
  enableval=$enable_leap_smear; ntp_ok=$enableval
else
  ntp_ok=no

fi

ntp_leap_smear_enabled=0
case "$ntp_ok" in
 yes)
    ntp_leap_smear_enabled=1

$as_echo "#define LEAP_SMEAR 1" >>confdefs.h


    HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }


# We may not need have_unity
have_unity=false
# Extract the first word of "ruby", so it can be a program name with args.
set dummy ruby; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_RUBY+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_RUBY in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_RUBY=$ac_cv_path_PATH_RUBY
if test -n "$PATH_RUBY"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
$as_echo "$PATH_RUBY" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


case "$PATH_RUBY" in
 /*)
    have_unity=true
    ;;
 *) PATH_RUBY="false"
    ;;
esac
# We may not need UNITYBUILD_AVAILABLE
 if $have_unity; then
  UNITYBUILD_AVAILABLE_TRUE=
  UNITYBUILD_AVAILABLE_FALSE='#'
else
  UNITYBUILD_AVAILABLE_TRUE='#'
  UNITYBUILD_AVAILABLE_FALSE=
fi




d36378 1
a36378 1
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a36532 2
ac_config_files="$ac_config_files scripts/update-leap/update-leap"

a36534 2
ac_config_files="$ac_config_files tests/bug-2803/Makefile"

a36538 4
ac_config_files="$ac_config_files tests/sandbox/Makefile"

ac_config_files="$ac_config_files tests/sec-2853/Makefile"

a36687 8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
$as_echo_n "checking that generated files are newer than configure... " >&6; }
   if test -n "$am_sleep_pid"; then
     # Hide warnings about reused PIDs.
     wait $am_sleep_pid 2>/dev/null
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
$as_echo "done" >&6; }
a36760 4
if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
  as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d37063 1
a37063 1
    # In both cases, we have to default to `cp -pR'.
d37065 1
a37065 1
      as_ln_s='cp -pR'
d37069 1
a37069 1
    as_ln_s='cp -pR'
d37072 1
a37072 1
  as_ln_s='cp -pR'
d37132 22
a37153 10

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
as_test_x='test -x'
as_executable_p=as_fn_executable_p
d37174 2
a37175 2
This file was extended by ntp $as_me 4.2.8p3, which was
generated by GNU Autoconf 2.69.  Invocation command line was
d37241 2
a37242 2
ntp config.status 4.2.8p3
configured by $0, generated by GNU Autoconf 2.69,
d37245 1
a37245 1
Copyright (C) 2012 Free Software Foundation, Inc.
d37336 1
a37336 1
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
a37782 1
    "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
a37783 1
    "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
a37785 2
    "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
    "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
d38422 1
a38422 1
  # Older Autoconf quotes --file arguments for eval, but not when files
d38435 1
a38435 1
    # We used to match only the files named 'Makefile.in', but
d38469 1
a38469 1
    # from the Makefile without running 'make'.
d38473 1
a38473 1
    test -z "$am__include" && continue
d38475 2
d38483 1
a38483 1
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
d39318 1
a39318 1
    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' -e '/^$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
a39327 1
    "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
@


1.1.1.7
log
@Import ntp 4.2.8p4
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p4.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p4'
PACKAGE_STRING='ntp 4.2.8p4'
a641 6
BUILD_TEST_NTP_SIGND_FALSE
BUILD_TEST_NTP_SIGND_TRUE
BUILD_TEST_NTP_SCANNER_FALSE
BUILD_TEST_NTP_SCANNER_TRUE
BUILD_TEST_NTP_RESTRICT_FALSE
BUILD_TEST_NTP_RESTRICT_TRUE
a691 2
LTHREAD_LIBS
BUILD_THREAD
a703 1
CFLAGS_LIBEVENT
a1052 1
enable_problem_tests
d1609 1
a1609 1
\`configure' configures ntp 4.2.8p4 to adapt to many kinds of systems.
d1679 1
a1679 1
     short | recursive ) echo "Configuration of ntp 4.2.8p4:";;
d1727 1
a1727 1
  --with-memlock          ? =32 (-1 on linux) megabytes
a1823 1
  --enable-problem-tests  + enable tests with undiagnosed problems
d1911 1
a1911 1
ntp configure 4.2.8p4
d2741 1
a2741 1
It was created by ntp $as_me 4.2.8p4, which was
a3119 6
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

d3736 1
a3736 1
 VERSION='4.2.8p4'
d6771 1
a6771 1
    # allow ntp_os_cflags to be preset to skip this stuff
d6859 1
a6859 1
    case "$ntp_os_cflags" in
a6869 32
    ###
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
$as_echo_n "checking additional linker flags... " >&6; }
    # HMS: The following might still need tweaking
    # allow ntp_os_ldflags to be preset to skip this stuff
    case "${ntp_os_ldflags+set}" in
     set)
	;;
     *)
	ntp_os_ldflags=
	case "$host_os" in
	 hpux*)
	    case "$GCC" in
	     yes)
		ntp_os_ldflags="-Wl,+allowdups"
		;;
	    esac
	    ;;
	esac
	;;
    esac
    case "$ntp_os_ldflags" in
     '')
	ntp_os_ldflags_msg="none needed"
	;;
     *)
	ntp_os_ldflags_msg="$ntp_os_ldflags"
    esac
    LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
$as_echo "$ntp_os_ldflags_msg" >&6; }
    { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
a19947 1

a19960 1
	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
a19989 3
	    # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
	    # is "pthreads"?
	    CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
a20014 1

d22944 1
a22944 2
 no) ;;
 *)
a26360 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
$as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}

a27400 4




d27426 50
a31238 5
case "$host" in
 *-*-*linux*)
    ntp_dflt_rlimit_memlock="-1" ;;
 *) ntp_dflt_rlimit_memlock="32" ;;
esac
d31242 1
a31242 1
    HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock"  ;;
d31291 2
d31342 1
a31342 1
    ans=$ntp_dflt_rlimit_memlock
a31356 1

a36997 75

case "$build" in
 $host)	cross=0 ;;
 *)	cross=1 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
$as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
# Check whether --enable-problem-tests was given.
if test "${enable_problem_tests+set}" = set; then :
  enableval=$enable_problem_tests; ntp_ept=$enableval
else
  ntp_ept=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
$as_echo "$ntp_ept" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
$as_echo_n "checking if we can run test-ntp_restrict... " >&6; }
ntp_test_ntp_restrict="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 no:0:*-*-hpux-11.23*) ;;
 *) ntp_test_ntp_restrict="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
$as_echo "$ntp_test_ntp_restrict" >&6; }
 if test x$ntp_test_ntp_restrict = xyes; then
  BUILD_TEST_NTP_RESTRICT_TRUE=
  BUILD_TEST_NTP_RESTRICT_FALSE='#'
else
  BUILD_TEST_NTP_RESTRICT_TRUE='#'
  BUILD_TEST_NTP_RESTRICT_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
$as_echo_n "checking if we can run test-ntp_scanner... " >&6; }
ntp_test_ntp_scanner="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 *) ntp_test_ntp_scanner="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
$as_echo "$ntp_test_ntp_scanner" >&6; }
 if test x$ntp_test_ntp_scanner = xyes; then
  BUILD_TEST_NTP_SCANNER_TRUE=
  BUILD_TEST_NTP_SCANNER_FALSE='#'
else
  BUILD_TEST_NTP_SCANNER_TRUE='#'
  BUILD_TEST_NTP_SCANNER_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
$as_echo_n "checking if we can run test-ntp_signd... " >&6; }
ntp_test_ntp_signd="no"
case "$ntp_ept:$cross:$host" in
 no:0:*-*-solaris*) ;;
 *) ntp_test_ntp_signd="yes" ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
$as_echo "$ntp_test_ntp_signd" >&6; }
 if test x$ntp_test_ntp_signd = xyes; then
  BUILD_TEST_NTP_SIGND_TRUE=
  BUILD_TEST_NTP_SIGND_FALSE='#'
else
  BUILD_TEST_NTP_SIGND_TRUE='#'
  BUILD_TEST_NTP_SIGND_FALSE=
fi



a37093 2
ac_config_files="$ac_config_files tests/ntpq/Makefile"

a37335 12
if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d37733 1
a37733 1
This file was extended by ntp $as_me 4.2.8p4, which was
d37800 1
a37800 1
ntp config.status 4.2.8p4
a38346 1
    "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;;
@


1.1.1.8
log
@Import ntp 4.2.8p5
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p5.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p5'
PACKAGE_STRING='ntp 4.2.8p5'
a726 1
LT_SYS_LIBRARY_PATH
a954 1
with_aix_soname
a1077 1
LT_SYS_LIBRARY_PATH
d1619 1
a1619 1
\`configure' configures ntp 4.2.8p5 to adapt to many kinds of systems.
d1689 1
a1689 1
     short | recursive ) echo "Configuration of ntp 4.2.8p5:";;
d1708 1
a1708 1
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
a1711 3
  --with-aix-soname=aix|svr4|both
                          shared library versioning (aka "SONAME") variant to
                          provide on AIX, [default=aix].
d1713 2
a1714 2
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
                          compiler's sysroot if not specified).
a1852 2
  LT_SYS_LIBRARY_PATH
              User-defined run-time library search path.
d1922 1
a1922 1
ntp configure 4.2.8p5
d2752 1
a2752 1
It was created by ntp $as_me 4.2.8p5, which was
d3753 1
a3753 1
 VERSION='4.2.8p5'
d5410 2
d5432 8
d8396 1
a8396 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d8398 1
a8398 1
	IFS=$lt_save_ifs
d8403 1
a8403 1
      IFS=$lt_save_ifs
d8426 2
a8427 2
macro_version='2.4.6'
macro_revision='2.4.6'
d8441 1
a8441 1
ltmain=$ac_aux_dir/ltmain.sh
d8490 1
a8490 1
case $ECHO in
d8683 1
a8683 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d8689 1
a8689 1
if test yes = "$GCC"; then
d8695 1
a8695 1
    # gcc leaves a trailing carriage return, which upsets mingw
d8709 1
a8709 1
      test -z "$LD" && LD=$ac_prog
d8720 1
a8720 1
elif test yes = "$with_gnu_ld"; then
d8731 1
a8731 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8733 1
a8733 1
    IFS=$lt_save_ifs
d8736 1
a8736 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d8742 1
a8742 1
	test no != "$with_gnu_ld" && break
d8745 1
a8745 1
	test yes != "$with_gnu_ld" && break
d8750 1
a8750 1
  IFS=$lt_save_ifs
d8752 1
a8752 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d8756 1
a8756 1
LD=$lt_cv_path_LD
d8799 1
a8799 1
  lt_cv_path_NM=$NM
d8801 1
a8801 1
  lt_nm_to_check=${ac_tool_prefix}nm
d8806 1
a8806 1
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8808 1
a8808 1
      IFS=$lt_save_ifs
d8810 2
a8811 2
      tmp_nm=$ac_dir/$lt_tmp_nm
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
d8813 1
a8813 1
	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
d8816 2
a8817 7
	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
	case $build_os in
	mingw*) lt_bad_file=conftest.nm/nofile ;;
	*) lt_bad_file=/dev/null ;;
	esac
	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
	*$lt_bad_file* | *'Invalid file or object type'*)
d8819 1
a8819 1
	  break 2
d8825 1
a8825 1
	    break 2
d8836 1
a8836 1
    IFS=$lt_save_ifs
d8843 2
a8844 2
if test no != "$lt_cv_path_NM"; then
  NM=$lt_cv_path_NM
d8950 1
a8950 1
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
d8952 1
a8952 1
      DUMPBIN="$DUMPBIN -symbols -headers"
d8960 2
a8961 2
  if test : != "$DUMPBIN"; then
    NM=$DUMPBIN
d9012 1
a9012 1
  teststring=ABCD
d9052 1
a9052 1
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a9070 5
  os2*)
    # The test takes a long time on OS/2.
    lt_cv_sys_max_cmd_len=8192
    ;;

d9097 1
a9097 2
    if test -n "$lt_cv_sys_max_cmd_len" && \
       test undefined != "$lt_cv_sys_max_cmd_len"; then
d9103 1
a9103 1
      for i in 1 2 3 4 5 6 7 8; do
d9110 1
a9110 1
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
d9112 1
a9112 1
	      test 17 != "$i" # 1/2 MB should be enough
d9130 1
a9130 1
if test -n "$lt_cv_sys_max_cmd_len"; then
d9148 24
d9294 1
a9294 1
    if test yes != "$GCC"; then
d9299 2
a9300 2
    if test yes = "$GCC"; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
d9428 1
a9428 1
# 'unknown' -- same as none, but documents that we really don't know.
d9432 3
a9434 3
# that responds to the $file_magic_cmd with a given extended regex.
# If you have 'file' or equivalent on your system and you're not sure
# whether 'pass_all' will *always* work, you probably want this one.
d9461 2
a9462 1
  if ( file / ) >/dev/null 2>&1; then
d9498 4
d9539 2
a9540 2
# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d9562 2
a9563 2
openbsd* | bitrig*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a9615 3
os2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9773 2
a9774 2
  # two different shell functions defined in ltmain.sh;
  # decide which one to use based on capabilities of $DLLTOOL
d9786 1
a9786 1
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
d9940 1
a9940 1
      if test 0 -eq "$ac_status"; then
d9948 1
a9948 1
	if test 0 -ne "$ac_status"; then
d9961 1
a9961 1
if test no = "$lt_cv_ar_at_file"; then
d10178 2
a10179 2
  bitrig* | openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
d10182 1
a10182 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
d10185 1
a10185 1
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d10268 1
a10268 1
  if test ia64 = "$host_cpu"; then
a10300 17
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  # Gets list of data symbols to import.
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  # Adjust the below global symbol transforms to fixup imported variables.
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
  lt_c_name_lib_hook="\
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
else
  # Disable hooks by default.
  lt_cv_sys_global_symbol_to_import=
  lt_cdecl_hook=
  lt_c_name_hook=
  lt_c_name_lib_hook=
fi

d10304 1
a10304 4
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
$lt_cdecl_hook\
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
d10307 2
a10308 12
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
$lt_c_name_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"

# Transform an extracted symbol line into symbol name with lib prefix and
# symbol address.
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
$lt_c_name_lib_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
d10326 2
a10327 2
    # Fake it for dumpbin and say T for any non-static function,
    # D for any global variable and I for any imported variable.
a10331 1
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
a10332 3
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
d10336 4
a10339 4
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
"     s[1]~/^[@@?]/{print f,s[1],s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print f,t[1],substr(t[1],length(prfx))}"\
d10387 2
a10388 2
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
/* DATA imports from DLLs on WIN32 can't be const, because runtime
d10391 1
a10391 1
#elif defined __osf__
d10417 1
a10417 1
	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
d10437 1
a10437 1
	  LIBS=conftstm.$ac_objext
d10443 1
a10443 1
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
d10464 1
a10464 1
  if test yes = "$pipe_works"; then
a10516 10










d10529 1
a10529 1
case $with_sysroot in #(
d10531 1
a10531 1
   if test yes = "$GCC"; then
d10541 2
a10542 2
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
$as_echo "$with_sysroot" >&6; }
a10553 80
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
$as_echo_n "checking for a working dd... " >&6; }
if ${ac_cv_path_lt_DD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
: ${lt_DD:=$DD}
if test -z "$lt_DD"; then
  ac_path_lt_DD_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in dd; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_lt_DD" || continue
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
fi
      $ac_path_lt_DD_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_lt_DD"; then
    :
  fi
else
  ac_cv_path_lt_DD=$lt_DD
fi

rm -f conftest.i conftest2.i conftest.out
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
$as_echo "$ac_cv_path_lt_DD" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
$as_echo_n "checking how to truncate binary pipes... " >&6; }
if ${lt_cv_truncate_bin+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
lt_cv_truncate_bin=
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
fi
rm -f conftest.i conftest2.i conftest.out
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
$as_echo "$lt_cv_truncate_bin" >&6; }







# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}

d10559 1
a10559 1
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
d10565 1
a10565 2
  # Find out what ABI is being produced by ac_compile, and set mode
  # options accordingly.
d10574 1
a10574 1
	HPUX_IA64_MODE=32
d10577 1
a10577 1
	HPUX_IA64_MODE=64
d10584 1
a10584 2
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10591 1
a10591 1
    if test yes = "$lt_cv_prog_gnu_ld"; then
d10620 1
a10620 37
mips64*-*linux*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    emul=elf
    case `/usr/bin/file conftest.$ac_objext` in
      *32-bit*)
	emul="${emul}32"
	;;
      *64-bit*)
	emul="${emul}64"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *MSB*)
	emul="${emul}btsmip"
	;;
      *LSB*)
	emul="${emul}ltsmip"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *N32*)
	emul="${emul}n32"
	;;
    esac
    LD="${LD-ld} -m $emul"
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
d10622 1
a10622 6
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.  Note that the listed cases only cover the
  # situations where additional linker options are needed (such as when
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  # vice versa); the common cases where no linker options are needed do
  # not appear in the list.
d10636 1
a10636 8
	    case `/usr/bin/file conftest.o` in
	      *x86-64*)
		LD="${LD-ld} -m elf32_x86_64"
		;;
	      *)
		LD="${LD-ld} -m elf_i386"
		;;
	    esac
d10638 1
a10638 4
	  powerpc64le-*linux*)
	    LD="${LD-ld} -m elf32lppclinux"
	    ;;
	  powerpc64-*linux*)
d10657 1
a10657 4
	  powerpcle-*linux*)
	    LD="${LD-ld} -m elf64lppc"
	    ;;
	  powerpc-*linux*)
d10675 1
a10675 1
  SAVE_CFLAGS=$CFLAGS
d10715 1
a10715 1
  if test yes != "$lt_cv_cc_needs_belf"; then
d10717 1
a10717 1
    CFLAGS=$SAVE_CFLAGS
d10720 2
a10721 3
*-*solaris*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10731 1
a10731 14
      yes*)
        case $host in
        i?86-*-solaris*|x86_64-*-solaris*)
          LD="${LD-ld} -m elf_x86_64"
          ;;
        sparc*-*-solaris*)
          LD="${LD-ld} -m elf64_sparc"
          ;;
        esac
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
          LD=${LD-ld}_sol2
        fi
        ;;
d10745 1
a10745 1
need_locks=$enable_libtool_lock
d10856 1
a10856 1
if test yes != "$lt_cv_path_mainfest_tool"; then
d11359 1
a11359 1
      if test -z "$LT_MULTI_MODULE"; then
d11371 1
a11371 7
	# If there is a non-empty error log, and "single_module"
	# appears in it, assume the flag caused a linker warning
        if test -s conftest.err && $GREP single_module conftest.err; then
	  cat conftest.err >&5
	# Otherwise, if the output was created with a 0 exit code from
	# the compiler, it worked.
	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a11381 1

d11409 1
a11409 1
	LDFLAGS=$save_LDFLAGS
a11413 1

d11435 1
a11435 3
      if test -s conftest.err && $GREP force_load conftest.err; then
	cat conftest.err >&5
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
d11448 1
a11448 1
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
d11450 1
a11450 1
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11457 3
a11459 3
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
	10.[012][,.]*)
	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11461 1
a11461 1
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
d11465 1
a11465 1
    if test yes = "$lt_cv_apple_cc_single_mod"; then
d11468 2
a11469 2
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
d11471 1
a11471 1
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
d11473 1
a11473 1
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a11480 35
# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}

d11499 3
a11501 3
  case $2 in
  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
d11529 1
a11529 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11531 1
a11531 1
	IFS=$lt_save_ifs
d11536 1
a11536 1
      IFS=$lt_save_ifs
d11554 1
a11554 16
  withval=$with_pic; lt_p=${PACKAGE-default}
    case $withval in
    yes|no) pic_mode=$withval ;;
    *)
      pic_mode=default
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
      for lt_pkg in $withval; do
	IFS=$lt_save_ifs
	if test "X$lt_pkg" = "X$lt_p"; then
	  pic_mode=yes
	fi
      done
      IFS=$lt_save_ifs
      ;;
    esac
d11560 2
d11577 1
a11577 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11579 1
a11579 1
	IFS=$lt_save_ifs
d11584 1
a11584 1
      IFS=$lt_save_ifs
a11597 52
  shared_archive_member_spec=
case $host,$enable_shared in
power*-*-aix[5-9]*,yes)
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }

# Check whether --with-aix-soname was given.
if test "${with_aix_soname+set}" = set; then :
  withval=$with_aix_soname; case $withval in
    aix|svr4|both)
      ;;
    *)
      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
      ;;
    esac
    lt_cv_with_aix_soname=$with_aix_soname
else
  if ${lt_cv_with_aix_soname+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_with_aix_soname=aix
fi

    with_aix_soname=$lt_cv_with_aix_soname
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
$as_echo "$with_aix_soname" >&6; }
  if test aix != "$with_aix_soname"; then
    # For the AIX way of multilib, we name the shared archive member
    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
    # the AIX toolchain works better with OBJECT_MODE set (default 32).
    if test 64 = "${OBJECT_MODE-32}"; then
      shared_archive_member_spec=shr_64
    else
      shared_archive_member_spec=shr
    fi
  fi
  ;;
*)
  with_aix_soname=aix
  ;;
esac







d11602 1
a11602 1
LIBTOOL_DEPS=$ltmain
a11631 4




d11647 1
a11647 1
if test -n "${ZSH_VERSION+set}"; then
d11686 1
a11686 1
  if test set != "${COLLECT_NAMES+set}"; then
d11697 1
a11697 1
# All known linkers require a '.a' archive for static linking (except MSVC,
d11701 1
a11701 1
with_gnu_ld=$lt_cv_prog_gnu_ld
d11703 2
a11704 2
old_CC=$CC
old_CFLAGS=$CFLAGS
d11713 9
a11721 2
func_cc_basename $compiler
cc_basename=$func_cc_basename_result
d11736 1
a11736 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11739 2
a11740 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11743 1
a11743 1
    IFS=$lt_save_ifs
d11745 2
a11746 2
    if test -f "$ac_dir/${ac_tool_prefix}file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
d11751 1
a11751 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11774 2
a11775 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11780 1
a11780 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11802 1
a11802 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11805 2
a11806 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11809 1
a11809 1
    IFS=$lt_save_ifs
d11811 2
a11812 2
    if test -f "$ac_dir/file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
d11817 1
a11817 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11840 2
a11841 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11846 1
a11846 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11867 1
a11867 1
lt_save_CC=$CC
d11929 1
a11929 1
if test yes = "$GCC"; then
d11945 1
a11945 1
   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
d11975 1
a11975 1
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
d11993 1
a11993 1
  if test yes = "$GCC"; then
d12000 1
a12000 1
      if test ia64 = "$host_cpu"; then
a12003 1
      lt_prog_compiler_pic='-fPIC'
d12014 2
a12015 2
            # adding the '-m68020' flag to GCC prevents building anything better,
            # like '-m68040'.
a12030 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12091 1
a12091 3
      if test -n "$lt_prog_compiler_pic"; then
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
      fi
d12099 1
a12099 1
      if test ia64 = "$host_cpu"; then
a12106 14
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      case $cc_basename in
      nagfor*)
        # NAG Fortran compiler
        lt_prog_compiler_wl='-Wl,-Wl,,'
        lt_prog_compiler_pic='-PIC'
        lt_prog_compiler_static='-Bstatic'
        ;;
      esac
      ;;

a12110 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12126 1
a12126 1
      lt_prog_compiler_static='$wl-a ${wl}archive'
d12135 1
a12135 1
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d12137 1
a12137 1
      # old Intel for x86_64, which still supported -KPIC.
a12161 6
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
	;;
d12182 1
a12182 1
	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
a12187 5
	*Sun\ F* | *Sun*Fortran*)
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Qoption ld '
	  ;;
a12193 10
        *Intel*\ [CF]*Compiler*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fPIC'
	  lt_prog_compiler_static='-static'
	  ;;
	*Portland\ Group*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fpic'
	  lt_prog_compiler_static='-Bstatic'
	  ;;
d12244 1
a12244 1
      if test -d /usr/nec; then
d12273 1
a12273 1
  # For platforms that do not support PIC, -DPIC is meaningless:
d12305 1
a12305 1
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
d12335 1
a12335 1
if test yes = "$lt_cv_prog_compiler_pic_works"; then
d12367 1
a12367 1
   save_LDFLAGS=$LDFLAGS
d12386 1
a12386 1
   LDFLAGS=$save_LDFLAGS
d12392 1
a12392 1
if test yes = "$lt_cv_prog_compiler_static_works"; then
d12512 2
a12513 2
hard_links=nottested
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
d12525 3
a12527 3
  if test no = "$hard_links"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
d12555 1
d12571 3
a12573 3
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  # as well as any symbol that contains 'd'.
d12588 1
a12588 1
    if test yes != "$GCC"; then
d12596 1
a12596 1
  openbsd* | bitrig*)
d12606 1
a12606 1
  if test yes = "$with_gnu_ld"; then
d12628 1
a12628 1
  if test yes = "$lt_use_gnu_ld_interface"; then
d12630 1
a12630 1
    wlarc='$wl'
d12636 2
a12637 2
    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
    export_dynamic_flag_spec='$wl--export-dynamic'
d12640 1
a12640 1
      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
d12645 1
a12645 1
    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
d12658 1
a12658 1
      if test ia64 != "$host_cpu"; then
d12677 1
a12677 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12693 1
a12693 1
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12703 1
a12703 1
      export_dynamic_flag_spec='$wl--export-all-symbols'
d12711 10
a12720 10
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file, use it as
	# is; otherwise, prepend EXPORTS...
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
          cp $export_symbols $output_objdir/$soname.def;
        else
          echo EXPORTS > $output_objdir/$soname.def;
          cat $export_symbols >> $output_objdir/$soname.def;
        fi~
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d12727 1
a12727 1
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a12730 28
    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
      ;;

d12734 2
a12735 2
      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
      export_dynamic_flag_spec='$wl-E'
d12742 2
a12743 2
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d12748 1
a12748 1
      if test linux-dietlibc = "$host_os"; then
d12754 1
a12754 1
	 && test no = "$tmp_diet"
d12760 1
a12760 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12765 1
a12765 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
a12775 2
        nagfor*)                        # NAGFOR 5.3
          tmp_sharedflag='-Wl,-shared' ;;
d12780 1
a12780 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12786 1
a12786 1
	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12792 1
a12792 1
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12794 1
a12794 1
        if test yes = "$supports_anon_versioning"; then
d12796 3
a12798 3
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
            echo "local: *; };" >> $output_objdir/$libname.ver~
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a12801 3
	tcc*)
	  export_dynamic_flag_spec='-rdynamic'
	  ;;
d12805 2
a12806 1
	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d12808 1
a12808 1
	  if test yes = "$supports_anon_versioning"; then
d12810 3
a12812 3
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
              echo "local: *; };" >> $output_objdir/$libname.ver~
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
d12826 2
a12827 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12845 2
a12846 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12858 1
a12858 1
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
d12873 3
a12875 3
	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12892 2
a12893 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12900 1
a12900 1
    if test no = "$ld_shlibs"; then
d12916 1
a12916 1
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
d12924 1
a12924 1
      if test ia64 = "$host_cpu"; then
d12929 1
a12929 1
	no_entry_flag=
d12932 3
a12934 7
	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
	# Without the "-l" option, or with the "-B" option, AIX nm treats
	# weak defined symbols like other global defined symbols, whereas
	# GNU nm marks them as "W".
	# While the 'weak' keyword is ignored in the Export File, we need
	# it in the Import File for the 'aix-soname' feature, so we have
	# to replace the "-B" option with "-P" for AIX nm.
d12936 1
a12936 1
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
d12938 1
a12938 1
	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
d12944 1
a12944 13
	# have runtime linking enabled, and use it for executables.
	# For shared libraries, we enable/disable runtime linking
	# depending on the kind of the shared library created -
	# when "with_aix_soname,aix_use_runtimelinking" is:
	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
	# "aix,yes"  lib.so          shared, rtl:yes, for executables
	#            lib.a           static archive
	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
	#            lib.a(lib.so.V) shared, rtl:no,  for executables
	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a(lib.so.V) shared, rtl:no
	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a           static archive
d12947 1
a12947 1
	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a12951 7
	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
	    # so we don't have lib.a shared libs to link our executables.
	    # We have to force runtime linking in this case.
	    aix_use_runtimelinking=yes
	    LDFLAGS="$LDFLAGS -Wl,-brtl"
	  fi
d12970 1
a12970 9
      file_list_spec='$wl-f,'
      case $with_aix_soname,$aix_use_runtimelinking in
      aix,*) ;; # traditional, no import file
      svr4,* | *,yes) # use import file
	# The Import File defines what to hardcode.
	hardcode_direct=no
	hardcode_direct_absolute=no
	;;
      esac
d12972 1
a12972 1
      if test yes = "$GCC"; then
d12976 1
a12976 1
	  collect2name=`$CC -print-prog-name=collect2`
d12995 2
a12996 2
	if test yes = "$aix_use_runtimelinking"; then
	  shared_flag="$shared_flag "'$wl-G'
a12997 5
	# Need to ensure runtime linking is disabled for the traditional
	# shared library, or the linker may eventually find shared libraries
	# /with/ Import File - we do not want to mix them.
	shared_flag_aix='-shared'
	shared_flag_svr4='-shared $wl-G'
d13000 1
a13000 1
	if test ia64 = "$host_cpu"; then
d13005 2
a13006 2
	  if test yes = "$aix_use_runtimelinking"; then
	    shared_flag='$wl-G'
d13008 1
a13008 1
	    shared_flag='$wl-bM:SRE'
a13009 2
	  shared_flag_aix='$wl-bM:SRE'
	  shared_flag_svr4='$wl-G'
d13013 1
a13013 1
      export_dynamic_flag_spec='$wl-bexpall'
d13017 1
a13017 1
      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
d13023 1
a13023 1
        if test set = "${lt_cv_aix_libpath+set}"; then
d13058 1
a13058 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13066 2
a13067 2
        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
d13069 2
a13070 2
	if test ia64 = "$host_cpu"; then
	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
d13072 1
a13072 1
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
d13076 1
a13076 1
	 if test set = "${lt_cv_aix_libpath+set}"; then
d13111 1
a13111 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13119 1
a13119 1
	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
d13122 3
a13124 3
	  no_undefined_flag=' $wl-bernotok'
	  allow_undefined_flag=' $wl-berok'
	  if test yes = "$with_gnu_ld"; then
d13126 1
a13126 1
	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
d13132 2
a13133 14
	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
	  # -brtl affects multiple linker settings, -berok does not and is overridden later
	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
	  if test svr4 != "$with_aix_soname"; then
	    # This is similar to how AIX traditionally builds its shared libraries.
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
	  fi
	  if test aix != "$with_aix_soname"; then
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
	  else
	    # used by -dlpreopen to get the symbols
	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
	  fi
	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
d13142 1
a13142 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d13172 1
a13172 1
	shrext_cmds=.dll
d13174 8
a13181 9
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
            cp "$export_symbols" "$output_objdir/$soname.def";
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
          else
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
          fi~
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
          linknames='
a13184 1
	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
d13189 12
a13200 12
          lt_tool_outputfile="@@TOOL_OUTPUT@@"~
          case $lt_outputfile in
            *.exe|*.EXE) ;;
            *)
              lt_outputfile=$lt_outputfile.exe
              lt_tool_outputfile=$lt_tool_outputfile.exe
              ;;
          esac~
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
            $RM "$lt_outputfile.manifest";
          fi'
d13209 1
a13209 1
	shrext_cmds=.dll
d13228 2
a13229 3
  if test yes = "$lt_cv_ld_force_load"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'

d13234 1
a13234 1
  allow_undefined_flag=$_lt_dar_allow_undefined
d13236 1
a13236 1
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
d13239 1
a13239 1
  if test yes = "$_lt_dar_can_shared"; then
d13241 4
a13244 4
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
d13258 4
d13274 1
a13274 1
    freebsd2.*)
d13290 2
a13291 2
      if test yes = "$GCC"; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13293 1
a13293 1
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13295 1
a13295 1
      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13302 1
a13302 1
      export_dynamic_flag_spec='$wl-E'
d13306 2
a13307 2
      if test yes,no = "$GCC,$with_gnu_ld"; then
	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13311 3
a13313 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13317 1
a13317 1
	export_dynamic_flag_spec='$wl-E'
d13325 1
a13325 1
      if test yes,no = "$GCC,$with_gnu_ld"; then
d13328 1
a13328 1
	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13331 1
a13331 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13334 1
a13334 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13340 1
a13340 1
	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13343 1
a13343 1
	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13355 1
a13355 1
   save_LDFLAGS=$LDFLAGS
d13374 1
a13374 1
   LDFLAGS=$save_LDFLAGS
d13380 2
a13381 2
if test yes = "$lt_cv_prog_compiler__b"; then
    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13389 2
a13390 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13401 1
a13401 1
	  export_dynamic_flag_spec='$wl-E'
d13412 2
a13413 2
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13423 2
a13424 2
  save_LDFLAGS=$LDFLAGS
	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
d13436 1
a13436 1
           LDFLAGS=$save_LDFLAGS
d13440 2
a13441 2
	if test yes = "$lt_cv_irix_exported_symbol"; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
d13444 2
a13445 2
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
d13448 1
a13448 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a13453 10
    linux*)
      case $cc_basename in
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	ld_shlibs=yes
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	;;
      esac
      ;;

d13468 1
a13468 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13476 1
a13476 1
    openbsd* | bitrig*)
d13481 1
a13481 1
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
d13483 3
a13485 3
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
	  export_dynamic_flag_spec='$wl-E'
d13487 10
a13496 2
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
d13507 2
a13508 22
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
d13512 3
a13514 3
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13517 1
a13517 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13520 1
a13520 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13525 4
a13528 4
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13531 1
a13531 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13533 1
a13533 1
          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
d13544 3
a13546 3
      if test yes = "$GCC"; then
	wlarc='$wl'
	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13548 1
a13548 1
          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13553 1
a13553 1
	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
d13555 1
a13555 1
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
d13558 2
a13559 2
	  wlarc='$wl'
	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13561 1
a13561 1
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13571 1
a13571 1
	# but understands '-z linker_flag'.  GCC discards it without '$wl',
d13574 2
a13575 2
	if test yes = "$GCC"; then
	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
d13585 1
a13585 1
      if test sequent = "$host_vendor"; then
d13588 1
a13588 1
	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13637 1
a13637 1
      no_undefined_flag='$wl-z,text'
d13642 3
a13644 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13646 2
a13647 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13652 1
a13652 1
      # Note: We CANNOT use -z defs as we might desire, because we do not
d13658 2
a13659 2
      no_undefined_flag='$wl-z,text'
      allow_undefined_flag='$wl-z,nodefs'
d13662 1
a13662 1
      hardcode_libdir_flag_spec='$wl-R,$libdir'
d13665 1
a13665 1
      export_dynamic_flag_spec='$wl-Bexport'
d13668 3
a13670 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13672 2
a13673 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13688 1
a13688 1
    if test sni = "$host_vendor"; then
d13691 1
a13691 1
	export_dynamic_flag_spec='$wl-Blargedynsym'
d13699 1
a13699 1
test no = "$ld_shlibs" && can_build_shared=no
d13725 1
a13725 1
  if test yes,yes = "$GCC,$enable_shared"; then
d13937 5
d13945 1
a13945 1
if test yes = "$GCC"; then
d13947 2
a13948 2
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
    *) lt_awk_arg='/^libraries:/' ;;
d13951 2
a13952 2
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
    *) lt_sed_strip_eq='s|=/|/|g' ;;
d13968 1
a13968 1
  # and add multilib dir if necessary...
d13970 1
a13970 8
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  # ...but if some path component already ends with the multilib dir we assume
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  case "$lt_multi_os_dir; $lt_search_path_spec " in
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
    lt_multi_os_dir=
    ;;
  esac
d13972 3
a13974 3
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
    elif test -n "$lt_multi_os_dir"; then
d13980 3
a13982 3
BEGIN {RS = " "; FS = "/|\n";} {
  lt_foo = "";
  lt_count = 0;
d13989 1
a13989 1
          lt_foo = "/" $lt_i lt_foo;
d14003 1
a14003 1
      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
d14012 1
a14012 1
shrext_cmds=.so
a14028 2


d14031 2
a14032 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
d14036 1
a14036 1
  soname_spec='$libname$release$shared_ext$major'
d14040 1
a14040 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14044 1
a14044 1
  if test ia64 = "$host_cpu"; then
d14046 1
a14046 1
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
d14051 2
a14052 2
    # the line '#! .'.  This would cause the generated library to
    # depend on '.', always an invalid library.  This was fixed in
d14058 1
a14058 1
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
d14065 1
a14065 24
    # Using Import Files as archive members, it is possible to support
    # filename-based versioning of shared library archives on AIX. While
    # this would work for both with and without runtime linking, it will
    # prevent static linking of such archives. So we do filename-based
    # shared library versioning with .so extension only, which is used
    # when both runtime linking and shared linking is enabled.
    # Unfortunately, runtime linking may impact performance, so we do
    # not want this to be the default eventually. Also, we use the
    # versioned .so libs for executables only if there is the -brtl
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
    # To allow for filename-based versioning support, we need to create
    # libNAME.so.V as an archive file, containing:
    # *) an Import File, referring to the versioned filename of the
    #    archive as well as the shared archive member, telling the
    #    bitwidth (32 or 64) of that shared object, and providing the
    #    list of exported symbols of that shared object, eventually
    #    decorated with the 'weak' keyword
    # *) the shared object with the F_LOADONLY flag set, to really avoid
    #    it being seen by the linker.
    # At run time we better use the real file rather than another symlink,
    # but for link time we create the symlink libNAME.so -> libNAME.so.V

    case $with_aix_soname,$aix_use_runtimelinking in
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
d14068 1
a14068 2
    aix,yes) # traditional libtool
      dynamic_linker='AIX unversionable lib.so'
d14072 2
a14073 4
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      ;;
    aix,no) # traditional AIX only
      dynamic_linker='AIX lib.a(lib.so.V)'
d14076 3
a14078 27
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      ;;
    svr4,*) # full svr4 only
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,yes) # both, prefer svr4
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # unpreferred sharedlib libNAME.a needs extra handling
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,no) # both, prefer aix
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
      ;;
    esac
d14088 1
a14088 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14093 1
a14093 1
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d14099 1
a14099 1
  library_names_spec='$libname$shared_ext'
d14105 1
a14105 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14107 2
a14108 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14120 1
a14120 1
  shrext_cmds=.dll
d14129 2
a14130 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14146 1
a14146 1
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14152 1
a14152 1
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14156 1
a14156 1
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14165 2
a14166 2
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
    library_names_spec='$libname.dll.lib'
d14193 1
a14193 1
      sys_lib_search_path_spec=$LIB
d14206 2
a14207 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14220 1
a14220 1
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
d14233 2
a14234 2
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$major$shared_ext'
d14244 1
a14244 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14247 2
a14248 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14252 4
d14263 1
a14263 1
    freebsd[23].*) objformat=aout ;;
d14270 1
a14270 2
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      soname_spec='$libname$release$shared_ext$major'
d14275 1
a14275 1
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14281 1
a14281 1
  freebsd2.*)
d14300 10
d14311 1
a14311 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14315 2
a14316 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14318 1
a14318 1
  shlibpath_overrides_runpath=no
d14336 3
a14338 3
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
    if test 32 = "$HPUX_IA64_MODE"; then
a14339 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a14341 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
d14343 1
d14351 2
a14352 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14361 2
a14362 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14372 1
a14372 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14375 2
a14376 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14387 2
a14388 2
	if test yes = "$lt_cv_prog_gnu_ld"; then
		version_type=linux # correct to gnu/linux during the next big refactor
d14395 2
a14396 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
d14415 2
a14416 2
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
d14425 3
a14427 2
linux*android*)
  version_type=none # Android doesn't support versioned libraries.
d14430 2
a14431 23
  library_names_spec='$libname$release$shared_ext'
  soname_spec='$libname$release$shared_ext'
  finish_cmds=
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  dynamic_linker='Android linker'
  # Don't embed -rpath directories since the linker doesn't support them.
  hardcode_libdir_flag_spec='-L$libdir'
  ;;

# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  version_type=linux # correct to gnu/linux during the next big refactor
  need_lib_prefix=no
  need_version=no
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14475 1
a14475 6
  # Ideally, we could use ldconfig to report *all* directores which are
  # searched for libraries, however this is still not possible.  Aside from not
  # being certain /sbin/ldconfig is available, command
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  # even though it is searched at run-time.  Try to do the best guess by
  # appending ld.so.conf contents (and includes) to the search path.
d14495 1
a14495 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14499 2
a14500 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14509 2
a14510 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14519 2
a14520 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14527 1
a14527 1
openbsd* | bitrig*)
d14529 1
a14529 1
  sys_lib_dlsearch_path_spec=/usr/lib
d14531 17
a14547 2
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
    need_version=no
d14549 1
a14549 1
    need_version=yes
a14550 4
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
d14555 1
a14555 3
  version_type=windows
  shrext_cmds=.dll
  need_version=no
d14557 1
a14557 6
  # OS/2 can only load a DLL with a base name of 8 characters or less.
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
    v=$($ECHO $release$versuffix | tr -d .-);
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
    $ECHO $n$v`$shared_ext'
  library_names_spec='${libname}_dll.$libext'
d14559 1
a14559 15
  shlibpath_var=BEGINLIBPATH
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  postinstall_cmds='base_file=`basename \$file`~
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
    dldir=$destdir/`dirname \$dlpath`~
    test -d \$dldir || mkdir -p \$dldir~
    $install_prog $dir/$dlname \$dldir/$dlname~
    chmod a+x \$dldir/$dlname~
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
    fi'
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
    dlpath=$dir/\$dldll~
    $RM \$dlpath'
d14566 2
a14567 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14570 1
a14570 1
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d14578 1
a14578 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14581 2
a14582 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14592 1
a14592 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14596 1
a14596 1
  if test yes = "$with_gnu_ld"; then
d14603 3
a14605 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14626 4
a14629 4
  if test -d /usr/nec; then
    version_type=linux # correct to gnu/linux during the next big refactor
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
    soname_spec='$libname$shared_ext.$major'
d14635 1
a14635 1
  version_type=sco
d14638 2
a14639 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14643 1
a14643 1
  if test yes = "$with_gnu_ld"; then
d14658 1
a14658 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14661 1
a14661 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14668 3
a14670 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14680 1
a14680 1
test no = "$dynamic_linker" && can_build_shared=no
d14683 1
a14683 1
if test yes = "$GCC"; then
d14687 2
a14688 2
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
d14690 2
a14691 3

if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a14693 14
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec

# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"

# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH






d14790 1
a14790 1
   test yes = "$hardcode_automatic"; then
d14793 1
a14793 1
  if test no != "$hardcode_direct" &&
d14797 2
a14798 2
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
     test no != "$hardcode_minus_L"; then
d14813 2
a14814 2
if test relink = "$hardcode_action" ||
   test yes = "$inherit_rpath"; then
d14817 2
a14818 2
elif test yes = "$shlibpath_overrides_runpath" ||
     test no = "$enable_shared"; then
d14828 1
a14828 1
  if test yes != "$enable_dlopen"; then
d14838 1
a14838 1
    lt_cv_dlopen=load_add_on
d14844 1
a14844 1
    lt_cv_dlopen=LoadLibrary
d14849 1
a14849 1
    lt_cv_dlopen=dlopen
d14854 1
a14854 1
    # if libdl is installed we need to link against it
d14892 1
a14892 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d14895 1
a14895 1
    lt_cv_dlopen=dyld
a14902 8
  tpf*)
    # Don't try to run any link tests for TPF.  We know it's impossible
    # because TPF is a cross-compiler, and we know how we open DSOs.
    lt_cv_dlopen=dlopen
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=no
    ;;

d14906 1
a14906 1
  lt_cv_dlopen=shl_load
d14945 1
a14945 1
  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
d14949 1
a14949 1
  lt_cv_dlopen=dlopen
d14988 1
a14988 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d15027 1
a15027 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
d15066 1
a15066 1
  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
d15087 3
a15089 1
  if test no = "$lt_cv_dlopen"; then
a15090 2
  else
    enable_dlopen=yes
d15095 2
a15096 2
    save_CPPFLAGS=$CPPFLAGS
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d15098 1
a15098 1
    save_LDFLAGS=$LDFLAGS
d15101 1
a15101 1
    save_LIBS=$LIBS
d15109 1
a15109 1
  	  if test yes = "$cross_compiling"; then :
d15156 1
a15156 1
/* When -fvisibility=hidden is used, assume the code has been annotated
d15158 1
a15158 1
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
d15188 1
a15188 1
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
d15208 1
a15208 1
    if test yes = "$lt_cv_dlopen_self"; then
d15215 1
a15215 1
  	  if test yes = "$cross_compiling"; then :
d15262 1
a15262 1
/* When -fvisibility=hidden is used, assume the code has been annotated
d15264 1
a15264 1
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
d15294 1
a15294 1
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
d15315 3
a15317 3
    CPPFLAGS=$save_CPPFLAGS
    LDFLAGS=$save_LDFLAGS
    LIBS=$save_LIBS
d15361 1
a15361 1
    if test -n "$STRIP"; then
d15389 1
a15389 1
  # Report what library types will actually be built
d15397 1
a15397 1
  test no = "$can_build_shared" && enable_shared=no
d15403 1
a15403 1
    test yes = "$enable_shared" && enable_static=no
d15411 2
a15412 6
    if test ia64 != "$host_cpu"; then
      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
      yes,aix,yes) ;;			# shared object as lib.so file only
      yes,svr4,*) ;;			# shared object as lib.so archive member only
      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
      esac
d15422 1
a15422 1
  test yes = "$enable_shared" || enable_static=yes
d15436 1
a15436 1
CC=$lt_save_CC
d15438 3
a15440 3
      if test -n "$CXX" && ( test no != "$CXX" &&
    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
    (test g++ != "$CXX"))); then
d15593 1
d15620 1
a15620 1
if test yes != "$_lt_caught_CXX_error"; then
d15681 9
a15689 2
  func_cc_basename $compiler
cc_basename=$func_cc_basename_result
d15695 1
a15695 1
    if test yes = "$GXX"; then
d15701 1
a15701 1
    if test yes = "$GXX"; then
d15708 1
a15708 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d15714 1
a15714 1
if test yes = "$GCC"; then
d15720 1
a15720 1
    # gcc leaves a trailing carriage return, which upsets mingw
d15734 1
a15734 1
      test -z "$LD" && LD=$ac_prog
d15745 1
a15745 1
elif test yes = "$with_gnu_ld"; then
d15756 1
a15756 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d15758 1
a15758 1
    IFS=$lt_save_ifs
d15761 1
a15761 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d15767 1
a15767 1
	test no != "$with_gnu_ld" && break
d15770 1
a15770 1
	test yes != "$with_gnu_ld" && break
d15775 1
a15775 1
  IFS=$lt_save_ifs
d15777 1
a15777 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d15781 1
a15781 1
LD=$lt_cv_path_LD
d15817 3
a15819 3
      if test yes = "$with_gnu_ld"; then
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d15821 2
a15822 2
        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
d15827 1
a15827 1
        wlarc='$wl'
d15832 1
a15832 1
          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
d15869 1
a15869 1
        if test ia64 = "$host_cpu"; then
d15874 1
a15874 1
          no_entry_flag=
d15880 1
a15880 13
          # have runtime linking enabled, and use it for executables.
          # For shared libraries, we enable/disable runtime linking
          # depending on the kind of the shared library created -
          # when "with_aix_soname,aix_use_runtimelinking" is:
          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
          # "aix,yes"  lib.so          shared, rtl:yes, for executables
          #            lib.a           static archive
          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
          #            lib.a(lib.so.V) shared, rtl:no,  for executables
          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
          #            lib.a(lib.so.V) shared, rtl:no
          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
          #            lib.a           static archive
a15889 7
	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
	      # so we don't have lib.a shared libs to link our executables.
	      # We have to force runtime linking in this case.
	      aix_use_runtimelinking=yes
	      LDFLAGS="$LDFLAGS -Wl,-brtl"
	    fi
d15908 1
a15908 9
        file_list_spec_CXX='$wl-f,'
        case $with_aix_soname,$aix_use_runtimelinking in
        aix,*) ;;	# no import file
        svr4,* | *,yes) # use import file
          # The Import File defines what to hardcode.
          hardcode_direct_CXX=no
          hardcode_direct_absolute_CXX=no
          ;;
        esac
d15910 1
a15910 1
        if test yes = "$GXX"; then
d15914 1
a15914 1
	  collect2name=`$CC -print-prog-name=collect2`
d15932 2
a15933 2
	  if test yes = "$aix_use_runtimelinking"; then
	    shared_flag=$shared_flag' $wl-G'
a15934 5
	  # Need to ensure runtime linking is disabled for the traditional
	  # shared library, or the linker may eventually find shared libraries
	  # /with/ Import File - we do not want to mix them.
	  shared_flag_aix='-shared'
	  shared_flag_svr4='-shared $wl-G'
d15937 1
a15937 1
          if test ia64 = "$host_cpu"; then
d15942 2
a15943 2
	    if test yes = "$aix_use_runtimelinking"; then
	      shared_flag='$wl-G'
d15945 1
a15945 1
	      shared_flag='$wl-bM:SRE'
a15946 2
	    shared_flag_aix='$wl-bM:SRE'
	    shared_flag_svr4='$wl-G'
d15950 1
a15950 1
        export_dynamic_flag_spec_CXX='$wl-bexpall'
d15955 1
a15955 1
	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
d15958 1
a15958 2
          # The "-G" linker flag allows undefined symbols.
          no_undefined_flag_CXX='-bernotok'
d15961 1
a15961 1
          if test set = "${lt_cv_aix_libpath+set}"; then
d15996 1
a15996 1
    lt_cv_aix_libpath__CXX=/usr/lib:/lib
d16004 1
a16004 1
          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
d16006 1
a16006 1
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
d16008 2
a16009 2
          if test ia64 = "$host_cpu"; then
	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
d16011 1
a16011 1
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
d16015 1
a16015 1
	    if test set = "${lt_cv_aix_libpath+set}"; then
d16050 1
a16050 1
    lt_cv_aix_libpath__CXX=/usr/lib:/lib
d16058 1
a16058 1
	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
d16061 3
a16063 3
	    no_undefined_flag_CXX=' $wl-bernotok'
	    allow_undefined_flag_CXX=' $wl-berok'
	    if test yes = "$with_gnu_ld"; then
d16065 1
a16065 1
	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
d16071 3
a16073 15
	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
	    # -brtl affects multiple linker settings, -berok does not and is overridden later
	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
	    if test svr4 != "$with_aix_soname"; then
	      # This is similar to how AIX traditionally builds its shared
	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
	    fi
	    if test aix != "$with_aix_soname"; then
	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
	    else
	      # used by -dlpreopen to get the symbols
	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
	    fi
	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
d16083 1
a16083 1
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d16111 1
a16111 1
	  shrext_cmds=.dll
d16113 8
a16120 9
	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
              cp "$export_symbols" "$output_objdir/$soname.def";
              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
            else
              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
            fi~
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
            linknames='
d16127 13
a16139 13
            lt_tool_outputfile="@@TOOL_OUTPUT@@"~
            case $lt_outputfile in
              *.exe|*.EXE) ;;
              *)
                lt_outputfile=$lt_outputfile.exe
                lt_tool_outputfile=$lt_tool_outputfile.exe
                ;;
            esac~
            func_to_tool_file "$lt_outputfile"~
            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
              $RM "$lt_outputfile.manifest";
            fi'
d16146 1
a16146 1
	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
d16152 10
a16161 10
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	    # If the export-symbols file already is a .def file, use it as
	    # is; otherwise, prepend EXPORTS...
	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
              cp $export_symbols $output_objdir/$soname.def;
            else
              echo EXPORTS > $output_objdir/$soname.def;
              cat $export_symbols >> $output_objdir/$soname.def;
            fi~
            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d16175 2
a16176 3
  if test yes = "$lt_cv_ld_force_load"; then
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'

d16181 1
a16181 1
  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
d16183 1
a16183 1
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
d16186 1
a16186 1
  if test yes = "$_lt_dar_can_shared"; then
d16188 7
a16194 7
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
    archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
    module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
       if test yes != "$lt_cv_apple_cc_single_mod"; then
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
a16202 28
      os2*)
	hardcode_libdir_flag_spec_CXX='-L$libdir'
	hardcode_minus_L_CXX=yes
	allow_undefined_flag_CXX=unsupported
	shrext_cmds=.dll
	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	  $ECHO EXPORTS >> $output_objdir/$libname.def~
	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	  emximp -o $lib $output_objdir/$libname.def'
	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	  $ECHO EXPORTS >> $output_objdir/$libname.def~
	  prefix_cmds="$SED"~
	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
	    prefix_cmds="$prefix_cmds -e 1d";
	  fi~
	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	  emximp -o $lib $output_objdir/$libname.def'
	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
	enable_shared_with_static_runtimes_CXX=yes
	;;

d16221 1
a16221 1
      freebsd2.*)
d16237 3
d16241 1
a16241 1
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d16246 1
a16246 1
        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
d16248 1
a16248 1
        export_dynamic_flag_spec_CXX='$wl-E'
d16260 1
a16260 1
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d16269 1
a16269 1
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
d16272 2
a16273 2
            if test yes = "$GXX"; then
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d16283 2
a16284 2
        if test no = "$with_gnu_ld"; then
	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
d16291 1
a16291 1
	      export_dynamic_flag_spec_CXX='$wl-E'
d16317 1
a16317 1
	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d16320 1
a16320 1
	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d16323 1
a16323 1
	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d16334 1
a16334 1
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
d16337 2
a16338 2
	    if test yes = "$GXX"; then
	      if test no = "$with_gnu_ld"; then
d16341 1
a16341 1
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d16344 1
a16344 1
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d16347 1
a16347 1
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d16362 2
a16363 2
	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
	export_dynamic_flag_spec_CXX='$wl-E'
d16370 2
a16371 2
	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d16377 1
a16377 1
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d16386 3
a16388 3
	    if test yes = "$GXX"; then
	      if test no = "$with_gnu_ld"; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d16390 1
a16390 1
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
d16396 1
a16396 1
        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
d16401 1
a16401 1
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d16409 2
a16410 2
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
d16419 1
a16419 1
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
d16421 2
a16422 2
	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
d16436 2
a16437 2
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d16444 2
a16445 2
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d16449 3
a16451 3
	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
d16458 3
a16460 3
               rm -rf $tpldir~
               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
d16462 4
a16465 4
                rm -rf $tpldir~
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
                $RANLIB $oldlib'
d16467 3
a16469 3
                rm -rf $tpldir~
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
d16471 3
a16473 3
                rm -rf $tpldir~
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d16476 2
a16477 2
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d16481 3
a16483 3
	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
	    whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d16487 2
a16488 2
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
d16502 1
a16502 1
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
d16506 4
a16509 4
	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	    if test yes = "$supports_anon_versioning"; then
d16511 3
a16513 3
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
                echo "local: *; };" >> $output_objdir/$libname.ver~
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
d16521 2
a16522 2
	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
d16524 1
a16524 1
	      whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d16582 6
a16587 1
      openbsd* | bitrig*)
d16593 5
a16597 5
	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
	    export_dynamic_flag_spec_CXX='$wl-E'
	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
d16613 1
a16613 1
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
d16615 1
a16615 1
	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
d16633 3
a16635 3
	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
d16639 1
a16639 1
	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d16641 3
a16643 3
                  echo "-hidden">> $lib.exp~
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
                  $RM $lib.exp'
d16658 1
a16658 1
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
d16661 2
a16662 2
	    if test yes,no = "$GXX,$with_gnu_ld"; then
	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
d16665 1
a16665 1
	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d16668 1
a16668 1
	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d16672 1
a16672 1
	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
d16718 1
a16718 1
	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d16720 1
a16720 1
              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
d16728 1
a16728 1
		# but understands '-z linker_flag'.
d16745 1
a16745 1
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
d16752 2
a16753 2
	    if test yes,no = "$GXX,$with_gnu_ld"; then
	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
d16755 1
a16755 1
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
d16757 1
a16757 1
                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
d16764 1
a16764 1
	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
d16766 1
a16766 1
	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
d16768 1
a16768 1
                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
d16776 1
a16776 1
	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
d16780 1
a16780 1
		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
d16789 1
a16789 1
      no_undefined_flag_CXX='$wl-z,text'
d16796 2
a16797 2
	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d16800 2
a16801 2
	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d16807 1
a16807 1
	# Note: We CANNOT use -z defs as we might desire, because we do not
d16813 2
a16814 2
	no_undefined_flag_CXX='$wl-z,text'
	allow_undefined_flag_CXX='$wl-z,nodefs'
d16817 1
a16817 1
	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
d16820 1
a16820 1
	export_dynamic_flag_spec_CXX='$wl-Bexport'
d16825 2
a16826 2
	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d16828 1
a16828 1
              '"$old_archive_cmds_CXX"
d16830 1
a16830 1
              '"$reload_cmds_CXX"
d16833 2
a16834 2
	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d16866 1
a16866 1
    test no = "$ld_shlibs_CXX" && can_build_shared=no
d16868 2
a16869 2
    GCC_CXX=$GXX
    LD_CXX=$LD
a16896 1
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
d16912 1
a16912 1
    case $prev$p in
d16917 2
a16918 2
       if test x-L = "$p" ||
          test x-R = "$p"; then
d16934 2
a16935 2
       if test no = "$pre_test_object_deps_done"; then
	 case $prev in
d16941 1
a16941 1
	     compiler_lib_search_path_CXX=$prev$p
d16943 1
a16943 1
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
d16951 1
a16951 1
	   postdeps_CXX=$prev$p
d16953 1
a16953 1
	   postdeps_CXX="${postdeps_CXX} $prev$p"
d16968 1
a16968 1
       if test no = "$pre_test_object_deps_done"; then
d16970 1
a16970 1
	   predep_objects_CXX=$p
d16976 1
a16976 1
	   postdep_objects_CXX=$p
d17006 45
d17059 1
a17059 1
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
d17098 1
a17098 1
  if test yes = "$GXX"; then
d17105 1
a17105 1
      if test ia64 = "$host_cpu"; then
a17108 1
      lt_prog_compiler_pic_CXX='-fPIC'
d17119 2
a17120 2
            # adding the '-m68020' flag to GCC prevents building anything better,
            # like '-m68040'.
a17134 5
      case $host_os in
      os2*)
	lt_prog_compiler_static_CXX='$wl-static'
	;;
      esac
d17184 1
a17184 1
	if test ia64 = "$host_cpu"; then
d17224 2
a17225 2
	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
	    if test ia64 != "$host_cpu"; then
d17231 1
a17231 1
	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
d17260 1
a17260 1
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d17268 1
a17268 1
	    # old Intel C++ for x86_64, which still supported -KPIC.
d17413 1
a17413 1
  # For platforms that do not support PIC, -DPIC is meaningless:
d17445 1
a17445 1
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
d17475 1
a17475 1
if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
d17501 1
a17501 1
   save_LDFLAGS=$LDFLAGS
d17520 1
a17520 1
   LDFLAGS=$save_LDFLAGS
d17526 1
a17526 1
if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
d17640 2
a17641 2
hard_links=nottested
if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
d17653 3
a17655 3
  if test no = "$hard_links"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
d17672 3
a17674 7
    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
    # Without the "-l" option, or with the "-B" option, AIX nm treats
    # weak defined symbols like other global defined symbols, whereas
    # GNU nm marks them as "W".
    # While the 'weak' keyword is ignored in the Export File, we need
    # it in the Import File for the 'aix-soname' feature, so we have
    # to replace the "-B" option with "-P" for AIX nm.
d17676 1
a17676 1
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
d17678 1
a17678 1
      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
d17682 1
a17682 1
    export_symbols_cmds_CXX=$ltdll_cmds
d17686 1
a17686 3
    cl*)
      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
      ;;
d17700 1
a17700 1
test no = "$ld_shlibs_CXX" && can_build_shared=no
d17717 1
a17717 1
  if test yes,yes = "$GCC,$enable_shared"; then
d17839 2
d17847 1
a17847 1
shrext_cmds=.so
a17863 2


d17866 2
a17867 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
d17871 1
a17871 1
  soname_spec='$libname$release$shared_ext$major'
d17875 1
a17875 1
  version_type=linux # correct to gnu/linux during the next big refactor
d17879 1
a17879 1
  if test ia64 = "$host_cpu"; then
d17881 1
a17881 1
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
d17886 2
a17887 2
    # the line '#! .'.  This would cause the generated library to
    # depend on '.', always an invalid library.  This was fixed in
d17893 1
a17893 1
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
d17900 1
a17900 24
    # Using Import Files as archive members, it is possible to support
    # filename-based versioning of shared library archives on AIX. While
    # this would work for both with and without runtime linking, it will
    # prevent static linking of such archives. So we do filename-based
    # shared library versioning with .so extension only, which is used
    # when both runtime linking and shared linking is enabled.
    # Unfortunately, runtime linking may impact performance, so we do
    # not want this to be the default eventually. Also, we use the
    # versioned .so libs for executables only if there is the -brtl
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
    # To allow for filename-based versioning support, we need to create
    # libNAME.so.V as an archive file, containing:
    # *) an Import File, referring to the versioned filename of the
    #    archive as well as the shared archive member, telling the
    #    bitwidth (32 or 64) of that shared object, and providing the
    #    list of exported symbols of that shared object, eventually
    #    decorated with the 'weak' keyword
    # *) the shared object with the F_LOADONLY flag set, to really avoid
    #    it being seen by the linker.
    # At run time we better use the real file rather than another symlink,
    # but for link time we create the symlink libNAME.so -> libNAME.so.V

    case $with_aix_soname,$aix_use_runtimelinking in
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
d17903 1
a17903 2
    aix,yes) # traditional libtool
      dynamic_linker='AIX unversionable lib.so'
d17907 2
a17908 4
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      ;;
    aix,no) # traditional AIX only
      dynamic_linker='AIX lib.a(lib.so.V)'
d17911 3
a17913 27
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      ;;
    svr4,*) # full svr4 only
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,yes) # both, prefer svr4
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # unpreferred sharedlib libNAME.a needs extra handling
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,no) # both, prefer aix
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
      ;;
    esac
d17923 1
a17923 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d17928 1
a17928 1
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d17934 1
a17934 1
  library_names_spec='$libname$shared_ext'
d17940 1
a17940 1
  version_type=linux # correct to gnu/linux during the next big refactor
d17942 2
a17943 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d17955 1
a17955 1
  shrext_cmds=.dll
d17964 2
a17965 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d17981 1
a17981 1
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d17986 1
a17986 1
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d17990 1
a17990 1
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d17999 2
a18000 2
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
    library_names_spec='$libname.dll.lib'
d18027 1
a18027 1
      sys_lib_search_path_spec=$LIB
d18040 2
a18041 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d18054 1
a18054 1
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
d18067 2
a18068 2
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$major$shared_ext'
d18077 1
a18077 1
  version_type=linux # correct to gnu/linux during the next big refactor
d18080 2
a18081 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d18085 4
d18096 1
a18096 1
    freebsd[23].*) objformat=aout ;;
d18103 1
a18103 2
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      soname_spec='$libname$release$shared_ext$major'
d18108 1
a18108 1
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d18114 1
a18114 1
  freebsd2.*)
d18133 10
d18144 1
a18144 1
  version_type=linux # correct to gnu/linux during the next big refactor
d18148 2
a18149 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d18151 1
a18151 1
  shlibpath_overrides_runpath=no
d18169 3
a18171 3
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
    if test 32 = "$HPUX_IA64_MODE"; then
a18172 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a18174 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
d18176 1
d18184 2
a18185 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d18194 2
a18195 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d18205 1
a18205 1
  version_type=linux # correct to gnu/linux during the next big refactor
d18208 2
a18209 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d18220 2
a18221 2
	if test yes = "$lt_cv_prog_gnu_ld"; then
		version_type=linux # correct to gnu/linux during the next big refactor
d18228 2
a18229 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
d18248 2
a18249 2
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
d18258 3
a18260 2
linux*android*)
  version_type=none # Android doesn't support versioned libraries.
d18263 2
a18264 23
  library_names_spec='$libname$release$shared_ext'
  soname_spec='$libname$release$shared_ext'
  finish_cmds=
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  dynamic_linker='Android linker'
  # Don't embed -rpath directories since the linker doesn't support them.
  hardcode_libdir_flag_spec_CXX='-L$libdir'
  ;;

# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  version_type=linux # correct to gnu/linux during the next big refactor
  need_lib_prefix=no
  need_version=no
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d18308 1
a18308 6
  # Ideally, we could use ldconfig to report *all* directores which are
  # searched for libraries, however this is still not possible.  Aside from not
  # being certain /sbin/ldconfig is available, command
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  # even though it is searched at run-time.  Try to do the best guess by
  # appending ld.so.conf contents (and includes) to the search path.
d18328 1
a18328 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d18332 2
a18333 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d18342 2
a18343 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d18352 2
a18353 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d18360 1
a18360 1
openbsd* | bitrig*)
d18362 1
a18362 1
  sys_lib_dlsearch_path_spec=/usr/lib
d18364 17
a18380 2
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
    need_version=no
d18382 1
a18382 1
    need_version=yes
a18383 4
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
d18388 1
a18388 3
  version_type=windows
  shrext_cmds=.dll
  need_version=no
d18390 1
a18390 6
  # OS/2 can only load a DLL with a base name of 8 characters or less.
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
    v=$($ECHO $release$versuffix | tr -d .-);
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
    $ECHO $n$v`$shared_ext'
  library_names_spec='${libname}_dll.$libext'
d18392 1
a18392 15
  shlibpath_var=BEGINLIBPATH
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  postinstall_cmds='base_file=`basename \$file`~
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
    dldir=$destdir/`dirname \$dlpath`~
    test -d \$dldir || mkdir -p \$dldir~
    $install_prog $dir/$dlname \$dldir/$dlname~
    chmod a+x \$dldir/$dlname~
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
    fi'
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
    dlpath=$dir/\$dldll~
    $RM \$dlpath'
d18399 2
a18400 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d18403 1
a18403 1
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d18411 1
a18411 1
  version_type=linux # correct to gnu/linux during the next big refactor
d18414 2
a18415 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d18425 1
a18425 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d18429 1
a18429 1
  if test yes = "$with_gnu_ld"; then
d18436 3
a18438 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d18459 4
a18462 4
  if test -d /usr/nec; then
    version_type=linux # correct to gnu/linux during the next big refactor
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
    soname_spec='$libname$shared_ext.$major'
d18468 1
a18468 1
  version_type=sco
d18471 2
a18472 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d18476 1
a18476 1
  if test yes = "$with_gnu_ld"; then
d18491 1
a18491 1
  version_type=linux # correct to gnu/linux during the next big refactor
d18494 1
a18494 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d18501 3
a18503 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d18513 1
a18513 1
test no = "$dynamic_linker" && can_build_shared=no
d18516 1
a18516 1
if test yes = "$GCC"; then
d18520 2
a18521 2
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
d18523 2
a18524 3

if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a18526 11
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec

# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"

# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH



d18569 1
a18569 1
   test yes = "$hardcode_automatic_CXX"; then
d18572 1
a18572 1
  if test no != "$hardcode_direct_CXX" &&
d18576 2
a18577 2
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
     test no != "$hardcode_minus_L_CXX"; then
d18592 2
a18593 2
if test relink = "$hardcode_action_CXX" ||
   test yes = "$inherit_rpath_CXX"; then
d18596 2
a18597 2
elif test yes = "$shlibpath_overrides_runpath" ||
     test no = "$enable_shared"; then
d18620 1
a18620 1
fi # test yes != "$_lt_caught_CXX_error"
a18639 2


d20021 1
a20021 1
	    for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
a20023 1
		 -D*) ;;
d20860 1
a20860 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d20866 1
a20866 1
if test yes = "$GCC"; then
d20872 1
a20872 1
    # gcc leaves a trailing carriage return, which upsets mingw
d20886 1
a20886 1
      test -z "$LD" && LD=$ac_prog
d20897 1
a20897 1
elif test yes = "$with_gnu_ld"; then
d20908 1
a20908 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d20910 1
a20910 1
    IFS=$lt_save_ifs
d20913 1
a20913 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d20919 1
a20919 1
	test no != "$with_gnu_ld" && break
d20922 1
a20922 1
	test yes != "$with_gnu_ld" && break
d20927 1
a20927 1
  IFS=$lt_save_ifs
d20929 1
a20929 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d20933 1
a20933 1
LD=$lt_cv_path_LD
a37037 2
 no:0:*-*-freebsd6.4) ;;
 no:0:*-*-hpux11.23*) ;;
d37039 1
a37056 1
 no:0:*-*-freebsd6.4) ;;
a37074 1
 no:0:*-*-freebsd6.4) ;;
d37839 1
a37839 1
This file was extended by ntp $as_me 4.2.8p5, which was
d37906 1
a37906 1
ntp config.status 4.2.8p5
a38040 1
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
a38042 1
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
a38088 1
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
a38090 1
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
a38092 1
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
d38125 1
d38158 1
a38158 2
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
d38197 1
a38235 1
PATH_SEPARATOR \
a38262 1
lt_cv_sys_global_symbol_to_import \
a38264 1
lt_cv_nm_interface \
a38265 1
lt_cv_truncate_bin \
d38286 1
d38320 1
d38333 1
a38333 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38360 1
a38360 2
configure_time_dlsearch_path \
configure_time_lt_sys_library_path \
d38374 1
a38374 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38383 2
d38386 1
a38386 1
# See if we are running on zsh, and set the options that allow our
d38388 1
a38388 1
if test -n "\${ZSH_VERSION+set}"; then
d38395 1
d39186 1
a39186 1
    # See if we are running on zsh, and set the options that allow our
d39188 1
a39188 1
    if test -n "${ZSH_VERSION+set}"; then
d39192 1
a39192 1
    cfgfile=${ofile}T
d39198 3
a39200 1
# Generated automatically by $as_me ($PACKAGE) $VERSION
a39202 12

# Provide generalized library-building support services.
# Written by Gordon Matzigkeit, 1996

# Copyright (C) 2014 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions.  There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# GNU Libtool is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of of the License, or
# (at your option) any later version.
d39204 16
a39219 4
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program or library that is built
# using GNU Libtool, you may include this file under the  same
# distribution terms that you use for the rest of that program.
d39221 2
a39222 2
# GNU Libtool is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
d39227 4
a39230 1
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
d39234 1
a39234 4
available_tags='CXX '

# Configured defaults for sys_lib_dlsearch_path munging.
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
a39253 3
# Shared archive member basename,for filename based shared library versioning on AIX.
shared_archive_member_spec=$shared_archive_member_spec

a39259 3
# The PATH separator for the build system.
PATH_SEPARATOR=$lt_PATH_SEPARATOR

a39367 3
# Transform the output of nm into a list of symbols to manually relocate.
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import

a39373 3
# The name lister interface.
nm_interface=$lt_lt_cv_nm_interface

d39377 1
a39377 1
# The root where to search for dependent libraries,and where our libraries should be installed.
a39379 3
# Command to truncate a binary pipe.
lt_truncate_bin=$lt_lt_cv_truncate_bin

d39470 2
a39471 5
# Detected run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path

# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
d39561 4
d39568 1
a39568 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39572 1
a39572 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39574 1
a39574 1
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
a39639 59
    cat <<'_LT_EOF' >> "$cfgfile"

# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE

# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}


# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}


# ### END FUNCTIONS SHARED WITH CONFIGURE

_LT_EOF

d39646 1
a39646 1
if test set != "${COLLECT_NAMES+set}"; then
d39655 1
a39655 1
ltmain=$ac_aux_dir/ltmain.sh
d39665 159
d39907 4
d39914 1
a39914 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39918 1
a39918 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39920 1
a39920 1
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
@


1.1.1.9
log
@---
(4.2.8p7) 2016/04/26 Released by Harlan Stenn <stenn@@ntp.org>

* [Sec 2901] KoD packets must have non-zero transmit timestamps.  HStenn.
* [Sec 2936] Skeleton Key: Any system knowing the trusted key can serve
  time. Include passive servers in this check. HStenn.
* [Sec 2945] Additional KoD packet checks.  HStenn.
* [Sec 2978] Interleave can be partially triggered.  HStenn.
* [Sec 3007] Validate crypto-NAKs.  Danny Mayer.
* [Sec 3008] Always check the return value of ctl_getitem().
  - initial work by HStenn
  - Additional cleanup of ctl_getitem by perlinger@@ntp.org
* [Sec 3009] Crafted addpeer with hmode > 7 causes OOB error. perlinger@@ntp.org
   - added more stringent checks on packet content
* [Sec 3010] remote configuration trustedkey/requestkey values
  are not properly validated. perlinger@@ntp.org
  - sidekick: Ignore keys that have an unsupported MAC algorithm
    but are otherwise well-formed
* [Sec 3011] Duplicate IPs on unconfig directives will cause an assertion botch
  - graciously accept the same IP multiple times. perlinger@@ntp.org
* [Sec 3020] Refclock impersonation.  HStenn.
* [Bug 2831]  Segmentation Fault in DNS lookup during startup. perlinger@@ntp.org
  - fixed yet another race condition in the threaded resolver code.
* [Bug 2858] bool support.  Use stdbool.h when available.  HStenn.
* [Bug 2879] Improve NTP security against timing attacks. perlinger@@ntp.org
  - integrated patches by Loganaden Velvidron <logan@@ntp.org>
    with some modifications & unit tests
* [Bug 2952] Symmetric active/passive mode is broken.  HStenn.
* [Bug 2960] async name resolution fixes for chroot() environments.
  Reinhard Max.
* [Bug 2994] Systems with HAVE_SIGNALED_IO fail to compile. perlinger@@ntp.org
* [Bug 2995] Fixes to compile on Windows
* [Bug 2999] out-of-bounds access in 'is_safe_filename()'. perlinger@@ntp.org
* [Bug 3013] Fix for ssl_init.c SHA1 test. perlinger@@ntp.org
  - Patch provided by Ch. Weisgerber
* [Bug 3015] ntpq: config-from-file: "request contains an unprintable character"
  - A change related to [Bug 2853] forbids trailing white space in
    remote config commands. perlinger@@ntp.org
* [Bug 3019] NTPD stops processing packets after ERROR_HOST_UNREACHABLE
  - report and patch from Aleksandr Kostikov.
  - Overhaul of Windows IO completion port handling. perlinger@@ntp.org
* [Bug 3022] authkeys.c should be refactored. perlinger@@ntp.org
  - fixed memory leak in access list (auth[read]keys.c)
  - refactored handling of key access lists (auth[read]keys.c)
  - reduced number of error branches (authreadkeys.c)
* [Bug 3023] ntpdate cannot correct dates in the future. perlinger@@ntp.org
* [Bug 3030] ntpq needs a general way to specify refid output format.  HStenn.
* [Bug 3031] ntp broadcastclient unable to synchronize to an server
             when the time of server changed. perlinger@@ntp.org
  - Check the initial delay calculation and reject/unpeer the broadcast
    server if the delay exceeds 50ms. Retry again after the next
    broadcast packet.
* [Bug 3036] autokey trips an INSIST in authistrustedip().  Harlan Stenn.
* Document ntp.key's optional IP list in authenetic.html.  Harlan Stenn.
* Update html/xleave.html documentation.  Harlan Stenn.
* Update ntp.conf documentation.  Harlan Stenn.
* Fix some Credit: attributions in the NEWS file.  Harlan Stenn.
* Fix typo in html/monopt.html.  Harlan Stenn.
* Add README.pullrequests.  Harlan Stenn.
* Cleanup to include/ntp.h.  Harlan Stenn.

---
(4.2.8p6) 2016/01/20 Released by Harlan Stenn <stenn@@ntp.org>

* [Sec 2935] Deja Vu: Replay attack on authenticated broadcast mode. HStenn.
* [Sec 2936] Skeleton Key: Any trusted key system can serve time. HStenn.
* [Sec 2937] ntpq: nextvar() missing length check. perlinger@@ntp.org
* [Sec 2938] ntpq saveconfig command allows dangerous characters
  in filenames. perlinger@@ntp.org
* [Sec 2939] reslist NULL pointer dereference.  perlinger@@ntp.org
* [Sec 2940] Stack exhaustion in recursive traversal of restriction
  list. perlinger@@ntp.org
* [Sec 2942]: Off-path DoS attack on auth broadcast mode.  HStenn.
* [Sec 2945] Zero Origin Timestamp Bypass. perlinger@@ntp.org
* [Sec 2948] Potential Infinite Loop in ntpq ( and ntpdc) perlinger@@ntp.org
* [Bug 2772] adj_systime overflows tv_usec. perlinger@@ntp.org
* [Bug 2814] msyslog deadlock when signaled. perlinger@@ntp.org
  - applied patch by shenpeng11@@huawei.com with minor adjustments
* [Bug 2882] Look at ntp_request.c:list_peers_sum(). perlinger@@ntp.org
* [Bug 2891] Deadlock in deferred DNS lookup framework. perlinger@@ntp.org
* [Bug 2892] Several test cases assume IPv6 capabilities even when
             IPv6 is disabled in the build. perlinger@@ntp.org
  - Found this already fixed, but validation led to cleanup actions.
* [Bug 2905] DNS lookups broken. perlinger@@ntp.org
  - added limits to stack consumption, fixed some return code handling
* [Bug 2971] ntpq bails on ^C: select fails: Interrupted system call
  - changed stacked/nested handling of CTRL-C. perlinger@@ntp.org
  - make CTRL-C work for retrieval and printing od MRU list. perlinger@@ntp.org
* [Bug 2980] reduce number of warnings. perlinger@@ntp.org
  - integrated several patches from Havard Eidnes (he@@uninett.no)
* [Bug 2985] bogus calculation in authkeys.c perlinger@@ntp.org
  - implement 'auth_log2()' using integer bithack instead of float calculation
* Make leapsec_query debug messages less verbose.  Harlan Stenn.
* Disable incomplete t-ntp_signd.c test.  Harlan Stenn.

---
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p7.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p7'
PACKAGE_STRING='ntp 4.2.8p7'
d727 1
d956 1
a1054 1
enable_bug3020_fix
a1062 1
enable_dynamic_interleave
d1080 1
d1622 1
a1622 1
\`configure' configures ntp 4.2.8p7 to adapt to many kinds of systems.
d1692 1
a1692 1
     short | recursive ) echo "Configuration of ntp 4.2.8p7:";;
d1711 1
a1711 1
  --with-pic              try to use only PIC/non-PIC objects [default=use
d1715 3
d1719 2
a1720 2
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
a1828 1
  --enable-bug3020-fix    + Provide the explicit 127.0.0.0/8 martian filter
a1838 2
  --enable-dynamic-interleave
                          - dynamic interleave support
d1859 2
d1930 1
a1930 1
ntp configure 4.2.8p7
d2760 1
a2760 1
It was created by ntp $as_me 4.2.8p7, which was
d3761 1
a3761 1
 VERSION='4.2.8p7'
a5417 2


a5437 8
        case "$host_os" in
    hpux*)

$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h

      ;;
  esac

d8394 1
a8394 1
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
d8396 1
a8396 1
	IFS="$lt_save_ifs"
d8401 1
a8401 1
      IFS="$lt_save_ifs"
d8424 2
a8425 2
macro_version='2.4.2'
macro_revision='1.3337'
d8439 1
a8439 1
ltmain="$ac_aux_dir/ltmain.sh"
d8488 1
a8488 1
case "$ECHO" in
d8681 1
a8681 1
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d8687 1
a8687 1
if test "$GCC" = yes; then
d8693 1
a8693 1
    # gcc leaves a trailing carriage return which upsets mingw
d8707 1
a8707 1
      test -z "$LD" && LD="$ac_prog"
d8718 1
a8718 1
elif test "$with_gnu_ld" = yes; then
d8729 1
a8729 1
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d8731 1
a8731 1
    IFS="$lt_save_ifs"
d8734 1
a8734 1
      lt_cv_path_LD="$ac_dir/$ac_prog"
d8740 1
a8740 1
	test "$with_gnu_ld" != no && break
d8743 1
a8743 1
	test "$with_gnu_ld" != yes && break
d8748 1
a8748 1
  IFS="$lt_save_ifs"
d8750 1
a8750 1
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
d8754 1
a8754 1
LD="$lt_cv_path_LD"
d8797 1
a8797 1
  lt_cv_path_NM="$NM"
d8799 1
a8799 1
  lt_nm_to_check="${ac_tool_prefix}nm"
d8804 1
a8804 1
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d8806 1
a8806 1
      IFS="$lt_save_ifs"
d8808 2
a8809 2
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
d8811 1
a8811 1
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
d8814 7
a8820 2
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
d8822 1
a8822 1
	  break
d8828 1
a8828 1
	    break
d8839 1
a8839 1
    IFS="$lt_save_ifs"
d8846 2
a8847 2
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
d8953 1
a8953 1
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
d8955 1
a8955 1
      DUMPBIN="$DUMPBIN -symbols"
d8963 2
a8964 2
  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
d9015 1
a9015 1
  teststring="ABCD"
d9055 1
a9055 1
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
d9074 5
d9105 2
a9106 1
    if test -n "$lt_cv_sys_max_cmd_len"; then
d9112 1
a9112 1
      for i in 1 2 3 4 5 6 7 8 ; do
d9119 1
a9119 1
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
d9121 1
a9121 1
	      test $i != 17 # 1/2 MB should be enough
d9139 1
a9139 1
if test -n $lt_cv_sys_max_cmd_len ; then
a9156 24
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,b/c, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }


d9279 1
a9279 1
    if test "$GCC" != yes; then
d9284 2
a9285 2
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
d9413 1
a9413 1
# `unknown' -- same as none, but documents that we really don't know.
d9417 3
a9419 3
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
d9446 1
a9446 2
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
a9481 4
gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

d9519 2
a9520 2
# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
d9542 2
a9543 2
openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9596 3
d9756 2
a9757 2
  # two different shell functions defined in ltmain.sh
  # decide which to use based on capabilities of $DLLTOOL
d9769 1
a9769 1
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
d9923 1
a9923 1
      if test "$ac_status" -eq 0; then
d9931 1
a9931 1
	if test "$ac_status" -ne 0; then
d9944 1
a9944 1
if test "x$lt_cv_ar_at_file" = xno; then
d10161 2
a10162 2
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
d10165 1
a10165 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
d10168 1
a10168 1
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d10251 1
a10251 1
  if test "$host_cpu" = ia64; then
d10284 17
d10304 4
a10307 1
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d10310 12
a10321 2
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
d10339 2
a10340 2
    # Fake it for dumpbin and say T for any non-static function
    # and D for any global variable.
d10345 1
d10347 3
d10353 4
a10356 4
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
"     s[1]~/^[@@?]/{print s[1], s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print t[1], substr(t[1],length(prfx))}"\
d10404 2
a10405 2
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
/* DATA imports from DLLs on WIN32 con't be const, because runtime
d10408 1
a10408 1
#elif defined(__osf__)
d10434 1
a10434 1
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
d10454 1
a10454 1
	  LIBS="conftstm.$ac_objext"
d10460 1
a10460 1
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
d10481 1
a10481 1
  if test "$pipe_works" = yes; then
d10534 10
d10556 1
a10556 1
case ${with_sysroot} in #(
d10558 1
a10558 1
   if test "$GCC" = yes; then
d10568 2
a10569 2
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
$as_echo "${with_sysroot}" >&6; }
d10581 80
d10666 1
a10666 1
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d10672 2
a10673 1
  # Find out which ABI we are using.
d10682 1
a10682 1
	HPUX_IA64_MODE="32"
d10685 1
a10685 1
	HPUX_IA64_MODE="64"
d10692 2
a10693 1
  # Find out which ABI we are using.
d10700 1
a10700 1
    if test "$lt_cv_prog_gnu_ld" = yes; then
d10729 37
a10765 1
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
d10767 6
a10772 1
  # Find out which ABI we are using.
d10786 11
a10796 1
	    LD="${LD-ld} -m elf_i386"
d10798 1
a10798 1
	  ppc64-*linux*|powerpc64-*linux*)
d10817 4
a10820 1
	  ppc*-*linux*|powerpc*-*linux*)
d10838 1
a10838 1
  SAVE_CFLAGS="$CFLAGS"
d10878 1
a10878 1
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
d10880 1
a10880 1
    CFLAGS="$SAVE_CFLAGS"
d10883 3
a10885 2
sparc*-*solaris*)
  # Find out which ABI we are using.
d10895 14
a10908 1
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
d10922 1
a10922 1
need_locks="$enable_libtool_lock"
d11033 1
a11033 1
if test "x$lt_cv_path_mainfest_tool" != xyes; then
d11536 1
a11536 1
      if test -z "${LT_MULTI_MODULE}"; then
d11548 7
a11554 1
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
d11565 1
d11593 1
a11593 1
	LDFLAGS="$save_LDFLAGS"
d11598 1
d11620 3
a11622 1
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
d11635 1
a11635 1
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
d11637 1
a11637 1
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
d11644 3
a11646 3
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
	10.[012]*)
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
d11648 1
a11648 1
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
d11652 1
a11652 1
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
d11655 2
a11656 2
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
d11658 1
a11658 1
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
d11660 1
a11660 1
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
d11668 35
d11721 3
a11723 3
  case ${2} in
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d11751 1
a11751 1
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
d11753 1
a11753 1
	IFS="$lt_save_ifs"
d11758 1
a11758 1
      IFS="$lt_save_ifs"
d11776 16
a11791 1
  withval=$with_pic; pic_mode="$withval"
a11796 2
test -z "$pic_mode" && pic_mode=default

d11812 1
a11812 1
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
d11814 1
a11814 1
	IFS="$lt_save_ifs"
d11819 1
a11819 1
      IFS="$lt_save_ifs"
d11833 52
d11889 1
a11889 1
LIBTOOL_DEPS="$ltmain"
d11919 4
d11938 1
a11938 1
if test -n "${ZSH_VERSION+set}" ; then
d11977 1
a11977 1
  if test "X${COLLECT_NAMES+set}" != Xset; then
d11988 1
a11988 1
# All known linkers require a `.a' archive for static linking (except MSVC,
d11992 1
a11992 1
with_gnu_ld="$lt_cv_prog_gnu_ld"
d11994 2
a11995 2
old_CC="$CC"
old_CFLAGS="$CFLAGS"
d12004 2
a12005 9
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d12020 1
a12020 1
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
d12023 2
a12024 2
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d12027 1
a12027 1
    IFS="$lt_save_ifs"
d12029 2
a12030 2
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
d12035 1
a12035 1
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
d12058 2
a12059 2
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
d12064 1
a12064 1
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
d12086 1
a12086 1
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
d12089 2
a12090 2
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d12093 1
a12093 1
    IFS="$lt_save_ifs"
d12095 2
a12096 2
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
d12101 1
a12101 1
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
d12124 2
a12125 2
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
d12130 1
a12130 1
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
d12151 1
a12151 1
lt_save_CC="$CC"
d12213 1
a12213 1
if test "$GCC" = yes; then
d12229 1
a12229 1
   lt_compiler_flag="-fno-rtti -fno-exceptions"
d12259 1
a12259 1
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
d12277 1
a12277 1
  if test "$GCC" = yes; then
d12284 1
a12284 1
      if test "$host_cpu" = ia64; then
d12288 1
d12299 2
a12300 2
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
d12316 5
d12381 3
a12383 1
      lt_prog_compiler_pic='-Xcompiler -fPIC'
d12391 1
a12391 1
      if test "$host_cpu" = ia64; then
d12399 14
d12417 5
d12437 1
a12437 1
      lt_prog_compiler_static='${wl}-a ${wl}archive'
d12446 1
a12446 1
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
d12448 1
a12448 1
      # old Intel for x86_64 which still supported -KPIC.
d12473 6
d12499 1
a12499 1
	*Sun\ F* | *Sun*Fortran*)
d12505 5
d12516 10
d12576 1
a12576 1
      if test -d /usr/nec ;then
d12605 1
a12605 1
  # For platforms which do not support PIC, -DPIC is meaningless:
d12637 1
a12637 1
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
d12667 1
a12667 1
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d12699 1
a12699 1
   save_LDFLAGS="$LDFLAGS"
d12718 1
a12718 1
   LDFLAGS="$save_LDFLAGS"
d12724 1
a12724 1
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d12844 2
a12845 2
hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
d12857 3
a12859 3
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
a12886 1
  hardcode_libdir_flag_spec_ld=
d12902 3
a12904 3
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
d12919 1
a12919 1
    if test "$GCC" != yes; then
d12927 1
a12927 1
  openbsd*)
d12937 1
a12937 1
  if test "$with_gnu_ld" = yes; then
d12959 1
a12959 1
  if test "$lt_use_gnu_ld_interface" = yes; then
d12961 1
a12961 1
    wlarc='${wl}'
d12967 2
a12968 2
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
d12971 1
a12971 1
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d12976 1
a12976 1
    case `$LD -v 2>&1` in
d12989 1
a12989 1
      if test "$host_cpu" != ia64; then
d13008 1
a13008 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d13024 1
a13024 1
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d13034 1
a13034 1
      export_dynamic_flag_spec='${wl}--export-all-symbols'
d13042 10
a13051 10
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d13058 1
a13058 1
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d13062 28
d13093 2
a13094 2
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
d13101 2
a13102 2
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d13107 1
a13107 1
      if test "$host_os" = linux-dietlibc; then
d13113 1
a13113 1
	 && test "$tmp_diet" = no
d13119 1
a13119 1
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
d13124 1
a13124 1
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
d13135 2
d13141 1
a13141 1
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
d13147 1
a13147 1
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
d13153 1
a13153 1
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d13155 1
a13155 1
        if test "x$supports_anon_versioning" = xyes; then
d13157 3
a13159 3
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	    echo "local: *; };" >> $output_objdir/$libname.ver~
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d13163 3
d13169 1
a13169 2
	  hardcode_libdir_flag_spec=
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
d13171 1
a13171 1
	  if test "x$supports_anon_versioning" = xyes; then
d13173 3
a13175 3
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	      echo "local: *; };" >> $output_objdir/$libname.ver~
	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
d13189 2
a13190 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d13208 2
a13209 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d13221 1
a13221 1
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
d13236 3
a13238 3
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d13255 2
a13256 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d13263 1
a13263 1
    if test "$ld_shlibs" = no; then
d13279 1
a13279 1
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
d13287 1
a13287 1
      if test "$host_cpu" = ia64; then
d13292 1
a13292 1
	no_entry_flag=""
d13295 7
a13301 3
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	# Also, AIX nm treats weak defined symbols like other global
	# defined symbols, whereas GNU nm marks them as "W".
d13303 1
a13303 1
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
d13305 1
a13305 1
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
d13311 13
a13323 1
	# need to do runtime linking.
d13326 1
a13326 1
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
d13331 7
d13356 9
a13364 1
      file_list_spec='${wl}-f,'
d13366 1
a13366 1
      if test "$GCC" = yes; then
d13370 1
a13370 1
	  collect2name=`${CC} -print-prog-name=collect2`
d13389 2
a13390 2
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
d13392 5
d13399 1
a13399 1
	if test "$host_cpu" = ia64; then
d13404 2
a13405 2
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
d13407 1
a13407 1
	    shared_flag='${wl}-bM:SRE'
d13409 2
d13414 1
a13414 1
      export_dynamic_flag_spec='${wl}-bexpall'
d13418 1
a13418 1
      if test "$aix_use_runtimelinking" = yes; then
d13424 1
a13424 1
        if test "${lt_cv_aix_libpath+set}" = set; then
d13459 1
a13459 1
    lt_cv_aix_libpath_="/usr/lib:/lib"
d13467 2
a13468 2
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
d13470 2
a13471 2
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
d13473 1
a13473 1
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
d13477 1
a13477 1
	 if test "${lt_cv_aix_libpath+set}" = set; then
d13512 1
a13512 1
    lt_cv_aix_libpath_="/usr/lib:/lib"
d13520 1
a13520 1
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
d13523 3
a13525 3
	  no_undefined_flag=' ${wl}-bernotok'
	  allow_undefined_flag=' ${wl}-berok'
	  if test "$with_gnu_ld" = yes; then
d13527 1
a13527 1
	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
d13533 14
a13546 2
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
d13555 1
a13555 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d13585 1
a13585 1
	shrext_cmds=".dll"
d13587 9
a13595 8
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	  else
	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	  fi~
	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	  linknames='
d13599 1
d13604 12
a13615 12
	  lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	  case $lt_outputfile in
	    *.exe|*.EXE) ;;
	    *)
	      lt_outputfile="$lt_outputfile.exe"
	      lt_tool_outputfile="$lt_tool_outputfile.exe"
	      ;;
	  esac~
	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	    $RM "$lt_outputfile.manifest";
	  fi'
d13624 1
a13624 1
	shrext_cmds=".dll"
d13643 3
a13645 2
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
d13650 1
a13650 1
  allow_undefined_flag="$_lt_dar_allow_undefined"
d13652 1
a13652 1
     ifort*) _lt_dar_can_shared=yes ;;
d13655 1
a13655 1
  if test "$_lt_dar_can_shared" = "yes"; then
d13657 4
a13660 4
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
a13673 4
    freebsd1*)
      ld_shlibs=no
      ;;

d13686 1
a13686 1
    freebsd2*)
d13702 2
a13703 2
      if test "$GCC" = yes; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
d13705 1
a13705 1
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
d13707 1
a13707 1
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
d13714 1
a13714 1
      export_dynamic_flag_spec='${wl}-E'
d13718 2
a13719 2
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13723 2
a13724 3
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_flag_spec_ld='+b $libdir'
d13728 1
a13728 1
	export_dynamic_flag_spec='${wl}-E'
d13736 1
a13736 1
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d13739 1
a13739 1
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d13742 1
a13742 1
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13745 1
a13745 1
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13751 1
a13751 1
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d13754 1
a13754 1
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13766 1
a13766 1
   save_LDFLAGS="$LDFLAGS"
d13785 1
a13785 1
   LDFLAGS="$save_LDFLAGS"
d13791 2
a13792 2
if test x"$lt_cv_prog_compiler__b" = xyes; then
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13800 2
a13801 2
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
d13812 1
a13812 1
	  export_dynamic_flag_spec='${wl}-E'
d13823 2
a13824 2
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d13834 2
a13835 2
  save_LDFLAGS="$LDFLAGS"
	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
d13847 1
a13847 1
           LDFLAGS="$save_LDFLAGS"
d13851 2
a13852 2
	if test "$lt_cv_irix_exported_symbol" = yes; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
d13855 2
a13856 2
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
d13859 1
a13859 1
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
d13865 10
d13889 1
a13889 1
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
d13897 1
a13897 1
    openbsd*)
d13902 1
a13902 1
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d13904 3
a13906 3
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	  export_dynamic_flag_spec='${wl}-E'
d13908 2
a13909 10
	  case $host_os in
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	     hardcode_libdir_flag_spec='-R$libdir'
	     ;;
	   *)
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	     ;;
	  esac
d13920 22
a13941 2
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
d13945 3
a13947 3
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d13950 1
a13950 1
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
d13953 1
a13953 1
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
d13958 4
a13961 4
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
d13964 1
a13964 1
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
d13966 1
a13966 1
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d13977 3
a13979 3
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d13981 1
a13981 1
	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13986 1
a13986 1
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
d13988 1
a13988 1
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
d13991 2
a13992 2
	  wlarc='${wl}'
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13994 1
a13994 1
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d14004 1
a14004 1
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
d14007 2
a14008 2
	if test "$GCC" = yes; then
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
d14018 1
a14018 1
      if test "x$host_vendor" = xsequent; then
d14021 1
a14021 1
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d14070 1
a14070 1
      no_undefined_flag='${wl}-z,text'
d14075 3
a14077 3
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d14079 2
a14080 2
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d14085 1
a14085 1
      # Note: We can NOT use -z defs as we might desire, because we do not
d14091 2
a14092 2
      no_undefined_flag='${wl}-z,text'
      allow_undefined_flag='${wl}-z,nodefs'
d14095 1
a14095 1
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
d14098 1
a14098 1
      export_dynamic_flag_spec='${wl}-Bexport'
d14101 3
a14103 3
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d14105 2
a14106 2
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d14121 1
a14121 1
    if test x$host_vendor = xsni; then
d14124 1
a14124 1
	export_dynamic_flag_spec='${wl}-Blargedynsym'
d14132 1
a14132 1
test "$ld_shlibs" = no && can_build_shared=no
d14158 1
a14158 1
  if test "$enable_shared" = yes && test "$GCC" = yes; then
a14369 5





d14373 1
a14373 1
if test "$GCC" = yes; then
d14375 2
a14376 2
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
    *) lt_awk_arg="/^libraries:/" ;;
d14379 2
a14380 2
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
    *) lt_sed_strip_eq="s,=/,/,g" ;;
d14396 1
a14396 1
  # and add multilib dir if necessary.
d14398 8
a14405 1
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
d14407 3
a14409 3
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
    else
d14415 3
a14417 3
BEGIN {RS=" "; FS="/|\n";} {
  lt_foo="";
  lt_count=0;
d14424 1
a14424 1
          lt_foo="/" $lt_i lt_foo;
d14438 1
a14438 1
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
d14447 1
a14447 1
shrext_cmds=".so"
d14464 2
d14468 2
a14469 2
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
d14473 1
a14473 1
  soname_spec='${libname}${release}${shared_ext}$major'
d14477 1
a14477 1
  version_type=linux
d14481 1
a14481 1
  if test "$host_cpu" = ia64; then
d14483 1
a14483 1
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
d14488 2
a14489 2
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
d14495 1
a14495 1
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
d14502 24
a14525 1
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
d14528 2
a14529 1
    if test "$aix_use_runtimelinking" = yes; then
d14533 4
a14536 2
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
d14539 27
a14565 3
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
d14575 1
a14575 1
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d14580 1
a14580 1
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d14586 1
a14586 1
  library_names_spec='${libname}${shared_ext}'
d14592 1
a14592 1
  version_type=linux
d14594 2
a14595 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d14607 1
a14607 1
  shrext_cmds=".dll"
d14616 2
a14617 2
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d14633 1
a14633 1
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d14639 1
a14639 1
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d14643 1
a14643 1
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d14652 2
a14653 2
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'
d14680 1
a14680 1
      sys_lib_search_path_spec="$LIB"
d14693 2
a14694 2
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d14707 1
a14707 1
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
d14720 2
a14721 2
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
d14731 1
a14731 1
  version_type=linux
d14734 2
a14735 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
a14738 4
freebsd1*)
  dynamic_linker=no
  ;;

d14746 1
a14746 1
    freebsd[123]*) objformat=aout ;;
d14753 2
a14754 1
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
d14759 1
a14759 1
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
d14765 1
a14765 1
  freebsd2*)
a14783 10
gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

d14785 1
a14785 1
  version_type=linux
d14789 2
a14790 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d14792 1
a14792 1
  shlibpath_overrides_runpath=yes
d14810 3
a14812 3
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
d14814 1
d14817 1
a14818 1
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d14826 2
a14827 2
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
d14836 2
a14837 2
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
d14847 1
a14847 1
  version_type=linux
d14850 2
a14851 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d14862 2
a14863 2
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
d14870 2
a14871 2
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
d14890 2
a14891 2
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d14900 23
a14922 3
# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
d14925 2
a14926 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d14970 6
a14975 1
  # Append ld.so.conf contents to the search path
d14995 1
a14995 1
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
d14999 2
a15000 2
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
d15009 2
a15010 2
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d15019 2
a15020 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d15027 1
a15027 1
openbsd*)
d15029 1
a15029 1
  sys_lib_dlsearch_path_spec="/usr/lib"
d15031 6
a15036 6
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
d15039 1
a15039 12
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
d15044 3
a15046 1
  shrext_cmds=".dll"
d15048 6
a15053 1
  library_names_spec='$libname${shared_ext} $libname.a'
d15055 15
a15069 1
  shlibpath_var=LIBPATH
d15076 2
a15077 2
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d15080 1
a15080 1
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
d15088 1
a15088 1
  version_type=linux
d15091 2
a15092 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d15102 1
a15102 1
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
d15106 1
a15106 1
  if test "$with_gnu_ld" = yes; then
d15113 3
a15115 3
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d15136 4
a15139 4
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
d15145 1
a15145 1
  version_type=freebsd-elf
d15148 2
a15149 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d15153 1
a15153 1
  if test "$with_gnu_ld" = yes; then
d15168 1
a15168 1
  version_type=linux
d15171 1
a15171 1
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d15178 3
a15180 3
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d15190 1
a15190 1
test "$dynamic_linker" = no && can_build_shared=no
d15193 1
a15193 1
if test "$GCC" = yes; then
d15197 2
a15198 2
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
d15200 3
a15202 2
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
d15205 14
d15315 1
a15315 1
   test "X$hardcode_automatic" = "Xyes" ; then
d15318 1
a15318 1
  if test "$hardcode_direct" != no &&
d15322 2
a15323 2
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
d15338 2
a15339 2
if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; then
d15342 2
a15343 2
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
d15353 1
a15353 1
  if test "x$enable_dlopen" != xyes; then
d15363 1
a15363 1
    lt_cv_dlopen="load_add_on"
d15369 1
a15369 1
    lt_cv_dlopen="LoadLibrary"
d15374 1
a15374 1
    lt_cv_dlopen="dlopen"
d15379 1
a15379 1
  # if libdl is installed we need to link against it
d15417 1
a15417 1
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d15420 1
a15420 1
    lt_cv_dlopen="dyld"
d15428 8
d15439 1
a15439 1
  lt_cv_dlopen="shl_load"
d15478 1
a15478 1
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d15482 1
a15482 1
  lt_cv_dlopen="dlopen"
d15521 1
a15521 1
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d15560 1
a15560 1
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
d15599 1
a15599 1
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d15620 3
a15622 1
  if test "x$lt_cv_dlopen" != xno; then
a15623 2
  else
    enable_dlopen=no
d15628 2
a15629 2
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d15631 1
a15631 1
    save_LDFLAGS="$LDFLAGS"
d15634 1
a15634 1
    save_LIBS="$LIBS"
d15642 1
a15642 1
  	  if test "$cross_compiling" = yes; then :
d15689 1
a15689 1
/* When -fvisbility=hidden is used, assume the code has been annotated
d15691 1
a15691 1
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
d15721 1
a15721 1
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d15741 1
a15741 1
    if test "x$lt_cv_dlopen_self" = xyes; then
d15748 1
a15748 1
  	  if test "$cross_compiling" = yes; then :
d15795 1
a15795 1
/* When -fvisbility=hidden is used, assume the code has been annotated
d15797 1
a15797 1
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
d15827 1
a15827 1
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d15848 3
a15850 3
    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
d15894 1
a15894 1
    if test -n "$STRIP" ; then
d15922 1
a15922 1
  # Report which library types will actually be built
d15930 1
a15930 1
  test "$can_build_shared" = "no" && enable_shared=no
d15936 1
a15936 1
    test "$enable_shared" = yes && enable_static=no
d15944 6
a15949 2
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
d15959 1
a15959 1
  test "$enable_shared" = yes || enable_static=yes
d15973 1
a15973 1
CC="$lt_save_CC"
d15975 3
a15977 3
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
a16129 1
hardcode_libdir_flag_spec_ld_CXX=
d16156 1
a16156 1
if test "$_lt_caught_CXX_error" != yes; then
d16217 2
a16218 9
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d16224 1
a16224 1
    if test "$GXX" = yes; then
d16230 1
a16230 1
    if test "$GXX" = yes; then
d16237 1
a16237 1
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d16243 1
a16243 1
if test "$GCC" = yes; then
d16249 1
a16249 1
    # gcc leaves a trailing carriage return which upsets mingw
d16263 1
a16263 1
      test -z "$LD" && LD="$ac_prog"
d16274 1
a16274 1
elif test "$with_gnu_ld" = yes; then
d16285 1
a16285 1
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d16287 1
a16287 1
    IFS="$lt_save_ifs"
d16290 1
a16290 1
      lt_cv_path_LD="$ac_dir/$ac_prog"
d16296 1
a16296 1
	test "$with_gnu_ld" != no && break
d16299 1
a16299 1
	test "$with_gnu_ld" != yes && break
d16304 1
a16304 1
  IFS="$lt_save_ifs"
d16306 1
a16306 1
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
d16310 1
a16310 1
LD="$lt_cv_path_LD"
d16346 3
a16348 3
      if test "$with_gnu_ld" = yes; then
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d16350 2
a16351 2
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
d16356 1
a16356 1
        wlarc='${wl}'
d16361 1
a16361 1
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d16398 1
a16398 1
        if test "$host_cpu" = ia64; then
d16403 1
a16403 1
          no_entry_flag=""
d16409 13
a16421 1
          # need to do runtime linking.
d16431 7
d16456 9
a16464 1
        file_list_spec_CXX='${wl}-f,'
d16466 1
a16466 1
        if test "$GXX" = yes; then
d16470 1
a16470 1
	  collect2name=`${CC} -print-prog-name=collect2`
d16488 2
a16489 2
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag="$shared_flag "'${wl}-G'
d16491 5
d16498 1
a16498 1
          if test "$host_cpu" = ia64; then
d16503 2
a16504 2
	    if test "$aix_use_runtimelinking" = yes; then
	      shared_flag='${wl}-G'
d16506 1
a16506 1
	      shared_flag='${wl}-bM:SRE'
d16508 2
d16513 1
a16513 1
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
d16518 1
a16518 1
        if test "$aix_use_runtimelinking" = yes; then
d16521 2
a16522 1
          allow_undefined_flag_CXX='-berok'
d16525 1
a16525 1
          if test "${lt_cv_aix_libpath+set}" = set; then
d16560 1
a16560 1
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
d16568 1
a16568 1
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
d16570 1
a16570 1
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
d16572 2
a16573 2
          if test "$host_cpu" = ia64; then
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
d16575 1
a16575 1
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
d16579 1
a16579 1
	    if test "${lt_cv_aix_libpath+set}" = set; then
d16614 1
a16614 1
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
d16622 1
a16622 1
	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
d16625 3
a16627 3
	    no_undefined_flag_CXX=' ${wl}-bernotok'
	    allow_undefined_flag_CXX=' ${wl}-berok'
	    if test "$with_gnu_ld" = yes; then
d16629 1
a16629 1
	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
d16635 15
a16649 3
	    # This is similar to how AIX traditionally builds its shared
	    # libraries.
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
d16659 1
a16659 1
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d16687 1
a16687 1
	  shrext_cmds=".dll"
d16689 9
a16697 8
	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	    else
	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	    fi~
	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	    linknames='
d16704 13
a16716 13
	    lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	    case $lt_outputfile in
	      *.exe|*.EXE) ;;
	      *)
		lt_outputfile="$lt_outputfile.exe"
		lt_tool_outputfile="$lt_tool_outputfile.exe"
		;;
	    esac~
	    func_to_tool_file "$lt_outputfile"~
	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	      $RM "$lt_outputfile.manifest";
	    fi'
d16723 1
a16723 1
	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
d16729 10
a16738 10
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	    # If the export-symbols file already is a .def file (1st line
	    # is EXPORTS), use it as is; otherwise, prepend...
	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      cp $export_symbols $output_objdir/$soname.def;
	    else
	      echo EXPORTS > $output_objdir/$soname.def;
	      cat $export_symbols >> $output_objdir/$soname.def;
	    fi~
	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d16752 3
a16754 2
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
d16759 1
a16759 1
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
d16761 1
a16761 1
     ifort*) _lt_dar_can_shared=yes ;;
d16764 1
a16764 1
  if test "$_lt_dar_can_shared" = "yes"; then
d16766 7
a16772 7
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
d16781 28
d16827 1
a16827 1
      freebsd[12]*)
a16842 3
      gnu*)
        ;;

d16844 1
a16844 1
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d16849 1
a16849 1
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
d16851 1
a16851 1
        export_dynamic_flag_spec_CXX='${wl}-E'
d16863 1
a16863 1
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
d16872 1
a16872 1
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
d16875 2
a16876 2
            if test "$GXX" = yes; then
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
d16886 2
a16887 2
        if test $with_gnu_ld = no; then
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
d16894 1
a16894 1
	      export_dynamic_flag_spec_CXX='${wl}-E'
d16920 1
a16920 1
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d16923 1
a16923 1
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d16926 1
a16926 1
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d16937 1
a16937 1
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
d16940 2
a16941 2
	    if test "$GXX" = yes; then
	      if test $with_gnu_ld = no; then
d16944 1
a16944 1
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d16947 1
a16947 1
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d16950 1
a16950 1
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d16965 2
a16966 2
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}-E'
d16973 2
a16974 2
	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d16980 1
a16980 1
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
d16989 3
a16991 3
	    if test "$GXX" = yes; then
	      if test "$with_gnu_ld" = no; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d16993 1
a16993 1
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
d16999 1
a16999 1
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
d17004 1
a17004 1
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
d17012 2
a17013 2
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
d17022 1
a17022 1
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
d17024 2
a17025 2
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
d17039 2
a17040 2
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d17047 2
a17048 2
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d17052 3
a17054 3
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
d17061 3
a17063 3
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
d17065 4
a17068 4
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
		$RANLIB $oldlib'
d17070 3
a17072 3
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
d17074 3
a17076 3
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
d17079 2
a17080 2
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
d17084 3
a17086 3
	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
d17090 2
a17091 2
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
d17105 1
a17105 1
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
d17109 4
a17112 4
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    if test "x$supports_anon_versioning" = xyes; then
d17114 3
a17116 3
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
		echo "local: *; };" >> $output_objdir/$libname.ver~
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d17124 2
a17125 2
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
d17127 1
a17127 1
	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
d17185 1
a17185 6
      openbsd2*)
        # C++ shared libraries are fairly broken
	ld_shlibs_CXX=no
	;;

      openbsd*)
d17191 5
a17195 5
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
	    export_dynamic_flag_spec_CXX='${wl}-E'
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d17211 1
a17211 1
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
d17213 1
a17213 1
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
d17231 3
a17233 3
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
d17237 1
a17237 1
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
d17239 3
a17241 3
	          echo "-hidden">> $lib.exp~
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
	          $RM $lib.exp'
d17256 1
a17256 1
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
d17259 2
a17260 2
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
d17263 1
a17263 1
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d17266 1
a17266 1
	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d17270 1
a17270 1
	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
d17316 1
a17316 1
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
d17318 1
a17318 1
	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
d17326 1
a17326 1
		# but understands `-z linker_flag'.
d17343 1
a17343 1
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
d17350 2
a17351 2
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
d17353 1
a17353 1
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
d17355 1
a17355 1
		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
d17362 1
a17362 1
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
d17364 1
a17364 1
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
d17366 1
a17366 1
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
d17374 1
a17374 1
	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
d17378 1
a17378 1
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
d17387 1
a17387 1
      no_undefined_flag_CXX='${wl}-z,text'
d17394 2
a17395 2
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d17398 2
a17399 2
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d17405 1
a17405 1
	# Note: We can NOT use -z defs as we might desire, because we do not
d17411 2
a17412 2
	no_undefined_flag_CXX='${wl}-z,text'
	allow_undefined_flag_CXX='${wl}-z,nodefs'
d17415 1
a17415 1
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
d17418 1
a17418 1
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
d17423 2
a17424 2
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d17426 1
a17426 1
	      '"$old_archive_cmds_CXX"
d17428 1
a17428 1
	      '"$reload_cmds_CXX"
d17431 2
a17432 2
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d17464 1
a17464 1
    test "$ld_shlibs_CXX" = no && can_build_shared=no
d17466 2
a17467 2
    GCC_CXX="$GXX"
    LD_CXX="$LD"
d17495 1
d17511 1
a17511 1
    case ${prev}${p} in
d17516 2
a17517 2
       if test $p = "-L" ||
          test $p = "-R"; then
d17533 2
a17534 2
       if test "$pre_test_object_deps_done" = no; then
	 case ${prev} in
d17540 1
a17540 1
	     compiler_lib_search_path_CXX="${prev}${p}"
d17542 1
a17542 1
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
d17550 1
a17550 1
	   postdeps_CXX="${prev}${p}"
d17552 1
a17552 1
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
d17567 1
a17567 1
       if test "$pre_test_object_deps_done" = no; then
d17569 1
a17569 1
	   predep_objects_CXX="$p"
d17575 1
a17575 1
	   postdep_objects_CXX="$p"
a17604 45

linux*)
  case `$CC -V 2>&1 | sed 5q` in
  *Sun\ C*)
    # Sun C++ 5.9

    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;

solaris*)
  case $cc_basename in
  CC* | sunCC*)
    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;
d17613 1
a17613 1
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
d17652 1
a17652 1
  if test "$GXX" = yes; then
d17659 1
a17659 1
      if test "$host_cpu" = ia64; then
d17663 1
d17674 2
a17675 2
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
d17690 5
d17744 1
a17744 1
	if test "$host_cpu" = ia64; then
d17784 2
a17785 2
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    if test "$host_cpu" != ia64; then
d17791 1
a17791 1
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
d17820 1
a17820 1
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
d17828 1
a17828 1
	    # old Intel C++ for x86_64 which still supported -KPIC.
d17973 1
a17973 1
  # For platforms which do not support PIC, -DPIC is meaningless:
d18005 1
a18005 1
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
d18035 1
a18035 1
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
d18061 1
a18061 1
   save_LDFLAGS="$LDFLAGS"
d18080 1
a18080 1
   LDFLAGS="$save_LDFLAGS"
d18086 1
a18086 1
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
d18200 2
a18201 2
hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
d18213 3
a18215 3
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d18232 7
a18238 3
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    # Also, AIX nm treats weak defined symbols like other global defined
    # symbols, whereas GNU nm marks them as "W".
d18240 1
a18240 1
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
d18242 1
a18242 1
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
d18246 1
a18246 1
    export_symbols_cmds_CXX="$ltdll_cmds"
d18250 3
a18252 1
    cl*) ;;
d18266 1
a18266 1
test "$ld_shlibs_CXX" = no && can_build_shared=no
d18283 1
a18283 1
  if test "$enable_shared" = yes && test "$GCC" = yes; then
a18404 2


d18411 1
a18411 1
shrext_cmds=".so"
d18428 2
d18432 2
a18433 2
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
d18437 1
a18437 1
  soname_spec='${libname}${release}${shared_ext}$major'
d18441 1
a18441 1
  version_type=linux
d18445 1
a18445 1
  if test "$host_cpu" = ia64; then
d18447 1
a18447 1
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
d18452 2
a18453 2
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
d18459 1
a18459 1
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
d18466 24
a18489 1
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
d18492 2
a18493 1
    if test "$aix_use_runtimelinking" = yes; then
d18497 4
a18500 2
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
d18503 27
a18529 3
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
d18539 1
a18539 1
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d18544 1
a18544 1
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d18550 1
a18550 1
  library_names_spec='${libname}${shared_ext}'
d18556 1
a18556 1
  version_type=linux
d18558 2
a18559 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d18571 1
a18571 1
  shrext_cmds=".dll"
d18580 2
a18581 2
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d18597 1
a18597 1
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d18602 1
a18602 1
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d18606 1
a18606 1
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d18615 2
a18616 2
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'
d18643 1
a18643 1
      sys_lib_search_path_spec="$LIB"
d18656 2
a18657 2
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d18670 1
a18670 1
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
d18683 2
a18684 2
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
d18693 1
a18693 1
  version_type=linux
d18696 2
a18697 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
a18700 4
freebsd1*)
  dynamic_linker=no
  ;;

d18708 1
a18708 1
    freebsd[123]*) objformat=aout ;;
d18715 2
a18716 1
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
d18721 1
a18721 1
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
d18727 1
a18727 1
  freebsd2*)
a18745 10
gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

d18747 1
a18747 1
  version_type=linux
d18751 2
a18752 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d18754 1
a18754 1
  shlibpath_overrides_runpath=yes
d18772 3
a18774 3
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
d18776 1
d18779 1
a18780 1
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d18788 2
a18789 2
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
d18798 2
a18799 2
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
d18809 1
a18809 1
  version_type=linux
d18812 2
a18813 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d18824 2
a18825 2
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
d18832 2
a18833 2
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
d18852 2
a18853 2
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d18862 2
a18863 3
# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
d18866 23
a18888 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d18932 6
a18937 1
  # Append ld.so.conf contents to the search path
d18957 1
a18957 1
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
d18961 2
a18962 2
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
d18971 2
a18972 2
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d18981 2
a18982 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d18989 1
a18989 1
openbsd*)
d18991 1
a18991 1
  sys_lib_dlsearch_path_spec="/usr/lib"
d18993 6
a18998 6
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
d19001 1
a19001 12
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
d19006 3
a19008 1
  shrext_cmds=".dll"
d19010 6
a19015 1
  library_names_spec='$libname${shared_ext} $libname.a'
d19017 15
a19031 1
  shlibpath_var=LIBPATH
d19038 2
a19039 2
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d19042 1
a19042 1
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
d19050 1
a19050 1
  version_type=linux
d19053 2
a19054 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d19064 1
a19064 1
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
d19068 1
a19068 1
  if test "$with_gnu_ld" = yes; then
d19075 3
a19077 3
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d19098 4
a19101 4
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
d19107 1
a19107 1
  version_type=freebsd-elf
d19110 2
a19111 2
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d19115 1
a19115 1
  if test "$with_gnu_ld" = yes; then
d19130 1
a19130 1
  version_type=linux
d19133 1
a19133 1
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d19140 3
a19142 3
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
d19152 1
a19152 1
test "$dynamic_linker" = no && can_build_shared=no
d19155 1
a19155 1
if test "$GCC" = yes; then
d19159 2
a19160 2
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
d19162 3
a19164 2
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
d19167 11
d19220 1
a19220 1
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
d19223 1
a19223 1
  if test "$hardcode_direct_CXX" != no &&
d19227 2
a19228 2
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
d19243 2
a19244 2
if test "$hardcode_action_CXX" = relink ||
   test "$inherit_rpath_CXX" = yes; then
d19247 2
a19248 2
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
d19271 1
a19271 1
fi # test "$_lt_caught_CXX_error" != yes
d19291 2
d21514 1
a21514 1
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d21520 1
a21520 1
if test "$GCC" = yes; then
d21526 1
a21526 1
    # gcc leaves a trailing carriage return which upsets mingw
d21540 1
a21540 1
      test -z "$LD" && LD="$ac_prog"
d21551 1
a21551 1
elif test "$with_gnu_ld" = yes; then
d21562 1
a21562 1
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d21564 1
a21564 1
    IFS="$lt_save_ifs"
d21567 1
a21567 1
      lt_cv_path_LD="$ac_dir/$ac_prog"
d21573 1
a21573 1
	test "$with_gnu_ld" != no && break
d21576 1
a21576 1
	test "$with_gnu_ld" != yes && break
d21581 1
a21581 1
  IFS="$lt_save_ifs"
d21583 1
a21583 1
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
d21587 1
a21587 1
LD="$lt_cv_path_LD"
a22773 3

$as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h

d30362 1
a30362 107
for ac_header in sgtty.h stdatomic.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
if ${ac_cv_header_stdbool_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

             #include <stdbool.h>
             #ifndef bool
              "error: bool is not defined"
             #endif
             #ifndef false
              "error: false is not defined"
             #endif
             #if false
              "error: false is not 0"
             #endif
             #ifndef true
              "error: true is not defined"
             #endif
             #if true != 1
              "error: true is not 1"
             #endif
             #ifndef __bool_true_false_are_defined
              "error: __bool_true_false_are_defined is not defined"
             #endif

             struct s { _Bool s: 1; _Bool t; } s;

             char a[true == 1 ? 1 : -1];
             char b[false == 0 ? 1 : -1];
             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
             char d[(bool) 0.5 == true ? 1 : -1];
             /* See body of main program for 'e'.  */
             char f[(_Bool) 0.0 == false ? 1 : -1];
             char g[true];
             char h[sizeof (_Bool)];
             char i[sizeof s.t];
             enum { j = false, k = true, l = false * true, m = true * 256 };
             /* The following fails for
                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
             _Bool n[m];
             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
             /* Catch a bug in an HP-UX C compiler.  See
                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
              */
             _Bool q = true;
             _Bool *pq = &q;

int
main ()
{

             bool e = &s;
             *pq |= q;
             *pq |= ! q;
             /* Refer to every declared value, to avoid compiler optimizations.  */
             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
                     + !m + !n + !o + !p + !q + !pq);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdbool_h=yes
else
  ac_cv_header_stdbool_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
$as_echo "$ac_cv_header_stdbool_h" >&6; }
   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
if test "x$ac_cv_type__Bool" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE__BOOL 1
_ACEOF


fi


if test $ac_cv_header_stdbool_h = yes; then

$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h

fi

for ac_header in stdlib.h string.h termio.h
a36487 20
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5
$as_echo_n "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; }
# Check whether --enable-bug3020-fix was given.
if test "${enable_bug3020_fix+set}" = set; then :
  enableval=$enable_bug3020_fix; ans=$enableval
else
  ans=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 yes)

$as_echo "#define ENABLE_BUG3020_FIX 1" >>confdefs.h

esac


a37506 26
###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5
$as_echo_n "checking if we want dynamic interleave support... " >&6; }
# Check whether --enable-dynamic-interleave was given.
if test "${enable_dynamic_interleave+set}" = set; then :
  enableval=$enable_dynamic_interleave; ntp_ok=$enableval
else
  ntp_ok=no

fi

ntp_dynamic_interleave=0
case "$ntp_ok" in
 yes)
    ntp_dynamic_interleave=1
    ;;
esac

cat >>confdefs.h <<_ACEOF
#define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave
_ACEOF

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

d38496 1
a38496 1
This file was extended by ntp $as_me 4.2.8p7, which was
d38563 1
a38563 1
ntp config.status 4.2.8p7
d38698 1
d38701 1
d38748 1
d38751 1
d38754 1
a38786 1
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
d38819 2
a38820 1
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
a38858 1
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
d38897 1
d38925 1
d38928 1
d38930 1
a38950 1
hardcode_libdir_flag_spec_ld \
a38983 1
hardcode_libdir_flag_spec_ld_CXX \
d38996 1
a38996 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d39023 2
a39024 1
sys_lib_dlsearch_path_spec \
d39038 1
a39038 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
a39046 2
xsi_shell='$xsi_shell'
lt_shell_append='$lt_shell_append'
d39048 1
a39048 1
# See if we are running on zsh, and set the options which allow our
d39050 1
a39050 1
if test -n "\${ZSH_VERSION+set}" ; then
a39056 1
    TIMESTAMP='$TIMESTAMP'
d39847 1
a39847 1
    # See if we are running on zsh, and set the options which allow our
d39849 1
a39849 1
    if test -n "${ZSH_VERSION+set}" ; then
d39853 1
a39853 1
    cfgfile="${ofile}T"
d39859 1
a39859 3

# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d39862 12
d39875 4
a39878 4
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
#                 Inc.
#   Written by Gordon Matzigkeit, 1996
d39880 2
a39881 14
#   This file is part of GNU Libtool.
#
# GNU Libtool is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# As a special exception to the GNU General Public License,
# if you distribute this file as part of a program or library that
# is built using GNU Libtool, you may include this file under the
# same distribution terms that you use for the rest of that program.
#
# GNU Libtool is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
d39886 1
a39886 4
# along with GNU Libtool; see the file COPYING.  If not, a copy
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
# obtained by writing to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d39890 4
a39893 1
available_tags="CXX "
d39913 3
d39922 3
d40033 3
d40042 3
d40048 1
a40048 1
# The root where to search for dependent libraries,and in which our libraries should be installed.
d40051 3
d40144 5
a40148 2
# Run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
a40237 4
# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld

d40241 1
a40241 1
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
d40245 1
a40245 1
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
d40247 1
a40247 1
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
d40313 59
d40378 1
a40378 1
if test "X${COLLECT_NAMES+set}" != Xset; then
d40387 1
a40387 1
ltmain="$ac_aux_dir/ltmain.sh"
a40396 159
  if test x"$xsi_shell" = xyes; then
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
func_dirname ()\
{\
\    case ${1} in\
\      */*) func_dirname_result="${1%/*}${2}" ;;\
\      *  ) func_dirname_result="${3}" ;;\
\    esac\
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_basename ()$/,/^} # func_basename /c\
func_basename ()\
{\
\    func_basename_result="${1##*/}"\
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
func_dirname_and_basename ()\
{\
\    case ${1} in\
\      */*) func_dirname_result="${1%/*}${2}" ;;\
\      *  ) func_dirname_result="${3}" ;;\
\    esac\
\    func_basename_result="${1##*/}"\
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
func_stripname ()\
{\
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
\    # positional parameters, so assign one to ordinary parameter first.\
\    func_stripname_result=${3}\
\    func_stripname_result=${func_stripname_result#"${1}"}\
\    func_stripname_result=${func_stripname_result%"${2}"}\
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
func_split_long_opt ()\
{\
\    func_split_long_opt_name=${1%%=*}\
\    func_split_long_opt_arg=${1#*=}\
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
func_split_short_opt ()\
{\
\    func_split_short_opt_arg=${1#??}\
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
func_lo2o ()\
{\
\    case ${1} in\
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
\      *)    func_lo2o_result=${1} ;;\
\    esac\
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_xform ()$/,/^} # func_xform /c\
func_xform ()\
{\
    func_xform_result=${1%.*}.lo\
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_arith ()$/,/^} # func_arith /c\
func_arith ()\
{\
    func_arith_result=$(( $* ))\
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_len ()$/,/^} # func_len /c\
func_len ()\
{\
    func_len_result=${#1}\
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:

fi

if test x"$lt_shell_append" = xyes; then
  sed -e '/^func_append ()$/,/^} # func_append /c\
func_append ()\
{\
    eval "${1}+=\\${2}"\
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
func_append_quoted ()\
{\
\    func_quote_for_eval "${2}"\
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  # Save a `func_append' function call where possible by direct use of '+='
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
    && mv -f "$cfgfile.tmp" "$cfgfile" \
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  test 0 -eq $? || _lt_function_replace_fail=:
else
  # Save a `func_append' function call even when '+=' is not available
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
    && mv -f "$cfgfile.tmp" "$cfgfile" \
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  test 0 -eq $? || _lt_function_replace_fail=:
fi

if test x"$_lt_function_replace_fail" = x":"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
fi


a40479 4
# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX

d40483 1
a40483 1
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
d40487 1
a40487 1
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
d40489 1
a40489 1
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
@


1.1.1.10
log
@Import ntp 4.2.8p8
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p8.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p8'
PACKAGE_STRING='ntp 4.2.8p8'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p8 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p8:";;
d1927 1
a1927 1
ntp configure 4.2.8p8
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p8, which was
d3758 1
a3758 1
 VERSION='4.2.8p8'
a37253 1

a37311 2
ac_config_files="$ac_config_files scripts/build/genAuthors"

d38003 1
a38003 1
This file was extended by ntp $as_me 4.2.8p8, which was
d38070 1
a38070 1
ntp config.status 4.2.8p8
a38597 1
    "scripts/build/genAuthors") CONFIG_FILES="$CONFIG_FILES scripts/build/genAuthors" ;;
a40151 1
    "scripts/build/genAuthors":F) chmod +x scripts/build/genAuthors ;;
@


1.1.1.10.2.1
log
@Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p9.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p9'
PACKAGE_STRING='ntp 4.2.8p9'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p9 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p9:";;
d1927 1
a1927 1
ntp configure 4.2.8p9
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p9, which was
d3758 1
a3758 1
 VERSION='4.2.8p9'
d38006 1
a38006 1
This file was extended by ntp $as_me 4.2.8p9, which was
d38073 1
a38073 1
ntp config.status 4.2.8p9
@


1.1.1.10.2.2
log
@Sync with HEAD
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p10.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p10'
PACKAGE_STRING='ntp 4.2.8p10'
d726 1
a726 1
LT_SYS_LIBRARY_PATH
a834 3
NTP_HARD_LDFLAGS
NTP_HARD_CPPFLAGS
NTP_HARD_CFLAGS
d837 6
a954 1
with_aix_soname
d1075 3
d1080 1
a1080 1
LT_SYS_LIBRARY_PATH'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p10 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p10:";;
d1710 1
a1710 1
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
a1713 3
  --with-aix-soname=aix|svr4|both
                          shared library versioning (aka "SONAME") variant to
                          provide on AIX, [default=aix].
d1715 2
a1716 2
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
                          compiler's sysroot if not specified).
d1850 2
d1858 1
a1858 2
  LT_SYS_LIBRARY_PATH
              User-defined run-time library search path.
d1927 1
a1927 1
ntp configure 4.2.8p10
d2226 38
d2331 83
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p10, which was
d3758 1
a3758 1
 VERSION='4.2.8p10'
a4039 13

case "$build" in
 *-*-freebsd1?.*)
    cclist=cc
    ;;
 *)
    cclist="cc gcc"
    ;;
esac


#AC_USE_SYSTEM_EXTENSIONS

d4046 191
a4236 1
  for ac_prog in $cclist
d4280 1
a4280 1
  for ac_prog in $cclist
d4335 2
a5016 2


d5486 92
a5577 5
   case $ac_cv_prog_cc_stdc in #(
  no) :
    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
a5749 32
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
d5751 5
a5755 8
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
a5756 4
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d5758 18
a5775 16
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d5777 8
a5784 6
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
d5786 2
a5787 2
rm -f conftest.$ac_ext
CC=$ac_save_CC
d5790 5
a5794 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
d5796 2
a5797 1
  ac_cv_prog_cc_stdc=no
d5800 1
d5802 7
a5808 5
 ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  if ${ac_cv_prog_cc_stdc+:} false; then :
d5810 28
d5840 8
a5847 10
  case $ac_cv_prog_cc_stdc in #(
  no) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;; #(
  '') :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
d5849 32
d5882 10
d5894 32
d5927 22
a5949 2
# Ralf Wildenhues: With per-target flags we need CC_C_O
# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
d5951 10
a5960 4
if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
d5963 24
a5986 9
    ac_pattern="Autoconf.*'x'"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5988 2
a5989 1
  ac_cv_prog_gcc_traditional=no
a5990 1
rm -f conftest*
d5993 2
a5994 9
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5996 28
a6023 1
rm -f conftest*
a6024 1
  fi
d6026 8
a6033 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d6037 2
d6040 12
a6051 4
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d6053 1
d6056 4
d6061 9
a6069 8

case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
d6071 14
d6086 3
a6088 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d6097 4
a6100 1
#warning foo
d6106 1
a6106 1
  ntp_cv_cpp_warning=yes
d6108 1
a6108 2
  ntp_cv_cpp_warning=no

d6111 1
d6114 12
a6125 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
d6128 5
a6132 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6137 1
void foo(void) __attribute__((__noreturn__));
d6144 1
a6144 1
  ntp_cv_cc_attribute=yes
d6146 2
a6147 26
  ntp_cv_cc_attribute=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)

$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h

esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6158 6
  ntp_cv_gcc_Wstrict_overflow=yes
else
  ntp_cv_gcc_Wstrict_overflow=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6159 12
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
  $as_echo_n "(cached) " >&6
d6161 3
a6163 2

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6175 5
a6179 4
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

d6182 18
a6199 2


d6201 3
a6203 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
d6206 25
d6232 8
a6239 4
	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6241 4
a6244 2
			#include <stdlib.h>
			#include <stdio.h>
d6246 6
d6255 1
a6255 23

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


d6260 12
a6271 1
if ac_fn_c_try_link "$LINENO"; then :
d6273 15
a6287 6
		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d6289 458
a6746 2
else
  ntp_cv_gc_sections_runs=no
d6926 1
d7324 13
a7336 8

for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
d7339 144
a7482 2
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
d7491 1
a7491 1
    ac_cv_prog_YACC="$ac_prog"
d7501 4
a7504 4
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
d7511 28
a7538 1
  test -n "$YACC" && break
d7540 2
a7541 1
test -n "$YACC" || YACC="yacc"
d7543 6
a7548 4
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if ${ac_cv_prog_cc_c99+:} false; then :
  $as_echo_n "(cached) " >&6
d7550 3
a7552 9
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>
a7553 14
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}
d7555 2
a7556 13
// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;
d7558 12
a7569 5
struct incomplete_array
{
  int datasize;
  double data[];
};
d7571 26
a7596 5
struct named_init {
  int number;
  const wchar_t *name;
  double average;
};
d7598 7
a7604 1
typedef const char *ccp;
d7606 2
a7607 2
static inline int
test_restrict (ccp restrict text)
d7609 5
a7613 5
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
d7616 30
d7647 2
a7648 3
// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
a7649 4
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);
d7651 2
a7652 23
  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
d7654 7
d7666 5
a7670 2
  // Check bool.
  _Bool success = false;
d7672 5
a7676 4
  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";
d7678 3
a7680 26
  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);
d7686 6
a7691 5
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
d7693 2
a7694 6
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

d7696 16
a7711 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :

d7713 1
a7713 8



	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }


	ac_ext=c
d7719 1
d7721 24
a7744 2
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d7746 8
a7753 2
			struct foo_s {int i1; int i2;};
			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
d7755 16
a7770 7
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d7772 52
a7823 1
$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
d7825 4
a7829 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7831 4
a7834 5
	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7836 5
a7840 11




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
$as_echo_n "checking for compile/link hardening flags... " >&6; }


# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
d7842 2
a7843 2
  with_locfile=no

d7847 61
a7907 13
(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genHardFlags -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genHardFlags.i 2> genHardFlags.err
. ./genHardFlags.i
d7909 59
a7967 11
case "$GENHARDFLAG" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
$as_echo "in file $GENHARDFLAGFILE" >&6; }
    rm genHardFlags.err genHardFlags.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
    ;;
d7969 46
d8016 10
d8027 1
d8029 2
d8032 5
d8401 1
a8401 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d8403 1
a8403 1
	IFS=$lt_save_ifs
d8408 1
a8408 1
      IFS=$lt_save_ifs
d8431 2
a8432 2
macro_version='2.4.6'
macro_revision='2.4.6'
d8446 1
a8446 1
ltmain=$ac_aux_dir/ltmain.sh
d8495 1
a8495 1
case $ECHO in
d8688 1
a8688 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d8694 1
a8694 1
if test yes = "$GCC"; then
d8700 1
a8700 1
    # gcc leaves a trailing carriage return, which upsets mingw
d8714 1
a8714 1
      test -z "$LD" && LD=$ac_prog
d8725 1
a8725 1
elif test yes = "$with_gnu_ld"; then
d8736 1
a8736 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8738 1
a8738 1
    IFS=$lt_save_ifs
d8741 1
a8741 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d8747 1
a8747 1
	test no != "$with_gnu_ld" && break
d8750 1
a8750 1
	test yes != "$with_gnu_ld" && break
d8755 1
a8755 1
  IFS=$lt_save_ifs
d8757 1
a8757 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d8761 1
a8761 1
LD=$lt_cv_path_LD
d8804 1
a8804 1
  lt_cv_path_NM=$NM
d8806 1
a8806 1
  lt_nm_to_check=${ac_tool_prefix}nm
d8811 1
a8811 1
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8813 1
a8813 1
      IFS=$lt_save_ifs
d8815 2
a8816 2
      tmp_nm=$ac_dir/$lt_tmp_nm
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
d8818 1
a8818 1
	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
d8821 2
a8822 7
	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
	case $build_os in
	mingw*) lt_bad_file=conftest.nm/nofile ;;
	*) lt_bad_file=/dev/null ;;
	esac
	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
	*$lt_bad_file* | *'Invalid file or object type'*)
d8824 1
a8824 1
	  break 2
d8830 1
a8830 1
	    break 2
d8841 1
a8841 1
    IFS=$lt_save_ifs
d8848 2
a8849 2
if test no != "$lt_cv_path_NM"; then
  NM=$lt_cv_path_NM
d8955 1
a8955 1
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
d8957 1
a8957 1
      DUMPBIN="$DUMPBIN -symbols -headers"
d8965 2
a8966 2
  if test : != "$DUMPBIN"; then
    NM=$DUMPBIN
d9017 1
a9017 1
  teststring=ABCD
d9057 1
a9057 1
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a9075 5
  os2*)
    # The test takes a long time on OS/2.
    lt_cv_sys_max_cmd_len=8192
    ;;

d9102 1
a9102 2
    if test -n "$lt_cv_sys_max_cmd_len" && \
       test undefined != "$lt_cv_sys_max_cmd_len"; then
d9108 1
a9108 1
      for i in 1 2 3 4 5 6 7 8; do
d9115 1
a9115 1
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
d9117 1
a9117 1
	      test 17 != "$i" # 1/2 MB should be enough
d9135 1
a9135 1
if test -n "$lt_cv_sys_max_cmd_len"; then
d9153 24
d9299 1
a9299 1
    if test yes != "$GCC"; then
d9304 2
a9305 2
    if test yes = "$GCC"; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
d9433 1
a9433 1
# 'unknown' -- same as none, but documents that we really don't know.
d9437 3
a9439 3
# that responds to the $file_magic_cmd with a given extended regex.
# If you have 'file' or equivalent on your system and you're not sure
# whether 'pass_all' will *always* work, you probably want this one.
d9466 2
a9467 1
  if ( file / ) >/dev/null 2>&1; then
d9503 4
d9544 2
a9545 2
# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d9567 2
a9568 2
openbsd* | bitrig*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a9620 3
os2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9778 2
a9779 2
  # two different shell functions defined in ltmain.sh;
  # decide which one to use based on capabilities of $DLLTOOL
d9791 1
a9791 1
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
d9945 1
a9945 1
      if test 0 -eq "$ac_status"; then
d9953 1
a9953 1
	if test 0 -ne "$ac_status"; then
d9966 1
a9966 1
if test no = "$lt_cv_ar_at_file"; then
d10183 2
a10184 2
  bitrig* | openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
d10187 1
a10187 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
d10190 1
a10190 1
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d10273 1
a10273 1
  if test ia64 = "$host_cpu"; then
a10305 17
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  # Gets list of data symbols to import.
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  # Adjust the below global symbol transforms to fixup imported variables.
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
  lt_c_name_lib_hook="\
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
else
  # Disable hooks by default.
  lt_cv_sys_global_symbol_to_import=
  lt_cdecl_hook=
  lt_c_name_hook=
  lt_c_name_lib_hook=
fi

d10309 1
a10309 4
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
$lt_cdecl_hook\
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
d10312 2
a10313 12
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
$lt_c_name_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"

# Transform an extracted symbol line into symbol name with lib prefix and
# symbol address.
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
$lt_c_name_lib_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
d10331 2
a10332 2
    # Fake it for dumpbin and say T for any non-static function,
    # D for any global variable and I for any imported variable.
a10336 1
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
a10337 3
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
d10341 4
a10344 4
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
"     s[1]~/^[@@?]/{print f,s[1],s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print f,t[1],substr(t[1],length(prfx))}"\
d10392 2
a10393 2
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
/* DATA imports from DLLs on WIN32 can't be const, because runtime
d10396 1
a10396 1
#elif defined __osf__
d10422 1
a10422 1
	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
d10442 1
a10442 1
	  LIBS=conftstm.$ac_objext
d10448 1
a10448 1
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
d10469 1
a10469 1
  if test yes = "$pipe_works"; then
a10521 10










d10534 1
a10534 1
case $with_sysroot in #(
d10536 1
a10536 1
   if test yes = "$GCC"; then
d10546 2
a10547 2
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
$as_echo "$with_sysroot" >&6; }
a10558 80
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
$as_echo_n "checking for a working dd... " >&6; }
if ${ac_cv_path_lt_DD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
: ${lt_DD:=$DD}
if test -z "$lt_DD"; then
  ac_path_lt_DD_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in dd; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_lt_DD" || continue
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
fi
      $ac_path_lt_DD_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_lt_DD"; then
    :
  fi
else
  ac_cv_path_lt_DD=$lt_DD
fi

rm -f conftest.i conftest2.i conftest.out
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
$as_echo "$ac_cv_path_lt_DD" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
$as_echo_n "checking how to truncate binary pipes... " >&6; }
if ${lt_cv_truncate_bin+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
lt_cv_truncate_bin=
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
fi
rm -f conftest.i conftest2.i conftest.out
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
$as_echo "$lt_cv_truncate_bin" >&6; }







# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}

d10564 1
a10564 1
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
d10570 1
a10570 2
  # Find out what ABI is being produced by ac_compile, and set mode
  # options accordingly.
d10579 1
a10579 1
	HPUX_IA64_MODE=32
d10582 1
a10582 1
	HPUX_IA64_MODE=64
d10589 1
a10589 2
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10596 1
a10596 1
    if test yes = "$lt_cv_prog_gnu_ld"; then
d10625 1
a10625 37
mips64*-*linux*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    emul=elf
    case `/usr/bin/file conftest.$ac_objext` in
      *32-bit*)
	emul="${emul}32"
	;;
      *64-bit*)
	emul="${emul}64"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *MSB*)
	emul="${emul}btsmip"
	;;
      *LSB*)
	emul="${emul}ltsmip"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *N32*)
	emul="${emul}n32"
	;;
    esac
    LD="${LD-ld} -m $emul"
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
d10627 1
a10627 6
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.  Note that the listed cases only cover the
  # situations where additional linker options are needed (such as when
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  # vice versa); the common cases where no linker options are needed do
  # not appear in the list.
d10641 1
a10641 11
	    case `/usr/bin/file conftest.o` in
	      *x86-64*)
		LD="${LD-ld} -m elf32_x86_64"
		;;
	      *)
		LD="${LD-ld} -m elf_i386"
		;;
	    esac
	    ;;
	  powerpc64le-*linux*)
	    LD="${LD-ld} -m elf32lppclinux"
d10643 1
a10643 1
	  powerpc64-*linux*)
d10662 1
a10662 4
	  powerpcle-*linux*)
	    LD="${LD-ld} -m elf64lppc"
	    ;;
	  powerpc-*linux*)
d10680 1
a10680 1
  SAVE_CFLAGS=$CFLAGS
d10720 1
a10720 1
  if test yes != "$lt_cv_cc_needs_belf"; then
d10722 1
a10722 1
    CFLAGS=$SAVE_CFLAGS
d10725 2
a10726 3
*-*solaris*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10736 1
a10736 14
      yes*)
        case $host in
        i?86-*-solaris*|x86_64-*-solaris*)
          LD="${LD-ld} -m elf_x86_64"
          ;;
        sparc*-*-solaris*)
          LD="${LD-ld} -m elf64_sparc"
          ;;
        esac
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
          LD=${LD-ld}_sol2
        fi
        ;;
d10750 1
a10750 1
need_locks=$enable_libtool_lock
d10861 1
a10861 1
if test yes != "$lt_cv_path_mainfest_tool"; then
d11364 1
a11364 1
      if test -z "$LT_MULTI_MODULE"; then
d11376 1
a11376 7
	# If there is a non-empty error log, and "single_module"
	# appears in it, assume the flag caused a linker warning
        if test -s conftest.err && $GREP single_module conftest.err; then
	  cat conftest.err >&5
	# Otherwise, if the output was created with a 0 exit code from
	# the compiler, it worked.
	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a11386 1

d11414 1
a11414 1
	LDFLAGS=$save_LDFLAGS
a11418 1

d11440 1
a11440 3
      if test -s conftest.err && $GREP force_load conftest.err; then
	cat conftest.err >&5
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
d11453 1
a11453 1
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
d11455 1
a11455 1
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11462 3
a11464 3
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
	10.[012][,.]*)
	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11466 1
a11466 1
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
d11470 1
a11470 1
    if test yes = "$lt_cv_apple_cc_single_mod"; then
d11473 2
a11474 2
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
d11476 1
a11476 1
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
d11478 1
a11478 1
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a11485 35
# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}

d11502 11
d11534 1
a11534 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11536 1
a11536 1
	IFS=$lt_save_ifs
d11541 1
a11541 1
      IFS=$lt_save_ifs
d11559 1
a11559 16
  withval=$with_pic; lt_p=${PACKAGE-default}
    case $withval in
    yes|no) pic_mode=$withval ;;
    *)
      pic_mode=default
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
      for lt_pkg in $withval; do
	IFS=$lt_save_ifs
	if test "X$lt_pkg" = "X$lt_p"; then
	  pic_mode=yes
	fi
      done
      IFS=$lt_save_ifs
      ;;
    esac
d11565 2
d11582 1
a11582 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11584 1
a11584 1
	IFS=$lt_save_ifs
d11589 1
a11589 1
      IFS=$lt_save_ifs
a11602 52
  shared_archive_member_spec=
case $host,$enable_shared in
power*-*-aix[5-9]*,yes)
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }

# Check whether --with-aix-soname was given.
if test "${with_aix_soname+set}" = set; then :
  withval=$with_aix_soname; case $withval in
    aix|svr4|both)
      ;;
    *)
      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
      ;;
    esac
    lt_cv_with_aix_soname=$with_aix_soname
else
  if ${lt_cv_with_aix_soname+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_with_aix_soname=aix
fi

    with_aix_soname=$lt_cv_with_aix_soname
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
$as_echo "$with_aix_soname" >&6; }
  if test aix != "$with_aix_soname"; then
    # For the AIX way of multilib, we name the shared archive member
    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
    # the AIX toolchain works better with OBJECT_MODE set (default 32).
    if test 64 = "${OBJECT_MODE-32}"; then
      shared_archive_member_spec=shr_64
    else
      shared_archive_member_spec=shr
    fi
  fi
  ;;
*)
  with_aix_soname=aix
  ;;
esac







d11607 1
a11607 1
LIBTOOL_DEPS=$ltmain
a11636 4




d11652 1
a11652 1
if test -n "${ZSH_VERSION+set}"; then
d11691 1
a11691 1
  if test set != "${COLLECT_NAMES+set}"; then
d11702 1
a11702 1
# All known linkers require a '.a' archive for static linking (except MSVC,
d11706 1
a11706 1
with_gnu_ld=$lt_cv_prog_gnu_ld
d11708 2
a11709 2
old_CC=$CC
old_CFLAGS=$CFLAGS
d11718 9
a11726 2
func_cc_basename $compiler
cc_basename=$func_cc_basename_result
d11741 1
a11741 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11744 2
a11745 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11748 1
a11748 1
    IFS=$lt_save_ifs
d11750 2
a11751 2
    if test -f "$ac_dir/${ac_tool_prefix}file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
d11756 1
a11756 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11779 2
a11780 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11785 1
a11785 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11807 1
a11807 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11810 2
a11811 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11814 1
a11814 1
    IFS=$lt_save_ifs
d11816 2
a11817 2
    if test -f "$ac_dir/file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
d11822 1
a11822 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11845 2
a11846 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11851 1
a11851 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11872 1
a11872 1
lt_save_CC=$CC
d11934 1
a11934 1
if test yes = "$GCC"; then
d11950 1
a11950 1
   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
d11980 1
a11980 1
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
d11998 1
a11998 1
  if test yes = "$GCC"; then
d12005 1
a12005 1
      if test ia64 = "$host_cpu"; then
a12008 1
      lt_prog_compiler_pic='-fPIC'
d12019 2
a12020 2
            # adding the '-m68020' flag to GCC prevents building anything better,
            # like '-m68040'.
a12035 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12096 1
a12096 3
      if test -n "$lt_prog_compiler_pic"; then
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
      fi
d12104 1
a12104 1
      if test ia64 = "$host_cpu"; then
a12111 14
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      case $cc_basename in
      nagfor*)
        # NAG Fortran compiler
        lt_prog_compiler_wl='-Wl,-Wl,,'
        lt_prog_compiler_pic='-PIC'
        lt_prog_compiler_static='-Bstatic'
        ;;
      esac
      ;;

a12115 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12131 1
a12131 1
      lt_prog_compiler_static='$wl-a ${wl}archive'
d12140 1
a12140 1
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d12142 1
a12142 1
      # old Intel for x86_64, which still supported -KPIC.
a12166 6
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
	;;
d12187 1
a12187 1
	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
a12192 5
	*Sun\ F* | *Sun*Fortran*)
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Qoption ld '
	  ;;
a12198 10
        *Intel*\ [CF]*Compiler*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fPIC'
	  lt_prog_compiler_static='-static'
	  ;;
	*Portland\ Group*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fpic'
	  lt_prog_compiler_static='-Bstatic'
	  ;;
d12249 1
a12249 1
      if test -d /usr/nec; then
d12278 1
a12278 1
  # For platforms that do not support PIC, -DPIC is meaningless:
d12310 1
a12310 1
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
d12340 1
a12340 1
if test yes = "$lt_cv_prog_compiler_pic_works"; then
d12372 1
a12372 1
   save_LDFLAGS=$LDFLAGS
d12391 1
a12391 1
   LDFLAGS=$save_LDFLAGS
d12397 1
a12397 1
if test yes = "$lt_cv_prog_compiler_static_works"; then
d12517 2
a12518 2
hard_links=nottested
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
d12530 3
a12532 3
  if test no = "$hard_links"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
d12560 1
d12576 3
a12578 3
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  # as well as any symbol that contains 'd'.
d12593 1
a12593 1
    if test yes != "$GCC"; then
d12601 1
a12601 1
  openbsd* | bitrig*)
d12611 1
a12611 1
  if test yes = "$with_gnu_ld"; then
d12633 1
a12633 1
  if test yes = "$lt_use_gnu_ld_interface"; then
d12635 1
a12635 1
    wlarc='$wl'
d12641 2
a12642 2
    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
    export_dynamic_flag_spec='$wl--export-dynamic'
d12645 1
a12645 1
      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
d12650 1
a12650 1
    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
d12663 1
a12663 1
      if test ia64 != "$host_cpu"; then
d12682 1
a12682 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12698 1
a12698 1
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12708 1
a12708 1
      export_dynamic_flag_spec='$wl--export-all-symbols'
d12716 10
a12725 10
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file, use it as
	# is; otherwise, prepend EXPORTS...
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
          cp $export_symbols $output_objdir/$soname.def;
        else
          echo EXPORTS > $output_objdir/$soname.def;
          cat $export_symbols >> $output_objdir/$soname.def;
        fi~
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d12732 1
a12732 1
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a12735 28
    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
      ;;

d12739 2
a12740 2
      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
      export_dynamic_flag_spec='$wl-E'
d12747 2
a12748 2
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d12753 1
a12753 1
      if test linux-dietlibc = "$host_os"; then
d12759 1
a12759 1
	 && test no = "$tmp_diet"
d12765 1
a12765 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12770 1
a12770 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
a12780 2
        nagfor*)                        # NAGFOR 5.3
          tmp_sharedflag='-Wl,-shared' ;;
d12785 1
a12785 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12791 1
a12791 1
	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12797 1
a12797 1
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12799 1
a12799 1
        if test yes = "$supports_anon_versioning"; then
d12801 3
a12803 3
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
            echo "local: *; };" >> $output_objdir/$libname.ver~
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a12806 3
	tcc*)
	  export_dynamic_flag_spec='-rdynamic'
	  ;;
d12810 2
a12811 1
	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d12813 1
a12813 1
	  if test yes = "$supports_anon_versioning"; then
d12815 3
a12817 3
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
              echo "local: *; };" >> $output_objdir/$libname.ver~
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
d12831 2
a12832 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12850 2
a12851 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12863 1
a12863 1
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
d12878 3
a12880 3
	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12897 2
a12898 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12905 1
a12905 1
    if test no = "$ld_shlibs"; then
d12921 1
a12921 1
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
d12929 1
a12929 1
      if test ia64 = "$host_cpu"; then
d12934 1
a12934 1
	no_entry_flag=
d12937 3
a12939 7
	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
	# Without the "-l" option, or with the "-B" option, AIX nm treats
	# weak defined symbols like other global defined symbols, whereas
	# GNU nm marks them as "W".
	# While the 'weak' keyword is ignored in the Export File, we need
	# it in the Import File for the 'aix-soname' feature, so we have
	# to replace the "-B" option with "-P" for AIX nm.
d12941 1
a12941 1
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
d12943 1
a12943 1
	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
d12949 1
a12949 13
	# have runtime linking enabled, and use it for executables.
	# For shared libraries, we enable/disable runtime linking
	# depending on the kind of the shared library created -
	# when "with_aix_soname,aix_use_runtimelinking" is:
	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
	# "aix,yes"  lib.so          shared, rtl:yes, for executables
	#            lib.a           static archive
	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
	#            lib.a(lib.so.V) shared, rtl:no,  for executables
	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a(lib.so.V) shared, rtl:no
	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a           static archive
d12952 1
a12952 1
	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a12956 7
	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
	    # so we don't have lib.a shared libs to link our executables.
	    # We have to force runtime linking in this case.
	    aix_use_runtimelinking=yes
	    LDFLAGS="$LDFLAGS -Wl,-brtl"
	  fi
d12975 1
a12975 9
      file_list_spec='$wl-f,'
      case $with_aix_soname,$aix_use_runtimelinking in
      aix,*) ;; # traditional, no import file
      svr4,* | *,yes) # use import file
	# The Import File defines what to hardcode.
	hardcode_direct=no
	hardcode_direct_absolute=no
	;;
      esac
d12977 1
a12977 1
      if test yes = "$GCC"; then
d12981 1
a12981 1
	  collect2name=`$CC -print-prog-name=collect2`
d13000 2
a13001 2
	if test yes = "$aix_use_runtimelinking"; then
	  shared_flag="$shared_flag "'$wl-G'
a13002 5
	# Need to ensure runtime linking is disabled for the traditional
	# shared library, or the linker may eventually find shared libraries
	# /with/ Import File - we do not want to mix them.
	shared_flag_aix='-shared'
	shared_flag_svr4='-shared $wl-G'
d13005 1
a13005 1
	if test ia64 = "$host_cpu"; then
d13010 2
a13011 2
	  if test yes = "$aix_use_runtimelinking"; then
	    shared_flag='$wl-G'
d13013 1
a13013 1
	    shared_flag='$wl-bM:SRE'
a13014 2
	  shared_flag_aix='$wl-bM:SRE'
	  shared_flag_svr4='$wl-G'
d13018 1
a13018 1
      export_dynamic_flag_spec='$wl-bexpall'
d13022 1
a13022 1
      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
d13028 1
a13028 1
        if test set = "${lt_cv_aix_libpath+set}"; then
d13063 1
a13063 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13071 2
a13072 2
        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
d13074 2
a13075 2
	if test ia64 = "$host_cpu"; then
	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
d13077 1
a13077 1
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
d13081 1
a13081 1
	 if test set = "${lt_cv_aix_libpath+set}"; then
d13116 1
a13116 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13124 1
a13124 1
	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
d13127 3
a13129 3
	  no_undefined_flag=' $wl-bernotok'
	  allow_undefined_flag=' $wl-berok'
	  if test yes = "$with_gnu_ld"; then
d13131 1
a13131 1
	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
d13137 2
a13138 14
	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
	  # -brtl affects multiple linker settings, -berok does not and is overridden later
	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
	  if test svr4 != "$with_aix_soname"; then
	    # This is similar to how AIX traditionally builds its shared libraries.
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
	  fi
	  if test aix != "$with_aix_soname"; then
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
	  else
	    # used by -dlpreopen to get the symbols
	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
	  fi
	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
d13147 1
a13147 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d13177 1
a13177 1
	shrext_cmds=.dll
d13179 8
a13186 9
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
            cp "$export_symbols" "$output_objdir/$soname.def";
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
          else
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
          fi~
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
          linknames='
a13189 1
	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
d13194 12
a13205 12
          lt_tool_outputfile="@@TOOL_OUTPUT@@"~
          case $lt_outputfile in
            *.exe|*.EXE) ;;
            *)
              lt_outputfile=$lt_outputfile.exe
              lt_tool_outputfile=$lt_tool_outputfile.exe
              ;;
          esac~
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
            $RM "$lt_outputfile.manifest";
          fi'
d13214 1
a13214 1
	shrext_cmds=.dll
d13233 2
a13234 3
  if test yes = "$lt_cv_ld_force_load"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'

d13239 1
a13239 1
  allow_undefined_flag=$_lt_dar_allow_undefined
d13241 1
a13241 1
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
d13244 1
a13244 1
  if test yes = "$_lt_dar_can_shared"; then
d13246 4
a13249 4
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
d13263 4
d13279 1
a13279 1
    freebsd2.*)
d13295 2
a13296 2
      if test yes = "$GCC"; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13298 1
a13298 1
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13300 1
a13300 1
      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13307 1
a13307 1
      export_dynamic_flag_spec='$wl-E'
d13311 2
a13312 2
      if test yes,no = "$GCC,$with_gnu_ld"; then
	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13316 3
a13318 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13322 1
a13322 1
	export_dynamic_flag_spec='$wl-E'
d13330 1
a13330 1
      if test yes,no = "$GCC,$with_gnu_ld"; then
d13333 1
a13333 1
	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13336 1
a13336 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13339 1
a13339 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13345 1
a13345 1
	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13348 1
a13348 1
	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13360 1
a13360 1
   save_LDFLAGS=$LDFLAGS
d13379 1
a13379 1
   LDFLAGS=$save_LDFLAGS
d13385 2
a13386 2
if test yes = "$lt_cv_prog_compiler__b"; then
    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13394 2
a13395 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13406 1
a13406 1
	  export_dynamic_flag_spec='$wl-E'
d13417 2
a13418 2
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13428 2
a13429 2
  save_LDFLAGS=$LDFLAGS
	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
d13441 1
a13441 1
           LDFLAGS=$save_LDFLAGS
d13445 2
a13446 2
	if test yes = "$lt_cv_irix_exported_symbol"; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
d13449 2
a13450 2
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
d13453 1
a13453 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a13458 10
    linux*)
      case $cc_basename in
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	ld_shlibs=yes
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	;;
      esac
      ;;

d13473 1
a13473 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13481 1
a13481 1
    openbsd* | bitrig*)
d13486 1
a13486 1
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
d13488 3
a13490 3
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
	  export_dynamic_flag_spec='$wl-E'
d13492 10
a13501 2
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
d13512 2
a13513 22
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
d13517 3
a13519 3
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13522 1
a13522 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13525 1
a13525 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13530 4
a13533 4
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13536 1
a13536 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13538 1
a13538 1
          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
d13549 3
a13551 3
      if test yes = "$GCC"; then
	wlarc='$wl'
	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13553 1
a13553 1
          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13558 1
a13558 1
	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
d13560 1
a13560 1
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
d13563 2
a13564 2
	  wlarc='$wl'
	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13566 1
a13566 1
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13576 1
a13576 1
	# but understands '-z linker_flag'.  GCC discards it without '$wl',
d13579 2
a13580 2
	if test yes = "$GCC"; then
	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
d13590 1
a13590 1
      if test sequent = "$host_vendor"; then
d13593 1
a13593 1
	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13642 1
a13642 1
      no_undefined_flag='$wl-z,text'
d13647 3
a13649 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13651 2
a13652 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13657 1
a13657 1
      # Note: We CANNOT use -z defs as we might desire, because we do not
d13663 2
a13664 2
      no_undefined_flag='$wl-z,text'
      allow_undefined_flag='$wl-z,nodefs'
d13667 1
a13667 1
      hardcode_libdir_flag_spec='$wl-R,$libdir'
d13670 1
a13670 1
      export_dynamic_flag_spec='$wl-Bexport'
d13673 3
a13675 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13677 2
a13678 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13693 1
a13693 1
    if test sni = "$host_vendor"; then
d13696 1
a13696 1
	export_dynamic_flag_spec='$wl-Blargedynsym'
d13704 1
a13704 1
test no = "$ld_shlibs" && can_build_shared=no
d13730 1
a13730 1
  if test yes,yes = "$GCC,$enable_shared"; then
d13942 5
d13950 1
a13950 1
if test yes = "$GCC"; then
d13952 2
a13953 2
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
    *) lt_awk_arg='/^libraries:/' ;;
d13956 2
a13957 2
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
    *) lt_sed_strip_eq='s|=/|/|g' ;;
d13973 1
a13973 1
  # and add multilib dir if necessary...
d13975 1
a13975 8
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  # ...but if some path component already ends with the multilib dir we assume
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  case "$lt_multi_os_dir; $lt_search_path_spec " in
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
    lt_multi_os_dir=
    ;;
  esac
d13977 3
a13979 3
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
    elif test -n "$lt_multi_os_dir"; then
d13985 3
a13987 3
BEGIN {RS = " "; FS = "/|\n";} {
  lt_foo = "";
  lt_count = 0;
d13994 1
a13994 1
          lt_foo = "/" $lt_i lt_foo;
d14008 1
a14008 1
      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
d14017 1
a14017 1
shrext_cmds=.so
a14033 2


d14036 2
a14037 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
d14041 1
a14041 1
  soname_spec='$libname$release$shared_ext$major'
d14045 1
a14045 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14049 1
a14049 1
  if test ia64 = "$host_cpu"; then
d14051 1
a14051 1
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
d14056 2
a14057 2
    # the line '#! .'.  This would cause the generated library to
    # depend on '.', always an invalid library.  This was fixed in
d14063 1
a14063 1
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
d14070 1
a14070 24
    # Using Import Files as archive members, it is possible to support
    # filename-based versioning of shared library archives on AIX. While
    # this would work for both with and without runtime linking, it will
    # prevent static linking of such archives. So we do filename-based
    # shared library versioning with .so extension only, which is used
    # when both runtime linking and shared linking is enabled.
    # Unfortunately, runtime linking may impact performance, so we do
    # not want this to be the default eventually. Also, we use the
    # versioned .so libs for executables only if there is the -brtl
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
    # To allow for filename-based versioning support, we need to create
    # libNAME.so.V as an archive file, containing:
    # *) an Import File, referring to the versioned filename of the
    #    archive as well as the shared archive member, telling the
    #    bitwidth (32 or 64) of that shared object, and providing the
    #    list of exported symbols of that shared object, eventually
    #    decorated with the 'weak' keyword
    # *) the shared object with the F_LOADONLY flag set, to really avoid
    #    it being seen by the linker.
    # At run time we better use the real file rather than another symlink,
    # but for link time we create the symlink libNAME.so -> libNAME.so.V

    case $with_aix_soname,$aix_use_runtimelinking in
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
d14073 1
a14073 2
    aix,yes) # traditional libtool
      dynamic_linker='AIX unversionable lib.so'
d14077 2
a14078 4
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      ;;
    aix,no) # traditional AIX only
      dynamic_linker='AIX lib.a(lib.so.V)'
d14081 3
a14083 27
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      ;;
    svr4,*) # full svr4 only
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,yes) # both, prefer svr4
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # unpreferred sharedlib libNAME.a needs extra handling
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,no) # both, prefer aix
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
      ;;
    esac
d14093 1
a14093 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14098 1
a14098 1
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d14104 1
a14104 1
  library_names_spec='$libname$shared_ext'
d14110 1
a14110 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14112 2
a14113 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14125 1
a14125 1
  shrext_cmds=.dll
d14134 2
a14135 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14151 1
a14151 1
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14157 1
a14157 1
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14161 1
a14161 1
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14170 2
a14171 2
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
    library_names_spec='$libname.dll.lib'
d14198 1
a14198 1
      sys_lib_search_path_spec=$LIB
d14211 2
a14212 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14225 1
a14225 1
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
d14238 2
a14239 2
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$major$shared_ext'
d14249 1
a14249 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14252 2
a14253 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14257 4
d14268 1
a14268 1
    freebsd[23].*) objformat=aout ;;
d14275 1
a14275 2
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      soname_spec='$libname$release$shared_ext$major'
d14280 1
a14280 1
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14286 1
a14286 1
  freebsd2.*)
d14305 10
d14316 1
a14316 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14320 2
a14321 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14323 1
a14323 1
  shlibpath_overrides_runpath=no
d14341 3
a14343 3
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
    if test 32 = "$HPUX_IA64_MODE"; then
a14344 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a14346 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
d14348 1
d14356 2
a14357 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14366 2
a14367 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14377 1
a14377 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14380 2
a14381 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14392 2
a14393 2
	if test yes = "$lt_cv_prog_gnu_ld"; then
		version_type=linux # correct to gnu/linux during the next big refactor
d14400 2
a14401 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
d14420 2
a14421 2
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
d14430 3
a14432 23
linux*android*)
  version_type=none # Android doesn't support versioned libraries.
  need_lib_prefix=no
  need_version=no
  library_names_spec='$libname$release$shared_ext'
  soname_spec='$libname$release$shared_ext'
  finish_cmds=
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  dynamic_linker='Android linker'
  # Don't embed -rpath directories since the linker doesn't support them.
  hardcode_libdir_flag_spec='-L$libdir'
  ;;

# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  version_type=linux # correct to gnu/linux during the next big refactor
d14435 2
a14436 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14480 1
a14480 6
  # Ideally, we could use ldconfig to report *all* directores which are
  # searched for libraries, however this is still not possible.  Aside from not
  # being certain /sbin/ldconfig is available, command
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  # even though it is searched at run-time.  Try to do the best guess by
  # appending ld.so.conf contents (and includes) to the search path.
d14500 1
a14500 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14504 2
a14505 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14514 2
a14515 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14524 2
a14525 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14532 1
a14532 1
openbsd* | bitrig*)
d14534 1
a14534 1
  sys_lib_dlsearch_path_spec=/usr/lib
d14536 17
a14552 2
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
    need_version=no
d14554 1
a14554 1
    need_version=yes
a14555 4
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
d14560 1
a14560 3
  version_type=windows
  shrext_cmds=.dll
  need_version=no
d14562 1
a14562 6
  # OS/2 can only load a DLL with a base name of 8 characters or less.
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
    v=$($ECHO $release$versuffix | tr -d .-);
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
    $ECHO $n$v`$shared_ext'
  library_names_spec='${libname}_dll.$libext'
d14564 1
a14564 15
  shlibpath_var=BEGINLIBPATH
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  postinstall_cmds='base_file=`basename \$file`~
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
    dldir=$destdir/`dirname \$dlpath`~
    test -d \$dldir || mkdir -p \$dldir~
    $install_prog $dir/$dlname \$dldir/$dlname~
    chmod a+x \$dldir/$dlname~
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
    fi'
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
    dlpath=$dir/\$dldll~
    $RM \$dlpath'
d14571 2
a14572 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14575 1
a14575 1
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d14583 1
a14583 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14586 2
a14587 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14597 1
a14597 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14601 1
a14601 1
  if test yes = "$with_gnu_ld"; then
d14608 3
a14610 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14631 4
a14634 4
  if test -d /usr/nec; then
    version_type=linux # correct to gnu/linux during the next big refactor
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
    soname_spec='$libname$shared_ext.$major'
d14640 1
a14640 1
  version_type=sco
d14643 2
a14644 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14648 1
a14648 1
  if test yes = "$with_gnu_ld"; then
d14663 1
a14663 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14666 1
a14666 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14673 3
a14675 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14685 1
a14685 1
test no = "$dynamic_linker" && can_build_shared=no
d14688 1
a14688 1
if test yes = "$GCC"; then
d14692 2
a14693 2
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
d14695 2
a14696 3

if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a14698 14
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec

# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"

# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH






d14795 1
a14795 1
   test yes = "$hardcode_automatic"; then
d14798 1
a14798 1
  if test no != "$hardcode_direct" &&
d14802 2
a14803 2
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
     test no != "$hardcode_minus_L"; then
d14818 2
a14819 2
if test relink = "$hardcode_action" ||
   test yes = "$inherit_rpath"; then
d14822 2
a14823 2
elif test yes = "$shlibpath_overrides_runpath" ||
     test no = "$enable_shared"; then
d14833 1
a14833 1
  if test yes != "$enable_dlopen"; then
d14843 1
a14843 1
    lt_cv_dlopen=load_add_on
d14849 1
a14849 1
    lt_cv_dlopen=LoadLibrary
d14854 1
a14854 1
    lt_cv_dlopen=dlopen
d14859 1
a14859 1
    # if libdl is installed we need to link against it
d14897 1
a14897 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d14900 1
a14900 1
    lt_cv_dlopen=dyld
a14907 8
  tpf*)
    # Don't try to run any link tests for TPF.  We know it's impossible
    # because TPF is a cross-compiler, and we know how we open DSOs.
    lt_cv_dlopen=dlopen
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=no
    ;;

d14911 1
a14911 1
  lt_cv_dlopen=shl_load
d14950 1
a14950 1
  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
d14954 1
a14954 1
  lt_cv_dlopen=dlopen
d14993 1
a14993 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d15032 1
a15032 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
d15071 1
a15071 1
  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
d15092 3
a15094 1
  if test no = "$lt_cv_dlopen"; then
a15095 2
  else
    enable_dlopen=yes
d15100 2
a15101 2
    save_CPPFLAGS=$CPPFLAGS
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d15103 1
a15103 1
    save_LDFLAGS=$LDFLAGS
d15106 1
a15106 1
    save_LIBS=$LIBS
d15109 3301
a18409 13
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"
d18411 3
a18413 3
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d18415 12
a18426 1
#include <stdio.h>
d18428 11
a18438 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
d18440 22
a18461 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
d18463 8
a18470 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
d18472 11
a18482 16
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
d18484 5
a18488 16
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
a18489 3
  else :
    # compilation failed
    lt_cv_dlopen_self=no
d18491 20
a18510 2
fi
rm -fr conftest*
d18512 7
d18520 3
a18523 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }
d18525 6
a18530 19
    if test yes = "$lt_cv_dlopen_self"; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
a18531 1
#include <stdio.h>
a18532 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
a18533 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
a18534 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
a18535 5
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
a18536 12
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());
a18537 21
  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*
a18539 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi
a18540 5
    CPPFLAGS=$save_CPPFLAGS
    LDFLAGS=$save_LDFLAGS
    LIBS=$save_LIBS
    ;;
  esac
a18541 4
  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac
a18542 5
  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi
a18559 29
striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP"; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi
d18569 6
d18576 20
d18597 9
a18606 5
  # Report what library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }
a18607 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test no = "$can_build_shared" && enable_shared=no
a18608 10
  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test yes = "$enable_shared" && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;
a18609 12
  aix[4-9]*)
    if test ia64 != "$host_cpu"; then
      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
      yes,aix,yes) ;;			# shared object as lib.so file only
      yes,svr4,*) ;;			# shared object as lib.so archive member only
      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
      esac
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }
a18610 6
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test yes = "$enable_shared" || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }
d18613 1
d18615 11
a18626 1
fi
a18632 4
CC=$lt_save_CC



d20866 1
a20866 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d20872 1
a20872 1
if test yes = "$GCC"; then
d20878 1
a20878 1
    # gcc leaves a trailing carriage return, which upsets mingw
d20892 1
a20892 1
      test -z "$LD" && LD=$ac_prog
d20903 1
a20903 1
elif test yes = "$with_gnu_ld"; then
d20914 1
a20914 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d20916 1
a20916 1
    IFS=$lt_save_ifs
d20919 1
a20919 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d20925 1
a20925 1
	test no != "$with_gnu_ld" && break
d20928 1
a20928 1
	test yes != "$with_gnu_ld" && break
d20933 1
a20933 1
  IFS=$lt_save_ifs
d20935 1
a20935 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d20939 1
a20939 1
LD=$lt_cv_path_LD
d28062 4
a28088 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }
d29229 2
a29279 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
a34166 1

a34168 1

a34173 2


d34184 1
a34184 1
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
a34558 1

d37532 4
d37537 4
d38006 1
a38006 1
This file was extended by ntp $as_me 4.2.8p10, which was
d38073 1
a38073 1
ntp config.status 4.2.8p10
a38207 1
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
a38209 1
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
a38255 1
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
a38257 1
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
a38259 1
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
d38292 1
d38325 1
a38325 2
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
d38332 55
a38402 1
PATH_SEPARATOR \
a38429 1
lt_cv_sys_global_symbol_to_import \
a38431 1
lt_cv_nm_interface \
a38432 1
lt_cv_truncate_bin \
d38453 1
d38465 33
a38497 1
striplib; do
d38500 1
a38500 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38527 12
a38538 2
configure_time_dlsearch_path \
configure_time_lt_sys_library_path; do
d38541 1
a38541 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38550 2
d38553 1
a38553 1
# See if we are running on zsh, and set the options that allow our
d38555 1
a38555 1
if test -n "\${ZSH_VERSION+set}"; then
d38562 1
d38569 2
d39354 1
a39354 1
    # See if we are running on zsh, and set the options that allow our
d39356 1
a39356 1
    if test -n "${ZSH_VERSION+set}"; then
d39360 1
a39360 1
    cfgfile=${ofile}T
d39366 3
a39368 1
# Generated automatically by $as_me ($PACKAGE) $VERSION
a39370 12

# Provide generalized library-building support services.
# Written by Gordon Matzigkeit, 1996

# Copyright (C) 2014 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions.  There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# GNU Libtool is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of of the License, or
# (at your option) any later version.
d39372 16
a39387 4
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program or library that is built
# using GNU Libtool, you may include this file under the  same
# distribution terms that you use for the rest of that program.
d39389 2
a39390 2
# GNU Libtool is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
d39395 4
a39398 1
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
d39402 1
a39402 4
available_tags=''

# Configured defaults for sys_lib_dlsearch_path munging.
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
a39421 3
# Shared archive member basename,for filename based shared library versioning on AIX.
shared_archive_member_spec=$shared_archive_member_spec

a39427 3
# The PATH separator for the build system.
PATH_SEPARATOR=$lt_PATH_SEPARATOR

a39535 3
# Transform the output of nm into a list of symbols to manually relocate.
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import

a39541 3
# The name lister interface.
nm_interface=$lt_lt_cv_nm_interface

d39545 1
a39545 1
# The root where to search for dependent libraries,and where our libraries should be installed.
a39547 3
# Command to truncate a binary pipe.
lt_truncate_bin=$lt_lt_cv_truncate_bin

d39638 2
a39639 5
# Detected run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path

# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
d39729 4
d39736 1
a39736 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39740 1
a39740 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39742 1
a39742 1
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
d39790 2
a39791 1
# ### END LIBTOOL CONFIG
d39793 10
a39802 40
_LT_EOF

    cat <<'_LT_EOF' >> "$cfgfile"

# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE

# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}
d39804 1
a39804 17

# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}


# ### END FUNCTIONS SHARED WITH CONFIGURE
d39814 1
a39814 1
if test set != "${COLLECT_NAMES+set}"; then
d39823 1
a39823 1
ltmain=$ac_aux_dir/ltmain.sh
d39833 159
d39996 157
@


1.1.1.11
log
@(4.2.8p9) 2016/11/21 Released by Harlan Stenn <stenn@@ntp.org>

* [Sec 3119] Trap crash <perlinger@@ntp.org>
* [Sec 3118] Mode 6 information disclosure and DDoS vector <perlinger@@ntp.org>
  - TRAP config via mode 6 packet requires AUTH now.
* [Sec 3114] Broadcast Mode Replay Prevention DoS
  - applied patches by Matthew Van Gundy. <perlinger@@ntp.org>
  - with bcpollbstep, tweaks and cleanup by stenn@@ntp.org
* [Sec 3113] Broadcast Mode Poll Interval Enforcement DoS <perlinger@@ntp.org>
  - applied fix as suggested by Matthew Van Gundy
* [Sec 3110] Windows: ntpd DoS by oversized UDP packet
  - fixed error handling for truncated UDP packets. <perlinger@@ntp.org>
* [Sec 3102] Zero origin issues.  HStenn.
* [Sec 3082] null pointer dereference in _IO_str_init_static_internal()
  - more hardening to read_mru_list(). perlinger@@ntp.org
* [Sec 3072] Attack on interface selection <perlinger@@ntp.org>
  - implemented Miroslav Lichvars <mlichvar@@redhat.com> suggestion
    to skip interface updates based on incoming packets
* [Bug 3142] bug in netmask prefix length detection <perlinger@@ntp.org>
* [Bug 3138] gpsdjson refclock should honor fudgetime1. stenn@@ntp.org
* [Bug 3129] Unknown hosts can put resolver thread into a hard loop
  - moved retry decision where it belongs. <perlinger@@ntp.org>
* [Bug 3125] NTPD doesn't fully start when ntp.conf entries are out of order
  using the loopback-ppsapi-provider.dll <perlinger@@ntp.org>
* [Bug 3116] unit tests for NTP time stamp expansion. <perlinger@@ntp.org>
* [Bug 3100] ntpq can't retrieve daemon_version <perlinger@@ntp.org>
  - fixed extended sysvar lookup (bug introduced with bug 3008 fix)
* [Bug 3095] Compatibility with openssl 1.1 <perlinger@@ntp.org>
  - applied patches by Kurt Roeckx <kurt@@roeckx.be> to source
  - added shim layer for SSL API calls with issues (both directions)
* [Bug 3089] Serial Parser does not work anymore for hopfser like device
  - simplified / refactored hex-decoding in driver. <perlinger@@ntp.org>
* [Bug 3084] update-leap mis-parses the leapfile name.  HStenn.
* [Bug 3068] Linker warnings when building on Solaris. perlinger@@ntp.org
  - applied patch thanks to Andrew Stormont <andyjstormont@@gmail.com>
* [Bug 3067] Root distance calculation needs improvement.  HStenn.
* [Bug 3066] NMEA clock ignores pps. perlinger@@ntp.org
  - PPS-HACK works again.
* [Bug 3059] Potential buffer overrun from oversized hash <perlinger@@ntp.org>
  - applied patch by Brian Utterback <brian.utterback@@oracle.com>
* [Bug 3053] ntp_loopfilter.c frequency calc precedence error.  Sarah White.
* [Bug 3050]  Fix for bug #2960 causes [...] spurious error message.
  <perlinger@@ntp.org>
  - patches by Reinhard Max <max@@suse.com> and Havard Eidnes <he@@uninett.no>
* [Bug 3047] Fix refclock_jjy C-DEX JST2000. abe@@ntp.org
  - Patch provided by Kuramatsu.
* [Bug 3021] unity_fixture.c needs pragma weak <perlinger@@ntp.org>
  - removed unnecessary & harmful decls of 'setUp()' & 'tearDown()'
* [Bug 3019] Windows: ERROR_HOST_UNREACHABLE block packet processing.
  DMayer and JPerlinger.
* [Bug 2998] sntp/tests/packetProcessing.c broken without openssl. JPerlinger
* [Bug 2961] sntp/tests/packetProcessing.c assumes AUTOKEY.  HStenn.
* [Bug 2959] refclock_jupiter: gps week correction <perlinger@@ntp.org>
  - fixed GPS week expansion to work based on build date. Special thanks
    to Craig Leres for initial patch and testing.
* [Bug 2951] ntpd tests fail: multiple definition of `send_via_ntp_signd'
  - fixed Makefile.am <perlinger@@ntp.org>
* [Bug 2689] ATOM driver processes last PPS pulse at startup,
             even if it is very old <perlinger@@ntp.org>
  - make sure PPS source is alive before processing samples
  - improve stability close to the 500ms phase jump (phase gate)
* Fix typos in include/ntp.h.
* Shim X509_get_signature_nid() if needed.
* git author attribution cleanup
* bk ignore file cleanup
* remove locks in Windows IO, use rpc-like thread synchronisation instead
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p9.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p9'
PACKAGE_STRING='ntp 4.2.8p9'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p9 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p9:";;
d1927 1
a1927 1
ntp configure 4.2.8p9
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p9, which was
d3758 1
a3758 1
 VERSION='4.2.8p9'
d38006 1
a38006 1
This file was extended by ntp $as_me 4.2.8p9, which was
d38073 1
a38073 1
ntp config.status 4.2.8p9
@


1.1.1.11.2.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p10.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p10'
PACKAGE_STRING='ntp 4.2.8p10'
d726 1
a726 1
LT_SYS_LIBRARY_PATH
a834 3
NTP_HARD_LDFLAGS
NTP_HARD_CPPFLAGS
NTP_HARD_CFLAGS
d837 6
a954 1
with_aix_soname
d1075 3
d1080 1
a1080 1
LT_SYS_LIBRARY_PATH'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p10 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p10:";;
d1710 1
a1710 1
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
a1713 3
  --with-aix-soname=aix|svr4|both
                          shared library versioning (aka "SONAME") variant to
                          provide on AIX, [default=aix].
d1715 2
a1716 2
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
                          compiler's sysroot if not specified).
d1850 2
d1858 1
a1858 2
  LT_SYS_LIBRARY_PATH
              User-defined run-time library search path.
d1927 1
a1927 1
ntp configure 4.2.8p10
d2226 38
d2331 83
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p10, which was
d3758 1
a3758 1
 VERSION='4.2.8p10'
a4039 13

case "$build" in
 *-*-freebsd1?.*)
    cclist=cc
    ;;
 *)
    cclist="cc gcc"
    ;;
esac


#AC_USE_SYSTEM_EXTENSIONS

d4046 191
a4236 1
  for ac_prog in $cclist
d4280 1
a4280 1
  for ac_prog in $cclist
d4335 2
a5016 2


d5486 92
a5577 5
   case $ac_cv_prog_cc_stdc in #(
  no) :
    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
a5749 32
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
d5751 5
a5755 8
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
a5756 4
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d5758 18
a5775 16
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d5777 8
a5784 6
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
d5786 2
a5787 2
rm -f conftest.$ac_ext
CC=$ac_save_CC
d5790 5
a5794 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
d5796 2
a5797 1
  ac_cv_prog_cc_stdc=no
d5800 1
d5802 7
a5808 5
 ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  if ${ac_cv_prog_cc_stdc+:} false; then :
d5810 28
d5840 8
a5847 10
  case $ac_cv_prog_cc_stdc in #(
  no) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;; #(
  '') :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
d5849 32
d5882 10
d5894 32
d5927 22
a5949 2
# Ralf Wildenhues: With per-target flags we need CC_C_O
# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
d5951 10
a5960 4
if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
d5963 24
a5986 9
    ac_pattern="Autoconf.*'x'"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5988 2
a5989 1
  ac_cv_prog_gcc_traditional=no
a5990 1
rm -f conftest*
d5993 2
a5994 9
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5996 28
a6023 1
rm -f conftest*
a6024 1
  fi
d6026 8
a6033 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d6037 2
d6040 12
a6051 4
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d6053 1
d6056 4
d6061 9
a6069 8

case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
d6071 14
d6086 3
a6088 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d6097 4
a6100 1
#warning foo
d6106 1
a6106 1
  ntp_cv_cpp_warning=yes
d6108 1
a6108 2
  ntp_cv_cpp_warning=no

d6111 1
d6114 12
a6125 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
d6128 5
a6132 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6137 1
void foo(void) __attribute__((__noreturn__));
d6144 1
a6144 1
  ntp_cv_cc_attribute=yes
d6146 2
a6147 26
  ntp_cv_cc_attribute=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)

$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h

esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6158 6
  ntp_cv_gcc_Wstrict_overflow=yes
else
  ntp_cv_gcc_Wstrict_overflow=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6159 12
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
  $as_echo_n "(cached) " >&6
d6161 3
a6163 2

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6175 5
a6179 4
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

d6182 18
a6199 2


d6201 3
a6203 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
d6206 25
d6232 8
a6239 4
	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6241 4
a6244 2
			#include <stdlib.h>
			#include <stdio.h>
d6246 6
d6255 1
a6255 23

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


d6260 12
a6271 1
if ac_fn_c_try_link "$LINENO"; then :
d6273 15
a6287 6
		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d6289 458
a6746 2
else
  ntp_cv_gc_sections_runs=no
d6926 1
d7324 13
a7336 8

for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
d7339 144
a7482 2
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
d7491 1
a7491 1
    ac_cv_prog_YACC="$ac_prog"
d7501 4
a7504 4
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
d7511 28
a7538 1
  test -n "$YACC" && break
d7540 2
a7541 1
test -n "$YACC" || YACC="yacc"
d7543 6
a7548 4
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if ${ac_cv_prog_cc_c99+:} false; then :
  $as_echo_n "(cached) " >&6
d7550 3
a7552 9
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>
a7553 14
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}
d7555 2
a7556 13
// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;
d7558 12
a7569 5
struct incomplete_array
{
  int datasize;
  double data[];
};
d7571 26
a7596 5
struct named_init {
  int number;
  const wchar_t *name;
  double average;
};
d7598 7
a7604 1
typedef const char *ccp;
d7606 2
a7607 2
static inline int
test_restrict (ccp restrict text)
d7609 5
a7613 5
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
d7616 30
d7647 2
a7648 3
// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
a7649 4
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);
d7651 2
a7652 23
  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
d7654 7
d7666 5
a7670 2
  // Check bool.
  _Bool success = false;
d7672 5
a7676 4
  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";
d7678 3
a7680 26
  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);
d7686 6
a7691 5
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
d7693 2
a7694 6
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

d7696 16
a7711 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :

d7713 1
a7713 8



	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }


	ac_ext=c
d7719 1
d7721 24
a7744 2
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d7746 8
a7753 2
			struct foo_s {int i1; int i2;};
			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
d7755 16
a7770 7
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d7772 52
a7823 1
$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
d7825 4
a7829 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7831 4
a7834 5
	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7836 5
a7840 11




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
$as_echo_n "checking for compile/link hardening flags... " >&6; }


# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
d7842 2
a7843 2
  with_locfile=no

d7847 61
a7907 13
(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genHardFlags -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genHardFlags.i 2> genHardFlags.err
. ./genHardFlags.i
d7909 59
a7967 11
case "$GENHARDFLAG" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
$as_echo "in file $GENHARDFLAGFILE" >&6; }
    rm genHardFlags.err genHardFlags.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
    ;;
d7969 46
d8016 10
d8027 1
d8029 2
d8032 5
d8401 1
a8401 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d8403 1
a8403 1
	IFS=$lt_save_ifs
d8408 1
a8408 1
      IFS=$lt_save_ifs
d8431 2
a8432 2
macro_version='2.4.6'
macro_revision='2.4.6'
d8446 1
a8446 1
ltmain=$ac_aux_dir/ltmain.sh
d8495 1
a8495 1
case $ECHO in
d8688 1
a8688 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d8694 1
a8694 1
if test yes = "$GCC"; then
d8700 1
a8700 1
    # gcc leaves a trailing carriage return, which upsets mingw
d8714 1
a8714 1
      test -z "$LD" && LD=$ac_prog
d8725 1
a8725 1
elif test yes = "$with_gnu_ld"; then
d8736 1
a8736 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8738 1
a8738 1
    IFS=$lt_save_ifs
d8741 1
a8741 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d8747 1
a8747 1
	test no != "$with_gnu_ld" && break
d8750 1
a8750 1
	test yes != "$with_gnu_ld" && break
d8755 1
a8755 1
  IFS=$lt_save_ifs
d8757 1
a8757 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d8761 1
a8761 1
LD=$lt_cv_path_LD
d8804 1
a8804 1
  lt_cv_path_NM=$NM
d8806 1
a8806 1
  lt_nm_to_check=${ac_tool_prefix}nm
d8811 1
a8811 1
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8813 1
a8813 1
      IFS=$lt_save_ifs
d8815 2
a8816 2
      tmp_nm=$ac_dir/$lt_tmp_nm
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
d8818 1
a8818 1
	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
d8821 2
a8822 7
	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
	case $build_os in
	mingw*) lt_bad_file=conftest.nm/nofile ;;
	*) lt_bad_file=/dev/null ;;
	esac
	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
	*$lt_bad_file* | *'Invalid file or object type'*)
d8824 1
a8824 1
	  break 2
d8830 1
a8830 1
	    break 2
d8841 1
a8841 1
    IFS=$lt_save_ifs
d8848 2
a8849 2
if test no != "$lt_cv_path_NM"; then
  NM=$lt_cv_path_NM
d8955 1
a8955 1
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
d8957 1
a8957 1
      DUMPBIN="$DUMPBIN -symbols -headers"
d8965 2
a8966 2
  if test : != "$DUMPBIN"; then
    NM=$DUMPBIN
d9017 1
a9017 1
  teststring=ABCD
d9057 1
a9057 1
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a9075 5
  os2*)
    # The test takes a long time on OS/2.
    lt_cv_sys_max_cmd_len=8192
    ;;

d9102 1
a9102 2
    if test -n "$lt_cv_sys_max_cmd_len" && \
       test undefined != "$lt_cv_sys_max_cmd_len"; then
d9108 1
a9108 1
      for i in 1 2 3 4 5 6 7 8; do
d9115 1
a9115 1
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
d9117 1
a9117 1
	      test 17 != "$i" # 1/2 MB should be enough
d9135 1
a9135 1
if test -n "$lt_cv_sys_max_cmd_len"; then
d9153 24
d9299 1
a9299 1
    if test yes != "$GCC"; then
d9304 2
a9305 2
    if test yes = "$GCC"; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
d9433 1
a9433 1
# 'unknown' -- same as none, but documents that we really don't know.
d9437 3
a9439 3
# that responds to the $file_magic_cmd with a given extended regex.
# If you have 'file' or equivalent on your system and you're not sure
# whether 'pass_all' will *always* work, you probably want this one.
d9466 2
a9467 1
  if ( file / ) >/dev/null 2>&1; then
d9503 4
d9544 2
a9545 2
# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d9567 2
a9568 2
openbsd* | bitrig*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a9620 3
os2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9778 2
a9779 2
  # two different shell functions defined in ltmain.sh;
  # decide which one to use based on capabilities of $DLLTOOL
d9791 1
a9791 1
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
d9945 1
a9945 1
      if test 0 -eq "$ac_status"; then
d9953 1
a9953 1
	if test 0 -ne "$ac_status"; then
d9966 1
a9966 1
if test no = "$lt_cv_ar_at_file"; then
d10183 2
a10184 2
  bitrig* | openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
d10187 1
a10187 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
d10190 1
a10190 1
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d10273 1
a10273 1
  if test ia64 = "$host_cpu"; then
a10305 17
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  # Gets list of data symbols to import.
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  # Adjust the below global symbol transforms to fixup imported variables.
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
  lt_c_name_lib_hook="\
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
else
  # Disable hooks by default.
  lt_cv_sys_global_symbol_to_import=
  lt_cdecl_hook=
  lt_c_name_hook=
  lt_c_name_lib_hook=
fi

d10309 1
a10309 4
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
$lt_cdecl_hook\
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
d10312 2
a10313 12
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
$lt_c_name_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"

# Transform an extracted symbol line into symbol name with lib prefix and
# symbol address.
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
$lt_c_name_lib_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
d10331 2
a10332 2
    # Fake it for dumpbin and say T for any non-static function,
    # D for any global variable and I for any imported variable.
a10336 1
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
a10337 3
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
d10341 4
a10344 4
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
"     s[1]~/^[@@?]/{print f,s[1],s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print f,t[1],substr(t[1],length(prfx))}"\
d10392 2
a10393 2
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
/* DATA imports from DLLs on WIN32 can't be const, because runtime
d10396 1
a10396 1
#elif defined __osf__
d10422 1
a10422 1
	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
d10442 1
a10442 1
	  LIBS=conftstm.$ac_objext
d10448 1
a10448 1
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
d10469 1
a10469 1
  if test yes = "$pipe_works"; then
a10521 10










d10534 1
a10534 1
case $with_sysroot in #(
d10536 1
a10536 1
   if test yes = "$GCC"; then
d10546 2
a10547 2
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
$as_echo "$with_sysroot" >&6; }
a10558 80
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
$as_echo_n "checking for a working dd... " >&6; }
if ${ac_cv_path_lt_DD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
: ${lt_DD:=$DD}
if test -z "$lt_DD"; then
  ac_path_lt_DD_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in dd; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_lt_DD" || continue
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
fi
      $ac_path_lt_DD_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_lt_DD"; then
    :
  fi
else
  ac_cv_path_lt_DD=$lt_DD
fi

rm -f conftest.i conftest2.i conftest.out
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
$as_echo "$ac_cv_path_lt_DD" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
$as_echo_n "checking how to truncate binary pipes... " >&6; }
if ${lt_cv_truncate_bin+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
lt_cv_truncate_bin=
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
fi
rm -f conftest.i conftest2.i conftest.out
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
$as_echo "$lt_cv_truncate_bin" >&6; }







# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}

d10564 1
a10564 1
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
d10570 1
a10570 2
  # Find out what ABI is being produced by ac_compile, and set mode
  # options accordingly.
d10579 1
a10579 1
	HPUX_IA64_MODE=32
d10582 1
a10582 1
	HPUX_IA64_MODE=64
d10589 1
a10589 2
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10596 1
a10596 1
    if test yes = "$lt_cv_prog_gnu_ld"; then
d10625 1
a10625 37
mips64*-*linux*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    emul=elf
    case `/usr/bin/file conftest.$ac_objext` in
      *32-bit*)
	emul="${emul}32"
	;;
      *64-bit*)
	emul="${emul}64"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *MSB*)
	emul="${emul}btsmip"
	;;
      *LSB*)
	emul="${emul}ltsmip"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *N32*)
	emul="${emul}n32"
	;;
    esac
    LD="${LD-ld} -m $emul"
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
d10627 1
a10627 6
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.  Note that the listed cases only cover the
  # situations where additional linker options are needed (such as when
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  # vice versa); the common cases where no linker options are needed do
  # not appear in the list.
d10641 1
a10641 11
	    case `/usr/bin/file conftest.o` in
	      *x86-64*)
		LD="${LD-ld} -m elf32_x86_64"
		;;
	      *)
		LD="${LD-ld} -m elf_i386"
		;;
	    esac
	    ;;
	  powerpc64le-*linux*)
	    LD="${LD-ld} -m elf32lppclinux"
d10643 1
a10643 1
	  powerpc64-*linux*)
d10662 1
a10662 4
	  powerpcle-*linux*)
	    LD="${LD-ld} -m elf64lppc"
	    ;;
	  powerpc-*linux*)
d10680 1
a10680 1
  SAVE_CFLAGS=$CFLAGS
d10720 1
a10720 1
  if test yes != "$lt_cv_cc_needs_belf"; then
d10722 1
a10722 1
    CFLAGS=$SAVE_CFLAGS
d10725 2
a10726 3
*-*solaris*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10736 1
a10736 14
      yes*)
        case $host in
        i?86-*-solaris*|x86_64-*-solaris*)
          LD="${LD-ld} -m elf_x86_64"
          ;;
        sparc*-*-solaris*)
          LD="${LD-ld} -m elf64_sparc"
          ;;
        esac
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
          LD=${LD-ld}_sol2
        fi
        ;;
d10750 1
a10750 1
need_locks=$enable_libtool_lock
d10861 1
a10861 1
if test yes != "$lt_cv_path_mainfest_tool"; then
d11364 1
a11364 1
      if test -z "$LT_MULTI_MODULE"; then
d11376 1
a11376 7
	# If there is a non-empty error log, and "single_module"
	# appears in it, assume the flag caused a linker warning
        if test -s conftest.err && $GREP single_module conftest.err; then
	  cat conftest.err >&5
	# Otherwise, if the output was created with a 0 exit code from
	# the compiler, it worked.
	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a11386 1

d11414 1
a11414 1
	LDFLAGS=$save_LDFLAGS
a11418 1

d11440 1
a11440 3
      if test -s conftest.err && $GREP force_load conftest.err; then
	cat conftest.err >&5
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
d11453 1
a11453 1
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
d11455 1
a11455 1
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11462 3
a11464 3
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
	10.[012][,.]*)
	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11466 1
a11466 1
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
d11470 1
a11470 1
    if test yes = "$lt_cv_apple_cc_single_mod"; then
d11473 2
a11474 2
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
d11476 1
a11476 1
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
d11478 1
a11478 1
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a11485 35
# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}

d11502 11
d11534 1
a11534 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11536 1
a11536 1
	IFS=$lt_save_ifs
d11541 1
a11541 1
      IFS=$lt_save_ifs
d11559 1
a11559 16
  withval=$with_pic; lt_p=${PACKAGE-default}
    case $withval in
    yes|no) pic_mode=$withval ;;
    *)
      pic_mode=default
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
      for lt_pkg in $withval; do
	IFS=$lt_save_ifs
	if test "X$lt_pkg" = "X$lt_p"; then
	  pic_mode=yes
	fi
      done
      IFS=$lt_save_ifs
      ;;
    esac
d11565 2
d11582 1
a11582 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11584 1
a11584 1
	IFS=$lt_save_ifs
d11589 1
a11589 1
      IFS=$lt_save_ifs
a11602 52
  shared_archive_member_spec=
case $host,$enable_shared in
power*-*-aix[5-9]*,yes)
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }

# Check whether --with-aix-soname was given.
if test "${with_aix_soname+set}" = set; then :
  withval=$with_aix_soname; case $withval in
    aix|svr4|both)
      ;;
    *)
      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
      ;;
    esac
    lt_cv_with_aix_soname=$with_aix_soname
else
  if ${lt_cv_with_aix_soname+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_with_aix_soname=aix
fi

    with_aix_soname=$lt_cv_with_aix_soname
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
$as_echo "$with_aix_soname" >&6; }
  if test aix != "$with_aix_soname"; then
    # For the AIX way of multilib, we name the shared archive member
    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
    # the AIX toolchain works better with OBJECT_MODE set (default 32).
    if test 64 = "${OBJECT_MODE-32}"; then
      shared_archive_member_spec=shr_64
    else
      shared_archive_member_spec=shr
    fi
  fi
  ;;
*)
  with_aix_soname=aix
  ;;
esac







d11607 1
a11607 1
LIBTOOL_DEPS=$ltmain
a11636 4




d11652 1
a11652 1
if test -n "${ZSH_VERSION+set}"; then
d11691 1
a11691 1
  if test set != "${COLLECT_NAMES+set}"; then
d11702 1
a11702 1
# All known linkers require a '.a' archive for static linking (except MSVC,
d11706 1
a11706 1
with_gnu_ld=$lt_cv_prog_gnu_ld
d11708 2
a11709 2
old_CC=$CC
old_CFLAGS=$CFLAGS
d11718 9
a11726 2
func_cc_basename $compiler
cc_basename=$func_cc_basename_result
d11741 1
a11741 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11744 2
a11745 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11748 1
a11748 1
    IFS=$lt_save_ifs
d11750 2
a11751 2
    if test -f "$ac_dir/${ac_tool_prefix}file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
d11756 1
a11756 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11779 2
a11780 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11785 1
a11785 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11807 1
a11807 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11810 2
a11811 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11814 1
a11814 1
    IFS=$lt_save_ifs
d11816 2
a11817 2
    if test -f "$ac_dir/file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
d11822 1
a11822 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11845 2
a11846 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11851 1
a11851 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11872 1
a11872 1
lt_save_CC=$CC
d11934 1
a11934 1
if test yes = "$GCC"; then
d11950 1
a11950 1
   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
d11980 1
a11980 1
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
d11998 1
a11998 1
  if test yes = "$GCC"; then
d12005 1
a12005 1
      if test ia64 = "$host_cpu"; then
a12008 1
      lt_prog_compiler_pic='-fPIC'
d12019 2
a12020 2
            # adding the '-m68020' flag to GCC prevents building anything better,
            # like '-m68040'.
a12035 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12096 1
a12096 3
      if test -n "$lt_prog_compiler_pic"; then
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
      fi
d12104 1
a12104 1
      if test ia64 = "$host_cpu"; then
a12111 14
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      case $cc_basename in
      nagfor*)
        # NAG Fortran compiler
        lt_prog_compiler_wl='-Wl,-Wl,,'
        lt_prog_compiler_pic='-PIC'
        lt_prog_compiler_static='-Bstatic'
        ;;
      esac
      ;;

a12115 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12131 1
a12131 1
      lt_prog_compiler_static='$wl-a ${wl}archive'
d12140 1
a12140 1
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d12142 1
a12142 1
      # old Intel for x86_64, which still supported -KPIC.
a12166 6
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
	;;
d12187 1
a12187 1
	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
a12192 5
	*Sun\ F* | *Sun*Fortran*)
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Qoption ld '
	  ;;
a12198 10
        *Intel*\ [CF]*Compiler*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fPIC'
	  lt_prog_compiler_static='-static'
	  ;;
	*Portland\ Group*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fpic'
	  lt_prog_compiler_static='-Bstatic'
	  ;;
d12249 1
a12249 1
      if test -d /usr/nec; then
d12278 1
a12278 1
  # For platforms that do not support PIC, -DPIC is meaningless:
d12310 1
a12310 1
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
d12340 1
a12340 1
if test yes = "$lt_cv_prog_compiler_pic_works"; then
d12372 1
a12372 1
   save_LDFLAGS=$LDFLAGS
d12391 1
a12391 1
   LDFLAGS=$save_LDFLAGS
d12397 1
a12397 1
if test yes = "$lt_cv_prog_compiler_static_works"; then
d12517 2
a12518 2
hard_links=nottested
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
d12530 3
a12532 3
  if test no = "$hard_links"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
d12560 1
d12576 3
a12578 3
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  # as well as any symbol that contains 'd'.
d12593 1
a12593 1
    if test yes != "$GCC"; then
d12601 1
a12601 1
  openbsd* | bitrig*)
d12611 1
a12611 1
  if test yes = "$with_gnu_ld"; then
d12633 1
a12633 1
  if test yes = "$lt_use_gnu_ld_interface"; then
d12635 1
a12635 1
    wlarc='$wl'
d12641 2
a12642 2
    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
    export_dynamic_flag_spec='$wl--export-dynamic'
d12645 1
a12645 1
      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
d12650 1
a12650 1
    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
d12663 1
a12663 1
      if test ia64 != "$host_cpu"; then
d12682 1
a12682 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12698 1
a12698 1
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12708 1
a12708 1
      export_dynamic_flag_spec='$wl--export-all-symbols'
d12716 10
a12725 10
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file, use it as
	# is; otherwise, prepend EXPORTS...
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
          cp $export_symbols $output_objdir/$soname.def;
        else
          echo EXPORTS > $output_objdir/$soname.def;
          cat $export_symbols >> $output_objdir/$soname.def;
        fi~
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d12732 1
a12732 1
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a12735 28
    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
      ;;

d12739 2
a12740 2
      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
      export_dynamic_flag_spec='$wl-E'
d12747 2
a12748 2
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d12753 1
a12753 1
      if test linux-dietlibc = "$host_os"; then
d12759 1
a12759 1
	 && test no = "$tmp_diet"
d12765 1
a12765 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12770 1
a12770 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
a12780 2
        nagfor*)                        # NAGFOR 5.3
          tmp_sharedflag='-Wl,-shared' ;;
d12785 1
a12785 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12791 1
a12791 1
	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12797 1
a12797 1
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12799 1
a12799 1
        if test yes = "$supports_anon_versioning"; then
d12801 3
a12803 3
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
            echo "local: *; };" >> $output_objdir/$libname.ver~
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a12806 3
	tcc*)
	  export_dynamic_flag_spec='-rdynamic'
	  ;;
d12810 2
a12811 1
	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d12813 1
a12813 1
	  if test yes = "$supports_anon_versioning"; then
d12815 3
a12817 3
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
              echo "local: *; };" >> $output_objdir/$libname.ver~
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
d12831 2
a12832 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12850 2
a12851 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12863 1
a12863 1
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
d12878 3
a12880 3
	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12897 2
a12898 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12905 1
a12905 1
    if test no = "$ld_shlibs"; then
d12921 1
a12921 1
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
d12929 1
a12929 1
      if test ia64 = "$host_cpu"; then
d12934 1
a12934 1
	no_entry_flag=
d12937 3
a12939 7
	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
	# Without the "-l" option, or with the "-B" option, AIX nm treats
	# weak defined symbols like other global defined symbols, whereas
	# GNU nm marks them as "W".
	# While the 'weak' keyword is ignored in the Export File, we need
	# it in the Import File for the 'aix-soname' feature, so we have
	# to replace the "-B" option with "-P" for AIX nm.
d12941 1
a12941 1
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
d12943 1
a12943 1
	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
d12949 1
a12949 13
	# have runtime linking enabled, and use it for executables.
	# For shared libraries, we enable/disable runtime linking
	# depending on the kind of the shared library created -
	# when "with_aix_soname,aix_use_runtimelinking" is:
	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
	# "aix,yes"  lib.so          shared, rtl:yes, for executables
	#            lib.a           static archive
	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
	#            lib.a(lib.so.V) shared, rtl:no,  for executables
	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a(lib.so.V) shared, rtl:no
	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a           static archive
d12952 1
a12952 1
	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a12956 7
	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
	    # so we don't have lib.a shared libs to link our executables.
	    # We have to force runtime linking in this case.
	    aix_use_runtimelinking=yes
	    LDFLAGS="$LDFLAGS -Wl,-brtl"
	  fi
d12975 1
a12975 9
      file_list_spec='$wl-f,'
      case $with_aix_soname,$aix_use_runtimelinking in
      aix,*) ;; # traditional, no import file
      svr4,* | *,yes) # use import file
	# The Import File defines what to hardcode.
	hardcode_direct=no
	hardcode_direct_absolute=no
	;;
      esac
d12977 1
a12977 1
      if test yes = "$GCC"; then
d12981 1
a12981 1
	  collect2name=`$CC -print-prog-name=collect2`
d13000 2
a13001 2
	if test yes = "$aix_use_runtimelinking"; then
	  shared_flag="$shared_flag "'$wl-G'
a13002 5
	# Need to ensure runtime linking is disabled for the traditional
	# shared library, or the linker may eventually find shared libraries
	# /with/ Import File - we do not want to mix them.
	shared_flag_aix='-shared'
	shared_flag_svr4='-shared $wl-G'
d13005 1
a13005 1
	if test ia64 = "$host_cpu"; then
d13010 2
a13011 2
	  if test yes = "$aix_use_runtimelinking"; then
	    shared_flag='$wl-G'
d13013 1
a13013 1
	    shared_flag='$wl-bM:SRE'
a13014 2
	  shared_flag_aix='$wl-bM:SRE'
	  shared_flag_svr4='$wl-G'
d13018 1
a13018 1
      export_dynamic_flag_spec='$wl-bexpall'
d13022 1
a13022 1
      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
d13028 1
a13028 1
        if test set = "${lt_cv_aix_libpath+set}"; then
d13063 1
a13063 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13071 2
a13072 2
        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
d13074 2
a13075 2
	if test ia64 = "$host_cpu"; then
	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
d13077 1
a13077 1
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
d13081 1
a13081 1
	 if test set = "${lt_cv_aix_libpath+set}"; then
d13116 1
a13116 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13124 1
a13124 1
	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
d13127 3
a13129 3
	  no_undefined_flag=' $wl-bernotok'
	  allow_undefined_flag=' $wl-berok'
	  if test yes = "$with_gnu_ld"; then
d13131 1
a13131 1
	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
d13137 2
a13138 14
	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
	  # -brtl affects multiple linker settings, -berok does not and is overridden later
	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
	  if test svr4 != "$with_aix_soname"; then
	    # This is similar to how AIX traditionally builds its shared libraries.
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
	  fi
	  if test aix != "$with_aix_soname"; then
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
	  else
	    # used by -dlpreopen to get the symbols
	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
	  fi
	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
d13147 1
a13147 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d13177 1
a13177 1
	shrext_cmds=.dll
d13179 8
a13186 9
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
            cp "$export_symbols" "$output_objdir/$soname.def";
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
          else
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
          fi~
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
          linknames='
a13189 1
	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
d13194 12
a13205 12
          lt_tool_outputfile="@@TOOL_OUTPUT@@"~
          case $lt_outputfile in
            *.exe|*.EXE) ;;
            *)
              lt_outputfile=$lt_outputfile.exe
              lt_tool_outputfile=$lt_tool_outputfile.exe
              ;;
          esac~
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
            $RM "$lt_outputfile.manifest";
          fi'
d13214 1
a13214 1
	shrext_cmds=.dll
d13233 2
a13234 3
  if test yes = "$lt_cv_ld_force_load"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'

d13239 1
a13239 1
  allow_undefined_flag=$_lt_dar_allow_undefined
d13241 1
a13241 1
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
d13244 1
a13244 1
  if test yes = "$_lt_dar_can_shared"; then
d13246 4
a13249 4
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
d13263 4
d13279 1
a13279 1
    freebsd2.*)
d13295 2
a13296 2
      if test yes = "$GCC"; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13298 1
a13298 1
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13300 1
a13300 1
      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13307 1
a13307 1
      export_dynamic_flag_spec='$wl-E'
d13311 2
a13312 2
      if test yes,no = "$GCC,$with_gnu_ld"; then
	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13316 3
a13318 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13322 1
a13322 1
	export_dynamic_flag_spec='$wl-E'
d13330 1
a13330 1
      if test yes,no = "$GCC,$with_gnu_ld"; then
d13333 1
a13333 1
	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13336 1
a13336 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13339 1
a13339 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13345 1
a13345 1
	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13348 1
a13348 1
	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13360 1
a13360 1
   save_LDFLAGS=$LDFLAGS
d13379 1
a13379 1
   LDFLAGS=$save_LDFLAGS
d13385 2
a13386 2
if test yes = "$lt_cv_prog_compiler__b"; then
    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13394 2
a13395 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13406 1
a13406 1
	  export_dynamic_flag_spec='$wl-E'
d13417 2
a13418 2
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13428 2
a13429 2
  save_LDFLAGS=$LDFLAGS
	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
d13441 1
a13441 1
           LDFLAGS=$save_LDFLAGS
d13445 2
a13446 2
	if test yes = "$lt_cv_irix_exported_symbol"; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
d13449 2
a13450 2
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
d13453 1
a13453 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a13458 10
    linux*)
      case $cc_basename in
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	ld_shlibs=yes
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	;;
      esac
      ;;

d13473 1
a13473 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13481 1
a13481 1
    openbsd* | bitrig*)
d13486 1
a13486 1
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
d13488 3
a13490 3
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
	  export_dynamic_flag_spec='$wl-E'
d13492 10
a13501 2
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
d13512 2
a13513 22
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
d13517 3
a13519 3
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13522 1
a13522 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13525 1
a13525 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13530 4
a13533 4
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13536 1
a13536 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13538 1
a13538 1
          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
d13549 3
a13551 3
      if test yes = "$GCC"; then
	wlarc='$wl'
	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13553 1
a13553 1
          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13558 1
a13558 1
	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
d13560 1
a13560 1
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
d13563 2
a13564 2
	  wlarc='$wl'
	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13566 1
a13566 1
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13576 1
a13576 1
	# but understands '-z linker_flag'.  GCC discards it without '$wl',
d13579 2
a13580 2
	if test yes = "$GCC"; then
	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
d13590 1
a13590 1
      if test sequent = "$host_vendor"; then
d13593 1
a13593 1
	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13642 1
a13642 1
      no_undefined_flag='$wl-z,text'
d13647 3
a13649 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13651 2
a13652 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13657 1
a13657 1
      # Note: We CANNOT use -z defs as we might desire, because we do not
d13663 2
a13664 2
      no_undefined_flag='$wl-z,text'
      allow_undefined_flag='$wl-z,nodefs'
d13667 1
a13667 1
      hardcode_libdir_flag_spec='$wl-R,$libdir'
d13670 1
a13670 1
      export_dynamic_flag_spec='$wl-Bexport'
d13673 3
a13675 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13677 2
a13678 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13693 1
a13693 1
    if test sni = "$host_vendor"; then
d13696 1
a13696 1
	export_dynamic_flag_spec='$wl-Blargedynsym'
d13704 1
a13704 1
test no = "$ld_shlibs" && can_build_shared=no
d13730 1
a13730 1
  if test yes,yes = "$GCC,$enable_shared"; then
d13942 5
d13950 1
a13950 1
if test yes = "$GCC"; then
d13952 2
a13953 2
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
    *) lt_awk_arg='/^libraries:/' ;;
d13956 2
a13957 2
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
    *) lt_sed_strip_eq='s|=/|/|g' ;;
d13973 1
a13973 1
  # and add multilib dir if necessary...
d13975 1
a13975 8
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  # ...but if some path component already ends with the multilib dir we assume
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  case "$lt_multi_os_dir; $lt_search_path_spec " in
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
    lt_multi_os_dir=
    ;;
  esac
d13977 3
a13979 3
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
    elif test -n "$lt_multi_os_dir"; then
d13985 3
a13987 3
BEGIN {RS = " "; FS = "/|\n";} {
  lt_foo = "";
  lt_count = 0;
d13994 1
a13994 1
          lt_foo = "/" $lt_i lt_foo;
d14008 1
a14008 1
      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
d14017 1
a14017 1
shrext_cmds=.so
a14033 2


d14036 2
a14037 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
d14041 1
a14041 1
  soname_spec='$libname$release$shared_ext$major'
d14045 1
a14045 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14049 1
a14049 1
  if test ia64 = "$host_cpu"; then
d14051 1
a14051 1
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
d14056 2
a14057 2
    # the line '#! .'.  This would cause the generated library to
    # depend on '.', always an invalid library.  This was fixed in
d14063 1
a14063 1
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
d14070 1
a14070 24
    # Using Import Files as archive members, it is possible to support
    # filename-based versioning of shared library archives on AIX. While
    # this would work for both with and without runtime linking, it will
    # prevent static linking of such archives. So we do filename-based
    # shared library versioning with .so extension only, which is used
    # when both runtime linking and shared linking is enabled.
    # Unfortunately, runtime linking may impact performance, so we do
    # not want this to be the default eventually. Also, we use the
    # versioned .so libs for executables only if there is the -brtl
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
    # To allow for filename-based versioning support, we need to create
    # libNAME.so.V as an archive file, containing:
    # *) an Import File, referring to the versioned filename of the
    #    archive as well as the shared archive member, telling the
    #    bitwidth (32 or 64) of that shared object, and providing the
    #    list of exported symbols of that shared object, eventually
    #    decorated with the 'weak' keyword
    # *) the shared object with the F_LOADONLY flag set, to really avoid
    #    it being seen by the linker.
    # At run time we better use the real file rather than another symlink,
    # but for link time we create the symlink libNAME.so -> libNAME.so.V

    case $with_aix_soname,$aix_use_runtimelinking in
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
d14073 1
a14073 2
    aix,yes) # traditional libtool
      dynamic_linker='AIX unversionable lib.so'
d14077 2
a14078 4
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      ;;
    aix,no) # traditional AIX only
      dynamic_linker='AIX lib.a(lib.so.V)'
d14081 3
a14083 27
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      ;;
    svr4,*) # full svr4 only
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,yes) # both, prefer svr4
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # unpreferred sharedlib libNAME.a needs extra handling
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,no) # both, prefer aix
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
      ;;
    esac
d14093 1
a14093 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14098 1
a14098 1
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d14104 1
a14104 1
  library_names_spec='$libname$shared_ext'
d14110 1
a14110 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14112 2
a14113 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14125 1
a14125 1
  shrext_cmds=.dll
d14134 2
a14135 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14151 1
a14151 1
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14157 1
a14157 1
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14161 1
a14161 1
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14170 2
a14171 2
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
    library_names_spec='$libname.dll.lib'
d14198 1
a14198 1
      sys_lib_search_path_spec=$LIB
d14211 2
a14212 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14225 1
a14225 1
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
d14238 2
a14239 2
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$major$shared_ext'
d14249 1
a14249 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14252 2
a14253 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14257 4
d14268 1
a14268 1
    freebsd[23].*) objformat=aout ;;
d14275 1
a14275 2
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      soname_spec='$libname$release$shared_ext$major'
d14280 1
a14280 1
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14286 1
a14286 1
  freebsd2.*)
d14305 10
d14316 1
a14316 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14320 2
a14321 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14323 1
a14323 1
  shlibpath_overrides_runpath=no
d14341 3
a14343 3
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
    if test 32 = "$HPUX_IA64_MODE"; then
a14344 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a14346 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
d14348 1
d14356 2
a14357 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14366 2
a14367 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14377 1
a14377 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14380 2
a14381 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14392 2
a14393 2
	if test yes = "$lt_cv_prog_gnu_ld"; then
		version_type=linux # correct to gnu/linux during the next big refactor
d14400 2
a14401 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
d14420 2
a14421 2
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
d14430 3
a14432 23
linux*android*)
  version_type=none # Android doesn't support versioned libraries.
  need_lib_prefix=no
  need_version=no
  library_names_spec='$libname$release$shared_ext'
  soname_spec='$libname$release$shared_ext'
  finish_cmds=
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  dynamic_linker='Android linker'
  # Don't embed -rpath directories since the linker doesn't support them.
  hardcode_libdir_flag_spec='-L$libdir'
  ;;

# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  version_type=linux # correct to gnu/linux during the next big refactor
d14435 2
a14436 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14480 1
a14480 6
  # Ideally, we could use ldconfig to report *all* directores which are
  # searched for libraries, however this is still not possible.  Aside from not
  # being certain /sbin/ldconfig is available, command
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  # even though it is searched at run-time.  Try to do the best guess by
  # appending ld.so.conf contents (and includes) to the search path.
d14500 1
a14500 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14504 2
a14505 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14514 2
a14515 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14524 2
a14525 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14532 1
a14532 1
openbsd* | bitrig*)
d14534 1
a14534 1
  sys_lib_dlsearch_path_spec=/usr/lib
d14536 17
a14552 2
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
    need_version=no
d14554 1
a14554 1
    need_version=yes
a14555 4
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
d14560 1
a14560 3
  version_type=windows
  shrext_cmds=.dll
  need_version=no
d14562 1
a14562 6
  # OS/2 can only load a DLL with a base name of 8 characters or less.
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
    v=$($ECHO $release$versuffix | tr -d .-);
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
    $ECHO $n$v`$shared_ext'
  library_names_spec='${libname}_dll.$libext'
d14564 1
a14564 15
  shlibpath_var=BEGINLIBPATH
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  postinstall_cmds='base_file=`basename \$file`~
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
    dldir=$destdir/`dirname \$dlpath`~
    test -d \$dldir || mkdir -p \$dldir~
    $install_prog $dir/$dlname \$dldir/$dlname~
    chmod a+x \$dldir/$dlname~
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
    fi'
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
    dlpath=$dir/\$dldll~
    $RM \$dlpath'
d14571 2
a14572 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14575 1
a14575 1
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d14583 1
a14583 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14586 2
a14587 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14597 1
a14597 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14601 1
a14601 1
  if test yes = "$with_gnu_ld"; then
d14608 3
a14610 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14631 4
a14634 4
  if test -d /usr/nec; then
    version_type=linux # correct to gnu/linux during the next big refactor
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
    soname_spec='$libname$shared_ext.$major'
d14640 1
a14640 1
  version_type=sco
d14643 2
a14644 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14648 1
a14648 1
  if test yes = "$with_gnu_ld"; then
d14663 1
a14663 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14666 1
a14666 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14673 3
a14675 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14685 1
a14685 1
test no = "$dynamic_linker" && can_build_shared=no
d14688 1
a14688 1
if test yes = "$GCC"; then
d14692 2
a14693 2
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
d14695 2
a14696 3

if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a14698 14
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec

# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"

# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH






d14795 1
a14795 1
   test yes = "$hardcode_automatic"; then
d14798 1
a14798 1
  if test no != "$hardcode_direct" &&
d14802 2
a14803 2
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
     test no != "$hardcode_minus_L"; then
d14818 2
a14819 2
if test relink = "$hardcode_action" ||
   test yes = "$inherit_rpath"; then
d14822 2
a14823 2
elif test yes = "$shlibpath_overrides_runpath" ||
     test no = "$enable_shared"; then
d14833 1
a14833 1
  if test yes != "$enable_dlopen"; then
d14843 1
a14843 1
    lt_cv_dlopen=load_add_on
d14849 1
a14849 1
    lt_cv_dlopen=LoadLibrary
d14854 1
a14854 1
    lt_cv_dlopen=dlopen
d14859 1
a14859 1
    # if libdl is installed we need to link against it
d14897 1
a14897 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d14900 1
a14900 1
    lt_cv_dlopen=dyld
a14907 8
  tpf*)
    # Don't try to run any link tests for TPF.  We know it's impossible
    # because TPF is a cross-compiler, and we know how we open DSOs.
    lt_cv_dlopen=dlopen
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=no
    ;;

d14911 1
a14911 1
  lt_cv_dlopen=shl_load
d14950 1
a14950 1
  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
d14954 1
a14954 1
  lt_cv_dlopen=dlopen
d14993 1
a14993 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d15032 1
a15032 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
d15071 1
a15071 1
  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
d15092 3
a15094 1
  if test no = "$lt_cv_dlopen"; then
a15095 2
  else
    enable_dlopen=yes
d15100 2
a15101 2
    save_CPPFLAGS=$CPPFLAGS
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d15103 1
a15103 1
    save_LDFLAGS=$LDFLAGS
d15106 1
a15106 1
    save_LIBS=$LIBS
d15109 3301
a18409 13
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"
d18411 3
a18413 3
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d18415 12
a18426 1
#include <stdio.h>
d18428 11
a18438 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
d18440 22
a18461 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
d18463 8
a18470 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
d18472 11
a18482 16
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
d18484 5
a18488 16
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
a18489 3
  else :
    # compilation failed
    lt_cv_dlopen_self=no
d18491 20
a18510 2
fi
rm -fr conftest*
d18512 7
d18520 3
a18523 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }
d18525 6
a18530 19
    if test yes = "$lt_cv_dlopen_self"; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
a18531 1
#include <stdio.h>
a18532 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
a18533 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
a18534 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
a18535 5
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
a18536 12
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());
a18537 21
  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*
a18539 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi
a18540 5
    CPPFLAGS=$save_CPPFLAGS
    LDFLAGS=$save_LDFLAGS
    LIBS=$save_LIBS
    ;;
  esac
a18541 4
  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac
a18542 5
  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi
a18559 29
striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP"; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi
d18569 6
d18576 20
d18597 9
a18606 5
  # Report what library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }
a18607 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test no = "$can_build_shared" && enable_shared=no
a18608 10
  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test yes = "$enable_shared" && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;
a18609 12
  aix[4-9]*)
    if test ia64 != "$host_cpu"; then
      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
      yes,aix,yes) ;;			# shared object as lib.so file only
      yes,svr4,*) ;;			# shared object as lib.so archive member only
      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
      esac
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }
a18610 6
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test yes = "$enable_shared" || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }
d18613 1
d18615 11
a18626 1
fi
a18632 4
CC=$lt_save_CC



d20866 1
a20866 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d20872 1
a20872 1
if test yes = "$GCC"; then
d20878 1
a20878 1
    # gcc leaves a trailing carriage return, which upsets mingw
d20892 1
a20892 1
      test -z "$LD" && LD=$ac_prog
d20903 1
a20903 1
elif test yes = "$with_gnu_ld"; then
d20914 1
a20914 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d20916 1
a20916 1
    IFS=$lt_save_ifs
d20919 1
a20919 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d20925 1
a20925 1
	test no != "$with_gnu_ld" && break
d20928 1
a20928 1
	test yes != "$with_gnu_ld" && break
d20933 1
a20933 1
  IFS=$lt_save_ifs
d20935 1
a20935 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d20939 1
a20939 1
LD=$lt_cv_path_LD
d28062 4
a28088 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }
d29229 2
a29279 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
a34166 1

a34168 1

a34173 2


d34184 1
a34184 1
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
a34558 1

d37532 4
d37537 4
d38006 1
a38006 1
This file was extended by ntp $as_me 4.2.8p10, which was
d38073 1
a38073 1
ntp config.status 4.2.8p10
a38207 1
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
a38209 1
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
a38255 1
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
a38257 1
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
a38259 1
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
d38292 1
d38325 1
a38325 2
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
d38332 55
a38402 1
PATH_SEPARATOR \
a38429 1
lt_cv_sys_global_symbol_to_import \
a38431 1
lt_cv_nm_interface \
a38432 1
lt_cv_truncate_bin \
d38453 1
d38465 33
a38497 1
striplib; do
d38500 1
a38500 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38527 12
a38538 2
configure_time_dlsearch_path \
configure_time_lt_sys_library_path; do
d38541 1
a38541 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38550 2
d38553 1
a38553 1
# See if we are running on zsh, and set the options that allow our
d38555 1
a38555 1
if test -n "\${ZSH_VERSION+set}"; then
d38562 1
d38569 2
d39354 1
a39354 1
    # See if we are running on zsh, and set the options that allow our
d39356 1
a39356 1
    if test -n "${ZSH_VERSION+set}"; then
d39360 1
a39360 1
    cfgfile=${ofile}T
d39366 3
a39368 1
# Generated automatically by $as_me ($PACKAGE) $VERSION
a39370 12

# Provide generalized library-building support services.
# Written by Gordon Matzigkeit, 1996

# Copyright (C) 2014 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions.  There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# GNU Libtool is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of of the License, or
# (at your option) any later version.
d39372 16
a39387 4
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program or library that is built
# using GNU Libtool, you may include this file under the  same
# distribution terms that you use for the rest of that program.
d39389 2
a39390 2
# GNU Libtool is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
d39395 4
a39398 1
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
d39402 1
a39402 4
available_tags=''

# Configured defaults for sys_lib_dlsearch_path munging.
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
a39421 3
# Shared archive member basename,for filename based shared library versioning on AIX.
shared_archive_member_spec=$shared_archive_member_spec

a39427 3
# The PATH separator for the build system.
PATH_SEPARATOR=$lt_PATH_SEPARATOR

a39535 3
# Transform the output of nm into a list of symbols to manually relocate.
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import

a39541 3
# The name lister interface.
nm_interface=$lt_lt_cv_nm_interface

d39545 1
a39545 1
# The root where to search for dependent libraries,and where our libraries should be installed.
a39547 3
# Command to truncate a binary pipe.
lt_truncate_bin=$lt_lt_cv_truncate_bin

d39638 2
a39639 5
# Detected run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path

# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
d39729 4
d39736 1
a39736 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39740 1
a39740 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39742 1
a39742 1
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
d39790 2
a39791 1
# ### END LIBTOOL CONFIG
d39793 10
a39802 40
_LT_EOF

    cat <<'_LT_EOF' >> "$cfgfile"

# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE

# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}
d39804 1
a39804 17

# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}


# ### END FUNCTIONS SHARED WITH CONFIGURE
d39814 1
a39814 1
if test set != "${COLLECT_NAMES+set}"; then
d39823 1
a39823 1
ltmain=$ac_aux_dir/ltmain.sh
d39833 159
d39996 157
@


1.1.1.12
log
@Import ntp 4.2.8p10
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p10.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p10'
PACKAGE_STRING='ntp 4.2.8p10'
d726 1
a726 1
LT_SYS_LIBRARY_PATH
a834 3
NTP_HARD_LDFLAGS
NTP_HARD_CPPFLAGS
NTP_HARD_CFLAGS
d837 6
a954 1
with_aix_soname
d1075 3
d1080 1
a1080 1
LT_SYS_LIBRARY_PATH'
d1621 1
a1621 1
\`configure' configures ntp 4.2.8p10 to adapt to many kinds of systems.
d1691 1
a1691 1
     short | recursive ) echo "Configuration of ntp 4.2.8p10:";;
d1710 1
a1710 1
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
a1713 3
  --with-aix-soname=aix|svr4|both
                          shared library versioning (aka "SONAME") variant to
                          provide on AIX, [default=aix].
d1715 2
a1716 2
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
                          compiler's sysroot if not specified).
d1850 2
d1858 1
a1858 2
  LT_SYS_LIBRARY_PATH
              User-defined run-time library search path.
d1927 1
a1927 1
ntp configure 4.2.8p10
d2226 38
d2331 83
d2757 1
a2757 1
It was created by ntp $as_me 4.2.8p10, which was
d3758 1
a3758 1
 VERSION='4.2.8p10'
a4039 13

case "$build" in
 *-*-freebsd1?.*)
    cclist=cc
    ;;
 *)
    cclist="cc gcc"
    ;;
esac


#AC_USE_SYSTEM_EXTENSIONS

d4046 191
a4236 1
  for ac_prog in $cclist
d4280 1
a4280 1
  for ac_prog in $cclist
d4335 2
a5016 2


d5486 92
a5577 5
   case $ac_cv_prog_cc_stdc in #(
  no) :
    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
a5749 32
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
d5751 5
a5755 8
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
a5756 4
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d5758 18
a5775 16
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d5777 8
a5784 6
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
d5786 2
a5787 2
rm -f conftest.$ac_ext
CC=$ac_save_CC
d5790 5
a5794 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
d5796 2
a5797 1
  ac_cv_prog_cc_stdc=no
d5800 1
d5802 7
a5808 5
 ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  if ${ac_cv_prog_cc_stdc+:} false; then :
d5810 28
d5840 8
a5847 10
  case $ac_cv_prog_cc_stdc in #(
  no) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;; #(
  '') :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
d5849 32
d5882 10
d5894 32
d5927 22
a5949 2
# Ralf Wildenhues: With per-target flags we need CC_C_O
# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
d5951 10
a5960 4
if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
d5963 24
a5986 9
    ac_pattern="Autoconf.*'x'"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5988 2
a5989 1
  ac_cv_prog_gcc_traditional=no
a5990 1
rm -f conftest*
d5993 2
a5994 9
  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
d5996 28
a6023 1
rm -f conftest*
a6024 1
  fi
d6026 8
a6033 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
d6037 2
d6040 12
a6051 4
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d6053 1
d6056 4
d6061 9
a6069 8

case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
d6071 14
d6086 3
a6088 3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
d6097 4
a6100 1
#warning foo
d6106 1
a6106 1
  ntp_cv_cpp_warning=yes
d6108 1
a6108 2
  ntp_cv_cpp_warning=no

d6111 1
d6114 12
a6125 12
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
d6128 5
a6132 1
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6137 1
void foo(void) __attribute__((__noreturn__));
d6144 1
a6144 1
  ntp_cv_cc_attribute=yes
d6146 2
a6147 26
  ntp_cv_cc_attribute=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)

$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h

esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6158 6
  ntp_cv_gcc_Wstrict_overflow=yes
else
  ntp_cv_gcc_Wstrict_overflow=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a6159 12
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
  $as_echo_n "(cached) " >&6
d6161 3
a6163 2

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6175 5
a6179 4
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

d6182 18
a6199 2


d6201 3
a6203 11
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
d6206 25
d6232 8
a6239 4
	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6241 4
a6244 2
			#include <stdlib.h>
			#include <stdio.h>
d6246 6
d6255 1
a6255 23

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


d6260 12
a6271 1
if ac_fn_c_try_link "$LINENO"; then :
d6273 15
a6287 6
		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d6289 458
a6746 2
else
  ntp_cv_gc_sections_runs=no
d6926 1
d7324 13
a7336 8

for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
d7339 144
a7482 2
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
d7491 1
a7491 1
    ac_cv_prog_YACC="$ac_prog"
d7501 4
a7504 4
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
d7511 28
a7538 1
  test -n "$YACC" && break
d7540 2
a7541 1
test -n "$YACC" || YACC="yacc"
d7543 6
a7548 4
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if ${ac_cv_prog_cc_c99+:} false; then :
  $as_echo_n "(cached) " >&6
d7550 3
a7552 9
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>
a7553 14
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}
d7555 2
a7556 13
// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;
d7558 12
a7569 5
struct incomplete_array
{
  int datasize;
  double data[];
};
d7571 26
a7596 5
struct named_init {
  int number;
  const wchar_t *name;
  double average;
};
d7598 7
a7604 1
typedef const char *ccp;
d7606 2
a7607 2
static inline int
test_restrict (ccp restrict text)
d7609 5
a7613 5
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
d7616 30
d7647 2
a7648 3
// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
a7649 4
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);
d7651 2
a7652 23
  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
d7654 7
d7666 5
a7670 2
  // Check bool.
  _Bool success = false;
d7672 5
a7676 4
  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";
d7678 3
a7680 26
  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);
d7686 6
a7691 5
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
d7693 2
a7694 6
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

d7696 16
a7711 15
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :

d7713 1
a7713 8



	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }


	ac_ext=c
d7719 1
d7721 24
a7744 2
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d7746 8
a7753 2
			struct foo_s {int i1; int i2;};
			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
d7755 16
a7770 7
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
d7772 52
a7823 1
$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
d7825 4
a7829 1
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7831 4
a7834 5
	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7836 5
a7840 11




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
$as_echo_n "checking for compile/link hardening flags... " >&6; }


# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
d7842 2
a7843 2
  with_locfile=no

d7847 61
a7907 13
(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genHardFlags -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genHardFlags.i 2> genHardFlags.err
. ./genHardFlags.i
d7909 59
a7967 11
case "$GENHARDFLAG" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
$as_echo "in file $GENHARDFLAGFILE" >&6; }
    rm genHardFlags.err genHardFlags.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
    ;;
d7969 46
d8016 10
d8027 1
d8029 2
d8032 5
d8401 1
a8401 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d8403 1
a8403 1
	IFS=$lt_save_ifs
d8408 1
a8408 1
      IFS=$lt_save_ifs
d8431 2
a8432 2
macro_version='2.4.6'
macro_revision='2.4.6'
d8446 1
a8446 1
ltmain=$ac_aux_dir/ltmain.sh
d8495 1
a8495 1
case $ECHO in
d8688 1
a8688 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d8694 1
a8694 1
if test yes = "$GCC"; then
d8700 1
a8700 1
    # gcc leaves a trailing carriage return, which upsets mingw
d8714 1
a8714 1
      test -z "$LD" && LD=$ac_prog
d8725 1
a8725 1
elif test yes = "$with_gnu_ld"; then
d8736 1
a8736 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8738 1
a8738 1
    IFS=$lt_save_ifs
d8741 1
a8741 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d8747 1
a8747 1
	test no != "$with_gnu_ld" && break
d8750 1
a8750 1
	test yes != "$with_gnu_ld" && break
d8755 1
a8755 1
  IFS=$lt_save_ifs
d8757 1
a8757 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d8761 1
a8761 1
LD=$lt_cv_path_LD
d8804 1
a8804 1
  lt_cv_path_NM=$NM
d8806 1
a8806 1
  lt_nm_to_check=${ac_tool_prefix}nm
d8811 1
a8811 1
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d8813 1
a8813 1
      IFS=$lt_save_ifs
d8815 2
a8816 2
      tmp_nm=$ac_dir/$lt_tmp_nm
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
d8818 1
a8818 1
	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
d8821 2
a8822 7
	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
	case $build_os in
	mingw*) lt_bad_file=conftest.nm/nofile ;;
	*) lt_bad_file=/dev/null ;;
	esac
	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
	*$lt_bad_file* | *'Invalid file or object type'*)
d8824 1
a8824 1
	  break 2
d8830 1
a8830 1
	    break 2
d8841 1
a8841 1
    IFS=$lt_save_ifs
d8848 2
a8849 2
if test no != "$lt_cv_path_NM"; then
  NM=$lt_cv_path_NM
d8955 1
a8955 1
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
d8957 1
a8957 1
      DUMPBIN="$DUMPBIN -symbols -headers"
d8965 2
a8966 2
  if test : != "$DUMPBIN"; then
    NM=$DUMPBIN
d9017 1
a9017 1
  teststring=ABCD
d9057 1
a9057 1
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a9075 5
  os2*)
    # The test takes a long time on OS/2.
    lt_cv_sys_max_cmd_len=8192
    ;;

d9102 1
a9102 2
    if test -n "$lt_cv_sys_max_cmd_len" && \
       test undefined != "$lt_cv_sys_max_cmd_len"; then
d9108 1
a9108 1
      for i in 1 2 3 4 5 6 7 8; do
d9115 1
a9115 1
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
d9117 1
a9117 1
	      test 17 != "$i" # 1/2 MB should be enough
d9135 1
a9135 1
if test -n "$lt_cv_sys_max_cmd_len"; then
d9153 24
d9299 1
a9299 1
    if test yes != "$GCC"; then
d9304 2
a9305 2
    if test yes = "$GCC"; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
d9433 1
a9433 1
# 'unknown' -- same as none, but documents that we really don't know.
d9437 3
a9439 3
# that responds to the $file_magic_cmd with a given extended regex.
# If you have 'file' or equivalent on your system and you're not sure
# whether 'pass_all' will *always* work, you probably want this one.
d9466 2
a9467 1
  if ( file / ) >/dev/null 2>&1; then
d9503 4
d9544 2
a9545 2
# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d9567 2
a9568 2
openbsd* | bitrig*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a9620 3
os2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
d9778 2
a9779 2
  # two different shell functions defined in ltmain.sh;
  # decide which one to use based on capabilities of $DLLTOOL
d9791 1
a9791 1
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
d9945 1
a9945 1
      if test 0 -eq "$ac_status"; then
d9953 1
a9953 1
	if test 0 -ne "$ac_status"; then
d9966 1
a9966 1
if test no = "$lt_cv_ar_at_file"; then
d10183 2
a10184 2
  bitrig* | openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
d10187 1
a10187 1
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
d10190 1
a10190 1
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d10273 1
a10273 1
  if test ia64 = "$host_cpu"; then
a10305 17
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  # Gets list of data symbols to import.
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  # Adjust the below global symbol transforms to fixup imported variables.
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
  lt_c_name_lib_hook="\
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
else
  # Disable hooks by default.
  lt_cv_sys_global_symbol_to_import=
  lt_cdecl_hook=
  lt_c_name_hook=
  lt_c_name_lib_hook=
fi

d10309 1
a10309 4
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
$lt_cdecl_hook\
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
d10312 2
a10313 12
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
$lt_c_name_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"

# Transform an extracted symbol line into symbol name with lib prefix and
# symbol address.
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
$lt_c_name_lib_hook\
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
d10331 2
a10332 2
    # Fake it for dumpbin and say T for any non-static function,
    # D for any global variable and I for any imported variable.
a10336 1
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
a10337 3
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
d10341 4
a10344 4
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
"     s[1]~/^[@@?]/{print f,s[1],s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print f,t[1],substr(t[1],length(prfx))}"\
d10392 2
a10393 2
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
/* DATA imports from DLLs on WIN32 can't be const, because runtime
d10396 1
a10396 1
#elif defined __osf__
d10422 1
a10422 1
	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
d10442 1
a10442 1
	  LIBS=conftstm.$ac_objext
d10448 1
a10448 1
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
d10469 1
a10469 1
  if test yes = "$pipe_works"; then
a10521 10










d10534 1
a10534 1
case $with_sysroot in #(
d10536 1
a10536 1
   if test yes = "$GCC"; then
d10546 2
a10547 2
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
$as_echo "$with_sysroot" >&6; }
a10558 80
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
$as_echo_n "checking for a working dd... " >&6; }
if ${ac_cv_path_lt_DD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
: ${lt_DD:=$DD}
if test -z "$lt_DD"; then
  ac_path_lt_DD_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in dd; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_lt_DD" || continue
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
fi
      $ac_path_lt_DD_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_lt_DD"; then
    :
  fi
else
  ac_cv_path_lt_DD=$lt_DD
fi

rm -f conftest.i conftest2.i conftest.out
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
$as_echo "$ac_cv_path_lt_DD" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
$as_echo_n "checking how to truncate binary pipes... " >&6; }
if ${lt_cv_truncate_bin+:} false; then :
  $as_echo_n "(cached) " >&6
else
  printf 0123456789abcdef0123456789abcdef >conftest.i
cat conftest.i conftest.i >conftest2.i
lt_cv_truncate_bin=
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  cmp -s conftest.i conftest.out \
  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
fi
rm -f conftest.i conftest2.i conftest.out
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
$as_echo "$lt_cv_truncate_bin" >&6; }







# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}

d10564 1
a10564 1
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
d10570 1
a10570 2
  # Find out what ABI is being produced by ac_compile, and set mode
  # options accordingly.
d10579 1
a10579 1
	HPUX_IA64_MODE=32
d10582 1
a10582 1
	HPUX_IA64_MODE=64
d10589 1
a10589 2
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10596 1
a10596 1
    if test yes = "$lt_cv_prog_gnu_ld"; then
d10625 1
a10625 37
mips64*-*linux*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    emul=elf
    case `/usr/bin/file conftest.$ac_objext` in
      *32-bit*)
	emul="${emul}32"
	;;
      *64-bit*)
	emul="${emul}64"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *MSB*)
	emul="${emul}btsmip"
	;;
      *LSB*)
	emul="${emul}ltsmip"
	;;
    esac
    case `/usr/bin/file conftest.$ac_objext` in
      *N32*)
	emul="${emul}n32"
	;;
    esac
    LD="${LD-ld} -m $emul"
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
d10627 1
a10627 6
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.  Note that the listed cases only cover the
  # situations where additional linker options are needed (such as when
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  # vice versa); the common cases where no linker options are needed do
  # not appear in the list.
d10641 1
a10641 11
	    case `/usr/bin/file conftest.o` in
	      *x86-64*)
		LD="${LD-ld} -m elf32_x86_64"
		;;
	      *)
		LD="${LD-ld} -m elf_i386"
		;;
	    esac
	    ;;
	  powerpc64le-*linux*)
	    LD="${LD-ld} -m elf32lppclinux"
d10643 1
a10643 1
	  powerpc64-*linux*)
d10662 1
a10662 4
	  powerpcle-*linux*)
	    LD="${LD-ld} -m elf64lppc"
	    ;;
	  powerpc-*linux*)
d10680 1
a10680 1
  SAVE_CFLAGS=$CFLAGS
d10720 1
a10720 1
  if test yes != "$lt_cv_cc_needs_belf"; then
d10722 1
a10722 1
    CFLAGS=$SAVE_CFLAGS
d10725 2
a10726 3
*-*solaris*)
  # Find out what ABI is being produced by ac_compile, and set linker
  # options accordingly.
d10736 1
a10736 14
      yes*)
        case $host in
        i?86-*-solaris*|x86_64-*-solaris*)
          LD="${LD-ld} -m elf_x86_64"
          ;;
        sparc*-*-solaris*)
          LD="${LD-ld} -m elf64_sparc"
          ;;
        esac
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
          LD=${LD-ld}_sol2
        fi
        ;;
d10750 1
a10750 1
need_locks=$enable_libtool_lock
d10861 1
a10861 1
if test yes != "$lt_cv_path_mainfest_tool"; then
d11364 1
a11364 1
      if test -z "$LT_MULTI_MODULE"; then
d11376 1
a11376 7
	# If there is a non-empty error log, and "single_module"
	# appears in it, assume the flag caused a linker warning
        if test -s conftest.err && $GREP single_module conftest.err; then
	  cat conftest.err >&5
	# Otherwise, if the output was created with a 0 exit code from
	# the compiler, it worked.
	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a11386 1

d11414 1
a11414 1
	LDFLAGS=$save_LDFLAGS
a11418 1

d11440 1
a11440 3
      if test -s conftest.err && $GREP force_load conftest.err; then
	cat conftest.err >&5
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
d11453 1
a11453 1
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
d11455 1
a11455 1
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11462 3
a11464 3
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
	10.[012][,.]*)
	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
d11466 1
a11466 1
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
d11470 1
a11470 1
    if test yes = "$lt_cv_apple_cc_single_mod"; then
d11473 2
a11474 2
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
d11476 1
a11476 1
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
d11478 1
a11478 1
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a11485 35
# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}

d11502 11
d11534 1
a11534 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11536 1
a11536 1
	IFS=$lt_save_ifs
d11541 1
a11541 1
      IFS=$lt_save_ifs
d11559 1
a11559 16
  withval=$with_pic; lt_p=${PACKAGE-default}
    case $withval in
    yes|no) pic_mode=$withval ;;
    *)
      pic_mode=default
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
      for lt_pkg in $withval; do
	IFS=$lt_save_ifs
	if test "X$lt_pkg" = "X$lt_p"; then
	  pic_mode=yes
	fi
      done
      IFS=$lt_save_ifs
      ;;
    esac
d11565 2
d11582 1
a11582 1
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
d11584 1
a11584 1
	IFS=$lt_save_ifs
d11589 1
a11589 1
      IFS=$lt_save_ifs
a11602 52
  shared_archive_member_spec=
case $host,$enable_shared in
power*-*-aix[5-9]*,yes)
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }

# Check whether --with-aix-soname was given.
if test "${with_aix_soname+set}" = set; then :
  withval=$with_aix_soname; case $withval in
    aix|svr4|both)
      ;;
    *)
      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
      ;;
    esac
    lt_cv_with_aix_soname=$with_aix_soname
else
  if ${lt_cv_with_aix_soname+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_with_aix_soname=aix
fi

    with_aix_soname=$lt_cv_with_aix_soname
fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
$as_echo "$with_aix_soname" >&6; }
  if test aix != "$with_aix_soname"; then
    # For the AIX way of multilib, we name the shared archive member
    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
    # the AIX toolchain works better with OBJECT_MODE set (default 32).
    if test 64 = "${OBJECT_MODE-32}"; then
      shared_archive_member_spec=shr_64
    else
      shared_archive_member_spec=shr
    fi
  fi
  ;;
*)
  with_aix_soname=aix
  ;;
esac







d11607 1
a11607 1
LIBTOOL_DEPS=$ltmain
a11636 4




d11652 1
a11652 1
if test -n "${ZSH_VERSION+set}"; then
d11691 1
a11691 1
  if test set != "${COLLECT_NAMES+set}"; then
d11702 1
a11702 1
# All known linkers require a '.a' archive for static linking (except MSVC,
d11706 1
a11706 1
with_gnu_ld=$lt_cv_prog_gnu_ld
d11708 2
a11709 2
old_CC=$CC
old_CFLAGS=$CFLAGS
d11718 9
a11726 2
func_cc_basename $compiler
cc_basename=$func_cc_basename_result
d11741 1
a11741 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11744 2
a11745 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11748 1
a11748 1
    IFS=$lt_save_ifs
d11750 2
a11751 2
    if test -f "$ac_dir/${ac_tool_prefix}file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
d11756 1
a11756 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11779 2
a11780 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11785 1
a11785 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11807 1
a11807 1
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
d11810 2
a11811 2
  lt_save_MAGIC_CMD=$MAGIC_CMD
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d11814 1
a11814 1
    IFS=$lt_save_ifs
d11816 2
a11817 2
    if test -f "$ac_dir/file"; then
      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
d11822 1
a11822 1
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11845 2
a11846 2
  IFS=$lt_save_ifs
  MAGIC_CMD=$lt_save_MAGIC_CMD
d11851 1
a11851 1
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
d11872 1
a11872 1
lt_save_CC=$CC
d11934 1
a11934 1
if test yes = "$GCC"; then
d11950 1
a11950 1
   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
d11980 1
a11980 1
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
d11998 1
a11998 1
  if test yes = "$GCC"; then
d12005 1
a12005 1
      if test ia64 = "$host_cpu"; then
a12008 1
      lt_prog_compiler_pic='-fPIC'
d12019 2
a12020 2
            # adding the '-m68020' flag to GCC prevents building anything better,
            # like '-m68040'.
a12035 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12096 1
a12096 3
      if test -n "$lt_prog_compiler_pic"; then
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
      fi
d12104 1
a12104 1
      if test ia64 = "$host_cpu"; then
a12111 14
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      case $cc_basename in
      nagfor*)
        # NAG Fortran compiler
        lt_prog_compiler_wl='-Wl,-Wl,,'
        lt_prog_compiler_pic='-PIC'
        lt_prog_compiler_static='-Bstatic'
        ;;
      esac
      ;;

a12115 5
      case $host_os in
      os2*)
	lt_prog_compiler_static='$wl-static'
	;;
      esac
d12131 1
a12131 1
      lt_prog_compiler_static='$wl-a ${wl}archive'
d12140 1
a12140 1
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d12142 1
a12142 1
      # old Intel for x86_64, which still supported -KPIC.
a12166 6
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
	;;
d12187 1
a12187 1
	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
a12192 5
	*Sun\ F* | *Sun*Fortran*)
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Qoption ld '
	  ;;
a12198 10
        *Intel*\ [CF]*Compiler*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fPIC'
	  lt_prog_compiler_static='-static'
	  ;;
	*Portland\ Group*)
	  lt_prog_compiler_wl='-Wl,'
	  lt_prog_compiler_pic='-fpic'
	  lt_prog_compiler_static='-Bstatic'
	  ;;
d12249 1
a12249 1
      if test -d /usr/nec; then
d12278 1
a12278 1
  # For platforms that do not support PIC, -DPIC is meaningless:
d12310 1
a12310 1
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
d12340 1
a12340 1
if test yes = "$lt_cv_prog_compiler_pic_works"; then
d12372 1
a12372 1
   save_LDFLAGS=$LDFLAGS
d12391 1
a12391 1
   LDFLAGS=$save_LDFLAGS
d12397 1
a12397 1
if test yes = "$lt_cv_prog_compiler_static_works"; then
d12517 2
a12518 2
hard_links=nottested
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
d12530 3
a12532 3
  if test no = "$hard_links"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
d12560 1
d12576 3
a12578 3
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  # as well as any symbol that contains 'd'.
d12593 1
a12593 1
    if test yes != "$GCC"; then
d12601 1
a12601 1
  openbsd* | bitrig*)
d12611 1
a12611 1
  if test yes = "$with_gnu_ld"; then
d12633 1
a12633 1
  if test yes = "$lt_use_gnu_ld_interface"; then
d12635 1
a12635 1
    wlarc='$wl'
d12641 2
a12642 2
    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
    export_dynamic_flag_spec='$wl--export-dynamic'
d12645 1
a12645 1
      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
d12650 1
a12650 1
    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
d12663 1
a12663 1
      if test ia64 != "$host_cpu"; then
d12682 1
a12682 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12698 1
a12698 1
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12708 1
a12708 1
      export_dynamic_flag_spec='$wl--export-all-symbols'
d12716 10
a12725 10
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file, use it as
	# is; otherwise, prepend EXPORTS...
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
          cp $export_symbols $output_objdir/$soname.def;
        else
          echo EXPORTS > $output_objdir/$soname.def;
          cat $export_symbols >> $output_objdir/$soname.def;
        fi~
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d12732 1
a12732 1
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a12735 28
    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
      ;;

d12739 2
a12740 2
      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
      export_dynamic_flag_spec='$wl-E'
d12747 2
a12748 2
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
d12753 1
a12753 1
      if test linux-dietlibc = "$host_os"; then
d12759 1
a12759 1
	 && test no = "$tmp_diet"
d12765 1
a12765 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12770 1
a12770 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
a12780 2
        nagfor*)                        # NAGFOR 5.3
          tmp_sharedflag='-Wl,-shared' ;;
d12785 1
a12785 1
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12791 1
a12791 1
	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
d12797 1
a12797 1
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d12799 1
a12799 1
        if test yes = "$supports_anon_versioning"; then
d12801 3
a12803 3
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
            echo "local: *; };" >> $output_objdir/$libname.ver~
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a12806 3
	tcc*)
	  export_dynamic_flag_spec='-rdynamic'
	  ;;
d12810 2
a12811 1
	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d12813 1
a12813 1
	  if test yes = "$supports_anon_versioning"; then
d12815 3
a12817 3
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
              echo "local: *; };" >> $output_objdir/$libname.ver~
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
d12831 2
a12832 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12850 2
a12851 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12863 1
a12863 1
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
d12878 3
a12880 3
	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12897 2
a12898 2
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
d12905 1
a12905 1
    if test no = "$ld_shlibs"; then
d12921 1
a12921 1
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
d12929 1
a12929 1
      if test ia64 = "$host_cpu"; then
d12934 1
a12934 1
	no_entry_flag=
d12937 3
a12939 7
	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
	# Without the "-l" option, or with the "-B" option, AIX nm treats
	# weak defined symbols like other global defined symbols, whereas
	# GNU nm marks them as "W".
	# While the 'weak' keyword is ignored in the Export File, we need
	# it in the Import File for the 'aix-soname' feature, so we have
	# to replace the "-B" option with "-P" for AIX nm.
d12941 1
a12941 1
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
d12943 1
a12943 1
	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
d12949 1
a12949 13
	# have runtime linking enabled, and use it for executables.
	# For shared libraries, we enable/disable runtime linking
	# depending on the kind of the shared library created -
	# when "with_aix_soname,aix_use_runtimelinking" is:
	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
	# "aix,yes"  lib.so          shared, rtl:yes, for executables
	#            lib.a           static archive
	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
	#            lib.a(lib.so.V) shared, rtl:no,  for executables
	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a(lib.so.V) shared, rtl:no
	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
	#            lib.a           static archive
d12952 1
a12952 1
	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a12956 7
	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
	    # so we don't have lib.a shared libs to link our executables.
	    # We have to force runtime linking in this case.
	    aix_use_runtimelinking=yes
	    LDFLAGS="$LDFLAGS -Wl,-brtl"
	  fi
d12975 1
a12975 9
      file_list_spec='$wl-f,'
      case $with_aix_soname,$aix_use_runtimelinking in
      aix,*) ;; # traditional, no import file
      svr4,* | *,yes) # use import file
	# The Import File defines what to hardcode.
	hardcode_direct=no
	hardcode_direct_absolute=no
	;;
      esac
d12977 1
a12977 1
      if test yes = "$GCC"; then
d12981 1
a12981 1
	  collect2name=`$CC -print-prog-name=collect2`
d13000 2
a13001 2
	if test yes = "$aix_use_runtimelinking"; then
	  shared_flag="$shared_flag "'$wl-G'
a13002 5
	# Need to ensure runtime linking is disabled for the traditional
	# shared library, or the linker may eventually find shared libraries
	# /with/ Import File - we do not want to mix them.
	shared_flag_aix='-shared'
	shared_flag_svr4='-shared $wl-G'
d13005 1
a13005 1
	if test ia64 = "$host_cpu"; then
d13010 2
a13011 2
	  if test yes = "$aix_use_runtimelinking"; then
	    shared_flag='$wl-G'
d13013 1
a13013 1
	    shared_flag='$wl-bM:SRE'
a13014 2
	  shared_flag_aix='$wl-bM:SRE'
	  shared_flag_svr4='$wl-G'
d13018 1
a13018 1
      export_dynamic_flag_spec='$wl-bexpall'
d13022 1
a13022 1
      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
d13028 1
a13028 1
        if test set = "${lt_cv_aix_libpath+set}"; then
d13063 1
a13063 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13071 2
a13072 2
        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
d13074 2
a13075 2
	if test ia64 = "$host_cpu"; then
	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
d13077 1
a13077 1
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
d13081 1
a13081 1
	 if test set = "${lt_cv_aix_libpath+set}"; then
d13116 1
a13116 1
    lt_cv_aix_libpath_=/usr/lib:/lib
d13124 1
a13124 1
	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
d13127 3
a13129 3
	  no_undefined_flag=' $wl-bernotok'
	  allow_undefined_flag=' $wl-berok'
	  if test yes = "$with_gnu_ld"; then
d13131 1
a13131 1
	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
d13137 2
a13138 14
	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
	  # -brtl affects multiple linker settings, -berok does not and is overridden later
	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
	  if test svr4 != "$with_aix_soname"; then
	    # This is similar to how AIX traditionally builds its shared libraries.
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
	  fi
	  if test aix != "$with_aix_soname"; then
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
	  else
	    # used by -dlpreopen to get the symbols
	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
	  fi
	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
d13147 1
a13147 1
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d13177 1
a13177 1
	shrext_cmds=.dll
d13179 8
a13186 9
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
            cp "$export_symbols" "$output_objdir/$soname.def";
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
          else
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
          fi~
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
          linknames='
a13189 1
	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
d13194 12
a13205 12
          lt_tool_outputfile="@@TOOL_OUTPUT@@"~
          case $lt_outputfile in
            *.exe|*.EXE) ;;
            *)
              lt_outputfile=$lt_outputfile.exe
              lt_tool_outputfile=$lt_tool_outputfile.exe
              ;;
          esac~
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
            $RM "$lt_outputfile.manifest";
          fi'
d13214 1
a13214 1
	shrext_cmds=.dll
d13233 2
a13234 3
  if test yes = "$lt_cv_ld_force_load"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'

d13239 1
a13239 1
  allow_undefined_flag=$_lt_dar_allow_undefined
d13241 1
a13241 1
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
d13244 1
a13244 1
  if test yes = "$_lt_dar_can_shared"; then
d13246 4
a13249 4
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
d13263 4
d13279 1
a13279 1
    freebsd2.*)
d13295 2
a13296 2
      if test yes = "$GCC"; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13298 1
a13298 1
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
d13300 1
a13300 1
      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13307 1
a13307 1
      export_dynamic_flag_spec='$wl-E'
d13311 2
a13312 2
      if test yes,no = "$GCC,$with_gnu_ld"; then
	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13316 3
a13318 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13322 1
a13322 1
	export_dynamic_flag_spec='$wl-E'
d13330 1
a13330 1
      if test yes,no = "$GCC,$with_gnu_ld"; then
d13333 1
a13333 1
	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13336 1
a13336 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13339 1
a13339 1
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13345 1
a13345 1
	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13348 1
a13348 1
	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d13360 1
a13360 1
   save_LDFLAGS=$LDFLAGS
d13379 1
a13379 1
   LDFLAGS=$save_LDFLAGS
d13385 2
a13386 2
if test yes = "$lt_cv_prog_compiler__b"; then
    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d13394 2
a13395 2
      if test no = "$with_gnu_ld"; then
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
d13406 1
a13406 1
	  export_dynamic_flag_spec='$wl-E'
d13417 2
a13418 2
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13428 2
a13429 2
  save_LDFLAGS=$LDFLAGS
	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
d13441 1
a13441 1
           LDFLAGS=$save_LDFLAGS
d13445 2
a13446 2
	if test yes = "$lt_cv_irix_exported_symbol"; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
d13449 2
a13450 2
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
d13453 1
a13453 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a13458 10
    linux*)
      case $cc_basename in
      tcc*)
	# Fabrice Bellard et al's Tiny C Compiler
	ld_shlibs=yes
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	;;
      esac
      ;;

d13473 1
a13473 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13481 1
a13481 1
    openbsd* | bitrig*)
d13486 1
a13486 1
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
d13488 3
a13490 3
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
	  export_dynamic_flag_spec='$wl-E'
d13492 10
a13501 2
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
d13512 2
a13513 22
      shrext_cmds=.dll
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
	$ECHO EXPORTS >> $output_objdir/$libname.def~
	prefix_cmds="$SED"~
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
	  prefix_cmds="$prefix_cmds -e 1d";
	fi~
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
	emximp -o $lib $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
      enable_shared_with_static_runtimes=yes
d13517 3
a13519 3
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
d13522 1
a13522 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13525 1
a13525 1
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13530 4
a13533 4
      if test yes = "$GCC"; then
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
d13536 1
a13536 1
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
d13538 1
a13538 1
          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
d13549 3
a13551 3
      if test yes = "$GCC"; then
	wlarc='$wl'
	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
d13553 1
a13553 1
          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13558 1
a13558 1
	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
d13560 1
a13560 1
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
d13563 2
a13564 2
	  wlarc='$wl'
	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13566 1
a13566 1
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d13576 1
a13576 1
	# but understands '-z linker_flag'.  GCC discards it without '$wl',
d13579 2
a13580 2
	if test yes = "$GCC"; then
	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
d13590 1
a13590 1
      if test sequent = "$host_vendor"; then
d13593 1
a13593 1
	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d13642 1
a13642 1
      no_undefined_flag='$wl-z,text'
d13647 3
a13649 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13651 2
a13652 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13657 1
a13657 1
      # Note: We CANNOT use -z defs as we might desire, because we do not
d13663 2
a13664 2
      no_undefined_flag='$wl-z,text'
      allow_undefined_flag='$wl-z,nodefs'
d13667 1
a13667 1
      hardcode_libdir_flag_spec='$wl-R,$libdir'
d13670 1
a13670 1
      export_dynamic_flag_spec='$wl-Bexport'
d13673 3
a13675 3
      if test yes = "$GCC"; then
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13677 2
a13678 2
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d13693 1
a13693 1
    if test sni = "$host_vendor"; then
d13696 1
a13696 1
	export_dynamic_flag_spec='$wl-Blargedynsym'
d13704 1
a13704 1
test no = "$ld_shlibs" && can_build_shared=no
d13730 1
a13730 1
  if test yes,yes = "$GCC,$enable_shared"; then
d13942 5
d13950 1
a13950 1
if test yes = "$GCC"; then
d13952 2
a13953 2
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
    *) lt_awk_arg='/^libraries:/' ;;
d13956 2
a13957 2
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
    *) lt_sed_strip_eq='s|=/|/|g' ;;
d13973 1
a13973 1
  # and add multilib dir if necessary...
d13975 1
a13975 8
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  # ...but if some path component already ends with the multilib dir we assume
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  case "$lt_multi_os_dir; $lt_search_path_spec " in
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
    lt_multi_os_dir=
    ;;
  esac
d13977 3
a13979 3
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
    elif test -n "$lt_multi_os_dir"; then
d13985 3
a13987 3
BEGIN {RS = " "; FS = "/|\n";} {
  lt_foo = "";
  lt_count = 0;
d13994 1
a13994 1
          lt_foo = "/" $lt_i lt_foo;
d14008 1
a14008 1
      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
d14017 1
a14017 1
shrext_cmds=.so
a14033 2


d14036 2
a14037 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
d14041 1
a14041 1
  soname_spec='$libname$release$shared_ext$major'
d14045 1
a14045 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14049 1
a14049 1
  if test ia64 = "$host_cpu"; then
d14051 1
a14051 1
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
d14056 2
a14057 2
    # the line '#! .'.  This would cause the generated library to
    # depend on '.', always an invalid library.  This was fixed in
d14063 1
a14063 1
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
d14070 1
a14070 24
    # Using Import Files as archive members, it is possible to support
    # filename-based versioning of shared library archives on AIX. While
    # this would work for both with and without runtime linking, it will
    # prevent static linking of such archives. So we do filename-based
    # shared library versioning with .so extension only, which is used
    # when both runtime linking and shared linking is enabled.
    # Unfortunately, runtime linking may impact performance, so we do
    # not want this to be the default eventually. Also, we use the
    # versioned .so libs for executables only if there is the -brtl
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
    # To allow for filename-based versioning support, we need to create
    # libNAME.so.V as an archive file, containing:
    # *) an Import File, referring to the versioned filename of the
    #    archive as well as the shared archive member, telling the
    #    bitwidth (32 or 64) of that shared object, and providing the
    #    list of exported symbols of that shared object, eventually
    #    decorated with the 'weak' keyword
    # *) the shared object with the F_LOADONLY flag set, to really avoid
    #    it being seen by the linker.
    # At run time we better use the real file rather than another symlink,
    # but for link time we create the symlink libNAME.so -> libNAME.so.V

    case $with_aix_soname,$aix_use_runtimelinking in
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
d14073 1
a14073 2
    aix,yes) # traditional libtool
      dynamic_linker='AIX unversionable lib.so'
d14077 2
a14078 4
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      ;;
    aix,no) # traditional AIX only
      dynamic_linker='AIX lib.a(lib.so.V)'
d14081 3
a14083 27
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      ;;
    svr4,*) # full svr4 only
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,yes) # both, prefer svr4
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
      # unpreferred sharedlib libNAME.a needs extra handling
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
      # We do not specify a path in Import Files, so LIBPATH fires.
      shlibpath_overrides_runpath=yes
      ;;
    *,no) # both, prefer aix
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
      library_names_spec='$libname$release.a $libname.a'
      soname_spec='$libname$release$shared_ext$major'
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
      ;;
    esac
d14093 1
a14093 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14098 1
a14098 1
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d14104 1
a14104 1
  library_names_spec='$libname$shared_ext'
d14110 1
a14110 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14112 2
a14113 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14125 1
a14125 1
  shrext_cmds=.dll
d14134 2
a14135 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14151 1
a14151 1
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14157 1
a14157 1
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14161 1
a14161 1
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d14170 2
a14171 2
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
    library_names_spec='$libname.dll.lib'
d14198 1
a14198 1
      sys_lib_search_path_spec=$LIB
d14211 2
a14212 2
    postinstall_cmds='base_file=`basename \$file`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d14225 1
a14225 1
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
d14238 2
a14239 2
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$major$shared_ext'
d14249 1
a14249 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14252 2
a14253 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14257 4
d14268 1
a14268 1
    freebsd[23].*) objformat=aout ;;
d14275 1
a14275 2
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
      soname_spec='$libname$release$shared_ext$major'
d14280 1
a14280 1
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14286 1
a14286 1
  freebsd2.*)
d14305 10
d14316 1
a14316 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14320 2
a14321 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14323 1
a14323 1
  shlibpath_overrides_runpath=no
d14341 3
a14343 3
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
    if test 32 = "$HPUX_IA64_MODE"; then
a14344 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a14346 1
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
d14348 1
d14356 2
a14357 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14366 2
a14367 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14377 1
a14377 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14380 2
a14381 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14392 2
a14393 2
	if test yes = "$lt_cv_prog_gnu_ld"; then
		version_type=linux # correct to gnu/linux during the next big refactor
d14400 2
a14401 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
d14420 2
a14421 2
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
d14430 3
a14432 23
linux*android*)
  version_type=none # Android doesn't support versioned libraries.
  need_lib_prefix=no
  need_version=no
  library_names_spec='$libname$release$shared_ext'
  soname_spec='$libname$release$shared_ext'
  finish_cmds=
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  dynamic_linker='Android linker'
  # Don't embed -rpath directories since the linker doesn't support them.
  hardcode_libdir_flag_spec='-L$libdir'
  ;;

# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  version_type=linux # correct to gnu/linux during the next big refactor
d14435 2
a14436 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14480 1
a14480 6
  # Ideally, we could use ldconfig to report *all* directores which are
  # searched for libraries, however this is still not possible.  Aside from not
  # being certain /sbin/ldconfig is available, command
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  # even though it is searched at run-time.  Try to do the best guess by
  # appending ld.so.conf contents (and includes) to the search path.
d14500 1
a14500 1
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14504 2
a14505 2
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    soname_spec='$libname$release$shared_ext$major'
d14514 2
a14515 2
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14524 2
a14525 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14532 1
a14532 1
openbsd* | bitrig*)
d14534 1
a14534 1
  sys_lib_dlsearch_path_spec=/usr/lib
d14536 17
a14552 2
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
    need_version=no
d14554 1
a14554 1
    need_version=yes
a14555 4
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
d14560 1
a14560 3
  version_type=windows
  shrext_cmds=.dll
  need_version=no
d14562 1
a14562 6
  # OS/2 can only load a DLL with a base name of 8 characters or less.
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
    v=$($ECHO $release$versuffix | tr -d .-);
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
    $ECHO $n$v`$shared_ext'
  library_names_spec='${libname}_dll.$libext'
d14564 1
a14564 15
  shlibpath_var=BEGINLIBPATH
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  postinstall_cmds='base_file=`basename \$file`~
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
    dldir=$destdir/`dirname \$dlpath`~
    test -d \$dldir || mkdir -p \$dldir~
    $install_prog $dir/$dlname \$dldir/$dlname~
    chmod a+x \$dldir/$dlname~
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
    fi'
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
    dlpath=$dir/\$dldll~
    $RM \$dlpath'
d14571 2
a14572 2
  soname_spec='$libname$release$shared_ext$major'
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14575 1
a14575 1
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d14583 1
a14583 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14586 2
a14587 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14597 1
a14597 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d14601 1
a14601 1
  if test yes = "$with_gnu_ld"; then
d14608 3
a14610 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14631 4
a14634 4
  if test -d /usr/nec; then
    version_type=linux # correct to gnu/linux during the next big refactor
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
    soname_spec='$libname$shared_ext.$major'
d14640 1
a14640 1
  version_type=sco
d14643 2
a14644 2
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14648 1
a14648 1
  if test yes = "$with_gnu_ld"; then
d14663 1
a14663 1
  version_type=linux # correct to gnu/linux during the next big refactor
d14666 1
a14666 1
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d14673 3
a14675 3
  version_type=linux # correct to gnu/linux during the next big refactor
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  soname_spec='$libname$release$shared_ext$major'
d14685 1
a14685 1
test no = "$dynamic_linker" && can_build_shared=no
d14688 1
a14688 1
if test yes = "$GCC"; then
d14692 2
a14693 2
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
d14695 2
a14696 3

if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a14698 14
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec

# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"

# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH






d14795 1
a14795 1
   test yes = "$hardcode_automatic"; then
d14798 1
a14798 1
  if test no != "$hardcode_direct" &&
d14802 2
a14803 2
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
     test no != "$hardcode_minus_L"; then
d14818 2
a14819 2
if test relink = "$hardcode_action" ||
   test yes = "$inherit_rpath"; then
d14822 2
a14823 2
elif test yes = "$shlibpath_overrides_runpath" ||
     test no = "$enable_shared"; then
d14833 1
a14833 1
  if test yes != "$enable_dlopen"; then
d14843 1
a14843 1
    lt_cv_dlopen=load_add_on
d14849 1
a14849 1
    lt_cv_dlopen=LoadLibrary
d14854 1
a14854 1
    lt_cv_dlopen=dlopen
d14859 1
a14859 1
    # if libdl is installed we need to link against it
d14897 1
a14897 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d14900 1
a14900 1
    lt_cv_dlopen=dyld
a14907 8
  tpf*)
    # Don't try to run any link tests for TPF.  We know it's impossible
    # because TPF is a cross-compiler, and we know how we open DSOs.
    lt_cv_dlopen=dlopen
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=no
    ;;

d14911 1
a14911 1
  lt_cv_dlopen=shl_load
d14950 1
a14950 1
  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
d14954 1
a14954 1
  lt_cv_dlopen=dlopen
d14993 1
a14993 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
d15032 1
a15032 1
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
d15071 1
a15071 1
  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
d15092 3
a15094 1
  if test no = "$lt_cv_dlopen"; then
a15095 2
  else
    enable_dlopen=yes
d15100 2
a15101 2
    save_CPPFLAGS=$CPPFLAGS
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d15103 1
a15103 1
    save_LDFLAGS=$LDFLAGS
d15106 1
a15106 1
    save_LIBS=$LIBS
d15109 3301
a18409 13
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"
d18411 3
a18413 3
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
d18415 12
a18426 1
#include <stdio.h>
d18428 11
a18438 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
d18440 22
a18461 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
d18463 8
a18470 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
d18472 11
a18482 16
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
d18484 5
a18488 16
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
a18489 3
  else :
    # compilation failed
    lt_cv_dlopen_self=no
d18491 20
a18510 2
fi
rm -fr conftest*
d18512 7
d18520 3
a18523 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }
d18525 6
a18530 19
    if test yes = "$lt_cv_dlopen_self"; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test yes = "$cross_compiling"; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
a18531 1
#include <stdio.h>
a18532 9
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
a18533 21
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
a18534 5
/* When -fvisibility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
a18535 5
int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
a18536 12
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());
a18537 21
  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*
a18539 4
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi
a18540 5
    CPPFLAGS=$save_CPPFLAGS
    LDFLAGS=$save_LDFLAGS
    LIBS=$save_LIBS
    ;;
  esac
a18541 4
  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac
a18542 5
  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi
a18559 29
striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP"; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi
d18569 6
d18576 20
d18597 9
a18606 5
  # Report what library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }
a18607 3
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test no = "$can_build_shared" && enable_shared=no
a18608 10
  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test yes = "$enable_shared" && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;
a18609 12
  aix[4-9]*)
    if test ia64 != "$host_cpu"; then
      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
      yes,aix,yes) ;;			# shared object as lib.so file only
      yes,svr4,*) ;;			# shared object as lib.so archive member only
      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
      esac
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }
a18610 6
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test yes = "$enable_shared" || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }
d18613 1
d18615 11
a18626 1
fi
a18632 4
CC=$lt_save_CC



d20866 1
a20866 1
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d20872 1
a20872 1
if test yes = "$GCC"; then
d20878 1
a20878 1
    # gcc leaves a trailing carriage return, which upsets mingw
d20892 1
a20892 1
      test -z "$LD" && LD=$ac_prog
d20903 1
a20903 1
elif test yes = "$with_gnu_ld"; then
d20914 1
a20914 1
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d20916 1
a20916 1
    IFS=$lt_save_ifs
d20919 1
a20919 1
      lt_cv_path_LD=$ac_dir/$ac_prog
d20925 1
a20925 1
	test no != "$with_gnu_ld" && break
d20928 1
a20928 1
	test yes != "$with_gnu_ld" && break
d20933 1
a20933 1
  IFS=$lt_save_ifs
d20935 1
a20935 1
  lt_cv_path_LD=$LD # Let the user override the test with a path.
d20939 1
a20939 1
LD=$lt_cv_path_LD
d28062 4
a28088 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }
d29229 2
a29279 2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
a34166 1

a34168 1

a34173 2


d34184 1
a34184 1
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
a34558 1

d37532 4
d37537 4
d38006 1
a38006 1
This file was extended by ntp $as_me 4.2.8p10, which was
d38073 1
a38073 1
ntp config.status 4.2.8p10
a38207 1
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
a38209 1
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
a38255 1
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
a38257 1
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
a38259 1
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
d38292 1
d38325 1
a38325 2
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
d38332 55
a38402 1
PATH_SEPARATOR \
a38429 1
lt_cv_sys_global_symbol_to_import \
a38431 1
lt_cv_nm_interface \
a38432 1
lt_cv_truncate_bin \
d38453 1
d38465 33
a38497 1
striplib; do
d38500 1
a38500 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38527 12
a38538 2
configure_time_dlsearch_path \
configure_time_lt_sys_library_path; do
d38541 1
a38541 1
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
d38550 2
d38553 1
a38553 1
# See if we are running on zsh, and set the options that allow our
d38555 1
a38555 1
if test -n "\${ZSH_VERSION+set}"; then
d38562 1
d38569 2
d39354 1
a39354 1
    # See if we are running on zsh, and set the options that allow our
d39356 1
a39356 1
    if test -n "${ZSH_VERSION+set}"; then
d39360 1
a39360 1
    cfgfile=${ofile}T
d39366 3
a39368 1
# Generated automatically by $as_me ($PACKAGE) $VERSION
a39370 12

# Provide generalized library-building support services.
# Written by Gordon Matzigkeit, 1996

# Copyright (C) 2014 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions.  There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# GNU Libtool is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of of the License, or
# (at your option) any later version.
d39372 16
a39387 4
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program or library that is built
# using GNU Libtool, you may include this file under the  same
# distribution terms that you use for the rest of that program.
d39389 2
a39390 2
# GNU Libtool is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
d39395 4
a39398 1
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
d39402 1
a39402 4
available_tags=''

# Configured defaults for sys_lib_dlsearch_path munging.
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
a39421 3
# Shared archive member basename,for filename based shared library versioning on AIX.
shared_archive_member_spec=$shared_archive_member_spec

a39427 3
# The PATH separator for the build system.
PATH_SEPARATOR=$lt_PATH_SEPARATOR

a39535 3
# Transform the output of nm into a list of symbols to manually relocate.
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import

a39541 3
# The name lister interface.
nm_interface=$lt_lt_cv_nm_interface

d39545 1
a39545 1
# The root where to search for dependent libraries,and where our libraries should be installed.
a39547 3
# Command to truncate a binary pipe.
lt_truncate_bin=$lt_lt_cv_truncate_bin

d39638 2
a39639 5
# Detected run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path

# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
d39729 4
d39736 1
a39736 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39740 1
a39740 1
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
d39742 1
a39742 1
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
d39790 2
a39791 1
# ### END LIBTOOL CONFIG
d39793 10
a39802 40
_LT_EOF

    cat <<'_LT_EOF' >> "$cfgfile"

# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE

# func_munge_path_list VARIABLE PATH
# -----------------------------------
# VARIABLE is name of variable containing _space_ separated list of
# directories to be munged by the contents of PATH, which is string
# having a format:
# "DIR[:DIR]:"
#       string "DIR[ DIR]" will be prepended to VARIABLE
# ":DIR[:DIR]"
#       string "DIR[ DIR]" will be appended to VARIABLE
# "DIRP[:DIRP]::[DIRA:]DIRA"
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
#       "DIRA[ DIRA]" will be appended to VARIABLE
# "DIR[:DIR]"
#       VARIABLE will be replaced by "DIR[ DIR]"
func_munge_path_list ()
{
    case x$2 in
    x)
        ;;
    *:)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
        ;;
    x:*)
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    *::*)
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
        ;;
    *)
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
        ;;
    esac
}
d39804 1
a39804 17

# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
func_cc_basename ()
{
    for cc_temp in $*""; do
      case $cc_temp in
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
        \-*) ;;
        *) break;;
      esac
    done
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
}


# ### END FUNCTIONS SHARED WITH CONFIGURE
d39814 1
a39814 1
if test set != "${COLLECT_NAMES+set}"; then
d39823 1
a39823 1
ltmain=$ac_aux_dir/ltmain.sh
d39833 159
d39996 157
@


1.1.1.12.4.1
log
@Pull up following revision(s) (requested by snj in ticket #729):
	doc/3RDPARTY: 1.1512
	external/bsd/ntp/bin/ntpd/Makefile: up to 1.22
	external/bsd/ntp/dist/ChangeLog: up to 1.1.1.13
	external/bsd/ntp/dist/Makefile.am: up to 1.1.1.9
	external/bsd/ntp/dist/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/NEWS: up to 1.1.1.13
	external/bsd/ntp/dist/aclocal.m4: up to 1.1.1.11
	external/bsd/ntp/dist/adjtimed/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/clockstuff/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/configure: up to 1.1.1.13
	external/bsd/ntp/dist/configure.ac: up to 1.1.1.11
	external/bsd/ntp/dist/html/access.html: up to 1.1.1.3
	external/bsd/ntp/dist/html/accopt.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/authentic.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/drivers/driver18.html: up to 1.1.1.4
	external/bsd/ntp/dist/html/drivers/driver40-ja.html: up to 1.1.1.3
	external/bsd/ntp/dist/html/drivers/driver40.html: up to 1.1.1.6
	external/bsd/ntp/dist/html/keygen.html: up to 1.1.1.5
	external/bsd/ntp/dist/html/miscopt.html: up to 1.1.1.11
	external/bsd/ntp/dist/html/monopt.html: up to 1.1.1.5
	external/bsd/ntp/dist/html/ntpq.html: up to 1.1.1.5
	external/bsd/ntp/dist/include/Makefile.in: up to 1.1.1.12
	external/bsd/ntp/dist/include/isc/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/include/ntp.h: up to 1.9
	external/bsd/ntp/dist/include/ntp_calendar.h: up to 1.7
	external/bsd/ntp/dist/include/ntp_config.h: up to 1.11
	external/bsd/ntp/dist/include/ntp_fp.h: up to 1.10
	external/bsd/ntp/dist/include/ntp_keyacc.h: up to 1.2
	external/bsd/ntp/dist/include/ntp_request.h: up to 1.8
	external/bsd/ntp/dist/include/ntp_stdlib.h: up to 1.15
	external/bsd/ntp/dist/include/ntpd.h: up to 1.11
	external/bsd/ntp/dist/include/recvbuff.h: up to 1.6
	external/bsd/ntp/dist/include/ssl_applink.c: up to 1.6
	external/bsd/ntp/dist/kernel/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/kernel/sys/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/libntp/Makefile.in: up to 1.1.1.12
	external/bsd/ntp/dist/libntp/a_md5encrypt.c: up to 1.9
	external/bsd/ntp/dist/libntp/adjtime.c: up to 1.5
	external/bsd/ntp/dist/libntp/authkeys.c: up to 1.12
	external/bsd/ntp/dist/libntp/authreadkeys.c: up to 1.10
	external/bsd/ntp/dist/libntp/libssl_compat.c: up to 1.2
	external/bsd/ntp/dist/libntp/ntp_calendar.c: up to 1.10
	external/bsd/ntp/dist/libntp/ssl_init.c: up to 1.11
	external/bsd/ntp/dist/libntp/statestr.c: up to 1.7
	external/bsd/ntp/dist/libntp/systime.c: up to 1.6
	external/bsd/ntp/dist/libntp/work_thread.c: up to 1.6
	external/bsd/ntp/dist/libparse/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/complete.conf.in: up to 1.1.1.6
	external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/invoke-ntpd.texi: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/keyword-gen-utd: up to 1.1.1.8
	external/bsd/ntp/dist/ntpd/keyword-gen.c: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp.conf.5man: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/ntp.conf.def: up to 1.1.1.9
	external/bsd/ntp/dist/ntpd/ntp.conf.html: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/ntp.conf.man.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/ntp.keys.5man: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/ntp.keys.def: up to 1.1.1.4
	external/bsd/ntp/dist/ntpd/ntp.keys.html: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/ntp.keys.man.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/ntp_config.c: up to 1.18
	external/bsd/ntp/dist/ntpd/ntp_control.c: up to 1.20
	external/bsd/ntp/dist/ntpd/ntp_crypto.c: up to 1.15
	external/bsd/ntp/dist/ntpd/ntp_io.c: up to 1.26
	external/bsd/ntp/dist/ntpd/ntp_keyword.h: up to 1.13
	external/bsd/ntp/dist/ntpd/ntp_leapsec.c: up to 1.6
	external/bsd/ntp/dist/ntpd/ntp_parser.y: up to 1.17
	external/bsd/ntp/dist/ntpd/ntp_peer.c: up to 1.12
	external/bsd/ntp/dist/ntpd/ntp_proto.c: up to 1.16
	external/bsd/ntp/dist/ntpd/ntp_refclock.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntp_request.c: up to 1.15
	external/bsd/ntp/dist/ntpd/ntp_restrict.c: up to 1.10
	external/bsd/ntp/dist/ntpd/ntp_scanner.c: up to 1.13
	external/bsd/ntp/dist/ntpd/ntp_util.c: up to 1.9
	external/bsd/ntp/dist/ntpd/ntpd-opts.c: up to 1.11
	external/bsd/ntp/dist/ntpd/ntpd-opts.h: up to 1.14
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdman: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/ntpd.c: up to 1.15
	external/bsd/ntp/dist/ntpd/ntpd.html: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/ntpd.man.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/ntpd.mdoc.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpd/ntpsim.c: up to 1.5
	external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c: up to 1.12
	external/bsd/ntp/dist/ntpd/refclock_jjy.c: up to 1.13
	external/bsd/ntp/dist/ntpd/refclock_oncore.c: up to 1.15
	external/bsd/ntp/dist/ntpd/refclock_palisade.c: up to 1.7
	external/bsd/ntp/dist/ntpd/refclock_parse.c: up to 1.21
	external/bsd/ntp/dist/ntpdate/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpdc/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi: up to 1.1.1.11
	external/bsd/ntp/dist/ntpdc/layout.std: up to 1.1.1.3
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.c: up to 1.11
	external/bsd/ntp/dist/ntpdc/ntpdc-opts.h: up to 1.11
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman: up to 1.1.1.11
	external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc: up to 1.1.1.11
	external/bsd/ntp/dist/ntpdc/ntpdc.c: up to 1.16
	external/bsd/ntp/dist/ntpdc/ntpdc.html: up to 1.1.1.11
	external/bsd/ntp/dist/ntpdc/ntpdc.man.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpdc/ntpdc_ops.c: up to 1.10
	external/bsd/ntp/dist/ntpq/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/ntpq/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpq/invoke-ntpq.texi: up to 1.1.1.11
	external/bsd/ntp/dist/ntpq/ntpq-opts.c: up to 1.11
	external/bsd/ntp/dist/ntpq/ntpq-opts.def: up to 1.1.1.6
	external/bsd/ntp/dist/ntpq/ntpq-opts.h: up to 1.11
	external/bsd/ntp/dist/ntpq/ntpq-subs.c: up to 1.16
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqman: up to 1.1.1.11
	external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc: up to 1.1.1.11
	external/bsd/ntp/dist/ntpq/ntpq.c: up to 1.19
	external/bsd/ntp/dist/ntpq/ntpq.html: up to 1.1.1.11
	external/bsd/ntp/dist/ntpq/ntpq.man.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpq/ntpq.mdoc.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpq/ntpq.texi: up to 1.1.1.2
	external/bsd/ntp/dist/ntpsnmpd/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi: up to 1.1.1.11
	external/bsd/ntp/dist/ntpsnmpd/netsnmp_daemonize.c: up to 1.6
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c: up to 1.11
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h: up to 1.11
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman: up to 1.1.1.11
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc: up to 1.1.1.11
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html: up to 1.1.1.11
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in: up to 1.1.1.11
	external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in: up to 1.1.1.11
	external/bsd/ntp/dist/packageinfo.sh: up to 1.1.1.13
	external/bsd/ntp/dist/parseutil/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/build/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/scripts/build/UpdatePoint: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/invoke-plot_summary.texi: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/invoke-summary.texi: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/lib/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntptrace/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/plot_summary-opts: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/plot_summary.html: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/plot_summary.man.in: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/plot_summary.mdoc.in: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/summary-opts: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/summary.1summaryman: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/summary.1summarymdoc: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/summary.html: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/summary.man.in: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/summary.mdoc.in: up to 1.1.1.11
	external/bsd/ntp/dist/scripts/update-leap/Makefile.in: up to 1.1.1.7
	external/bsd/ntp/dist/scripts/update-leap/invoke-update-leap.texi: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/update-leap/update-leap-opts: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapman: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/update-leap/update-leap.1update-leapmdoc: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/update-leap/update-leap.html: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/update-leap/update-leap.in: up to 1.1.1.3
	external/bsd/ntp/dist/scripts/update-leap/update-leap.man.in: up to 1.1.1.9
	external/bsd/ntp/dist/scripts/update-leap/update-leap.mdoc.in: up to 1.1.1.9
	external/bsd/ntp/dist/sntp/Makefile.in: up to 1.1.1.12
	external/bsd/ntp/dist/sntp/check-libntp.mf: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/configure: up to 1.1.1.13
	external/bsd/ntp/dist/sntp/crypto.c: up to 1.14
	external/bsd/ntp/dist/sntp/crypto.h: up to 1.6
	external/bsd/ntp/dist/sntp/harden/linux: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/include/version.def: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/include/version.texi: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/invoke-sntp.texi: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/libopts/nested.c: up to 1.11
	external/bsd/ntp/dist/sntp/m4/ntp_af_unspec.m4: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/m4/ntp_harden.m4: up to 1.1.1.2
	external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4: up to 1.1.1.7
	external/bsd/ntp/dist/sntp/m4/ntp_openssl.m4: up to 1.1.1.4
	external/bsd/ntp/dist/sntp/m4/version.m4: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/main.c: up to 1.16
	external/bsd/ntp/dist/sntp/networking.c: up to 1.15
	external/bsd/ntp/dist/sntp/sntp-opts.c: up to 1.12
	external/bsd/ntp/dist/sntp/sntp-opts.def: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/sntp-opts.h: up to 1.11
	external/bsd/ntp/dist/sntp/sntp.1sntpman: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/sntp.1sntpmdoc: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/sntp.html: up to 1.1.1.13
	external/bsd/ntp/dist/sntp/sntp.man.in: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/sntp.mdoc.in: up to 1.1.1.11
	external/bsd/ntp/dist/sntp/tests/Makefile.am: up to 1.1.1.6
	external/bsd/ntp/dist/sntp/tests/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/sntp/tests/crypto.c: up to 1.2
	external/bsd/ntp/dist/sntp/tests/keyFile.c: up to 1.2
	external/bsd/ntp/dist/sntp/tests/packetHandling.c: up to 1.2
	external/bsd/ntp/dist/sntp/tests/packetProcessing.c: up to 1.2
	external/bsd/ntp/dist/sntp/tests/run-crypto.c: up to 1.2
	external/bsd/ntp/dist/sntp/tests/run-keyFile.c: up to 1.2
	external/bsd/ntp/dist/sntp/tests/run-kodDatabase.c: up to 1.2
	external/bsd/ntp/dist/sntp/tests/run-kodFile.c: up to 1.2
	external/bsd/ntp/dist/sntp/tests/run-networking.c: up to 1.2
	external/bsd/ntp/dist/sntp/tests/run-packetHandling.c: up to 1.2
	external/bsd/ntp/dist/sntp/tests/run-packetProcessing.c: up to 1.2
	external/bsd/ntp/dist/sntp/tests/run-t-log.c: up to 1.2
	external/bsd/ntp/dist/sntp/tests/run-utilities.c: up to 1.2
	external/bsd/ntp/dist/sntp/tests/testconf.yml: up to 1.1.1.1
	external/bsd/ntp/dist/sntp/unity/auto/generate_test_runner.rb: up to 1.1.1.3
	external/bsd/ntp/dist/sntp/utilities.c: up to 1.5
	external/bsd/ntp/dist/sntp/version.c: up to 1.2
	external/bsd/ntp/dist/tests/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/tests/bug-2803/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/tests/bug-2803/Makefile.in: up to 1.1.1.6
	external/bsd/ntp/dist/tests/bug-2803/run-bug-2803.c: up to 1.2
	external/bsd/ntp/dist/tests/bug-2803/testconf.yml: up to 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/Makefile.am: up to 1.1.1.7
	external/bsd/ntp/dist/tests/libntp/Makefile.in: up to 1.1.1.9
	external/bsd/ntp/dist/tests/libntp/a_md5encrypt.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/authkeys.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-a_md5encrypt.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-atoint.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-atouint.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-authkeys.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-buftvtots.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-calendar.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-caljulian.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-caltontp.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-calyearstart.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-clocktime.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-decodenetnum.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-hextoint.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-hextolfp.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-humandate.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-lfpfunc.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-lfptostr.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-modetoa.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-msyslog.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-netof.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-numtoa.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-numtohost.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-octtoint.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-prettydate.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-recvbuff.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-refidsmear.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-refnumtoa.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-sfptostr.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-socktoa.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-ssl_init.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-statestr.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-strtolfp.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-timespecops.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-timevalops.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-tsafememcmp.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-tstotv.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-tvtots.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-uglydate.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-vi64ops.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/run-ymd2yd.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/ssl_init.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/testconf.yml: up to 1.1.1.1
	external/bsd/ntp/dist/tests/libntp/timespecops.c: up to 1.2
	external/bsd/ntp/dist/tests/libntp/timevalops.c: up to 1.2
	external/bsd/ntp/dist/tests/ntpd/Makefile.am: up to 1.1.1.5
	external/bsd/ntp/dist/tests/ntpd/Makefile.in: up to 1.1.1.10
	external/bsd/ntp/dist/tests/ntpd/leapsec.c: up to 1.2
	external/bsd/ntp/dist/tests/ntpd/ntp_prio_q.c: up to 1.2
	external/bsd/ntp/dist/tests/ntpd/ntp_restrict.c: up to 1.2
	external/bsd/ntp/dist/tests/ntpd/rc_cmdlength.c: up to 1.2
	external/bsd/ntp/dist/tests/ntpd/run-leapsec.c: up to 1.2
	external/bsd/ntp/dist/tests/ntpd/run-ntp_prio_q.c: up to 1.2
	external/bsd/ntp/dist/tests/ntpd/run-ntp_restrict.c: up to 1.2
	external/bsd/ntp/dist/tests/ntpd/run-rc_cmdlength.c: up to 1.2
	external/bsd/ntp/dist/tests/ntpd/run-t-ntp_scanner.c: up to 1.2
	external/bsd/ntp/dist/tests/ntpd/run-t-ntp_signd.c: up to 1.2
	external/bsd/ntp/dist/tests/ntpd/t-ntp_scanner.c: up to 1.2
	external/bsd/ntp/dist/tests/ntpd/testconf.yml: up to 1.1.1.1
	external/bsd/ntp/dist/tests/ntpq/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/tests/ntpq/Makefile.in: up to 1.1.1.5
	external/bsd/ntp/dist/tests/ntpq/run-t-ntpq.c: up to 1.2
	external/bsd/ntp/dist/tests/ntpq/testconf.yml: up to 1.1.1.1
	external/bsd/ntp/dist/tests/sandbox/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/tests/sandbox/Makefile.in: up to 1.1.1.6
	external/bsd/ntp/dist/tests/sandbox/run-modetoa.c: up to 1.2
	external/bsd/ntp/dist/tests/sandbox/run-uglydate.c: up to 1.2
	external/bsd/ntp/dist/tests/sandbox/run-ut-2803.c: up to 1.2
	external/bsd/ntp/dist/tests/sandbox/testconf.yml: up to 1.1.1.1
	external/bsd/ntp/dist/tests/sec-2853/Makefile.am: up to 1.1.1.4
	external/bsd/ntp/dist/tests/sec-2853/Makefile.in: up to 1.1.1.6
	external/bsd/ntp/dist/tests/sec-2853/run-sec-2853.c: up to 1.2
	external/bsd/ntp/dist/tests/sec-2853/testconf.yml: up to 1.1.1.1
	external/bsd/ntp/dist/util/Makefile.in: up to 1.1.1.11
	external/bsd/ntp/dist/util/invoke-ntp-keygen.texi: up to 1.1.1.11
	external/bsd/ntp/dist/util/ntp-keygen-opts.c: up to 1.16
	external/bsd/ntp/dist/util/ntp-keygen-opts.def: up to 1.1.1.4
	external/bsd/ntp/dist/util/ntp-keygen-opts.h: up to 1.11
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman: up to 1.1.1.11
	external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc: up to 1.1.1.11
	external/bsd/ntp/dist/util/ntp-keygen.html: up to 1.1.1.11
	external/bsd/ntp/dist/util/ntp-keygen.man.in: up to 1.1.1.11
	external/bsd/ntp/dist/util/ntp-keygen.mdoc.in: up to 1.1.1.11
	external/bsd/ntp/importdate: up to 1.13
	external/bsd/ntp/include/config.h: up to 1.21
	external/bsd/ntp/lib/libiscntp/Makefile: up to 1.15
	external/bsd/ntp/lib/libntp/Makefile: up to 1.20
	external/bsd/ntp/lib/libopts/Makefile: up to 1.15
	external/bsd/ntp/ntp2netbsd: up to 1.6
	external/bsd/ntp/scripts/mkver: up to 1.13
Update ntp to 4.2.8p11.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p11.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p11'
PACKAGE_STRING='ntp 4.2.8p11'
a946 1
with_hardenfile
d1616 1
a1616 1
\`configure' configures ntp 4.2.8p11 to adapt to many kinds of systems.
d1686 1
a1686 1
     short | recursive ) echo "Configuration of ntp 4.2.8p11:";;
a1701 1
  --with-hardenfile=XXX   os-specific or "/dev/null"
d1924 1
a1924 1
ntp configure 4.2.8p11
d2633 1
a2633 1
It was created by ntp $as_me 4.2.8p11, which was
d3634 1
a3634 1
 VERSION='4.2.8p11'
d6584 3
a6586 3
# Check whether --with-hardenfile was given.
if test "${with_hardenfile+set}" = set; then :
  withval=$with_hardenfile;
d6588 1
a6588 1
  with_hardenfile=no
d6596 1
a6596 1
    case "$with_hardenfile" in						\
d6601 1
a6601 1
	scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile"	\
d15940 2
a15941 7
	    ntp_libevent_version="`$PKG_CONFIG --modversion libevent`"
	    case "$ntp_libevent_version" in
	     *.*) ;;
	     *) ntp_libevent_version='(unknown)' ;;
	    esac
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5
$as_echo "yes, version $ntp_libevent_version" >&6; }
d15969 2
a26470 30


# We could do a cv check here, but is it worth it?

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    	#include <sys/socket.h>
	#ifndef AF_UNSPEC
	#include "Bletch: AF_UNSPEC is undefined!"
	#endif
	#if AF_UNSPEC != 0
	#include "Bletch: AF_UNSPEC != 0"
	#endif

int
main ()
{
{ $as_echo "$as_me:${as_lineno-$LINENO}: AF_UNSPEC is zero, as expected." >&5
$as_echo "$as_me: AF_UNSPEC is zero, as expected." >&6;}
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d30117 2
a30118 7
	    ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`"
	    case "$ntp_openssl_version" in
	     *.*) ;;
	     *) ntp_openssl_version='(unknown)' ;;
	    esac
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5
$as_echo "yes, version $ntp_openssl_version" >&6; }
d33927 1
a33927 1
This file was extended by ntp $as_me 4.2.8p11, which was
d33994 1
a33994 1
ntp config.status 4.2.8p11
@


1.1.1.12.10.1
log
@Sync with HEAD.  77 conflicts resolved - all of them $NetBSD$
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p11.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p11'
PACKAGE_STRING='ntp 4.2.8p11'
a946 1
with_hardenfile
d1616 1
a1616 1
\`configure' configures ntp 4.2.8p11 to adapt to many kinds of systems.
d1686 1
a1686 1
     short | recursive ) echo "Configuration of ntp 4.2.8p11:";;
a1701 1
  --with-hardenfile=XXX   os-specific or "/dev/null"
d1924 1
a1924 1
ntp configure 4.2.8p11
d2633 1
a2633 1
It was created by ntp $as_me 4.2.8p11, which was
d3634 1
a3634 1
 VERSION='4.2.8p11'
d6584 3
a6586 3
# Check whether --with-hardenfile was given.
if test "${with_hardenfile+set}" = set; then :
  withval=$with_hardenfile;
d6588 1
a6588 1
  with_hardenfile=no
d6596 1
a6596 1
    case "$with_hardenfile" in						\
d6601 1
a6601 1
	scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile"	\
d15940 2
a15941 7
	    ntp_libevent_version="`$PKG_CONFIG --modversion libevent`"
	    case "$ntp_libevent_version" in
	     *.*) ;;
	     *) ntp_libevent_version='(unknown)' ;;
	    esac
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5
$as_echo "yes, version $ntp_libevent_version" >&6; }
d15969 2
a26470 30


# We could do a cv check here, but is it worth it?

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    	#include <sys/socket.h>
	#ifndef AF_UNSPEC
	#include "Bletch: AF_UNSPEC is undefined!"
	#endif
	#if AF_UNSPEC != 0
	#include "Bletch: AF_UNSPEC != 0"
	#endif

int
main ()
{
{ $as_echo "$as_me:${as_lineno-$LINENO}: AF_UNSPEC is zero, as expected." >&5
$as_echo "$as_me: AF_UNSPEC is zero, as expected." >&6;}
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d30117 2
a30118 7
	    ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`"
	    case "$ntp_openssl_version" in
	     *.*) ;;
	     *) ntp_openssl_version='(unknown)' ;;
	    esac
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5
$as_echo "yes, version $ntp_openssl_version" >&6; }
d33927 1
a33927 1
This file was extended by ntp $as_me 4.2.8p11, which was
d33994 1
a33994 1
ntp config.status 4.2.8p11
@


1.1.1.12.10.2
log
@Ssync with HEAD
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p12.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p12'
PACKAGE_STRING='ntp 4.2.8p12'
a970 1
enable_trustedbsd_mac
d1617 1
a1617 1
\`configure' configures ntp 4.2.8p12 to adapt to many kinds of systems.
d1687 1
a1687 1
     short | recursive ) echo "Configuration of ntp 4.2.8p12:";;
a1733 2
  --enable-trustedbsd-mac s Use TrustedBSD MAC policy for non-root clock
                          control
d1926 1
a1926 1
ntp configure 4.2.8p12
d2635 1
a2635 1
It was created by ntp $as_me 4.2.8p12, which was
d3636 1
a3636 1
 VERSION='4.2.8p12'
d24029 1
a24029 34
for ac_header in sys/mac.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/mac.h" "ac_cv_header_sys_mac_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_mac_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_MAC_H 1
_ACEOF

fi

done


# Check whether --enable-trustedbsd_mac was given.
if test "${enable_trustedbsd_mac+set}" = set; then :
  enableval=$enable_trustedbsd_mac; ntp_use_trustedbsd_mac=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use TrustedBSD MAC privileges" >&5
$as_echo_n "checking if we should use TrustedBSD MAC privileges... " >&6; }

case "$ntp_use_trustedbsd_mac$ac_cv_header_sys_mac_h" in
 yesyes)

$as_echo "#define HAVE_TRUSTEDBSD_MAC 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_trustedbsd_mac" >&5
$as_echo "$ntp_use_trustedbsd_mac" >&6; }

case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs$ntp_use_trustedbsd_mac" in
a30313 13
    for ac_header in openssl/cmac.h openssl/hmac.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

a30536 15
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable CMAC support" >&5
$as_echo_n "checking if we want to enable CMAC support... " >&6; }
case "$ac_cv_header_openssl_cmac_h" in
 yes)

$as_echo "#define ENABLE_CMAC 1" >>confdefs.h

    ans="yes"
    ;;
 *) ans="no"
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

a33225 26
ac_fn_c_check_decl "$LINENO" "sigsetjmp" "ac_cv_have_decl_sigsetjmp" "#include <setjmp.h>
"
if test "x$ac_cv_have_decl_sigsetjmp" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SIGSETJMP $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "siglongjmp" "ac_cv_have_decl_siglongjmp" "#include <setjmp.h>
"
if test "x$ac_cv_have_decl_siglongjmp" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SIGLONGJMP $ac_have_decl
_ACEOF


###

d33967 1
a33967 1
This file was extended by ntp $as_me 4.2.8p12, which was
d34034 1
a34034 1
ntp config.status 4.2.8p12
@


1.1.1.13
log
@---

* [Sec 3454] Unauthenticated packet can reset authenticated interleave
  associations.  HStenn.
* [Sec 3453] Interleaved symmetric mode cannot recover from bad state.  HStenn.
* [Sec 3415] Permit blocking authenticated symmetric/passive associations.
  Implement ippeerlimit.  HStenn, JPerlinger.
* [Sec 3414] ntpq: decodearr() can write beyond its 'buf' limits
  - initial patch by <stenn@@ntp.org>, extended by <perlinger@@ntp.org>
* [Sec 3412] ctl_getitem(): Don't compare names past NUL. <perlinger@@ntp.org>
* [Sec 3012] Sybil vulnerability: noepeer support.  HStenn, JPerlinger.
* [Bug 3457] OpenSSL FIPS mode regression <perlinger@@ntp.org>
* [Bug 3455] ntpd doesn't use scope id when binding multicast <perlinger@@ntp.org>
 - applied patch by Sean Haugh
* [Bug 3452] PARSE driver prints uninitialized memory. <perlinger@@ntp.org>
* [Bug 3450] Dubious error messages from plausibility checks in get_systime()
 - removed error log caused by rounding/slew, ensured postcondition <perlinger@@ntp.org>
* [Bug 3447] AES-128-CMAC (fixes) <perlinger@@ntp.org>
  - refactoring the MAC code, too
* [Bug 3441] Validate the assumption that AF_UNSPEC is 0.  stenn@@ntp.org
* [Bug 3439] When running multiple commands / hosts in ntpq... <perlinger@@ntp.org>
 - applied patch by ggarvey
* [Bug 3438] Negative values and values > 999 days in... <perlinger@@ntp.org>
 - applied patch by ggarvey (with minor mods)
* [Bug 3437] ntpd tries to open socket with AF_UNSPEC domain
 - applied patch (with mods) by Miroslav Lichvar <perlinger@@ntp.org>
* [Bug 3435] anchor NTP era alignment <perlinger@@ntp.org>
* [Bug 3433] sntp crashes when run with -a.  <stenn@@ntp.org>
* [Bug 3430] ntpq dumps core (SIGSEGV) for "keytype md2"
  - fixed several issues with hash algos in ntpd, sntp, ntpq,
    ntpdc and the test suites <perlinger@@ntp.org>
* [Bug 3424] Trimble Thunderbolt 1024 week millenium bug <perlinger@@ntp.org>
  - initial patch by Daniel Pouzzner
* [Bug 3423] QNX adjtime() implementation error checking is
  wrong <perlinger@@ntp.org>
* [Bug 3417] ntpq ifstats packet counters can be negative
  made IFSTATS counter quantities unsigned <perlinger@@ntp.org>
* [Bug 3411] problem about SIGN(6) packet handling for ntp-4.2.8p10
  - raised receive buffer size to 1200 <perlinger@@ntp.org>
* [Bug 3408] refclock_jjy.c: Avoid a wrong report of the coverity static
  analysis tool. <abe@@ntp.org>
* [Bug 3405] update-leap.in: general cleanup, HTTPS support.  Paul McMath.
* [Bug 3404] Fix openSSL DLL usage under Windows <perlinger@@ntp.org>
  - fix/drop assumptions on OpenSSL libs directory layout
* [Bug 3399] NTP: linker error in 4.2.8p10 during Linux cross-compilation
  - initial patch by timeflies@@mail2tor.com  <perlinger@@ntp.org>
* [Bug 3398] tests fail with core dump <perlinger@@ntp.org>
  - patch contributed by Alexander Bluhm
* [Bug 3397] ctl_putstr() asserts that data fits in its buffer
  rework of formatting & data transfer stuff in 'ntp_control.c'
  avoids unecessary buffers and size limitations. <perlinger@@ntp.org>
* [Bug 3394] Leap second deletion does not work on ntpd clients
  - fixed handling of dynamic deletion w/o leap file <perlinger@@ntp.org>
* [Bug 3391] ntpd segfaults on startup due to small warmup thread stack size
  - increased mimimum stack size to 32kB <perlinger@@ntp.org>
* [Bug 3367] Faulty LinuxPPS NMEA clock support in 4.2.8 <perlinger@@ntp.org>
  - reverted handling of PPS kernel consumer to 4.2.6 behavior
* [Bug 3365] Updates driver40(-ja).html and miscopt.html <abe@@ntp.org>
* [Bug 3358] Spurious KoD log messages in .INIT. phase.  HStenn.
* [Bug 3016] wrong error position reported for bad ":config pool"
  - fixed location counter & ntpq output <perlinger@@ntp.org>
* [Bug 2900] libntp build order problem.  HStenn.
* [Bug 2878] Tests are cluttering up syslog <perlinger@@ntp.org>
* [Bug 2737] Wrong phone number listed for USNO. ntp-bugs@@bodosom.net,
  perlinger@@ntp.org
* [Bug 2557] Fix Thunderbolt init. ntp-bugs@@bodosom.net, perlinger@@ntp.
* [Bug 948] Trustedkey config directive leaks memory. <perlinger@@ntp.org>
* Use strlcpy() to copy strings, not memcpy().  HStenn.
* Typos.  HStenn.
* test_ntp_scanner_LDADD needs ntpd/ntp_io.o.  HStenn.
* refclock_jjy.c: Add missing "%s" to an msyslog() call.  HStenn.
* Build ntpq and libntpq.a with NTP_HARD_*FLAGS.  perlinger@@ntp.org
* Fix trivial warnings from 'make check'. perlinger@@ntp.org
* Fix bug in the override portion of the compiler hardening macro. HStenn.
* record_raw_stats(): Log entire packet.  Log writes.  HStenn.
* AES-128-CMAC support.  BInglis, HStenn, JPerlinger.
* sntp: tweak key file logging.  HStenn.
* sntp: pkt_output(): Improve debug output.  HStenn.
* update-leap: updates from Paul McMath.
* When using pkg-config, report --modversion.  HStenn.
* Clean up libevent configure checks.  HStenn.
* sntp: show the IP of who sent us a crypto-NAK.  HStenn.
* Allow .../N to specify subnet bits for IPs in ntp.keys.  HStenn, JPerlinger.
* authistrustedip() - use it in more places.  HStenn, JPerlinger.
* New sysstats: sys_lamport, sys_tsrounding.  HStenn.
* Update ntp.keys .../N documentation.  HStenn.
* Distribute testconf.yml.  HStenn.
* Add DPRINTF(2,...) lines to receive() for packet drops.  HStenn.
* Rename the configuration flag fifo variables.  HStenn.
* Improve saveconfig output.  HStenn.
* Decode restrict flags on receive() debug output.  HStenn.
* Decode interface flags on receive() debug output.  HStenn.
* Warn the user if deprecated "driftfile name WanderThreshold" is used.  HStenn.
* Update the documentation in ntp.conf.def .  HStenn.
* restrictions() must return restrict flags and ippeerlimit.  HStenn.
* Update ntpq peer documentation to describe the 'p' type.  HStenn.
* Rename restrict 'flags' to 'rflags.  Use an enum for the values.  HStenn.
* Provide dump_restricts() for debugging.  HStenn.
* Use consistent 4th arg type for [gs]etsockopt.  JPerlinger.
* Some tests might need LIBM.  HStenn.
* update-leap: Allow -h/--help early.  HStenn.
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p11.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p11'
PACKAGE_STRING='ntp 4.2.8p11'
a946 1
with_hardenfile
d1616 1
a1616 1
\`configure' configures ntp 4.2.8p11 to adapt to many kinds of systems.
d1686 1
a1686 1
     short | recursive ) echo "Configuration of ntp 4.2.8p11:";;
a1701 1
  --with-hardenfile=XXX   os-specific or "/dev/null"
d1924 1
a1924 1
ntp configure 4.2.8p11
d2633 1
a2633 1
It was created by ntp $as_me 4.2.8p11, which was
d3634 1
a3634 1
 VERSION='4.2.8p11'
d6584 3
a6586 3
# Check whether --with-hardenfile was given.
if test "${with_hardenfile+set}" = set; then :
  withval=$with_hardenfile;
d6588 1
a6588 1
  with_hardenfile=no
d6596 1
a6596 1
    case "$with_hardenfile" in						\
d6601 1
a6601 1
	scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile"	\
d15940 2
a15941 7
	    ntp_libevent_version="`$PKG_CONFIG --modversion libevent`"
	    case "$ntp_libevent_version" in
	     *.*) ;;
	     *) ntp_libevent_version='(unknown)' ;;
	    esac
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5
$as_echo "yes, version $ntp_libevent_version" >&6; }
d15969 2
a26470 30


# We could do a cv check here, but is it worth it?

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    	#include <sys/socket.h>
	#ifndef AF_UNSPEC
	#include "Bletch: AF_UNSPEC is undefined!"
	#endif
	#if AF_UNSPEC != 0
	#include "Bletch: AF_UNSPEC != 0"
	#endif

int
main ()
{
{ $as_echo "$as_me:${as_lineno-$LINENO}: AF_UNSPEC is zero, as expected." >&5
$as_echo "$as_me: AF_UNSPEC is zero, as expected." >&6;}
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

d30117 2
a30118 7
	    ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`"
	    case "$ntp_openssl_version" in
	     *.*) ;;
	     *) ntp_openssl_version='(unknown)' ;;
	    esac
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5
$as_echo "yes, version $ntp_openssl_version" >&6; }
d33927 1
a33927 1
This file was extended by ntp $as_me 4.2.8p11, which was
d33994 1
a33994 1
ntp config.status 4.2.8p11
@


1.1.1.13.2.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p12.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p12'
PACKAGE_STRING='ntp 4.2.8p12'
a970 1
enable_trustedbsd_mac
d1617 1
a1617 1
\`configure' configures ntp 4.2.8p12 to adapt to many kinds of systems.
d1687 1
a1687 1
     short | recursive ) echo "Configuration of ntp 4.2.8p12:";;
a1733 2
  --enable-trustedbsd-mac s Use TrustedBSD MAC policy for non-root clock
                          control
d1926 1
a1926 1
ntp configure 4.2.8p12
d2635 1
a2635 1
It was created by ntp $as_me 4.2.8p12, which was
d3636 1
a3636 1
 VERSION='4.2.8p12'
d24029 1
a24029 34
for ac_header in sys/mac.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/mac.h" "ac_cv_header_sys_mac_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_mac_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_MAC_H 1
_ACEOF

fi

done


# Check whether --enable-trustedbsd_mac was given.
if test "${enable_trustedbsd_mac+set}" = set; then :
  enableval=$enable_trustedbsd_mac; ntp_use_trustedbsd_mac=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use TrustedBSD MAC privileges" >&5
$as_echo_n "checking if we should use TrustedBSD MAC privileges... " >&6; }

case "$ntp_use_trustedbsd_mac$ac_cv_header_sys_mac_h" in
 yesyes)

$as_echo "#define HAVE_TRUSTEDBSD_MAC 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_trustedbsd_mac" >&5
$as_echo "$ntp_use_trustedbsd_mac" >&6; }

case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs$ntp_use_trustedbsd_mac" in
a30313 13
    for ac_header in openssl/cmac.h openssl/hmac.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

a30536 15
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable CMAC support" >&5
$as_echo_n "checking if we want to enable CMAC support... " >&6; }
case "$ac_cv_header_openssl_cmac_h" in
 yes)

$as_echo "#define ENABLE_CMAC 1" >>confdefs.h

    ans="yes"
    ;;
 *) ans="no"
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

a33225 26
ac_fn_c_check_decl "$LINENO" "sigsetjmp" "ac_cv_have_decl_sigsetjmp" "#include <setjmp.h>
"
if test "x$ac_cv_have_decl_sigsetjmp" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SIGSETJMP $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "siglongjmp" "ac_cv_have_decl_siglongjmp" "#include <setjmp.h>
"
if test "x$ac_cv_have_decl_siglongjmp" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SIGLONGJMP $ac_have_decl
_ACEOF


###

d33967 1
a33967 1
This file was extended by ntp $as_me 4.2.8p12, which was
d34034 1
a34034 1
ntp config.status 4.2.8p12
@


1.1.1.14
log
@---
(4.2.8p12) 2018/08/14 Released by Harlan Stenn <stenn@@ntp.org>

* [Sec 3505] CVE-2018-12327 - Arbitrary Code Execution Vulnerability
  - fixed stack buffer overflow in the openhost() command-line call
    of NTPQ/NTPDC <perlinger@@ntp.org>
* [Sec 3012] noepeer tweaks.  <stenn@@ntp.org>
* [Bug 3521] Fix a logic bug in the INVALIDNAK checks.  <stenn@@ntp.org>
* [Bug 3509] Add support for running as non-root on FreeBSD, Darwin,
             other TrustedBSD platforms
  - applied patch by Ian Lepore <perlinger@@ntp.org>
* [Bug 3506] Service Control Manager interacts poorly with NTPD <perlinger@@ntp.org>
  - changed interaction with SCM to signal pending startup
* [Bug 3486] Buffer overflow in ntpq/ntpq.c:tstflags() <perlinger@@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3485] Undefined sockaddr used in error messages in ntp_config.c <perlinger@@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3484] ntpq response from ntpd is incorrect when REFID is null <perlinger@@ntp.org>
  - rework of ntpq 'nextvar()' key/value parsing
* [Bug 3482] Fixes for compilation warnings (ntp_io.c & ntpq-subs.c) <perlinger@@ntp.org>
  - applied patch by Gerry Garvey (with mods)
* [Bug 3480] Refclock sample filter not cleared on clock STEP <perlinger@@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3479] ctl_putrefid() allows unsafe characters through to ntpq <perlinger@@ntp.org>
  - applied patch by Gerry Garvey (with mods)
* [Bug 3476]ctl_putstr() sends empty unquoted string [...] <perlinger@@ntp.org>
  - applied patch by Gerry Garvey (with mods); not sure if that's bug or feature, though
* [Bug 3475] modify prettydate() to suppress output of zero time <perlinger@@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3474] Missing pmode in mode7 peer info response <perlinger@@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3471] Check for openssl/[ch]mac.h.  HStenn.
  - add #define ENABLE_CMAC support in configure.  HStenn.
* [Bug 3470] ntpd4.2.8p11 fails to compile without OpenSSL <perlinger@@ntp.org>
* [Bug 3469] Incomplete string compare [...] in is_refclk_addr <perlinger@@ntp.org>
  - patch by Stephen Friedl
* [Bug 3467] Potential memory fault in ntpq [...] <perlinger@@ntp.org>
  - fixed IO redirection and CTRL-C handling in ntq and ntpdc
* [Bug 3465] Default TTL values cannot be used <perlinger@@ntp.org>
* [Bug 3461] refclock_shm.c: clear error status on clock recovery <perlinger@@ntp.org>
  - initial patch by Hal Murray; also fixed refclock_report() trouble
* [Bug 3460] Fix typo in ntpq.texi, reported by Kenyon Ralph.  <stenn@@ntp.org>
* [Bug 3456] Use uintptr_t rather than size_t to store an integer in a pointer
  - According to Brooks Davis, there was only one location <perlinger@@ntp.org>
* [Bug 3449] ntpq - display "loop" instead of refid [...] <perlinger@@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3445] Symmetric peer won't sync on startup <perlinger@@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3442] Fixes for ntpdate as suggested by Gerry Garvey,
  with modifications
  New macro REFID_ISTEXT() which is also used in ntpd/ntp_control.c.
* [Bug 3434] ntpd clears STA_UNSYNC on start <perlinger@@ntp.org>
  - applied patch by Miroslav Lichvar
* [Bug 3426] ntpdate.html -t default is 2 seconds.  Leonid Evdokimov.
* [Bug 3121] Drop root privileges for the forked DNS worker <perlinger@@ntp.org>
  - integrated patch by  Reinhard Max
* [Bug 2821] minor build issues <perlinger@@ntp.org>
  - applied patches by Christos Zoulas, including real bug fixes
* html/authopt.html: cleanup, from <stenn@@ntp.org>
* ntpd/ntpd.c: DROPROOT cleanup.  <stenn@@ntp.org>
* Symmetric key range is 1-65535.  Update docs.  <stenn@@ntp.org>
* html/authentic.html: cleanup, from <stenn@@ntp.org>
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p12.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p12'
PACKAGE_STRING='ntp 4.2.8p12'
a970 1
enable_trustedbsd_mac
d1617 1
a1617 1
\`configure' configures ntp 4.2.8p12 to adapt to many kinds of systems.
d1687 1
a1687 1
     short | recursive ) echo "Configuration of ntp 4.2.8p12:";;
a1733 2
  --enable-trustedbsd-mac s Use TrustedBSD MAC policy for non-root clock
                          control
d1926 1
a1926 1
ntp configure 4.2.8p12
d2635 1
a2635 1
It was created by ntp $as_me 4.2.8p12, which was
d3636 1
a3636 1
 VERSION='4.2.8p12'
d24029 1
a24029 34
for ac_header in sys/mac.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/mac.h" "ac_cv_header_sys_mac_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_mac_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_MAC_H 1
_ACEOF

fi

done


# Check whether --enable-trustedbsd_mac was given.
if test "${enable_trustedbsd_mac+set}" = set; then :
  enableval=$enable_trustedbsd_mac; ntp_use_trustedbsd_mac=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use TrustedBSD MAC privileges" >&5
$as_echo_n "checking if we should use TrustedBSD MAC privileges... " >&6; }

case "$ntp_use_trustedbsd_mac$ac_cv_header_sys_mac_h" in
 yesyes)

$as_echo "#define HAVE_TRUSTEDBSD_MAC 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_trustedbsd_mac" >&5
$as_echo "$ntp_use_trustedbsd_mac" >&6; }

case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs$ntp_use_trustedbsd_mac" in
a30313 13
    for ac_header in openssl/cmac.h openssl/hmac.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

a30536 15
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable CMAC support" >&5
$as_echo_n "checking if we want to enable CMAC support... " >&6; }
case "$ac_cv_header_openssl_cmac_h" in
 yes)

$as_echo "#define ENABLE_CMAC 1" >>confdefs.h

    ans="yes"
    ;;
 *) ans="no"
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

a33225 26
ac_fn_c_check_decl "$LINENO" "sigsetjmp" "ac_cv_have_decl_sigsetjmp" "#include <setjmp.h>
"
if test "x$ac_cv_have_decl_sigsetjmp" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SIGSETJMP $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "siglongjmp" "ac_cv_have_decl_siglongjmp" "#include <setjmp.h>
"
if test "x$ac_cv_have_decl_siglongjmp" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SIGLONGJMP $ac_have_decl
_ACEOF


###

d33967 1
a33967 1
This file was extended by ntp $as_me 4.2.8p12, which was
d34034 1
a34034 1
ntp config.status 4.2.8p12
@


1.1.1.15
log
@(4.2.8p14) 2020/03/03 Released by Harlan Stenn <stenn@@ntp.org>

* [Sec 3610] process_control() should bail earlier on short packets. stenn@@
  - Reported by Philippe Antoine
* [Sec 3596] Highly predictable timestamp attack. <stenn@@ntp.org>
  - Reported by Miroslav Lichvar
* [Sec 3592] DoS attack on client ntpd <perlinger@@ntp.org>
  - Reported by Miroslav Lichvar
* [Bug 3637] Emit the version of ntpd in saveconfig.  stenn@@
* [Bug 3636] NMEA: combine time/date from multiple sentences <perlinger@@ntp.org>
* [Bug 3635] Make leapsecond file hash check optional <perlinger@@ntp.org>
* [Bug 3634] Typo in discipline.html, reported by Jason Harrison.  stenn@@
* [Bug 3628] raw DCF decoding - improve robustness with Zeller's congruence
  - implement Zeller's congruence in libparse and libntp <perlinger@@ntp.org>
* [Bug 3627] SIGSEGV on FreeBSD-12 with stack limit and stack gap <perlinger@@ntp.org>
  - integrated patch by Cy Schubert
* [Bug 3620] memory leak in ntpq sysinfo <perlinger@@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3619] Honour drefid setting in cooked mode and sysinfo <perlinger@@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3617] Add support for ACE III and Copernicus II receivers <perlinger@@ntp.org>
  - integrated patch by Richard Steedman
* [Bug 3615] accelerate refclock startup <perlinger@@ntp.org>
* [Bug 3613] Propagate noselect to mobilized pool servers <stenn@@ntp.org>
  - Reported by Martin Burnicki
* [Bug 3612] Use-of-uninitialized-value in receive function <perlinger@@ntp.org>
  - Reported by Philippe Antoine
* [Bug 3611] NMEA time interpreted incorrectly <perlinger@@ntp.org>
  - officially document new "trust date" mode bit for NMEA driver
  - restore the (previously undocumented) "trust date" feature lost with [bug 3577]
* [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter <perlinger@@ntp.org>
  - mostly based on a patch by Michael Haardt, implementing 'fudge minjitter'
* [Bug 3608] libparse fails to compile on S11.4SRU13 and later <perlinger@@ntp.org>
  - removed ffs() and fls() prototypes as per Brian Utterback
* [Bug 3604] Wrong param byte order passing into record_raw_stats() in
	ntp_io.c <perlinger@@ntp.org>
  - fixed byte and paramter order as suggested by wei6410@@sina.com
* [Bug 3601] Tests fail to link on platforms with ntp_cv_gc_sections_runs=no <perlinger@@ntp.org>
* [Bug 3599] Build fails on linux-m68k due to alignment issues <perlinger@@ntp.org>
  - added padding as suggested by John Paul Adrian Glaubitz
* [Bug 3594] ntpd discards messages coming through nmead <perlinger@@ntp.org>
* [Bug 3593] ntpd discards silently nmea messages after the 5th string <perlinger@@ntp.org>
* [Bug 3590] Update refclock_oncore.c to the new GPS date API <perlinger@@ntp.org>
* [Bug 3585] Unity tests mix buffered and unbuffered output <perlinger@@ntp.org>
  - stdout+stderr are set to line buffered during test setup now
* [Bug 3583] synchronization error <perlinger@@ntp.org>
  - set clock to base date if system time is before that limit
* [Bug 3582] gpsdjson refclock fudgetime1 adjustment is doubled <perlinger@@ntp.org>
* [Bug 3580] Possible bug ntpq-subs (NULL dereference in dogetassoc) <perlinger@@ntp.org>
  - Reported by Paulo Neves
* [Bug 3577] Update refclock_zyfer.c to the new GPS date API <perlinger@@ntp.org>
  - also updates for refclock_nmea.c and refclock_jupiter.c
* [Bug 3576] New GPS date function API <perlinger@@ntp.org>
* [Bug 3573] nptdate: missleading error message <perlinger@@ntp.org>
* [Bug 3570] NMEA driver docs: talker ID not mentioned, typo <perlinger@@ntp.org>
* [Bug 3569] cleanup MOD_NANO/STA_NANO handling for 'ntpadjtimex()' <perlinger@@ntp.org>
  - sidekick: service port resolution in 'ntpdate'
* [Bug 3550] Reproducible build: Respect SOURCE_DATE_EPOCH <perlinger@@ntp.org>
  - applied patch by Douglas Royds
* [Bug 3542] ntpdc monlist parameters cannot be set <perlinger@@ntp.org>
* [Bug 3533] ntpdc peer_info ipv6 issues <perlinger@@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3531] make check: test-decodenetnum fails <perlinger@@ntp.org>
  - try to harden 'decodenetnum()' against 'getaddrinfo()' errors
  - fix wrong cond-compile tests in unit tests
* [Bug 3517] Reducing build noise <perlinger@@ntp.org>
* [Bug 3516] Require tooling from this decade <perlinger@@ntp.org>
  - patch by Philipp Prindeville
* [Bug 3515] Refactor ntpdmain() dispatcher loop and group common code <perlinger@@ntp.org>
  - patch by Philipp Prindeville
* [Bug 3511] Get rid of AC_LANG_SOURCE() warnings <perlinger@@ntp.org>
  - patch by Philipp Prindeville
* [Bug 3510] Flatten out the #ifdef nesting in ntpdmain() <perlinger@@ntp.org>
  - partial application of patch by Philipp Prindeville
* [Bug 3491] Signed values of LFP datatypes should always display a sign
  - applied patch by Gerry Garvey & fixed unit tests <perlinger@@ntp.org>
* [Bug 3490] Patch to support Trimble Resolution Receivers <perlinger@@ntp.org>
  - applied (modified) patch by Richard Steedman
* [Bug 3473] RefID of refclocks should always be text format <perlinger@@ntp.org>
  - applied patch by Gerry Garvey (with minor formatting changes)
* [Bug 3132] Building 4.2.8p8 with disabled local libopts fails <perlinger@@ntp.org>
  - applied patch by Miroslav Lichvar
* [Bug 3094] ntpd trying to listen for broadcasts on a completely ipv6 network
  <perlinger@@ntp.org>
* [Bug 2420] ntpd doesn't run and exits with retval 0 when invalid user
             is specified with -u <perlinger@@ntp.org>
  - monitor daemon child startup & propagate exit codes
* [Bug 1433] runtime check whether the kernel really supports capabilities
  - (modified) patch by Kurt Roeckx <perlinger@@ntp.org>
* Clean up sntp/networking.c:sendpkt() error message.  <stenn@@ntp.org>
* Provide more detail on unrecognized config file parser tokens. <stenn@@ntp.org>
* Startup log improvements. <stenn@@ntp.org>
* Update the copyright year.
* html/confopt.html: cleanup. <stenn@@ntp.org>

---
(4.2.8p13) 2019/03/07 Released by Harlan Stenn <stenn@@ntp.org>

* [Sec 3565] Crafted null dereference attack in authenticated
	     mode 6 packet <perlinger@@ntp.org>
  - reported by Magnus Stubman
* [Bug 3560] Fix build when HAVE_DROPROOT is not defined <perlinger@@ntp.org>
  - applied patch by Ian Lepore
* [Bug 3558] Crash and integer size bug <perlinger@@ntp.org>
  - isolate and fix linux/windows specific code issue
* [Bug 3556] ntp_loopfilter.c snprintf compilation warnings <perlinger@@ntp.org>
  - provide better function for incremental string formatting
* [Bug 3555] Tidy up print alignment of debug output from ntpdate <perlinger@@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3554] config revoke stores incorrect value <perlinger@@ntp.org>
  - original finding by Gerry Garvey, additional cleanup needed
* [Bug 3549] Spurious initgroups() error message <perlinger@@ntp.org>
  - patch by Christous Zoulas
* [Bug 3548] Signature not verified on windows system <perlinger@@ntp.org>
  - finding by Chen Jiabin, plus another one by me
* [Bug 3541] patch to fix STA_NANO struct timex units <perlinger@@ntp.org>
  - applied patch by Maciej Szmigiero
* [Bug 3540] Cannot set minsane to 0 anymore <perlinger@@ntp.org>
  - applied patch by Andre Charbonneau
* [Bug 3539] work_fork build fails when droproot is not supported <perlinger@@ntp.org>
  - applied patch by Baruch Siach
* [Bug 3538] Build fails for no-MMU targets <perlinger@@ntp.org>
  - applied patch by Baruch Siach
* [Bug 3535] libparse won't handle GPS week rollover <perlinger@@ntp.org>
  - refactored handling of GPS era based on 'tos basedate' for
    parse (TSIP) and JUPITER clocks
* [Bug 3529] Build failures on Mac OS X 10.13 (High Sierra) <perlinger@@ntp.org>
  - patch by Daniel J. Luke; this does not fix a potential linker
    regression issue on MacOS.
* [Bug 3527 - Backward Incompatible] mode7 clockinfo fudgeval2 packet
  anomaly <perlinger@@ntp.org>, reported by GGarvey.
  - --enable-bug3527-fix support by HStenn
* [Bug 3526] Incorrect poll interval in packet <perlinger@@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3471] Check for openssl/[ch]mac.h.  <perlinger@@ntp.org>
  - added missing check, reported by Reinhard Max <perlinger@@ntp.org>
* [Bug 1674] runtime crashes and sync problems affecting both x86 and x86_64
  - this is a variant of [bug 3558] and should be fixed with it
* Implement --disable-signalled-io
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p14.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p14'
PACKAGE_STRING='ntp 4.2.8p14'
a971 1
enable_signalled_io
a1053 1
enable_bug3527_fix
d1618 1
a1618 1
\`configure' configures ntp 4.2.8p14 to adapt to many kinds of systems.
d1688 1
a1688 1
     short | recursive ) echo "Configuration of ntp 4.2.8p14:";;
a1736 1
  --enable-signalled-io   s Use signalled IO if we can
a1828 1
  --enable-bug3527-fix    + provide correct mode7 fudgetime2 behavior
d1929 1
a1929 1
ntp configure 4.2.8p14
d2638 1
a2638 1
It was created by ntp $as_me 4.2.8p14, which was
d3639 1
a3639 1
 VERSION='4.2.8p14'
d5119 2
d5141 8
d16096 3
a16098 3
         implementations with broken preprocessors.  Perhaps this can
         be revisited in 2012.  In the meantime, code should not expect
         #if to work with literals wider than 32 bits.  */
d16105 1
a16105 1
                     ? 1 : -1)];
d16107 1
a16107 1
                     ? 1 : -1)];
d16116 3
a16118 3
              | (llmax / ll) | (llmax % ll)
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
              | (ullmax / ull) | (ullmax % ull));
d16306 3
a16308 3
        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
        if test $ac_cv_type_long_long_int = yes; then
                                        if test "$cross_compiling" = yes; then :
d16314 5
a16318 5
                 #ifndef LLONG_MAX
                 # define HALF \
                          (1LL << (sizeof (long long int) * CHAR_BIT - 2))
                 # define LLONG_MAX (HALF - 1 + HALF)
                 #endif
d16323 10
a16332 10
                 int i;
                 for (i = 0; ; i++)
                   {
                     long long int m = n << i;
                     if (m >> i != n)
                       return 1;
                     if (LLONG_MAX / 2 < m)
                       break;
                   }
                 return 0;
d16346 1
a16346 1
        fi
d16369 3
a16371 3
         implementations with broken preprocessors.  Perhaps this can
         be revisited in 2012.  In the meantime, code should not expect
         #if to work with literals wider than 32 bits.  */
d16378 1
a16378 1
                     ? 1 : -1)];
d16380 1
a16380 1
                     ? 1 : -1)];
d16389 3
a16391 3
              | (llmax / ll) | (llmax % ll)
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
              | (ullmax / ull) | (ullmax % ull));
a24026 3
    ;;
 '') ntp_have_solarisprivs="no"
    ;;
a24059 3
    ;;
 *) ntp_use_trustedbsd_mac="no";
    ;;
a24578 10
# HMS: does this need to be a cached variable?
# Check whether --enable-signalled-io was given.
if test "${enable_signalled_io+set}" = set; then :
  enableval=$enable_signalled_io; use_signalled_io=$enableval
else
  use_signalled_io=yes

fi


a24652 5
    case "$ans" in
     no)
	ans="Possible for $host but disabled because of reported problems"
	;;
    esac
a24656 2
    case "$use_signalled_io" in
     yes)
a24659 4
	;;
     *) ans="Allowed for $host but --disable-signalled-io was given"
	;;
    esac
a26072 11
for ac_func in waitpid
do :
  ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
if test "x$ac_cv_func_waitpid" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_WAITPID 1
_ACEOF

fi
done

a28665 56
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bcStartPci" >&5
$as_echo_n "checking for library containing bcStartPci... " >&6; }
if ${ac_cv_search_bcStartPci+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char bcStartPci ();
int
main ()
{
return bcStartPci ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' bcsdk; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_bcStartPci=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_bcStartPci+:} false; then :
  break
fi
done
if ${ac_cv_search_bcStartPci+:} false; then :

else
  ac_cv_search_bcStartPci=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bcStartPci" >&5
$as_echo "$ac_cv_search_bcStartPci" >&6; }
ac_res=$ac_cv_search_bcStartPci
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

a32001 20
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want correct mode7 fudgetime2 behavior" >&5
$as_echo_n "checking if we want correct mode7 fudgetime2 behavior... " >&6; }
# Check whether --enable-bug3527-fix was given.
if test "${enable_bug3527_fix+set}" = set; then :
  enableval=$enable_bug3527_fix; ans=$enableval
else
  ans=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 no)

$as_echo "#define DISABLE_BUG3527_FIX 1" >>confdefs.h

esac


a33236 4
case "$ntp_cv_gc_sections_runs" in
  no) ntp_test_ntp_restrict="no" ;;
  * ) ;;
esac
a33255 4
case "$ntp_cv_gc_sections_runs" in
  no) ntp_test_ntp_scanner="no" ;;
  * ) ;;
esac
a33274 4
case "$ntp_cv_gc_sections_runs" in
  no) ntp_test_ntp_signd="no" ;;
  * ) ;;
esac
d34057 1
a34057 1
This file was extended by ntp $as_me 4.2.8p14, which was
d34124 1
a34124 1
ntp config.status 4.2.8p14
@


1.1.1.16
log
@(4.2.8p15) 2020/06/23 Released by Harlan Stenn <stenn@@ntp.org>

* [Sec 3661] memory leak with AES128CMAC keys <perlinger@@ntp.org>
* [Bug 3670] Regression from bad merge of 3592 and 3596 <perlinger@@ntp.org>
  - fixed a bad merge that happened before 4.2.8-p14. Thanks to
    Sylar Tao for noticing this!
* [Bug 3667] decodenetnum fails with numeric port <perlinger@@ntp.org>
  - rewrite 'decodenetnum()' in terms of inet_pton
* [Bug 3666] avoid unlimited receive buffer allocation <perlinger@@ntp.org>
  - limit number of receive buffers, with an iron reserve for refclocks
* [Bug 3664] Enable openSSL CMAC support on Windows <burnicki@@ntp.org>
* [Bug 3662] Fix build errors on Windows with VS2008 <burnicki@@ntp.org>
* [Bug 3660] Manycast orphan mode startup discovery problem. <stenn@@ntp.org>
  - integrated patch from Charles Claggett
* [Bug 3659] Move definition of psl[] from ntp_config.h to
  ntp_config.h <perlinger@@ntp.org>
* [Bug 3657] Wrong "Autokey group mismatch" debug message <perlinger@@ntp.org>
* [Bug 3655] ntpdc memstats hash counts <perlinger@@ntp.org>
  - fix by Gerry garvey
* [Bug 3653] Refclock jitter RMS calculation <perlinger@@ntp.org>
  - thanks to Gerry Garvey
* [Bug 3646] Avoid sync with unsync orphan <perlinger@@ntp.org>
  - patch by Gerry Garvey
* [Bug 3644] Unsynchronized server [...] selected as candidate <perlinger@@ntp.org>
* [Bug 3639] refclock_jjy: TS-JJY0x can skip time sync depending on the STUS reply. <abe@@ntp.org>
  - applied patch by Takao Abe
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.69 for ntp 4.2.8p15.
d593 2
a594 2
PACKAGE_VERSION='4.2.8p15'
PACKAGE_STRING='ntp 4.2.8p15'
d1620 1
a1620 1
\`configure' configures ntp 4.2.8p15 to adapt to many kinds of systems.
d1690 1
a1690 1
     short | recursive ) echo "Configuration of ntp 4.2.8p15:";;
d1933 1
a1933 1
ntp configure 4.2.8p15
d2642 1
a2642 1
It was created by ntp $as_me 4.2.8p15, which was
d3643 1
a3643 1
 VERSION='4.2.8p15'
d27311 1
a27311 1
for ac_func in strdup strnlen memchr strerror setrlimit strchr
d34177 1
a34177 1
This file was extended by ntp $as_me 4.2.8p15, which was
d34244 1
a34244 1
ntp config.status 4.2.8p15
@


1.1.1.16.4.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.71 for ntp 4.2.8p18.
d5 1
a5 1
# Report bugs to <https://bugs.ntp.org/>.
d8 1
a8 2
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
# Inc.
d19 1
a19 3
as_nop=:
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
d26 1
a26 1
else $as_nop
a35 8

# Reset variables that may have inherited troublesome values from
# the environment.

# IFS needs to be set, to space, tab, and newline, in precisely that order.
# (If _AS_PATH_WALK were called with IFS unset, it would have the
# side effect of setting IFS to empty, thus disabling word splitting.)
# Quoting is to prevent editors from complaining about space-tab.
d39 34
a72 26
IFS=" ""	$as_nl"

PS1='$ '
PS2='> '
PS4='+ '

# Ensure predictable behavior from utilities with locale-dependent output.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# We cannot yet rely on "unset" to work, but we need these variables
# to be unset--not just set to an empty or harmless value--now, to
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
# also avoids known problems related to "unset" and subshell syntax
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
do eval test \${$as_var+y} \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done

# Ensure that fds 0, 1, and 2 are open.
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
d75 1
a75 1
if ${PATH_SEPARATOR+false} :; then
d84 7
d99 2
a100 6
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
d112 1
a112 1
  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
d116 20
d157 2
a158 2
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
d163 1
a163 3
  as_bourne_compatible="as_nop=:
if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
d170 1
a170 1
else \$as_nop
d190 1
a190 2
if ( set x; as_fn_ret_success y && test x = \"\$1\" )
then :
d192 1
a192 1
else \$as_nop
a195 2
blah=\$(echo \$(echo blah))
test x\"\$blah\" = xblah || exit 1
d201 1
d209 2
a210 4
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
test \$(( 1 + 1 )) = 2 || exit 1"
  if (eval "$as_required") 2>/dev/null
then :
d212 1
a212 1
else $as_nop
d215 1
a215 2
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
then :
d217 1
a217 1
else $as_nop
d223 1
a223 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d229 1
a229 1
	     as_shell=$as_dir$as_base
d231 1
a231 2
		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
then :
d233 1
a233 2
		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
then :
d241 4
a245 10
if $as_found
then :

else $as_nop
  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi
fi
d248 1
a248 2
      if test "x$CONFIG_SHELL" != x
then :
d266 1
a266 1
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
d270 6
a275 7
    if test x$as_have_required = xno
then :
  printf "%s\n" "$0: This script requires a shell more modern than all"
  printf "%s\n" "$0: the shells that I found on your system."
  if test ${ZSH_VERSION+y} ; then
    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
d277 2
a278 2
    printf "%s\n" "$0: Please tell bug-autoconf@@gnu.org and
$0: https://bugs.ntp.org/ about your system, including any
a304 1

a321 8
# as_fn_nop
# ---------
# Do nothing but, unlike ":", preserve the value of $?.
as_fn_nop ()
{
  return $?
}
as_nop=as_fn_nop
d336 1
a336 1
      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
d345 1
a345 1
printf "%s\n" X"$as_dir" |
d384 1
a384 2
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
then :
d389 1
a389 1
else $as_nop
d401 1
a401 2
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
then :
d406 1
a406 1
else $as_nop
a412 8
# as_fn_nop
# ---------
# Do nothing but, unlike ":", preserve the value of $?.
as_fn_nop ()
{
  return $?
}
as_nop=as_fn_nop
d424 1
a424 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
d426 1
a426 1
  printf "%s\n" "$as_me: error: $2" >&2
d453 1
a453 1
printf "%s\n" X/"$0" |
d497 1
a497 1
    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
a510 4

# Determine whether it's possible to make 'echo' print without a newline.
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
# for compatibility with existing Makefiles.
a523 7
# For backward compatibility with old third-party macros, we provide
# the shell variables $as_echo and $as_echo_n.  New code should use
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
as_echo='printf %s\n'
as_echo_n='printf %s'


d593 4
a596 4
PACKAGE_VERSION='4.2.8p18'
PACKAGE_STRING='ntp 4.2.8p18'
PACKAGE_BUGREPORT='https://bugs.ntp.org/'
PACKAGE_URL='https://www.ntp.org/'
d600 6
a605 3
#include <stddef.h>
#ifdef HAVE_STDIO_H
# include <stdio.h>
d607 1
a607 1
#ifdef HAVE_STDLIB_H
d609 5
d616 3
d621 3
a629 9
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
d634 1
a634 2
ac_header_c_list=
ac_func_c_list=
d648 7
d681 1
a692 4
PATH_OPENSSL
VER_SUFFIX
LIBNTP_SUBMAKES_FALSE
LIBNTP_SUBMAKES_TRUE
a741 2
EGREP
GREP
a839 1
CPP
d844 3
a846 1
CC_NOFORMAT
d854 1
a875 3
CSCOPE
ETAGS
CTAGS
a917 1
runstatedir
d936 1
a936 2
SHELL
am__quote'
a945 1
enable_build_framework_help
d973 1
a973 5
with_crypto
with_openssl_libdir
with_openssl_incdir
enable_verbose_ssl
enable_openssl_random
d1035 5
a1055 1
enable_bug3767_fix
a1058 1
enable_magicpps
d1065 1
a1117 1
runstatedir='${localstatedir}/run'
d1147 2
d1189 1
a1189 1
      as_fn_error $? "invalid feature name: \`$ac_useropt'"
d1191 1
a1191 1
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
d1215 1
a1215 1
      as_fn_error $? "invalid feature name: \`$ac_useropt'"
d1217 1
a1217 1
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
a1369 9
  -runstatedir | --runstatedir | --runstatedi | --runstated \
  | --runstate | --runstat | --runsta | --runst | --runs \
  | --run | --ru | --r)
    ac_prev=runstatedir ;;
  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  | --run=* | --ru=* | --r=*)
    runstatedir=$ac_optarg ;;

d1419 1
a1419 1
      as_fn_error $? "invalid package name: \`$ac_useropt'"
d1421 1
a1421 1
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
d1435 1
a1435 1
      as_fn_error $? "invalid package name: \`$ac_useropt'"
d1437 1
a1437 1
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
d1481 1
a1481 1
    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
d1483 1
a1483 1
      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
d1499 1
a1499 1
    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
d1507 1
a1507 1
		libdir localedir mandir runstatedir
d1563 1
a1563 1
printf "%s\n" X"$as_myself" |
d1620 1
a1620 1
\`configure' configures ntp 4.2.8p18 to adapt to many kinds of systems.
a1659 1
  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
d1690 1
a1690 1
     short | recursive ) echo "Configuration of ntp 4.2.8p18:";;
a1701 2
  --enable-build-framework-help
                          + enable build framework help
d1733 1
a1733 1
  --enable-c99-snprintf   s use replacement printf family
d1740 1
a1740 7
  --with-crypto           + =openssl,libcrypto
  --with-openssl-libdir   + =/something/reasonable

  --with-openssl-incdir   + =search likely dirs

  --enable-verbose-ssl    - show crypto lib detection details
  --enable-openssl-random + Use SSL lib's secure random numbers
d1805 10
a1832 1
  --enable-bug3767-fix    + Disable debug assertion on OOB KoD RATE value
a1836 1
  --enable-magicpps       + try to auto-instantiate PPS devices on Linux
d1845 1
d1869 2
a1870 2
Report bugs to <https://bugs.ntp.org/>.
ntp home page: <https://www.ntp.org/>.
d1886 1
a1886 1
  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
d1888 1
a1888 1
  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
d1916 1
a1916 2
    # Check for configure.gnu first; this name is used for a wrapper for
    # Metaconfig's "Configure" on case-insensitive file systems.
d1924 1
a1924 1
      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
d1933 2
a1934 2
ntp configure 4.2.8p18
generated by GNU Autoconf 2.71
d1936 1
a1936 1
Copyright (C) 2021 Free Software Foundation, Inc.
d1953 1
a1953 1
  rm -f conftest.$ac_objext conftest.beam
d1960 1
a1960 1
printf "%s\n" "$ac_try_echo"; } >&5
d1968 1
a1968 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d1972 1
a1972 2
       } && test -s conftest.$ac_objext
then :
d1974 2
a1975 2
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
d1985 4
a1988 5
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
d1991 1
a1991 34
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  eval "$3=yes"
else $as_nop
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_compile

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  if { { ac_try="$ac_link"
d1997 2
a1998 2
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
d2005 3
a2007 3
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
d2009 1
a2009 5
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 test -x conftest$ac_exeext
       }
then :
d2011 2
a2012 2
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
d2015 1
a2015 1
	ac_retval=1
a2016 5
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d2020 92
a2111 1
} # ac_fn_c_try_link
d2115 2
a2116 2
# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
# executables *can* be run.
d2126 1
a2126 1
printf "%s\n" "$ac_try_echo"; } >&5
d2129 1
a2129 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d2136 1
a2136 1
printf "%s\n" "$ac_try_echo"; } >&5
d2139 2
a2140 3
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }
then :
d2142 3
a2144 3
else $as_nop
  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
       printf "%s\n" "$as_me: failed program was:" >&5
d2155 35
a2189 4
# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
d2192 2
a2193 1
  if { { ac_try="$ac_cpp conftest.$ac_ext"
d2199 2
a2200 2
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
d2207 3
a2209 3
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
d2211 4
a2214 2
       }
then :
d2216 2
a2217 2
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
d2220 1
a2220 1
    ac_retval=1
d2222 5
d2230 1
a2230 1
} # ac_fn_c_try_cpp
d2238 5
a2242 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d2250 9
a2258 1
   which can conflict with char $2 (); below.  */
a2259 1
#include <limits.h>
d2277 1
a2277 1
main (void)
d2284 1
a2284 2
if ac_fn_c_try_link "$LINENO"
then :
d2286 1
a2286 1
else $as_nop
d2289 1
a2289 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d2293 2
a2294 2
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
d2306 5
a2310 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d2316 1
a2316 1
main (void)
d2324 1
a2324 2
if ac_fn_c_try_compile "$LINENO"
then :
d2329 1
a2329 1
main (void)
d2337 1
a2337 2
if ac_fn_c_try_compile "$LINENO"
then :
d2339 1
a2339 1
else $as_nop
d2342 1
a2342 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2344 1
a2344 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2347 2
a2348 2
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
d2367 1
a2367 1
main (void)
d2377 1
a2377 2
if ac_fn_c_try_compile "$LINENO"
then :
d2384 1
a2384 1
main (void)
d2394 1
a2394 2
if ac_fn_c_try_compile "$LINENO"
then :
d2396 1
a2396 1
else $as_nop
d2404 1
a2404 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2406 1
a2406 1
else $as_nop
d2411 1
a2411 1
main (void)
d2421 1
a2421 2
if ac_fn_c_try_compile "$LINENO"
then :
d2428 1
a2428 1
main (void)
d2438 1
a2438 2
if ac_fn_c_try_compile "$LINENO"
then :
d2440 1
a2440 1
else $as_nop
d2448 1
a2448 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2450 1
a2450 1
else $as_nop
d2453 1
a2453 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2455 1
a2455 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2463 1
a2463 1
main (void)
d2473 1
a2473 2
if ac_fn_c_try_compile "$LINENO"
then :
d2475 1
a2475 1
else $as_nop
d2478 1
a2478 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2488 2
a2489 2
static long int longval (void) { return $2; }
static unsigned long int ulongval (void) { return $2; }
d2493 1
a2493 1
main (void)
d2521 1
a2521 2
if ac_fn_c_try_run "$LINENO"
then :
d2523 1
a2523 1
else $as_nop
d2536 2
a2537 2
# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
# ------------------------------------------------------------------
d2539 2
a2540 2
# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
ac_fn_check_decl ()
a2543 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
printf %s "checking whether $as_decl_name is declared... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d2545 5
a2549 2
  eval ac_save_FLAGS=\$$6
  as_fn_append $6 " $5"
d2554 1
a2554 1
main (void)
d2568 1
a2568 2
if ac_fn_c_try_compile "$LINENO"
then :
d2570 1
a2570 1
else $as_nop
d2573 1
a2573 3
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  eval $6=\$ac_save_FLAGS

d2576 2
a2577 2
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
d2580 1
a2580 1
} # ac_fn_check_decl
d2589 5
a2593 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
printf %s "checking for $2.$3... " >&6; }
if eval test \${$4+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d2598 1
a2598 1
main (void)
d2607 1
a2607 2
if ac_fn_c_try_compile "$LINENO"
then :
d2609 1
a2609 1
else $as_nop
d2614 1
a2614 1
main (void)
d2623 1
a2623 2
if ac_fn_c_try_compile "$LINENO"
then :
d2625 1
a2625 1
else $as_nop
d2628 1
a2628 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2630 1
a2630 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2633 2
a2634 2
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
a2637 20
ac_configure_args_raw=
for ac_arg
do
  case $ac_arg in
  *\'*)
    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  esac
  as_fn_append ac_configure_args_raw " '$ac_arg'"
done

case $ac_configure_args_raw in
  *$as_nl*)
    ac_safe_unquote= ;;
  *)
    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
    ac_unsafe_a="$ac_unsafe_z#~"
    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
esac

d2642 2
a2643 2
It was created by ntp $as_me 4.2.8p18, which was
generated by GNU Autoconf 2.71.  Invocation command line was
d2645 1
a2645 1
  $ $0$ac_configure_args_raw
d2678 2
a2679 6
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    printf "%s\n" "PATH: $as_dir"
d2714 1
a2714 1
      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a2748 2
  # Sanitize IFS.
  IFS=" ""	$as_nl"
d2753 1
a2753 1
    printf "%s\n" "## ---------------- ##
d2764 2
a2765 2
      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
d2789 1
a2789 1
    printf "%s\n" "## ----------------- ##
d2797 1
a2797 1
      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
d2799 1
a2799 1
      printf "%s\n" "$ac_var='\''$ac_val'\''"
d2804 1
a2804 1
      printf "%s\n" "## ------------------- ##
d2812 1
a2812 1
	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
d2814 1
a2814 1
	printf "%s\n" "$ac_var='\''$ac_val'\''"
d2820 1
a2820 1
      printf "%s\n" "## ----------- ##
d2828 2
a2829 2
      printf "%s\n" "$as_me: caught signal $ac_signal"
    printf "%s\n" "$as_me: exit $exit_status"
d2843 1
a2843 1
printf "%s\n" "/* confdefs.h */" > confdefs.h
d2847 3
a2849 1
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
d2851 3
a2853 1
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
d2855 3
a2857 1
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
d2859 3
a2861 1
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
d2863 3
a2865 1
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
d2867 3
a2869 1
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
d2874 2
d2877 6
a2882 1
  ac_site_files="$CONFIG_SITE"
d2884 2
a2885 1
  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
d2887 2
a2888 1
  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
d2890 1
a2890 2

for ac_site_file in $ac_site_files
d2892 4
a2895 9
  case $ac_site_file in #(
  */*) :
     ;; #(
  *) :
    ac_site_file=./$ac_site_file ;;
esac
  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
d2898 2
a2899 2
      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d2909 2
a2910 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
d2917 2
a2918 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
d2922 1
a2922 422
# Test code for whether the C compiler supports C89 (global declarations)
ac_c_conftest_c89_globals='
/* Does the compiler advertise C89 conformance?
   Do not test the value of __STDC__, because some compilers set it to 0
   while being otherwise adequately conformant. */
#if !defined __STDC__
# error "Compiler does not advertise C89 conformance"
#endif

#include <stddef.h>
#include <stdarg.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
struct buf { int x; };
struct buf * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not \xHH hex character constants.
   These do not provoke an error unfortunately, instead are silently treated
   as an "x".  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
   array size at least.  It is necessary to write \x00 == 0 to get something
   that is true only with -std.  */
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) '\''x'\''
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
               int, int);'

# Test code for whether the C compiler supports C89 (body of main).
ac_c_conftest_c89_main='
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
'

# Test code for whether the C compiler supports C99 (global declarations)
ac_c_conftest_c99_globals='
// Does the compiler advertise C99 conformance?
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
# error "Compiler does not advertise C99 conformance"
#endif

#include <stdbool.h>
extern int puts (const char *);
extern int printf (const char *, ...);
extern int dprintf (int, const char *, ...);
extern void *malloc (size_t);

// Check varargs macros.  These examples are taken from C99 6.10.3.5.
// dprintf is used instead of fprintf to avoid needing to declare
// FILE and stderr.
#define debug(...) dprintf (2, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}

// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  #error "your preprocessor is broken"
#endif
#if BIG_OK
#else
  #error "your preprocessor is broken"
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;

struct incomplete_array
{
  int datasize;
  double data[];
};

struct named_init {
  int number;
  const wchar_t *name;
  double average;
};

typedef const char *ccp;

static inline int
test_restrict (ccp restrict text)
{
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
    continue;
  return 0;
}

// Check varargs and va_copy.
static bool
test_varargs (const char *format, ...)
{
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);

  const char *str = "";
  int number = 0;
  float fnumber = 0;

  while (*format)
    {
      switch (*format++)
	{
	case '\''s'\'': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case '\''d'\'': // int
	  number = va_arg (args_copy, int);
	  break;
	case '\''f'\'': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);

  return *str && number && fnumber;
}
'

# Test code for whether the C compiler supports C99 (body of main).
ac_c_conftest_c99_main='
  // Check bool.
  _Bool success = false;
  success |= (argc != 0);

  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";

  // Check varargs.
  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[0] = argv[0][0];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
	 || dynamic_array[ni.number - 1] != 543);
'

# Test code for whether the C compiler supports C11 (global declarations)
ac_c_conftest_c11_globals='
// Does the compiler advertise C11 conformance?
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
# error "Compiler does not advertise C11 conformance"
#endif

// Check _Alignas.
char _Alignas (double) aligned_as_double;
char _Alignas (0) no_special_alignment;
extern char aligned_as_int;
char _Alignas (0) _Alignas (int) aligned_as_int;

// Check _Alignof.
enum
{
  int_alignment = _Alignof (int),
  int_array_alignment = _Alignof (int[100]),
  char_alignment = _Alignof (char)
};
_Static_assert (0 < -_Alignof (int), "_Alignof is signed");

// Check _Noreturn.
int _Noreturn does_not_return (void) { for (;;) continue; }

// Check _Static_assert.
struct test_static_assert
{
  int x;
  _Static_assert (sizeof (int) <= sizeof (long int),
                  "_Static_assert does not work in struct");
  long int y;
};

// Check UTF-8 literals.
#define u8 syntax error!
char const utf8_literal[] = u8"happens to be ASCII" "another string";

// Check duplicate typedefs.
typedef long *long_ptr;
typedef long int *long_ptr;
typedef long_ptr long_ptr;

// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
struct anonymous
{
  union {
    struct { int i; int j; };
    struct { int k; long int l; } w;
  };
  int m;
} v1;
'

# Test code for whether the C compiler supports C11 (body of main).
ac_c_conftest_c11_main='
  _Static_assert ((offsetof (struct anonymous, i)
		   == offsetof (struct anonymous, w.k)),
		  "Anonymous union alignment botch");
  v1.i = 2;
  v1.w.k = 5;
  ok |= v1.i != 5;
'

# Test code for whether the C compiler supports C11 (complete).
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
${ac_c_conftest_c99_globals}
${ac_c_conftest_c11_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  ${ac_c_conftest_c99_main}
  ${ac_c_conftest_c11_main}
  return ok;
}
"

# Test code for whether the C compiler supports C99 (complete).
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
${ac_c_conftest_c99_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  ${ac_c_conftest_c99_main}
  return ok;
}
"

# Test code for whether the C compiler supports C89 (complete).
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  return ok;
}
"

as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
as_fn_append ac_func_c_list " fork HAVE_FORK"
as_fn_append ac_func_c_list " vfork HAVE_VFORK"
as_fn_append ac_header_c_list " stdarg.h stdarg_h HAVE_STDARG_H"

# Auxiliary files required by this configure script.
ac_aux_files="ltmain.sh ar-lib compile config.guess config.sub missing install-sh"

# Locations in which to look for auxiliary files.
ac_aux_dir_candidates="${srcdir}/sntp/libevent/build-aux"

# Search for a directory containing all of the required auxiliary files,
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
# If we don't find one directory that contains all the files we need,
# we report the set of missing files from the *first* directory in
# $ac_aux_dir_candidates and give up.
ac_missing_aux_files=""
ac_first_candidate=:
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in $ac_aux_dir_candidates
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
  as_found=:

  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
  ac_aux_dir_found=yes
  ac_install_sh=
  for ac_aux in $ac_aux_files
  do
    # As a special case, if "install-sh" is required, that requirement
    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
    # and $ac_install_sh is set appropriately for whichever one is found.
    if test x"$ac_aux" = x"install-sh"
    then
      if test -f "${as_dir}install-sh"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
        ac_install_sh="${as_dir}install-sh -c"
      elif test -f "${as_dir}install.sh"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
        ac_install_sh="${as_dir}install.sh -c"
      elif test -f "${as_dir}shtool"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
        ac_install_sh="${as_dir}shtool install -c"
      else
        ac_aux_dir_found=no
        if $ac_first_candidate; then
          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
        else
          break
        fi
      fi
    else
      if test -f "${as_dir}${ac_aux}"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
      else
        ac_aux_dir_found=no
        if $ac_first_candidate; then
          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
        else
          break
        fi
      fi
    fi
  done
  if test "$ac_aux_dir_found" = yes; then
    ac_aux_dir="$as_dir"
    break
  fi
  ac_first_candidate=false

  as_found=false
done
IFS=$as_save_IFS
if $as_found
then :

else $as_nop
  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
fi


# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
if test -f "${ac_aux_dir}config.guess"; then
  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
fi
if test -f "${ac_aux_dir}config.sub"; then
  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
fi
if test -f "$ac_aux_dir/configure"; then
  ac_configure="$SHELL ${ac_aux_dir}configure"
fi

d2933 2
a2934 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d2937 2
a2938 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d2947 2
a2948 2
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
d2951 2
a2952 2
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
d2955 4
a2958 4
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
d2964 1
a2964 1
    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d2974 5
a2978 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
	    and start over" "$LINENO" 5
d2992 28
d3052 1
a3052 1
ntp_configure_cache_version=20240218
d3133 1
a3133 1
	    { eval $c_varname=; unset $c_varname;}
d3136 6
a3141 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
printf "%s\n" "$as_me: $cache_file saved by another version, ignored." >&6;}
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
printf "%s\n" "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
printf "%s\n" "$as_me: $cache_file version: $c_version" >&6;}
d3157 1
a3157 1
am__api_version='1.16'
d3159 1
a3159 3


  # Find a good install program.  We prefer a C program (faster),
d3173 2
a3174 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
printf %s "checking for a BSD-compatible install... " >&6; }
d3176 3
a3178 4
if test ${ac_cv_path_install+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3183 4
a3186 8
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    # Account for fact that we put trailing slashes in our PATH walk.
case $as_dir in #((
  ./ | /[cC]/* | \
d3196 1
a3196 1
	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
d3198 1
a3198 1
	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
d3202 1
a3202 1
	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
d3210 1
a3210 1
	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
d3215 1
a3215 1
	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
d3231 1
a3231 1
  if test ${ac_cv_path_install+y}; then
d3241 2
a3242 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
printf "%s\n" "$INSTALL" >&6; }
d3252 2
a3253 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
printf %s "checking whether build environment is sane... " >&6; }
d3307 2
a3308 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
d3327 1
a3327 2
program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`

d3332 7
a3338 3

  if test x"${MISSING+set}" != xset; then
  MISSING="\${SHELL} '$am_aux_dir/missing'"
d3345 2
a3346 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
d3366 5
a3370 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_STRIP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3378 1
a3378 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d3380 1
a3380 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d3382 1
a3382 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d3393 2
a3394 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
printf "%s\n" "$STRIP" >&6; }
d3396 2
a3397 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d3406 5
a3410 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_STRIP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3418 1
a3418 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d3420 1
a3420 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d3422 1
a3422 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d3433 2
a3434 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
printf "%s\n" "$ac_ct_STRIP" >&6; }
d3436 2
a3437 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d3445 2
a3446 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d3458 2
a3459 3

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
printf %s "checking for a race-free mkdir -p... " >&6; }
d3461 3
a3463 4
  if test ${ac_cv_path_mkdir+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3468 1
a3468 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d3471 4
a3474 4
	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir ('*'coreutils) '* | \
	     'BusyBox '* | \
d3476 1
a3476 1
	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
d3487 1
a3487 1
  if test ${ac_cv_path_mkdir+y}; then
d3497 2
a3498 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
printf "%s\n" "$MKDIR_P" >&6; }
d3504 5
a3508 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_AWK+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3516 1
a3516 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d3518 1
a3518 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d3520 1
a3520 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d3531 2
a3532 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
printf "%s\n" "$AWK" >&6; }
d3534 2
a3535 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d3542 2
a3543 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
d3545 4
a3548 5
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval test \${ac_cv_prog_make_${ac_make}_set+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3564 2
a3565 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
d3568 2
a3569 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d3583 1
a3583 2
if test ${enable_silent_rules+y}
then :
d3593 6
a3598 7
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
printf %s "checking whether $am_make supports nested variables... " >&6; }
if test ${am_cv_make_support_nested_variables+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if printf "%s\n" 'TRUE=$(BAR$(V))
d3610 2
a3611 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
d3643 1
a3643 1
 VERSION='4.2.8p18'
d3646 3
a3648 1
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
d3651 3
a3653 1
printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
d3673 2
a3674 2
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
a3692 14
# Variables for tags utilities; see am/tags.am
if test -z "$CTAGS"; then
  CTAGS=ctags
fi

if test -z "$ETAGS"; then
  ETAGS=etags
fi

if test -z "$CSCOPE"; then
  CSCOPE=cscope
fi


d3725 1
a3725 1
that behaves properly: <https://www.gnu.org/software/coreutils/>.
d3738 1
a3738 2
if test ${enable_silent_rules+y}
then :
d3748 6
a3753 7
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
printf %s "checking whether $am_make supports nested variables... " >&6; }
if test ${am_cv_make_support_nested_variables+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if printf "%s\n" 'TRUE=$(BAR$(V))
d3765 2
a3766 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
d3777 9
a3785 12


  # Make sure we can run config.sub.
$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
printf %s "checking build system type... " >&6; }
if test ${ac_cv_build+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3788 1
a3788 1
  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
d3791 2
a3792 2
ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
d3795 2
a3796 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
printf "%s\n" "$ac_cv_build" >&6; }
d3815 5
a3819 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
printf %s "checking host system type... " >&6; }
if test ${ac_cv_host+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3823 2
a3824 2
  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
d3828 2
a3829 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
printf "%s\n" "$ac_cv_host" >&6; }
d3849 3
a3851 1
printf "%s\n" "#define STR_SYSTEM \"$host\"" >>confdefs.h
a3855 19
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should enable build framework help" >&5
printf %s "checking if we should enable build framework help... " >&6; }
# Check whether --enable-build-framework-help was given.
if test ${enable_build_framework_help+y}
then :
  enableval=$enable_build_framework_help; ntp_ok=$enableval
else $as_nop
  ntp_ok=yes

fi

case "$ntp_ok" in
 yes)
    ntp_cv_build_framework_help=yes ;;
 *) ntp_cv_build_framework_help=no ;;
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }

a3861 9









d3866 3
a3868 3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
cat > confinc.mk << 'END'
d3870 1
a3870 1
	@@echo this is the am__doit target >confinc.out
d3873 3
d3878 19
a3896 20
# BSD make does it like this.
echo '.include "confinc.mk" # ignored' > confmf.BSD
# Other make implementations (GNU, Solaris 10, AIX) do it like this.
echo 'include confinc.mk # ignored' > confmf.GNU
_am_result=no
for s in GNU BSD; do
  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }
  case $?:`cat confinc.out 2>/dev/null` in #(
  '0:this is the am__doit target') :
    case $s in #(
  BSD) :
    am__include='.include' am__quote='"' ;; #(
  *) :
    am__include='include' am__quote='' ;;
esac ;; #(
  *) :
d3898 7
a3904 9
esac
  if test "$am__include" != "#"; then
    _am_result="yes ($s style)"
    break
  fi
done
rm -f confinc.* confmf.*
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
printf "%s\n" "${_am_result}" >&6; }
d3907 1
a3907 2
if test ${enable_dependency_tracking+y}
then :
d3948 5
a3952 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3960 1
a3960 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d3962 1
a3962 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d3964 1
a3964 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d3975 2
a3976 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
d3978 2
a3979 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d3992 5
a3996 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d4004 1
a4004 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d4006 1
a4006 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d4008 1
a4008 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d4019 2
a4020 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
printf "%s\n" "$ac_ct_CC" >&6; }
d4022 2
a4023 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d4035 2
a4036 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d4044 2
a4045 2
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d4050 1
a4050 1
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
d4053 1
a4053 1
for ac_option in --version -v -V -qversion -version; do
d4060 1
a4060 1
printf "%s\n" "$ac_try_echo"; } >&5
d4070 1
a4070 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d4078 1
a4078 1
main (void)
d4090 3
a4092 3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
printf %s "checking whether the C compiler works... " >&6; }
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
d4113 1
a4113 1
printf "%s\n" "$ac_try_echo"; } >&5
d4116 2
a4117 3
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
then :
d4134 1
a4134 1
	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
d4150 1
a4150 1
else $as_nop
d4153 4
a4156 5
if test -z "$ac_file"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
printf "%s\n" "$as_me: failed program was:" >&5
d4159 2
a4160 2
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d4163 8
a4170 8
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
printf %s "checking for C compiler default output file name... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
printf "%s\n" "$ac_file" >&6; }
d4175 2
a4176 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
printf %s "checking for suffix of executables... " >&6; }
d4183 1
a4183 1
printf "%s\n" "$ac_try_echo"; } >&5
d4186 2
a4187 3
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
then :
d4201 3
a4203 3
else $as_nop
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d4208 2
a4209 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
printf "%s\n" "$ac_cv_exeext" >&6; }
d4218 1
a4218 1
main (void)
d4230 2
a4231 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
printf %s "checking whether we are cross compiling... " >&6; }
d4239 1
a4239 1
printf "%s\n" "$ac_try_echo"; } >&5
d4242 1
a4242 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d4250 1
a4250 1
printf "%s\n" "$ac_try_echo"; } >&5
d4253 1
a4253 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d4260 3
a4262 3
	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot run C compiled programs.
d4268 2
a4269 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
printf "%s\n" "$cross_compiling" >&6; }
d4273 5
a4277 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
printf %s "checking for suffix of object files... " >&6; }
if test ${ac_cv_objext+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d4282 1
a4282 1
main (void)
d4296 1
a4296 1
printf "%s\n" "$ac_try_echo"; } >&5
d4299 2
a4300 3
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
then :
d4309 2
a4310 2
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
d4313 2
a4314 2
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d4320 2
a4321 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
printf "%s\n" "$ac_cv_objext" >&6; }
d4324 5
a4328 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
printf %s "checking whether the compiler supports GNU C... " >&6; }
if test ${ac_cv_c_compiler_gnu+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d4333 1
a4333 1
main (void)
d4343 1
a4343 2
if ac_fn_c_try_compile "$LINENO"
then :
d4345 1
a4345 1
else $as_nop
d4348 1
a4348 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d4352 2
a4353 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
ac_compiler_gnu=$ac_cv_c_compiler_gnu

d4359 1
a4359 1
ac_test_CFLAGS=${CFLAGS+y}
d4361 5
a4365 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
printf %s "checking whether $CC accepts -g... " >&6; }
if test ${ac_cv_prog_cc_g+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d4374 1
a4374 1
main (void)
d4381 1
a4381 2
if ac_fn_c_try_compile "$LINENO"
then :
d4383 1
a4383 1
else $as_nop
d4389 1
a4389 1
main (void)
d4396 1
a4396 2
if ac_fn_c_try_compile "$LINENO"
then :
d4398 1
a4398 1
else $as_nop
d4405 1
a4405 1
main (void)
d4412 1
a4412 2
if ac_fn_c_try_compile "$LINENO"
then :
d4415 1
a4415 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d4417 1
a4417 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d4419 1
a4419 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d4422 3
a4424 3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
if test $ac_test_CFLAGS; then
d4439 6
a4444 10
ac_prog_cc_stdc=no
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
printf %s "checking for $CC option to enable C11 features... " >&6; }
if test ${ac_cv_prog_cc_c11+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_prog_cc_c11=no
d4448 30
a4477 15
$ac_c_conftest_c11_program
_ACEOF
for ac_arg in '' -std=gnu11
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_c11=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cc_c11" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC
fi
d4479 4
a4482 45
if test "x$ac_cv_prog_cc_c11" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
  if test "x$ac_cv_prog_cc_c11" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
     CC="$CC $ac_cv_prog_cc_c11"
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  ac_prog_cc_stdc=c11
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
printf %s "checking for $CC option to enable C99 features... " >&6; }
if test ${ac_cv_prog_cc_c99+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c99_program
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_c99=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC
fi
d4484 13
a4496 31
if test "x$ac_cv_prog_cc_c99" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
  if test "x$ac_cv_prog_cc_c99" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
     CC="$CC $ac_cv_prog_cc_c99"
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  ac_prog_cc_stdc=c99
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
printf %s "checking for $CC option to enable C89 features... " >&6; }
if test ${ac_cv_prog_cc_c89+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c89_program
d4498 2
a4499 1
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d4502 1
a4502 2
  if ac_fn_c_try_compile "$LINENO"
then :
d4505 1
a4505 1
rm -f core conftest.err conftest.$ac_objext conftest.beam
d4510 1
d4512 14
a4526 17
if test "x$ac_cv_prog_cc_c89" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
  if test "x$ac_cv_prog_cc_c89" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
     CC="$CC $ac_cv_prog_cc_c89"
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  ac_prog_cc_stdc=c89
fi
d4535 1
a4535 2

  ac_ext=c
d4540 5
a4544 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
printf %s "checking whether $CC understands -c and -o together... " >&6; }
if test ${am_cv_prog_cc_c_o+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d4549 1
a4549 1
main (void)
d4577 2
a4578 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
d4596 5
a4600 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
printf %s "checking dependency style of $depcc... " >&6; }
if test ${am_cv_CC_dependencies_compiler_type+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d4707 2
a4708 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
d4725 20
a4744 3

ac_header= ac_cache=
for ac_item in $ac_header_c_list
d4746 16
a4761 12
  if test $ac_cache; then
    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
      printf "%s\n" "#define $ac_item 1" >> confdefs.h
    fi
    ac_header= ac_cache=
  elif test $ac_header; then
    ac_cache=$ac_item
  else
    ac_header=$ac_item
  fi
done
d4763 5
d4769 15
d4785 6
d4792 2
a4793 8




if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
then :

printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
d4796 15
a4810 12






  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
if test ${ac_cv_safe_to_define___extensions__+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d4813 8
d4822 3
a4824 15
#         define __EXTENSIONS__ 1
          $ac_includes_default
int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_safe_to_define___extensions__=yes
else $as_nop
  ac_cv_safe_to_define___extensions__=no
d4826 1
a4826 4
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
d4828 2
a4829 9
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
if test ${ac_cv_should_define__xopen_source+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_should_define__xopen_source=no
    if test $ac_cv_header_wchar_h = yes
then :
d4832 16
d4849 6
a4854 5
          #include <wchar.h>
          mbstate_t x;
int
main (void)
{
d4856 5
a4860 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
a4861 3
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d4863 44
a4906 6
            #define _XOPEN_SOURCE 500
            #include <wchar.h>
            mbstate_t x;
int
main (void)
{
d4908 10
a4917 7
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_should_define__xopen_source=yes
d4919 1
a4919 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d4921 3
a4923 5
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
a4924 1
  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
d4926 47
a4972 1
  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
d4974 11
a4984 1
  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
d4986 5
a4990 1
  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
a4991 1
  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
d4993 11
a5003 1
  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
d5005 3
a5007 1
  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d5009 10
a5018 1
  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
d5020 5
a5024 1
  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
d5026 3
a5028 1
  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
d5030 4
a5033 1
  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
d5035 1
a5035 1
  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
d5037 5
a5041 1
  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
d5043 3
a5045 1
  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
d5047 4
a5050 1
  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
d5052 1
a5052 4
  if test $ac_cv_header_minix_config_h = yes
then :
  MINIX=yes
    printf "%s\n" "#define _MINIX 1" >>confdefs.h
d5054 19
a5072 1
    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
d5074 13
a5086 1
    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
d5088 5
a5092 2
else $as_nop
  MINIX=
a5093 3
  if test $ac_cv_safe_to_define___extensions__ = yes
then :
  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
a5095 4
  if test $ac_cv_should_define__xopen_source = yes
then :
  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h

d5097 3
d5101 1
d5103 1
d5105 11
d5117 1
d5119 1
a5120 5
CC_NOFORMAT=
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d5123 6
d5131 1
d5133 1
a5134 8
case "$ac_cv_prog_cc_c89" in
 no)
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
printf "%s\n" "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
esac
d5136 1
a5136 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
printf %s "checking if $CC can handle #warning... " >&6; }
if test ${ntp_cv_cpp_warning+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a5137 13
int
main (void)
{
#warning foo
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_cpp_warning=yes
else $as_nop
  ntp_cv_cpp_warning=no
d5139 1
a5139 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d5141 1
a5141 5
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
printf "%s\n" "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)
a5142 1
printf "%s\n" "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
d5144 5
a5148 8
esac

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
printf %s "checking if $CC supports __attribute__((...))... " >&6; }
if test ${ntp_cv_cc_attribute+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d5152 2
d5155 1
a5155 1
main (void)
a5156 1
void foo(void) __attribute__((__noreturn__));
d5162 4
a5165 6
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_cc_attribute=yes
else $as_nop
  ntp_cv_cc_attribute=no

d5167 1
a5167 2
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

d5169 4
a5172 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
printf "%s\n" "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)
d5174 1
a5174 1
printf "%s\n" "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
d5176 1
a5176 1
esac
d5178 1
d5180 1
a5180 12
case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$SAVED_CFLAGS -Wstrict-overflow"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
printf %s "checking if $CC can handle -Wstrict-overflow... " >&6; }
if test ${ntp_cv_gcc_Wstrict_overflow+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a5181 3
int
main (void)
{
a5182 9
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_gcc_Wstrict_overflow=yes
else $as_nop
  ntp_cv_gcc_Wstrict_overflow=no
d5184 18
a5201 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d5203 14
a5216 14
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
printf "%s\n" "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
printf %s "checking if $CC can handle -Winit-self... " >&6; }
if test ${ntp_cv_gcc_Winit_self+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d5218 13
a5230 2
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d5232 1
a5232 2
int
main (void)
d5234 9
d5244 10
a5253 1
  ;
a5255 6
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_gcc_Winit_self=yes
else $as_nop
  ntp_cv_gcc_Winit_self=no
d5257 8
a5264 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d5266 3
d5270 20
a5289 20
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
printf "%s\n" "$ntp_cv_gcc_Winit_self" >&6; }
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    # libopts specifically builds a string with embedded NULs.
    # This causes a bunch of distracting warnings due to -Wformat.
    #
    CFLAGS="$SAVED_CFLAGS -Wno-format -Wno-format-security"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wno-format -Wno-format-security" >&5
printf %s "checking if $CC can handle -Wno-format -Wno-format-security... " >&6; }
if test ${ntp_cv_gcc_Wno_format+y}
then :
  printf %s "(cached) " >&6
else $as_nop

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d5292 1
a5292 1
main (void)
d5295 35
d5334 11
a5344 5
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_gcc_Wno_format=yes
else $as_nop
  ntp_cv_gcc_Wno_format=no
d5347 46
a5392 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d5394 8
d5403 4
a5406 17
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wno_format" >&5
printf "%s\n" "$ntp_cv_gcc_Wno_format" >&6; }
    case "$ntp_cv_gcc_Wno_format" in
      no) ntp_cv_gcc_Wno_format_truncation=no
	  ;;
     yes)
	CC_NOFORMAT="-Wno-format -Wno-format-security"
	CFLAGS="$SAVED_CFLAGS -Wformat -Wno-format-truncation -Werror"
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wformat -Wno-format-truncation" >&5
printf %s "checking if $CC can handle -Wformat -Wno-format-truncation... " >&6; }
if test ${ntp_cv_gcc_Wno_format_truncation+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d5408 6
d5415 1
a5415 1
main (void)
d5417 1
a5417 1

d5422 12
a5433 5
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_gcc_Wno_format_truncation=yes
else $as_nop
  ntp_cv_gcc_Wno_format_truncation=no
d5436 18
a5453 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d5456 7
a5462 7
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wno_format_truncation" >&5
printf "%s\n" "$ntp_cv_gcc_Wno_format_truncation" >&6; }
	#
	# $ntp_cv_gcc_Wno_format_truncation is tested later to add the
	# flag to CFLAGS.
	#
    esac
d5464 11
a5474 2
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
a5475 21
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
printf %s "checking if linker supports omitting unused code and data... " >&6; }
if test ${ntp_cv_gc_sections_runs+y}
then :
  printf %s "(cached) " >&6
else $as_nop

	    #  NetBSD will link but likely not run with --gc-sections
	    #  http://bugs.ntp.org/1844
	    #  http://gnats.netbsd.org/40401
	    #  --gc-sections causes attempt to load as linux elf, with
	    #  wrong syscalls in place.  Test a little gauntlet of
	    #  simple stdio read code checking for errors, expecting
	    #  enough syscall differences that the NetBSD code will
	    #  fail even with Linux emulation working as designed.
	    #  A shorter test could be refined by someone with access
	    #  to a NetBSD host with Linux emulation working.
	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a5476 2
			#include <stdlib.h>
			#include <stdio.h>
a5477 3
int
main (void)
{
a5478 4
			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;
d5480 2
a5481 13
			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);
d5483 19
a5501 1
			exit(EXIT_SUCCESS);
d5504 5
a5508 3
  ;
  return 0;
}
d5510 14
a5523 2
if ac_fn_c_try_link "$LINENO"
then :
a5524 6
		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d5526 215
a5740 2
else $as_nop
  ntp_cv_gc_sections_runs=no
d5743 1
a5743 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d5750 2
a5751 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
printf "%s\n" "$ntp_cv_gc_sections_runs" >&6; }
a5780 4
    case "$ntp_cv_gcc_Wno_format_truncation" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wno-format-truncation"
    esac
d5785 2
a5786 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
printf %s "checking additional compiler flags... " >&6; }
d5883 2
a5884 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
printf "%s\n" "$ntp_os_cflags_msg" >&6; }
d5887 2
a5888 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
printf %s "checking additional linker flags... " >&6; }
d5915 2
a5916 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
printf "%s\n" "$ntp_os_ldflags_msg" >&6; }
d5920 5
a5924 6
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
printf %s "checking whether byte ordering is bigendian... " >&6; }
if test ${ac_cv_c_bigendian+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d5935 1
a5935 2
if ac_fn_c_try_compile "$LINENO"
then :
d5959 1
a5959 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d5968 1
a5968 1
main (void)
d5980 1
a5980 2
if ac_fn_c_try_compile "$LINENO"
then :
d5988 1
a5988 1
main (void)
d5998 1
a5998 2
if ac_fn_c_try_compile "$LINENO"
then :
d6000 1
a6000 1
else $as_nop
d6003 1
a6003 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d6005 1
a6005 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d6014 1
a6014 1
main (void)
d6024 1
a6024 2
if ac_fn_c_try_compile "$LINENO"
then :
d6031 1
a6031 1
main (void)
d6041 1
a6041 2
if ac_fn_c_try_compile "$LINENO"
then :
d6043 1
a6043 1
else $as_nop
d6046 1
a6046 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d6048 1
a6048 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d6052 1
a6052 2
      if test "$cross_compiling" = yes
then :
d6056 1
a6056 1
unsigned short int ascii_mm[] =
d6058 1
a6058 1
		unsigned short int ascii_ii[] =
d6063 1
a6063 1
		unsigned short int ebcdic_ii[] =
d6065 1
a6065 1
		unsigned short int ebcdic_mm[] =
d6073 1
a6073 1
main (void)
d6080 1
a6080 2
if ac_fn_c_try_compile "$LINENO"
then :
d6093 2
a6094 2
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
else $as_nop
d6099 1
a6099 1
main (void)
d6115 1
a6115 2
if ac_fn_c_try_run "$LINENO"
then :
d6117 1
a6117 1
else $as_nop
d6126 2
a6127 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
printf "%s\n" "$ac_cv_c_bigendian" >&6; }
d6130 1
a6130 1
     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
d6136 1
a6136 1
printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
d6144 5
a6148 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
printf %s "checking for working volatile... " >&6; }
if test ${ac_cv_c_volatile+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d6153 1
a6153 1
main (void)
d6163 1
a6163 2
if ac_fn_c_try_compile "$LINENO"
then :
d6165 1
a6165 1
else $as_nop
d6168 1
a6168 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d6170 2
a6171 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
printf "%s\n" "$ac_cv_c_volatile" >&6; }
d6174 1
a6174 1
printf "%s\n" "#define volatile /**/" >>confdefs.h
d6183 2
a6184 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
printf %s "checking how to run the C preprocessor... " >&6; }
d6190 5
a6194 6
  if test ${ac_cv_prog_CPP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
      # Double quotes because $CC needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
d6201 2
d6207 5
a6211 1
#include <limits.h>
d6214 1
a6214 2
if ac_fn_c_try_cpp "$LINENO"
then :
d6216 1
a6216 1
else $as_nop
d6228 1
a6228 2
if ac_fn_c_try_cpp "$LINENO"
then :
d6231 1
a6231 1
else $as_nop
d6241 1
a6241 2
if $ac_preproc_ok
then :
d6253 2
a6254 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
printf "%s\n" "$CPP" >&6; }
d6260 2
d6266 5
a6270 1
#include <limits.h>
d6273 1
a6273 2
if ac_fn_c_try_cpp "$LINENO"
then :
d6275 1
a6275 1
else $as_nop
d6287 1
a6287 2
if ac_fn_c_try_cpp "$LINENO"
then :
d6290 1
a6290 1
else $as_nop
d6300 1
a6300 2
if $ac_preproc_ok
then :
d6302 3
a6304 3
else $as_nop
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6322 5
a6326 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_YACC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d6334 1
a6334 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d6336 1
a6336 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d6338 1
a6338 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d6349 2
a6350 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
printf "%s\n" "$YACC" >&6; }
d6352 2
a6353 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d6361 14
d6376 14
d6391 13
a6403 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
printf %s "checking whether the compiler supports C99 structure initialization... " >&6; }
d6405 5
d6411 5
a6415 5
	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6417 1
d6419 133
a6551 2
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6557 6
a6562 7
if ac_fn_c_try_compile "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d6564 1
a6564 1
printf "%s\n" "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
d6567 1
a6567 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d6579 2
a6580 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
printf %s "checking for compile/link hardening flags... " >&6; }
d6584 1
a6584 2
if test ${with_hardenfile+y}
then :
d6586 1
a6586 1
else $as_nop
d6608 2
a6609 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
printf "%s\n" "in file $GENHARDFLAGFILE" >&6; }
d6613 2
a6614 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed." >&5
printf "%s\n" "failed." >&6; }
d6626 2
a6627 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
printf %s "checking to see if we need ylwrap VPATH hack... " >&6; }
d6641 2
a6642 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
printf "%s\n" "$ntp_vpath_hack" >&6; }
d6654 2
a6655 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
printf %s "checking for install dir and man conventions... " >&6; }
d6659 1
a6659 2
if test ${with_locfile+y}
then :
d6661 1
a6661 1
else $as_nop
d6683 2
a6684 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
printf "%s\n" "in file $GENLOCINFOFILE" >&6; }
d6688 2
a6689 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed." >&5
printf "%s\n" "failed." >&6; }
d6802 1
a6802 2

  if test -n "$ac_tool_prefix"; then
d6807 5
a6811 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_AR+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d6819 1
a6819 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d6821 1
a6821 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d6823 1
a6823 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d6834 2
a6835 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
printf "%s\n" "$AR" >&6; }
d6837 2
a6838 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d6851 5
a6855 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_AR+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d6863 1
a6863 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d6865 1
a6865 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d6867 1
a6867 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d6878 2
a6879 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
printf "%s\n" "$ac_ct_AR" >&6; }
d6881 2
a6882 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d6894 2
a6895 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d6904 5
a6908 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
printf %s "checking the archiver ($AR) interface... " >&6; }
if test ${am_cv_ar_interface+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d6920 1
a6920 2
if ac_fn_c_try_compile "$LINENO"
then :
d6925 1
a6925 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d6934 1
a6934 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d6945 1
a6945 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d6953 2
a6954 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
printf "%s\n" "$am_cv_ar_interface" >&6; }
d6974 1
d6977 31
d7010 2
a7011 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
a7030 1

d7054 2
a7055 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
printf %s "checking how to print strings... " >&6; }
d7081 6
a7086 6
  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
printf "%s\n" "printf" >&6; } ;;
  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
printf "%s\n" "print -r" >&6; } ;;
  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
printf "%s\n" "cat" >&6; } ;;
d7102 5
a7106 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
printf %s "checking for a sed that does not truncate output... " >&6; }
if test ${ac_cv_path_SED+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7120 2
a7121 7
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in sed gsed
   do
d7123 1
a7123 1
      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
d7132 1
a7132 1
  printf %s 0123456789 >"conftest.in"
d7138 1
a7138 1
    printf "%s\n" '' >> "conftest.nl"
d7166 2
a7167 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
printf "%s\n" "$ac_cv_path_SED" >&6; }
d7184 4
a7187 131
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; }
if test ${ac_cv_path_GREP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in grep ggrep
   do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_GREP" || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in egrep
   do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_EGREP" || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
a7188 16
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
printf %s "checking for fgrep... " >&6; }
if test ${ac_cv_path_FGREP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7199 2
a7200 7
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in fgrep
   do
d7202 1
a7202 1
      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
d7211 1
a7211 1
  printf %s 0123456789 >"conftest.in"
d7217 1
a7217 1
    printf "%s\n" 'FGREP' >> "conftest.nl"
d7246 2
a7247 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
printf "%s\n" "$ac_cv_path_FGREP" >&6; }
d7272 1
a7272 2
if test ${with_gnu_ld+y}
then :
d7274 1
a7274 1
else $as_nop
d7281 2
a7282 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
printf %s "checking for ld used by $CC... " >&6; }
d7311 2
a7312 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
printf %s "checking for GNU ld... " >&6; }
d7314 2
a7315 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
printf %s "checking for non-GNU ld... " >&6; }
d7317 3
a7319 4
if test ${lt_cv_path_LD+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7348 2
a7349 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
printf "%s\n" "$LD" >&6; }
d7351 2
a7352 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d7355 5
a7359 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
if test ${lt_cv_prog_gnu_ld+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7370 2
a7371 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
d7382 5
a7386 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if test ${lt_cv_path_NM+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7436 2
a7437 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
printf "%s\n" "$lt_cv_path_NM" >&6; }
d7450 5
a7454 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_DUMPBIN+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7462 1
a7462 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d7464 1
a7464 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d7466 1
a7466 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d7477 2
a7478 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
printf "%s\n" "$DUMPBIN" >&6; }
d7480 2
a7481 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d7494 5
a7498 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7506 1
a7506 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d7508 1
a7508 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d7510 1
a7510 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d7521 2
a7522 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
d7524 2
a7525 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d7537 2
a7538 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d7566 5
a7570 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
printf %s "checking the name lister ($NM) interface... " >&6; }
if test ${lt_cv_nm_interface+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7586 2
a7587 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
printf "%s\n" "$lt_cv_nm_interface" >&6; }
d7589 2
a7590 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
printf %s "checking whether ln -s works... " >&6; }
d7593 2
a7594 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
d7596 2
a7597 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
printf "%s\n" "no, using $LN_S" >&6; }
d7601 5
a7605 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
printf %s "checking the maximum length of command line arguments... " >&6; }
if test ${lt_cv_sys_max_cmd_len+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7732 2
a7733 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
d7735 2
a7736 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
printf "%s\n" "none" >&6; }
d7780 5
a7784 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
printf %s "checking how to convert $build file names to $host format... " >&6; }
if test ${lt_cv_to_host_file_cmd+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7820 2
a7821 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
d7827 5
a7831 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
printf %s "checking how to convert $build file names to toolchain format... " >&6; }
if test ${lt_cv_to_tool_file_cmd+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7847 2
a7848 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
d7854 5
a7858 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
printf %s "checking for $LD option to reload object files... " >&6; }
if test ${lt_cv_ld_reload_flag+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7861 2
a7862 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
d7895 5
a7899 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_OBJDUMP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7907 1
a7907 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d7909 1
a7909 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d7911 1
a7911 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d7922 2
a7923 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
printf "%s\n" "$OBJDUMP" >&6; }
d7925 2
a7926 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d7935 5
a7939 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7947 1
a7947 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d7949 1
a7949 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d7951 1
a7951 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d7962 2
a7963 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
d7965 2
a7966 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d7974 2
a7975 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d7994 5
a7998 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
printf %s "checking how to recognize dependent libraries... " >&6; }
if test ${lt_cv_deplibs_check_method+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8194 2
a8195 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
d8239 5
a8243 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_DLLTOOL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8251 1
a8251 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d8253 1
a8253 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d8255 1
a8255 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d8266 2
a8267 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
printf "%s\n" "$DLLTOOL" >&6; }
d8269 2
a8270 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d8279 5
a8283 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8291 1
a8291 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d8293 1
a8293 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d8295 1
a8295 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d8306 2
a8307 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
d8309 2
a8310 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d8318 2
a8319 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d8339 5
a8343 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
printf %s "checking how to associate runtime and link libraries... " >&6; }
if test ${lt_cv_sharedlib_from_linklib_cmd+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8366 2
a8367 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
d8382 5
a8386 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_AR+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8394 1
a8394 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d8396 1
a8396 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d8398 1
a8398 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d8409 2
a8410 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
printf "%s\n" "$AR" >&6; }
d8412 2
a8413 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d8426 5
a8430 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_AR+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8438 1
a8438 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d8440 1
a8440 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d8442 1
a8442 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d8453 2
a8454 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
printf "%s\n" "$ac_ct_AR" >&6; }
d8456 2
a8457 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d8469 2
a8470 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d8490 5
a8494 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @@FILE support" >&5
printf %s "checking for archiver @@FILE support... " >&6; }
if test ${lt_cv_ar_at_file+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8500 1
a8500 1
main (void)
d8507 1
a8507 2
if ac_fn_c_try_compile "$LINENO"
then :
d8513 1
a8513 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d8521 1
a8521 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d8530 1
a8530 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d8533 2
a8534 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
printf "%s\n" "$lt_cv_ar_at_file" >&6; }
d8551 5
a8555 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_STRIP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8563 1
a8563 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d8565 1
a8565 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d8567 1
a8567 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d8578 2
a8579 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
printf "%s\n" "$STRIP" >&6; }
d8581 2
a8582 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d8591 5
a8595 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_STRIP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8603 1
a8603 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d8605 1
a8605 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d8607 1
a8607 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d8618 2
a8619 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
printf "%s\n" "$ac_ct_STRIP" >&6; }
d8621 2
a8622 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d8630 2
a8631 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d8650 5
a8654 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_RANLIB+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8662 1
a8662 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d8664 1
a8664 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d8666 1
a8666 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d8677 2
a8678 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
printf "%s\n" "$RANLIB" >&6; }
d8680 2
a8681 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d8690 5
a8694 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_RANLIB+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8702 1
a8702 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d8704 1
a8704 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d8706 1
a8706 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d8717 2
a8718 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
printf "%s\n" "$ac_ct_RANLIB" >&6; }
d8720 2
a8721 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d8729 2
a8730 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d8819 5
a8823 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
printf %s "checking command to parse $NM output from $compiler object... " >&6; }
if test ${lt_cv_sys_global_symbol_pipe+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8975 1
a8975 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d8982 1
a8982 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d9051 1
a9051 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d9086 2
a9087 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
printf "%s\n" "failed" >&6; }
d9089 2
a9090 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
printf "%s\n" "ok" >&6; }
d9136 2
a9137 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
printf %s "checking for sysroot... " >&6; }
d9140 1
a9140 2
if test ${with_sysroot+y}
then :
d9142 1
a9142 1
else $as_nop
d9160 2
a9161 2
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
printf "%s\n" "$with_sysroot" >&6; }
d9166 2
a9167 2
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
printf "%s\n" "${lt_sysroot:-no}" >&6; }
d9173 5
a9177 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
printf %s "checking for a working dd... " >&6; }
if test ${ac_cv_path_lt_DD+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9188 2
a9189 7
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in dd
   do
d9191 1
a9191 1
      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
d9211 2
a9212 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
d9215 5
a9219 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
printf %s "checking how to truncate binary pipes... " >&6; }
if test ${lt_cv_truncate_bin+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9230 2
a9231 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
printf "%s\n" "$lt_cv_truncate_bin" >&6; }
d9254 1
a9254 2
if test ${enable_libtool_lock+y}
then :
d9270 1
a9270 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d9290 1
a9290 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d9328 1
a9328 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d9369 1
a9369 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d9432 5
a9436 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
printf %s "checking whether the C compiler needs -belf... " >&6; }
if test ${lt_cv_cc_needs_belf+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9447 1
a9447 1
main (void)
d9454 1
a9454 2
if ac_fn_c_try_link "$LINENO"
then :
d9456 1
a9456 1
else $as_nop
d9459 1
a9459 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d9468 2
a9469 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
d9482 1
a9482 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d9519 5
a9523 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_MANIFEST_TOOL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9531 1
a9531 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9533 1
a9533 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9535 1
a9535 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9546 2
a9547 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
printf "%s\n" "$MANIFEST_TOOL" >&6; }
d9549 2
a9550 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9559 5
a9563 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9571 1
a9571 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9573 1
a9573 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9575 1
a9575 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9586 2
a9587 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
d9589 2
a9590 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9598 2
a9599 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d9609 5
a9613 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
if test ${lt_cv_path_mainfest_tool+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9623 2
a9624 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
d9639 5
a9643 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_DSYMUTIL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9651 1
a9651 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9653 1
a9653 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9655 1
a9655 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9666 2
a9667 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
printf "%s\n" "$DSYMUTIL" >&6; }
d9669 2
a9670 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9679 5
a9683 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9691 1
a9691 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9693 1
a9693 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9695 1
a9695 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9706 2
a9707 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
d9709 2
a9710 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9718 2
a9719 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d9731 5
a9735 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_NMEDIT+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9743 1
a9743 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9745 1
a9745 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9747 1
a9747 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9758 2
a9759 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
printf "%s\n" "$NMEDIT" >&6; }
d9761 2
a9762 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9771 5
a9775 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_NMEDIT+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9783 1
a9783 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9785 1
a9785 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9787 1
a9787 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9798 2
a9799 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
printf "%s\n" "$ac_ct_NMEDIT" >&6; }
d9801 2
a9802 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9810 2
a9811 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d9823 5
a9827 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_LIPO+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9835 1
a9835 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9837 1
a9837 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9839 1
a9839 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9850 2
a9851 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
printf "%s\n" "$LIPO" >&6; }
d9853 2
a9854 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9863 5
a9867 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_LIPO+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9875 1
a9875 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9877 1
a9877 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9879 1
a9879 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9890 2
a9891 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
printf "%s\n" "$ac_ct_LIPO" >&6; }
d9893 2
a9894 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9902 2
a9903 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d9915 5
a9919 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_OTOOL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9927 1
a9927 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9929 1
a9929 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9931 1
a9931 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9942 2
a9943 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
printf "%s\n" "$OTOOL" >&6; }
d9945 2
a9946 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9955 5
a9959 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_OTOOL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9967 1
a9967 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9969 1
a9969 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9971 1
a9971 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9982 2
a9983 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
printf "%s\n" "$ac_ct_OTOOL" >&6; }
d9985 2
a9986 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9994 2
a9995 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d10007 5
a10011 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_OTOOL64+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10019 1
a10019 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d10021 1
a10021 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d10023 1
a10023 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d10034 2
a10035 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
printf "%s\n" "$OTOOL64" >&6; }
d10037 2
a10038 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d10047 5
a10051 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_OTOOL64+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10059 1
a10059 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d10061 1
a10061 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d10063 1
a10063 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d10074 2
a10075 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
printf "%s\n" "$ac_ct_OTOOL64" >&6; }
d10077 2
a10078 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d10086 2
a10087 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d10122 5
a10126 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
printf %s "checking for -single_module linker flag... " >&6; }
if test ${lt_cv_apple_cc_single_mod+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10155 2
a10156 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
d10158 5
a10162 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
printf %s "checking for -exported_symbols_list linker flag... " >&6; }
if test ${lt_cv_ld_exported_symbols_list+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10171 1
a10171 1
main (void)
d10178 1
a10178 2
if ac_fn_c_try_link "$LINENO"
then :
d10180 1
a10180 1
else $as_nop
d10183 1
a10183 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d10188 2
a10189 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
d10191 5
a10195 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
printf %s "checking for -force_load linker flag... " >&6; }
if test ${lt_cv_ld_force_load+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10223 2
a10224 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
printf "%s\n" "$lt_cv_ld_force_load" >&6; }
d10295 3
a10297 1
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
d10299 4
a10302 3
if test "x$ac_cv_header_dlfcn_h" = xyes
then :
  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
d10306 2
a10312 30
# Check whether --enable-shared was given.
if test ${enable_shared+y}
then :
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
      for pkg in $enableval; do
	IFS=$lt_save_ifs
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS=$lt_save_ifs
      ;;
    esac
else $as_nop
  enable_shared=no
fi







d10324 1
a10324 2
if test ${enable_static+y}
then :
d10342 1
a10342 1
else $as_nop
d10356 1
a10356 2
if test ${with_pic+y}
then :
d10373 1
a10373 1
else $as_nop
d10385 1
a10385 2
if test ${enable_fast_install+y}
then :
d10403 1
a10403 1
else $as_nop
d10417 2
a10418 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
printf %s "checking which variant of shared library versioning to provide... " >&6; }
d10421 1
a10421 2
if test ${with_aix_soname+y}
then :
d10430 4
a10433 5
else $as_nop
  if test ${lt_cv_with_aix_soname+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10440 2
a10441 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
printf "%s\n" "$with_aix_soname" >&6; }
d10523 5
a10527 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
printf %s "checking for objdir... " >&6; }
if test ${lt_cv_objdir+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10538 2
a10539 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
printf "%s\n" "$lt_cv_objdir" >&6; }
d10546 3
a10548 1
printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
d10594 5
a10598 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
printf %s "checking for ${ac_tool_prefix}file... " >&6; }
if test ${lt_cv_path_MAGIC_CMD+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10647 2
a10648 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
printf "%s\n" "$MAGIC_CMD" >&6; }
d10650 2
a10651 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d10660 5
a10664 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
printf %s "checking for file... " >&6; }
if test ${lt_cv_path_MAGIC_CMD+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10713 2
a10714 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
printf "%s\n" "$MAGIC_CMD" >&6; }
d10716 2
a10717 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d10802 5
a10806 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
if test ${lt_cv_prog_compiler_rtti_exceptions+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10837 2
a10838 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d11195 5
a11199 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
printf %s "checking for $compiler option to produce PIC... " >&6; }
if test ${lt_cv_prog_compiler_pic+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d11202 2
a11203 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
d11210 5
a11214 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
if test ${lt_cv_prog_compiler_pic_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d11245 2
a11246 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
d11274 5
a11278 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if test ${lt_cv_prog_compiler_static_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d11302 2
a11303 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
d11317 5
a11321 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test ${lt_cv_prog_compiler_c_o+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d11364 2
a11365 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
d11372 5
a11376 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test ${lt_cv_prog_compiler_c_o+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d11419 2
a11420 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
d11428 2
a11429 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
printf %s "checking if we can lock with hard links... " >&6; }
d11436 2
a11437 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
printf "%s\n" "$hard_links" >&6; }
d11439 2
a11440 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
d11452 2
a11453 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d12008 3
a12010 4
  if test ${lt_cv_aix_libpath_+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d12015 1
a12015 1
main (void)
d12022 1
a12022 2
if ac_fn_c_try_link "$LINENO"
then :
d12037 1
a12037 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d12061 3
a12063 4
  if test ${lt_cv_aix_libpath_+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d12068 1
a12068 1
main (void)
d12075 1
a12075 2
if ac_fn_c_try_link "$LINENO"
then :
d12090 1
a12090 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d12341 5
a12345 6
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
printf %s "checking if $CC understands -b... " >&6; }
if test ${lt_cv_prog_compiler__b+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d12369 2
a12370 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
d12410 5
a12414 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
if test ${lt_cv_irix_exported_symbol+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d12421 1
a12421 2
if ac_fn_c_try_link "$LINENO"
then :
d12423 1
a12423 1
else $as_nop
d12426 1
a12426 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d12430 2
a12431 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
d12711 2
a12712 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
printf "%s\n" "$ld_shlibs" >&6; }
d12748 5
a12752 6
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
printf %s "checking whether -lc should be explicitly linked in... " >&6; }
if test ${lt_cv_archive_cmds_need_lc+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d12759 1
a12759 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d12777 1
a12777 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d12791 2
a12792 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
d12951 2
a12952 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
printf %s "checking dynamic linker characteristics... " >&6; }
d13513 3
a13515 4
  if test ${lt_cv_shlibpath_overrides_runpath+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d13525 1
a13525 1
main (void)
d13532 2
a13533 4
if ac_fn_c_try_link "$LINENO"
then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
then :
d13537 1
a13537 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d13769 2
a13770 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
printf "%s\n" "$dynamic_linker" >&6; }
d13891 2
a13892 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
printf %s "checking how to hardcode library paths into programs... " >&6; }
d13916 2
a13917 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
printf "%s\n" "$hardcode_action" >&6; }
d13961 5
a13965 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
printf %s "checking for dlopen in -ldl... " >&6; }
if test ${ac_cv_lib_dl_dlopen+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d13974 3
d13979 1
a13979 1
main (void)
d13986 1
a13986 2
if ac_fn_c_try_link "$LINENO"
then :
d13988 1
a13988 1
else $as_nop
d13991 1
a13991 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d13995 3
a13997 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes
then :
d13999 1
a13999 1
else $as_nop
d14019 1
a14019 2
if test "x$ac_cv_func_shl_load" = xyes
then :
d14021 6
a14026 7
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
printf %s "checking for shl_load in -ldld... " >&6; }
if test ${ac_cv_lib_dld_shl_load+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14035 3
d14040 1
a14040 1
main (void)
d14047 1
a14047 2
if ac_fn_c_try_link "$LINENO"
then :
d14049 1
a14049 1
else $as_nop
d14052 1
a14052 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d14056 3
a14058 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes
then :
d14060 1
a14060 1
else $as_nop
d14062 1
a14062 2
if test "x$ac_cv_func_dlopen" = xyes
then :
d14064 6
a14069 7
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
printf %s "checking for dlopen in -ldl... " >&6; }
if test ${ac_cv_lib_dl_dlopen+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14078 3
d14083 1
a14083 1
main (void)
d14090 1
a14090 2
if ac_fn_c_try_link "$LINENO"
then :
d14092 1
a14092 1
else $as_nop
d14095 1
a14095 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d14099 3
a14101 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes
then :
d14103 6
a14108 7
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
printf %s "checking for dlopen in -lsvld... " >&6; }
if test ${ac_cv_lib_svld_dlopen+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14117 3
d14122 1
a14122 1
main (void)
d14129 1
a14129 2
if ac_fn_c_try_link "$LINENO"
then :
d14131 1
a14131 1
else $as_nop
d14134 1
a14134 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d14138 3
a14140 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = xyes
then :
d14142 6
a14147 7
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
printf %s "checking for dld_link in -ldld... " >&6; }
if test ${ac_cv_lib_dld_dld_link+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14156 3
d14161 1
a14161 1
main (void)
d14168 1
a14168 2
if ac_fn_c_try_link "$LINENO"
then :
d14170 1
a14170 1
else $as_nop
d14173 1
a14173 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d14177 3
a14179 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes
then :
d14218 5
a14222 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
printf %s "checking whether a program can dlopen itself... " >&6; }
if test ${lt_cv_dlopen_self+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14301 1
a14301 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d14319 2
a14320 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
printf "%s\n" "$lt_cv_dlopen_self" >&6; }
d14324 5
a14328 6
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
if test ${lt_cv_dlopen_self_static+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14407 1
a14407 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d14425 2
a14426 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
d14464 2
a14465 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
printf %s "checking whether stripping libraries is possible... " >&6; }
d14469 2
a14470 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
d14478 2
a14479 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
d14481 2
a14482 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d14486 2
a14487 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d14504 4
a14507 4
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
printf %s "checking if libtool supports shared libraries... " >&6; }
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
printf "%s\n" "$can_build_shared" >&6; }
d14509 2
a14510 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
printf %s "checking whether to build shared libraries... " >&6; }
d14534 2
a14535 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
printf "%s\n" "$enable_shared" >&6; }
d14537 2
a14538 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
printf %s "checking whether to build static libraries... " >&6; }
d14541 2
a14542 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
printf "%s\n" "$enable_static" >&6; }
d14585 1
a14585 1
# - build a static copy (disable-shared - done earlier)
d14595 2
a14596 56
# Autoupdate added the next two lines to ensure that your configure
# script's behavior did not change.  They are probably safe to remove.

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in egrep
   do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_EGREP" || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
a14597 8
      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
a14598 45
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"



ac_func=
for ac_item in $ac_func_c_list
do
  if test $ac_func; then
    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
      echo "#define $ac_item 1" >> confdefs.h
    fi
    ac_func=
  else
    ac_func=$ac_item
  fi
done

  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
"
if test "x$ac_cv_type_pid_t" = xyes
then :

else $as_nop
                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

          #if defined _WIN64 && !defined __CYGWIN__
          LLP64
          #endif

int
main (void)
{

  ;
  return 0;
}
d14600 2
a14602 10
if ac_fn_c_try_compile "$LINENO"
then :
  ac_pid_type='int'
else $as_nop
  ac_pid_type='__int64'
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h

a14607 4




d14610 6
a14615 7
  as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
printf %s "checking for $ac_hdr that defines DIR... " >&6; }
if eval test \${$as_ac_Header+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14622 1
a14622 1
main (void)
d14630 1
a14630 2
if ac_fn_c_try_compile "$LINENO"
then :
d14632 1
a14632 1
else $as_nop
d14635 1
a14635 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d14638 3
a14640 4
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Header"\" = x"yes"
then :
d14642 1
a14642 1
#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
d14651 5
a14655 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
printf %s "checking for library containing opendir... " >&6; }
if test ${ac_cv_search_opendir+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14663 3
d14668 1
a14668 1
main (void)
d14675 1
a14675 2
for ac_lib in '' dir
do
d14682 1
a14682 2
  if ac_fn_c_try_link "$LINENO"
then :
d14685 1
a14685 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d14687 1
a14687 2
  if test ${ac_cv_search_opendir+y}
then :
d14691 1
a14691 2
if test ${ac_cv_search_opendir+y}
then :
d14693 1
a14693 1
else $as_nop
d14699 2
a14700 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
printf "%s\n" "$ac_cv_search_opendir" >&6; }
d14702 1
a14702 2
if test "$ac_res" != no
then :
d14708 5
a14712 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
printf %s "checking for library containing opendir... " >&6; }
if test ${ac_cv_search_opendir+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14720 3
d14725 1
a14725 1
main (void)
d14732 1
a14732 2
for ac_lib in '' x
do
d14739 1
a14739 2
  if ac_fn_c_try_link "$LINENO"
then :
d14742 1
a14742 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d14744 1
a14744 2
  if test ${ac_cv_search_opendir+y}
then :
d14748 1
a14748 2
if test ${ac_cv_search_opendir+y}
then :
d14750 1
a14750 1
else $as_nop
d14756 2
a14757 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
printf "%s\n" "$ac_cv_search_opendir" >&6; }
d14759 1
a14759 2
if test "$ac_res" != no
then :
d14770 14
a14783 4
  ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_mman_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
a14785 4
ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_param_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
d14787 1
a14787 5
fi
ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_poll_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
a14788 5
fi
ac_fn_c_check_header_compile "$LINENO" "sys/procset.h" "ac_cv_header_sys_procset_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_procset_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PROCSET_H 1" >>confdefs.h
d14790 11
a14801 4
ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_select_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
d14803 1
a14803 5
fi
ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_socket_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
a14804 114
fi
ac_fn_c_check_header_compile "$LINENO" "sys/stropts.h" "ac_cv_header_sys_stropts_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_stropts_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_STROPTS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_time_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_un_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_wait_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
if test "x$ac_cv_header_dlfcn_h" = xyes
then :
  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
if test "x$ac_cv_header_errno_h" = xyes
then :
  printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
if test "x$ac_cv_header_fcntl_h" = xyes
then :
  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
if test "x$ac_cv_header_libgen_h" = xyes
then :
  printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
if test "x$ac_cv_header_libintl_h" = xyes
then :
  printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
if test "x$ac_cv_header_memory_h" = xyes
then :
  printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
if test "x$ac_cv_header_netinet_in_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
if test "x$ac_cv_header_setjmp_h" = xyes
then :
  printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
if test "x$ac_cv_header_stdbool_h" = xyes
then :
  printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
if test "x$ac_cv_header_sysexits_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
if test "x$ac_cv_header_unistd_h" = xyes
then :
  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
if test "x$ac_cv_header_utime_h" = xyes
then :
  printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h

fi


         for ac_header in stdarg.h varargs.h
do :
  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"
then :
  cat >>confdefs.h <<_ACEOF
#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_arg_hdr=true;break
else $as_nop
  lo_have_arg_hdr=false
fi

done
d14806 1
a14806 1
         for ac_header in string.h strings.h
d14808 3
a14810 4
  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"
then :
d14812 1
a14812 1
#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
d14815 1
a14815 1
else $as_nop
d14821 2
a14822 1
         for ac_header in limits.h sys/limits.h values.h
d14824 3
a14826 4
  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"
then :
d14828 1
a14828 1
#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
d14831 1
a14831 1
else $as_nop
d14837 2
a14838 1
         for ac_header in inttypes.h stdint.h
d14840 3
a14842 4
  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"
then :
d14844 1
a14844 1
#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
d14847 1
a14847 1
else $as_nop
d14854 5
a14858 11
  case "$host_os" in
    cygwin*)
                        STDNORETURN_H='stdnoreturn.h'
      ;;
    *)
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
printf %s "checking for working stdnoreturn.h... " >&6; }
if test ${gl_cv_header_working_stdnoreturn_h+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14862 12
a14873 13
                #include <stdnoreturn.h>
                /* Do not check for 'noreturn' after the return type.
                   C11 allows it, but it's rarely done that way
                   and circa-2012 bleeding-edge GCC rejects it when given
                   -Werror=old-style-declaration.  */
                noreturn void foo1 (void) { exit (0); }
                _Noreturn void foo2 (void) { exit (0); }
                int testit (int argc, char **argv)
                {
                  if (argc & 1)
                    return 0;
                  (argv[0][0] ? foo1 : foo2) ();
                }
d14876 1
a14876 1
main (void)
d14883 1
a14883 2
if ac_fn_c_try_compile "$LINENO"
then :
d14885 1
a14885 1
else $as_nop
d14888 1
a14888 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d14890 9
a14898 9
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
printf "%s\n" "$gl_cv_header_working_stdnoreturn_h" >&6; }
      if test $gl_cv_header_working_stdnoreturn_h = yes; then
        STDNORETURN_H=''
      else
        STDNORETURN_H='stdnoreturn.h'
      fi
      ;;
  esac
d14914 4
a14917 1
  ac_fn_c_check_header_compile "$LINENO" "runetype.h" "ac_cv_header_runetype_h" "
d14924 4
a14927 3
if test "x$ac_cv_header_runetype_h" = xyes
then :
  printf "%s\n" "#define HAVE_RUNETYPE_H 1" >>confdefs.h
a14929 5
ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "
  $ac_includes_default
  #if HAVE_RUNETYPE_H
  # include <runetype.h>
  #endif
d14931 1
a14931 6
"
if test "x$ac_cv_header_wchar_h" = xyes
then :
  printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h

fi
d14935 1
a14935 2
if test ${enable_nls+y}
then :
d14940 1
a14940 2
  test "X${ac_cv_header_libintl_h}" = Xyes
then :
d14943 1
a14943 1
printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
d14975 1
a14975 2
if test "x$ac_cv_type_wchar_t" = xyes
then :
d14977 3
a14979 1
printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
d14994 1
a14994 2
if test "x$ac_cv_type_wint_t" = xyes
then :
d14996 3
a14998 1
printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
d15004 1
a15004 2
if test "x$ac_cv_type_int8_t" = xyes
then :
d15006 3
a15008 1
printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h
d15013 1
a15013 2
if test "x$ac_cv_type_uint8_t" = xyes
then :
d15015 3
a15017 1
printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h
d15022 1
a15022 2
if test "x$ac_cv_type_int16_t" = xyes
then :
d15024 3
a15026 1
printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h
d15031 1
a15031 2
if test "x$ac_cv_type_uint16_t" = xyes
then :
d15033 3
a15035 1
printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h
d15040 1
a15040 2
if test "x$ac_cv_type_int32_t" = xyes
then :
d15042 3
a15044 1
printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h
d15049 1
a15049 2
if test "x$ac_cv_type_uint32_t" = xyes
then :
d15051 3
a15053 1
printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h
d15058 1
a15058 2
if test "x$ac_cv_type_intptr_t" = xyes
then :
d15060 3
a15062 1
printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
d15067 1
a15067 2
if test "x$ac_cv_type_uintptr_t" = xyes
then :
d15069 3
a15071 1
printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
d15076 1
a15076 2
if test "x$ac_cv_type_uint_t" = xyes
then :
d15078 3
a15080 1
printf "%s\n" "#define HAVE_UINT_T 1" >>confdefs.h
d15085 1
a15085 2
if test "x$ac_cv_type_pid_t" = xyes
then :
d15087 3
a15089 1
printf "%s\n" "#define HAVE_PID_T 1" >>confdefs.h
d15094 1
a15094 2
if test "x$ac_cv_type_size_t" = xyes
then :
d15096 3
a15098 1
printf "%s\n" "#define HAVE_SIZE_T 1" >>confdefs.h
d15103 1
a15103 2
if test "x$ac_cv_type_ptrdiff_t" = xyes
then :
d15105 3
a15107 1
printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
d15116 6
a15121 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
printf %s "checking size of char *... " >&6; }
if test ${ac_cv_sizeof_char_p+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"
then :
d15123 1
a15123 1
else $as_nop
d15125 2
a15126 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d15135 2
a15136 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
printf "%s\n" "$ac_cv_sizeof_char_p" >&6; }
d15140 3
a15142 1
printf "%s\n" "#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p" >>confdefs.h
d15149 6
a15154 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
printf %s "checking size of int... " >&6; }
if test ${ac_cv_sizeof_int+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
then :
d15156 1
a15156 1
else $as_nop
d15158 2
a15159 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d15168 2
a15169 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
printf "%s\n" "$ac_cv_sizeof_int" >&6; }
d15173 3
a15175 1
printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
d15182 6
a15187 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
printf %s "checking size of long... " >&6; }
if test ${ac_cv_sizeof_long+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
then :
d15189 1
a15189 1
else $as_nop
d15191 2
a15192 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d15201 2
a15202 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
printf "%s\n" "$ac_cv_sizeof_long" >&6; }
d15206 3
a15208 1
printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
d15215 6
a15220 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
printf %s "checking size of short... " >&6; }
if test ${ac_cv_sizeof_short+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
then :
d15222 1
a15222 1
else $as_nop
d15224 2
a15225 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d15234 2
a15235 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
printf "%s\n" "$ac_cv_sizeof_short" >&6; }
d15239 3
a15241 1
printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
d15248 5
a15252 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
printf %s "checking for pathfind in -lgen... " >&6; }
if test ${ac_cv_lib_gen_pathfind+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d15261 3
d15266 1
a15266 1
main (void)
d15273 1
a15273 2
if ac_fn_c_try_link "$LINENO"
then :
d15275 1
a15275 1
else $as_nop
d15278 1
a15278 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d15282 6
a15287 5
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
printf "%s\n" "$ac_cv_lib_gen_pathfind" >&6; }
if test "x$ac_cv_lib_gen_pathfind" = xyes
then :
  printf "%s\n" "#define HAVE_LIBGEN 1" >>confdefs.h
d15293 5
a15297 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
printf %s "checking for gettext in -lintl... " >&6; }
if test ${ac_cv_lib_intl_gettext+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d15306 3
d15311 1
a15311 1
main (void)
d15318 1
a15318 2
if ac_fn_c_try_link "$LINENO"
then :
d15320 1
a15320 1
else $as_nop
d15323 1
a15323 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d15327 6
a15332 5
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
printf "%s\n" "$ac_cv_lib_intl_gettext" >&6; }
if test "x$ac_cv_lib_intl_gettext" = xyes
then :
  printf "%s\n" "#define HAVE_LIBINTL 1" >>confdefs.h
d15338 10
d15349 1
a15349 5
if test "x$ac_cv_func_vprintf" = xno
then :
  ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
if test "x$ac_cv_func__doprnt" = xyes
then :
d15351 1
a15351 1
printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
d15354 10
d15367 13
d15382 6
a15387 8
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
printf %s "checking for working fork... " >&6; }
if test ${ac_cv_func_fork_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
d15389 1
a15389 1
else $as_nop
d15394 1
a15394 1
main (void)
d15404 1
a15404 2
if ac_fn_c_try_run "$LINENO"
then :
d15406 1
a15406 1
else $as_nop
d15414 2
a15415 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
printf "%s\n" "$ac_cv_func_fork_works" >&6; }
d15430 2
a15431 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
d15435 6
a15440 8
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
printf %s "checking for working vfork... " >&6; }
if test ${ac_cv_func_vfork_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
d15442 1
a15442 1
else $as_nop
a15446 1
#include <signal.h>
a15450 7

static void
do_nothing (int sig)
{
  (void) sig;
}

d15458 1
d15460 3
d15480 1
a15480 1
main (void)
a15486 5
  /* On Solaris 2.4, changes by the child to the signal handler
     also munge signal handlers in the parent.  To detect this,
     start by putting the parent's handler in a known state.  */
  signal (SIGTERM, SIG_DFL);

a15507 4
    /* Alter the child's signal handler.  */
    if (signal (SIGTERM, do_nothing) != SIG_DFL)
      _exit(1);

a15522 3
	 /* Did the child munge the parent's signal handler?  */
	 || signal (SIGTERM, SIG_DFL) != SIG_DFL

d15535 1
a15535 2
if ac_fn_c_try_run "$LINENO"
then :
d15537 1
a15537 1
else $as_nop
d15545 2
a15546 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
d15551 2
a15552 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
d15557 1
a15557 1
printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
d15561 1
a15561 1
printf "%s\n" "#define vfork fork" >>confdefs.h
d15566 1
a15566 1
printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
d15570 9
a15578 4
  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
if test "x$ac_cv_func_mmap" = xyes
then :
  printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
d15581 1
a15581 4
ac_fn_c_check_func "$LINENO" "canonicalize_file_name" "ac_cv_func_canonicalize_file_name"
if test "x$ac_cv_func_canonicalize_file_name" = xyes
then :
  printf "%s\n" "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
d15583 5
a15587 56
fi
ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
if test "x$ac_cv_func_snprintf" = xyes
then :
  printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
if test "x$ac_cv_func_strdup" = xyes
then :
  printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
if test "x$ac_cv_func_strchr" = xyes
then :
  printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
if test "x$ac_cv_func_strrchr" = xyes
then :
  printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
if test "x$ac_cv_func_strsignal" = xyes
then :
  printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
if test "x$ac_cv_func_fchmod" = xyes
then :
  printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
if test "x$ac_cv_func_fstat" = xyes
then :
  printf "%s\n" "#define HAVE_FSTAT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod"
if test "x$ac_cv_func_chmod" = xyes
then :
  printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h

fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
printf %s "checking for a sed that does not truncate output... " >&6; }
if test ${ac_cv_path_SED+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d15601 2
a15602 7
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in sed gsed
   do
d15604 1
a15604 1
      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
d15613 1
a15613 1
  printf %s 0123456789 >"conftest.in"
d15619 1
a15619 1
    printf "%s\n" '' >> "conftest.nl"
d15647 2
a15648 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
printf "%s\n" "$ac_cv_path_SED" >&6; }
a15653 1
      test -x "$POSIX_SHELL" && break
d15668 3
a15670 1
printf "%s\n" "#define POSIX_SHELL \"${POSIX_SHELL}\"" >>confdefs.h
d15682 1
a15682 2
if test ${enable_local_libopts+y}
then :
d15685 2
a15686 2
       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
printf "%s\n" "$as_me: Using supplied libopts tearoff" >&6;}
d15695 1
a15695 2
if test ${enable_libopts_install+y}
then :
d15709 2
a15710 2
     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
printf %s "checking whether autoopts-config can be found... " >&6; }
d15713 1
a15713 2
if test ${with_autoopts_config+y}
then :
d15715 6
a15720 7
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
printf %s "checking whether autoopts-config is specified... " >&6; }
if test ${lo_cv_with_autoopts_config+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d15727 2
a15728 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
printf "%s\n" "$lo_cv_with_autoopts_config" >&6; }
d15733 3
a15735 4
     if test ${lo_cv_test_autoopts+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d15753 2
a15754 2
     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
printf "%s\n" "${lo_cv_test_autoopts}" >&6; }
d15793 5
a15797 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PKG_CONFIG+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d15807 1
a15807 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d15809 3
a15811 3
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d15823 2
a15824 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
printf "%s\n" "$PKG_CONFIG" >&6; }
d15826 2
a15827 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d15836 5
a15840 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d15850 1
a15850 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d15852 3
a15854 3
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d15866 2
a15867 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
d15869 2
a15870 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d15878 2
a15879 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d15893 2
a15894 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
printf %s "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
d15896 2
a15897 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
d15899 2
a15900 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d15910 1
a15910 2
if test ${enable_local_libevent+y}
then :
d15912 1
a15912 1
else $as_nop
d15934 2
d15944 2
a15945 4
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
printf %s "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5
printf "%s\n" "yes, version $ntp_libevent_version" >&6; }
d15978 2
a15979 4
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
printf %s "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d15991 2
a15992 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
printf "%s\n" "$as_me: Using libevent tearoff" >&6;}
d16029 1
a16029 2
if test "x$ac_cv_type_size_t" = xyes
then :
d16031 1
a16031 50
else $as_nop

printf "%s\n" "#define size_t unsigned int" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
if test ${ac_cv_c_undeclared_builtin_options+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_save_CFLAGS=$CFLAGS
   ac_cv_c_undeclared_builtin_options='cannot detect'
   for ac_arg in '' -fno-builtin; do
     CFLAGS="$ac_save_CFLAGS $ac_arg"
     # This test program should *not* compile successfully.
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{
(void) strchr;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else $as_nop
  # This test program should compile successfully.
        # No library function is consistently available on
        # freestanding implementations, so test against a dummy
        # declaration.  Include always-available headers on the
        # off chance that they somehow elicit warnings.
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <float.h>
#include <limits.h>
#include <stdarg.h>
#include <stddef.h>
extern void ac_decl (int, char *);

int
main (void)
{
(void) ac_decl (0, (char *) 0);
  (void) ac_decl;
d16033 2
a16034 3
  ;
  return 0;
}
a16035 30
if ac_fn_c_try_compile "$LINENO"
then :
  if test x"$ac_arg" = x
then :
  ac_cv_c_undeclared_builtin_options='none needed'
else $as_nop
  ac_cv_c_undeclared_builtin_options=$ac_arg
fi
          break
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    done
    CFLAGS=$ac_save_CFLAGS

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  case $ac_cv_c_undeclared_builtin_options in #(
  'cannot detect') :
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot make $CC report undeclared builtins
See \`config.log' for more details" "$LINENO" 5; } ;; #(
  'none needed') :
    ac_c_undeclared_builtin_options='' ;; #(
  *) :
    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
esac
a16036 6
ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl_strerror_r" = xyes
then :
  ac_have_decl=1
else $as_nop
  ac_have_decl=0
a16037 2
printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h

d16041 1
a16041 2
if test ${enable_c99_snprintf+y}
then :
d16043 1
a16043 1
else $as_nop
d16059 16
d16077 7
a16083 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
printf %s "checking for unsigned long long int... " >&6; }
if test ${ac_cv_type_unsigned_long_long_int+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16085 2
a16086 4
     case $ac_prog_cc_stdc in
       no | c89) ;;
       *)
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16090 3
a16092 3
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
d16099 1
a16099 1
		     ? 1 : -1)];
d16101 1
a16101 1
		     ? 1 : -1)];
d16104 1
a16104 1
main (void)
d16110 3
a16112 3
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
d16118 1
a16118 2
if ac_fn_c_try_link "$LINENO"
then :
d16120 1
a16120 1
else $as_nop
d16123 3
a16125 3
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext;;
     esac
d16127 2
a16128 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
d16131 1
a16131 1
printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
d16137 1
a16137 2
if test "x$ac_cv_func_vsnprintf" = xyes
then :
d16139 1
a16139 1
else $as_nop
d16143 7
a16149 10
  if test "$hw_cv_func_vsnprintf" = yes
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
printf %s "checking whether vsnprintf is C99 compliant... " >&6; }
if test ${hw_cv_func_vsnprintf_c99+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
d16151 1
a16151 1
else $as_nop
d16168 1
a16168 1
main (void)
d16179 1
a16179 2
if ac_fn_c_try_run "$LINENO"
then :
d16181 1
a16181 1
else $as_nop
d16189 3
a16191 3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
printf "%s\n" "$hw_cv_func_vsnprintf_c99" >&6; }
else $as_nop
d16195 1
a16195 1
printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
d16197 3
a16199 4
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
printf %s "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no
then :
d16201 1
a16201 1
else $as_nop
d16204 3
a16206 4
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
printf "%s\n" "$hw_use_rpl_vsnprintf" >&6; }
  if test "$hw_use_rpl_vsnprintf" = yes
then :
d16208 1
a16208 1
printf "%s\n" "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
d16210 1
a16210 2
    if test ${hw_nodef_vsnprintf=no} = no
then :
d16212 1
a16212 1
printf "%s\n" "#define vsnprintf rpl_vsnprintf" >>confdefs.h
d16215 8
a16222 4
    ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
if test "x$ac_cv_header_inttypes_h" = xyes
then :
  printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
a16224 4
ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
if test "x$ac_cv_header_locale_h" = xyes
then :
  printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
d16226 1
a16226 13
fi
ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
if test "x$ac_cv_header_stddef_h" = xyes
then :
  printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
if test "x$ac_cv_header_stdint_h" = xyes
then :
  printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h

fi
d16230 1
a16230 2
if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes
then :
d16232 3
a16234 1
printf "%s\n" "#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1" >>confdefs.h
d16240 1
a16240 2
if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes
then :
d16242 3
a16244 1
printf "%s\n" "#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1" >>confdefs.h
d16250 5
a16254 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
printf %s "checking for long double... " >&6; }
if test ${ac_cv_type_long_double+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16264 1
a16264 1
main (void)
d16275 1
a16275 2
if ac_fn_c_try_compile "$LINENO"
then :
d16277 1
a16277 1
else $as_nop
d16280 1
a16280 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d16283 2
a16284 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
printf "%s\n" "$ac_cv_type_long_double" >&6; }
d16287 1
a16287 1
printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
d16293 5
a16297 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
printf %s "checking for long long int... " >&6; }
if test ${ac_cv_type_long_long_int+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16299 4
a16302 7
      case $ac_prog_cc_stdc in
	no | c89) ;;
	*)
	  ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
	  if test $ac_cv_type_long_long_int = yes; then
	    	    	    	    if test "$cross_compiling" = yes
then :
d16304 1
a16304 1
else $as_nop
d16308 5
a16312 5
		   #ifndef LLONG_MAX
		   # define HALF \
			    (1LL << (sizeof (long long int) * CHAR_BIT - 2))
		   # define LLONG_MAX (HALF - 1 + HALF)
		   #endif
d16314 1
a16314 1
main (void)
d16317 10
a16326 10
		   int i;
		   for (i = 0; ; i++)
		     {
		       long long int m = n << i;
		       if (m >> i != n)
			 return 1;
		       if (LLONG_MAX / 2 < m)
			 break;
		     }
		   return 0;
d16331 1
a16331 2
if ac_fn_c_try_run "$LINENO"
then :
d16333 1
a16333 1
else $as_nop
d16340 2
a16341 2
	  fi;;
      esac
d16343 2
a16344 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
d16347 1
a16347 1
printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
d16352 5
a16356 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
printf %s "checking for unsigned long long int... " >&6; }
if test ${ac_cv_type_unsigned_long_long_int+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16358 2
a16359 4
     case $ac_prog_cc_stdc in
       no | c89) ;;
       *)
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16363 3
a16365 3
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
d16372 1
a16372 1
		     ? 1 : -1)];
d16374 1
a16374 1
		     ? 1 : -1)];
d16377 1
a16377 1
main (void)
d16383 3
a16385 3
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
d16391 1
a16391 2
if ac_fn_c_try_link "$LINENO"
then :
d16393 1
a16393 1
else $as_nop
d16396 3
a16398 3
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext;;
     esac
d16400 2
a16401 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
d16404 1
a16404 1
printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
d16409 1
a16409 2
if test "x$ac_cv_type_size_t" = xyes
then :
d16411 1
a16411 1
else $as_nop
d16413 3
a16415 1
printf "%s\n" "#define size_t unsigned int" >>confdefs.h
d16422 1
a16422 2
if test "x$ac_cv_type_intmax_t" = xyes
then :
d16424 1
a16424 1
printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
d16426 1
a16426 1
else $as_nop
d16431 3
a16433 1
printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
d16441 1
a16441 2
if test "x$ac_cv_type_uintmax_t" = xyes
then :
d16443 1
a16443 1
printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
d16445 1
a16445 1
else $as_nop
d16450 3
a16452 1
printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
d16459 1
a16459 2
if test "x$ac_cv_type_uintptr_t" = xyes
then :
d16461 1
a16461 1
printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
d16463 1
a16463 1
else $as_nop
d16470 1
a16470 1
main (void)
d16480 1
a16480 2
if ac_fn_c_try_compile "$LINENO"
then :
d16482 3
a16484 1
printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
d16488 1
a16488 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d16495 1
a16495 2
if test "x$ac_cv_type_ptrdiff_t" = xyes
then :
d16497 3
a16499 1
printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
d16504 7
a16510 4
    ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
if test "x$ac_cv_func_localeconv" = xyes
then :
  printf "%s\n" "#define HAVE_LOCALECONV 1" >>confdefs.h
d16513 1
d16516 6
a16521 8
  if test "x$_hw_cv_func_xprintf_replace_done" != xyes
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
printf %s "checking for an ANSI C-conforming const... " >&6; }
if test ${ac_cv_c_const+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16526 1
a16526 1
main (void)
d16539 1
a16539 1
  /* IBM XL C 1.02.0.0 rejects this.
d16567 1
a16567 1
  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
d16583 1
a16583 2
if ac_fn_c_try_compile "$LINENO"
then :
d16585 1
a16585 1
else $as_nop
d16588 1
a16588 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d16590 2
a16591 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
printf "%s\n" "$ac_cv_c_const" >&6; }
d16594 1
a16594 1
printf "%s\n" "#define const /**/" >>confdefs.h
d16614 1
a16614 2
if test "x$ac_cv_func_snprintf" = xyes
then :
d16616 1
a16616 1
else $as_nop
d16620 7
a16626 10
  if test "$hw_cv_func_snprintf" = yes
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
printf %s "checking whether snprintf is C99 compliant... " >&6; }
if test ${hw_cv_func_snprintf_c99+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
d16628 1
a16628 1
else $as_nop
d16633 1
a16633 1
main (void)
d16644 1
a16644 2
if ac_fn_c_try_run "$LINENO"
then :
d16646 1
a16646 1
else $as_nop
d16654 3
a16656 3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
printf "%s\n" "$hw_cv_func_snprintf_c99" >&6; }
else $as_nop
d16660 1
a16660 1
printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
d16662 3
a16664 4
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
printf %s "checking if C99-snprintf replacement snprintf will be used... " >&6; }
  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no
then :
d16666 1
a16666 1
else $as_nop
d16669 3
a16671 4
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
printf "%s\n" "$hw_use_rpl_snprintf" >&6; }
  if test "$hw_use_rpl_snprintf" = yes
then :
d16673 1
a16673 1
printf "%s\n" "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
d16675 1
a16675 2
    if test ${hw_nodef_snprintf=no} = no
then :
d16677 1
a16677 1
printf "%s\n" "#define snprintf rpl_snprintf" >>confdefs.h
d16681 6
a16686 8
  if test "x$_hw_cv_func_xprintf_replace_done" != xyes
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
printf %s "checking for an ANSI C-conforming const... " >&6; }
if test ${ac_cv_c_const+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16691 1
a16691 1
main (void)
d16704 1
a16704 1
  /* IBM XL C 1.02.0.0 rejects this.
d16732 1
a16732 1
  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
d16748 1
a16748 2
if ac_fn_c_try_compile "$LINENO"
then :
d16750 1
a16750 1
else $as_nop
d16753 1
a16753 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d16755 2
a16756 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
printf "%s\n" "$ac_cv_c_const" >&6; }
d16759 1
a16759 1
printf "%s\n" "#define const /**/" >>confdefs.h
a16779 12
VER_SUFFIX=

	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
printf "%s\n" "$as_me: " >&6;}
	esac






d16784 1
a16784 1
SAVED_LIBS=$LIBS
d16793 1
a16793 2
if test ${with_gnu_ld+y}
then :
d16795 1
a16795 1
else $as_nop
d16802 2
a16803 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
printf %s "checking for ld used by $CC... " >&6; }
d16832 2
a16833 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
printf %s "checking for GNU ld... " >&6; }
d16835 2
a16836 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
printf %s "checking for non-GNU ld... " >&6; }
d16838 3
a16840 4
if test ${lt_cv_path_LD+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16869 2
a16870 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
printf "%s\n" "$LD" >&6; }
d16872 2
a16873 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d16876 5
a16880 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
if test ${lt_cv_prog_gnu_ld+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16891 2
a16892 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
d16902 5
a16906 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
printf %s "checking for directory path separator... " >&6; }
if test ${ntp_cv_dir_sep+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16922 2
a16923 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
printf "%s\n" "$ntp_cv_dir_sep" >&6; }
d16925 3
a16927 1
printf "%s\n" "#define DIR_SEP $ntp_cv_dir_sep" >>confdefs.h
d16934 1
a16934 2
if test ${with_lineeditlibs+y}
then :
d16936 1
a16936 1
else $as_nop
d16941 4
a16944 4
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
printf %s "checking line editing libraries... " >&6; }
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
printf "%s\n" "$use_lineeditlibs" >&6; }
d16961 2
a16962 2
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
printf %s "checking for readline() with $TRY_LIB... " >&6; }
d16969 3
d16974 1
a16974 1
main (void)
d16981 1
a16981 2
if ac_fn_c_try_link "$LINENO"
then :
d16984 1
a16984 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d16988 2
a16989 2
		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d16993 2
a16994 2
		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
d17002 2
a17003 2
		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
printf %s "checking for el_gets() with $TRY_LIB... " >&6; }
d17010 3
d17015 1
a17015 1
main (void)
d17022 1
a17022 2
if ac_fn_c_try_link "$LINENO"
then :
d17025 1
a17025 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d17029 2
a17030 2
			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d17033 2
a17034 2
			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
d17068 8
a17075 4
	ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
if test "x$ac_cv_header_readline_h" = xyes
then :
  printf "%s\n" "#define HAVE_READLINE_H 1" >>confdefs.h
a17077 4
ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
if test "x$ac_cv_header_readline_readline_h" = xyes
then :
  printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
d17079 1
a17079 5
fi
ac_fn_c_check_header_compile "$LINENO" "histedit.h" "ac_cv_header_histedit_h" "$ac_includes_default"
if test "x$ac_cv_header_histedit_h" = xyes
then :
  printf "%s\n" "#define HAVE_HISTEDIT_H 1" >>confdefs.h
d17081 8
a17088 6
fi

	ac_fn_c_check_header_compile "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
if test "x$ac_cv_header_history_h" = xyes
then :
  printf "%s\n" "#define HAVE_HISTORY_H 1" >>confdefs.h
a17090 4
ac_fn_c_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
if test "x$ac_cv_header_readline_history_h" = xyes
then :
  printf "%s\n" "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h
d17092 1
a17092 1
fi
d17097 5
a17101 6
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
printf %s "checking number of arguments to el_init()... " >&6; }
if test ${ntp_cv_el_init_args+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d17109 1
a17109 1
main (void)
d17119 1
a17119 2
if ac_fn_c_try_compile "$LINENO"
then :
d17121 1
a17121 1
else $as_nop
d17125 1
a17125 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d17128 2
a17129 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
printf "%s\n" "$ntp_cv_el_init_args" >&6; }
d17131 3
a17133 1
printf "%s\n" "#define EL_INIT_ARGS $ntp_cv_el_init_args" >>confdefs.h
d17137 2
a17138 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
printf %s "checking whether readline supports history... " >&6; }
d17149 3
d17154 1
a17154 1
main (void)
d17161 1
a17161 2
if ac_fn_c_try_link "$LINENO"
then :
d17164 1
a17164 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d17168 2
a17169 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
printf "%s\n" "$ntp_lib_lineedit_history" >&6; }
d17174 1
a17174 1
printf "%s\n" "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
d17190 5
a17194 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
printf %s "checking for library containing cos... " >&6; }
if test ${ac_cv_search_cos+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d17202 3
d17207 1
a17207 1
main (void)
d17214 1
a17214 2
for ac_lib in '' m
do
d17221 1
a17221 2
  if ac_fn_c_try_link "$LINENO"
then :
d17224 1
a17224 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d17226 1
a17226 2
  if test ${ac_cv_search_cos+y}
then :
d17230 1
a17230 2
if test ${ac_cv_search_cos+y}
then :
d17232 1
a17232 1
else $as_nop
d17238 2
a17239 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
printf "%s\n" "$ac_cv_search_cos" >&6; }
d17241 1
a17241 2
if test "$ac_res" != no
then :
d17253 20
d17274 2
d17278 6
a17283 8
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
printf %s "checking for working fork... " >&6; }
if test ${ac_cv_func_fork_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
d17285 1
a17285 1
else $as_nop
d17290 1
a17290 1
main (void)
d17300 1
a17300 2
if ac_fn_c_try_run "$LINENO"
then :
d17302 1
a17302 1
else $as_nop
d17310 2
a17311 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
printf "%s\n" "$ac_cv_func_fork_works" >&6; }
d17326 2
a17327 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
d17331 6
a17336 8
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
printf %s "checking for working vfork... " >&6; }
if test ${ac_cv_func_vfork_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
d17338 1
a17338 1
else $as_nop
a17342 1
#include <signal.h>
a17346 7

static void
do_nothing (int sig)
{
  (void) sig;
}

d17354 1
d17356 3
d17376 1
a17376 1
main (void)
a17382 5
  /* On Solaris 2.4, changes by the child to the signal handler
     also munge signal handlers in the parent.  To detect this,
     start by putting the parent's handler in a known state.  */
  signal (SIGTERM, SIG_DFL);

a17403 4
    /* Alter the child's signal handler.  */
    if (signal (SIGTERM, do_nothing) != SIG_DFL)
      _exit(1);

a17418 3
	 /* Did the child munge the parent's signal handler?  */
	 || signal (SIGTERM, SIG_DFL) != SIG_DFL

d17431 1
a17431 2
if ac_fn_c_try_run "$LINENO"
then :
d17433 1
a17433 1
else $as_nop
d17441 2
a17442 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
d17447 2
a17448 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
d17453 1
a17453 1
printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
d17457 1
a17457 1
printf "%s\n" "#define vfork fork" >>confdefs.h
d17462 1
a17462 1
printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
d17468 5
a17472 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
printf %s "checking for working alloca.h... " >&6; }
if test ${ac_cv_working_alloca_h+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d17477 1
a17477 1
main (void)
d17485 1
a17485 2
if ac_fn_c_try_link "$LINENO"
then :
d17487 1
a17487 1
else $as_nop
d17490 1
a17490 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d17493 2
a17494 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
d17497 1
a17497 1
printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
d17501 4
a17504 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
printf %s "checking for alloca... " >&6; }
if test ${ac_cv_func_alloca_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test $ac_cv_working_alloca_h = yes; then
  ac_cv_func_alloca_works=yes
d17508 4
a17511 6
#include <stdlib.h>
#include <stddef.h>
#ifndef alloca
# ifdef __GNUC__
#  define alloca __builtin_alloca
# elif defined _MSC_VER
d17515 10
a17524 2
#  ifdef  __cplusplus
extern "C"
a17525 1
void *alloca (size_t);
d17530 1
a17530 1
main (void)
d17538 1
a17538 2
if ac_fn_c_try_link "$LINENO"
then :
d17540 1
a17540 1
else $as_nop
d17543 1
a17543 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d17546 2
a17547 3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
fi
d17551 1
a17551 1
printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
d17561 40
a17600 1
printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
d17602 2
d17605 6
a17610 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
printf %s "checking stack direction for C alloca... " >&6; }
if test ${ac_cv_c_stack_direction+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
d17612 1
a17612 1
else $as_nop
d17633 1
a17633 2
if ac_fn_c_try_run "$LINENO"
then :
d17635 1
a17635 1
else $as_nop
d17643 5
a17647 3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
d17652 6
d17659 3
a17661 4
if test $ac_cv_have_decl_strerror_r = yes; then
  # For backward compatibility's sake, define HAVE_STRERROR_R.
  # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
  # as AC_CHECK_DECLS_ONCE.)
d17663 7
a17669 1
printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
d17672 1
d17674 5
a17678 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
printf %s "checking whether strerror_r returns char *... " >&6; }
if test ${ac_cv_func_strerror_r_char_p+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d17684 1
a17684 1
#include <string.h>
d17686 1
a17686 1
main (void)
d17698 29
a17726 2
if ac_fn_c_try_compile "$LINENO"
then :
d17729 3
a17731 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d17736 2
a17737 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
d17740 1
a17740 1
printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
d17786 5
a17790 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
printf %s "checking for library containing clock_gettime... " >&6; }
if test ${ac_cv_search_clock_gettime+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d17798 3
d17803 1
a17803 1
main (void)
d17810 1
a17810 2
for ac_lib in '' rt
do
d17817 1
a17817 2
  if ac_fn_c_try_link "$LINENO"
then :
d17820 1
a17820 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d17822 1
a17822 2
  if test ${ac_cv_search_clock_gettime+y}
then :
d17826 1
a17826 2
if test ${ac_cv_search_clock_gettime+y}
then :
d17828 1
a17828 1
else $as_nop
d17834 2
a17835 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
d17837 1
a17837 2
if test "$ac_res" != no
then :
d17847 8
a17854 16
    ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
if test "x$ac_cv_func_clock_getres" = xyes
then :
  printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
if test "x$ac_cv_func_clock_gettime" = xyes
then :
  printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
if test "x$ac_cv_func_clock_settime" = xyes
then :
  printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
d17857 1
d17862 8
a17869 28
ac_fn_c_check_func "$LINENO" "getclock" "ac_cv_func_getclock"
if test "x$ac_cv_func_getclock" = xyes
then :
  printf "%s\n" "#define HAVE_GETCLOCK 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "stime" "ac_cv_func_stime"
if test "x$ac_cv_func_stime" = xyes
then :
  printf "%s\n" "#define HAVE_STIME 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
if test "x$ac_cv_func_timegm" = xyes
then :
  printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
if test "x$ac_cv_func_strlcpy" = xyes
then :
  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
if test "x$ac_cv_func_strlcat" = xyes
then :
  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
d17872 1
d17878 5
a17882 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
printf %s "checking for library containing snprintb... " >&6; }
if test ${ac_cv_search_snprintb+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d17890 3
d17895 1
a17895 1
main (void)
d17902 1
a17902 2
for ac_lib in '' util
do
d17909 1
a17909 2
  if ac_fn_c_try_link "$LINENO"
then :
d17912 1
a17912 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d17914 1
a17914 2
  if test ${ac_cv_search_snprintb+y}
then :
d17918 1
a17918 2
if test ${ac_cv_search_snprintb+y}
then :
d17920 1
a17920 1
else $as_nop
d17926 2
a17927 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
printf "%s\n" "$ac_cv_search_snprintb" >&6; }
d17929 1
a17929 2
if test "$ac_res" != no
then :
d17937 1
a17937 1
printf "%s\n" "#define USE_SNPRINTB 1" >>confdefs.h
d17943 8
a17950 4
ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
if test "x$ac_cv_header_errno_h" = xyes
then :
  printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
a17952 4
ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_socket_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
d17954 1
a17954 5
fi
ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_types_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
d17956 3
a17958 9
fi
ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
if test "x$ac_cv_header_time_h" = xyes
then :
  printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h

fi

ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
d17964 4
a17967 3
if test "x$ac_cv_header_net_if_h" = xyes
then :
  printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
d17971 2
d17975 5
a17979 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
printf %s "checking if net/if.h requires mpinfou predeclaration... " >&6; }
if test ${ntp_cv_predecl_mpinfou+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d17997 1
a17997 1
main (void)
d18006 1
a18006 2
if ac_fn_c_try_compile "$LINENO"
then :
d18013 1
a18013 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d18018 2
a18019 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
printf "%s\n" "$ntp_cv_predecl_mpinfou" >&6; }
d18037 3
a18039 1
    ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
d18045 4
a18048 3
if test "x$ac_cv_header_linux_if_addr_h" = xyes
then :
  printf "%s\n" "#define HAVE_LINUX_IF_ADDR_H 1" >>confdefs.h
d18052 2
d18055 1
a18055 1
printf "%s\n" "#define NEED_EARLY_FORK 1" >>confdefs.h
d18059 8
a18066 4
ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
if test "x$ac_cv_header_arpa_nameser_h" = xyes
then :
  printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h
a18068 4
ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_param_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
d18070 1
a18070 13
fi
ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_time_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/timers.h" "ac_cv_header_sys_timers_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_timers_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TIMERS_H 1" >>confdefs.h

fi
d18073 3
a18075 1
ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
d18081 4
a18084 3
if test "x$ac_cv_header_sys_sysctl_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
d18088 1
a18088 4
ac_fn_c_check_header_compile "$LINENO" "netinet/in_system.h" "ac_cv_header_netinet_in_system_h" "$ac_includes_default"
if test "x$ac_cv_header_netinet_in_system_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IN_SYSTEM_H 1" >>confdefs.h
d18090 8
a18097 5
fi
ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
if test "x$ac_cv_header_netinet_in_systm_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h
a18099 4
ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
if test "x$ac_cv_header_netinet_in_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
d18101 1
a18101 1
fi
d18104 3
a18106 1
ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
d18118 4
a18121 3
if test "x$ac_cv_header_resolv_h" = xyes
then :
  printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h
d18125 2
d18128 3
a18130 1
ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
d18145 4
a18148 3
if test "x$ac_cv_header_net_if_var_h" = xyes
then :
  printf "%s\n" "#define HAVE_NET_IF_VAR_H 1" >>confdefs.h
d18152 2
d18155 4
a18158 1
ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "
d18179 4
a18182 3
if test "x$ac_cv_header_netinet_ip_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h
a18184 19
ac_fn_c_check_header_compile "$LINENO" "netinet/in_var.h" "ac_cv_header_netinet_in_var_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_VAR_H
    # include <net/if_var.h>
    #endif
    #ifdef HAVE_NETINET_IN_SYSTM_H
    # include <netinet/in_systm.h>
    #endif
d18186 1
a18186 6
"
if test "x$ac_cv_header_netinet_in_var_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IN_VAR_H 1" >>confdefs.h

fi
d18190 5
a18194 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
printf %s "checking for library containing inet_pton... " >&6; }
if test ${ac_cv_search_inet_pton+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d18202 3
d18207 1
a18207 1
main (void)
d18214 1
a18214 2
for ac_lib in '' nsl
do
d18221 1
a18221 2
  if ac_fn_c_try_link "$LINENO"
then :
d18224 1
a18224 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d18226 1
a18226 2
  if test ${ac_cv_search_inet_pton+y}
then :
d18230 1
a18230 2
if test ${ac_cv_search_inet_pton+y}
then :
d18232 1
a18232 1
else $as_nop
d18238 2
a18239 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
printf "%s\n" "$ac_cv_search_inet_pton" >&6; }
d18241 1
a18241 2
if test "$ac_res" != no
then :
d18251 5
a18255 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
printf %s "checking for library containing inet_ntop... " >&6; }
if test ${ac_cv_search_inet_ntop+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d18263 3
d18268 1
a18268 1
main (void)
d18275 1
a18275 2
for ac_lib in '' resolv
do
d18282 1
a18282 2
  if ac_fn_c_try_link "$LINENO"
then :
d18285 1
a18285 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d18287 1
a18287 2
  if test ${ac_cv_search_inet_ntop+y}
then :
d18291 1
a18291 2
if test ${ac_cv_search_inet_ntop+y}
then :
d18293 1
a18293 1
else $as_nop
d18299 2
a18300 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
printf "%s\n" "$ac_cv_search_inet_ntop" >&6; }
d18302 1
a18302 2
if test "$ac_res" != no
then :
d18320 5
a18324 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
printf %s "checking for library containing setsockopt... " >&6; }
if test ${ac_cv_search_setsockopt+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d18332 3
d18337 1
a18337 1
main (void)
d18344 1
a18344 2
for ac_lib in '' socket
do
d18351 1
a18351 2
  if ac_fn_c_try_link "$LINENO"
then :
d18354 1
a18354 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d18356 1
a18356 2
  if test ${ac_cv_search_setsockopt+y}
then :
d18360 1
a18360 2
if test ${ac_cv_search_setsockopt+y}
then :
d18362 1
a18362 1
else $as_nop
d18368 2
a18369 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
printf "%s\n" "$ac_cv_search_setsockopt" >&6; }
d18371 1
a18371 2
if test "$ac_res" != no
then :
d18384 5
a18388 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
printf %s "checking for library containing getsockopt... " >&6; }
if test ${ac_cv_search_getsockopt+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d18396 3
d18401 1
a18401 1
main (void)
d18408 1
a18408 2
for ac_lib in '' xnet
do
d18415 1
a18415 2
  if ac_fn_c_try_link "$LINENO"
then :
d18418 1
a18418 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d18420 1
a18420 2
  if test ${ac_cv_search_getsockopt+y}
then :
d18424 1
a18424 2
if test ${ac_cv_search_getsockopt+y}
then :
d18426 1
a18426 1
else $as_nop
d18432 2
a18433 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
printf "%s\n" "$ac_cv_search_getsockopt" >&6; }
d18435 1
a18435 2
if test "$ac_res" != no
then :
d18461 7
a18467 4
ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
if test "x$ac_cv_func_recvmsg" = xyes
then :
  printf "%s\n" "#define HAVE_RECVMSG 1" >>confdefs.h
d18470 1
d18473 5
a18477 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
printf %s "checking for inline... " >&6; }
if test ${ac_cv_c_inline+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d18484 2
a18485 2
static $ac_kw foo_t static_foo (void) {return 0; }
$ac_kw foo_t foo (void) {return 0; }
d18489 1
a18489 2
if ac_fn_c_try_compile "$LINENO"
then :
d18492 1
a18492 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d18497 2
a18498 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
printf "%s\n" "$ac_cv_c_inline" >&6; }
d18521 1
a18521 1
printf "%s\n" "#define HAVE_INLINE 1" >>confdefs.h
d18526 34
d18565 6
a18570 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
printf %s "checking size of time_t... " >&6; }
if test ${ac_cv_sizeof_time_t+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"
then :
d18572 1
a18572 1
else $as_nop
d18574 2
a18575 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d18584 2
a18585 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
d18589 3
a18591 1
printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
d18594 5
a18598 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
printf %s "checking whether char is unsigned... " >&6; }
if test ${ac_cv_c_char_unsigned+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d18603 1
a18603 1
main (void)
d18613 1
a18613 2
if ac_fn_c_try_compile "$LINENO"
then :
d18615 1
a18615 1
else $as_nop
d18618 1
a18618 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d18620 4
a18623 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
if test $ac_cv_c_char_unsigned = yes; then
  printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
d18630 6
a18635 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
printf %s "checking size of signed char... " >&6; }
if test ${ac_cv_sizeof_signed_char+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"
then :
d18637 1
a18637 1
else $as_nop
d18639 2
a18640 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d18649 2
a18650 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
printf "%s\n" "$ac_cv_sizeof_signed_char" >&6; }
d18654 3
a18656 1
printf "%s\n" "#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char" >>confdefs.h
d18660 1
a18660 2
if test "x$ac_cv_type_s_char" = xyes
then :
d18662 3
a18664 1
printf "%s\n" "#define HAVE_S_CHAR 1" >>confdefs.h
d18669 1
a18669 2
if test "x$ac_cv_type_long_long" = xyes
then :
d18671 3
a18673 1
printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
d18682 6
a18687 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
printf %s "checking size of short... " >&6; }
if test ${ac_cv_sizeof_short+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
then :
d18689 1
a18689 1
else $as_nop
d18691 2
a18692 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d18701 2
a18702 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
printf "%s\n" "$ac_cv_sizeof_short" >&6; }
d18706 3
a18708 1
printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
d18715 6
a18720 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
printf %s "checking size of int... " >&6; }
if test ${ac_cv_sizeof_int+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
then :
d18722 1
a18722 1
else $as_nop
d18724 2
a18725 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d18734 2
a18735 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
printf "%s\n" "$ac_cv_sizeof_int" >&6; }
d18739 3
a18741 1
printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
d18748 6
a18753 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
printf %s "checking size of long... " >&6; }
if test ${ac_cv_sizeof_long+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
then :
d18755 1
a18755 1
else $as_nop
d18757 2
a18758 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d18767 2
a18768 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
printf "%s\n" "$ac_cv_sizeof_long" >&6; }
d18772 3
a18774 1
printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
d18786 6
a18791 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
printf %s "checking size of long long... " >&6; }
if test ${ac_cv_sizeof_long_long+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"
then :
d18793 1
a18793 1
else $as_nop
d18795 2
a18796 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d18805 2
a18806 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
d18810 3
a18812 1
printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
d18825 1
a18825 1
printf "%s\n" "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
d18831 1
a18831 1
printf "%s\n" "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
d18841 1
a18841 1
printf "%s\n" "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
d18846 5
a18850 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
printf %s "checking for uid_t in sys/types.h... " >&6; }
if test ${ac_cv_type_uid_t+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d18857 1
a18857 2
  $EGREP "uid_t" >/dev/null 2>&1
then :
d18859 1
a18859 1
else $as_nop
d18862 1
a18862 1
rm -rf conftest*
d18865 2
a18866 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
printf "%s\n" "$ac_cv_type_uid_t" >&6; }
d18869 1
a18869 1
printf "%s\n" "#define uid_t int" >>confdefs.h
d18872 1
a18872 1
printf "%s\n" "#define gid_t int" >>confdefs.h
d18881 2
a18882 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
printf %s "checking if we're including debugging code... " >&6; }
d18884 1
a18884 2
if test ${enable_debugging+y}
then :
d18886 1
a18886 1
else $as_nop
d18894 1
a18894 1
printf "%s\n" "#define DEBUG 1" >>confdefs.h
d18897 2
a18898 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d18903 7
a18909 4
ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
if test "x$ac_cv_header_semaphore_h" = xyes
then :
  printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
d18913 9
a18921 4
ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
if test "x$ac_cv_func_socketpair" = xyes
then :
  printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
d18924 1
d18927 1
a18927 2
if test ${enable_thread_support+y}
then :
d18929 1
a18929 1
else $as_nop
d18951 1
a18951 2
if test ${with_threads+y}
then :
d18964 1
a18964 1
else $as_nop
d18993 5
a18997 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d19005 1
a19005 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d19007 1
a19007 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d19009 1
a19009 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d19020 2
a19021 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
d19023 2
a19024 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d19036 2
a19037 2
				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
printf "%s\n" "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
d19054 1
a19054 2
if test ${with_yielding_select+y}
then :
d19067 1
a19067 1
else $as_nop
d19077 1
a19077 2
if test "x$ac_cv_func__beginthread" = xyes
then :
d19084 1
a19084 1
printf "%s\n" "#define HAVE_NT_THREADS 1" >>confdefs.h
d19096 1
a19096 1
printf "%s\n" "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
d19099 1
a19099 1
printf "%s\n" "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
d19111 7
a19117 4
	ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
d19121 2
d19125 5
a19129 6
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
printf %s "checking POSIX thread version... " >&6; }
if test ${ol_cv_pthread_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d19137 1
a19137 1
main (void)
d19146 1
a19146 2
if ac_fn_c_try_compile "$LINENO"
then :
d19154 1
a19154 2
  $EGREP "pthread_detach" >/dev/null 2>&1
then :
d19156 1
a19156 1
else $as_nop
d19159 1
a19159 1
rm -rf conftest*
d19161 1
a19161 1
else $as_nop
d19173 1
a19173 2
  $EGREP "draft7" >/dev/null 2>&1
then :
d19175 1
a19175 1
else $as_nop
d19183 1
a19183 2
  $EGREP "pthread_attr_init" >/dev/null 2>&1
then :
d19185 1
a19185 1
else $as_nop
d19197 1
a19197 2
  $EGREP "draft5" >/dev/null 2>&1
then :
d19199 1
a19199 1
else $as_nop
d19202 1
a19202 1
rm -rf conftest*
d19205 1
a19205 1
rm -rf conftest*
d19208 1
a19208 1
rm -rf conftest*
d19211 1
a19211 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d19214 2
a19215 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
printf "%s\n" "$ol_cv_pthread_version" >&6; }
d19220 3
a19222 1
printf "%s\n" "#define HAVE_PTHREADS $ol_cv_pthread_version" >>confdefs.h
d19232 5
a19236 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
printf %s "checking for LinuxThreads pthread.h... " >&6; }
if test ${ol_cv_header_linux_threads+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d19242 1
a19242 2
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1
then :
d19244 1
a19244 1
else $as_nop
d19247 1
a19247 1
rm -rf conftest*
d19251 2
a19252 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
printf "%s\n" "$ol_cv_header_linux_threads" >&6; }
d19255 1
a19255 1
printf "%s\n" "#define HAVE_LINUX_THREADS 1" >>confdefs.h
d19260 5
a19264 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
printf %s "checking for GNU Pth pthread.h... " >&6; }
if test ${ol_cv_header_gnu_pth_pthread_h+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d19274 1
a19274 2
  $EGREP "__gnu_pth__" >/dev/null 2>&1
then :
d19276 1
a19276 1
else $as_nop
d19279 1
a19279 1
rm -rf conftest*
d19283 2
a19284 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
printf "%s\n" "$ol_cv_header_gnu_pth_pthread_h" >&6; }
d19288 7
a19294 4
			ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sched_h" = xyes
then :
  printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
d19298 2
d19303 5
a19307 6
				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
printf %s "checking for pthread_create in default libraries... " >&6; }
if test ${ol_cv_pthread_create+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d19309 1
a19309 2
			if test "$cross_compiling" = yes
then :
d19329 1
a19329 1
main (void)
d19382 1
a19382 2
if ac_fn_c_try_link "$LINENO"
then :
d19384 1
a19384 1
else $as_nop
d19387 1
a19387 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d19389 1
a19389 1
else $as_nop
d19464 1
a19464 2
if ac_fn_c_try_run "$LINENO"
then :
d19466 1
a19466 1
else $as_nop
d19474 2
a19475 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
printf "%s\n" "$ol_cv_pthread_create" >&6; }
d19485 5
a19489 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
printf %s "checking for pthread link with -kthread... " >&6; }
if test ${ol_cv_pthread_kthread+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d19495 1
a19495 2
		if test "$cross_compiling" = yes
then :
d19515 1
a19515 1
main (void)
d19568 1
a19568 2
if ac_fn_c_try_link "$LINENO"
then :
d19570 1
a19570 1
else $as_nop
d19573 1
a19573 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d19575 1
a19575 1
else $as_nop
d19650 1
a19650 2
if ac_fn_c_try_run "$LINENO"
then :
d19652 1
a19652 1
else $as_nop
d19664 2
a19665 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
printf "%s\n" "$ol_cv_pthread_kthread" >&6; }
d19676 5
a19680 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
printf %s "checking for pthread link with -pthread... " >&6; }
if test ${ol_cv_pthread_pthread+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d19686 1
a19686 2
		if test "$cross_compiling" = yes
then :
d19706 1
a19706 1
main (void)
d19759 1
a19759 2
if ac_fn_c_try_link "$LINENO"
then :
d19761 1
a19761 1
else $as_nop
d19764 1
a19764 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d19766 1
a19766 1
else $as_nop
d19841 1
a19841 2
if ac_fn_c_try_run "$LINENO"
then :
d19843 1
a19843 1
else $as_nop
d19855 2
a19856 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
printf "%s\n" "$ol_cv_pthread_pthread" >&6; }
d19867 5
a19871 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
printf %s "checking for pthread link with -pthreads... " >&6; }
if test ${ol_cv_pthread_pthreads+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d19877 1
a19877 2
		if test "$cross_compiling" = yes
then :
d19897 1
a19897 1
main (void)
d19950 1
a19950 2
if ac_fn_c_try_link "$LINENO"
then :
d19952 1
a19952 1
else $as_nop
d19955 1
a19955 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d19957 1
a19957 1
else $as_nop
d20032 1
a20032 2
if ac_fn_c_try_run "$LINENO"
then :
d20034 1
a20034 1
else $as_nop
d20046 2
a20047 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
printf "%s\n" "$ol_cv_pthread_pthreads" >&6; }
d20058 5
a20062 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
printf %s "checking for pthread link with -mthreads... " >&6; }
if test ${ol_cv_pthread_mthreads+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d20068 1
a20068 2
		if test "$cross_compiling" = yes
then :
d20088 1
a20088 1
main (void)
d20141 1
a20141 2
if ac_fn_c_try_link "$LINENO"
then :
d20143 1
a20143 1
else $as_nop
d20146 1
a20146 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d20148 1
a20148 1
else $as_nop
d20223 1
a20223 2
if ac_fn_c_try_run "$LINENO"
then :
d20225 1
a20225 1
else $as_nop
d20237 2
a20238 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
printf "%s\n" "$ol_cv_pthread_mthreads" >&6; }
d20249 5
a20253 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
printf %s "checking for pthread link with -thread... " >&6; }
if test ${ol_cv_pthread_thread+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d20259 1
a20259 2
		if test "$cross_compiling" = yes
then :
d20279 1
a20279 1
main (void)
d20332 1
a20332 2
if ac_fn_c_try_link "$LINENO"
then :
d20334 1
a20334 1
else $as_nop
d20337 1
a20337 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d20339 1
a20339 1
else $as_nop
d20414 1
a20414 2
if ac_fn_c_try_run "$LINENO"
then :
d20416 1
a20416 1
else $as_nop
d20428 2
a20429 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
printf "%s\n" "$ol_cv_pthread_thread" >&6; }
d20441 5
a20445 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
printf %s "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
if test ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d20451 1
a20451 2
		if test "$cross_compiling" = yes
then :
d20471 1
a20471 1
main (void)
d20524 1
a20524 2
if ac_fn_c_try_link "$LINENO"
then :
d20526 1
a20526 1
else $as_nop
d20529 1
a20529 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d20531 1
a20531 1
else $as_nop
d20606 1
a20606 2
if ac_fn_c_try_run "$LINENO"
then :
d20608 1
a20608 1
else $as_nop
d20620 2
a20621 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
printf "%s\n" "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
d20632 5
a20636 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
printf %s "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
if test ${ol_cv_pthread_lpthread_lmach_lexc+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d20642 1
a20642 2
		if test "$cross_compiling" = yes
then :
d20662 1
a20662 1
main (void)
d20715 1
a20715 2
if ac_fn_c_try_link "$LINENO"
then :
d20717 1
a20717 1
else $as_nop
d20720 1
a20720 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d20722 1
a20722 1
else $as_nop
d20797 1
a20797 2
if ac_fn_c_try_run "$LINENO"
then :
d20799 1
a20799 1
else $as_nop
d20811 2
a20812 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
printf "%s\n" "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
d20824 5
a20828 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
printf %s "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
if test ${ol_cv_pthread_lib_lpthread_woff+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d20834 1
a20834 2
		if test "$cross_compiling" = yes
then :
d20854 1
a20854 1
main (void)
d20907 1
a20907 2
if ac_fn_c_try_link "$LINENO"
then :
d20909 1
a20909 1
else $as_nop
d20912 1
a20912 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d20914 1
a20914 1
else $as_nop
d20989 1
a20989 2
if ac_fn_c_try_run "$LINENO"
then :
d20991 1
a20991 1
else $as_nop
d21003 2
a21004 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
printf "%s\n" "$ol_cv_pthread_lib_lpthread_woff" >&6; }
d21016 5
a21020 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
printf %s "checking for pthread link with -lpthread... " >&6; }
if test ${ol_cv_pthread_lpthread+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d21026 1
a21026 2
		if test "$cross_compiling" = yes
then :
d21046 1
a21046 1
main (void)
d21099 1
a21099 2
if ac_fn_c_try_link "$LINENO"
then :
d21101 1
a21101 1
else $as_nop
d21104 1
a21104 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d21106 1
a21106 1
else $as_nop
d21181 1
a21181 2
if ac_fn_c_try_run "$LINENO"
then :
d21183 1
a21183 1
else $as_nop
d21195 2
a21196 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
printf "%s\n" "$ol_cv_pthread_lpthread" >&6; }
d21207 5
a21211 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
printf %s "checking for pthread link with -lc_r... " >&6; }
if test ${ol_cv_pthread_lc_r+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d21217 1
a21217 2
		if test "$cross_compiling" = yes
then :
d21237 1
a21237 1
main (void)
d21290 1
a21290 2
if ac_fn_c_try_link "$LINENO"
then :
d21292 1
a21292 1
else $as_nop
d21295 1
a21295 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d21297 1
a21297 1
else $as_nop
d21372 1
a21372 2
if ac_fn_c_try_run "$LINENO"
then :
d21374 1
a21374 1
else $as_nop
d21386 2
a21387 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
printf "%s\n" "$ol_cv_pthread_lc_r" >&6; }
d21399 5
a21403 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
printf %s "checking for pthread link with -threads... " >&6; }
if test ${ol_cv_pthread_threads+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d21409 1
a21409 2
		if test "$cross_compiling" = yes
then :
d21429 1
a21429 1
main (void)
d21482 1
a21482 2
if ac_fn_c_try_link "$LINENO"
then :
d21484 1
a21484 1
else $as_nop
d21487 1
a21487 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d21489 1
a21489 1
else $as_nop
d21564 1
a21564 2
if ac_fn_c_try_run "$LINENO"
then :
d21566 1
a21566 1
else $as_nop
d21578 2
a21579 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
printf "%s\n" "$ol_cv_pthread_threads" >&6; }
d21591 5
a21595 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
printf %s "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
if test ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d21601 1
a21601 2
		if test "$cross_compiling" = yes
then :
d21621 1
a21621 1
main (void)
d21674 1
a21674 2
if ac_fn_c_try_link "$LINENO"
then :
d21676 1
a21676 1
else $as_nop
d21679 1
a21679 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d21681 1
a21681 1
else $as_nop
d21756 1
a21756 2
if ac_fn_c_try_run "$LINENO"
then :
d21758 1
a21758 1
else $as_nop
d21770 2
a21771 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
printf "%s\n" "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
d21782 5
a21786 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
printf %s "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
if test ${ol_cv_pthread_lpthreads_lmach_lexc+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d21792 1
a21792 2
		if test "$cross_compiling" = yes
then :
d21812 1
a21812 1
main (void)
d21865 1
a21865 2
if ac_fn_c_try_link "$LINENO"
then :
d21867 1
a21867 1
else $as_nop
d21870 1
a21870 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d21872 1
a21872 1
else $as_nop
d21947 1
a21947 2
if ac_fn_c_try_run "$LINENO"
then :
d21949 1
a21949 1
else $as_nop
d21961 2
a21962 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
printf "%s\n" "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
d21973 5
a21977 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
printf %s "checking for pthread link with -lpthreads -lexc... " >&6; }
if test ${ol_cv_pthread_lpthreads_lexc+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d21983 1
a21983 2
		if test "$cross_compiling" = yes
then :
d22003 1
a22003 1
main (void)
d22056 1
a22056 2
if ac_fn_c_try_link "$LINENO"
then :
d22058 1
a22058 1
else $as_nop
d22061 1
a22061 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d22063 1
a22063 1
else $as_nop
d22138 1
a22138 2
if ac_fn_c_try_run "$LINENO"
then :
d22140 1
a22140 1
else $as_nop
d22152 2
a22153 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
printf "%s\n" "$ol_cv_pthread_lpthreads_lexc" >&6; }
d22165 5
a22169 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
printf %s "checking for pthread link with -lpthreads... " >&6; }
if test ${ol_cv_pthread_lib_lpthreads+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22175 1
a22175 2
		if test "$cross_compiling" = yes
then :
d22195 1
a22195 1
main (void)
d22248 1
a22248 2
if ac_fn_c_try_link "$LINENO"
then :
d22250 1
a22250 1
else $as_nop
d22253 1
a22253 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d22255 1
a22255 1
else $as_nop
d22330 1
a22330 2
if ac_fn_c_try_run "$LINENO"
then :
d22332 1
a22332 1
else $as_nop
d22344 2
a22345 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
printf "%s\n" "$ol_cv_pthread_lib_lpthreads" >&6; }
d22354 2
a22355 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
printf "%s\n" "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
d22364 8
a22371 16
												ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
if test "x$ac_cv_func_sched_yield" = xyes
then :
  printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield"
if test "x$ac_cv_func_pthread_yield" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "thr_yield" "ac_cv_func_thr_yield"
if test "x$ac_cv_func_thr_yield" = xyes
then :
  printf "%s\n" "#define HAVE_THR_YIELD 1" >>confdefs.h
d22374 1
d22380 5
a22384 6
								{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
printf %s "checking for sched_yield in -lrt... " >&6; }
if test ${ac_cv_lib_rt_sched_yield+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22393 3
d22398 1
a22398 1
main (void)
d22405 1
a22405 2
if ac_fn_c_try_link "$LINENO"
then :
d22407 1
a22407 1
else $as_nop
d22410 1
a22410 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d22414 3
a22416 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
if test "x$ac_cv_lib_rt_sched_yield" = xyes
then :
d22419 1
a22419 1
printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
d22422 1
a22422 1
else $as_nop
d22430 2
a22431 2
				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
printf "%s\n" "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
d22434 7
a22440 4
						ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
if test "x$ac_cv_func_pthread_kill" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h
d22443 1
d22446 5
a22450 6
									{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
printf %s "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
if test ${ol_cv_func_pthread_rwlock_destroy+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22459 1
a22459 1
main (void)
d22466 1
a22466 2
if ac_fn_c_try_link "$LINENO"
then :
d22468 1
a22468 1
else $as_nop
d22471 1
a22471 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d22475 2
a22476 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
printf "%s\n" "$ol_cv_func_pthread_rwlock_destroy" >&6; }
d22479 1
a22479 1
printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
d22483 5
a22487 6
									{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
printf %s "checking for pthread_detach with <pthread.h>... " >&6; }
if test ${ol_cv_func_pthread_detach+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22498 1
a22498 1
main (void)
d22505 1
a22505 2
if ac_fn_c_try_link "$LINENO"
then :
d22507 1
a22507 1
else $as_nop
d22510 1
a22510 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d22514 2
a22515 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
printf "%s\n" "$ol_cv_func_pthread_detach" >&6; }
d22522 1
a22522 1
printf "%s\n" "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
d22525 5
a22529 4
						ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
if test "x$ac_cv_func_pthread_setconcurrency" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
d22531 7
a22537 5
fi
ac_fn_c_check_func "$LINENO" "pthread_getconcurrency" "ac_cv_func_pthread_getconcurrency"
if test "x$ac_cv_func_pthread_getconcurrency" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_GETCONCURRENCY 1" >>confdefs.h
d22540 1
a22540 10
ac_fn_c_check_func "$LINENO" "thr_setconcurrency" "ac_cv_func_thr_setconcurrency"
if test "x$ac_cv_func_thr_setconcurrency" = xyes
then :
  printf "%s\n" "#define HAVE_THR_SETCONCURRENCY 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "thr_getconcurrency" "ac_cv_func_thr_getconcurrency"
if test "x$ac_cv_func_thr_getconcurrency" = xyes
then :
  printf "%s\n" "#define HAVE_THR_GETCONCURRENCY 1" >>confdefs.h
a22541 1
fi
d22544 7
a22550 5

	ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1" >>confdefs.h
d22553 1
d22555 5
a22559 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
printf %s "checking for LinuxThreads implementation... " >&6; }
if test ${ol_cv_sys_linux_threads+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22562 2
a22563 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
printf "%s\n" "$ol_cv_sys_linux_threads" >&6; }
d22568 5
a22572 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
printf %s "checking for LinuxThreads consistency... " >&6; }
if test ${ol_cv_linux_threads+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22585 2
a22586 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
printf "%s\n" "$ol_cv_linux_threads" >&6; }
d22593 5
a22597 6
			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
printf %s "checking if pthread_create() works... " >&6; }
if test ${ol_cv_pthread_create_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22599 1
a22599 2
			if test "$cross_compiling" = yes
then :
d22601 1
a22601 1
else $as_nop
d22676 1
a22676 2
if ac_fn_c_try_run "$LINENO"
then :
d22678 1
a22678 1
else $as_nop
d22686 2
a22687 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
printf "%s\n" "$ol_cv_pthread_create_works" >&6; }
d22697 1
a22697 1
printf "%s\n" "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
d22702 5
a22706 6
				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
printf %s "checking if select yields when using pthreads... " >&6; }
if test ${ol_cv_pthread_select_yields+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22708 1
a22708 2
				if test "$cross_compiling" = yes
then :
d22710 1
a22710 1
else $as_nop
d22788 1
a22788 2
if ac_fn_c_try_run "$LINENO"
then :
d22790 1
a22790 1
else $as_nop
d22798 2
a22799 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
printf "%s\n" "$ol_cv_pthread_select_yields" >&6; }
d22825 8
a22832 4
		ac_fn_c_check_header_compile "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_cthreads_h" = xyes
then :
  printf "%s\n" "#define HAVE_MACH_CTHREADS_H 1" >>confdefs.h
a22834 4
ac_fn_c_check_header_compile "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default"
if test "x$ac_cv_header_cthreads_h" = xyes
then :
  printf "%s\n" "#define HAVE_CTHREADS_H 1" >>confdefs.h
d22836 1
a22836 1
fi
d22842 1
a22842 2
if test "x$ac_cv_func_cthread_fork" = xyes
then :
d22848 5
a22852 6
									{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
printf %s "checking for cthread_fork with -all_load... " >&6; }
if test ${ol_cv_cthread_all_load+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22860 1
a22860 1
main (void)
d22869 1
a22869 2
if ac_fn_c_try_link "$LINENO"
then :
d22871 1
a22871 1
else $as_nop
d22874 1
a22874 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d22879 2
a22880 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
printf "%s\n" "$ol_cv_cthread_all_load" >&6; }
d22896 1
a22896 2
if test "x$ac_cv_func_cthread_fork" = xyes
then :
d22916 1
a22916 1
printf "%s\n" "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
d22926 7
a22932 4
	ac_fn_c_check_header_compile "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
if test "x$ac_cv_header_pth_h" = xyes
then :
  printf "%s\n" "#define HAVE_PTH_H 1" >>confdefs.h
d22936 2
d22940 5
a22944 6
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
printf %s "checking for pth_version in -lpth... " >&6; }
if test ${ac_cv_lib_pth_pth_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22953 3
d22958 1
a22958 1
main (void)
d22965 1
a22965 2
if ac_fn_c_try_link "$LINENO"
then :
d22967 1
a22967 1
else $as_nop
d22970 1
a22970 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d22974 3
a22976 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
printf "%s\n" "$ac_cv_lib_pth_pth_version" >&6; }
if test "x$ac_cv_lib_pth_pth_version" = xyes
then :
d22978 1
a22978 1
else $as_nop
d22985 1
a22985 1
printf "%s\n" "#define HAVE_GNU_PTH 1" >>confdefs.h
d23001 8
a23008 4
		ac_fn_c_check_header_compile "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default"
if test "x$ac_cv_header_thread_h" = xyes
then :
  printf "%s\n" "#define HAVE_THREAD_H 1" >>confdefs.h
a23010 4
ac_fn_c_check_header_compile "$LINENO" "synch.h" "ac_cv_header_synch_h" "$ac_includes_default"
if test "x$ac_cv_header_synch_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYNCH_H 1" >>confdefs.h
d23012 1
a23012 1
fi
d23016 5
a23020 6
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
printf %s "checking for thr_create in -lthread... " >&6; }
if test ${ac_cv_lib_thread_thr_create+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23029 3
d23034 1
a23034 1
main (void)
d23041 1
a23041 2
if ac_fn_c_try_link "$LINENO"
then :
d23043 1
a23043 1
else $as_nop
d23046 1
a23046 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d23050 3
a23052 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
printf "%s\n" "$ac_cv_lib_thread_thr_create" >&6; }
if test "x$ac_cv_lib_thread_thr_create" = xyes
then :
d23054 1
a23054 1
else $as_nop
d23061 1
a23061 1
printf "%s\n" "#define HAVE_THR 1" >>confdefs.h
d23070 3
a23072 4
						ac_fn_c_check_func "$LINENO" "thr_setconcurrency" "ac_cv_func_thr_setconcurrency"
if test "x$ac_cv_func_thr_setconcurrency" = xyes
then :
  printf "%s\n" "#define HAVE_THR_SETCONCURRENCY 1" >>confdefs.h
d23074 7
a23080 5
fi
ac_fn_c_check_func "$LINENO" "thr_getconcurrency" "ac_cv_func_thr_getconcurrency"
if test "x$ac_cv_func_thr_getconcurrency" = xyes
then :
  printf "%s\n" "#define HAVE_THR_GETCONCURRENCY 1" >>confdefs.h
d23083 1
d23088 7
a23094 4
		ac_fn_c_check_header_compile "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes
then :
  printf "%s\n" "#define HAVE_LWP_LWP_H 1" >>confdefs.h
d23098 2
d23101 5
a23105 6
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
printf %s "checking for lwp_create in -llwp... " >&6; }
if test ${ac_cv_lib_lwp_lwp_create+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23114 3
d23119 1
a23119 1
main (void)
d23126 1
a23126 2
if ac_fn_c_try_link "$LINENO"
then :
d23128 1
a23128 1
else $as_nop
d23131 1
a23131 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d23135 3
a23137 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
printf "%s\n" "$ac_cv_lib_lwp_lwp_create" >&6; }
if test "x$ac_cv_lib_lwp_lwp_create" = xyes
then :
d23139 1
a23139 1
else $as_nop
d23146 1
a23146 1
printf "%s\n" "#define HAVE_LWP 1" >>confdefs.h
d23161 1
a23161 1
printf "%s\n" "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
d23168 2
a23169 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
printf "%s\n" "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
d23171 8
a23178 4
	ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
a23180 4
ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sched_h" = xyes
then :
  printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
d23182 1
a23182 1
fi
d23184 8
a23191 10
	ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
if test "x$ac_cv_func_sched_yield" = xyes
then :
  printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield"
if test "x$ac_cv_func_pthread_yield" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h
d23194 1
d23197 5
a23201 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
printf %s "checking for LinuxThreads pthread.h... " >&6; }
if test ${ol_cv_header_linux_threads+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23207 1
a23207 2
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1
then :
d23209 1
a23209 1
else $as_nop
d23212 1
a23212 1
rm -rf conftest*
d23216 2
a23217 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
printf "%s\n" "$ol_cv_header_linux_threads" >&6; }
d23220 1
a23220 1
printf "%s\n" "#define HAVE_LINUX_THREADS 1" >>confdefs.h
d23225 7
a23231 4
	ac_fn_c_check_header_compile "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_cthreads_h" = xyes
then :
  printf "%s\n" "#define HAVE_MACH_CTHREADS_H 1" >>confdefs.h
d23235 9
a23243 4
	ac_fn_c_check_header_compile "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes
then :
  printf "%s\n" "#define HAVE_LWP_LWP_H 1" >>confdefs.h
d23247 10
a23256 4
	ac_fn_c_check_header_compile "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default"
if test "x$ac_cv_header_thread_h" = xyes
then :
  printf "%s\n" "#define HAVE_THREAD_H 1" >>confdefs.h
a23258 4
ac_fn_c_check_header_compile "$LINENO" "synch.h" "ac_cv_header_synch_h" "$ac_includes_default"
if test "x$ac_cv_header_synch_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYNCH_H 1" >>confdefs.h
d23260 1
a23260 1
fi
d23266 1
a23266 1
printf "%s\n" "#define REENTRANT 1" >>confdefs.h
d23269 1
a23269 1
printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
d23272 1
a23272 1
printf "%s\n" "#define THREAD_SAFE 1" >>confdefs.h
d23275 1
a23275 1
printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h
d23278 1
a23278 1
printf "%s\n" "#define THREADSAFE 1" >>confdefs.h
d23281 1
a23281 1
printf "%s\n" "#define _THREADSAFE 1" >>confdefs.h
d23284 1
a23284 1
printf "%s\n" "#define _SGI_MP_SOURCE 1" >>confdefs.h
d23287 5
a23291 6
			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
printf %s "checking for thread specific errno... " >&6; }
if test ${ol_cv_errno_thread_specific+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23297 1
a23297 1
main (void)
d23304 1
a23304 2
if ac_fn_c_try_link "$LINENO"
then :
d23306 1
a23306 1
else $as_nop
d23309 1
a23309 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d23313 2
a23314 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
printf "%s\n" "$ol_cv_errno_thread_specific" >&6; }
d23316 5
a23320 6
			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
printf %s "checking for thread specific h_errno... " >&6; }
if test ${ol_cv_h_errno_thread_specific+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23326 1
a23326 1
main (void)
d23333 1
a23333 2
if ac_fn_c_try_link "$LINENO"
then :
d23335 1
a23335 1
else $as_nop
d23338 1
a23338 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d23342 2
a23343 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
printf "%s\n" "$ol_cv_h_errno_thread_specific" >&6; }
d23359 2
a23360 2
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
printf "%s\n" "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
d23365 1
a23365 1
printf "%s\n" "#define NO_THREADS 1" >>confdefs.h
d23375 1
a23375 1
printf "%s\n" "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
d23407 7
a23413 4
	ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
if test "x$ac_cv_func_sem_timedwait" = xyes
then :
  printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
d23416 1
d23441 5
a23445 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
printf %s "checking size of pthread_t... " >&6; }
if test ${ac_cv_sizeof_pthread_t+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23451 1
a23451 2
"
then :
d23453 1
a23453 1
else $as_nop
d23455 2
a23456 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d23465 2
a23466 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; }
d23470 3
a23472 1
printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h
d23477 1
a23477 1
printf "%s\n" "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
d23483 1
a23483 2
if test "x$ac_cv_func_sigwait" = xyes
then :
d23485 6
a23490 7
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
printf %s "checking for sigwait in -lc... " >&6; }
if test ${ac_cv_lib_c_sigwait+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23499 3
d23504 1
a23504 1
main (void)
d23511 1
a23511 2
if ac_fn_c_try_link "$LINENO"
then :
d23513 1
a23513 1
else $as_nop
d23516 1
a23516 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d23520 3
a23522 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
printf "%s\n" "$ac_cv_lib_c_sigwait" >&6; }
if test "x$ac_cv_lib_c_sigwait" = xyes
then :
d23524 6
a23529 7
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
printf %s "checking for sigwait in -lpthread... " >&6; }
if test ${ac_cv_lib_pthread_sigwait+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23538 3
d23543 1
a23543 1
main (void)
d23550 1
a23550 2
if ac_fn_c_try_link "$LINENO"
then :
d23552 1
a23552 1
else $as_nop
d23555 1
a23555 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d23559 3
a23561 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
printf "%s\n" "$ac_cv_lib_pthread_sigwait" >&6; }
if test "x$ac_cv_lib_pthread_sigwait" = xyes
then :
d23563 6
a23568 7
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
printf %s "checking for _Psigwait in -lpthread... " >&6; }
if test ${ac_cv_lib_pthread__Psigwait+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23577 3
d23582 1
a23582 1
main (void)
d23589 1
a23589 2
if ac_fn_c_try_link "$LINENO"
then :
d23591 1
a23591 1
else $as_nop
d23594 1
a23594 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d23598 3
a23600 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
printf "%s\n" "$ac_cv_lib_pthread__Psigwait" >&6; }
if test "x$ac_cv_lib_pthread__Psigwait" = xyes
then :
d23602 1
a23602 1
else $as_nop
d23618 5
a23622 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
printf %s "checking for sigwait in -lc_r... " >&6; }
if test ${ac_cv_lib_c_r_sigwait+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23631 3
d23636 1
a23636 1
main (void)
d23643 1
a23643 2
if ac_fn_c_try_link "$LINENO"
then :
d23645 1
a23645 1
else $as_nop
d23648 1
a23648 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d23652 3
a23654 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
printf "%s\n" "$ac_cv_lib_c_r_sigwait" >&6; }
if test "x$ac_cv_lib_c_r_sigwait" = xyes
then :
d23664 1
a23664 1
printf "%s\n" "#define HAVE_SIGWAIT 1" >>confdefs.h
d23668 7
a23674 4
    ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h
d23677 1
d23679 8
a23686 10
    ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize"
if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
if test "x$ac_cv_func_sysconf" = xyes
then :
  printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
d23689 1
d23697 1
a23697 1
printf "%s\n" "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
d23702 1
a23702 1
printf "%s\n" "#define NEED_PTHREAD_INIT 1" >>confdefs.h
d23707 1
a23707 1
printf "%s\n" "#define HAVE_LINUXTHREADS 1" >>confdefs.h
d23711 1
a23711 1
	printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d23713 7
a23719 4
	ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
if test "x$ac_cv_func_pthread_setconcurrency" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
d23722 1
d23727 1
a23727 1
printf "%s\n" "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
d23733 1
a23733 1
printf "%s\n" "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
d23746 5
a23750 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
printf %s "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
if test ${ntp_cv_braces_around_pthread_once_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23757 1
a23757 1
main (void)
d23768 1
a23768 2
if ac_fn_c_try_compile "$LINENO"
then :
d23770 1
a23770 1
else $as_nop
d23774 1
a23774 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d23777 2
a23778 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
printf "%s\n" "$ntp_cv_braces_around_pthread_once_init" >&6; }
d23788 1
a23788 1
printf "%s\n" "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
d23817 6
a23822 8
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
printf %s "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
if test ${ntp_cv_vsnprintf_percent_m+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
d23825 1
a23825 1
else $as_nop
d23859 1
a23859 1
main (void)
d23877 1
a23877 2
if ac_fn_c_try_run "$LINENO"
then :
d23879 1
a23879 1
else $as_nop
d23888 2
a23889 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
printf "%s\n" "$ntp_cv_vsnprintf_percent_m" >&6; }
d23893 1
a23893 1
printf "%s\n" "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
d23898 7
a23904 4
ac_fn_c_check_header_compile "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_clockctl_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_CLOCKCTL_H 1" >>confdefs.h
d23908 2
d23912 1
a23912 2
if test ${enable_clockctl+y}
then :
d23914 1
a23914 1
else $as_nop
d23920 4
a23923 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
printf %s "checking if we should use /dev/clockctl... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
printf "%s\n" "$ntp_use_dev_clockctl" >&6; }
d23926 8
a23933 4
ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_capability_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_CAPABILITY_H 1" >>confdefs.h
a23935 4
ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_prctl_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
d23937 1
a23937 1
fi
d23940 2
a23941 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
printf %s "checking if we have linux capabilities (libcap)... " >&6; }
d23959 1
a23959 2
if test ${enable_linuxcaps+y}
then :
d23965 2
a23966 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
printf "%s\n" "$ntp_have_linuxcaps" >&6; }
d23971 1
a23971 1
printf "%s\n" "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
d23978 7
a23984 4
ac_fn_c_check_header_compile "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
if test "x$ac_cv_header_priv_h" = xyes
then :
  printf "%s\n" "#define HAVE_PRIV_H 1" >>confdefs.h
d23988 2
d23995 1
a23995 2
if test "x$ac_cv_func_setppriv" = xyes
then :
d23997 1
a23997 1
else $as_nop
d24007 1
a24007 2
if test ${enable_solarisprivs+y}
then :
d24013 2
a24014 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
printf %s "checking if we have solaris privileges... " >&6; }
d24019 1
a24019 1
printf "%s\n" "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
d24026 2
a24027 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
printf "%s\n" "$ntp_have_solarisprivs" >&6; }
d24029 7
a24035 4
ac_fn_c_check_header_compile "$LINENO" "sys/mac.h" "ac_cv_header_sys_mac_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_mac_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_MAC_H 1" >>confdefs.h
d24039 2
d24043 1
a24043 2
if test ${enable_trustedbsd_mac+y}
then :
d24049 2
a24050 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should use TrustedBSD MAC privileges" >&5
printf %s "checking if we should use TrustedBSD MAC privileges... " >&6; }
d24055 1
a24055 1
printf "%s\n" "#define HAVE_TRUSTEDBSD_MAC 1" >>confdefs.h
d24062 2
a24063 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_use_trustedbsd_mac" >&5
printf "%s\n" "$ntp_use_trustedbsd_mac" >&6; }
d24068 1
a24068 1
printf "%s\n" "#define HAVE_DROPROOT 1" >>confdefs.h
d24074 5
a24078 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
printf %s "checking for library containing res_9_init... " >&6; }
if test ${ac_cv_search_res_9_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24086 3
d24091 1
a24091 1
main (void)
d24098 1
a24098 2
for ac_lib in '' resolv
do
d24105 1
a24105 2
  if ac_fn_c_try_link "$LINENO"
then :
d24108 1
a24108 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d24110 1
a24110 2
  if test ${ac_cv_search_res_9_init+y}
then :
d24114 1
a24114 2
if test ${ac_cv_search_res_9_init+y}
then :
d24116 1
a24116 1
else $as_nop
d24122 2
a24123 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
printf "%s\n" "$ac_cv_search_res_9_init" >&6; }
d24125 1
a24125 2
if test "$ac_res" != no
then :
d24131 5
a24135 6
 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
printf %s "checking for library containing res_init... " >&6; }
if test ${ac_cv_search_res_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24143 3
d24148 1
a24148 1
main (void)
d24155 1
a24155 2
for ac_lib in '' resolv
do
d24162 1
a24162 2
  if ac_fn_c_try_link "$LINENO"
then :
d24165 1
a24165 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d24167 1
a24167 2
  if test ${ac_cv_search_res_init+y}
then :
d24171 1
a24171 2
if test ${ac_cv_search_res_init+y}
then :
d24173 1
a24173 1
else $as_nop
d24179 2
a24180 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
printf "%s\n" "$ac_cv_search_res_init" >&6; }
d24182 1
a24182 2
if test "$ac_res" != no
then :
d24189 4
a24192 1
ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "#ifdef HAVE_SYS_TYPES_H
d24205 4
a24208 21
if test "x$ac_cv_header_sys_types_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
if test "x$ac_cv_header_netinet_in_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
a24210 16
ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
if test "x$ac_cv_header_arpa_nameser_h" = xyes
then :
  printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h
d24212 1
a24212 37
fi
ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
if test "x$ac_cv_header_netdb_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
if test "x$ac_cv_header_resolv_h" = xyes
then :
  printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h

fi
d24216 1
a24216 2

  for ac_func in res_init
d24219 4
a24222 3
if test "x$ac_cv_func_res_init" = xyes
then :
  printf "%s\n" "#define HAVE_RES_INIT 1" >>confdefs.h
d24224 3
a24226 1
else $as_nop
d24228 4
a24231 3
if test "x$ac_cv_func___res_init" = xyes
then :
  printf "%s\n" "#define HAVE___RES_INIT 1" >>confdefs.h
d24234 1
d24237 1
a24238 1
done
d24242 1
a24242 2
if test "x$ac_cv_func_inet_ntop" = xyes
then :
d24244 1
a24244 1
else $as_nop
d24246 1
a24246 1
printf "%s\n" "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
d24251 1
a24251 2
if test "x$ac_cv_func_inet_pton" = xyes
then :
d24253 1
a24253 1
else $as_nop
d24255 1
a24255 1
printf "%s\n" "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
d24261 1
a24261 2
if test "x$ac_cv_type_uintptr_t" = xyes
then :
d24263 3
a24265 1
printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
d24270 1
a24270 2
if test "x$ac_cv_type_int32" = xyes
then :
d24272 3
a24274 1
printf "%s\n" "#define HAVE_INT32 1" >>confdefs.h
d24279 1
a24279 2
if test "x$ac_cv_type_u_int32" = xyes
then :
d24281 3
a24283 1
printf "%s\n" "#define HAVE_U_INT32 1" >>confdefs.h
d24291 7
a24297 23
ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
	#ifdef HAVE_SYS_TIME_H
	# include <sys/time.h>
	#endif
	#ifdef HAVE_ERRNO_H
	# include <errno.h>
	#endif


"
if test "x$ac_cv_header_sys_timepps_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TIMEPPS_H 1" >>confdefs.h

fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
printf %s "checking for struct timespec... " >&6; }
if test ${ntp_cv_struct_timespec+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24301 4
a24304 10
		#include <sys/time.h>
		/* Under SunOS, timespec is in sys/timepps.h,
		   which needs errno.h and FRAC */
		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif
		#ifdef HAVE_SYS_TIMEPPS_H
		# define FRAC 4294967296
		# include <sys/timepps.h>
		#endif
d24307 1
a24307 1
main (void)
d24310 1
a24310 1
		struct timespec n;
d24317 4
a24320 5
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_struct_timespec=yes
else $as_nop
  ntp_cv_struct_timespec=no
d24323 1
a24323 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d24326 118
a24443 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
printf "%s\n" "$ntp_cv_struct_timespec" >&6; }
d24447 1
a24447 1
printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
d24451 5
a24455 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
printf %s "checking for struct ntptimeval... " >&6; }
if test ${ntp_cv_struct_ntptimeval+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24463 1
a24463 1
main (void)
d24473 1
a24473 2
if ac_fn_c_try_compile "$LINENO"
then :
d24475 1
a24475 1
else $as_nop
d24479 1
a24479 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d24482 2
a24483 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
printf "%s\n" "$ntp_cv_struct_ntptimeval" >&6; }
d24487 1
a24487 1
printf "%s\n" "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
d24491 3
a24493 1
ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
d24500 4
a24503 3
if test "x$ac_cv_header_md5_h" = xyes
then :
  printf "%s\n" "#define HAVE_MD5_H 1" >>confdefs.h
d24507 2
d24510 5
a24514 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
printf %s "checking for library containing MD5Init... " >&6; }
if test ${ac_cv_search_MD5Init+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24522 3
d24527 1
a24527 1
main (void)
d24534 1
a24534 2
for ac_lib in '' md5 md
do
d24541 1
a24541 2
  if ac_fn_c_try_link "$LINENO"
then :
d24544 1
a24544 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d24546 1
a24546 2
  if test ${ac_cv_search_MD5Init+y}
then :
d24550 1
a24550 2
if test ${ac_cv_search_MD5Init+y}
then :
d24552 1
a24552 1
else $as_nop
d24558 2
a24559 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
printf "%s\n" "$ac_cv_search_MD5Init" >&6; }
d24561 1
a24561 2
if test "$ac_res" != no
then :
d24566 8
a24573 34
ac_fn_c_check_func "$LINENO" "MD5Init" "ac_cv_func_MD5Init"
if test "x$ac_cv_func_MD5Init" = xyes
then :
  printf "%s\n" "#define HAVE_MD5INIT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
if test "x$ac_cv_func_sysconf" = xyes
then :
  printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
if test "x$ac_cv_func_getdtablesize" = xyes
then :
  printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
if test "x$ac_cv_func_sigaction" = xyes
then :
  printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
if test "x$ac_cv_func_sigset" = xyes
then :
  printf "%s\n" "#define HAVE_SIGSET 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "sigvec" "ac_cv_func_sigvec"
if test "x$ac_cv_func_sigvec" = xyes
then :
  printf "%s\n" "#define HAVE_SIGVEC 1" >>confdefs.h
d24576 1
d24581 1
a24581 2
if test ${enable_signalled_io+y}
then :
d24583 1
a24583 1
else $as_nop
d24589 5
a24593 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
printf %s "checking for SIGIO... " >&6; }
if test ${ntp_cv_hdr_def_sigio+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24604 1
a24604 2
if ac_fn_c_try_cpp "$LINENO"
then :
d24606 1
a24606 1
else $as_nop
d24613 2
a24614 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
printf "%s\n" "$ntp_cv_hdr_def_sigio" >&6; }
d24616 2
a24617 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
printf %s "checking if we want to use SIGIO... " >&6; }
d24675 1
a24675 1
printf "%s\n" "#define HAVE_SIGNALED_IO 1" >>confdefs.h
d24682 2
a24683 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d24685 5
a24689 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
printf %s "checking for SIGPOLL... " >&6; }
if test ${ntp_cv_hdr_def_sigpoll+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24700 1
a24700 2
if ac_fn_c_try_cpp "$LINENO"
then :
d24702 1
a24702 1
else $as_nop
d24709 2
a24710 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
printf "%s\n" "$ntp_cv_hdr_def_sigpoll" >&6; }
d24712 2
a24713 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
printf %s "checking if we can use SIGPOLL for UDP I/O... " >&6; }
d24772 1
a24772 1
printf "%s\n" "#define USE_UDP_SIGPOLL 1" >>confdefs.h
d24775 2
a24776 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d24778 2
a24779 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
printf %s "checking if we can use SIGPOLL for TTY I/O... " >&6; }
d24830 1
a24830 865
    ;;
esac
case "$ans" in
 yes)

printf "%s\n" "#define USE_TTY_SIGPOLL 1" >>confdefs.h

esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
printf %s "checking number of arguments to gettimeofday()... " >&6; }
if test ${ntp_cv_func_Xettimeofday_nargs+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>

int
main (void)
{

		gettimeofday(0, 0);
		settimeofday(0, 0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_func_Xettimeofday_nargs=2
else $as_nop
  ntp_cv_func_Xettimeofday_nargs=1

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
printf "%s\n" "$ntp_cv_func_Xettimeofday_nargs" >&6; }
case "$ntp_cv_func_Xettimeofday_nargs" in
 1)

printf "%s\n" "#define SYSV_TIMEOFDAY 1" >>confdefs.h

esac


  for ac_func in settimeofday
do :
  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
if test "x$ac_cv_func_settimeofday" = xyes
then :
  printf "%s\n" "#define HAVE_SETTIMEOFDAY 1" >>confdefs.h

else $as_nop

    case "$host" in
     *-*-mpeix*) ac_cv_func_settimeofday=yes
    esac

fi

done

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
printf %s "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
ntp_warning='GRONK'
ans=none
case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
 yes*)
    ntp_warning=''
    ans='clock_settime()'
    ;;
 noyes*)
    ntp_warning='But clock_settime() would be better (if we had it)'
    ans='settimeofday()'
    ;;
 nonoyes)
    ntp_warning='Which is the worst of the three'
    ans='stime()'
    ;;
 *)
    case "$build" in
     $host)
	ntp_warning='Which leaves us with nothing to use!'
    esac
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
case "$ntp_warning" in
 '')
    ;;
 *)
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
printf "%s\n" "$as_me: WARNING: *** $ntp_warning ***" >&2;}
    ;;
esac

 if test x"$enable_dependency_tracking" = x"yes"; then
  LIBNTP_SUBMAKES_TRUE=
  LIBNTP_SUBMAKES_FALSE='#'
else
  LIBNTP_SUBMAKES_TRUE='#'
  LIBNTP_SUBMAKES_FALSE=
fi





# Check whether --with-crypto was given.
if test ${with_crypto+y}
then :
  withval=$with_crypto; 		case "$with_crypto" in
	 yes)
	    with_crypto=openssl,libcrypto
	esac

else $as_nop
  with_crypto=openssl,libcrypto
fi


# Check whether --with-openssl-libdir was given.
if test ${with_openssl_libdir+y}
then :
  withval=$with_openssl_libdir;
fi


# Check whether --with-openssl-incdir was given.
if test ${with_openssl_incdir+y}
then :
  withval=$with_openssl_incdir;
fi

# Check whether --enable-verbose-ssl was given.
if test ${enable_verbose_ssl+y}
then :
  enableval=$enable_verbose_ssl;
else $as_nop
  enable_verbose_ssl=no
fi


ntp_openssl=no
ntp_openssl_from_pkg_config=no
ntp_ssl_incdir=
ntp_ssl_cflags=
ntp_ssl_cppflags=
ntp_ssl_libdir=
ntp_ssl_libs_L=
ntp_ssl_libs_l=
ntp_ssl_libs=
ntp_ssl_ldflags=

NTPSSL_SAVED_CFLAGS="$CFLAGS"
NTPSSL_SAVED_CPPFLAGS="$CPPFLAGS"
NTPSSL_SAVED_LIBS="$LIBS"
NTPSSL_SAVED_LDFLAGS="$LDFLAGS"

# Extract the first word of "openssl", so it can be a program name with args.
set dummy openssl; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PATH_OPENSSL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $PATH_OPENSSL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_OPENSSL="$PATH_OPENSSL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PATH_OPENSSL="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_OPENSSL=$ac_cv_path_PATH_OPENSSL
if test -n "$PATH_OPENSSL"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_OPENSSL" >&5
printf "%s\n" "$PATH_OPENSSL" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi



str="$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}"
	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $str" >&5
printf "%s\n" "$as_me: $str" >&6;}
	esac


{ str=; unset str;}

# Make sure neither/both --with_openssl-{inc,lib}dir are given
case "${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
 notgiven:notgiven) ;;
 *notgiven*)
    as_fn_error $? "only one of --with-openssl-{inc,lib}dir=... given - provide both or neither" "$LINENO" 5
    ;;
esac

# HMS: Today there are only 2 case options.  We probably want a third
# *:*:notgiven:notgiven
# and in that case we would validate the path in PKG_CONFIG_PATH.
# Unless we can do it with 2 cases, where the 2nd case is *:*:...
# and we do a reality check on execpath and the headers/libraries.
#
##
# if $with_crypto is not "no":
#   if --with-openssl-{inc,lib}dir are not given:
#     we should use pkg-config to find openssl
#     if we don't have pkg-config, if openssl is in the base OS, use that.
##
case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
 no:*) ;;
 *:notempty:notgiven:notgiven)
    # If PKG_CONFIG is notempty and we haven't been given openssl paths,
    # then let's make sure that the openssl executable's path corresponds
    # to the path in openssl.pc, and 'openssl version' matches the Version
    # in openssl.pc.  If $PKG_CONFIG tells us an INCPATH and/or a LIBPATH,
    # then should we reality check them?
    ## INCPATH
    # harlan@@ntp-testbuild.tal1> openssl version
    # OpenSSL 1.1.1t  7 Feb 2023
    # harlan@@ntp-testbuild.tal1> grep 1.1.1t /ntpbuild/include/openssl/*
    # /ntpbuild/include/openssl/opensslv.h:# define OPENSSL_VERSION_TEXT    "OpenSSL 1.1.1t  7 Feb 2023"
    # harlan@@ntp-testbuild.tal1>
    ## LIBPATH
    # harlan@@ntp-testbuild.tal1> strings -a /ntpbuild/lib/libcrypto.* | fgrep 1.1.1t
    # OpenSSL 1.1.1t  7 Feb 2023
    # OpenSSL 1.1.1t  7 Feb 2023
    # OpenSSL 1.1.1t  7 Feb 2023
    # harlan@@ntp-testbuild.tal1> ls /ntpbuild/lib/libcrypto.*
    # /ntpbuild/lib/libcrypto.a       /ntpbuild/lib/libcrypto.so.1.1*
    # /ntpbuild/lib/libcrypto.so@@
    # harlan@@ntp-testbuild.tal1>
    ##
    # Having said this, do we really care if the openssl executable that
    # we have found is matched with the INCPATH and LIBPATH?
    # One answer: Probably not, but we should complain on a mismatch as
    # otherwise runtime differences could easily cause problems/drama.

    ##BO
    # ntp_cv_build_framework_help=yes
    save_PKG_CONFIG_PATH=${PKG_CONFIG_PATH}
    for pkg in `echo $with_crypto | $SED -e 's/,/ /'`; do
        case "$pkg" in
	 openssl)
	    if $PKG_CONFIG --exists $pkg ; then
		# Found it - yay
		# Do we want to check we found the right one?
		# --modver
		# --variable={libdir,includedir} (varname)
		overf=`openssl version`
		overs=`echo $overf | awk '{print }'`
		case "$overs" in
		 0.*) ;;	# Should we squawk?
		 1.0.*) ;;	# Should we squawk?
		 1.1.*) ;;	# Should we squawk?
		 3.*)
		    oinc=`openssl --variable=includedir`
		    olib=`openssl --variable=libdir`
		    # How should we use these?
		    ;;
		 *) ;;	# Should we squawk?
		esac
		# /ntpbuild/include/openssl/opensslv.h:# define OPENSSL_VERSION_TEXT    "OpenSSL 1.1.1t  7 Feb 2023"
		# grep 1.1.1t /ntpbuild/lib/libcrypto.a
		# strings -a /ntpbuild/lib/libcrypto.a | grep 1.1.1t
		# OpenSSL 1.1.1t  7 Feb 2023
		# harlan@@ntp-testbuild.tal1>
		# which should match $overf
		##
		# harlan@@ntp-testbuild.tal1> echo '"OpenSSL 1.1.1t  7 Feb 2023"' | cut -f 2 -d\"
		# OpenSSL 1.1.1t  7 Feb 2023
		# harlan@@ntp-testbuild.tal1> grep OPENSSL_VERSION_TEXT /ntpbuild/include/openssl/opensslv.h
		# # define OPENSSL_VERSION_TEXT    "OpenSSL 1.1.1t  7 Feb 2023"
		# harlan@@ntp-testbuild.tal1>
		##

	    else
		# This is a hack, but it's reasonable.
		pkgpath="`echo $PATH_OPENSSL | sed -e 's:/bin/openssl$::'`/lib/pkgconfig"
		test -d "$pkgpath" || pkgpath=
		# echo "pkgpath is <$pkgpath>"
		# echo "PKG_CONFIG_PATH is <$PKG_CONFIG_PATH>"
		case "$pkgpath" in
		 '') ;;	# Nothing to see here...
		 *) case ":$PKG_CONFIG_PATH:" in
		     ::)
			PKG_CONFIG_PATH=$pkgpath
			export PKG_CONFIG_PATH
			;;
		     *:$pkgpath:*)
			# Already there...
			;;
		     *)
			PKG_CONFIG_PATH="$pkgpath:$PKG_CONFIG_PATH"
			export PKG_CONFIG_PATH
			;;
		    esac
		    ;;
		esac
	    fi
	    ;;
        esac
    done
    ##EO

    for pkg in `echo $with_crypto | $SED -e 's/,/ /'`; do
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
printf %s "checking pkg-config for $pkg... " >&6; }
	if $PKG_CONFIG --exists $pkg ; then
	    ntp_ssl_cppflags="`$PKG_CONFIG --cflags-only-I $pkg`"
	    case "$ntp_ssl_cppflags" in
	     '')
		ntp_ssl_incdir='not needed'
		;;
	     *)
		ntp_ssl_incdir="`echo $ntp_ssl_cppflags | $SED -e 's/-I//'`"
	    esac
	    ntp_ssl_cflags="`$PKG_CONFIG --cflags-only-other $pkg`"
	    ntp_ssl_libs_L="`$PKG_CONFIG --libs-only-L $pkg`"
	    case "$ntp_ssl_libs_L" in
	     '')
		ntp_ssl_libdir='not needed'
		;;
	     *)
		ntp_ssl_libdir="`echo $ntp_ssl_libs_L | $SED -e 's/-L//'`"
	    esac
	    ntp_ssl_libs_l="`$PKG_CONFIG --libs-only-l $pkg`"
	    ntp_ssl_libs="$ntp_ssl_libs_L $ntp_ssl_libs_l"
	    ntp_ssl_ldflags="`$PKG_CONFIG --libs-only-other $pkg`"
	    ntp_openssl=yes
	    ntp_openssl_from_pkg_config=yes
	    ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`"
	    case "$ntp_openssl_version" in
	     *.*) ;;
	     *) ntp_openssl_version='(unknown)' ;;
	    esac
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5
printf "%s\n" "yes, version $ntp_openssl_version" >&6; }

	    break
	fi
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    done
    { pkg=; unset pkg;}
esac
case "$with_crypto" in
 no) ;;
 *)
    case "$with_openssl_libdir" in
     '') ;;
     *)
	ntp_ssl_libdir="$with_openssl_libdir"
	ntp_ssl_libs_L="-L$with_openssl_libdir"
	ntp_ssl_libs_l="-lcrypto"
	ntp_ssl_libs="$ntp_ssl_libs_L $ntp_ssl_libs_l"
    esac
    case "$with_openssl_incdir" in
     '') ;;
     *)
	ntp_ssl_incdir="$with_openssl_incdir"
	ntp_ssl_cppflags="-I$with_openssl_incdir"
    esac
esac

	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL Phase I checks:" >&5
printf "%s\n" "$as_me: OpenSSL Phase I checks:" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CPPFLAGS_NTP: ($CPPFLAGS_NTP)" >&5
printf "%s\n" "$as_me: CPPFLAGS_NTP: ($CPPFLAGS_NTP)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CFLAGS_NTP:   ($CFLAGS_NTP)" >&5
printf "%s\n" "$as_me: CFLAGS_NTP:   ($CFLAGS_NTP)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LDADD_NTP:    ($LDADD_NTP)" >&5
printf "%s\n" "$as_me: LDADD_NTP:    ($LDADD_NTP)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LDFLAGS_NTP:  ($LDFLAGS_NTP)" >&5
printf "%s\n" "$as_me: LDFLAGS_NTP:  ($LDFLAGS_NTP)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_openssl_from_pkg_config: $ntp_openssl_from_pkg_config" >&5
printf "%s\n" "$as_me: ntp_openssl_from_pkg_config: $ntp_openssl_from_pkg_config" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_incdir:   ($ntp_ssl_incdir)" >&5
printf "%s\n" "$as_me: ntp_ssl_incdir:   ($ntp_ssl_incdir)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_libdir:   ($ntp_ssl_libdir)" >&5
printf "%s\n" "$as_me: ntp_ssl_libdir:   ($ntp_ssl_libdir)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_cflags:   ($ntp_ssl_cflags)" >&5
printf "%s\n" "$as_me: ntp_ssl_cflags:   ($ntp_ssl_cflags)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_cppflags: ($ntp_ssl_cppflags)" >&5
printf "%s\n" "$as_me: ntp_ssl_cppflags: ($ntp_ssl_cppflags)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_libs_L:   ($ntp_ssl_libs_L)" >&5
printf "%s\n" "$as_me: ntp_ssl_libs_L:   ($ntp_ssl_libs_L)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_libs_l:   ($ntp_ssl_libs_l)" >&5
printf "%s\n" "$as_me: ntp_ssl_libs_l:   ($ntp_ssl_libs_l)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_libs:     ($ntp_ssl_libs)" >&5
printf "%s\n" "$as_me: ntp_ssl_libs:     ($ntp_ssl_libs)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_ldflags:  ($ntp_ssl_ldflags)" >&5
printf "%s\n" "$as_me: ntp_ssl_ldflags:  ($ntp_ssl_ldflags)" >&6;}
	esac



case "$with_crypto" in
 no)
    ntp_openssl=no
    ;;
 *)
    ntp_ssl_libs_l="${ntp_ssl_libs_l:--lcrypto}"
    ntp_ssl_libs="$ntp_ssl_libs_L $ntp_ssl_libs_l"
    case "$ntp_ssl_libdir" in
     '')

		{ ac_cv_lib_crypto_EVP_MD_CTX_new=; unset ac_cv_lib_crypto_EVP_MD_CTX_new;}
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Searching for libcrypto without -L" >&5
printf "%s\n" "$as_me: Searching for libcrypto without -L" >&6;}
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_new in -lcrypto" >&5
printf %s "checking for EVP_MD_CTX_new in -lcrypto... " >&6; }
if test ${ac_cv_lib_crypto_EVP_MD_CTX_new+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcrypto  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char EVP_MD_CTX_new ();
int
main (void)
{
return EVP_MD_CTX_new ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_crypto_EVP_MD_CTX_new=yes
else $as_nop
  ac_cv_lib_crypto_EVP_MD_CTX_new=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_new" >&5
printf "%s\n" "$ac_cv_lib_crypto_EVP_MD_CTX_new" >&6; }
if test "x$ac_cv_lib_crypto_EVP_MD_CTX_new" = xyes
then :
  ntp_ssl_libdir='not needed'

fi

		{ ac_cv_lib_crypto_EVP_MD_CTX_new=; unset ac_cv_lib_crypto_EVP_MD_CTX_new;}
    esac
    case "$ntp_ssl_libdir" in
     '')
	ntp_ssl_libdir_search="/usr/lib /usr/lib/openssl /usr/sfw/lib"
	ntp_ssl_libdir_search="$ntp_ssl_libdir_search /usr/local/lib"
	ntp_ssl_libdir_search="$ntp_ssl_libdir_search /usr/local/ssl/lib"
	ntp_ssl_libdir_search="$ntp_ssl_libdir_search /opt/local/lib"
	ntp_ssl_libdir_search="$ntp_ssl_libdir_search /lib /lib64"
	;;
     *)
	ntp_ssl_libdir_search="$ntp_ssl_libdir"
    esac
    case $ntp_ssl_libdir_search in
     'not needed') ;;
     *)
	for i in $ntp_ssl_libdir_search not_found
	do
	    case "$i" in
	     not_found) ;;
	     *)
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Searching for libcrypto in $i" >&5
printf "%s\n" "$as_me: Searching for libcrypto in $i" >&6;}
		LIBS="-L$i $NTPSSL_SAVED_LIBS"
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_new in -lcrypto" >&5
printf %s "checking for EVP_MD_CTX_new in -lcrypto... " >&6; }
if test ${ac_cv_lib_crypto_EVP_MD_CTX_new+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcrypto  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char EVP_MD_CTX_new ();
int
main (void)
{
return EVP_MD_CTX_new ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_crypto_EVP_MD_CTX_new=yes
else $as_nop
  ac_cv_lib_crypto_EVP_MD_CTX_new=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_new" >&5
printf "%s\n" "$ac_cv_lib_crypto_EVP_MD_CTX_new" >&6; }
if test "x$ac_cv_lib_crypto_EVP_MD_CTX_new" = xyes
then :
  break

fi

				{ ac_cv_lib_crypto_EVP_MD_CTX_new=; unset ac_cv_lib_crypto_EVP_MD_CTX_new;}
	    esac
	done
	ntp_ssl_libdir="$i"
	ntp_ssl_libs_L="-L$i"
	ntp_ssl_libs="$ntp_ssl_libs_L $ntp_ssl_libs_l"
	LIBS="$NTPSSL_SAVED_LIBS"
	case "$ntp_ssl_libdir" in
	 not_found)
	    as_fn_error $? "You may want to use --without-crypto, or add
openssl.pc/libcrypto.pc to PKG_CONFIG_PATH, or use the
--with-openssl-libdir=/some/path option to configure.
libcrypto not found in any of the following directories:
$ntp_ssl_libdir_search
	    " "$LINENO" 5
	esac
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: libcrypto found in $ntp_ssl_libdir" >&5
printf "%s\n" "$as_me: libcrypto found in $ntp_ssl_libdir" >&6;}
    esac

    case "$ntp_openssl_from_pkg_config:$ntp_ssl_incdir" in
     'yes:not needed' | no:)
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Searching for openssl/evp.h without -I" >&5
printf "%s\n" "$as_me: Searching for openssl/evp.h without -I" >&6;}
		{ ac_cv_header_openssl_evp_h=; unset ac_cv_header_openssl_evp_h;}
	ac_fn_c_check_header_compile "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
if test "x$ac_cv_header_openssl_evp_h" = xyes
then :
  ntp_ssl_incdir='not needed'

fi

    esac
    case "$ntp_ssl_incdir" in
     'not needed')
	ntp_ssl_incdir_search="$ntp_ssl_incdir"
	;;
     *)
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Searching for openssl include directory" >&5
printf "%s\n" "$as_me: Searching for openssl include directory" >&6;}
	case "$with_openssl_incdir" in
	 '')
	    case "$ntp_ssl_incdir" in
	     '')
		ntp_ssl_incdir_search="/usr/include /usr/sfw/include"
		ntp_ssl_incdir_search="$ntp_ssl_incdir_search /usr/local/include"
		ntp_ssl_incdir_search="$ntp_ssl_incdir_search /opt/local/include"
		ntp_ssl_incdir_search="$ntp_ssl_incdir_search /usr/local/ssl/include"
		;;
	     *)
	    esac
	    ;;
	 *)
	    ntp_ssl_incdir_search="$with_openssl_incdir"
	esac
	case $ntp_ssl_incdir_search in
	 'not needed') ;;
	 *)
	    for i in $ntp_ssl_incdir_search
	    do
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Searching for openssl/evp.h in $i" >&5
printf "%s\n" "$as_me: Searching for openssl/evp.h in $i" >&6;}
		CPPFLAGS="$NTPSSL_SAVED_CPPFLAGS -I$i"
				{ ac_cv_header_openssl_evp_h=; unset ac_cv_header_openssl_evp_h;}
		ac_fn_c_check_header_compile "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
if test "x$ac_cv_header_openssl_evp_h" = xyes
then :
  ntp_ssl_incdir="$i" ; break

fi

	    done
	    { ac_cv_header_openssl_evp_h=; unset ac_cv_header_openssl_evp_h;}
	    { i=; unset i;}
	    CPPFLAGS="$NTPSSL_SAVED_CPPFLAGS"
	    case "$ntp_ssl_incdir" in
	     '')
		as_fn_error $? "You may want to use --without-crypto, or add
openssl.pc/libcrypto.pc to PKG_CONFIG_PATH, or use the
-with-openssl-incdir=/some/path option to configure.
No usable openssl/evp.h found in any of the following direcotries:
$ntp_ssl_incdir_search
		" "$LINENO" 5
	    esac
	    ntp_ssl_cppflags="-I$ntp_ssl_incdir"
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Found evp.h in $ntp_ssl_incdir/openssl" >&5
printf "%s\n" "$as_me: Found evp.h in $ntp_ssl_incdir/openssl" >&6;}
	esac
    esac
    ntp_openssl=yes
esac
case "$ntp_openssl:$ntp_ssl_libdir" in
 'yes:not needed')
    ;;
 yes:*)
    CFLAGS="$NTPSSL_SAVED_CFLAGS $ntp_ssl_cflags"
    CPPFLAGS="$NTPSSL_SAVED_CPPFLAGS $ntp_ssl_cppflags"
    LIBS="$ntp_ssl_libs $NTPSSL_SAVED_LIBS"
    LDFLAGS="$ntp_ssl_ldflags $NTPSSL_SAVED_LDFLAGS"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if crypto works without runpath" >&5
printf %s "checking if crypto works without runpath... " >&6; }
if test ${ntp_cv_ssl_without_runpath+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  ntp_cv_ssl_without_runpath=yes
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include "openssl/evp.h"

int
main (void)
{

		    if (!EVP_MD_CTX_new()) {
			return 1;
		    }


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ntp_cv_ssl_without_runpath=yes
else $as_nop
  ntp_cv_ssl_without_runpath=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_ssl_without_runpath" >&5
printf "%s\n" "$ntp_cv_ssl_without_runpath" >&6; }
    case "$ntp_cv_ssl_without_runpath" in
     no)
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if crypto needs -Wl,-rpath,$ntp_ssl_libdir" >&5
printf %s "checking if crypto needs -Wl,-rpath,$ntp_ssl_libdir... " >&6; }
if test ${ntp_cv_ssl_needs_dashWl_rpath+y}
then :
  printf %s "(cached) " >&6
else $as_nop

		LDFLAGS="$ntp_ssl_ldflags -Wl,-rpath,$ntp_ssl_libdir $NTPSSL_SAVED_LDFLAGS"
		if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    #include "openssl/evp.h"

int
main (void)
{

			    if (!EVP_MD_CTX_new()) {
				return 1;
			    }


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ntp_cv_ssl_needs_dashWl_rpath=yes
else $as_nop
  ntp_cv_ssl_needs_dashWl_rpath=no

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi



fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_ssl_needs_dashWl_rpath" >&5
printf "%s\n" "$ntp_cv_ssl_needs_dashWl_rpath" >&6; }
	case "$ntp_cv_ssl_needs_dashWl_rpath" in
	 yes)
	    ntp_ssl_ldflags="$ntp_ssl_ldflags -Wl,-rpath,$ntp_ssl_libdir"
	    ;;
	 no)
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if crypto needs -R$ntp_ssl_libdir" >&5
printf %s "checking if crypto needs -R$ntp_ssl_libdir... " >&6; }
if test ${ntp_cv_ssl_needs_dashR+y}
then :
  printf %s "(cached) " >&6
else $as_nop

		    LDFLAGS="$NTPSSL_SAVED_LDFLAGS $ntp_ssl_ldflags -R$ntp_ssl_libdir"
		    if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

				#include "openssl/evp.h"

int
main (void)
{

				if (!EVP_MD_CTX_new()) {
				    return 1;
				}


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ntp_cv_ssl_needs_dashR=yes
else $as_nop
  ntp_cv_ssl_needs_dashR=no

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi



fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_ssl_needs_dashR" >&5
printf "%s\n" "$ntp_cv_ssl_needs_dashR" >&6; }
	    case "$ntp_cv_ssl_needs_dashR" in
	     yes)
		ntp_ssl_ldflags="$ntp_ssl_ldflags -R$ntp_ssl_libdir"
	    esac
	    case "$build:$ntp_cv_ssl_needs_dashR" in
	     $host:no)
		{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Unable to run program using crypto, check openssl.pc
or libcrypto.pc are in PKG_CONFIG_PATH, or provide the
 --with-openssl-libdir=/some/path option to configure.

See \`config.log' for more details" "$LINENO" 5; }
	    esac
	esac
    esac
d24832 2
a24833 4
	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL Phase II checks:" >&5
printf "%s\n" "$as_me: OpenSSL Phase II checks:" >&6;}
	esac
d24835 1
d24837 3
a24839 4
	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_incdir:   ($ntp_ssl_incdir)" >&5
printf "%s\n" "$as_me: ntp_ssl_incdir:   ($ntp_ssl_incdir)" >&6;}
	esac
d24841 5
a24845 56

	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_libdir:   ($ntp_ssl_libdir)" >&5
printf "%s\n" "$as_me: ntp_ssl_libdir:   ($ntp_ssl_libdir)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_cflags:   ($ntp_ssl_cflags)" >&5
printf "%s\n" "$as_me: ntp_ssl_cflags:   ($ntp_ssl_cflags)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_cppflags: ($ntp_ssl_cppflags)" >&5
printf "%s\n" "$as_me: ntp_ssl_cppflags: ($ntp_ssl_cppflags)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_libs_L:   ($ntp_ssl_libs_L)" >&5
printf "%s\n" "$as_me: ntp_ssl_libs_L:   ($ntp_ssl_libs_L)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_libs_l:   ($ntp_ssl_libs_l)" >&5
printf "%s\n" "$as_me: ntp_ssl_libs_l:   ($ntp_ssl_libs_l)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_libs:     ($ntp_ssl_libs)" >&5
printf "%s\n" "$as_me: ntp_ssl_libs:     ($ntp_ssl_libs)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_ldflags:  ($ntp_ssl_ldflags)" >&5
printf "%s\n" "$as_me: ntp_ssl_ldflags:  ($ntp_ssl_ldflags)" >&6;}
	esac



case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
 yes:no)
    CFLAGS="$NTPSSL_SAVED_CFLAGS $ntp_ssl_cflags"
    CPPFLAGS="$NTPSSL_SAVED_CPPFLAGS $ntp_ssl_cppflags"
    LIBS="$ntp_ssl_libs $NTPSSL_SAVED_LIBS"
    LDFLAGS="$ntp_ssl_ldflags $NTPSSL_SAVED_LDFLAGS"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linking with $ntp_ssl_libs_l alone works" >&5
printf %s "checking if linking with $ntp_ssl_libs_l alone works... " >&6; }
if test ${ntp_cv_bare_lcrypto+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24849 1
a24849 1
		    #include "openssl/evp.h"
d24852 1
a24852 1
main (void)
d24855 2
a24856 1
		    EVP_MD_CTX_new();
d24863 4
a24866 5
if ac_fn_c_try_link "$LINENO"
then :
  ntp_cv_bare_lcrypto=yes
else $as_nop
  ntp_cv_bare_lcrypto=no
d24869 1
a24869 2
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
d24872 4
a24875 13
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
printf "%s\n" "$ntp_cv_bare_lcrypto" >&6; }
    case "$ntp_cv_bare_lcrypto" in
     no)
	LIBS="-$ntp_ssl_libs -lz $NTPSSL_SAVED_LIBS"
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linking with $ntp_ssl_libs_l -lz works" >&5
printf %s "checking if linking with $ntp_ssl_libs_l -lz works... " >&6; }
if test ${ntp_cv_lcrypto_lz+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24877 1
a24877 1
			#include "openssl/evp.h"
d24879 1
a24879 3
int
main (void)
{
d24881 6
a24886 6
			EVP_MD_CTX_new();


  ;
  return 0;
}
a24887 5
if ac_fn_c_try_link "$LINENO"
then :
  ntp_cv_lcrypto_lz=yes
else $as_nop
  ntp_cv_lcrypto_lz=no
d24889 1
a24889 3
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
d24891 2
a24892 104
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
printf "%s\n" "$ntp_cv_lcrypto_lz" >&6; }
	case "$ntp_cv_lcrypto_lz" in
	 yes)
	     ntp_ssl_libs_l="$ntp_ssl_libs_l -lz"
	     ntp_ssl_libs="$ntp_ssl_libs_L $ntp_ssl_libs_l"
	esac
    esac	esac
case "$ntp_openssl:$GCC" in
 yes:yes)
    CFLAGS="$NTP_SAVED_CFLAGS $ntp_ssl_cflags -Werror"
    CPPFLAGS="$NTPSSL_SAVED_CPPFLAGS $ntp_ssl_cppflags"
    LIBS="$ntp_ssl_libs $NTPSSL_SAVED_LIBS"
    LDFLAGS="$ntp_ssl_ldflags $NTPSSL_SAVED_LDFLAGS"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking If $CC supports -Werror" >&5
printf %s "checking If $CC supports -Werror... " >&6; }
if test ${ntp_cv_gcc_supports_Werror+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_gcc_supports_Werror=yes
else $as_nop
  ntp_cv_gcc_supports_Werror=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_supports_Werror" >&5
printf "%s\n" "$ntp_cv_gcc_supports_Werror" >&6; }
    case "ntp_cv_gcc_supports_Werror" in
     no)
	ntp_use_Wstrict_prototypes=yes
	;;
     yes)
	CFLAGS="$CFLAGS -Wstrict-prototypes"
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OpenSSL triggers warnings" >&5
printf %s "checking if OpenSSL triggers warnings... " >&6; }
if test ${ntp_cv_ssl_triggers_warnings+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include "openssl/asn1_mac.h"
			#include "openssl/bn.h"
			#include "openssl/err.h"
			#include "openssl/evp.h"
			#include "openssl/pem.h"
			#include "openssl/rand.h"
			#include "openssl/x509v3.h"

int
main (void)
{

			/* empty body */


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_ssl_triggers_warnings=no
else $as_nop
  ntp_cv_ssl_triggers_warnings=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_ssl_triggers_warnings" >&5
printf "%s\n" "$ntp_cv_ssl_triggers_warnings" >&6; }
	case "$ntp_cv_ssl_triggers_warnings" in
	 yes)
	    ntp_use_Wstrict_prototypes=no
	    ;;
	 *)
	    ntp_use_Wstrict_prototypes=yes
	esac
    esac
    case "$ntp_use_Wstrict_prototypes" in
     no)
	ntp_ssl_cflags="$ntp_ssl_cflags -Wno-strict-prototypes"
	;;
     *)
	ntp_ssl_cflags="$ntp_ssl_cflags -Wstrict-prototypes"
a24893 21
    ;;
 no:yes)
        ntp_ssl_cflags="$ntp_ssl_cflags -Wstrict-prototypes"
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we will link to ssl library" >&5
printf %s "checking if we will link to ssl library... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
printf "%s\n" "$ntp_openssl" >&6; }

case "$ntp_openssl" in
 yes)
    VER_SUFFIX=o
           for ac_header in openssl/cmac.h
do :
  ac_fn_c_check_header_compile "$LINENO" "openssl/cmac.h" "ac_cv_header_openssl_cmac_h" "$ac_includes_default"
if test "x$ac_cv_header_openssl_cmac_h" = xyes
then :
  printf "%s\n" "#define HAVE_OPENSSL_CMAC_H 1" >>confdefs.h
 ntp_enable_cmac=yes
else $as_nop
  ntp_enable_cmac=no
a24895 1

a24896 2
    case "$ntp_enable_cmac" in
     yes)
a24897 1
printf "%s\n" "#define ENABLE_CMAC 1" >>confdefs.h
d24899 21
a24920 18

printf "%s\n" "#define OPENSSL /**/" >>confdefs.h


printf "%s\n" "#define OPENSSL_SUPPRESS_DEPRECATED 1" >>confdefs.h

        CFLAGS="$NTPSSL_SAVED_CFLAGS"
    ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes
then :
  printf "%s\n" "#define HAVE_EVP_MD_DO_ALL_SORTED 1" >>confdefs.h

fi

    CPPFLAGS_NTP="$CPPFLAGS_NTP $ntp_ssl_cppflags"
    CFLAGS_NTP="$CFLAGS_NTP $ntp_ssl_cflags"
    LDADD_NTP="$ntp_ssl_libs $LDADD_NTP"
    LDFLAGS_NTP="$ntp_ssl_ldflags $LDFLAGS_NTP"
d24922 10
a24931 5

	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL final checks:" >&5
printf "%s\n" "$as_me: OpenSSL final checks:" >&6;}
	esac
d24934 3
a24936 5
	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_openssl:  $ntp_openssl" >&5
printf "%s\n" "$as_me: ntp_openssl:  $ntp_openssl" >&6;}
	esac

a24937 4
	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CPPFLAGS_NTP: ($CPPFLAGS_NTP)" >&5
printf "%s\n" "$as_me: CPPFLAGS_NTP: ($CPPFLAGS_NTP)" >&6;}
	esac
d24940 2
a24941 54
	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CFLAGS_NTP:   ($CFLAGS_NTP)" >&5
printf "%s\n" "$as_me: CFLAGS_NTP:   ($CFLAGS_NTP)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LDADD_NTP:    ($LDADD_NTP)" >&5
printf "%s\n" "$as_me: LDADD_NTP:    ($LDADD_NTP)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LDFLAGS_NTP:  ($LDFLAGS_NTP)" >&5
printf "%s\n" "$as_me: LDFLAGS_NTP:  ($LDFLAGS_NTP)" >&6;}
	esac



CFLAGS="$NTPSSL_SAVED_CFLAGS"
CPPFLAGS="$NTPSSL_SAVED_CPPFLAGS"
LIBS="$NTPSSL_SAVED_LIBS"
LDFLAGS="$NTPSSL_SAVED_LDFLAGS"

{ NTPSSL_SAVED_CFLAGS=; unset NTPSSL_SAVED_CFLAGS;}
{ NTPSSL_SAVED_CPPFLAGS=; unset NTPSSL_SAVED_CPPFLAGS;}
{ NTPSSL_SAVED_LIBS=; unset NTPSSL_SAVED_LIBS;}
{ NTPSSL_SAVED_LDFLAGS=; unset NTPSSL_SAVED_LDFLAGS;}
{ ntp_enable_cmac=; unset ntp_enable_cmac;}
{ ntp_use_Wstrict_prototypes=; unset ntp_use_Wstrict_prototypes;}
{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
{ ntp_openssl_version=; unset ntp_openssl_version;}
{ ntp_ssl_cflags=; unset ntp_ssl_cflags;}
{ ntp_ssl_cppflags=; unset ntp_ssl_cppflags;}
{ ntp_ssl_libdir_search=; unset ntp_ssl_libdir_search;}
{ ntp_ssl_incdir_search=; unset ntp_ssl_incdir_search;}
{ ntp_ssl_libdir=; unset ntp_ssl_libdir;}
{ ntp_ssl_incdir=; unset ntp_ssl_incdir;}
{ ntp_ssl_libs_l=; unset ntp_ssl_libs_l;}
{ ntp_ssl_libs_L=; unset ntp_ssl_libs_L;}
{ ntp_ssl_ldflags=; unset ntp_ssl_ldflags;}





{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to use SSL library's secure random numbers" >&5
printf %s "checking if we want to use SSL library's secure random numbers... " >&6; }
# Check whether --enable-openssl-random was given.
if test ${enable_openssl_random+y}
then :
  enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval ; ntp_ssl_random_mandatory=$enableval
else $as_nop
  ntp_use_openssl_random=yes ; ntp_ssl_random_mandatory=no
d24943 5
d24950 2
a24951 26
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
printf "%s\n" "$ntp_use_openssl_random" >&6; }

# The following might need extra libraries
NTPO_SAVED_LIBS="$LIBS"
LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
ac_fn_c_check_func "$LINENO" "RAND_bytes" "ac_cv_func_RAND_bytes"
if test "x$ac_cv_func_RAND_bytes" = xyes
then :
  printf "%s\n" "#define HAVE_RAND_BYTES 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "RAND_poll" "ac_cv_func_RAND_poll"
if test "x$ac_cv_func_RAND_poll" = xyes
then :
  printf "%s\n" "#define HAVE_RAND_POLL 1" >>confdefs.h

fi

LIBS="$NTPO_SAVED_LIBS"
case "$ntp_openssl$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
 yesyesyesyes)
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using SSL library's secure random number generator" >&5
printf "%s\n" "$as_me: Using SSL library's secure random number generator" >&6;}

printf "%s\n" "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
d24953 4
a24957 23
 *)
    ntp_use_openssl_random=no
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SSL library's secure random number generator unavailable." >&5
printf "%s\n" "$as_me: SSL library's secure random number generator unavailable." >&6;}
    case "$ntp_ssl_random_mandatory" in
     yes)
	as_fn_error $? "No suitable SSL library was found and
--enable-openssl-random was given..  Remove --enable-openssl-random
if you wish to build without a cryptographically secure random number
generator.

WARNING: Use of ntp-keygen without a secure RNG may generate
-------  keys that are predictable.
	" "$LINENO" 5
	;;
     *)
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Use of ntp-keygen without a secure RNG may generate
-------  keys that are predictable.
	" >&5
printf "%s\n" "$as_me: WARNING: WARNING: Use of ntp-keygen without a secure RNG may generate
-------  keys that are predictable.
	" >&2;}
    esac
a24959 10
{ ntp_ssl_random_mandatory=; unset ntp_ssl_random_mandatory;}



LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
LIBS=$SAVED_LIBS
{ SAVED_LIBS=; unset SAVED_LIBS;}



d24964 5
a24968 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_AWK+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24976 1
a24976 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d24978 1
a24978 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d24980 1
a24980 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d24991 2
a24992 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
printf "%s\n" "$AWK" >&6; }
d24994 2
a24995 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d25003 2
a25004 2
				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
d25006 4
a25009 5
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval test \${ac_cv_prog_make_${ac_make}_set+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25025 66
a25090 3
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  SET_MAKE=
d25092 4
a25095 3
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
d25097 5
a25102 10

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
printf %s "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
printf "%s\n" "no, using $LN_S" >&6; }
d25109 5
a25113 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PATH_PERL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25123 1
a25123 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d25125 3
a25127 3
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PATH_PERL="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d25139 2
a25140 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
printf "%s\n" "$PATH_PERL" >&6; }
d25142 2
a25143 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d25150 5
a25154 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PATH_TEST+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25164 1
a25164 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d25166 3
a25168 3
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PATH_TEST="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d25180 2
a25181 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
printf "%s\n" "$PATH_TEST" >&6; }
d25183 2
a25184 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d25193 1
a25193 2
if test ${with_net_snmp_config+y}
then :
d25195 1
a25195 1
else $as_nop
d25223 5
a25227 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PATH_NET_SNMP_CONFIG+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25237 1
a25237 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d25239 3
a25241 3
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d25253 2
a25254 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
printf "%s\n" "$PATH_NET_SNMP_CONFIG" >&6; }
d25256 2
a25257 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d25264 4
a25267 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
printf %s "checking for net-snmp-config path... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
printf "%s\n" "$PATH_NET_SNMP_CONFIG" >&6; }
d25270 5
a25274 6
 /*)	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
printf %s "checking for net-snmp version... " >&6; }
if test ${ntp_cv_net_snmp_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25278 2
a25279 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
printf "%s\n" "$ntp_cv_net_snmp_version" >&6; }
d25290 5
a25294 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
printf %s "checking for library containing openlog... " >&6; }
if test ${ac_cv_search_openlog+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25302 3
d25307 1
a25307 1
main (void)
d25314 1
a25314 2
for ac_lib in '' gen syslog
do
d25321 1
a25321 2
  if ac_fn_c_try_link "$LINENO"
then :
d25324 1
a25324 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d25326 1
a25326 2
  if test ${ac_cv_search_openlog+y}
then :
d25330 1
a25330 2
if test ${ac_cv_search_openlog+y}
then :
d25332 1
a25332 1
else $as_nop
d25338 2
a25339 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
printf "%s\n" "$ac_cv_search_openlog" >&6; }
d25341 1
a25341 2
if test "$ac_res" != no
then :
d25350 2
a25351 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
printf %s "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
d25353 1
a25353 2
if test ${enable_libseccomp+y}
then :
d25355 1
a25355 1
else $as_nop
d25360 2
a25361 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d25364 5
a25368 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
printf %s "checking for library containing seccomp_init... " >&6; }
if test ${ac_cv_search_seccomp_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25376 3
d25381 1
a25381 1
main (void)
d25388 1
a25388 2
for ac_lib in '' seccomp
do
d25395 1
a25395 2
  if ac_fn_c_try_link "$LINENO"
then :
d25398 1
a25398 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d25400 1
a25400 2
  if test ${ac_cv_search_seccomp_init+y}
then :
d25404 1
a25404 2
if test ${ac_cv_search_seccomp_init+y}
then :
d25406 1
a25406 1
else $as_nop
d25412 2
a25413 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
printf "%s\n" "$ac_cv_search_seccomp_init" >&6; }
d25415 1
a25415 2
if test "$ac_res" != no
then :
d25418 1
a25418 1
printf "%s\n" "#define LIBSECCOMP 1" >>confdefs.h
d25423 3
a25425 4
    if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d25428 1
a25428 1
else $as_nop
d25469 1
a25469 2
if ac_fn_c_try_run "$LINENO"
then :
d25471 1
a25471 1
printf "%s\n" "#define KERN_SECCOMP 1" >>confdefs.h
d25483 5
d25489 1
a25489 7
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
printf %s "checking for facilitynames in syslog.h... " >&6; }
if test ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d25492 3
a25494 3
		#define SYSLOG_NAMES
		#include <stdlib.h>
		#include <syslog.h>
d25497 1
a25497 1
main (void)
d25499 1
a25499 4

		void *fnames = facilitynames;


a25502 1
	ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
d25504 3
a25506 2
if ac_fn_c_try_compile "$LINENO"
then :
a25507 1

d25509 1
a25509 2
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

d25511 2
a25512 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
printf "%s\n" "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
d25516 1
a25516 1
printf "%s\n" "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
d25520 7
a25526 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
printf "%s\n" "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
d25538 7
a25544 11
     '') { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!
See \`config.log' for more details" "$LINENO" 5; } ;;
    esac
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
printf %s "checking for library containing sched_setscheduler... " >&6; }
if test ${ac_cv_search_sched_setscheduler+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25552 3
d25557 1
a25557 1
main (void)
d25564 1
a25564 2
for ac_lib in '' rt posix4
do
d25571 1
a25571 2
  if ac_fn_c_try_link "$LINENO"
then :
d25574 1
a25574 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d25576 1
a25576 2
  if test ${ac_cv_search_sched_setscheduler+y}
then :
d25580 1
a25580 2
if test ${ac_cv_search_sched_setscheduler+y}
then :
d25582 1
a25582 1
else $as_nop
d25588 2
a25589 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
printf "%s\n" "$ac_cv_search_sched_setscheduler" >&6; }
d25591 1
a25591 2
if test "$ac_res" != no
then :
d25599 7
a25605 10
ac_fn_c_check_header_compile "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
if test "x$ac_cv_header_bstring_h" = xyes
then :
  printf "%s\n" "#define HAVE_BSTRING_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/procctl.h" "ac_cv_header_sys_procctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_procctl_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PROCCTL_H 1" >>confdefs.h
d25609 9
a25617 9
ac_fn_c_check_header_compile "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
if test "x$ac_cv_header_dns_sd_h" = xyes
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
printf %s "checking for library containing DNSServiceRegister... " >&6; }
if test ${ac_cv_search_DNSServiceRegister+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25625 3
d25630 1
a25630 1
main (void)
d25637 1
a25637 2
for ac_lib in '' dns_sd
do
d25644 1
a25644 2
  if ac_fn_c_try_link "$LINENO"
then :
d25647 1
a25647 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d25649 1
a25649 2
  if test ${ac_cv_search_DNSServiceRegister+y}
then :
d25653 1
a25653 2
if test ${ac_cv_search_DNSServiceRegister+y}
then :
d25655 1
a25655 1
else $as_nop
d25661 2
a25662 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
printf "%s\n" "$ac_cv_search_DNSServiceRegister" >&6; }
d25664 1
a25664 2
if test "$ac_res" != no
then :
d25667 1
a25667 1
printf "%s\n" "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
a25674 4
ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
if test "x$ac_cv_header_fcntl_h" = xyes
then :
  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
d25676 8
a25683 5
fi
ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
if test "x$ac_cv_header_fnmatch_h" = xyes
then :
  printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h
a25685 4
ac_fn_c_check_header_compile "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
if test "x$ac_cv_header_ieeefp_h" = xyes
then :
  printf "%s\n" "#define HAVE_IEEEFP_H 1" >>confdefs.h
d25687 1
a25687 5
fi
ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
if test "x$ac_cv_header_inttypes_h" = xyes
then :
  printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
a25688 5
fi
ac_fn_c_check_header_compile "$LINENO" "kvm.h" "ac_cv_header_kvm_h" "$ac_includes_default"
if test "x$ac_cv_header_kvm_h" = xyes
then :
  printf "%s\n" "#define HAVE_KVM_H 1" >>confdefs.h
d25690 8
a25697 5
fi
ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
if test "x$ac_cv_header_math_h" = xyes
then :
  printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
d25701 1
d25703 8
a25710 4
ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
if test "x$ac_cv_header_memory_h" = xyes
then :
  printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
a25712 4
ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
if test "x$ac_cv_header_netdb_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
d25714 1
a25714 5
fi
ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
if test "x$ac_cv_header_poll_h" = xyes
then :
  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
d25716 5
a25720 30
fi

ac_fn_c_check_header_compile "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
if test "x$ac_cv_header_sgtty_h" = xyes
then :
  printf "%s\n" "#define HAVE_SGTTY_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
if test "x$ac_cv_header_stdatomic_h" = xyes
then :
  printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h

fi

ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
if test "x$ac_cv_type__Bool" = xyes
then :

printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h


fi

   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
printf %s "checking for stdbool.h that conforms to C99... " >&6; }
if test ${ac_cv_header_stdbool_h+y}
then :
  printf %s "(cached) " >&6
else $as_nop
a25722 1
#include <stdbool.h>
d25724 9
a25732 2
             #ifndef __bool_true_false_are_defined
               #error "__bool_true_false_are_defined is not defined"
d25734 2
a25735 9
             char a[__bool_true_false_are_defined == 1 ? 1 : -1];

             /* Regardless of whether this is C++ or "_Bool" is a
                valid type name, "true" and "false" should be usable
                in #if expressions and integer constant expressions,
                and "bool" should be a valid type name.  */

             #if !true
               #error "'true' is not true"
d25738 1
a25738 1
               #error "'true' is not equal to 1"
d25740 2
a25741 5
             char b[true == 1 ? 1 : -1];
             char c[true];

             #if false
               #error "'false' is not false"
a25742 6
             #if false != 0
               #error "'false' is not equal to 0"
             #endif
             char d[false == 0 ? 1 : -1];

             enum { e = false, f = true, g = false * true, h = true * 256 };
d25744 1
a25744 6
             char i[(bool) 0.5 == true ? 1 : -1];
             char j[(bool) 0.0 == false ? 1 : -1];
             char k[sizeof (bool) > 0 ? 1 : -1];

             struct sb { bool s: 1; bool t; } s;
             char l[sizeof s.t > 0 ? 1 : -1];
d25746 10
d25758 3
a25760 3
             bool m[h];
             char n[sizeof m == h * sizeof m[0] ? 1 : -1];
             char o[-1 - (bool) 0 < 0 ? 1 : -1];
d25762 2
a25763 2
         https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
         https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
d25765 2
a25766 33
             bool p = true;
             bool *pp = &p;

             /* C 1999 specifies that bool, true, and false are to be
                macros, but C++ 2011 and later overrule this.  */
             #if __cplusplus < 201103
              #ifndef bool
               #error "bool is not defined"
              #endif
              #ifndef false
               #error "false is not defined"
              #endif
              #ifndef true
               #error "true is not defined"
              #endif
             #endif

             /* If _Bool is available, repeat with it all the tests
                above that used bool.  */
             #ifdef HAVE__BOOL
               struct sB { _Bool s: 1; _Bool t; } t;

               char q[(_Bool) 0.5 == true ? 1 : -1];
               char r[(_Bool) 0.0 == false ? 1 : -1];
               char u[sizeof (_Bool) > 0 ? 1 : -1];
               char v[sizeof t.t > 0 ? 1 : -1];

               _Bool w[h];
               char x[sizeof m == h * sizeof m[0] ? 1 : -1];
               char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
               _Bool z = true;
               _Bool *pz = &p;
             #endif
d25769 1
a25769 1
main (void)
d25772 6
a25777 18
             bool ps = &s;
             *pp |= p;
             *pp |= ! p;

             #ifdef HAVE__BOOL
               _Bool pt = &t;
               *pz |= z;
               *pz |= ! z;
             #endif

             /* Refer to every declared value, so they cannot be
                discarded as unused.  */
             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
                     + !l + !m + !n + !o + !p + !pp + !ps
             #ifdef HAVE__BOOL
                     + !q + !r + !u + !v + !w + !x + !y + !z + !pt
             #endif
                    );
d25783 1
a25783 2
if ac_fn_c_try_compile "$LINENO"
then :
d25785 1
a25785 1
else $as_nop
d25788 1
a25788 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d25790 4
a25793 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
d25795 3
a25797 1
if test $ac_cv_header_stdbool_h = yes; then
a25798 1
printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
a25801 4
ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
if test "x$ac_cv_header_stdlib_h" = xyes
then :
  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
d25803 1
a25803 5
fi
ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
if test "x$ac_cv_header_string_h" = xyes
then :
  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
d25805 1
a25805 5
fi
ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
if test "x$ac_cv_header_termio_h" = xyes
then :
  printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
d25809 8
a25816 4
ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
if test "x$ac_cv_header_termios_h" = xyes
then :
  printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
a25818 4
ac_fn_c_check_header_compile "$LINENO" "timepps.h" "ac_cv_header_timepps_h" "$ac_includes_default"
if test "x$ac_cv_header_timepps_h" = xyes
then :
  printf "%s\n" "#define HAVE_TIMEPPS_H 1" >>confdefs.h
d25820 10
a25829 5
fi
ac_fn_c_check_header_compile "$LINENO" "timex.h" "ac_cv_header_timex_h" "$ac_includes_default"
if test "x$ac_cv_header_timex_h" = xyes
then :
  printf "%s\n" "#define HAVE_TIMEX_H 1" >>confdefs.h
a25831 4
ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
if test "x$ac_cv_header_unistd_h" = xyes
then :
  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
d25833 1
a25833 1
fi
d25838 7
a25844 4
    ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
if test "x$ac_cv_header_utmpx_h" = xyes
then :
  printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
d25848 2
d25854 7
a25860 4
	ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
if test "x$ac_cv_header_utmp_h" = xyes
then :
  printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
d25864 2
d25870 8
a25877 4
    ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
if test "x$ac_cv_header_utmp_h" = xyes
then :
  printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
a25879 4
ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
if test "x$ac_cv_header_utmpx_h" = xyes
then :
  printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
d25881 1
a25881 1
fi
d25896 7
a25902 4
    ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
if test "x$ac_cv_func_getpassphrase" = xyes
then :
  printf "%s\n" "#define HAVE_GETPASSPHRASE 1" >>confdefs.h
d25905 1
d25910 7
a25916 4
ac_fn_c_check_header_compile "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
if test "x$ac_cv_header_net_if6_h" = xyes
then :
  printf "%s\n" "#define HAVE_NET_IF6_H 1" >>confdefs.h
d25920 5
a25924 1
ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
d25930 4
a25933 3
if test "x$ac_cv_header_net_route_h" = xyes
then :
  printf "%s\n" "#define HAVE_NET_ROUTE_H 1" >>confdefs.h
d25937 2
d25940 7
a25946 4
ac_fn_c_check_header_compile "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
if test "x$ac_cv_header_netinfo_ni_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINFO_NI_H 1" >>confdefs.h
d25950 2
d25955 1
a25955 1
printf "%s\n" "#define HAVE_NETINFO 1" >>confdefs.h
d25958 8
a25965 4
ac_fn_c_check_header_compile "$LINENO" "sun/audioio.h" "ac_cv_header_sun_audioio_h" "$ac_includes_default"
if test "x$ac_cv_header_sun_audioio_h" = xyes
then :
  printf "%s\n" "#define HAVE_SUN_AUDIOIO_H 1" >>confdefs.h
a25967 4
ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_audioio_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_AUDIOIO_H 1" >>confdefs.h
d25969 1
a25969 7
fi
ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_file_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h

fi
d25975 7
a25981 4
    ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ioctl_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
d25985 2
d25989 8
a25996 4
ac_fn_c_check_header_compile "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ipc_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_IPC_H 1" >>confdefs.h
a25998 4
ac_fn_c_check_header_compile "$LINENO" "sys/lock.h" "ac_cv_header_sys_lock_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_lock_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_LOCK_H 1" >>confdefs.h
d26000 1
a26000 7
fi
ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_mman_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h

fi
d26003 8
a26010 4
ac_fn_c_check_header_compile "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_modem_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
a26012 4
ac_fn_c_check_header_compile "$LINENO" "sys/ppsclock.h" "ac_cv_header_sys_ppsclock_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ppsclock_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PPSCLOCK_H 1" >>confdefs.h
d26014 1
a26014 13
fi
ac_fn_c_check_header_compile "$LINENO" "sys/ppstime.h" "ac_cv_header_sys_ppstime_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ppstime_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PPSTIME_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sched_h" = xyes
then :
  printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h

fi
d26020 7
a26026 4
    ac_fn_c_check_header_compile "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sched_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SCHED_H 1" >>confdefs.h
d26030 2
d26035 8
a26042 16
ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_select_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/signal.h" "ac_cv_header_sys_signal_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_signal_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SIGNAL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sockio_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
d26046 2
d26053 8
a26060 4
    ac_fn_c_check_header_compile "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
if test "x$ac_cv_header_machine_soundcard_h" = xyes
then :
  printf "%s\n" "#define HAVE_MACHINE_SOUNDCARD_H 1" >>confdefs.h
a26062 4
ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_soundcard_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h
d26064 1
a26064 1
fi
d26068 8
a26075 4
ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_stat_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
a26077 4
ac_fn_c_check_header_compile "$LINENO" "sys/stream.h" "ac_cv_header_sys_stream_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_stream_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_STREAM_H 1" >>confdefs.h
d26079 1
a26079 5
fi
ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
if test "x$ac_cv_header_stropts_h" = xyes
then :
  printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
d26081 8
a26088 5
fi
ac_fn_c_check_header_compile "$LINENO" "sys/stropts.h" "ac_cv_header_sys_stropts_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_stropts_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_STROPTS_H 1" >>confdefs.h
a26090 4
ac_fn_c_check_header_compile "$LINENO" "sys/syssgi.h" "ac_cv_header_sys_syssgi_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_syssgi_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SYSSGI_H 1" >>confdefs.h
d26092 1
a26092 1
fi
d26094 7
a26100 29
ac_fn_c_check_header_compile "$LINENO" "sys/systune.h" "ac_cv_header_sys_systune_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_systune_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SYSTUNE_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/termios.h" "ac_cv_header_sys_termios_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_termios_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TERMIOS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/tpro.h" "ac_cv_header_sys_tpro_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_tpro_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TPRO_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_wait_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
if test "x$ac_cv_func_waitpid" = xyes
then :
  printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
d26103 1
d26107 8
a26114 4
    ac_fn_c_check_header_compile "$LINENO" "/sys/sync/queue.h" "ac_cv_header__sys_sync_queue_h" "$ac_includes_default"
if test "x$ac_cv_header__sys_sync_queue_h" = xyes
then :
  printf "%s\n" "#define HAVE__SYS_SYNC_QUEUE_H 1" >>confdefs.h
a26116 4
ac_fn_c_check_header_compile "$LINENO" "/sys/sync/sema.h" "ac_cv_header__sys_sync_sema_h" "$ac_includes_default"
if test "x$ac_cv_header__sys_sync_sema_h" = xyes
then :
  printf "%s\n" "#define HAVE__SYS_SYNC_SEMA_H 1" >>confdefs.h
d26118 1
a26118 1
fi
d26122 8
a26129 16
    ac_fn_c_check_header_compile "$LINENO" "machine/inline.h" "ac_cv_header_machine_inline_h" "$ac_includes_default"
if test "x$ac_cv_header_machine_inline_h" = xyes
then :
  printf "%s\n" "#define HAVE_MACHINE_INLINE_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/pcl720.h" "ac_cv_header_sys_pcl720_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_pcl720_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PCL720_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/i8253.h" "ac_cv_header_sys_i8253_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_i8253_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_I8253_H 1" >>confdefs.h
d26133 2
d26140 7
a26146 4
	ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
if test "x$ac_cv_func_atomic_thread_fence" = xyes
then :
  printf "%s\n" "#define HAVE_ATOMIC_THREAD_FENCE 1" >>confdefs.h
d26149 1
d26151 5
a26155 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
printf %s "checking for atomic_thread_fence()... " >&6; }
if test ${ntp_cv_func_atomic_thread_fence+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26162 1
a26162 1
main (void)
d26171 1
d26173 1
a26173 4
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_func_atomic_thread_fence=yes
else $as_nop
d26177 1
a26177 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26180 2
a26181 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
printf "%s\n" "$ntp_cv_func_atomic_thread_fence" >&6; }
d26190 8
a26197 10
    ac_fn_c_check_func "$LINENO" "ntp_adjtime" "ac_cv_func_ntp_adjtime"
if test "x$ac_cv_func_ntp_adjtime" = xyes
then :
  printf "%s\n" "#define HAVE_NTP_ADJTIME 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "ntp_gettime" "ac_cv_func_ntp_gettime"
if test "x$ac_cv_func_ntp_gettime" = xyes
then :
  printf "%s\n" "#define HAVE_NTP_GETTIME 1" >>confdefs.h
d26200 1
d26210 8
a26217 5
     *)
	ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
if test "x$ac_cv_func___ntp_gettime" = xyes
then :
  printf "%s\n" "#define HAVE___NTP_GETTIME 1" >>confdefs.h
d26220 1
d26225 1
a26225 1
printf "%s\n" "#define ntp_gettime __ntp_gettime" >>confdefs.h
d26228 1
a26228 1
printf "%s\n" "#define HAVE_NTP_GETTIME 1" >>confdefs.h
d26233 7
a26239 4
    ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
if test "x$ac_cv_func_adjtimex" = xyes
then :
  printf "%s\n" "#define HAVE_ADJTIMEX 1" >>confdefs.h
d26242 1
d26247 1
a26247 1
printf "%s\n" "#define ntp_adjtime adjtimex" >>confdefs.h
d26250 1
a26250 1
printf "%s\n" "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
d26255 7
a26261 4
	ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
if test "x$ac_cv_func___adjtimex" = xyes
then :
  printf "%s\n" "#define HAVE___ADJTIMEX 1" >>confdefs.h
d26264 1
d26269 1
a26269 1
printf "%s\n" "#define ntp_adjtime __adjtimex" >>confdefs.h
d26272 1
a26272 1
printf "%s\n" "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
d26275 1
a26275 1
printf "%s\n" "#define adjtimex __adjtimex" >>confdefs.h
d26278 1
a26278 1
printf "%s\n" "#define HAVE_ADJTIMEX 1" >>confdefs.h
d26290 5
a26294 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
printf %s "checking for library containing nlist... " >&6; }
if test ${ac_cv_search_nlist+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26302 3
d26307 1
a26307 1
main (void)
d26314 1
a26314 2
for ac_lib in '' elf ld mld
do
d26321 1
a26321 2
  if ac_fn_c_try_link "$LINENO"
then :
d26324 1
a26324 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d26326 1
a26326 2
  if test ${ac_cv_search_nlist+y}
then :
d26330 1
a26330 2
if test ${ac_cv_search_nlist+y}
then :
d26332 1
a26332 1
else $as_nop
d26338 2
a26339 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
printf "%s\n" "$ac_cv_search_nlist" >&6; }
d26341 1
a26341 2
if test "$ac_res" != no
then :
d26347 5
a26351 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
printf %s "checking for library containing kvm_open... " >&6; }
if test ${ac_cv_search_kvm_open+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26359 3
d26364 1
a26364 1
main (void)
d26371 1
a26371 2
for ac_lib in '' kvm
do
d26378 1
a26378 2
  if ac_fn_c_try_link "$LINENO"
then :
d26381 1
a26381 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d26383 1
a26383 2
  if test ${ac_cv_search_kvm_open+y}
then :
d26387 1
a26387 2
if test ${ac_cv_search_kvm_open+y}
then :
d26389 1
a26389 1
else $as_nop
d26395 2
a26396 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
printf "%s\n" "$ac_cv_search_kvm_open" >&6; }
d26398 1
a26398 2
if test "$ac_res" != no
then :
d26403 8
a26410 4
    ac_fn_c_check_header_compile "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
if test "x$ac_cv_header_nlist_h" = xyes
then :
  printf "%s\n" "#define HAVE_NLIST_H 1" >>confdefs.h
a26412 4
ac_fn_c_check_header_compile "$LINENO" "sys/var.h" "ac_cv_header_sys_var_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_var_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_VAR_H 1" >>confdefs.h
d26414 1
a26414 1
fi
d26419 1
a26419 1
printf "%s\n" "#define NLIST_STRUCT 1" >>confdefs.h
d26421 5
a26425 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
printf %s "checking for n_un in struct nlist... " >&6; }
if test ${ntp_cv_struct_nlist_n_un+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26432 1
a26432 1
main (void)
d26442 1
d26444 1
a26444 4
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_struct_nlist_n_un=yes
else $as_nop
d26448 1
a26448 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26451 2
a26452 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
printf "%s\n" "$ntp_cv_struct_nlist_n_un" >&6; }
d26456 1
a26456 1
printf "%s\n" "#define NLIST_NAME_UNION 1" >>confdefs.h
d26466 3
a26468 1
ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
d26477 4
a26480 3
if test "x$ac_cv_header_sys_proc_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PROC_H 1" >>confdefs.h
d26484 2
d26487 3
a26489 1
ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
d26495 4
a26498 3
if test "x$ac_cv_header_sys_resource_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
d26502 2
d26505 3
a26507 1
ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
d26516 4
a26519 3
if test "x$ac_cv_header_sys_shm_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SHM_H 1" >>confdefs.h
d26523 2
d26526 3
a26528 1
ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
d26534 4
a26537 3
if test "x$ac_cv_header_sys_timex_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TIMEX_H 1" >>confdefs.h
d26541 2
d26560 1
a26560 1
main (void)
d26562 2
a26563 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: AF_UNSPEC is zero, as expected." >&5
printf "%s\n" "$as_me: AF_UNSPEC is zero, as expected." >&6;}
d26569 1
a26569 2
if ac_fn_c_try_compile "$LINENO"
then :
d26572 1
a26572 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26574 5
a26578 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
printf %s "checking return type of signal handlers... " >&6; }
if test ${ac_cv_type_signal+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26585 1
a26585 1
main (void)
d26592 1
a26592 2
if ac_fn_c_try_compile "$LINENO"
then :
d26594 1
a26594 1
else $as_nop
d26597 1
a26597 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26599 2
a26600 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
printf "%s\n" "$ac_cv_type_signal" >&6; }
d26602 3
a26604 1
printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
d26608 1
a26608 2
if test "x$ac_cv_type_off_t" = xyes
then :
d26610 1
a26610 1
else $as_nop
d26612 3
a26614 1
printf "%s\n" "#define off_t long int" >>confdefs.h
d26618 5
a26622 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if test ${ac_cv_struct_tm+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26629 1
a26629 1
main (void)
d26638 1
a26638 2
if ac_fn_c_try_compile "$LINENO"
then :
d26640 1
a26640 1
else $as_nop
d26643 1
a26643 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26645 2
a26646 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
printf "%s\n" "$ac_cv_struct_tm" >&6; }
d26649 1
a26649 1
printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
d26653 5
a26657 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
printf %s "checking for a fallback value for HZ... " >&6; }
if test ${ntp_cv_default_hz+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26671 2
a26672 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
printf "%s\n" "$ntp_cv_default_hz" >&6; }
d26674 3
a26676 1
printf "%s\n" "#define DEFAULT_HZ $ntp_cv_default_hz" >>confdefs.h
d26679 5
a26683 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
printf %s "checking if we need to override the system's value for HZ... " >&6; }
if test ${ntp_cv_override_hz+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26706 2
a26707 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
printf "%s\n" "$ntp_cv_override_hz" >&6; }
d26711 1
a26711 1
printf "%s\n" "#define OVERRIDE_HZ 1" >>confdefs.h
d26717 5
a26721 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
printf %s "checking for struct rt_msghdr... " >&6; }
if test ${ntp_cv_struct_rt_msghdr+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26731 1
a26731 1
main (void)
d26741 1
a26741 2
if ac_fn_c_try_compile "$LINENO"
then :
d26743 1
a26743 1
else $as_nop
d26747 1
a26747 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26750 2
a26751 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
printf "%s\n" "$ntp_cv_struct_rt_msghdr" >&6; }
d26753 5
a26757 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
printf %s "checking for struct rtattr... " >&6; }
if test ${ntp_cv_rtattr+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26766 1
a26766 1
main (void)
d26776 1
a26776 2
if ac_fn_c_try_compile "$LINENO"
then :
d26778 1
a26778 1
else $as_nop
d26782 1
a26782 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26785 2
a26786 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
printf "%s\n" "$ntp_cv_rtattr" >&6; }
d26791 1
a26791 1
printf "%s\n" "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
d26796 1
a26796 1
printf "%s\n" "#define HAVE_RTNETLINK 1" >>confdefs.h
d26801 5
a26805 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
printf %s "checking struct sigaction for sa_sigaction... " >&6; }
if test ${ntp_cv_struct_sigaction_has_sa_sigaction+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26812 1
a26812 1
main (void)
d26823 1
a26823 2
if ac_fn_c_try_compile "$LINENO"
then :
d26825 1
a26825 1
else $as_nop
d26829 1
a26829 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26832 2
a26833 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
printf "%s\n" "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
d26837 1
a26837 1
printf "%s\n" "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
d26841 5
a26845 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
printf %s "checking for struct ppsclockev... " >&6; }
if test ${ntp_cv_struct_ppsclockev+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26863 1
a26863 1
main (void)
d26874 1
a26874 2
if ac_fn_c_try_compile "$LINENO"
then :
d26876 1
a26876 1
else $as_nop
d26880 1
a26880 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26883 2
a26884 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
printf "%s\n" "$ntp_cv_struct_ppsclockev" >&6; }
d26888 1
a26888 1
printf "%s\n" "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
d26894 5
a26898 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
printf %s "checking for struct snd_size... " >&6; }
if test ${ntp_cv_struct_snd_size+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26910 1
a26910 1
main (void)
d26921 1
a26921 2
if ac_fn_c_try_compile "$LINENO"
then :
d26923 1
a26923 1
else $as_nop
d26927 1
a26927 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26930 2
a26931 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
printf "%s\n" "$ntp_cv_struct_snd_size" >&6; }
d26935 1
a26935 1
printf "%s\n" "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
d26940 5
a26944 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
printf %s "checking struct clockinfo for hz... " >&6; }
if test ${ntp_cv_struct_clockinfo_has_hz+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26951 1
a26951 1
main (void)
d26962 1
a26962 2
if ac_fn_c_try_compile "$LINENO"
then :
d26964 1
a26964 1
else $as_nop
d26968 1
a26968 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26971 2
a26972 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
printf "%s\n" "$ntp_cv_struct_clockinfo_has_hz" >&6; }
d26976 1
a26976 1
printf "%s\n" "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
d26980 5
a26984 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
printf %s "checking struct clockinfo for tickadj... " >&6; }
if test ${ntp_cv_struct_clockinfo_has_hz+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26991 1
a26991 1
main (void)
d27002 1
a27002 2
if ac_fn_c_try_compile "$LINENO"
then :
d27004 1
a27004 1
else $as_nop
d27008 1
a27008 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d27011 2
a27012 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
printf "%s\n" "$ntp_cv_struct_clockinfo_has_hz" >&6; }
d27016 1
a27016 1
printf "%s\n" "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
d27040 1
a27040 2
if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes
then :
d27042 3
a27044 1
printf "%s\n" "#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1" >>confdefs.h
d27053 7
a27059 4
ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
if test "x$ac_cv_func_arc4random_buf" = xyes
then :
  printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
d27062 1
d27069 7
a27075 4
ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
if test "x$ac_cv_func_daemon" = xyes
then :
  printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
d27078 1
d27084 1
a27084 2

  for ac_func in finite
d27087 4
a27090 5
if test "x$ac_cv_func_finite" = xyes
then :
  printf "%s\n" "#define HAVE_FINITE 1" >>confdefs.h

else $as_nop
d27092 1
d27096 4
a27099 3
if test "x$ac_cv_func_isfinite" = xyes
then :
  printf "%s\n" "#define HAVE_ISFINITE 1" >>confdefs.h
d27101 1
a27101 1
else $as_nop
d27103 2
a27104 2
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
printf %s "checking for isfinite with <math.h>... " >&6; }
d27114 1
a27114 1
main (void)
d27125 1
a27125 2
if ac_fn_c_try_link "$LINENO"
then :
d27127 1
a27127 1
else $as_nop
d27131 1
a27131 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d27134 2
a27135 2
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d27138 1
a27138 1
		printf "%s\n" "#define HAVE_ISFINITE 1" >>confdefs.h
d27144 1
a27145 1
done
a27147 1

a27149 4
ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
if test "x$ac_cv_func_fnmatch" = xyes
then :
  printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h
d27151 8
a27158 47
fi
ac_fn_c_check_func "$LINENO" "getbootfile" "ac_cv_func_getbootfile"
if test "x$ac_cv_func_getbootfile" = xyes
then :
  printf "%s\n" "#define HAVE_GETBOOTFILE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
if test "x$ac_cv_func_getuid" = xyes
then :
  printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
if test "x$ac_cv_func_getrusage" = xyes
then :
  printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
if test "x$ac_cv_func_nanosleep" = xyes
then :
  printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
if test "x$ac_cv_func_strsignal" = xyes
then :
  printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
if test "x$ac_cv_func_strsignal" = xyes
then :
  printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
if test "x$ac_cv_func_closefrom" = xyes
then :
  printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
if test "x$ac_cv_func_getdtablesize" = xyes
then :
  printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
d27161 1
a27161 1

d27167 7
a27173 4
    ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
if test "x$ac_cv_func_kvm_open" = xyes
then :
  printf "%s\n" "#define HAVE_KVM_OPEN 1" >>confdefs.h
d27176 1
d27185 7
a27191 4
 *) ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
if test "x$ac_cv_func_mkstemp" = xyes
then :
  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
d27194 1
d27198 7
a27204 4
ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
if test "x$ac_cv_func_mktime" = xyes
then :
  printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h
d27207 1
d27230 1
a27230 2

  for ac_func in memlk
d27233 4
a27236 3
if test "x$ac_cv_func_memlk" = xyes
then :
  printf "%s\n" "#define HAVE_MEMLK 1" >>confdefs.h
d27239 1
d27241 7
a27247 5
done
    ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = xyes
then :
  printf "%s\n" "#define HAVE_MLOCKALL 1" >>confdefs.h
d27250 1
d27253 7
a27259 4
 *) ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = xyes
then :
  printf "%s\n" "#define HAVE_MLOCKALL 1" >>confdefs.h
d27262 1
d27266 8
a27273 4
ac_fn_c_check_func "$LINENO" "nice" "ac_cv_func_nice"
if test "x$ac_cv_func_nice" = xyes
then :
  printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h
d27276 1
a27276 82
ac_fn_c_check_func "$LINENO" "plock" "ac_cv_func_plock"
if test "x$ac_cv_func_plock" = xyes
then :
  printf "%s\n" "#define HAVE_PLOCK 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "pututline" "ac_cv_func_pututline"
if test "x$ac_cv_func_pututline" = xyes
then :
  printf "%s\n" "#define HAVE_PUTUTLINE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "pututxline" "ac_cv_func_pututxline"
if test "x$ac_cv_func_pututxline" = xyes
then :
  printf "%s\n" "#define HAVE_PUTUTXLINE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
if test "x$ac_cv_func_readlink" = xyes
then :
  printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "rtprio" "ac_cv_func_rtprio"
if test "x$ac_cv_func_rtprio" = xyes
then :
  printf "%s\n" "#define HAVE_RTPRIO 1" >>confdefs.h

fi


	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a POSIX-2008 compliant realpath()" >&5
printf %s "checking for a POSIX-2008 compliant realpath()... " >&6; }


	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


	if test "$cross_compiling" = yes
then :
  ans="CROSS COMPILE!"

else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <sys/param.h>
			#include <stdlib.h>
			int main() { return (NULL == realpath(".", NULL)); }

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ans="yes"
else $as_nop
  ans="no"
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
	case "$ans" in
	 yes)

printf "%s\n" "#define HAVE_FUNC_POSIX_REALPATH 1" >>confdefs.h

	    ;;
	esac

	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

d27286 7
a27292 4
 *) ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
if test "x$ac_cv_func_sched_setscheduler" = xyes
then :
  printf "%s\n" "#define HAVE_SCHED_SETSCHEDULER 1" >>confdefs.h
d27295 1
d27299 8
a27306 4
ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf"
if test "x$ac_cv_func_setlinebuf" = xyes
then :
  printf "%s\n" "#define HAVE_SETLINEBUF 1" >>confdefs.h
d27309 1
a27309 4
ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
if test "x$ac_cv_func_setpgid" = xyes
then :
  printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
d27311 8
a27318 54
fi
ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
if test "x$ac_cv_func_setpriority" = xyes
then :
  printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
if test "x$ac_cv_func_setsid" = xyes
then :
  printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
if test "x$ac_cv_func_setvbuf" = xyes
then :
  printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
if test "x$ac_cv_func_strdup" = xyes
then :
  printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
if test "x$ac_cv_func_strnlen" = xyes
then :
  printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
if test "x$ac_cv_func_memchr" = xyes
then :
  printf "%s\n" "#define HAVE_MEMCHR 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
if test "x$ac_cv_func_strerror" = xyes
then :
  printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
if test "x$ac_cv_func_setrlimit" = xyes
then :
  printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
if test "x$ac_cv_func_strchr" = xyes
then :
  printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
d27321 1
d27338 7
a27344 4
    ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
if test "x$ac_cv_func_timer_create" = xyes
then :
  printf "%s\n" "#define HAVE_TIMER_CREATE 1" >>confdefs.h
d27347 1
d27354 5
a27358 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
printf %s "checking for RLIMIT_MEMLOCK... " >&6; }
if test ${ntp_cv_rlimit_memlock+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d27373 1
a27373 1
main (void)
d27383 1
a27383 2
if ac_fn_c_try_compile "$LINENO"
then :
d27385 1
a27385 1
else $as_nop
d27389 1
a27389 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d27392 2
a27393 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
printf "%s\n" "$ntp_cv_rlimit_memlock" >&6; }
d27405 5
a27409 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
printf %s "checking for RLIMIT_STACK... " >&6; }
if test ${ntp_cv_rlimit_stack+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d27424 1
a27424 1
main (void)
d27434 1
a27434 2
if ac_fn_c_try_compile "$LINENO"
then :
d27436 1
a27436 1
else $as_nop
d27440 1
a27440 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d27443 2
a27444 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
printf "%s\n" "$ntp_cv_rlimit_stack" >&6; }
d27452 2
a27453 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
printf %s "checking for the default number of 4k stack pages... " >&6; }
d27456 1
a27456 2
if test ${with_stack_limit+y}
then :
d27458 1
a27458 1
else $as_nop
d27478 2
a27479 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d27481 3
a27483 1
printf "%s\n" "#define DFLT_RLIMIT_STACK $ans" >>confdefs.h
d27487 2
a27488 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
printf %s "checking for the default number of megabytes to MEMLOCK... " >&6; }
d27491 1
a27491 2
if test ${with_memlock+y}
then :
d27493 1
a27493 1
else $as_nop
d27506 2
a27507 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d27509 3
a27511 1
printf "%s\n" "#define DFLT_RLIMIT_MEMLOCK $ans" >>confdefs.h
d27517 7
a27523 4
ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
if test "x$ac_cv_func__exit" = xyes
then :
  printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
d27526 1
d27538 3
a27540 1
printf "%s\n" "#define WORKER_CHILD_EXIT $ntp_worker_child_exit" >>confdefs.h
d27543 8
a27550 22
ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
if test "x$ac_cv_func_umask" = xyes
then :
  printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
if test "x$ac_cv_func_uname" = xyes
then :
  printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "updwtmp" "ac_cv_func_updwtmp"
if test "x$ac_cv_func_updwtmp" = xyes
then :
  printf "%s\n" "#define HAVE_UPDWTMP 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "updwtmpx" "ac_cv_func_updwtmpx"
if test "x$ac_cv_func_updwtmpx" = xyes
then :
  printf "%s\n" "#define HAVE_UPDWTMPX 1" >>confdefs.h
d27553 1
d27561 5
a27565 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
printf %s "checking if we need extra help to define struct iovec... " >&6; }
if test ${ntp_cv_struct_iovec_help+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d27583 1
a27583 1
main (void)
d27602 1
a27602 2
if ac_fn_c_try_compile "$LINENO"
then :
d27605 1
a27605 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d27615 2
a27616 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
printf "%s\n" "$ntp_cv_struct_iovec_help" >&6; }
d27620 1
a27620 1
printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
d27625 5
a27629 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
printf %s "checking number of arguments taken by setpgrp()... " >&6; }
if test ${ntp_cv_func_setpgrp_nargs+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d27641 1
a27641 1
main (void)
d27651 1
a27651 2
if ac_fn_c_try_compile "$LINENO"
then :
d27653 1
a27653 1
else $as_nop
d27657 1
a27657 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d27660 2
a27661 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
printf "%s\n" "$ntp_cv_func_setpgrp_nargs" >&6; }
d27665 1
a27665 1
printf "%s\n" "#define HAVE_SETPGRP_0 1" >>confdefs.h
d27669 5
a27673 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
printf %s "checking if we need to declare 'errno'... " >&6; }
if test ${ntp_cv_decl_errno+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d27682 1
a27682 1
main (void)
d27692 1
a27692 2
if ac_fn_c_try_compile "$LINENO"
then :
d27694 1
a27694 1
else $as_nop
d27698 1
a27698 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d27701 2
a27702 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
printf "%s\n" "$ntp_cv_decl_errno" >&6; }
d27706 1
a27706 1
printf "%s\n" "#define DECL_ERRNO 1" >>confdefs.h
d27710 5
a27714 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
printf %s "checking if we may declare 'h_errno'... " >&6; }
if test ${ntp_cv_decl_h_errno+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d27733 1
a27733 1
main (void)
d27743 1
a27743 2
if ac_fn_c_try_compile "$LINENO"
then :
d27745 1
a27745 1
else $as_nop
d27749 1
a27749 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d27752 2
a27753 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
printf "%s\n" "$ntp_cv_decl_h_errno" >&6; }
d27757 1
a27757 1
printf "%s\n" "#define DECL_H_ERRNO 1" >>confdefs.h
d27761 5
a27765 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
printf %s "checking if declaring 'syscall()' is ok... " >&6; }
if test ${ntp_cv_decl_syscall+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d27777 1
a27777 1
main (void)
d27786 1
d27788 1
a27788 4
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_decl_syscall=yes
else $as_nop
d27792 1
a27792 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d27795 2
a27796 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
printf "%s\n" "$ntp_cv_decl_syscall" >&6; }
d27800 1
a27800 1
printf "%s\n" "#define DECL_SYSCALL 1" >>confdefs.h
d27807 1
a27807 1
printf "%s\n" "#define DECL_HSTRERROR_0 1" >>confdefs.h
d27812 1
a27812 1
printf "%s\n" "#define DECL_ADJTIME_0 1" >>confdefs.h
d27815 1
a27815 1
printf "%s\n" "#define DECL_INET_NTOA_0 1" >>confdefs.h
d27818 1
a27818 1
printf "%s\n" "#define DECL_MKTEMP_0 1" >>confdefs.h
d27821 1
a27821 1
printf "%s\n" "#define DECL_SELECT_0 1" >>confdefs.h
d27824 1
a27824 1
printf "%s\n" "#define DECL_SETITIMER_0 1" >>confdefs.h
d27827 1
a27827 1
printf "%s\n" "#define DECL_SYSLOG_0 1" >>confdefs.h
d27830 1
a27830 1
printf "%s\n" "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d27835 1
a27835 1
printf "%s\n" "#define DECL_PLOCK_0 1" >>confdefs.h
d27838 1
a27838 1
printf "%s\n" "#define DECL_STIME_1 1" >>confdefs.h
d27843 1
a27843 1
printf "%s\n" "#define DECL_ADJTIME_0 1" >>confdefs.h
d27848 1
a27848 1
printf "%s\n" "#define DECL_ADJTIME_0 1" >>confdefs.h
d27851 1
a27851 1
printf "%s\n" "#define DECL_BZERO_0 1" >>confdefs.h
d27854 1
a27854 1
printf "%s\n" "#define DECL_IOCTL_0 1" >>confdefs.h
d27857 1
a27857 1
printf "%s\n" "#define DECL_IPC_0 1" >>confdefs.h
d27860 1
a27860 1
printf "%s\n" "#define DECL_MEMMOVE_0 1" >>confdefs.h
d27863 1
a27863 1
printf "%s\n" "#define DECL_MKTEMP_0 1" >>confdefs.h
d27866 1
a27866 1
printf "%s\n" "#define DECL_RENAME_0 1" >>confdefs.h
d27869 1
a27869 1
printf "%s\n" "#define DECL_SELECT_0 1" >>confdefs.h
d27872 1
a27872 1
printf "%s\n" "#define DECL_SETITIMER_0 1" >>confdefs.h
d27875 1
a27875 1
printf "%s\n" "#define DECL_SETPRIORITY_0 1" >>confdefs.h
d27878 1
a27878 1
printf "%s\n" "#define DECL_STDIO_0 1" >>confdefs.h
d27881 1
a27881 1
printf "%s\n" "#define DECL_STRTOL_0 1" >>confdefs.h
d27884 1
a27884 1
printf "%s\n" "#define DECL_SYSLOG_0 1" >>confdefs.h
d27887 1
a27887 1
printf "%s\n" "#define DECL_TIME_0 1" >>confdefs.h
d27890 1
a27890 1
printf "%s\n" "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d27893 1
a27893 1
printf "%s\n" "#define DECL_TOLOWER_0 1" >>confdefs.h
d27898 1
a27898 1
printf "%s\n" "#define DECL_MKSTEMP_0 1" >>confdefs.h
d27901 1
a27901 1
printf "%s\n" "#define DECL_SETPRIORITY_1 1" >>confdefs.h
d27906 1
a27906 1
printf "%s\n" "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d27913 1
a27913 1
printf "%s\n" "#define DECL_ADJTIME_0 1" >>confdefs.h
d27916 1
a27916 1
printf "%s\n" "#define DECL_BCOPY_0 1" >>confdefs.h
d27919 1
a27919 1
printf "%s\n" "#define DECL_BZERO_0 1" >>confdefs.h
d27922 1
a27922 1
printf "%s\n" "#define DECL_IOCTL_0 1" >>confdefs.h
d27925 1
a27925 1
printf "%s\n" "#define DECL_IPC_0 1" >>confdefs.h
d27928 1
a27928 1
printf "%s\n" "#define DECL_MEMMOVE_0 1" >>confdefs.h
d27931 1
a27931 1
printf "%s\n" "#define DECL_MKTEMP_0 1" >>confdefs.h
d27934 1
a27934 1
printf "%s\n" "#define DECL_MKSTEMP_0 1" >>confdefs.h
d27937 1
a27937 1
printf "%s\n" "#define DECL_RENAME_0 1" >>confdefs.h
d27940 1
a27940 1
printf "%s\n" "#define DECL_SELECT_0 1" >>confdefs.h
d27943 1
a27943 1
printf "%s\n" "#define DECL_SETITIMER_0 1" >>confdefs.h
d27946 1
a27946 1
printf "%s\n" "#define DECL_SETPRIORITY_0 1" >>confdefs.h
d27949 1
a27949 1
printf "%s\n" "#define DECL_SIGVEC_0 1" >>confdefs.h
d27954 1
a27954 1
printf "%s\n" "#define DECL_STDIO_0 1" >>confdefs.h
d27959 1
a27959 1
printf "%s\n" "#define DECL_STRTOL_0 1" >>confdefs.h
d27962 1
a27962 1
printf "%s\n" "#define DECL_SYSLOG_0 1" >>confdefs.h
d27965 1
a27965 1
printf "%s\n" "#define DECL_TIME_0 1" >>confdefs.h
d27968 1
a27968 1
printf "%s\n" "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d27971 1
a27971 1
printf "%s\n" "#define DECL_TOLOWER_0 1" >>confdefs.h
d27974 1
a27974 1
printf "%s\n" "#define DECL_TOUPPER_0 1" >>confdefs.h
d27977 1
a27977 1
printf "%s\n" "#define DECL_STRERROR_0 1" >>confdefs.h
d27982 1
a27982 1
printf "%s\n" "#define DECL_ADJTIME_0 1" >>confdefs.h
d27985 1
a27985 1
printf "%s\n" "#define DECL_BZERO_0 1" >>confdefs.h
d27988 1
a27988 1
printf "%s\n" "#define DECL_CFSETISPEED_0 1" >>confdefs.h
d27991 1
a27991 1
printf "%s\n" "#define DECL_IOCTL_0 1" >>confdefs.h
d27994 1
a27994 1
printf "%s\n" "#define DECL_IPC_0 1" >>confdefs.h
d27997 1
a27997 1
printf "%s\n" "#define DECL_MKTEMP_0 1" >>confdefs.h
d28000 1
a28000 1
printf "%s\n" "#define DECL_NLIST_0 1" >>confdefs.h
d28003 1
a28003 1
printf "%s\n" "#define DECL_PLOCK_0 1" >>confdefs.h
d28006 1
a28006 1
printf "%s\n" "#define DECL_SELECT_0 1" >>confdefs.h
d28009 1
a28009 1
printf "%s\n" "#define DECL_SETITIMER_0 1" >>confdefs.h
d28012 1
a28012 1
printf "%s\n" "#define DECL_SETPRIORITY_0 1" >>confdefs.h
d28015 1
a28015 1
printf "%s\n" "#define DECL_STIME_0 1" >>confdefs.h
d28018 1
a28018 1
printf "%s\n" "#define DECL_SYSLOG_0 1" >>confdefs.h
d28021 1
a28021 1
printf "%s\n" "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d28029 1
a28029 1
printf "%s\n" "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
d28037 1
a28037 1
printf "%s\n" "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
d28041 5
a28045 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
printf %s "checking if we will open the broadcast socket... " >&6; }
if test ${ntp_cv_var_open_bcast_socket+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28056 2
a28057 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
printf "%s\n" "$ntp_cv_var_open_bcast_socket" >&6; }
d28061 1
a28061 1
printf "%s\n" "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
d28068 1
a28068 1
printf "%s\n" "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
d28072 5
a28076 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
printf %s "checking if process groups are set with -pid... " >&6; }
if test ${ntp_cv_arg_setpgrp_negpid+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28102 2
a28103 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
printf "%s\n" "$ntp_cv_arg_setpgrp_negpid" >&6; }
d28107 1
a28107 1
printf "%s\n" "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
d28111 5
a28115 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
printf %s "checking if we need a ctty for F_SETOWN... " >&6; }
if test ${ntp_cv_func_ctty_for_f_setown+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28151 2
a28152 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
printf "%s\n" "$ntp_cv_func_ctty_for_f_setown" >&6; }
d28156 1
a28156 1
printf "%s\n" "#define USE_FSETOWNCTTY 1" >>confdefs.h
d28160 5
a28164 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
printf %s "checking if the OS clears cached routes when more specifics become available... " >&6; }
if test ${ntp_cv_os_routeupdates+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28178 2
a28179 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
printf "%s\n" "$ntp_cv_os_routeupdates" >&6; }
d28183 1
a28183 1
printf "%s\n" "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
d28187 5
a28191 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
printf %s "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
if test ${ntp_cv_os_wildcardreuse+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28204 2
a28205 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
printf "%s\n" "$ntp_cv_os_wildcardreuse" >&6; }
d28209 1
a28209 1
printf "%s\n" "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
d28216 1
a28216 1
printf "%s\n" "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
d28220 5
a28224 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
printf %s "checking for a minimum recommended value of tickadj... " >&6; }
if test ${ntp_cv_var_min_rec_tickadj+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28236 2
a28237 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
printf "%s\n" "$ntp_cv_var_min_rec_tickadj" >&6; }
d28243 3
a28245 1
printf "%s\n" "#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj" >>confdefs.h
d28249 5
a28253 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
printf %s "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
if test ${ntp_cv_no_parenb_ignpar+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28276 2
a28277 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
printf "%s\n" "$ntp_cv_no_parenb_ignpar" >&6; }
d28281 1
a28281 1
printf "%s\n" "#define NO_PARENB_IGNPAR 1" >>confdefs.h
d28285 2
a28286 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
printf %s "checking if we're including processing time debugging code... " >&6; }
d28288 1
a28288 2
if test ${enable_debug_timing+y}
then :
d28290 1
a28290 1
else $as_nop
d28298 1
a28298 1
printf "%s\n" "#define DEBUG_TIMING 1" >>confdefs.h
d28301 2
a28302 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28304 2
a28305 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
printf %s "checking for a the number of minutes in a DST adjustment... " >&6; }
d28307 1
a28307 2
if test ${enable_dst_minutes+y}
then :
d28309 1
a28309 1
else $as_nop
d28315 3
a28317 1
printf "%s\n" "#define DSTMINUTES $ans" >>confdefs.h
d28319 2
a28320 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d28322 2
a28323 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
printf %s "checking if ntpd will retry permanent DNS failures... " >&6; }
d28325 1
a28325 2
if test ${enable_ignore_dns_errors+y}
then :
d28327 1
a28327 1
else $as_nop
d28335 1
a28335 1
printf "%s\n" "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
d28338 2
a28339 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d28341 5
a28345 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
printf %s "checking availability of ntp_{adj,get}time()... " >&6; }
if test ${ntp_cv_var_ntp_syscalls+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28365 1
a28365 2
if ac_fn_c_try_cpp "$LINENO"
then :
d28375 2
a28376 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
printf "%s\n" "$ntp_cv_var_ntp_syscalls" >&6; }
d28380 1
a28380 1
printf "%s\n" "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
d28385 1
a28385 1
printf "%s\n" "#define NTP_SYSCALLS_STD 1" >>confdefs.h
d28390 5
a28394 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
printf %s "checking if sys/timex.h has STA_FLL... " >&6; }
if test ${ntp_cv_var_sta_fll+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28404 1
a28404 2
if ac_fn_c_try_cpp "$LINENO"
then :
d28406 1
a28406 1
else $as_nop
d28413 2
a28414 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
printf "%s\n" "$ntp_cv_var_sta_fll" >&6; }
d28416 5
a28420 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
printf %s "checking if we have kernel PLL support... " >&6; }
if test ${ntp_cv_var_kernel_pll+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28431 2
a28432 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
printf "%s\n" "$ntp_cv_var_kernel_pll" >&6; }
d28436 1
a28436 1
printf "%s\n" "#define KERNEL_PLL 1" >>confdefs.h
d28440 5
a28444 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
printf %s "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
if test ${ntp_cv_size_returned_in_buffer+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28462 2
a28463 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
printf "%s\n" "$ntp_cv_size_returned_in_buffer" >&6; }
d28467 1
a28467 1
printf "%s\n" "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
d28472 2
a28473 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
printf %s "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
d28485 1
a28485 2
if ac_fn_c_try_cpp "$LINENO"
then :
d28487 1
a28487 1
else $as_nop
d28500 1
a28500 1
printf "%s\n" "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
d28503 2
a28504 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28507 2
a28508 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
printf %s "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
d28520 1
a28520 2
if ac_fn_c_try_cpp "$LINENO"
then :
d28522 1
a28522 1
else $as_nop
d28535 1
a28535 1
printf "%s\n" "#define HAVE_TIOCSPPS 1" >>confdefs.h
d28538 2
a28539 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28542 2
a28543 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
printf %s "checking for TTY PPS ioctl CIOGETEV... " >&6; }
d28555 1
a28555 2
if ac_fn_c_try_cpp "$LINENO"
then :
d28557 1
a28557 1
else $as_nop
d28570 1
a28570 1
printf "%s\n" "#define HAVE_CIOGETEV 1" >>confdefs.h
d28573 2
a28574 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28591 1
a28591 1
printf "%s\n" "#define HAVE_PPSAPI 1" >>confdefs.h
d28603 2
a28604 3
ac_fn_c_check_header_compile "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
if test "x$ac_cv_header_linux_serial_h" = xyes
then :
d28608 1
d28611 2
a28612 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
printf %s "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
d28638 1
a28638 2
if ac_fn_c_try_cpp "$LINENO"
then :
d28640 1
a28640 1
else $as_nop
d28645 2
a28646 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28655 1
a28655 1
printf "%s\n" "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
d28660 2
a28661 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
printf %s "checking SHMEM_STATUS support... " >&6; }
d28673 1
a28673 1
printf "%s\n" "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
d28676 2
a28677 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28682 2
a28683 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
printf %s "checking Datum/Bancomm bc635/VME interface... " >&6; }
d28685 1
a28685 2
if test ${enable_BANCOMM+y}
then :
d28687 1
a28687 1
else $as_nop
d28696 1
a28696 1
printf "%s\n" "#define CLOCK_BANC 1" >>confdefs.h
d28698 5
a28702 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing bcStartPci" >&5
printf %s "checking for library containing bcStartPci... " >&6; }
if test ${ac_cv_search_bcStartPci+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28710 3
d28715 1
a28715 1
main (void)
d28722 1
a28722 2
for ac_lib in '' bcsdk
do
d28729 1
a28729 2
  if ac_fn_c_try_link "$LINENO"
then :
d28732 1
a28732 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d28734 1
a28734 2
  if test ${ac_cv_search_bcStartPci+y}
then :
d28738 1
a28738 2
if test ${ac_cv_search_bcStartPci+y}
then :
d28740 1
a28740 1
else $as_nop
d28746 2
a28747 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bcStartPci" >&5
printf "%s\n" "$ac_cv_search_bcStartPci" >&6; }
d28749 1
a28749 2
if test "$ac_res" != no
then :
d28756 2
a28757 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28760 2
a28761 2
 yes*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
d28765 2
a28766 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
printf %s "checking TrueTime GPS receiver/VME interface... " >&6; }
d28768 1
a28768 2
if test ${enable_GPSVME+y}
then :
d28770 1
a28770 1
else $as_nop
d28779 1
a28779 1
printf "%s\n" "#define CLOCK_GPSVME 1" >>confdefs.h
d28783 2
a28784 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28787 2
a28788 2
 yes*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
d28791 2
a28792 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
printf %s "checking for PCL720 clock support... " >&6; }
d28796 1
a28796 1
printf "%s\n" "#define CLOCK_PPS720 1" >>confdefs.h
d28804 2
a28805 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d28807 2
a28808 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
printf %s "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
d28810 1
a28810 2
if test ${enable_all_clocks+y}
then :
d28812 1
a28812 1
else $as_nop
d28817 2
a28818 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
printf "%s\n" "$ntp_eac" >&6; }
d28821 2
a28822 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
printf %s "checking if we have support for PARSE clocks... " >&6; }
d28830 2
a28831 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
printf "%s\n" "$ntp_canparse" >&6; }
d28833 2
a28834 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
printf %s "checking if we have support for audio clocks... " >&6; }
d28839 1
a28839 1
printf "%s\n" "#define HAVE_AUDIO /**/" >>confdefs.h
d28844 2
a28845 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
printf "%s\n" "$ntp_canaudio" >&6; }
d28847 2
a28848 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
printf %s "checking if we have support for the SHM refclock interface... " >&6; }
d28855 2
a28856 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
printf "%s\n" "$ntp_canshm" >&6; }
d28859 5
a28863 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
printf %s "checking for termios modem control... " >&6; }
if test ${ntp_cv_modem_control+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28878 1
a28878 1
main (void)
d28890 1
a28890 2
if ac_fn_c_try_compile "$LINENO"
then :
d28892 1
a28892 1
else $as_nop
d28896 1
a28896 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d28899 2
a28900 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
printf "%s\n" "$ntp_cv_modem_control" >&6; }
d28911 2
a28912 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
printf %s "checking ACTS modem service... " >&6; }
d28914 1
a28914 2
if test ${enable_ACTS+y}
then :
d28916 1
a28916 1
else $as_nop
d28925 1
a28925 1
printf "%s\n" "#define CLOCK_ACTS 1" >>confdefs.h
d28929 2
a28930 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28932 2
a28933 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
printf %s "checking Arbiter 1088A/B GPS receiver... " >&6; }
d28935 1
a28935 2
if test ${enable_ARBITER+y}
then :
d28937 1
a28937 1
else $as_nop
d28946 1
a28946 1
printf "%s\n" "#define CLOCK_ARBITER 1" >>confdefs.h
d28950 2
a28951 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28953 2
a28954 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
printf %s "checking Arcron MSF receiver... " >&6; }
d28956 1
a28956 2
if test ${enable_ARCRON_MSF+y}
then :
d28958 1
a28958 1
else $as_nop
d28967 1
a28967 1
printf "%s\n" "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
d28971 2
a28972 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28974 2
a28975 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
printf %s "checking Austron 2200A/2201A GPS receiver... " >&6; }
d28977 1
a28977 2
if test ${enable_AS2201+y}
then :
d28979 1
a28979 1
else $as_nop
d28988 1
a28988 1
printf "%s\n" "#define CLOCK_AS2201 1" >>confdefs.h
d28992 2
a28993 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28995 2
a28996 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
printf %s "checking ATOM PPS interface... " >&6; }
d28998 1
a28998 2
if test ${enable_ATOM+y}
then :
d29000 1
a29000 1
else $as_nop
d29012 1
a29012 1
printf "%s\n" "#define CLOCK_ATOM 1" >>confdefs.h
d29016 2
a29017 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29019 2
a29020 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
printf %s "checking Chrono-log K-series WWVB receiver... " >&6; }
d29022 1
a29022 2
if test ${enable_CHRONOLOG+y}
then :
d29024 1
a29024 1
else $as_nop
d29033 1
a29033 1
printf "%s\n" "#define CLOCK_CHRONOLOG 1" >>confdefs.h
d29037 2
a29038 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29040 2
a29041 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
printf %s "checking CHU modem/decoder... " >&6; }
d29043 1
a29043 2
if test ${enable_CHU+y}
then :
d29045 1
a29045 1
else $as_nop
d29054 1
a29054 1
printf "%s\n" "#define CLOCK_CHU 1" >>confdefs.h
d29058 2
a29059 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29062 2
a29063 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
printf %s "checking CHU audio/decoder... " >&6; }
d29065 1
a29065 2
if test ${enable_AUDIO_CHU+y}
then :
d29067 1
a29067 1
else $as_nop
d29077 2
a29078 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29081 2
a29082 2
 yes*no*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
printf "%s\n" "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
d29086 2
a29087 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
printf %s "checking Datum Programmable Time System... " >&6; }
d29089 1
a29089 2
if test ${enable_DATUM+y}
then :
d29091 1
a29091 1
else $as_nop
d29108 1
a29108 1
printf "%s\n" "#define CLOCK_DATUM 1" >>confdefs.h
d29112 2
a29113 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29115 2
a29116 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
printf %s "checking Dumb generic hh:mm:ss local clock... " >&6; }
d29118 1
a29118 2
if test ${enable_DUMBCLOCK+y}
then :
d29120 1
a29120 1
else $as_nop
d29129 1
a29129 1
printf "%s\n" "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
d29133 2
a29134 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29136 2
a29137 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
printf %s "checking Forum Graphic GPS... " >&6; }
d29139 1
a29139 2
if test ${enable_FG+y}
then :
d29141 1
a29141 1
else $as_nop
d29150 1
a29150 1
printf "%s\n" "#define CLOCK_FG 1" >>confdefs.h
d29154 2
a29155 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29158 2
a29159 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
printf %s "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
d29161 1
a29161 2
if test ${enable_HEATH+y}
then :
d29163 1
a29163 1
else $as_nop
d29172 1
a29172 1
printf "%s\n" "#define CLOCK_HEATH 1" >>confdefs.h
d29176 2
a29177 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29179 2
a29180 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
printf %s "checking for hopf serial clock device... " >&6; }
d29182 1
a29182 2
if test ${enable_HOPFSERIAL+y}
then :
d29184 1
a29184 1
else $as_nop
d29193 1
a29193 1
printf "%s\n" "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
d29197 2
a29198 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29200 2
a29201 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
printf %s "checking for hopf PCI clock 6039... " >&6; }
d29203 1
a29203 2
if test ${enable_HOPFPCI+y}
then :
d29205 1
a29205 1
else $as_nop
d29214 1
a29214 1
printf "%s\n" "#define CLOCK_HOPF_PCI 1" >>confdefs.h
d29218 2
a29219 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29221 2
a29222 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
printf %s "checking HP 58503A GPS receiver... " >&6; }
d29224 1
a29224 2
if test ${enable_HPGPS+y}
then :
d29226 1
a29226 1
else $as_nop
d29235 1
a29235 1
printf "%s\n" "#define CLOCK_HPGPS 1" >>confdefs.h
d29239 2
a29240 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29242 2
a29243 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
printf %s "checking IRIG audio decoder... " >&6; }
d29245 1
a29245 2
if test ${enable_IRIG+y}
then :
d29247 1
a29247 1
else $as_nop
d29261 1
a29261 1
printf "%s\n" "#define CLOCK_IRIG 1" >>confdefs.h
d29265 2
a29266 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29268 2
a29269 2
 yesno) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d29272 2
a29273 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
printf %s "checking for JJY receiver... " >&6; }
d29275 1
a29275 2
if test ${enable_JJY+y}
then :
d29277 200
a29476 1
else $as_nop
d29481 92
d29577 1
a29577 1
printf "%s\n" "#define CLOCK_JJY 1" >>confdefs.h
d29581 17
a29597 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
a29598 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
printf %s "checking Rockwell Jupiter GPS receiver... " >&6; }
# Check whether --enable-JUPITER was given.
if test ${enable_JUPITER+y}
then :
  enableval=$enable_JUPITER; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
a29600 3
case "$ntp_jupiter_ok" in
 no) ntp_ok=no ;;
esac
d29605 1
a29605 1
printf "%s\n" "#define CLOCK_JUPITER 1" >>confdefs.h
d29609 2
a29610 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29612 6
a29617 7
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
printf %s "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
# Check whether --enable-LEITCH was given.
if test ${enable_LEITCH+y}
then :
  enableval=$enable_LEITCH; ntp_ok=$enableval
else $as_nop
d29626 1
a29626 1
printf "%s\n" "#define CLOCK_LEITCH 1" >>confdefs.h
d29630 18
a29647 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
a29648 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
printf %s "checking local clock reference... " >&6; }
# Check whether --enable-LOCAL-CLOCK was given.
if test ${enable_LOCAL_CLOCK+y}
then :
  enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
d29656 1
a29656 1
printf "%s\n" "#define CLOCK_LOCAL 1" >>confdefs.h
d29660 6
a29665 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29667 7
d29675 3
a29677 12
# Not Ultrix
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
printf %s "checking Magnavox MX4200 GPS receiver... " >&6; }
# Check whether --enable-MX4200 was given.
if test ${enable_MX4200+y}
then :
  enableval=$enable_MX4200; ntp_ok=$enableval
else $as_nop

	case "$ac_cv_var_ppsclock" in
	 yes)
	    ntp_ok=$ntp_eac
d29680 1
a29680 1
	    ntp_ok=no
d29691 1
a29691 1
printf "%s\n" "#define CLOCK_MX4200 1" >>confdefs.h
d29695 2
a29696 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29698 2
a29699 2
 yes*-*-ultrix*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d29702 7
a29708 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
printf %s "checking for NeoClock4X receiver... " >&6; }
# Check whether --enable-NEOCLOCK4X was given.
if test ${enable_NEOCLOCK4X+y}
then :
  enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
d29716 1
a29716 1
printf "%s\n" "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
d29720 2
a29721 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29723 6
a29728 7
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
printf %s "checking NMEA GPS receiver... " >&6; }
# Check whether --enable-NMEA was given.
if test ${enable_NMEA+y}
then :
  enableval=$enable_NMEA; ntp_ok=$enableval
else $as_nop
d29737 1
a29737 1
printf "%s\n" "#define CLOCK_NMEA 1" >>confdefs.h
d29741 2
a29742 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29744 6
a29749 4
ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
if test "x$ac_cv_func_strtoll" = xyes
then :
  printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
d29751 7
a29757 1
fi
a29758 11
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
printf %s "checking for GPSD JSON receiver... " >&6; }
# Check whether --enable-GPSD was given.
if test ${enable_GPSD+y}
then :
  enableval=$enable_GPSD; ntp_ok=$enableval
else $as_nop
  case "$ac_cv_func_strtoll" in
     yes) ntp_ok=$ntp_eac ;;
     *)   ntp_ok="no" ;;
    esac
d29766 1
a29766 1
printf "%s\n" "#define CLOCK_GPSDJSON 1" >>confdefs.h
d29770 14
a29783 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
a29784 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
printf %s "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
# Check whether --enable-ONCORE was given.
if test ${enable_ONCORE+y}
then :
  enableval=$enable_ONCORE; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
a29787 3
case "$ntp_oncore_ok" in
 no) ntp_ok=no ;;
esac
d29792 1
a29792 1
printf "%s\n" "#define CLOCK_ONCORE 1" >>confdefs.h
d29796 6
a29801 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29803 7
a29809 9
# Requires modem control
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
printf %s "checking for Palisade clock... " >&6; }
# Check whether --enable-PALISADE was given.
if test ${enable_PALISADE+y}
then :
  enableval=$enable_PALISADE; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_enable_all_modem_control_clocks
d29817 1
a29817 1
printf "%s\n" "#define CLOCK_PALISADE 1" >>confdefs.h
d29821 16
a29836 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
a29837 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
printf %s "checking Conrad parallel port radio clock... " >&6; }
# Check whether --enable-PCF was given.
if test ${enable_PCF+y}
then :
  enableval=$enable_PCF; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
d29841 2
a29842 5
case "$ntp_ok" in
 yes)
    ntp_refclock=yes

printf "%s\n" "#define CLOCK_PCF 1" >>confdefs.h
d29844 6
a29851 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29853 11
a29863 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
printf %s "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
# Check whether --enable-PST was given.
if test ${enable_PST+y}
then :
  enableval=$enable_PST; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
d29869 1
d29872 1
a29872 1
printf "%s\n" "#define CLOCK_PST 1" >>confdefs.h
d29876 6
a29881 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29883 7
a29889 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
printf %s "checking RIPENCC specific Trimble driver... " >&6; }
# Check whether --enable-RIPENCC was given.
if test ${enable_RIPENCC+y}
then :
  enableval=$enable_RIPENCC; ntp_ok=$enableval
else $as_nop
  ntp_ok=no
a29892 4
# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
case "$ntp_ripe_ncc_ok" in
 no) ntp_ok=no ;;
esac
d29895 1
d29898 1
a29898 1
printf "%s\n" "#define CLOCK_RIPENCC /**/" >>confdefs.h
d29902 6
a29907 17
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }

# Danny Meyer says SHM compiles (with a few warnings) under Win32.
# For *IX, we need sys/ipc.h and sys/shm.h.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
printf %s "checking for SHM clock attached thru shared memory... " >&6; }
# Check whether --enable-SHM was given.
if test ${enable_SHM+y}
then :
  enableval=$enable_SHM; ntp_ok=$enableval
else $as_nop

	case "$ntp_eac$ntp_canshm" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac
d29909 7
d29921 1
d29924 1
a29924 1
printf "%s\n" "#define CLOCK_SHM 1" >>confdefs.h
d29928 6
a29933 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29935 7
a29941 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
printf %s "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
# Check whether --enable-SPECTRACOM was given.
if test ${enable_SPECTRACOM+y}
then :
  enableval=$enable_SPECTRACOM; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
d29947 1
d29950 1
a29950 1
printf "%s\n" "#define CLOCK_SPECTRACOM 1" >>confdefs.h
d29954 6
a29959 19
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
printf %s "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
# Check whether --enable-TPRO was given.
if test ${enable_TPRO+y}
then :
  enableval=$enable_TPRO; ntp_ok=$enableval
else $as_nop

	case "$ac_cv_header_sys_tpro_h" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	    ;;
	esac
d29961 7
d29973 2
d29976 1
d29978 1
a29978 1
printf "%s\n" "#define CLOCK_TPRO 1" >>confdefs.h
d29982 5
a29986 5
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ac_cv_header_sys_tpro" in
 yesno) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d29989 7
a29995 8
# Not on a vax-dec-bsd
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
printf %s "checking Kinemetrics/TrueTime receivers... " >&6; }
# Check whether --enable-TRUETIME was given.
if test ${enable_TRUETIME+y}
then :
  enableval=$enable_TRUETIME; ntp_ok=$enableval
else $as_nop
d29997 7
a30003 8
	case "$host" in
	 vax-dec-bsd)
	    ntp_ok=no
	    ;;
	 *)
	    ntp_ok=$ntp_eac
	    ;;
	esac
d30007 4
d30012 3
a30014 13
case "$ntp_ok" in
 yes)
    ntp_refclock=yes

printf "%s\n" "#define CLOCK_TRUETIME 1" >>confdefs.h

    ;;
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yesvax-dec-bsd) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d30017 7
a30023 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
printf %s "checking TrueTime 560 IRIG-B decoder... " >&6; }
# Check whether --enable-TT560 was given.
if test ${enable_TT560+y}
then :
  enableval=$enable_TT560; ntp_ok=$enableval
else $as_nop
  ntp_ok=no
d30029 1
d30032 1
a30032 1
printf "%s\n" "#define CLOCK_TT560 /**/" >>confdefs.h
d30036 6
a30041 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d30043 7
a30049 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
printf %s "checking Ultralink M320 WWVB receiver... " >&6; }
# Check whether --enable-ULINK was given.
if test ${enable_ULINK+y}
then :
  enableval=$enable_ULINK; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
d30055 1
d30058 1
a30058 1
printf "%s\n" "#define CLOCK_ULINK 1" >>confdefs.h
d30062 6
a30067 18
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
printf %s "checking Spectracom TSYNC PCI timing board... " >&6; }
# Check whether --enable-TSYNCPCI was given.
if test ${enable_TSYNCPCI+y}
then :
  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
else $as_nop

	case "$host" in
	 *-*-*linux*)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	esac
d30069 7
d30081 1
d30084 1
a30084 1
printf "%s\n" "#define CLOCK_TSYNCPCI 1" >>confdefs.h
d30088 6
a30093 15
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
printf %s "checking WWV receiver... " >&6; }
# Check whether --enable-WWV was given.
if test ${enable_WWV+y}
then :
  enableval=$enable_WWV; ntp_ok=$enableval
else $as_nop

	case "$ntp_eac$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac
d30095 7
d30107 1
d30110 1
a30110 1
printf "%s\n" "#define CLOCK_WWV 1" >>confdefs.h
d30114 5
a30118 5
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canaudio" in
 yesno) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d30121 7
a30127 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
printf %s "checking for Zyfer receiver... " >&6; }
# Check whether --enable-ZYFER was given.
if test ${enable_ZYFER+y}
then :
  enableval=$enable_ZYFER; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
d30133 1
d30136 1
a30136 1
printf "%s\n" "#define CLOCK_ZYFER 1" >>confdefs.h
d30140 5
a30144 31
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
printf %s "checking for default inclusion of all suitable PARSE clocks... " >&6; }
# Check whether --enable-parse-clocks was given.
if test ${enable_parse_clocks+y}
then :
  enableval=$enable_parse_clocks; ntp_eapc=$enableval
else $as_nop

	case "$ntp_eac" in
	 yes)	ntp_eapc=$ntp_canparse ;;
	 *)	ntp_eapc=no ;;
	esac
	# Delete the next line one of these days
	ntp_eapc=no


fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
printf "%s\n" "$ntp_eapc" >&6; }

case "$ntp_eac$ntp_eapc$ntp_canparse" in
 noyes*)
    as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
    ;;
 yesyesno)
    as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
    ;;
d30147 6
a30152 11
ntp_libparse=no
ntp_parseutil=no
ntp_rawdcf=no

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
printf %s "checking Diem Computime Radio Clock... " >&6; }
# Check whether --enable-COMPUTIME was given.
if test ${enable_COMPUTIME+y}
then :
  enableval=$enable_COMPUTIME; ntp_ok=$enableval
else $as_nop
d30162 1
a30162 1
printf "%s\n" "#define CLOCK_COMPUTIME 1" >>confdefs.h
d30166 2
a30167 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d30173 6
a30178 7
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
printf %s "checking ELV/DCF7000 clock... " >&6; }
# Check whether --enable-DCF7000 was given.
if test ${enable_DCF7000+y}
then :
  enableval=$enable_DCF7000; ntp_ok=$enableval
else $as_nop
a30179 1

d30182 1
a30182 2
case "$ntp_ok" in
 yes)
d30186 1
a30186 1
printf "%s\n" "#define CLOCK_DCF7000 1" >>confdefs.h
d30188 3
a30190 4
    ;;
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d30194 21
d30216 27
a30243 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
printf %s "checking HOPF 6021 clock... " >&6; }
# Check whether --enable-HOPF6021 was given.
if test ${enable_HOPF6021+y}
then :
  enableval=$enable_HOPF6021; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
d30245 3
d30250 6
a30255 1
case "$ntp_ok" in
d30257 3
a30259 2
    ntp_libparse=yes
    ntp_refclock=yes
d30261 22
a30282 1
printf "%s\n" "#define CLOCK_HOPF6021 1" >>confdefs.h
d30284 5
a30288 1
    ;;
d30290 139
a30428 5
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d30431 17
a30447 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
printf %s "checking Meinberg clocks... " >&6; }
# Check whether --enable-MEINBERG was given.
if test ${enable_MEINBERG+y}
then :
  enableval=$enable_MEINBERG; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
d30449 1
a30449 1
fi
a30450 4
case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes
d30452 1
a30452 1
printf "%s\n" "#define CLOCK_MEINBERG 1" >>confdefs.h
d30454 4
a30459 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
d30461 3
a30463 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
printf %s "checking DCF77 raw time code... " >&6; }
# Check whether --enable-RAWDCF was given.
if test ${enable_RAWDCF+y}
then :
  enableval=$enable_RAWDCF; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
d30465 14
a30478 1
fi
d30480 2
a30481 6
case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_parseutil=yes
    ntp_refclock=yes
    ntp_rawdcf=yes
d30483 3
a30485 1
printf "%s\n" "#define CLOCK_RAWDCF 1" >>confdefs.h
d30487 2
a30488 8
    ;;
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
a30489 8
case "$ntp_rawdcf" in
 yes)
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
printf %s "checking if we must enable parity for RAWDCF... " >&6; }
if test ${ntp_cv_rawdcf_parity+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d30491 8
a30498 7
	    ans=no
	    case "$host" in
	     *-*-*linux*)
		ans=yes
		;;
	    esac
	    ntp_cv_rawdcf_parity=$ans
d30500 3
d30505 15
a30519 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
printf "%s\n" "$ntp_cv_rawdcf_parity" >&6; }
    case "$ntp_cv_rawdcf_parity" in
     yes)
d30521 3
a30523 4
printf "%s\n" "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
 ;;
    esac
esac
d30525 2
a30526 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
printf %s "checking RCC 8000 clock... " >&6; }
# Check whether --enable-RCC8000 was given.
if test ${enable_RCC8000+y}
then :
  enableval=$enable_RCC8000; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
a30527 1
fi
d30529 8
a30536 4
case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes
d30538 3
a30540 1
printf "%s\n" "#define CLOCK_RCC8000 1" >>confdefs.h
d30542 8
a30549 7
    ;;
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d30552 21
a30572 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
printf %s "checking Schmid DCF77 clock... " >&6; }
# Check whether --enable-SCHMID was given.
if test ${enable_SCHMID+y}
then :
  enableval=$enable_SCHMID; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
a30573 1
fi
d30575 3
a30577 4
case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes
d30579 1
a30579 1
printf "%s\n" "#define CLOCK_SCHMID 1" >>confdefs.h
a30580 8
    ;;
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
d30582 8
a30589 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
printf %s "checking Trimble GPS receiver/TAIP protocol... " >&6; }
# Check whether --enable-TRIMTAIP was given.
if test ${enable_TRIMTAIP+y}
then :
  enableval=$enable_TRIMTAIP; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
d30592 19
d30612 3
a30614 4
case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes
d30616 1
a30616 1
printf "%s\n" "#define CLOCK_TRIMTAIP 1" >>confdefs.h
a30617 8
    ;;
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
d30619 8
a30626 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
printf %s "checking Trimble GPS receiver/TSIP protocol... " >&6; }
# Check whether --enable-TRIMTSIP was given.
if test ${enable_TRIMTSIP+y}
then :
  enableval=$enable_TRIMTSIP; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
d30629 9
a30637 8

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

printf "%s\n" "#define CLOCK_TRIMTSIP 1" >>confdefs.h

d30639 3
a30642 15
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
printf %s "checking WHARTON 400A Series clock... " >&6; }
# Check whether --enable-WHARTON was given.
if test ${enable_WHARTON+y}
then :
  enableval=$enable_WHARTON; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
d30644 2
a30645 1
fi
d30647 1
a30647 1
case "$ntp_ok" in
d30649 8
a30656 2
    ntp_libparse=yes
    ntp_refclock=yes
d30658 2
a30659 1
printf "%s\n" "#define CLOCK_WHARTON_400A 1" >>confdefs.h
a30662 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
a30663 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
printf %s "checking VARITEXT clock... " >&6; }
# Check whether --enable-VARITEXT was given.
if test ${enable_VARITEXT+y}
then :
  enableval=$enable_VARITEXT; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
d30665 8
a30672 1
fi
d30674 3
a30676 1
case "$ntp_ok" in
a30677 2
    ntp_libparse=yes
    ntp_refclock=yes
d30679 1
a30679 1
printf "%s\n" "#define CLOCK_VARITEXT 1" >>confdefs.h
d30681 3
d30686 3
a30688 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
a30689 9
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
printf %s "checking SEL240X clock... " >&6; }
# Check whether --enable-SEL240X was given.
if test ${enable_SEL240X+y}
then :
  enableval=$enable_SEL240X; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
fi
a30690 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d30692 7
a30698 1
printf "%s\n" "#define CLOCK_SEL240X 1" >>confdefs.h
a30700 7
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
    ;;
esac
d30702 2
d30705 11
d30717 2
d30720 3
d30724 1
d30726 3
a30728 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
printf %s "checking if we need to make and use the parse libraries... " >&6; }
ans=no
case "$ntp_libparse" in
 yes)
    ans=yes
a30729 1
printf "%s\n" "#define CLOCK_PARSE 1" >>confdefs.h
a30730 7
    LIBPARSE=../libparse/libparse.a
    MAKE_LIBPARSE=libparse.a
    # HMS: check_y2k trips the 34 year problem now...
    false && MAKE_CHECK_Y2K=check_y2k
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d30732 3
a30734 1
# if we have crypto, by default Autokey is enabled
d30736 1
a30736 2
if test ${enable_autokey+y}
then :
d30738 1
a30738 1
else $as_nop
d30749 2
a30750 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, crypto unavailable." >&5
printf "%s\n" "$as_me: WARNING: Disabling Autokey, crypto unavailable." >&2;}
d30755 1
a30755 1
printf "%s\n" "#define AUTOKEY 1" >>confdefs.h
d30762 2
a30763 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if NTP Autokey protocol will be supported" >&5
printf %s "checking if NTP Autokey protocol will be supported... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
printf "%s\n" "$ntp_autokey" >&6; }
d30766 2
a30767 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
printf %s "checking if we want to run check-layout... " >&6; }
d30777 2
a30778 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d30782 2
a30783 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
printf %s "checking if we can make dcf parse utilities... " >&6; }
d30795 2
a30796 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d30799 2
a30800 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
printf %s "checking if we can build kernel streams modules for parse... " >&6; }
d30809 1
a30809 1
printf "%s\n" "#define PPS_SYNC 1" >>confdefs.h
d30818 8
a30825 5
	MAKE_PARSEKMODULE=parse
	ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
if test "x$ac_cv_header_strings_h" = xyes
then :
  printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
d30829 2
d30835 2
a30836 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d30838 2
a30839 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
printf %s "checking if we need basic refclock support... " >&6; }
d30843 1
a30843 1
printf "%s\n" "#define REFCLOCK 1" >>confdefs.h
d30847 2
a30848 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
printf "%s\n" "$ntp_refclock" >&6; }
d30854 2
a30855 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
printf %s "checking if we want HP-UX adjtimed support... " >&6; }
d30867 1
a30867 1
printf "%s\n" "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
d30876 2
a30877 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d30879 2
a30880 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
printf %s "checking if we want QNX adjtime support... " >&6; }
d30891 1
a30891 1
printf "%s\n" "#define NEED_QNX_ADJTIME 1" >>confdefs.h
d30895 2
a30896 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d30898 2
a30899 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
printf %s "checking if we can read kmem... " >&6; }
d30934 1
a30934 2
if test ${enable_kmem+y}
then :
d30940 2
a30941 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d30950 1
a30950 1
printf "%s\n" "#define NOKMEM 1" >>confdefs.h
d30955 2
a30956 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
printf %s "checking if adjtime is accurate... " >&6; }
d30996 1
a30996 2
if test ${enable_accurate_adjtime+y}
then :
d31002 2
a31003 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31008 1
a31008 1
printf "%s\n" "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
d31017 5
a31021 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
printf %s "checking the name of 'tick' in the kernel... " >&6; }
if test ${ntp_cv_nlist_tick+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31058 2
a31059 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
printf "%s\n" "$ntp_cv_nlist_tick" >&6; }
d31065 3
a31067 1
printf "%s\n" "#define K_TICK_NAME \"$ntp_cv_nlist_tick\"" >>confdefs.h
d31071 5
a31075 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
printf %s "checking for the units of 'tick'... " >&6; }
if test ${ntp_cv_tick_nano+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31087 2
a31088 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
printf "%s\n" "$ntp_cv_tick_nano" >&6; }
d31092 1
a31092 1
printf "%s\n" "#define TICK_NANO 1" >>confdefs.h
d31096 5
a31100 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
printf %s "checking the name of 'tickadj' in the kernel... " >&6; }
if test ${ntp_cv_nlist_tickadj+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31145 2
a31146 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
printf "%s\n" "$ntp_cv_nlist_tickadj" >&6; }
d31152 3
a31154 1
printf "%s\n" "#define K_TICKADJ_NAME \"$ntp_cv_nlist_tickadj\"" >>confdefs.h
d31158 5
a31162 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
printf %s "checking for the units of 'tickadj'... " >&6; }
if test ${ntp_cv_tickadj_nano+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31174 2
a31175 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
printf "%s\n" "$ntp_cv_tickadj_nano" >&6; }
d31179 1
a31179 1
printf "%s\n" "#define TICKADJ_NANO 1" >>confdefs.h
d31183 5
a31187 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
printf %s "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
if test ${ntp_cv_nlist_dosynctodr+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31234 2
a31235 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
printf "%s\n" "$ntp_cv_nlist_dosynctodr" >&6; }
d31241 3
a31243 1
printf "%s\n" "#define K_DOSYNCTODR_NAME \"$ntp_cv_nlist_dosynctodr\"" >>confdefs.h
d31248 5
a31252 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
printf %s "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
if test ${ntp_cv_nlist_noprintf+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31293 2
a31294 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
printf "%s\n" "$ntp_cv_nlist_noprintf" >&6; }
d31300 3
a31302 1
printf "%s\n" "#define K_NOPRINTF_NAME \"$ntp_cv_nlist_noprintf\"" >>confdefs.h
d31310 2
a31311 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
printf %s "checking for a default value for 'tick'... " >&6; }
d31343 1
a31343 2
if test ${enable_tick+y}
then :
d31349 2
a31350 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31357 3
a31359 1
printf "%s\n" "#define PRESET_TICK $ans" >>confdefs.h
d31363 2
a31364 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
printf %s "checking for a default value for 'tickadj'... " >&6; }
d31417 1
a31417 2
if test ${enable_tickadj+y}
then :
d31423 2
a31424 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31433 3
a31435 1
printf "%s\n" "#define PRESET_TICKADJ $default_tickadj" >>confdefs.h
d31446 1
a31446 1
printf "%s\n" "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
d31453 1
a31453 1
printf "%s\n" "#define SCO5_CLOCK 1" >>confdefs.h
d31460 2
a31461 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&5
printf "%s\n" "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&2;}
d31465 2
a31466 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
printf "%s\n" "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
d31470 2
a31471 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
printf "%s\n" "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
d31479 2
a31480 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
printf "%s\n" "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
d31492 5
a31496 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
printf %s "checking if we want and can make the ntptime utility... " >&6; }
if test ${ac_cv_make_ntptime+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31510 2
a31511 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
printf "%s\n" "$ac_cv_make_ntptime" >&6; }
d31558 5
a31562 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
printf %s "checking if we want and can make the tickadj utility... " >&6; }
if test ${ntp_cv_make_tickadj+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31566 2
a31567 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
printf "%s\n" "$ntp_cv_make_tickadj" >&6; }
d31585 5
a31589 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
printf %s "checking if we want and can make the timetrim utility... " >&6; }
if test ${ntp_cv_make_timetrim+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31605 2
a31606 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
printf "%s\n" "$ntp_cv_make_timetrim" >&6; }
d31621 2
a31622 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
printf %s "checking if we want to build the NTPD simulator... " >&6; }
d31624 1
a31624 2
if test ${enable_simulator+y}
then :
d31626 1
a31626 1
else $as_nop
d31631 2
a31632 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31659 2
a31660 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
printf %s "checking if sntp will be built... " >&6; }
d31663 1
a31663 2
if test ${with_sntp+y}
then :
d31665 1
a31665 1
else $as_nop
d31687 2
a31688 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
printf "%s\n" "$with_sntp" >&6; }
d31692 2
a31693 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
printf %s "checking if we want to build ntpsnmpd... " >&6; }
d31696 1
a31696 2
if test ${with_ntpsnmpd+y}
then :
d31698 1
a31698 1
else $as_nop
d31708 2
a31709 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31743 2
a31744 3
	ac_fn_c_check_header_compile "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes
then :
d31746 3
a31748 3
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
printf "%s\n" "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
d31753 1
d31757 5
a31761 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
printf %s "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
if test ${ac_cv_lib_netsnmp_netsnmp_daemonize+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31770 3
d31775 1
a31775 1
main (void)
d31782 1
a31782 2
if ac_fn_c_try_link "$LINENO"
then :
d31784 1
a31784 1
else $as_nop
d31787 1
a31787 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d31791 3
a31793 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
printf "%s\n" "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes
then :
d31795 1
a31795 1
else $as_nop
d31803 1
a31803 1
printf "%s\n" "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
d31815 2
a31816 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
printf "%s\n" "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
d31832 2
a31833 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
printf %s "checking if we should always slew the time... " >&6; }
d31857 1
a31857 2
if test ${enable_slew_always+y}
then :
d31863 2
a31864 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31869 1
a31869 1
printf "%s\n" "#define SLEWALWAYS 1" >>confdefs.h
d31873 2
a31874 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
printf %s "checking if we should step and slew the time... " >&6; }
d31903 1
a31903 2
if test ${enable_step_slew+y}
then :
d31909 2
a31910 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31915 1
a31915 1
printf "%s\n" "#define STEP_SLEW 1" >>confdefs.h
d31919 2
a31920 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
printf %s "checking if ntpdate should step the time... " >&6; }
d31931 1
a31931 2
if test ${enable_ntpdate_step+y}
then :
d31937 2
a31938 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31943 1
a31943 1
printf "%s\n" "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
d31948 2
a31949 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
printf %s "checking if we should sync TODR clock every hour... " >&6; }
d31964 1
a31964 2
if test ${enable_hourly_todr_sync+y}
then :
d31970 2
a31971 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31976 1
a31976 1
printf "%s\n" "#define DOSYNCTODR 1" >>confdefs.h
d31981 2
a31982 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
printf %s "checking if we should avoid kernel FLL bug... " >&6; }
d32033 1
a32033 2
if test ${enable_kernel_fll_bug+y}
then :
d32039 2
a32040 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d32045 1
a32045 1
printf "%s\n" "#define KERNEL_FLL_BUG 1" >>confdefs.h
d32050 2
a32051 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
printf %s "checking if we want new session key behavior... " >&6; }
d32053 1
a32053 2
if test ${enable_bug1243_fix+y}
then :
d32055 1
a32055 1
else $as_nop
d32060 2
a32061 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d32065 1
a32065 1
printf "%s\n" "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
d32070 2
a32071 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5
printf %s "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; }
d32073 1
a32073 2
if test ${enable_bug3020_fix+y}
then :
d32075 1
a32075 1
else $as_nop
d32080 2
a32081 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d32085 1
a32085 1
printf "%s\n" "#define ENABLE_BUG3020_FIX 1" >>confdefs.h
d32090 2
a32091 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want correct mode7 fudgetime2 behavior" >&5
printf %s "checking if we want correct mode7 fudgetime2 behavior... " >&6; }
d32093 1
a32093 2
if test ${enable_bug3527_fix+y}
then :
d32095 1
a32095 1
else $as_nop
d32100 2
a32101 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d32105 1
a32105 1
printf "%s\n" "#define DISABLE_BUG3527_FIX 1" >>confdefs.h
d32110 2
a32111 23
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want a debug assert on an OOB KoD RATE value" >&5
printf %s "checking if we want a debug assert on an OOB KoD RATE value... " >&6; }
# Check whether --enable-bug3767-fix was given.
if test ${enable_bug3767_fix+y}
then :
  enableval=$enable_bug3767_fix; ans=$enableval
else $as_nop
  ans=yes

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
case "$ans" in
 no)

printf "%s\n" "#define DISABLE_BUG3767_FIX 1" >>confdefs.h

esac


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
printf %s "checking if we should use the IRIG sawtooth filter... " >&6; }
d32125 1
a32125 2
if test ${enable_irig_sawtooth+y}
then :
d32131 2
a32132 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d32137 1
a32137 1
printf "%s\n" "#define IRIG_SUCKS 1" >>confdefs.h
d32141 2
a32142 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
printf %s "checking if we should enable NIST lockclock scheme... " >&6; }
d32144 1
a32144 2
if test ${enable_nist+y}
then :
d32146 1
a32146 1
else $as_nop
d32152 2
a32153 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d32158 1
a32158 1
printf "%s\n" "#define LOCKCLOCK 1" >>confdefs.h
d32162 2
a32163 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
printf %s "checking if we want support for Samba's signing daemon... " >&6; }
d32165 1
a32165 2
if test ${enable_ntp_signd+y}
then :
d32167 1
a32167 1
else $as_nop
d32173 2
a32174 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d32192 1
a32192 1
printf "%s\n" "#define HAVE_NTP_SIGND 1" >>confdefs.h
d32195 3
a32197 1
printf "%s\n" "#define NTP_SIGND_PATH \"$ntp_signd_path\"" >>confdefs.h
d32202 7
a32208 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want 'magic' PPS support" >&5
printf %s "checking if we want 'magic' PPS support... " >&6; }
# Check whether --enable-magicpps was given.
if test ${enable_magicpps+y}
then :
  enableval=$enable_magicpps; ans=$enableval
else $as_nop
  ans=yes
d32212 1
a32212 35
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
case "$ans" in
 yes)

printf "%s\n" "#define ENABLE_MAGICPPS 1" >>confdefs.h

    ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
if test "x$ac_cv_func_openat" = xyes
then :
  printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir"
if test "x$ac_cv_func_fdopendir" = xyes
then :
  printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"
if test "x$ac_cv_func_fstatat" = xyes
then :
  printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h

fi

    ;;
esac

ac_fn_c_check_header_compile "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
if test "x$ac_cv_header_libscf_h" = xyes
then :
  printf "%s\n" "#define HAVE_LIBSCF_H 1" >>confdefs.h

fi
d32223 5
a32227 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
printf %s "checking for struct sockaddr_storage... " >&6; }
if test ${ntp_cv_sockaddr_storage+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32242 1
a32242 1
main (void)
d32252 1
a32252 2
if ac_fn_c_try_compile "$LINENO"
then :
d32254 1
a32254 1
else $as_nop
d32258 1
a32258 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32261 2
a32262 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
printf "%s\n" "$ntp_cv_sockaddr_storage" >&6; }
d32266 1
a32266 1
printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
d32268 5
a32272 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
printf %s "checking for sockaddr_storage.__ss_family... " >&6; }
if test ${ntp_cv_have___ss_family+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32287 1
a32287 1
main (void)
d32298 1
a32298 2
if ac_fn_c_try_compile "$LINENO"
then :
d32300 1
a32300 1
else $as_nop
d32304 1
a32304 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32307 2
a32308 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
printf "%s\n" "$ntp_cv_have___ss_family" >&6; }
d32312 1
a32312 1
printf "%s\n" "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
d32322 5
a32326 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
printf %s "checking for in_port_t... " >&6; }
if test ${isc_cv_have_in_port_t+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32334 1
a32334 1
main (void)
d32345 1
a32345 2
if ac_fn_c_try_compile "$LINENO"
then :
d32347 1
a32347 1
else $as_nop
d32351 1
a32351 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32354 2
a32355 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
printf "%s\n" "$isc_cv_have_in_port_t" >&6; }
d32359 1
a32359 1
printf "%s\n" "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
d32363 5
a32367 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
printf %s "checking type of socklen arg for getsockname()... " >&6; }
if test ${ntp_cv_getsockname_socklen_type+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32383 1
a32383 1
main (void)
d32395 1
a32395 2
if ac_fn_c_try_compile "$LINENO"
then :
d32398 1
a32398 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32410 2
a32411 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
printf "%s\n" "$ntp_cv_getsockname_socklen_type" >&6; }
d32413 3
a32415 1
printf "%s\n" "#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type" >>confdefs.h
d32418 5
a32422 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
printf %s "checking struct sockaddr for sa_len... " >&6; }
if test ${isc_cv_platform_havesalen+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32430 1
a32430 1
main (void)
d32441 1
a32441 2
if ac_fn_c_try_compile "$LINENO"
then :
d32443 1
a32443 1
else $as_nop
d32447 1
a32447 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32450 2
a32451 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
printf "%s\n" "$isc_cv_platform_havesalen" >&6; }
d32455 1
a32455 1
printf "%s\n" "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
d32460 1
a32460 2
if test ${enable_ipv6+y}
then :
d32472 1
a32472 1
printf "%s\n" "#define WANT_IPV6 1" >>confdefs.h
d32485 1
a32485 1
printf "%s\n" "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
d32490 5
a32494 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
printf %s "checking for IPv6 structures... " >&6; }
if test ${isc_cv_found_ipv6+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32503 1
a32503 1
main (void)
d32513 1
a32513 2
if ac_fn_c_try_compile "$LINENO"
then :
d32515 1
a32515 1
else $as_nop
d32519 1
a32519 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32522 2
a32523 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
printf "%s\n" "$isc_cv_found_ipv6" >&6; }
d32529 2
a32530 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
printf %s "checking for Kame IPv6 support... " >&6; }
d32533 1
a32533 2
if test ${with_kame+y}
then :
d32535 1
a32535 1
else $as_nop
d32552 2
a32553 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d32557 2
a32558 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
printf "%s\n" "$kame_path/lib/libinet6.a" >&6; }
d32582 1
a32582 1
printf "%s\n" "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
d32597 1
a32597 1
printf "%s\n" "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
d32610 1
a32610 1
printf "%s\n" "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
d32612 5
a32616 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
printf %s "checking for in6_pktinfo... " >&6; }
if test ${isc_cv_have_in6_pktinfo+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32627 1
a32627 1
main (void)
d32637 1
a32637 2
if ac_fn_c_try_compile "$LINENO"
then :
d32639 1
a32639 1
else $as_nop
d32643 1
a32643 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32646 2
a32647 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
printf "%s\n" "$isc_cv_have_in6_pktinfo" >&6; }
d32651 1
a32651 1
printf "%s\n" "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
d32657 5
a32661 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
printf %s "checking for sockaddr_in6.sin6_scope_id... " >&6; }
if test ${isc_cv_have_sin6_scope_id+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32672 1
a32672 1
main (void)
d32683 1
a32683 2
if ac_fn_c_try_compile "$LINENO"
then :
d32685 1
a32685 1
else $as_nop
d32689 1
a32689 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32692 2
a32693 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
printf "%s\n" "$isc_cv_have_sin6_scope_id" >&6; }
d32698 1
a32698 1
printf "%s\n" "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
d32706 5
a32710 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
printf %s "checking for in6addr_any... " >&6; }
if test ${isc_cv_in6addr_any_links+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32723 1
a32723 1
main (void)
d32733 1
a32733 2
if ac_fn_c_try_link "$LINENO"
then :
d32735 1
a32735 1
else $as_nop
d32739 1
a32739 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d32746 2
a32747 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
printf "%s\n" "$isc_cv_in6addr_any_links" >&6; }
d32752 1
a32752 1
printf "%s\n" "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
d32757 5
a32761 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
printf %s "checking for struct if_laddrconf... " >&6; }
if test ${isc_cv_struct_if_laddrconf+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32769 1
a32769 1
main (void)
d32779 1
a32779 2
if ac_fn_c_try_compile "$LINENO"
then :
d32781 1
a32781 1
else $as_nop
d32785 1
a32785 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32788 2
a32789 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
printf "%s\n" "$isc_cv_struct_if_laddrconf" >&6; }
d32794 1
a32794 1
printf "%s\n" "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
d32798 5
a32802 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
printf %s "checking for struct if_laddrreq... " >&6; }
if test ${isc_cv_struct_if_laddrreq+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32810 1
a32810 1
main (void)
d32820 1
a32820 2
if ac_fn_c_try_compile "$LINENO"
then :
d32822 1
a32822 1
else $as_nop
d32826 1
a32826 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32829 2
a32830 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
printf "%s\n" "$isc_cv_struct_if_laddrreq" >&6; }
d32835 1
a32835 1
printf "%s\n" "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
d32839 5
a32843 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
printf %s "checking for multicast IP support... " >&6; }
if test ${ntp_cv_multicast+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32858 1
a32858 1
main (void)
d32869 1
a32869 2
if ac_fn_c_try_compile "$LINENO"
then :
d32872 1
a32872 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32878 2
a32879 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
printf "%s\n" "$ntp_cv_multicast" >&6; }
d32883 1
a32883 1
printf "%s\n" "#define MCAST 1" >>confdefs.h
d32885 5
a32889 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
printf %s "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
if test ${ntp_cv_typeof_ip_multicast_loop+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32902 2
a32903 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
printf "%s\n" "$ntp_cv_typeof_ip_multicast_loop" >&6; }
d32905 3
a32907 1
printf "%s\n" "#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop" >>confdefs.h
d32912 1
a32912 2
if test ${enable_getifaddrs+y}
then :
d32914 1
a32914 1
else $as_nop
d32922 2
a32923 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
printf "%s\n" "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
d32931 7
a32937 4
    ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = xyes
then :
  printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
d32940 1
d32952 5
a32956 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
printf %s "checking for library containing if_nametoindex... " >&6; }
if test ${ac_cv_search_if_nametoindex+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32964 3
d32969 1
a32969 1
main (void)
d32976 1
a32976 2
for ac_lib in '' ipv6
do
d32983 1
a32983 2
  if ac_fn_c_try_link "$LINENO"
then :
d32986 1
a32986 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d32988 1
a32988 2
  if test ${ac_cv_search_if_nametoindex+y}
then :
d32992 1
a32992 2
if test ${ac_cv_search_if_nametoindex+y}
then :
d32994 1
a32994 1
else $as_nop
d33000 2
a33001 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
printf "%s\n" "$ac_cv_search_if_nametoindex" >&6; }
d33003 1
a33003 2
if test "$ac_res" != no
then :
d33011 7
a33017 4
ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
if test "x$ac_cv_func_if_nametoindex" = xyes
then :
  printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
d33020 1
d33027 1
a33027 1
printf "%s\n" "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
d33037 5
a33041 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
printf %s "checking for interface list sysctl... " >&6; }
if test ${ntp_cv_iflist_sysctl+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d33053 1
a33053 2
if ac_fn_c_try_cpp "$LINENO"
then :
d33055 1
a33055 1
else $as_nop
d33062 2
a33063 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
printf "%s\n" "$ntp_cv_iflist_sysctl" >&6; }
d33067 1
a33067 1
printf "%s\n" "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
d33073 2
a33074 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
printf %s "checking if we want the saveconfig mechanism... " >&6; }
d33076 1
a33076 2
if test ${enable_saveconfig+y}
then :
d33078 1
a33078 1
else $as_nop
d33088 1
a33088 1
printf "%s\n" "#define SAVECONFIG 1" >>confdefs.h
d33100 2
a33101 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d33105 2
a33106 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
printf %s "checking if we want the experimental leap smear code... " >&6; }
d33108 1
a33108 2
if test ${enable_leap_smear+y}
then :
d33110 1
a33110 1
else $as_nop
d33120 1
a33120 1
printf "%s\n" "#define LEAP_SMEAR 1" >>confdefs.h
d33126 2
a33127 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d33131 2
a33132 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5
printf %s "checking if we want dynamic interleave support... " >&6; }
d33134 1
a33134 2
if test ${enable_dynamic_interleave+y}
then :
d33136 1
a33136 1
else $as_nop
d33148 3
a33150 5
printf "%s\n" "#define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave" >>confdefs.h

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }

d33152 2
d33160 5
a33164 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PATH_RUBY+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d33174 1
a33174 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d33176 3
a33178 3
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PATH_RUBY="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d33190 2
a33191 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
printf "%s\n" "$PATH_RUBY" >&6; }
d33193 2
a33194 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d33218 100
d33323 2
a33324 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
printf %s "checking if we want to enable tests with undiagnosed problems... " >&6; }
d33326 1
a33326 2
if test ${enable_problem_tests+y}
then :
d33328 1
a33328 1
else $as_nop
d33333 2
a33334 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
printf "%s\n" "$ntp_ept" >&6; }
d33336 2
a33337 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
printf %s "checking if we can run test-ntp_restrict... " >&6; }
d33349 2
a33350 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
printf "%s\n" "$ntp_test_ntp_restrict" >&6; }
d33360 2
a33361 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
printf %s "checking if we can run test-ntp_scanner... " >&6; }
d33372 2
a33373 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
printf "%s\n" "$ntp_test_ntp_scanner" >&6; }
d33383 2
a33384 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
printf %s "checking if we can run test-ntp_signd... " >&6; }
d33395 2
a33396 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
printf "%s\n" "$ntp_test_ntp_signd" >&6; }
d33410 3
a33412 4
ac_fn_check_decl "$LINENO" "sigsetjmp" "ac_cv_have_decl_sigsetjmp" "#include <setjmp.h>
" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl_sigsetjmp" = xyes
then :
d33414 1
a33414 1
else $as_nop
d33417 7
a33423 5
printf "%s\n" "#define HAVE_DECL_SIGSETJMP $ac_have_decl" >>confdefs.h
ac_fn_check_decl "$LINENO" "siglongjmp" "ac_cv_have_decl_siglongjmp" "#include <setjmp.h>
" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl_siglongjmp" = xyes
then :
d33425 1
a33425 1
else $as_nop
d33428 4
a33431 1
printf "%s\n" "#define HAVE_DECL_SIGLONGJMP $ac_have_decl" >>confdefs.h
d33446 3
a33448 1
printf "%s\n" "#define NTP_KEYSDIR \"$ac_define_dir\"" >>confdefs.h
d33552 3
a33554 1
printf "%s\n" "#define PERLLIBDIR \"$ac_define_dir\"" >>confdefs.h
d33605 2
a33606 2
      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
d33636 1
a33636 1
     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
d33643 2
a33644 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
d33658 2
a33659 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
d33676 1
a33676 1
  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
d33687 2
a33688 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
printf %s "checking that generated files are newer than configure... " >&6; }
d33693 2
a33694 2
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
a33751 4
if test -z "${LIBNTP_SUBMAKES_TRUE}" && test -z "${LIBNTP_SUBMAKES_FALSE}"; then
  as_fn_error $? "conditional \"LIBNTP_SUBMAKES\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d33764 4
d33785 2
a33786 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
d33809 1
a33809 3
as_nop=:
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
d33816 1
a33816 1
else $as_nop
a33825 8

# Reset variables that may have inherited troublesome values from
# the environment.

# IFS needs to be set, to space, tab, and newline, in precisely that order.
# (If _AS_PATH_WALK were called with IFS unset, it would have the
# side effect of setting IFS to empty, thus disabling word splitting.)
# Quoting is to prevent editors from complaining about space-tab.
d33829 34
a33862 26
IFS=" ""	$as_nl"

PS1='$ '
PS2='> '
PS4='+ '

# Ensure predictable behavior from utilities with locale-dependent output.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# We cannot yet rely on "unset" to work, but we need these variables
# to be unset--not just set to an empty or harmless value--now, to
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
# also avoids known problems related to "unset" and subshell syntax
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
do eval test \${$as_var+y} \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done

# Ensure that fds 0, 1, and 2 are open.
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
d33865 1
a33865 1
if ${PATH_SEPARATOR+false} :; then
d33874 7
d33889 2
a33890 6
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
d33902 1
a33902 1
  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
d33906 20
d33938 1
a33938 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
d33940 1
a33940 1
  printf "%s\n" "$as_me: error: $2" >&2
a33944 1

a33970 1

d33977 1
a33977 2
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
then :
d33982 1
a33982 1
else $as_nop
d33994 1
a33994 2
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
then :
d33999 1
a33999 1
else $as_nop
d34030 1
a34030 1
printf "%s\n" X/"$0" |
a34051 4

# Determine whether it's possible to make 'echo' print without a newline.
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
# for compatibility with existing Makefiles.
a34064 6
# For backward compatibility with old third-party macros, we provide
# the shell variables $as_echo and $as_echo_n.  New code should use
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
as_echo='printf %s\n'
as_echo_n='printf %s'

d34106 1
a34106 1
      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
d34115 1
a34115 1
printf "%s\n" X"$as_dir" |
d34177 2
a34178 2
This file was extended by ntp $as_me 4.2.8p18, which was
generated by GNU Autoconf 2.71.  Invocation command line was
d34237 2
a34238 2
Report bugs to <https://bugs.ntp.org/>.
ntp home page: <https://www.ntp.org/>."
a34240 2
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
d34242 1
a34242 1
ac_cs_config='$ac_cs_config_escaped'
d34244 2
a34245 2
ntp config.status 4.2.8p18
configured by $0, generated by GNU Autoconf 2.71,
d34248 1
a34248 1
Copyright (C) 2021 Free Software Foundation, Inc.
d34288 1
a34288 1
    printf "%s\n" "$ac_cs_version"; exit ;;
d34290 1
a34290 1
    printf "%s\n" "$ac_cs_config"; exit ;;
d34296 1
a34296 1
    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d34304 1
a34304 1
    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d34313 1
a34313 1
    printf "%s\n" "$ac_cs_usage"; exit ;;
d34341 1
a34341 1
  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
d34355 1
a34355 1
  printf "%s\n" "$ac_log"
d34363 1
a34363 1
AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
d34373 1
a34375 1
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
d34713 3
a34715 3
  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
d35085 1
a35085 1
      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
d35093 1
a35093 1
	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
d35097 2
a35098 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
printf "%s\n" "$as_me: creating $ac_file" >&6;}
d35103 1
a35103 1
       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
d35120 1
a35120 1
printf "%s\n" X"$ac_file" |
d35144 1
a35144 1
  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
d35146 1
a35146 1
  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
d35208 2
a35209 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d35258 1
a35258 1
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d35260 1
a35260 1
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d35276 1
a35276 1
      printf "%s\n" "/* $configure_input  */" >&1 \
d35281 2
a35282 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
d35289 1
a35289 1
    printf "%s\n" "/* $configure_input  */" >&1 \
d35309 1
a35309 1
printf "%s\n" X"$_am_arg" |
d35329 2
a35330 2
  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
d35340 4
a35343 10
  # TODO: see whether this extra hack can be removed once we start
  # requiring Autoconf 2.70 or later.
  case $CONFIG_FILES in #(
  *\'*) :
    eval set x "$CONFIG_FILES" ;; #(
  *) :
    set x $CONFIG_FILES ;; #(
  *) :
     ;;
esac
d35345 1
a35345 3
  # Used to flag and report bootstrapping failures.
  am_rc=0
  for am_mf
d35348 7
a35354 4
    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
    # Check whether this is an Automake generated Makefile which includes
    # dependency-tracking related rules and includes.
    # Grep'ing the whole file directly is not great: AIX grep has a line
d35356 7
a35362 8
    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
      || continue
    am_dirpart=`$as_dirname -- "$am_mf" ||
$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$am_mf" : 'X\(//\)[^/]' \| \
	 X"$am_mf" : 'X\(//\)$' \| \
	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X"$am_mf" |
d35380 30
a35409 6
    am_filepart=`$as_basename -- "$am_mf" ||
$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$am_mf" : 'X\(//\)$' \| \
	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X/"$am_mf" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
d35413 1
a35413 1
	  /^X\/\(\/\/\)$/{
d35417 1
a35417 1
	  /^X\/\(\/\).*/{
d35422 4
a35425 9
    { echo "$as_me:$LINENO: cd "$am_dirpart" \
      && sed -e '/# am--include-marker/d' "$am_filepart" \
        | $MAKE -f - am--depfiles" >&5
   (cd "$am_dirpart" \
      && sed -e '/# am--include-marker/d' "$am_filepart" \
        | $MAKE -f - am--depfiles) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } || am_rc=$?
a35426 16
  if test $am_rc -ne 0; then
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Something went wrong bootstrapping makefile fragments
    for automatic dependency tracking.  If GNU make was not used, consider
    re-running the configure script with MAKE=\"gmake\" (or whatever is
    necessary).  You can also try re-running configure with the
    '--disable-dependency-tracking' option to at least be able to build
    the package (albeit without support for automatic dependency tracking).
See \`config.log' for more details" "$LINENO" 5; }
  fi
  { am_dirpart=; unset am_dirpart;}
  { am_filepart=; unset am_filepart;}
  { am_mf=; unset am_mf;}
  { am_rc=; unset am_rc;}
  rm -f conftest-deps.mk
d35481 3
a35487 3
# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

a35956 1

d35972 1
a35972 1
    "ntpd/complete.conf":F) $SED -e '/^rlimit$/d' -e '/^$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
d36057 1
a36057 1
      *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d36067 1
a36067 1
  *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d36088 2
a36089 2
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
    printf "%s\n" "$ac_msg" >&6
d36096 1
a36096 1
  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
d36098 1
a36098 1
  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
d36128 1
a36128 2
    # Check for configure.gnu first; this name is used for a wrapper for
    # Metaconfig's "Configure" on case-insensitive file systems.
d36133 3
d36137 2
a36138 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
d36151 2
a36152 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
d36163 2
a36164 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
a36166 1

@


1.1.1.17
log
@Import ntp-4.2.8p18 (previous was ntp-4.2.8p15

---
(4.2.8p18) 2024/05/25 Released by Harlan Stenn <stenn@@ntp.org>

* [Bug 3918] Tweak openssl header/library handling. <stenn@@ntp.org>
* [Bug 3914] Spurious "Unexpected origin timestamp" logged after time
             stepped. <hart@@ntp.org>
* [Bug 3913] Avoid duplicate IPv6 link-local manycast associations.
             <hart@@ntp.org>
* [Bug 3912] Avoid rare math errors in ntptrace.  <brian.utterback@@oracle.com>
* [Bug 3910] Memory leak using openssl-3 <hart@@ntp.org>
* [Bug 3909] Do not select multicast local address for unicast peer.
             <hart@@ntp.org>
* [Bug 3903] lib/isc/win32/strerror.c NTstrerror() is not thread-safe.
             <hart@@ntp.org>
* [Bug 3901] LIB_GETBUF isn't thread-safe. <hart@@ntp.org>
* [Bug 3900] fast_xmit() selects wrong local addr responding to mcast on
             Windows. <hart@@ntp.org>
* [Bug 3888] ntpd with multiple same-subnet IPs using manycastclient creates
             duplicate associations. <hart@@ntp.org>
* [Bug 3872] Ignore restrict mask for hostname. <hart@@ntp.org>
* [Bug 3871] 4.2.8p17 build without hopf6021 refclock enabled fails.
             Reported by Hans Mayer.  Moved NONEMPTY_TRANSLATION_UNIT
             declaration from ntp_types.h to config.h.  <hart@@ntp.org>
* [Bug 3870] Server drops client packets with ppoll < 4.  <stenn@@ntp.org>
* [Bug 3869] Remove long-gone "calldelay" & "crypto sign" from docs.
             Reported by PoolMUC@@web.de. <hart@@ntp.org>
* [Bug 3868] Cannot restrict a pool peer. <hart@@ntp.org>  Thanks to
             Edward McGuire for tracking down the deficiency.
* [Bug 3864] ntpd IPv6 refid different for big-endian and little-endian.
             <hart@@ntp.org>
* [Bug 3859] Use NotifyIpInterfaceChange on Windows ntpd. <hart@@ntp.org>
* [Bug 3856] Enable Edit & Continue debugging with Visual Studio.
             <hart@@ntp.org>
* [Bug 3855] ntpq lacks an equivalent to ntpdc's delrestrict. <hart@@ntp.org>
* [Bug 3854] ntpd 4.2.8p17 corrupts rawstats file with space in refid.
             <hart@@ntp.org>
* [Bug 3853] Clean up warnings with modern compilers. <hart@@ntp.org>
* [Bug 3852] check-libntp.mf and friends are not triggering rebuilds as
             intended. <hart@@ntp.org>
* [Bug 3851] Drop pool server when no local address can reach it.
             <hart@@ntp.org>
* [Bug 3850] ntpq -c apeers breaks column formatting s2 w/refclock refid.
             <hart@@ntp.org>
* [Bug 3849] ntpd --wait-sync times out. <hart@@ntp.org>
* [Bug 3847] SSL detection in configure should run-test if runpath is needed.
             <hart@@ntp.org>
* [Bug 3846] Use -Wno-format-truncation by default. <hart@@ntp.org>
* [Bug 3845] accelerate pool clock_sync when IPv6 has only link-local access.
             <hart@@ntp.org>
* [Bug 3842] Windows ntpd PPSAPI DLL load failure crashes. <hart@@ntp.org>
* [Bug 3841] 4.2.8p17 build break w/ gcc 12 -Wformat-security without -Wformat
             Need to remove --Wformat-security when removing -Wformat to
             silence numerous libopts warnings.  <hart@@ntp.org>
* [Bug 3837] NULL pointer deref crash when ntpd deletes last interface.
             Reported by renmingshuai.  Correct UNLINK_EXPR_SLIST() when the
             list is empty. <hart@@ntp.org>
* [Bug 3835] NTP_HARD_*FLAGS not used by libevent tearoff. <hart@@ntp.org>
* [Bug 3831] pollskewlist zeroed on runtime configuration. <hart@@ntp.org>
* [Bug 3830] configure libevent check intersperses output with answer. <stenn@@>
* [Bug 3828] BK should ignore a git repo in the same directory.
             <burnicki@@ntp.org>
* [Bug 3827] Fix build in case CLOCK_HOPF6021 or CLOCK_WHARTON_400A
             is disabled.  <burnicki@@ntp.org>
* [Bug 3825] Don't touch HTML files unless building inside a BK repo.
             Fix the script checkHtmlFileDates.  <burnicki@@ntp.org>
* [Bug 3756] Improve OpenSSL library/header detection.
* [Bug 3753] ntpd fails to start with FIPS-enabled OpenSSL 3. <hart@@ntp.org>
* [Bug 2734] TEST3 prevents initial interleave sync.  Fix from <PoolMUC@@web.de>
* Log failures to allocate receive buffers.  <hart@@ntp.org>
* Remove extraneous */ from libparse/ieee754io.c
* Fix .datecheck target line in Makefile.am.  <stenn@@ntp.org>
* Update the copyright year.  <stenn@@ntp.org>
* Update ntp.conf documentation to add "delrestrict" and correct information
  about KoD rate limiting.  <hart@@ntp.org>
* html/clockopt.html cleanup.  <stenn@@ntp.org>
* util/lsf-times - added.  <stenn@@ntp.org>
* Add DSA, DSA-SHA, and SHA to tests/libntp/digests.c. <hart@@ntp.org>
* Provide ntpd thread names to debugger on Windows. <hart@@ntp.org>
* Remove dead code libntp/numtohost.c and its unit tests. <hart@@ntp.org>
* Remove class A, B, C IPv4 distinctions in netof(). <hart@@ntp.org>
* Use @@configure_input@@ in various *.in files to include a comment that
  the file is generated from another pointing to the *.in. <hart@@ntp.org>
* Correct underquoting, indents in ntp_facilitynames.m4. <hart@@ntp.org>
* Clean up a few warnings seen building with older gcc. <hart@@ntp.org>
* Fix build on older FreeBSD lacking sys/procctl.h. <hart@@ntp.org>
* Disable [Bug 3627] workaround on newer FreeBSD which has the kernel fix
  that makes it unnecessary, re-enabling ASLR stack gap. <hart@@ntp.org>
* Use NONEMPTY_COMPILATION_UNIT in more conditionally-compiled files.
* Remove useless pointer to Windows Help from system error messages.
* Avoid newlines within Windows error messages. <hart@@ntp.org>
* Ensure unique association IDs if wrapped. <hart@@ntp.org>
* Simplify calc_addr_distance(). <hart@@ntp.org>
* Clamp min/maxpoll in edge cases in newpeer(). <hart@@ntp.org>
* Quiet local addr change logging when unpeering. <hart@@ntp.org>
* Correct missing arg for %s printf specifier in
  send_blocking_resp_internal(). <hart@@ntp.org>
* Suppress OpenSSL 3 deprecation warning clutter. <hart@@ntp.org>
* Correct OpenSSL usage in Autokey code to avoid warnings about
  discarding const qualifiers with OpenSSL 3. <hart@@ntp.org>
* Display KoD refid as text in recently added message. <hart@@ntp.org>
* Avoid running checkHtmlFileDates script repeatedly when no html/*.html
    files have changed. <hart@@ntp.org>
* Abort configure if --enable-crypto-rand given & unavailable. <hart@@ntp.org>
* Add configure --enable-verbose-ssl to trace SSL detection. <hart@@ntp.org>
* Add build test coverage for --disable-saveconfig to flock-build script.
  <hart@@ntp.org>
* Remove deprecated configure --with-arlib option. <hart@@ntp.org>
* Remove configure support for ISC UNIX ca. 1998. <hart@@ntp.org>
* Move NTP_OPENSSL and NTP_CRYPTO_RAND invocations from configure.ac files
  to NTP_LIBNTP. <hart@@ntp.org>
* Remove dead code: HAVE_U_INT32_ONLY_WITH_DNS. <hart@@ntp.org>
* Eliminate [v]snprintf redefinition warnings on macOS. <hart@@ntp.org>
* Fix clang 14 cast increases alignment warning on Linux. <hart@@ntp.org>
* Move ENABLE_CMAC to ntp_openssl.m4, reviving sntp/tests CMAC unit tests.
  <hart@@ntp.org>
* Use NTP_HARD_CPPFLAGS in libopts tearoff. <hart@@ntp.org>
* wire in --enable-build-framework-help

---
(4.2.8p17) 2023/06/06 Released by Harlan Stenn <stenn@@ntp.org>

* [Bug 3824] Spurious "ntpd: daemon failed to notify parent!" logged at
             event_sync.  Reported by Edward McGuire.  <hart@@ntp.org>
* [Bug 3822] ntpd significantly delays first poll of servers specified by name.
             <hart@@ntp.org>  Miroslav Lichvar identified regression in 4.2.8p16.
* [Bug 3821] 4.2.8p16 misreads hex authentication keys, won't interop with
             4.2.8p15 or earlier.  Reported by Matt Nordhoff, thanks to
	     Miroslav Lichvar and Matt for rapid testing and identifying the
	     problem. <hart@@ntp.org>
* Add tests/libntp/digests.c to catch regressions reading keys file or with
  symmetric authentication digest output. <hart@@ntp.org>

---
(4.2.8p16) 2023/05/31 Released by Harlan Stenn <stenn@@ntp.org>

* [Sec 3808] Assertion failure in ntpq on malformed RT-11 date <perlinger@@ntp.org>
* [Sec 3807] praecis_parse() in the Palisade refclock driver has a
             hypothetical input buffer overflow. Reported by ... stenn@@
* [Sec 3806] libntp/mstolfp.c needs bounds checking <perlinger@@ntp.org>
  - solved numerically instead of using string manipulation
* [Sec 3767] An OOB KoD RATE value triggers an assertion when debug is enabled.
             <stenn@@ntp.org>
* [Bug 3819] Updated libopts/Makefile.am was missing NTP_HARD_* values. <stenn@@>
* [Bug 3817] Bounds-check "tos floor" configuration. <hart@@ntp.org>
* [Bug 3814] First poll delay of new or cleared associations miscalculated.
             <hart@@ntp.org>
* [Bug 3802] ntp-keygen -I default identity modulus bits too small for
             OpenSSL 3.  Reported by rmsh1216@@163.com <hart@@ntp.org>
* [Bug 3801] gpsdjson refclock gps_open() device name mishandled. <hart@@ntp.org>
* [Bug 3800] libopts-42.1.17 does not compile with Microsoft C. <hart@@ntp.org>
* [Bug 3799] Enable libopts noreturn compiler advice for MSC. <hart@@ntp.org>
* [Bug 3797] Windows getaddrinfo w/AI_ADDRCONFIG fails for localhost when
             disconnected, breaking ntpq and ntpdc. <hart@@ntp.org>
* [Bug 3795] pollskewlist documentation uses | when it shouldn't.
  - ntp.conf manual page and miscopt.html corrections. <hart@@ntp.org>
* [Bug 3793] Wrong variable type passed to record_raw_stats(). <hart@@ntp.org>
  - Report and patch by Yuezhen LUAN <wei6410@@sina.com>.
* [Bug 3786] Timer starvation on high-load Windows ntpd. <hart@@ntp.org>
* [Bug 3784] high-load ntpd on Windows deaf after enough ICMP TTL exceeded.
             <hart@@ntp.org>
* [Bug 3781] log "Unable to listen for broadcasts" for IPv4 <hart@@ntp.org>
* [Bug 3774] mode 6 packets corrupted in rawstats file <hart@@ntp.org>
  - Reported by Edward McGuire, fix identified by <wei6410@@sina.com>.
* [Bug 3758] Provide a 'device' config statement for refclocks <perlinger@@ntp.org>
* [Bug 3757] Improve handling of Linux-PPS in NTPD <perlinger@@ntp.org>
* [Bug 3741] 4.2.8p15 can't build with glibc 2.34 <perlinger@@ntp.org>
* [Bug 3725] Make copyright of clk_wharton.c compatible with Debian.
             Philippe De Muyter <phdm@@macqel.be>
* [Bug 3724] ntp-keygen with openSSL 1.1.1 fails on Windows <perlinger@@ntp.org>
  - openssl applink needed again for openSSL-1.1.1
* [Bug 3719] configure.ac checks for closefrom() and getdtablesize() missing.
             Reported by Brian Utterback, broken in 2010 by <hart@@ntp.org>
* [Bug 3699] Problems handling drift file and restoring previous drifts <perlinger@@ntp.org>
  - command line options override config statements where applicable
  - make initial frequency settings idempotent and reversible
  - make sure kernel PLL gets a recovered drift componsation
* [Bug 3695] Fix memory leak with ntpq on Windows Server 2019 <perlinger@@ntp.org>
* [Bug 3694] NMEA refclock seems to unnecessarily require location in messages
  - misleading title; essentially a request to ignore the receiver status.
    Added a mode bit for this. <perlinger@@ntp.org>
* [Bug 3693] Improvement of error handling key lengths <perlinger@@ntp.org>
  - original patch by Richard Schmidt, with mods & unit test fixes
* [Bug 3692] /dev/gpsN requirement prevents KPPS <perlinger@@ntp.org>
  - implement/wrap 'realpath()' to resolve symlinks in device names
* [Bug 3691] Buffer Overflow reading GPSD output
  - original patch by matt<ntpbr@@mattcorallo.com>
  - increased max PDU size to 4k to avoid truncation
* [Bug 3690] newline in ntp clock variable (parse) <perlinger@@ntp.org>
  - patch by Frank Kardel
* [Bug 3689] Extension for MD5, SHA-1 and other keys <perlinger@@ntp.org>
  - ntp{q,dc} now use the same password processing as ntpd does in the key
    file, so having a binary secret >= 11 bytes is possible for all keys.
    (This is a different approach to the problem than suggested)
* [Bug 3688] GCC 10 build errors in testsuite <perlinger@@ntp.org>
* [Bug 3687] ntp_crypto_rand RNG status not known <perlinger@@ntp.org>
  - patch by Gerry Garvey
* [Bug 3682] Fixes for warnings when compiled without OpenSSL <perlinger@@ntp.org>
  - original patch by Gerry Garvey
* [Bug 3677] additional peer events not decoded in associations listing <perlinger@@ntp.org>
  - original patch by Gerry Garvey
* [Bug 3676] compiler warnings (CMAC, interrupt_buf, typo, fallthrough)
  - applied patches by Gerry Garvey
* [Bug 3675] ntpq ccmds[] stores pointer to non-persistent storage
* [Bug 3674] ntpq command 'execute only' using '~' prefix <perlinger@@ntp.org>
  - idea+patch by Gerry Garvey
* [Bug 3672] fix biased selection in median cut <perlinger@@ntp.org>
* [Bug 3666] avoid unlimited receive buffer allocation <perlinger@@ntp.org>
  - follow-up: fix inverted sense in check, reset shortfall counter
* [Bug 3660] Revert 4.2.8p15 change to manycast. <hart@@ntp.org>
* [Bug 3640] document "discard monitor" and fix the code. <hart@@ntp.org>
  - fixed bug identified by Edward McGuire <perlinger@@ntp.org>
* [Bug 3626] (SNTP) UTC offset calculation needs dst flag <perlinger@@ntp.org>
  - applied patch by Gerry Garvey
* [Bug 3428] ntpd spinning consuming CPU on Linux router with full table.
             Reported by Israel G. Lugo. <hart@@ntp.org>
* [Bug 3103] libopts zsave_warn format string too few arguments <bkorb@@gnu.org>
* [Bug 2990] multicastclient incorrectly causes bind to broadcast address.
             Integrated patch from Brian Utterback. <hart@@ntp.org>
* [Bug 2525] Turn on automake subdir-objects across the project. <hart@@ntp.org>
* [Bug 2410] syslog an error message on panic exceeded. <brian.utterback@@oracle.com>
* Use correct rounding in mstolfp(). perlinger/hart
* M_ADDF should use u_int32.  <hart@@ntp.org>
* Only define tv_fmt_libbuf() if we will use it. <stenn@@ntp.org>
* Use recv_buffer instead of the longer recv_space.X_recv_buffer. hart/stenn
* Make sure the value returned by refid_str() prints cleanly. <stenn@@ntp.org>
* If DEBUG is enabled, the startup banner now says that debug assertions
  are in force and that ntpd will abort if any are violated. <stenn@@ntp.org>
* syslog valid incoming KoDs.  <stenn@@ntp.org>
* Rename a poorly-named variable.  <stenn@@ntp.org>
* Disable "embedded NUL in string" messages in libopts, when we can. <stenn@@>
* Use https in the AC_INIT URLs in configure.ac.  <stenn@@ntp.org>
* Implement NTP_FUNC_REALPATH.  <stenn@@ntp.org>
* Lose a gmake construct in ntpd/Makefile.am.  <stenn@@ntp.org>
* upgrade to: autogen-5.18.16
* upgrade to: libopts-42.1.17
* upgrade to: autoconf-2.71
* upgrade to: automake-1.16.15
* Upgrade to libevent-2.1.12-stable <stenn@@ntp.org>
* Support OpenSSL-3.0
@
text
@d3 1
a3 1
# Generated by GNU Autoconf 2.71 for ntp 4.2.8p18.
d5 1
a5 1
# Report bugs to <https://bugs.ntp.org/>.
d8 1
a8 2
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
# Inc.
d19 1
a19 3
as_nop=:
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
d26 1
a26 1
else $as_nop
a35 8

# Reset variables that may have inherited troublesome values from
# the environment.

# IFS needs to be set, to space, tab, and newline, in precisely that order.
# (If _AS_PATH_WALK were called with IFS unset, it would have the
# side effect of setting IFS to empty, thus disabling word splitting.)
# Quoting is to prevent editors from complaining about space-tab.
d39 34
a72 26
IFS=" ""	$as_nl"

PS1='$ '
PS2='> '
PS4='+ '

# Ensure predictable behavior from utilities with locale-dependent output.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# We cannot yet rely on "unset" to work, but we need these variables
# to be unset--not just set to an empty or harmless value--now, to
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
# also avoids known problems related to "unset" and subshell syntax
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
do eval test \${$as_var+y} \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done

# Ensure that fds 0, 1, and 2 are open.
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
d75 1
a75 1
if ${PATH_SEPARATOR+false} :; then
d84 7
d99 2
a100 6
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
d112 1
a112 1
  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
d116 20
d157 2
a158 2
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
d163 1
a163 3
  as_bourne_compatible="as_nop=:
if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
d170 1
a170 1
else \$as_nop
d190 1
a190 2
if ( set x; as_fn_ret_success y && test x = \"\$1\" )
then :
d192 1
a192 1
else \$as_nop
a195 2
blah=\$(echo \$(echo blah))
test x\"\$blah\" = xblah || exit 1
d201 1
d209 2
a210 4
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
test \$(( 1 + 1 )) = 2 || exit 1"
  if (eval "$as_required") 2>/dev/null
then :
d212 1
a212 1
else $as_nop
d215 1
a215 2
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
then :
d217 1
a217 1
else $as_nop
d223 1
a223 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d229 1
a229 1
	     as_shell=$as_dir$as_base
d231 1
a231 2
		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
then :
d233 1
a233 2
		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
then :
d241 4
a245 10
if $as_found
then :

else $as_nop
  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi
fi
d248 1
a248 2
      if test "x$CONFIG_SHELL" != x
then :
d266 1
a266 1
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
d270 6
a275 7
    if test x$as_have_required = xno
then :
  printf "%s\n" "$0: This script requires a shell more modern than all"
  printf "%s\n" "$0: the shells that I found on your system."
  if test ${ZSH_VERSION+y} ; then
    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
d277 2
a278 2
    printf "%s\n" "$0: Please tell bug-autoconf@@gnu.org and
$0: https://bugs.ntp.org/ about your system, including any
a304 1

a321 8
# as_fn_nop
# ---------
# Do nothing but, unlike ":", preserve the value of $?.
as_fn_nop ()
{
  return $?
}
as_nop=as_fn_nop
d336 1
a336 1
      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
d345 1
a345 1
printf "%s\n" X"$as_dir" |
d384 1
a384 2
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
then :
d389 1
a389 1
else $as_nop
d401 1
a401 2
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
then :
d406 1
a406 1
else $as_nop
a412 8
# as_fn_nop
# ---------
# Do nothing but, unlike ":", preserve the value of $?.
as_fn_nop ()
{
  return $?
}
as_nop=as_fn_nop
d424 1
a424 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
d426 1
a426 1
  printf "%s\n" "$as_me: error: $2" >&2
d453 1
a453 1
printf "%s\n" X/"$0" |
d497 1
a497 1
    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
a510 4

# Determine whether it's possible to make 'echo' print without a newline.
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
# for compatibility with existing Makefiles.
a523 7
# For backward compatibility with old third-party macros, we provide
# the shell variables $as_echo and $as_echo_n.  New code should use
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
as_echo='printf %s\n'
as_echo_n='printf %s'


d593 4
a596 4
PACKAGE_VERSION='4.2.8p18'
PACKAGE_STRING='ntp 4.2.8p18'
PACKAGE_BUGREPORT='https://bugs.ntp.org/'
PACKAGE_URL='https://www.ntp.org/'
d600 6
a605 3
#include <stddef.h>
#ifdef HAVE_STDIO_H
# include <stdio.h>
d607 1
a607 1
#ifdef HAVE_STDLIB_H
d609 5
d616 3
d621 3
a629 9
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
d634 1
a634 2
ac_header_c_list=
ac_func_c_list=
d648 7
d681 1
a692 4
PATH_OPENSSL
VER_SUFFIX
LIBNTP_SUBMAKES_FALSE
LIBNTP_SUBMAKES_TRUE
a741 2
EGREP
GREP
a839 1
CPP
d844 3
a846 1
CC_NOFORMAT
d854 1
a875 3
CSCOPE
ETAGS
CTAGS
a917 1
runstatedir
d936 1
a936 2
SHELL
am__quote'
a945 1
enable_build_framework_help
d973 1
a973 5
with_crypto
with_openssl_libdir
with_openssl_incdir
enable_verbose_ssl
enable_openssl_random
d1035 5
a1055 1
enable_bug3767_fix
a1058 1
enable_magicpps
d1065 1
a1117 1
runstatedir='${localstatedir}/run'
d1147 2
d1189 1
a1189 1
      as_fn_error $? "invalid feature name: \`$ac_useropt'"
d1191 1
a1191 1
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
d1215 1
a1215 1
      as_fn_error $? "invalid feature name: \`$ac_useropt'"
d1217 1
a1217 1
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
a1369 9
  -runstatedir | --runstatedir | --runstatedi | --runstated \
  | --runstate | --runstat | --runsta | --runst | --runs \
  | --run | --ru | --r)
    ac_prev=runstatedir ;;
  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  | --run=* | --ru=* | --r=*)
    runstatedir=$ac_optarg ;;

d1419 1
a1419 1
      as_fn_error $? "invalid package name: \`$ac_useropt'"
d1421 1
a1421 1
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
d1435 1
a1435 1
      as_fn_error $? "invalid package name: \`$ac_useropt'"
d1437 1
a1437 1
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
d1481 1
a1481 1
    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
d1483 1
a1483 1
      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
d1499 1
a1499 1
    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
d1507 1
a1507 1
		libdir localedir mandir runstatedir
d1563 1
a1563 1
printf "%s\n" X"$as_myself" |
d1620 1
a1620 1
\`configure' configures ntp 4.2.8p18 to adapt to many kinds of systems.
a1659 1
  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
d1690 1
a1690 1
     short | recursive ) echo "Configuration of ntp 4.2.8p18:";;
a1701 2
  --enable-build-framework-help
                          + enable build framework help
d1733 1
a1733 1
  --enable-c99-snprintf   s use replacement printf family
d1740 1
a1740 7
  --with-crypto           + =openssl,libcrypto
  --with-openssl-libdir   + =/something/reasonable

  --with-openssl-incdir   + =search likely dirs

  --enable-verbose-ssl    - show crypto lib detection details
  --enable-openssl-random + Use SSL lib's secure random numbers
d1805 10
a1832 1
  --enable-bug3767-fix    + Disable debug assertion on OOB KoD RATE value
a1836 1
  --enable-magicpps       + try to auto-instantiate PPS devices on Linux
d1845 1
d1869 2
a1870 2
Report bugs to <https://bugs.ntp.org/>.
ntp home page: <https://www.ntp.org/>.
d1886 1
a1886 1
  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
d1888 1
a1888 1
  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
d1916 1
a1916 2
    # Check for configure.gnu first; this name is used for a wrapper for
    # Metaconfig's "Configure" on case-insensitive file systems.
d1924 1
a1924 1
      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
d1933 2
a1934 2
ntp configure 4.2.8p18
generated by GNU Autoconf 2.71
d1936 1
a1936 1
Copyright (C) 2021 Free Software Foundation, Inc.
d1953 1
a1953 1
  rm -f conftest.$ac_objext conftest.beam
d1960 1
a1960 1
printf "%s\n" "$ac_try_echo"; } >&5
d1968 1
a1968 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d1972 1
a1972 2
       } && test -s conftest.$ac_objext
then :
d1974 2
a1975 2
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
d1985 4
a1988 5
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
d1991 1
a1991 34
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  eval "$3=yes"
else $as_nop
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_compile

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  if { { ac_try="$ac_link"
d1997 2
a1998 2
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
d2005 3
a2007 3
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
d2009 1
a2009 5
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 test -x conftest$ac_exeext
       }
then :
d2011 2
a2012 2
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
d2015 1
a2015 1
	ac_retval=1
a2016 5
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d2020 92
a2111 1
} # ac_fn_c_try_link
d2115 2
a2116 2
# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
# executables *can* be run.
d2126 1
a2126 1
printf "%s\n" "$ac_try_echo"; } >&5
d2129 1
a2129 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d2136 1
a2136 1
printf "%s\n" "$ac_try_echo"; } >&5
d2139 2
a2140 3
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }
then :
d2142 3
a2144 3
else $as_nop
  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
       printf "%s\n" "$as_me: failed program was:" >&5
d2155 35
a2189 4
# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
d2192 2
a2193 1
  if { { ac_try="$ac_cpp conftest.$ac_ext"
d2199 2
a2200 2
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
d2207 3
a2209 3
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
d2211 4
a2214 2
       }
then :
d2216 2
a2217 2
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
d2220 1
a2220 1
    ac_retval=1
d2222 5
d2230 1
a2230 1
} # ac_fn_c_try_cpp
d2238 5
a2242 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d2250 9
a2258 1
   which can conflict with char $2 (); below.  */
a2259 1
#include <limits.h>
d2277 1
a2277 1
main (void)
d2284 1
a2284 2
if ac_fn_c_try_link "$LINENO"
then :
d2286 1
a2286 1
else $as_nop
d2289 1
a2289 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d2293 2
a2294 2
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
d2306 5
a2310 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d2316 1
a2316 1
main (void)
d2324 1
a2324 2
if ac_fn_c_try_compile "$LINENO"
then :
d2329 1
a2329 1
main (void)
d2337 1
a2337 2
if ac_fn_c_try_compile "$LINENO"
then :
d2339 1
a2339 1
else $as_nop
d2342 1
a2342 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2344 1
a2344 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2347 2
a2348 2
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
d2367 1
a2367 1
main (void)
d2377 1
a2377 2
if ac_fn_c_try_compile "$LINENO"
then :
d2384 1
a2384 1
main (void)
d2394 1
a2394 2
if ac_fn_c_try_compile "$LINENO"
then :
d2396 1
a2396 1
else $as_nop
d2404 1
a2404 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2406 1
a2406 1
else $as_nop
d2411 1
a2411 1
main (void)
d2421 1
a2421 2
if ac_fn_c_try_compile "$LINENO"
then :
d2428 1
a2428 1
main (void)
d2438 1
a2438 2
if ac_fn_c_try_compile "$LINENO"
then :
d2440 1
a2440 1
else $as_nop
d2448 1
a2448 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2450 1
a2450 1
else $as_nop
d2453 1
a2453 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2455 1
a2455 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2463 1
a2463 1
main (void)
d2473 1
a2473 2
if ac_fn_c_try_compile "$LINENO"
then :
d2475 1
a2475 1
else $as_nop
d2478 1
a2478 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2488 2
a2489 2
static long int longval (void) { return $2; }
static unsigned long int ulongval (void) { return $2; }
d2493 1
a2493 1
main (void)
d2521 1
a2521 2
if ac_fn_c_try_run "$LINENO"
then :
d2523 1
a2523 1
else $as_nop
d2536 2
a2537 2
# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
# ------------------------------------------------------------------
d2539 2
a2540 2
# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
ac_fn_check_decl ()
a2543 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
printf %s "checking whether $as_decl_name is declared... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d2545 5
a2549 2
  eval ac_save_FLAGS=\$$6
  as_fn_append $6 " $5"
d2554 1
a2554 1
main (void)
d2568 1
a2568 2
if ac_fn_c_try_compile "$LINENO"
then :
d2570 1
a2570 1
else $as_nop
d2573 1
a2573 3
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  eval $6=\$ac_save_FLAGS

d2576 2
a2577 2
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
d2580 1
a2580 1
} # ac_fn_check_decl
d2589 5
a2593 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
printf %s "checking for $2.$3... " >&6; }
if eval test \${$4+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d2598 1
a2598 1
main (void)
d2607 1
a2607 2
if ac_fn_c_try_compile "$LINENO"
then :
d2609 1
a2609 1
else $as_nop
d2614 1
a2614 1
main (void)
d2623 1
a2623 2
if ac_fn_c_try_compile "$LINENO"
then :
d2625 1
a2625 1
else $as_nop
d2628 1
a2628 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2630 1
a2630 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d2633 2
a2634 2
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
a2637 20
ac_configure_args_raw=
for ac_arg
do
  case $ac_arg in
  *\'*)
    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  esac
  as_fn_append ac_configure_args_raw " '$ac_arg'"
done

case $ac_configure_args_raw in
  *$as_nl*)
    ac_safe_unquote= ;;
  *)
    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
    ac_unsafe_a="$ac_unsafe_z#~"
    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
esac

d2642 2
a2643 2
It was created by ntp $as_me 4.2.8p18, which was
generated by GNU Autoconf 2.71.  Invocation command line was
d2645 1
a2645 1
  $ $0$ac_configure_args_raw
d2678 2
a2679 6
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    printf "%s\n" "PATH: $as_dir"
d2714 1
a2714 1
      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a2748 2
  # Sanitize IFS.
  IFS=" ""	$as_nl"
d2753 1
a2753 1
    printf "%s\n" "## ---------------- ##
d2764 2
a2765 2
      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
d2789 1
a2789 1
    printf "%s\n" "## ----------------- ##
d2797 1
a2797 1
      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
d2799 1
a2799 1
      printf "%s\n" "$ac_var='\''$ac_val'\''"
d2804 1
a2804 1
      printf "%s\n" "## ------------------- ##
d2812 1
a2812 1
	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
d2814 1
a2814 1
	printf "%s\n" "$ac_var='\''$ac_val'\''"
d2820 1
a2820 1
      printf "%s\n" "## ----------- ##
d2828 2
a2829 2
      printf "%s\n" "$as_me: caught signal $ac_signal"
    printf "%s\n" "$as_me: exit $exit_status"
d2843 1
a2843 1
printf "%s\n" "/* confdefs.h */" > confdefs.h
d2847 3
a2849 1
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
d2851 3
a2853 1
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
d2855 3
a2857 1
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
d2859 3
a2861 1
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
d2863 3
a2865 1
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
d2867 3
a2869 1
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
d2874 2
d2877 6
a2882 1
  ac_site_files="$CONFIG_SITE"
d2884 2
a2885 1
  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
d2887 2
a2888 1
  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
d2890 1
a2890 2

for ac_site_file in $ac_site_files
d2892 4
a2895 9
  case $ac_site_file in #(
  */*) :
     ;; #(
  *) :
    ac_site_file=./$ac_site_file ;;
esac
  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
d2898 2
a2899 2
      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d2909 2
a2910 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
d2917 2
a2918 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
d2922 1
a2922 422
# Test code for whether the C compiler supports C89 (global declarations)
ac_c_conftest_c89_globals='
/* Does the compiler advertise C89 conformance?
   Do not test the value of __STDC__, because some compilers set it to 0
   while being otherwise adequately conformant. */
#if !defined __STDC__
# error "Compiler does not advertise C89 conformance"
#endif

#include <stddef.h>
#include <stdarg.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
struct buf { int x; };
struct buf * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not \xHH hex character constants.
   These do not provoke an error unfortunately, instead are silently treated
   as an "x".  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
   array size at least.  It is necessary to write \x00 == 0 to get something
   that is true only with -std.  */
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) '\''x'\''
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
               int, int);'

# Test code for whether the C compiler supports C89 (body of main).
ac_c_conftest_c89_main='
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
'

# Test code for whether the C compiler supports C99 (global declarations)
ac_c_conftest_c99_globals='
// Does the compiler advertise C99 conformance?
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
# error "Compiler does not advertise C99 conformance"
#endif

#include <stdbool.h>
extern int puts (const char *);
extern int printf (const char *, ...);
extern int dprintf (int, const char *, ...);
extern void *malloc (size_t);

// Check varargs macros.  These examples are taken from C99 6.10.3.5.
// dprintf is used instead of fprintf to avoid needing to declare
// FILE and stderr.
#define debug(...) dprintf (2, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}

// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  #error "your preprocessor is broken"
#endif
#if BIG_OK
#else
  #error "your preprocessor is broken"
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;

struct incomplete_array
{
  int datasize;
  double data[];
};

struct named_init {
  int number;
  const wchar_t *name;
  double average;
};

typedef const char *ccp;

static inline int
test_restrict (ccp restrict text)
{
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
    continue;
  return 0;
}

// Check varargs and va_copy.
static bool
test_varargs (const char *format, ...)
{
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);

  const char *str = "";
  int number = 0;
  float fnumber = 0;

  while (*format)
    {
      switch (*format++)
	{
	case '\''s'\'': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case '\''d'\'': // int
	  number = va_arg (args_copy, int);
	  break;
	case '\''f'\'': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);

  return *str && number && fnumber;
}
'

# Test code for whether the C compiler supports C99 (body of main).
ac_c_conftest_c99_main='
  // Check bool.
  _Bool success = false;
  success |= (argc != 0);

  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";

  // Check varargs.
  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[0] = argv[0][0];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
	 || dynamic_array[ni.number - 1] != 543);
'

# Test code for whether the C compiler supports C11 (global declarations)
ac_c_conftest_c11_globals='
// Does the compiler advertise C11 conformance?
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
# error "Compiler does not advertise C11 conformance"
#endif

// Check _Alignas.
char _Alignas (double) aligned_as_double;
char _Alignas (0) no_special_alignment;
extern char aligned_as_int;
char _Alignas (0) _Alignas (int) aligned_as_int;

// Check _Alignof.
enum
{
  int_alignment = _Alignof (int),
  int_array_alignment = _Alignof (int[100]),
  char_alignment = _Alignof (char)
};
_Static_assert (0 < -_Alignof (int), "_Alignof is signed");

// Check _Noreturn.
int _Noreturn does_not_return (void) { for (;;) continue; }

// Check _Static_assert.
struct test_static_assert
{
  int x;
  _Static_assert (sizeof (int) <= sizeof (long int),
                  "_Static_assert does not work in struct");
  long int y;
};

// Check UTF-8 literals.
#define u8 syntax error!
char const utf8_literal[] = u8"happens to be ASCII" "another string";

// Check duplicate typedefs.
typedef long *long_ptr;
typedef long int *long_ptr;
typedef long_ptr long_ptr;

// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
struct anonymous
{
  union {
    struct { int i; int j; };
    struct { int k; long int l; } w;
  };
  int m;
} v1;
'

# Test code for whether the C compiler supports C11 (body of main).
ac_c_conftest_c11_main='
  _Static_assert ((offsetof (struct anonymous, i)
		   == offsetof (struct anonymous, w.k)),
		  "Anonymous union alignment botch");
  v1.i = 2;
  v1.w.k = 5;
  ok |= v1.i != 5;
'

# Test code for whether the C compiler supports C11 (complete).
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
${ac_c_conftest_c99_globals}
${ac_c_conftest_c11_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  ${ac_c_conftest_c99_main}
  ${ac_c_conftest_c11_main}
  return ok;
}
"

# Test code for whether the C compiler supports C99 (complete).
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
${ac_c_conftest_c99_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  ${ac_c_conftest_c99_main}
  return ok;
}
"

# Test code for whether the C compiler supports C89 (complete).
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  return ok;
}
"

as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
as_fn_append ac_func_c_list " fork HAVE_FORK"
as_fn_append ac_func_c_list " vfork HAVE_VFORK"
as_fn_append ac_header_c_list " stdarg.h stdarg_h HAVE_STDARG_H"

# Auxiliary files required by this configure script.
ac_aux_files="ltmain.sh ar-lib compile config.guess config.sub missing install-sh"

# Locations in which to look for auxiliary files.
ac_aux_dir_candidates="${srcdir}/sntp/libevent/build-aux"

# Search for a directory containing all of the required auxiliary files,
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
# If we don't find one directory that contains all the files we need,
# we report the set of missing files from the *first* directory in
# $ac_aux_dir_candidates and give up.
ac_missing_aux_files=""
ac_first_candidate=:
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in $ac_aux_dir_candidates
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
  as_found=:

  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
  ac_aux_dir_found=yes
  ac_install_sh=
  for ac_aux in $ac_aux_files
  do
    # As a special case, if "install-sh" is required, that requirement
    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
    # and $ac_install_sh is set appropriately for whichever one is found.
    if test x"$ac_aux" = x"install-sh"
    then
      if test -f "${as_dir}install-sh"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
        ac_install_sh="${as_dir}install-sh -c"
      elif test -f "${as_dir}install.sh"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
        ac_install_sh="${as_dir}install.sh -c"
      elif test -f "${as_dir}shtool"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
        ac_install_sh="${as_dir}shtool install -c"
      else
        ac_aux_dir_found=no
        if $ac_first_candidate; then
          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
        else
          break
        fi
      fi
    else
      if test -f "${as_dir}${ac_aux}"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
      else
        ac_aux_dir_found=no
        if $ac_first_candidate; then
          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
        else
          break
        fi
      fi
    fi
  done
  if test "$ac_aux_dir_found" = yes; then
    ac_aux_dir="$as_dir"
    break
  fi
  ac_first_candidate=false

  as_found=false
done
IFS=$as_save_IFS
if $as_found
then :

else $as_nop
  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
fi


# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
if test -f "${ac_aux_dir}config.guess"; then
  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
fi
if test -f "${ac_aux_dir}config.sub"; then
  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
fi
if test -f "$ac_aux_dir/configure"; then
  ac_configure="$SHELL ${ac_aux_dir}configure"
fi

d2933 2
a2934 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d2937 2
a2938 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d2947 2
a2948 2
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
d2951 2
a2952 2
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
d2955 4
a2958 4
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
d2964 1
a2964 1
    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d2974 5
a2978 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
	    and start over" "$LINENO" 5
d2992 28
d3052 1
a3052 1
ntp_configure_cache_version=20240218
d3133 1
a3133 1
	    { eval $c_varname=; unset $c_varname;}
d3136 6
a3141 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
printf "%s\n" "$as_me: $cache_file saved by another version, ignored." >&6;}
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
printf "%s\n" "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
printf "%s\n" "$as_me: $cache_file version: $c_version" >&6;}
d3157 1
a3157 1
am__api_version='1.16'
d3159 1
a3159 3


  # Find a good install program.  We prefer a C program (faster),
d3173 2
a3174 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
printf %s "checking for a BSD-compatible install... " >&6; }
d3176 3
a3178 4
if test ${ac_cv_path_install+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3183 4
a3186 8
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    # Account for fact that we put trailing slashes in our PATH walk.
case $as_dir in #((
  ./ | /[cC]/* | \
d3196 1
a3196 1
	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
d3198 1
a3198 1
	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
d3202 1
a3202 1
	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
d3210 1
a3210 1
	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
d3215 1
a3215 1
	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
d3231 1
a3231 1
  if test ${ac_cv_path_install+y}; then
d3241 2
a3242 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
printf "%s\n" "$INSTALL" >&6; }
d3252 2
a3253 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
printf %s "checking whether build environment is sane... " >&6; }
d3307 2
a3308 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
d3327 1
a3327 2
program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`

d3332 7
a3338 3

  if test x"${MISSING+set}" != xset; then
  MISSING="\${SHELL} '$am_aux_dir/missing'"
d3345 2
a3346 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
d3366 5
a3370 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_STRIP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3378 1
a3378 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d3380 1
a3380 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d3382 1
a3382 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d3393 2
a3394 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
printf "%s\n" "$STRIP" >&6; }
d3396 2
a3397 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d3406 5
a3410 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_STRIP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3418 1
a3418 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d3420 1
a3420 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d3422 1
a3422 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d3433 2
a3434 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
printf "%s\n" "$ac_ct_STRIP" >&6; }
d3436 2
a3437 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d3445 2
a3446 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d3458 2
a3459 3

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
printf %s "checking for a race-free mkdir -p... " >&6; }
d3461 3
a3463 4
  if test ${ac_cv_path_mkdir+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3468 1
a3468 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d3471 4
a3474 4
	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir ('*'coreutils) '* | \
	     'BusyBox '* | \
d3476 1
a3476 1
	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
d3487 1
a3487 1
  if test ${ac_cv_path_mkdir+y}; then
d3497 2
a3498 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
printf "%s\n" "$MKDIR_P" >&6; }
d3504 5
a3508 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_AWK+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3516 1
a3516 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d3518 1
a3518 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d3520 1
a3520 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d3531 2
a3532 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
printf "%s\n" "$AWK" >&6; }
d3534 2
a3535 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d3542 2
a3543 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
d3545 4
a3548 5
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval test \${ac_cv_prog_make_${ac_make}_set+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3564 2
a3565 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
d3568 2
a3569 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d3583 1
a3583 2
if test ${enable_silent_rules+y}
then :
d3593 6
a3598 7
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
printf %s "checking whether $am_make supports nested variables... " >&6; }
if test ${am_cv_make_support_nested_variables+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if printf "%s\n" 'TRUE=$(BAR$(V))
d3610 2
a3611 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
d3643 1
a3643 1
 VERSION='4.2.8p18'
d3646 3
a3648 1
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
d3651 3
a3653 1
printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
d3673 2
a3674 2
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
a3692 14
# Variables for tags utilities; see am/tags.am
if test -z "$CTAGS"; then
  CTAGS=ctags
fi

if test -z "$ETAGS"; then
  ETAGS=etags
fi

if test -z "$CSCOPE"; then
  CSCOPE=cscope
fi


d3725 1
a3725 1
that behaves properly: <https://www.gnu.org/software/coreutils/>.
d3738 1
a3738 2
if test ${enable_silent_rules+y}
then :
d3748 6
a3753 7
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
printf %s "checking whether $am_make supports nested variables... " >&6; }
if test ${am_cv_make_support_nested_variables+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if printf "%s\n" 'TRUE=$(BAR$(V))
d3765 2
a3766 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
d3777 9
a3785 12


  # Make sure we can run config.sub.
$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
printf %s "checking build system type... " >&6; }
if test ${ac_cv_build+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3788 1
a3788 1
  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
d3791 2
a3792 2
ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
d3795 2
a3796 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
printf "%s\n" "$ac_cv_build" >&6; }
d3815 5
a3819 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
printf %s "checking host system type... " >&6; }
if test ${ac_cv_host+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3823 2
a3824 2
  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
d3828 2
a3829 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
printf "%s\n" "$ac_cv_host" >&6; }
d3849 3
a3851 1
printf "%s\n" "#define STR_SYSTEM \"$host\"" >>confdefs.h
a3855 19
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should enable build framework help" >&5
printf %s "checking if we should enable build framework help... " >&6; }
# Check whether --enable-build-framework-help was given.
if test ${enable_build_framework_help+y}
then :
  enableval=$enable_build_framework_help; ntp_ok=$enableval
else $as_nop
  ntp_ok=yes

fi

case "$ntp_ok" in
 yes)
    ntp_cv_build_framework_help=yes ;;
 *) ntp_cv_build_framework_help=no ;;
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }

a3861 9









d3866 3
a3868 3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
cat > confinc.mk << 'END'
d3870 1
a3870 1
	@@echo this is the am__doit target >confinc.out
d3873 3
d3878 19
a3896 20
# BSD make does it like this.
echo '.include "confinc.mk" # ignored' > confmf.BSD
# Other make implementations (GNU, Solaris 10, AIX) do it like this.
echo 'include confinc.mk # ignored' > confmf.GNU
_am_result=no
for s in GNU BSD; do
  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }
  case $?:`cat confinc.out 2>/dev/null` in #(
  '0:this is the am__doit target') :
    case $s in #(
  BSD) :
    am__include='.include' am__quote='"' ;; #(
  *) :
    am__include='include' am__quote='' ;;
esac ;; #(
  *) :
d3898 7
a3904 9
esac
  if test "$am__include" != "#"; then
    _am_result="yes ($s style)"
    break
  fi
done
rm -f confinc.* confmf.*
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
printf "%s\n" "${_am_result}" >&6; }
d3907 1
a3907 2
if test ${enable_dependency_tracking+y}
then :
d3948 5
a3952 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d3960 1
a3960 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d3962 1
a3962 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d3964 1
a3964 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d3975 2
a3976 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
d3978 2
a3979 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d3992 5
a3996 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d4004 1
a4004 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d4006 1
a4006 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d4008 1
a4008 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d4019 2
a4020 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
printf "%s\n" "$ac_ct_CC" >&6; }
d4022 2
a4023 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d4035 2
a4036 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d4044 2
a4045 2
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d4050 1
a4050 1
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
d4053 1
a4053 1
for ac_option in --version -v -V -qversion -version; do
d4060 1
a4060 1
printf "%s\n" "$ac_try_echo"; } >&5
d4070 1
a4070 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d4078 1
a4078 1
main (void)
d4090 3
a4092 3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
printf %s "checking whether the C compiler works... " >&6; }
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
d4113 1
a4113 1
printf "%s\n" "$ac_try_echo"; } >&5
d4116 2
a4117 3
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
then :
d4134 1
a4134 1
	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
d4150 1
a4150 1
else $as_nop
d4153 4
a4156 5
if test -z "$ac_file"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
printf "%s\n" "$as_me: failed program was:" >&5
d4159 2
a4160 2
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d4163 8
a4170 8
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
printf %s "checking for C compiler default output file name... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
printf "%s\n" "$ac_file" >&6; }
d4175 2
a4176 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
printf %s "checking for suffix of executables... " >&6; }
d4183 1
a4183 1
printf "%s\n" "$ac_try_echo"; } >&5
d4186 2
a4187 3
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
then :
d4201 3
a4203 3
else $as_nop
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d4208 2
a4209 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
printf "%s\n" "$ac_cv_exeext" >&6; }
d4218 1
a4218 1
main (void)
d4230 2
a4231 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
printf %s "checking whether we are cross compiling... " >&6; }
d4239 1
a4239 1
printf "%s\n" "$ac_try_echo"; } >&5
d4242 1
a4242 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d4250 1
a4250 1
printf "%s\n" "$ac_try_echo"; } >&5
d4253 1
a4253 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d4260 3
a4262 3
	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot run C compiled programs.
d4268 2
a4269 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
printf "%s\n" "$cross_compiling" >&6; }
d4273 5
a4277 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
printf %s "checking for suffix of object files... " >&6; }
if test ${ac_cv_objext+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d4282 1
a4282 1
main (void)
d4296 1
a4296 1
printf "%s\n" "$ac_try_echo"; } >&5
d4299 2
a4300 3
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
then :
d4309 2
a4310 2
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
d4313 2
a4314 2
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d4320 2
a4321 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
printf "%s\n" "$ac_cv_objext" >&6; }
d4324 5
a4328 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
printf %s "checking whether the compiler supports GNU C... " >&6; }
if test ${ac_cv_c_compiler_gnu+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d4333 1
a4333 1
main (void)
d4343 1
a4343 2
if ac_fn_c_try_compile "$LINENO"
then :
d4345 1
a4345 1
else $as_nop
d4348 1
a4348 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d4352 2
a4353 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
ac_compiler_gnu=$ac_cv_c_compiler_gnu

d4359 1
a4359 1
ac_test_CFLAGS=${CFLAGS+y}
d4361 5
a4365 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
printf %s "checking whether $CC accepts -g... " >&6; }
if test ${ac_cv_prog_cc_g+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d4374 1
a4374 1
main (void)
d4381 1
a4381 2
if ac_fn_c_try_compile "$LINENO"
then :
d4383 1
a4383 1
else $as_nop
d4389 1
a4389 1
main (void)
d4396 1
a4396 2
if ac_fn_c_try_compile "$LINENO"
then :
d4398 1
a4398 1
else $as_nop
d4405 1
a4405 1
main (void)
d4412 1
a4412 2
if ac_fn_c_try_compile "$LINENO"
then :
d4415 1
a4415 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d4417 1
a4417 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d4419 1
a4419 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d4422 3
a4424 3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
if test $ac_test_CFLAGS; then
d4439 6
a4444 10
ac_prog_cc_stdc=no
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
printf %s "checking for $CC option to enable C11 features... " >&6; }
if test ${ac_cv_prog_cc_c11+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_prog_cc_c11=no
d4448 30
a4477 15
$ac_c_conftest_c11_program
_ACEOF
for ac_arg in '' -std=gnu11
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_c11=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cc_c11" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC
fi
d4479 4
a4482 45
if test "x$ac_cv_prog_cc_c11" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
  if test "x$ac_cv_prog_cc_c11" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
     CC="$CC $ac_cv_prog_cc_c11"
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  ac_prog_cc_stdc=c11
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
printf %s "checking for $CC option to enable C99 features... " >&6; }
if test ${ac_cv_prog_cc_c99+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c99_program
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_c99=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC
fi
d4484 13
a4496 31
if test "x$ac_cv_prog_cc_c99" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
  if test "x$ac_cv_prog_cc_c99" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
     CC="$CC $ac_cv_prog_cc_c99"
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  ac_prog_cc_stdc=c99
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
printf %s "checking for $CC option to enable C89 features... " >&6; }
if test ${ac_cv_prog_cc_c89+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c89_program
d4498 2
a4499 1
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d4502 1
a4502 2
  if ac_fn_c_try_compile "$LINENO"
then :
d4505 1
a4505 1
rm -f core conftest.err conftest.$ac_objext conftest.beam
d4510 1
d4512 14
a4526 17
if test "x$ac_cv_prog_cc_c89" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
  if test "x$ac_cv_prog_cc_c89" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
     CC="$CC $ac_cv_prog_cc_c89"
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  ac_prog_cc_stdc=c89
fi
d4535 1
a4535 2

  ac_ext=c
d4540 5
a4544 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
printf %s "checking whether $CC understands -c and -o together... " >&6; }
if test ${am_cv_prog_cc_c_o+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d4549 1
a4549 1
main (void)
d4577 2
a4578 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
d4596 5
a4600 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
printf %s "checking dependency style of $depcc... " >&6; }
if test ${am_cv_CC_dependencies_compiler_type+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d4707 2
a4708 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
d4725 20
a4744 3

ac_header= ac_cache=
for ac_item in $ac_header_c_list
d4746 16
a4761 12
  if test $ac_cache; then
    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
      printf "%s\n" "#define $ac_item 1" >> confdefs.h
    fi
    ac_header= ac_cache=
  elif test $ac_header; then
    ac_cache=$ac_item
  else
    ac_header=$ac_item
  fi
done
d4763 5
d4769 15
d4785 6
d4792 2
a4793 8




if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
then :

printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
d4796 15
a4810 12






  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
if test ${ac_cv_safe_to_define___extensions__+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d4813 8
d4822 3
a4824 15
#         define __EXTENSIONS__ 1
          $ac_includes_default
int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_safe_to_define___extensions__=yes
else $as_nop
  ac_cv_safe_to_define___extensions__=no
d4826 1
a4826 4
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
d4828 2
a4829 9
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
if test ${ac_cv_should_define__xopen_source+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_should_define__xopen_source=no
    if test $ac_cv_header_wchar_h = yes
then :
d4832 16
d4849 6
a4854 5
          #include <wchar.h>
          mbstate_t x;
int
main (void)
{
d4856 5
a4860 6
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
a4861 3
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d4863 44
a4906 6
            #define _XOPEN_SOURCE 500
            #include <wchar.h>
            mbstate_t x;
int
main (void)
{
d4908 10
a4917 7
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_should_define__xopen_source=yes
d4919 1
a4919 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d4921 3
a4923 5
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
a4924 1
  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
d4926 47
a4972 1
  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
d4974 11
a4984 1
  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
d4986 5
a4990 1
  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
a4991 1
  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
d4993 11
a5003 1
  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
d5005 3
a5007 1
  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d5009 10
a5018 1
  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
d5020 5
a5024 1
  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
d5026 3
a5028 1
  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
d5030 4
a5033 1
  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
d5035 1
a5035 1
  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
d5037 5
a5041 1
  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
d5043 3
a5045 1
  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
d5047 4
a5050 1
  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
d5052 1
a5052 4
  if test $ac_cv_header_minix_config_h = yes
then :
  MINIX=yes
    printf "%s\n" "#define _MINIX 1" >>confdefs.h
d5054 19
a5072 1
    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
d5074 13
a5086 1
    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
d5088 5
a5092 2
else $as_nop
  MINIX=
a5093 3
  if test $ac_cv_safe_to_define___extensions__ = yes
then :
  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
a5095 4
  if test $ac_cv_should_define__xopen_source = yes
then :
  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h

d5097 3
d5101 1
d5103 1
d5105 11
d5117 1
d5119 1
a5120 5
CC_NOFORMAT=
CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=
d5123 6
d5131 1
d5133 1
a5134 8
case "$ac_cv_prog_cc_c89" in
 no)
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
printf "%s\n" "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
esac
d5136 1
a5136 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
printf %s "checking if $CC can handle #warning... " >&6; }
if test ${ntp_cv_cpp_warning+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a5137 13
int
main (void)
{
#warning foo
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_cpp_warning=yes
else $as_nop
  ntp_cv_cpp_warning=no
d5139 1
a5139 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d5141 1
a5141 5
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
printf "%s\n" "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)
a5142 1
printf "%s\n" "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
d5144 5
a5148 8
esac

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
printf %s "checking if $CC supports __attribute__((...))... " >&6; }
if test ${ntp_cv_cc_attribute+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d5152 2
d5155 1
a5155 1
main (void)
a5156 1
void foo(void) __attribute__((__noreturn__));
d5162 4
a5165 6
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_cc_attribute=yes
else $as_nop
  ntp_cv_cc_attribute=no

d5167 1
a5167 2
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

d5169 4
a5172 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
printf "%s\n" "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)
d5174 1
a5174 1
printf "%s\n" "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
d5176 1
a5176 1
esac
d5178 1
d5180 1
a5180 12
case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$SAVED_CFLAGS -Wstrict-overflow"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
printf %s "checking if $CC can handle -Wstrict-overflow... " >&6; }
if test ${ntp_cv_gcc_Wstrict_overflow+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a5181 3
int
main (void)
{
a5182 9
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_gcc_Wstrict_overflow=yes
else $as_nop
  ntp_cv_gcc_Wstrict_overflow=no
d5184 18
a5201 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d5203 14
a5216 14
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
printf "%s\n" "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
printf %s "checking if $CC can handle -Winit-self... " >&6; }
if test ${ntp_cv_gcc_Winit_self+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d5218 13
a5230 2
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d5232 1
a5232 2
int
main (void)
d5234 9
d5244 10
a5253 1
  ;
a5255 6
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_gcc_Winit_self=yes
else $as_nop
  ntp_cv_gcc_Winit_self=no
d5257 8
a5264 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d5266 3
d5270 20
a5289 20
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
printf "%s\n" "$ntp_cv_gcc_Winit_self" >&6; }
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    # libopts specifically builds a string with embedded NULs.
    # This causes a bunch of distracting warnings due to -Wformat.
    #
    CFLAGS="$SAVED_CFLAGS -Wno-format -Wno-format-security"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wno-format -Wno-format-security" >&5
printf %s "checking if $CC can handle -Wno-format -Wno-format-security... " >&6; }
if test ${ntp_cv_gcc_Wno_format+y}
then :
  printf %s "(cached) " >&6
else $as_nop

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d5292 1
a5292 1
main (void)
d5295 35
d5334 11
a5344 5
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_gcc_Wno_format=yes
else $as_nop
  ntp_cv_gcc_Wno_format=no
d5347 46
a5392 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d5394 8
d5403 4
a5406 17
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wno_format" >&5
printf "%s\n" "$ntp_cv_gcc_Wno_format" >&6; }
    case "$ntp_cv_gcc_Wno_format" in
      no) ntp_cv_gcc_Wno_format_truncation=no
	  ;;
     yes)
	CC_NOFORMAT="-Wno-format -Wno-format-security"
	CFLAGS="$SAVED_CFLAGS -Wformat -Wno-format-truncation -Werror"
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wformat -Wno-format-truncation" >&5
printf %s "checking if $CC can handle -Wformat -Wno-format-truncation... " >&6; }
if test ${ntp_cv_gcc_Wno_format_truncation+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d5408 6
d5415 1
a5415 1
main (void)
d5417 1
a5417 1

d5422 12
a5433 5
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_gcc_Wno_format_truncation=yes
else $as_nop
  ntp_cv_gcc_Wno_format_truncation=no
d5436 18
a5453 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d5456 7
a5462 7
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wno_format_truncation" >&5
printf "%s\n" "$ntp_cv_gcc_Wno_format_truncation" >&6; }
	#
	# $ntp_cv_gcc_Wno_format_truncation is tested later to add the
	# flag to CFLAGS.
	#
    esac
d5464 11
a5474 2
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
a5475 21
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
printf %s "checking if linker supports omitting unused code and data... " >&6; }
if test ${ntp_cv_gc_sections_runs+y}
then :
  printf %s "(cached) " >&6
else $as_nop

	    #  NetBSD will link but likely not run with --gc-sections
	    #  http://bugs.ntp.org/1844
	    #  http://gnats.netbsd.org/40401
	    #  --gc-sections causes attempt to load as linux elf, with
	    #  wrong syscalls in place.  Test a little gauntlet of
	    #  simple stdio read code checking for errors, expecting
	    #  enough syscall differences that the NetBSD code will
	    #  fail even with Linux emulation working as designed.
	    #  A shorter test could be refined by someone with access
	    #  to a NetBSD host with Linux emulation working.
	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
a5476 2
			#include <stdlib.h>
			#include <stdio.h>
a5477 3
int
main (void)
{
a5478 4
			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;
d5480 2
a5481 13
			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);
d5483 19
a5501 1
			exit(EXIT_SUCCESS);
d5504 5
a5508 3
  ;
  return 0;
}
d5510 14
a5523 2
if ac_fn_c_try_link "$LINENO"
then :
a5524 6
		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi
d5526 215
a5740 2
else $as_nop
  ntp_cv_gc_sections_runs=no
d5743 1
a5743 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d5750 2
a5751 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
printf "%s\n" "$ntp_cv_gc_sections_runs" >&6; }
a5780 4
    case "$ntp_cv_gcc_Wno_format_truncation" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wno-format-truncation"
    esac
d5785 2
a5786 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
printf %s "checking additional compiler flags... " >&6; }
d5883 2
a5884 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
printf "%s\n" "$ntp_os_cflags_msg" >&6; }
d5887 2
a5888 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
printf %s "checking additional linker flags... " >&6; }
d5915 2
a5916 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
printf "%s\n" "$ntp_os_ldflags_msg" >&6; }
d5920 5
a5924 6
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
printf %s "checking whether byte ordering is bigendian... " >&6; }
if test ${ac_cv_c_bigendian+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d5935 1
a5935 2
if ac_fn_c_try_compile "$LINENO"
then :
d5959 1
a5959 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d5968 1
a5968 1
main (void)
d5980 1
a5980 2
if ac_fn_c_try_compile "$LINENO"
then :
d5988 1
a5988 1
main (void)
d5998 1
a5998 2
if ac_fn_c_try_compile "$LINENO"
then :
d6000 1
a6000 1
else $as_nop
d6003 1
a6003 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d6005 1
a6005 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d6014 1
a6014 1
main (void)
d6024 1
a6024 2
if ac_fn_c_try_compile "$LINENO"
then :
d6031 1
a6031 1
main (void)
d6041 1
a6041 2
if ac_fn_c_try_compile "$LINENO"
then :
d6043 1
a6043 1
else $as_nop
d6046 1
a6046 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d6048 1
a6048 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d6052 1
a6052 2
      if test "$cross_compiling" = yes
then :
d6056 1
a6056 1
unsigned short int ascii_mm[] =
d6058 1
a6058 1
		unsigned short int ascii_ii[] =
d6063 1
a6063 1
		unsigned short int ebcdic_ii[] =
d6065 1
a6065 1
		unsigned short int ebcdic_mm[] =
d6073 1
a6073 1
main (void)
d6080 1
a6080 2
if ac_fn_c_try_compile "$LINENO"
then :
d6093 2
a6094 2
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
else $as_nop
d6099 1
a6099 1
main (void)
d6115 1
a6115 2
if ac_fn_c_try_run "$LINENO"
then :
d6117 1
a6117 1
else $as_nop
d6126 2
a6127 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
printf "%s\n" "$ac_cv_c_bigendian" >&6; }
d6130 1
a6130 1
     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
d6136 1
a6136 1
printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
d6144 5
a6148 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
printf %s "checking for working volatile... " >&6; }
if test ${ac_cv_c_volatile+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d6153 1
a6153 1
main (void)
d6163 1
a6163 2
if ac_fn_c_try_compile "$LINENO"
then :
d6165 1
a6165 1
else $as_nop
d6168 1
a6168 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d6170 2
a6171 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
printf "%s\n" "$ac_cv_c_volatile" >&6; }
d6174 1
a6174 1
printf "%s\n" "#define volatile /**/" >>confdefs.h
d6183 2
a6184 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
printf %s "checking how to run the C preprocessor... " >&6; }
d6190 5
a6194 6
  if test ${ac_cv_prog_CPP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
      # Double quotes because $CC needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
d6201 2
d6207 5
a6211 1
#include <limits.h>
d6214 1
a6214 2
if ac_fn_c_try_cpp "$LINENO"
then :
d6216 1
a6216 1
else $as_nop
d6228 1
a6228 2
if ac_fn_c_try_cpp "$LINENO"
then :
d6231 1
a6231 1
else $as_nop
d6241 1
a6241 2
if $ac_preproc_ok
then :
d6253 2
a6254 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
printf "%s\n" "$CPP" >&6; }
d6260 2
d6266 5
a6270 1
#include <limits.h>
d6273 1
a6273 2
if ac_fn_c_try_cpp "$LINENO"
then :
d6275 1
a6275 1
else $as_nop
d6287 1
a6287 2
if ac_fn_c_try_cpp "$LINENO"
then :
d6290 1
a6290 1
else $as_nop
d6300 1
a6300 2
if $ac_preproc_ok
then :
d6302 3
a6304 3
else $as_nop
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6322 5
a6326 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_YACC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d6334 1
a6334 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d6336 1
a6336 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d6338 1
a6338 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d6349 2
a6350 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
printf "%s\n" "$YACC" >&6; }
d6352 2
a6353 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d6361 14
d6376 14
d6391 13
a6403 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
printf %s "checking whether the compiler supports C99 structure initialization... " >&6; }
d6405 5
d6411 5
a6415 5
	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6417 1
d6419 133
a6551 2
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d6557 6
a6562 7
if ac_fn_c_try_compile "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d6564 1
a6564 1
printf "%s\n" "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
d6567 1
a6567 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d6579 2
a6580 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
printf %s "checking for compile/link hardening flags... " >&6; }
d6584 1
a6584 2
if test ${with_hardenfile+y}
then :
d6586 1
a6586 1
else $as_nop
d6608 2
a6609 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
printf "%s\n" "in file $GENHARDFLAGFILE" >&6; }
d6613 2
a6614 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed." >&5
printf "%s\n" "failed." >&6; }
d6626 2
a6627 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
printf %s "checking to see if we need ylwrap VPATH hack... " >&6; }
d6641 2
a6642 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
printf "%s\n" "$ntp_vpath_hack" >&6; }
d6654 2
a6655 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
printf %s "checking for install dir and man conventions... " >&6; }
d6659 1
a6659 2
if test ${with_locfile+y}
then :
d6661 1
a6661 1
else $as_nop
d6683 2
a6684 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
printf "%s\n" "in file $GENLOCINFOFILE" >&6; }
d6688 2
a6689 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed." >&5
printf "%s\n" "failed." >&6; }
d6802 1
a6802 2

  if test -n "$ac_tool_prefix"; then
d6807 5
a6811 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_AR+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d6819 1
a6819 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d6821 1
a6821 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d6823 1
a6823 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d6834 2
a6835 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
printf "%s\n" "$AR" >&6; }
d6837 2
a6838 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d6851 5
a6855 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_AR+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d6863 1
a6863 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d6865 1
a6865 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d6867 1
a6867 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d6878 2
a6879 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
printf "%s\n" "$ac_ct_AR" >&6; }
d6881 2
a6882 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d6894 2
a6895 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d6904 5
a6908 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
printf %s "checking the archiver ($AR) interface... " >&6; }
if test ${am_cv_ar_interface+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d6920 1
a6920 2
if ac_fn_c_try_compile "$LINENO"
then :
d6925 1
a6925 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d6934 1
a6934 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d6945 1
a6945 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d6953 2
a6954 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
printf "%s\n" "$am_cv_ar_interface" >&6; }
d6974 1
d6977 31
d7010 2
a7011 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
a7030 1

d7054 2
a7055 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
printf %s "checking how to print strings... " >&6; }
d7081 6
a7086 6
  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
printf "%s\n" "printf" >&6; } ;;
  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
printf "%s\n" "print -r" >&6; } ;;
  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
printf "%s\n" "cat" >&6; } ;;
d7102 5
a7106 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
printf %s "checking for a sed that does not truncate output... " >&6; }
if test ${ac_cv_path_SED+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7120 2
a7121 7
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in sed gsed
   do
d7123 1
a7123 1
      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
d7132 1
a7132 1
  printf %s 0123456789 >"conftest.in"
d7138 1
a7138 1
    printf "%s\n" '' >> "conftest.nl"
d7166 2
a7167 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
printf "%s\n" "$ac_cv_path_SED" >&6; }
d7184 4
a7187 131
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; }
if test ${ac_cv_path_GREP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in grep ggrep
   do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_GREP" || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in egrep
   do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_EGREP" || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
a7188 16
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
printf %s "checking for fgrep... " >&6; }
if test ${ac_cv_path_FGREP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7199 2
a7200 7
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in fgrep
   do
d7202 1
a7202 1
      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
d7211 1
a7211 1
  printf %s 0123456789 >"conftest.in"
d7217 1
a7217 1
    printf "%s\n" 'FGREP' >> "conftest.nl"
d7246 2
a7247 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
printf "%s\n" "$ac_cv_path_FGREP" >&6; }
d7272 1
a7272 2
if test ${with_gnu_ld+y}
then :
d7274 1
a7274 1
else $as_nop
d7281 2
a7282 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
printf %s "checking for ld used by $CC... " >&6; }
d7311 2
a7312 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
printf %s "checking for GNU ld... " >&6; }
d7314 2
a7315 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
printf %s "checking for non-GNU ld... " >&6; }
d7317 3
a7319 4
if test ${lt_cv_path_LD+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7348 2
a7349 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
printf "%s\n" "$LD" >&6; }
d7351 2
a7352 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d7355 5
a7359 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
if test ${lt_cv_prog_gnu_ld+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7370 2
a7371 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
d7382 5
a7386 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if test ${lt_cv_path_NM+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7436 2
a7437 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
printf "%s\n" "$lt_cv_path_NM" >&6; }
d7450 5
a7454 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_DUMPBIN+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7462 1
a7462 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d7464 1
a7464 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d7466 1
a7466 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d7477 2
a7478 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
printf "%s\n" "$DUMPBIN" >&6; }
d7480 2
a7481 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d7494 5
a7498 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7506 1
a7506 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d7508 1
a7508 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d7510 1
a7510 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d7521 2
a7522 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
d7524 2
a7525 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d7537 2
a7538 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d7566 5
a7570 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
printf %s "checking the name lister ($NM) interface... " >&6; }
if test ${lt_cv_nm_interface+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7586 2
a7587 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
printf "%s\n" "$lt_cv_nm_interface" >&6; }
d7589 2
a7590 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
printf %s "checking whether ln -s works... " >&6; }
d7593 2
a7594 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
d7596 2
a7597 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
printf "%s\n" "no, using $LN_S" >&6; }
d7601 5
a7605 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
printf %s "checking the maximum length of command line arguments... " >&6; }
if test ${lt_cv_sys_max_cmd_len+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7732 2
a7733 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
d7735 2
a7736 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
printf "%s\n" "none" >&6; }
d7780 5
a7784 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
printf %s "checking how to convert $build file names to $host format... " >&6; }
if test ${lt_cv_to_host_file_cmd+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7820 2
a7821 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
d7827 5
a7831 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
printf %s "checking how to convert $build file names to toolchain format... " >&6; }
if test ${lt_cv_to_tool_file_cmd+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7847 2
a7848 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
d7854 5
a7858 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
printf %s "checking for $LD option to reload object files... " >&6; }
if test ${lt_cv_ld_reload_flag+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7861 2
a7862 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
d7895 5
a7899 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_OBJDUMP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7907 1
a7907 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d7909 1
a7909 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d7911 1
a7911 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d7922 2
a7923 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
printf "%s\n" "$OBJDUMP" >&6; }
d7925 2
a7926 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d7935 5
a7939 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d7947 1
a7947 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d7949 1
a7949 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d7951 1
a7951 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d7962 2
a7963 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
d7965 2
a7966 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d7974 2
a7975 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d7994 5
a7998 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
printf %s "checking how to recognize dependent libraries... " >&6; }
if test ${lt_cv_deplibs_check_method+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8194 2
a8195 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
d8239 5
a8243 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_DLLTOOL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8251 1
a8251 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d8253 1
a8253 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d8255 1
a8255 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d8266 2
a8267 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
printf "%s\n" "$DLLTOOL" >&6; }
d8269 2
a8270 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d8279 5
a8283 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8291 1
a8291 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d8293 1
a8293 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d8295 1
a8295 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d8306 2
a8307 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
d8309 2
a8310 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d8318 2
a8319 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d8339 5
a8343 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
printf %s "checking how to associate runtime and link libraries... " >&6; }
if test ${lt_cv_sharedlib_from_linklib_cmd+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8366 2
a8367 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
d8382 5
a8386 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_AR+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8394 1
a8394 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d8396 1
a8396 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d8398 1
a8398 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d8409 2
a8410 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
printf "%s\n" "$AR" >&6; }
d8412 2
a8413 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d8426 5
a8430 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_AR+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8438 1
a8438 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d8440 1
a8440 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d8442 1
a8442 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d8453 2
a8454 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
printf "%s\n" "$ac_ct_AR" >&6; }
d8456 2
a8457 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d8469 2
a8470 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d8490 5
a8494 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @@FILE support" >&5
printf %s "checking for archiver @@FILE support... " >&6; }
if test ${lt_cv_ar_at_file+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8500 1
a8500 1
main (void)
d8507 1
a8507 2
if ac_fn_c_try_compile "$LINENO"
then :
d8513 1
a8513 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d8521 1
a8521 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d8530 1
a8530 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d8533 2
a8534 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
printf "%s\n" "$lt_cv_ar_at_file" >&6; }
d8551 5
a8555 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_STRIP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8563 1
a8563 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d8565 1
a8565 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d8567 1
a8567 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d8578 2
a8579 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
printf "%s\n" "$STRIP" >&6; }
d8581 2
a8582 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d8591 5
a8595 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_STRIP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8603 1
a8603 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d8605 1
a8605 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d8607 1
a8607 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d8618 2
a8619 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
printf "%s\n" "$ac_ct_STRIP" >&6; }
d8621 2
a8622 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d8630 2
a8631 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d8650 5
a8654 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_RANLIB+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8662 1
a8662 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d8664 1
a8664 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d8666 1
a8666 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d8677 2
a8678 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
printf "%s\n" "$RANLIB" >&6; }
d8680 2
a8681 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d8690 5
a8694 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_RANLIB+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8702 1
a8702 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d8704 1
a8704 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d8706 1
a8706 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d8717 2
a8718 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
printf "%s\n" "$ac_ct_RANLIB" >&6; }
d8720 2
a8721 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d8729 2
a8730 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d8819 5
a8823 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
printf %s "checking command to parse $NM output from $compiler object... " >&6; }
if test ${lt_cv_sys_global_symbol_pipe+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d8975 1
a8975 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d8982 1
a8982 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d9051 1
a9051 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d9086 2
a9087 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
printf "%s\n" "failed" >&6; }
d9089 2
a9090 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
printf "%s\n" "ok" >&6; }
d9136 2
a9137 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
printf %s "checking for sysroot... " >&6; }
d9140 1
a9140 2
if test ${with_sysroot+y}
then :
d9142 1
a9142 1
else $as_nop
d9160 2
a9161 2
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
printf "%s\n" "$with_sysroot" >&6; }
d9166 2
a9167 2
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
printf "%s\n" "${lt_sysroot:-no}" >&6; }
d9173 5
a9177 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
printf %s "checking for a working dd... " >&6; }
if test ${ac_cv_path_lt_DD+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9188 2
a9189 7
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in dd
   do
d9191 1
a9191 1
      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
d9211 2
a9212 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
d9215 5
a9219 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
printf %s "checking how to truncate binary pipes... " >&6; }
if test ${lt_cv_truncate_bin+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9230 2
a9231 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
printf "%s\n" "$lt_cv_truncate_bin" >&6; }
d9254 1
a9254 2
if test ${enable_libtool_lock+y}
then :
d9270 1
a9270 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d9290 1
a9290 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d9328 1
a9328 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d9369 1
a9369 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d9432 5
a9436 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
printf %s "checking whether the C compiler needs -belf... " >&6; }
if test ${lt_cv_cc_needs_belf+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9447 1
a9447 1
main (void)
d9454 1
a9454 2
if ac_fn_c_try_link "$LINENO"
then :
d9456 1
a9456 1
else $as_nop
d9459 1
a9459 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d9468 2
a9469 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
d9482 1
a9482 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d9519 5
a9523 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_MANIFEST_TOOL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9531 1
a9531 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9533 1
a9533 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9535 1
a9535 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9546 2
a9547 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
printf "%s\n" "$MANIFEST_TOOL" >&6; }
d9549 2
a9550 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9559 5
a9563 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9571 1
a9571 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9573 1
a9573 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9575 1
a9575 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9586 2
a9587 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
d9589 2
a9590 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9598 2
a9599 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d9609 5
a9613 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
if test ${lt_cv_path_mainfest_tool+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9623 2
a9624 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
d9639 5
a9643 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_DSYMUTIL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9651 1
a9651 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9653 1
a9653 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9655 1
a9655 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9666 2
a9667 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
printf "%s\n" "$DSYMUTIL" >&6; }
d9669 2
a9670 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9679 5
a9683 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9691 1
a9691 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9693 1
a9693 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9695 1
a9695 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9706 2
a9707 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
d9709 2
a9710 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9718 2
a9719 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d9731 5
a9735 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_NMEDIT+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9743 1
a9743 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9745 1
a9745 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9747 1
a9747 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9758 2
a9759 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
printf "%s\n" "$NMEDIT" >&6; }
d9761 2
a9762 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9771 5
a9775 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_NMEDIT+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9783 1
a9783 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9785 1
a9785 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9787 1
a9787 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9798 2
a9799 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
printf "%s\n" "$ac_ct_NMEDIT" >&6; }
d9801 2
a9802 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9810 2
a9811 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d9823 5
a9827 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_LIPO+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9835 1
a9835 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9837 1
a9837 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9839 1
a9839 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9850 2
a9851 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
printf "%s\n" "$LIPO" >&6; }
d9853 2
a9854 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9863 5
a9867 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_LIPO+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9875 1
a9875 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9877 1
a9877 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9879 1
a9879 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9890 2
a9891 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
printf "%s\n" "$ac_ct_LIPO" >&6; }
d9893 2
a9894 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9902 2
a9903 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d9915 5
a9919 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_OTOOL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9927 1
a9927 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9929 1
a9929 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9931 1
a9931 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9942 2
a9943 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
printf "%s\n" "$OTOOL" >&6; }
d9945 2
a9946 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9955 5
a9959 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_OTOOL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d9967 1
a9967 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d9969 1
a9969 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d9971 1
a9971 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d9982 2
a9983 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
printf "%s\n" "$ac_ct_OTOOL" >&6; }
d9985 2
a9986 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d9994 2
a9995 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d10007 5
a10011 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_OTOOL64+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10019 1
a10019 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d10021 1
a10021 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d10023 1
a10023 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d10034 2
a10035 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
printf "%s\n" "$OTOOL64" >&6; }
d10037 2
a10038 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d10047 5
a10051 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_OTOOL64+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10059 1
a10059 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d10061 1
a10061 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d10063 1
a10063 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d10074 2
a10075 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
printf "%s\n" "$ac_ct_OTOOL64" >&6; }
d10077 2
a10078 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d10086 2
a10087 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d10122 5
a10126 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
printf %s "checking for -single_module linker flag... " >&6; }
if test ${lt_cv_apple_cc_single_mod+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10155 2
a10156 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
d10158 5
a10162 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
printf %s "checking for -exported_symbols_list linker flag... " >&6; }
if test ${lt_cv_ld_exported_symbols_list+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10171 1
a10171 1
main (void)
d10178 1
a10178 2
if ac_fn_c_try_link "$LINENO"
then :
d10180 1
a10180 1
else $as_nop
d10183 1
a10183 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d10188 2
a10189 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
d10191 5
a10195 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
printf %s "checking for -force_load linker flag... " >&6; }
if test ${lt_cv_ld_force_load+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10223 2
a10224 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
printf "%s\n" "$lt_cv_ld_force_load" >&6; }
d10295 3
a10297 1
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
d10299 4
a10302 3
if test "x$ac_cv_header_dlfcn_h" = xyes
then :
  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
d10306 2
a10312 30
# Check whether --enable-shared was given.
if test ${enable_shared+y}
then :
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
      for pkg in $enableval; do
	IFS=$lt_save_ifs
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS=$lt_save_ifs
      ;;
    esac
else $as_nop
  enable_shared=no
fi







d10324 1
a10324 2
if test ${enable_static+y}
then :
d10342 1
a10342 1
else $as_nop
d10356 1
a10356 2
if test ${with_pic+y}
then :
d10373 1
a10373 1
else $as_nop
d10385 1
a10385 2
if test ${enable_fast_install+y}
then :
d10403 1
a10403 1
else $as_nop
d10417 2
a10418 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
printf %s "checking which variant of shared library versioning to provide... " >&6; }
d10421 1
a10421 2
if test ${with_aix_soname+y}
then :
d10430 4
a10433 5
else $as_nop
  if test ${lt_cv_with_aix_soname+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10440 2
a10441 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
printf "%s\n" "$with_aix_soname" >&6; }
d10523 5
a10527 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
printf %s "checking for objdir... " >&6; }
if test ${lt_cv_objdir+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10538 2
a10539 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
printf "%s\n" "$lt_cv_objdir" >&6; }
d10546 3
a10548 1
printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
d10594 5
a10598 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
printf %s "checking for ${ac_tool_prefix}file... " >&6; }
if test ${lt_cv_path_MAGIC_CMD+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10647 2
a10648 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
printf "%s\n" "$MAGIC_CMD" >&6; }
d10650 2
a10651 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d10660 5
a10664 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
printf %s "checking for file... " >&6; }
if test ${lt_cv_path_MAGIC_CMD+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10713 2
a10714 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
printf "%s\n" "$MAGIC_CMD" >&6; }
d10716 2
a10717 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d10802 5
a10806 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
if test ${lt_cv_prog_compiler_rtti_exceptions+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d10837 2
a10838 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d11195 5
a11199 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
printf %s "checking for $compiler option to produce PIC... " >&6; }
if test ${lt_cv_prog_compiler_pic+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d11202 2
a11203 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
d11210 5
a11214 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
if test ${lt_cv_prog_compiler_pic_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d11245 2
a11246 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
d11274 5
a11278 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if test ${lt_cv_prog_compiler_static_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d11302 2
a11303 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
d11317 5
a11321 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test ${lt_cv_prog_compiler_c_o+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d11364 2
a11365 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
d11372 5
a11376 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test ${lt_cv_prog_compiler_c_o+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d11419 2
a11420 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
d11428 2
a11429 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
printf %s "checking if we can lock with hard links... " >&6; }
d11436 2
a11437 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
printf "%s\n" "$hard_links" >&6; }
d11439 2
a11440 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
d11452 2
a11453 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d12008 3
a12010 4
  if test ${lt_cv_aix_libpath_+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d12015 1
a12015 1
main (void)
d12022 1
a12022 2
if ac_fn_c_try_link "$LINENO"
then :
d12037 1
a12037 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d12061 3
a12063 4
  if test ${lt_cv_aix_libpath_+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d12068 1
a12068 1
main (void)
d12075 1
a12075 2
if ac_fn_c_try_link "$LINENO"
then :
d12090 1
a12090 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d12341 5
a12345 6
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
printf %s "checking if $CC understands -b... " >&6; }
if test ${lt_cv_prog_compiler__b+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d12369 2
a12370 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
d12410 5
a12414 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
if test ${lt_cv_irix_exported_symbol+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d12421 1
a12421 2
if ac_fn_c_try_link "$LINENO"
then :
d12423 1
a12423 1
else $as_nop
d12426 1
a12426 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d12430 2
a12431 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
d12711 2
a12712 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
printf "%s\n" "$ld_shlibs" >&6; }
d12748 5
a12752 6
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
printf %s "checking whether -lc should be explicitly linked in... " >&6; }
if test ${lt_cv_archive_cmds_need_lc+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d12759 1
a12759 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d12777 1
a12777 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d12791 2
a12792 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
d12951 2
a12952 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
printf %s "checking dynamic linker characteristics... " >&6; }
d13513 3
a13515 4
  if test ${lt_cv_shlibpath_overrides_runpath+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d13525 1
a13525 1
main (void)
d13532 2
a13533 4
if ac_fn_c_try_link "$LINENO"
then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
then :
d13537 1
a13537 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d13769 2
a13770 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
printf "%s\n" "$dynamic_linker" >&6; }
d13891 2
a13892 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
printf %s "checking how to hardcode library paths into programs... " >&6; }
d13916 2
a13917 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
printf "%s\n" "$hardcode_action" >&6; }
d13961 5
a13965 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
printf %s "checking for dlopen in -ldl... " >&6; }
if test ${ac_cv_lib_dl_dlopen+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d13974 3
d13979 1
a13979 1
main (void)
d13986 1
a13986 2
if ac_fn_c_try_link "$LINENO"
then :
d13988 1
a13988 1
else $as_nop
d13991 1
a13991 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d13995 3
a13997 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes
then :
d13999 1
a13999 1
else $as_nop
d14019 1
a14019 2
if test "x$ac_cv_func_shl_load" = xyes
then :
d14021 6
a14026 7
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
printf %s "checking for shl_load in -ldld... " >&6; }
if test ${ac_cv_lib_dld_shl_load+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14035 3
d14040 1
a14040 1
main (void)
d14047 1
a14047 2
if ac_fn_c_try_link "$LINENO"
then :
d14049 1
a14049 1
else $as_nop
d14052 1
a14052 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d14056 3
a14058 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes
then :
d14060 1
a14060 1
else $as_nop
d14062 1
a14062 2
if test "x$ac_cv_func_dlopen" = xyes
then :
d14064 6
a14069 7
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
printf %s "checking for dlopen in -ldl... " >&6; }
if test ${ac_cv_lib_dl_dlopen+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14078 3
d14083 1
a14083 1
main (void)
d14090 1
a14090 2
if ac_fn_c_try_link "$LINENO"
then :
d14092 1
a14092 1
else $as_nop
d14095 1
a14095 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d14099 3
a14101 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes
then :
d14103 6
a14108 7
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
printf %s "checking for dlopen in -lsvld... " >&6; }
if test ${ac_cv_lib_svld_dlopen+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14117 3
d14122 1
a14122 1
main (void)
d14129 1
a14129 2
if ac_fn_c_try_link "$LINENO"
then :
d14131 1
a14131 1
else $as_nop
d14134 1
a14134 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d14138 3
a14140 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = xyes
then :
d14142 6
a14147 7
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
printf %s "checking for dld_link in -ldld... " >&6; }
if test ${ac_cv_lib_dld_dld_link+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14156 3
d14161 1
a14161 1
main (void)
d14168 1
a14168 2
if ac_fn_c_try_link "$LINENO"
then :
d14170 1
a14170 1
else $as_nop
d14173 1
a14173 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d14177 3
a14179 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes
then :
d14218 5
a14222 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
printf %s "checking whether a program can dlopen itself... " >&6; }
if test ${lt_cv_dlopen_self+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14301 1
a14301 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d14319 2
a14320 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
printf "%s\n" "$lt_cv_dlopen_self" >&6; }
d14324 5
a14328 6
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
if test ${lt_cv_dlopen_self_static+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14407 1
a14407 1
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d14425 2
a14426 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
d14464 2
a14465 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
printf %s "checking whether stripping libraries is possible... " >&6; }
d14469 2
a14470 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
d14478 2
a14479 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
d14481 2
a14482 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d14486 2
a14487 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d14504 4
a14507 4
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
printf %s "checking if libtool supports shared libraries... " >&6; }
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
printf "%s\n" "$can_build_shared" >&6; }
d14509 2
a14510 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
printf %s "checking whether to build shared libraries... " >&6; }
d14534 2
a14535 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
printf "%s\n" "$enable_shared" >&6; }
d14537 2
a14538 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
printf %s "checking whether to build static libraries... " >&6; }
d14541 2
a14542 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
printf "%s\n" "$enable_static" >&6; }
d14585 1
a14585 1
# - build a static copy (disable-shared - done earlier)
d14595 2
a14596 56
# Autoupdate added the next two lines to ensure that your configure
# script's behavior did not change.  They are probably safe to remove.

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in egrep
   do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_EGREP" || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
a14597 8
      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
a14598 45
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"



ac_func=
for ac_item in $ac_func_c_list
do
  if test $ac_func; then
    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
      echo "#define $ac_item 1" >> confdefs.h
    fi
    ac_func=
  else
    ac_func=$ac_item
  fi
done

  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
"
if test "x$ac_cv_type_pid_t" = xyes
then :

else $as_nop
                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

          #if defined _WIN64 && !defined __CYGWIN__
          LLP64
          #endif

int
main (void)
{

  ;
  return 0;
}
d14600 2
a14602 10
if ac_fn_c_try_compile "$LINENO"
then :
  ac_pid_type='int'
else $as_nop
  ac_pid_type='__int64'
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h

a14607 4




d14610 6
a14615 7
  as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
printf %s "checking for $ac_hdr that defines DIR... " >&6; }
if eval test \${$as_ac_Header+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14622 1
a14622 1
main (void)
d14630 1
a14630 2
if ac_fn_c_try_compile "$LINENO"
then :
d14632 1
a14632 1
else $as_nop
d14635 1
a14635 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d14638 3
a14640 4
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Header"\" = x"yes"
then :
d14642 1
a14642 1
#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
d14651 5
a14655 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
printf %s "checking for library containing opendir... " >&6; }
if test ${ac_cv_search_opendir+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14663 3
d14668 1
a14668 1
main (void)
d14675 1
a14675 2
for ac_lib in '' dir
do
d14682 1
a14682 2
  if ac_fn_c_try_link "$LINENO"
then :
d14685 1
a14685 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d14687 1
a14687 2
  if test ${ac_cv_search_opendir+y}
then :
d14691 1
a14691 2
if test ${ac_cv_search_opendir+y}
then :
d14693 1
a14693 1
else $as_nop
d14699 2
a14700 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
printf "%s\n" "$ac_cv_search_opendir" >&6; }
d14702 1
a14702 2
if test "$ac_res" != no
then :
d14708 5
a14712 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
printf %s "checking for library containing opendir... " >&6; }
if test ${ac_cv_search_opendir+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14720 3
d14725 1
a14725 1
main (void)
d14732 1
a14732 2
for ac_lib in '' x
do
d14739 1
a14739 2
  if ac_fn_c_try_link "$LINENO"
then :
d14742 1
a14742 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d14744 1
a14744 2
  if test ${ac_cv_search_opendir+y}
then :
d14748 1
a14748 2
if test ${ac_cv_search_opendir+y}
then :
d14750 1
a14750 1
else $as_nop
d14756 2
a14757 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
printf "%s\n" "$ac_cv_search_opendir" >&6; }
d14759 1
a14759 2
if test "$ac_res" != no
then :
d14770 14
a14783 4
  ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_mman_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
a14785 4
ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_param_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
d14787 1
a14787 5
fi
ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_poll_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
a14788 5
fi
ac_fn_c_check_header_compile "$LINENO" "sys/procset.h" "ac_cv_header_sys_procset_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_procset_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PROCSET_H 1" >>confdefs.h
d14790 11
a14801 4
ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_select_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
d14803 1
a14803 5
fi
ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_socket_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
a14804 114
fi
ac_fn_c_check_header_compile "$LINENO" "sys/stropts.h" "ac_cv_header_sys_stropts_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_stropts_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_STROPTS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_time_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_un_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_wait_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
if test "x$ac_cv_header_dlfcn_h" = xyes
then :
  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
if test "x$ac_cv_header_errno_h" = xyes
then :
  printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
if test "x$ac_cv_header_fcntl_h" = xyes
then :
  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
if test "x$ac_cv_header_libgen_h" = xyes
then :
  printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
if test "x$ac_cv_header_libintl_h" = xyes
then :
  printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
if test "x$ac_cv_header_memory_h" = xyes
then :
  printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
if test "x$ac_cv_header_netinet_in_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
if test "x$ac_cv_header_setjmp_h" = xyes
then :
  printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
if test "x$ac_cv_header_stdbool_h" = xyes
then :
  printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
if test "x$ac_cv_header_sysexits_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
if test "x$ac_cv_header_unistd_h" = xyes
then :
  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
if test "x$ac_cv_header_utime_h" = xyes
then :
  printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h

fi


         for ac_header in stdarg.h varargs.h
do :
  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"
then :
  cat >>confdefs.h <<_ACEOF
#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_arg_hdr=true;break
else $as_nop
  lo_have_arg_hdr=false
fi

done
d14806 1
a14806 1
         for ac_header in string.h strings.h
d14808 3
a14810 4
  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"
then :
d14812 1
a14812 1
#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
d14815 1
a14815 1
else $as_nop
d14821 2
a14822 1
         for ac_header in limits.h sys/limits.h values.h
d14824 3
a14826 4
  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"
then :
d14828 1
a14828 1
#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
d14831 1
a14831 1
else $as_nop
d14837 2
a14838 1
         for ac_header in inttypes.h stdint.h
d14840 3
a14842 4
  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"
then :
d14844 1
a14844 1
#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
d14847 1
a14847 1
else $as_nop
d14854 5
a14858 11
  case "$host_os" in
    cygwin*)
                        STDNORETURN_H='stdnoreturn.h'
      ;;
    *)
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
printf %s "checking for working stdnoreturn.h... " >&6; }
if test ${gl_cv_header_working_stdnoreturn_h+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d14862 12
a14873 13
                #include <stdnoreturn.h>
                /* Do not check for 'noreturn' after the return type.
                   C11 allows it, but it's rarely done that way
                   and circa-2012 bleeding-edge GCC rejects it when given
                   -Werror=old-style-declaration.  */
                noreturn void foo1 (void) { exit (0); }
                _Noreturn void foo2 (void) { exit (0); }
                int testit (int argc, char **argv)
                {
                  if (argc & 1)
                    return 0;
                  (argv[0][0] ? foo1 : foo2) ();
                }
d14876 1
a14876 1
main (void)
d14883 1
a14883 2
if ac_fn_c_try_compile "$LINENO"
then :
d14885 1
a14885 1
else $as_nop
d14888 1
a14888 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d14890 9
a14898 9
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
printf "%s\n" "$gl_cv_header_working_stdnoreturn_h" >&6; }
      if test $gl_cv_header_working_stdnoreturn_h = yes; then
        STDNORETURN_H=''
      else
        STDNORETURN_H='stdnoreturn.h'
      fi
      ;;
  esac
d14914 4
a14917 1
  ac_fn_c_check_header_compile "$LINENO" "runetype.h" "ac_cv_header_runetype_h" "
d14924 4
a14927 3
if test "x$ac_cv_header_runetype_h" = xyes
then :
  printf "%s\n" "#define HAVE_RUNETYPE_H 1" >>confdefs.h
a14929 5
ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "
  $ac_includes_default
  #if HAVE_RUNETYPE_H
  # include <runetype.h>
  #endif
d14931 1
a14931 6
"
if test "x$ac_cv_header_wchar_h" = xyes
then :
  printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h

fi
d14935 1
a14935 2
if test ${enable_nls+y}
then :
d14940 1
a14940 2
  test "X${ac_cv_header_libintl_h}" = Xyes
then :
d14943 1
a14943 1
printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
d14975 1
a14975 2
if test "x$ac_cv_type_wchar_t" = xyes
then :
d14977 3
a14979 1
printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
d14994 1
a14994 2
if test "x$ac_cv_type_wint_t" = xyes
then :
d14996 3
a14998 1
printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
d15004 1
a15004 2
if test "x$ac_cv_type_int8_t" = xyes
then :
d15006 3
a15008 1
printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h
d15013 1
a15013 2
if test "x$ac_cv_type_uint8_t" = xyes
then :
d15015 3
a15017 1
printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h
d15022 1
a15022 2
if test "x$ac_cv_type_int16_t" = xyes
then :
d15024 3
a15026 1
printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h
d15031 1
a15031 2
if test "x$ac_cv_type_uint16_t" = xyes
then :
d15033 3
a15035 1
printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h
d15040 1
a15040 2
if test "x$ac_cv_type_int32_t" = xyes
then :
d15042 3
a15044 1
printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h
d15049 1
a15049 2
if test "x$ac_cv_type_uint32_t" = xyes
then :
d15051 3
a15053 1
printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h
d15058 1
a15058 2
if test "x$ac_cv_type_intptr_t" = xyes
then :
d15060 3
a15062 1
printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
d15067 1
a15067 2
if test "x$ac_cv_type_uintptr_t" = xyes
then :
d15069 3
a15071 1
printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
d15076 1
a15076 2
if test "x$ac_cv_type_uint_t" = xyes
then :
d15078 3
a15080 1
printf "%s\n" "#define HAVE_UINT_T 1" >>confdefs.h
d15085 1
a15085 2
if test "x$ac_cv_type_pid_t" = xyes
then :
d15087 3
a15089 1
printf "%s\n" "#define HAVE_PID_T 1" >>confdefs.h
d15094 1
a15094 2
if test "x$ac_cv_type_size_t" = xyes
then :
d15096 3
a15098 1
printf "%s\n" "#define HAVE_SIZE_T 1" >>confdefs.h
d15103 1
a15103 2
if test "x$ac_cv_type_ptrdiff_t" = xyes
then :
d15105 3
a15107 1
printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
d15116 6
a15121 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
printf %s "checking size of char *... " >&6; }
if test ${ac_cv_sizeof_char_p+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"
then :
d15123 1
a15123 1
else $as_nop
d15125 2
a15126 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d15135 2
a15136 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
printf "%s\n" "$ac_cv_sizeof_char_p" >&6; }
d15140 3
a15142 1
printf "%s\n" "#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p" >>confdefs.h
d15149 6
a15154 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
printf %s "checking size of int... " >&6; }
if test ${ac_cv_sizeof_int+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
then :
d15156 1
a15156 1
else $as_nop
d15158 2
a15159 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d15168 2
a15169 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
printf "%s\n" "$ac_cv_sizeof_int" >&6; }
d15173 3
a15175 1
printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
d15182 6
a15187 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
printf %s "checking size of long... " >&6; }
if test ${ac_cv_sizeof_long+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
then :
d15189 1
a15189 1
else $as_nop
d15191 2
a15192 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d15201 2
a15202 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
printf "%s\n" "$ac_cv_sizeof_long" >&6; }
d15206 3
a15208 1
printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
d15215 6
a15220 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
printf %s "checking size of short... " >&6; }
if test ${ac_cv_sizeof_short+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
then :
d15222 1
a15222 1
else $as_nop
d15224 2
a15225 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d15234 2
a15235 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
printf "%s\n" "$ac_cv_sizeof_short" >&6; }
d15239 3
a15241 1
printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
d15248 5
a15252 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
printf %s "checking for pathfind in -lgen... " >&6; }
if test ${ac_cv_lib_gen_pathfind+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d15261 3
d15266 1
a15266 1
main (void)
d15273 1
a15273 2
if ac_fn_c_try_link "$LINENO"
then :
d15275 1
a15275 1
else $as_nop
d15278 1
a15278 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d15282 6
a15287 5
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
printf "%s\n" "$ac_cv_lib_gen_pathfind" >&6; }
if test "x$ac_cv_lib_gen_pathfind" = xyes
then :
  printf "%s\n" "#define HAVE_LIBGEN 1" >>confdefs.h
d15293 5
a15297 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
printf %s "checking for gettext in -lintl... " >&6; }
if test ${ac_cv_lib_intl_gettext+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d15306 3
d15311 1
a15311 1
main (void)
d15318 1
a15318 2
if ac_fn_c_try_link "$LINENO"
then :
d15320 1
a15320 1
else $as_nop
d15323 1
a15323 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d15327 6
a15332 5
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
printf "%s\n" "$ac_cv_lib_intl_gettext" >&6; }
if test "x$ac_cv_lib_intl_gettext" = xyes
then :
  printf "%s\n" "#define HAVE_LIBINTL 1" >>confdefs.h
d15338 10
d15349 1
a15349 5
if test "x$ac_cv_func_vprintf" = xno
then :
  ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
if test "x$ac_cv_func__doprnt" = xyes
then :
d15351 1
a15351 1
printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
d15354 10
d15367 13
d15382 6
a15387 8
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
printf %s "checking for working fork... " >&6; }
if test ${ac_cv_func_fork_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
d15389 1
a15389 1
else $as_nop
d15394 1
a15394 1
main (void)
d15404 1
a15404 2
if ac_fn_c_try_run "$LINENO"
then :
d15406 1
a15406 1
else $as_nop
d15414 2
a15415 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
printf "%s\n" "$ac_cv_func_fork_works" >&6; }
d15430 2
a15431 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
d15435 6
a15440 8
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
printf %s "checking for working vfork... " >&6; }
if test ${ac_cv_func_vfork_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
d15442 1
a15442 1
else $as_nop
a15446 1
#include <signal.h>
a15450 7

static void
do_nothing (int sig)
{
  (void) sig;
}

d15458 1
d15460 3
d15480 1
a15480 1
main (void)
a15486 5
  /* On Solaris 2.4, changes by the child to the signal handler
     also munge signal handlers in the parent.  To detect this,
     start by putting the parent's handler in a known state.  */
  signal (SIGTERM, SIG_DFL);

a15507 4
    /* Alter the child's signal handler.  */
    if (signal (SIGTERM, do_nothing) != SIG_DFL)
      _exit(1);

a15522 3
	 /* Did the child munge the parent's signal handler?  */
	 || signal (SIGTERM, SIG_DFL) != SIG_DFL

d15535 1
a15535 2
if ac_fn_c_try_run "$LINENO"
then :
d15537 1
a15537 1
else $as_nop
d15545 2
a15546 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
d15551 2
a15552 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
d15557 1
a15557 1
printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
d15561 1
a15561 1
printf "%s\n" "#define vfork fork" >>confdefs.h
d15566 1
a15566 1
printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
d15570 9
a15578 4
  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
if test "x$ac_cv_func_mmap" = xyes
then :
  printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
d15581 1
a15581 4
ac_fn_c_check_func "$LINENO" "canonicalize_file_name" "ac_cv_func_canonicalize_file_name"
if test "x$ac_cv_func_canonicalize_file_name" = xyes
then :
  printf "%s\n" "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
d15583 5
a15587 56
fi
ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
if test "x$ac_cv_func_snprintf" = xyes
then :
  printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
if test "x$ac_cv_func_strdup" = xyes
then :
  printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
if test "x$ac_cv_func_strchr" = xyes
then :
  printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
if test "x$ac_cv_func_strrchr" = xyes
then :
  printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
if test "x$ac_cv_func_strsignal" = xyes
then :
  printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
if test "x$ac_cv_func_fchmod" = xyes
then :
  printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
if test "x$ac_cv_func_fstat" = xyes
then :
  printf "%s\n" "#define HAVE_FSTAT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod"
if test "x$ac_cv_func_chmod" = xyes
then :
  printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h

fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
printf %s "checking for a sed that does not truncate output... " >&6; }
if test ${ac_cv_path_SED+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d15601 2
a15602 7
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in sed gsed
   do
d15604 1
a15604 1
      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
d15613 1
a15613 1
  printf %s 0123456789 >"conftest.in"
d15619 1
a15619 1
    printf "%s\n" '' >> "conftest.nl"
d15647 2
a15648 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
printf "%s\n" "$ac_cv_path_SED" >&6; }
a15653 1
      test -x "$POSIX_SHELL" && break
d15668 3
a15670 1
printf "%s\n" "#define POSIX_SHELL \"${POSIX_SHELL}\"" >>confdefs.h
d15682 1
a15682 2
if test ${enable_local_libopts+y}
then :
d15685 2
a15686 2
       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
printf "%s\n" "$as_me: Using supplied libopts tearoff" >&6;}
d15695 1
a15695 2
if test ${enable_libopts_install+y}
then :
d15709 2
a15710 2
     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
printf %s "checking whether autoopts-config can be found... " >&6; }
d15713 1
a15713 2
if test ${with_autoopts_config+y}
then :
d15715 6
a15720 7
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
printf %s "checking whether autoopts-config is specified... " >&6; }
if test ${lo_cv_with_autoopts_config+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d15727 2
a15728 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
printf "%s\n" "$lo_cv_with_autoopts_config" >&6; }
d15733 3
a15735 4
     if test ${lo_cv_test_autoopts+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d15753 2
a15754 2
     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
printf "%s\n" "${lo_cv_test_autoopts}" >&6; }
d15793 5
a15797 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PKG_CONFIG+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d15807 1
a15807 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d15809 3
a15811 3
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d15823 2
a15824 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
printf "%s\n" "$PKG_CONFIG" >&6; }
d15826 2
a15827 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d15836 5
a15840 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d15850 1
a15850 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d15852 3
a15854 3
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d15866 2
a15867 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
d15869 2
a15870 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d15878 2
a15879 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d15893 2
a15894 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
printf %s "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
d15896 2
a15897 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
d15899 2
a15900 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d15910 1
a15910 2
if test ${enable_local_libevent+y}
then :
d15912 1
a15912 1
else $as_nop
d15934 2
d15944 2
a15945 4
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
printf %s "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5
printf "%s\n" "yes, version $ntp_libevent_version" >&6; }
d15978 2
a15979 4
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
printf %s "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d15991 2
a15992 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
printf "%s\n" "$as_me: Using libevent tearoff" >&6;}
d16029 1
a16029 2
if test "x$ac_cv_type_size_t" = xyes
then :
d16031 1
a16031 50
else $as_nop

printf "%s\n" "#define size_t unsigned int" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
if test ${ac_cv_c_undeclared_builtin_options+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_save_CFLAGS=$CFLAGS
   ac_cv_c_undeclared_builtin_options='cannot detect'
   for ac_arg in '' -fno-builtin; do
     CFLAGS="$ac_save_CFLAGS $ac_arg"
     # This test program should *not* compile successfully.
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{
(void) strchr;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else $as_nop
  # This test program should compile successfully.
        # No library function is consistently available on
        # freestanding implementations, so test against a dummy
        # declaration.  Include always-available headers on the
        # off chance that they somehow elicit warnings.
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <float.h>
#include <limits.h>
#include <stdarg.h>
#include <stddef.h>
extern void ac_decl (int, char *);

int
main (void)
{
(void) ac_decl (0, (char *) 0);
  (void) ac_decl;
d16033 2
a16034 3
  ;
  return 0;
}
a16035 30
if ac_fn_c_try_compile "$LINENO"
then :
  if test x"$ac_arg" = x
then :
  ac_cv_c_undeclared_builtin_options='none needed'
else $as_nop
  ac_cv_c_undeclared_builtin_options=$ac_arg
fi
          break
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    done
    CFLAGS=$ac_save_CFLAGS

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  case $ac_cv_c_undeclared_builtin_options in #(
  'cannot detect') :
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot make $CC report undeclared builtins
See \`config.log' for more details" "$LINENO" 5; } ;; #(
  'none needed') :
    ac_c_undeclared_builtin_options='' ;; #(
  *) :
    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
esac
a16036 6
ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl_strerror_r" = xyes
then :
  ac_have_decl=1
else $as_nop
  ac_have_decl=0
a16037 2
printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h

d16041 1
a16041 2
if test ${enable_c99_snprintf+y}
then :
d16043 1
a16043 1
else $as_nop
d16059 16
d16077 7
a16083 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
printf %s "checking for unsigned long long int... " >&6; }
if test ${ac_cv_type_unsigned_long_long_int+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16085 2
a16086 4
     case $ac_prog_cc_stdc in
       no | c89) ;;
       *)
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16090 3
a16092 3
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
d16099 1
a16099 1
		     ? 1 : -1)];
d16101 1
a16101 1
		     ? 1 : -1)];
d16104 1
a16104 1
main (void)
d16110 3
a16112 3
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
d16118 1
a16118 2
if ac_fn_c_try_link "$LINENO"
then :
d16120 1
a16120 1
else $as_nop
d16123 3
a16125 3
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext;;
     esac
d16127 2
a16128 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
d16131 1
a16131 1
printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
d16137 1
a16137 2
if test "x$ac_cv_func_vsnprintf" = xyes
then :
d16139 1
a16139 1
else $as_nop
d16143 7
a16149 10
  if test "$hw_cv_func_vsnprintf" = yes
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
printf %s "checking whether vsnprintf is C99 compliant... " >&6; }
if test ${hw_cv_func_vsnprintf_c99+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
d16151 1
a16151 1
else $as_nop
d16168 1
a16168 1
main (void)
d16179 1
a16179 2
if ac_fn_c_try_run "$LINENO"
then :
d16181 1
a16181 1
else $as_nop
d16189 3
a16191 3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
printf "%s\n" "$hw_cv_func_vsnprintf_c99" >&6; }
else $as_nop
d16195 1
a16195 1
printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
d16197 3
a16199 4
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
printf %s "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no
then :
d16201 1
a16201 1
else $as_nop
d16204 3
a16206 4
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
printf "%s\n" "$hw_use_rpl_vsnprintf" >&6; }
  if test "$hw_use_rpl_vsnprintf" = yes
then :
d16208 1
a16208 1
printf "%s\n" "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
d16210 1
a16210 2
    if test ${hw_nodef_vsnprintf=no} = no
then :
d16212 1
a16212 1
printf "%s\n" "#define vsnprintf rpl_vsnprintf" >>confdefs.h
d16215 8
a16222 4
    ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
if test "x$ac_cv_header_inttypes_h" = xyes
then :
  printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
a16224 4
ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
if test "x$ac_cv_header_locale_h" = xyes
then :
  printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
d16226 1
a16226 13
fi
ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
if test "x$ac_cv_header_stddef_h" = xyes
then :
  printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
if test "x$ac_cv_header_stdint_h" = xyes
then :
  printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h

fi
d16230 1
a16230 2
if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes
then :
d16232 3
a16234 1
printf "%s\n" "#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1" >>confdefs.h
d16240 1
a16240 2
if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes
then :
d16242 3
a16244 1
printf "%s\n" "#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1" >>confdefs.h
d16250 5
a16254 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
printf %s "checking for long double... " >&6; }
if test ${ac_cv_type_long_double+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16264 1
a16264 1
main (void)
d16275 1
a16275 2
if ac_fn_c_try_compile "$LINENO"
then :
d16277 1
a16277 1
else $as_nop
d16280 1
a16280 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d16283 2
a16284 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
printf "%s\n" "$ac_cv_type_long_double" >&6; }
d16287 1
a16287 1
printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
d16293 5
a16297 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
printf %s "checking for long long int... " >&6; }
if test ${ac_cv_type_long_long_int+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16299 4
a16302 7
      case $ac_prog_cc_stdc in
	no | c89) ;;
	*)
	  ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
	  if test $ac_cv_type_long_long_int = yes; then
	    	    	    	    if test "$cross_compiling" = yes
then :
d16304 1
a16304 1
else $as_nop
d16308 5
a16312 5
		   #ifndef LLONG_MAX
		   # define HALF \
			    (1LL << (sizeof (long long int) * CHAR_BIT - 2))
		   # define LLONG_MAX (HALF - 1 + HALF)
		   #endif
d16314 1
a16314 1
main (void)
d16317 10
a16326 10
		   int i;
		   for (i = 0; ; i++)
		     {
		       long long int m = n << i;
		       if (m >> i != n)
			 return 1;
		       if (LLONG_MAX / 2 < m)
			 break;
		     }
		   return 0;
d16331 1
a16331 2
if ac_fn_c_try_run "$LINENO"
then :
d16333 1
a16333 1
else $as_nop
d16340 2
a16341 2
	  fi;;
      esac
d16343 2
a16344 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
d16347 1
a16347 1
printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
d16352 5
a16356 6
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
printf %s "checking for unsigned long long int... " >&6; }
if test ${ac_cv_type_unsigned_long_long_int+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16358 2
a16359 4
     case $ac_prog_cc_stdc in
       no | c89) ;;
       *)
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d16363 3
a16365 3
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
d16372 1
a16372 1
		     ? 1 : -1)];
d16374 1
a16374 1
		     ? 1 : -1)];
d16377 1
a16377 1
main (void)
d16383 3
a16385 3
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
d16391 1
a16391 2
if ac_fn_c_try_link "$LINENO"
then :
d16393 1
a16393 1
else $as_nop
d16396 3
a16398 3
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext;;
     esac
d16400 2
a16401 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
d16404 1
a16404 1
printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
d16409 1
a16409 2
if test "x$ac_cv_type_size_t" = xyes
then :
d16411 1
a16411 1
else $as_nop
d16413 3
a16415 1
printf "%s\n" "#define size_t unsigned int" >>confdefs.h
d16422 1
a16422 2
if test "x$ac_cv_type_intmax_t" = xyes
then :
d16424 1
a16424 1
printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
d16426 1
a16426 1
else $as_nop
d16431 3
a16433 1
printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
d16441 1
a16441 2
if test "x$ac_cv_type_uintmax_t" = xyes
then :
d16443 1
a16443 1
printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
d16445 1
a16445 1
else $as_nop
d16450 3
a16452 1
printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
d16459 1
a16459 2
if test "x$ac_cv_type_uintptr_t" = xyes
then :
d16461 1
a16461 1
printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
d16463 1
a16463 1
else $as_nop
d16470 1
a16470 1
main (void)
d16480 1
a16480 2
if ac_fn_c_try_compile "$LINENO"
then :
d16482 3
a16484 1
printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
d16488 1
a16488 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d16495 1
a16495 2
if test "x$ac_cv_type_ptrdiff_t" = xyes
then :
d16497 3
a16499 1
printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
d16504 7
a16510 4
    ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
if test "x$ac_cv_func_localeconv" = xyes
then :
  printf "%s\n" "#define HAVE_LOCALECONV 1" >>confdefs.h
d16513 1
d16516 6
a16521 8
  if test "x$_hw_cv_func_xprintf_replace_done" != xyes
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
printf %s "checking for an ANSI C-conforming const... " >&6; }
if test ${ac_cv_c_const+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16526 1
a16526 1
main (void)
d16539 1
a16539 1
  /* IBM XL C 1.02.0.0 rejects this.
d16567 1
a16567 1
  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
d16583 1
a16583 2
if ac_fn_c_try_compile "$LINENO"
then :
d16585 1
a16585 1
else $as_nop
d16588 1
a16588 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d16590 2
a16591 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
printf "%s\n" "$ac_cv_c_const" >&6; }
d16594 1
a16594 1
printf "%s\n" "#define const /**/" >>confdefs.h
d16614 1
a16614 2
if test "x$ac_cv_func_snprintf" = xyes
then :
d16616 1
a16616 1
else $as_nop
d16620 7
a16626 10
  if test "$hw_cv_func_snprintf" = yes
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
printf %s "checking whether snprintf is C99 compliant... " >&6; }
if test ${hw_cv_func_snprintf_c99+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
d16628 1
a16628 1
else $as_nop
d16633 1
a16633 1
main (void)
d16644 1
a16644 2
if ac_fn_c_try_run "$LINENO"
then :
d16646 1
a16646 1
else $as_nop
d16654 3
a16656 3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
printf "%s\n" "$hw_cv_func_snprintf_c99" >&6; }
else $as_nop
d16660 1
a16660 1
printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
d16662 3
a16664 4
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
printf %s "checking if C99-snprintf replacement snprintf will be used... " >&6; }
  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no
then :
d16666 1
a16666 1
else $as_nop
d16669 3
a16671 4
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
printf "%s\n" "$hw_use_rpl_snprintf" >&6; }
  if test "$hw_use_rpl_snprintf" = yes
then :
d16673 1
a16673 1
printf "%s\n" "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
d16675 1
a16675 2
    if test ${hw_nodef_snprintf=no} = no
then :
d16677 1
a16677 1
printf "%s\n" "#define snprintf rpl_snprintf" >>confdefs.h
d16681 6
a16686 8
  if test "x$_hw_cv_func_xprintf_replace_done" != xyes
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
printf %s "checking for an ANSI C-conforming const... " >&6; }
if test ${ac_cv_c_const+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16691 1
a16691 1
main (void)
d16704 1
a16704 1
  /* IBM XL C 1.02.0.0 rejects this.
d16732 1
a16732 1
  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
d16748 1
a16748 2
if ac_fn_c_try_compile "$LINENO"
then :
d16750 1
a16750 1
else $as_nop
d16753 1
a16753 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d16755 2
a16756 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
printf "%s\n" "$ac_cv_c_const" >&6; }
d16759 1
a16759 1
printf "%s\n" "#define const /**/" >>confdefs.h
a16779 12
VER_SUFFIX=

	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
printf "%s\n" "$as_me: " >&6;}
	esac






d16784 1
a16784 1
SAVED_LIBS=$LIBS
d16793 1
a16793 2
if test ${with_gnu_ld+y}
then :
d16795 1
a16795 1
else $as_nop
d16802 2
a16803 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
printf %s "checking for ld used by $CC... " >&6; }
d16832 2
a16833 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
printf %s "checking for GNU ld... " >&6; }
d16835 2
a16836 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
printf %s "checking for non-GNU ld... " >&6; }
d16838 3
a16840 4
if test ${lt_cv_path_LD+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16869 2
a16870 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
printf "%s\n" "$LD" >&6; }
d16872 2
a16873 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d16876 5
a16880 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
if test ${lt_cv_prog_gnu_ld+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16891 2
a16892 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
d16902 5
a16906 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
printf %s "checking for directory path separator... " >&6; }
if test ${ntp_cv_dir_sep+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d16922 2
a16923 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
printf "%s\n" "$ntp_cv_dir_sep" >&6; }
d16925 3
a16927 1
printf "%s\n" "#define DIR_SEP $ntp_cv_dir_sep" >>confdefs.h
d16934 1
a16934 2
if test ${with_lineeditlibs+y}
then :
d16936 1
a16936 1
else $as_nop
d16941 4
a16944 4
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
printf %s "checking line editing libraries... " >&6; }
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
printf "%s\n" "$use_lineeditlibs" >&6; }
d16961 2
a16962 2
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
printf %s "checking for readline() with $TRY_LIB... " >&6; }
d16969 3
d16974 1
a16974 1
main (void)
d16981 1
a16981 2
if ac_fn_c_try_link "$LINENO"
then :
d16984 1
a16984 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d16988 2
a16989 2
		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d16993 2
a16994 2
		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
d17002 2
a17003 2
		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
printf %s "checking for el_gets() with $TRY_LIB... " >&6; }
d17010 3
d17015 1
a17015 1
main (void)
d17022 1
a17022 2
if ac_fn_c_try_link "$LINENO"
then :
d17025 1
a17025 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d17029 2
a17030 2
			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d17033 2
a17034 2
			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
d17068 8
a17075 4
	ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
if test "x$ac_cv_header_readline_h" = xyes
then :
  printf "%s\n" "#define HAVE_READLINE_H 1" >>confdefs.h
a17077 4
ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
if test "x$ac_cv_header_readline_readline_h" = xyes
then :
  printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
d17079 1
a17079 5
fi
ac_fn_c_check_header_compile "$LINENO" "histedit.h" "ac_cv_header_histedit_h" "$ac_includes_default"
if test "x$ac_cv_header_histedit_h" = xyes
then :
  printf "%s\n" "#define HAVE_HISTEDIT_H 1" >>confdefs.h
d17081 8
a17088 6
fi

	ac_fn_c_check_header_compile "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
if test "x$ac_cv_header_history_h" = xyes
then :
  printf "%s\n" "#define HAVE_HISTORY_H 1" >>confdefs.h
a17090 4
ac_fn_c_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
if test "x$ac_cv_header_readline_history_h" = xyes
then :
  printf "%s\n" "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h
d17092 1
a17092 1
fi
d17097 5
a17101 6
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
printf %s "checking number of arguments to el_init()... " >&6; }
if test ${ntp_cv_el_init_args+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d17109 1
a17109 1
main (void)
d17119 1
a17119 2
if ac_fn_c_try_compile "$LINENO"
then :
d17121 1
a17121 1
else $as_nop
d17125 1
a17125 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d17128 2
a17129 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
printf "%s\n" "$ntp_cv_el_init_args" >&6; }
d17131 3
a17133 1
printf "%s\n" "#define EL_INIT_ARGS $ntp_cv_el_init_args" >>confdefs.h
d17137 2
a17138 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
printf %s "checking whether readline supports history... " >&6; }
d17149 3
d17154 1
a17154 1
main (void)
d17161 1
a17161 2
if ac_fn_c_try_link "$LINENO"
then :
d17164 1
a17164 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d17168 2
a17169 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
printf "%s\n" "$ntp_lib_lineedit_history" >&6; }
d17174 1
a17174 1
printf "%s\n" "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
d17190 5
a17194 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
printf %s "checking for library containing cos... " >&6; }
if test ${ac_cv_search_cos+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d17202 3
d17207 1
a17207 1
main (void)
d17214 1
a17214 2
for ac_lib in '' m
do
d17221 1
a17221 2
  if ac_fn_c_try_link "$LINENO"
then :
d17224 1
a17224 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d17226 1
a17226 2
  if test ${ac_cv_search_cos+y}
then :
d17230 1
a17230 2
if test ${ac_cv_search_cos+y}
then :
d17232 1
a17232 1
else $as_nop
d17238 2
a17239 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
printf "%s\n" "$ac_cv_search_cos" >&6; }
d17241 1
a17241 2
if test "$ac_res" != no
then :
d17253 20
d17274 2
d17278 6
a17283 8
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
printf %s "checking for working fork... " >&6; }
if test ${ac_cv_func_fork_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
d17285 1
a17285 1
else $as_nop
d17290 1
a17290 1
main (void)
d17300 1
a17300 2
if ac_fn_c_try_run "$LINENO"
then :
d17302 1
a17302 1
else $as_nop
d17310 2
a17311 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
printf "%s\n" "$ac_cv_func_fork_works" >&6; }
d17326 2
a17327 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
d17331 6
a17336 8
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
printf %s "checking for working vfork... " >&6; }
if test ${ac_cv_func_vfork_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
d17338 1
a17338 1
else $as_nop
a17342 1
#include <signal.h>
a17346 7

static void
do_nothing (int sig)
{
  (void) sig;
}

d17354 1
d17356 3
d17376 1
a17376 1
main (void)
a17382 5
  /* On Solaris 2.4, changes by the child to the signal handler
     also munge signal handlers in the parent.  To detect this,
     start by putting the parent's handler in a known state.  */
  signal (SIGTERM, SIG_DFL);

a17403 4
    /* Alter the child's signal handler.  */
    if (signal (SIGTERM, do_nothing) != SIG_DFL)
      _exit(1);

a17418 3
	 /* Did the child munge the parent's signal handler?  */
	 || signal (SIGTERM, SIG_DFL) != SIG_DFL

d17431 1
a17431 2
if ac_fn_c_try_run "$LINENO"
then :
d17433 1
a17433 1
else $as_nop
d17441 2
a17442 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
d17447 2
a17448 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
d17453 1
a17453 1
printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
d17457 1
a17457 1
printf "%s\n" "#define vfork fork" >>confdefs.h
d17462 1
a17462 1
printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
d17468 5
a17472 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
printf %s "checking for working alloca.h... " >&6; }
if test ${ac_cv_working_alloca_h+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d17477 1
a17477 1
main (void)
d17485 1
a17485 2
if ac_fn_c_try_link "$LINENO"
then :
d17487 1
a17487 1
else $as_nop
d17490 1
a17490 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d17493 2
a17494 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
d17497 1
a17497 1
printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
d17501 4
a17504 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
printf %s "checking for alloca... " >&6; }
if test ${ac_cv_func_alloca_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test $ac_cv_working_alloca_h = yes; then
  ac_cv_func_alloca_works=yes
d17508 4
a17511 6
#include <stdlib.h>
#include <stddef.h>
#ifndef alloca
# ifdef __GNUC__
#  define alloca __builtin_alloca
# elif defined _MSC_VER
d17515 10
a17524 2
#  ifdef  __cplusplus
extern "C"
a17525 1
void *alloca (size_t);
d17530 1
a17530 1
main (void)
d17538 1
a17538 2
if ac_fn_c_try_link "$LINENO"
then :
d17540 1
a17540 1
else $as_nop
d17543 1
a17543 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d17546 2
a17547 3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
fi
d17551 1
a17551 1
printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
d17561 40
a17600 1
printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
d17602 2
d17605 6
a17610 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
printf %s "checking stack direction for C alloca... " >&6; }
if test ${ac_cv_c_stack_direction+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
d17612 1
a17612 1
else $as_nop
d17633 1
a17633 2
if ac_fn_c_try_run "$LINENO"
then :
d17635 1
a17635 1
else $as_nop
d17643 5
a17647 3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
d17652 6
d17659 3
a17661 4
if test $ac_cv_have_decl_strerror_r = yes; then
  # For backward compatibility's sake, define HAVE_STRERROR_R.
  # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
  # as AC_CHECK_DECLS_ONCE.)
d17663 7
a17669 1
printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
d17672 1
d17674 5
a17678 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
printf %s "checking whether strerror_r returns char *... " >&6; }
if test ${ac_cv_func_strerror_r_char_p+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d17684 1
a17684 1
#include <string.h>
d17686 1
a17686 1
main (void)
d17698 29
a17726 2
if ac_fn_c_try_compile "$LINENO"
then :
d17729 3
a17731 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d17736 2
a17737 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
d17740 1
a17740 1
printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
d17786 5
a17790 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
printf %s "checking for library containing clock_gettime... " >&6; }
if test ${ac_cv_search_clock_gettime+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d17798 3
d17803 1
a17803 1
main (void)
d17810 1
a17810 2
for ac_lib in '' rt
do
d17817 1
a17817 2
  if ac_fn_c_try_link "$LINENO"
then :
d17820 1
a17820 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d17822 1
a17822 2
  if test ${ac_cv_search_clock_gettime+y}
then :
d17826 1
a17826 2
if test ${ac_cv_search_clock_gettime+y}
then :
d17828 1
a17828 1
else $as_nop
d17834 2
a17835 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
d17837 1
a17837 2
if test "$ac_res" != no
then :
d17847 8
a17854 16
    ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
if test "x$ac_cv_func_clock_getres" = xyes
then :
  printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
if test "x$ac_cv_func_clock_gettime" = xyes
then :
  printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
if test "x$ac_cv_func_clock_settime" = xyes
then :
  printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
d17857 1
d17862 8
a17869 28
ac_fn_c_check_func "$LINENO" "getclock" "ac_cv_func_getclock"
if test "x$ac_cv_func_getclock" = xyes
then :
  printf "%s\n" "#define HAVE_GETCLOCK 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "stime" "ac_cv_func_stime"
if test "x$ac_cv_func_stime" = xyes
then :
  printf "%s\n" "#define HAVE_STIME 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
if test "x$ac_cv_func_timegm" = xyes
then :
  printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
if test "x$ac_cv_func_strlcpy" = xyes
then :
  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
if test "x$ac_cv_func_strlcat" = xyes
then :
  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
d17872 1
d17878 5
a17882 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
printf %s "checking for library containing snprintb... " >&6; }
if test ${ac_cv_search_snprintb+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d17890 3
d17895 1
a17895 1
main (void)
d17902 1
a17902 2
for ac_lib in '' util
do
d17909 1
a17909 2
  if ac_fn_c_try_link "$LINENO"
then :
d17912 1
a17912 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d17914 1
a17914 2
  if test ${ac_cv_search_snprintb+y}
then :
d17918 1
a17918 2
if test ${ac_cv_search_snprintb+y}
then :
d17920 1
a17920 1
else $as_nop
d17926 2
a17927 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
printf "%s\n" "$ac_cv_search_snprintb" >&6; }
d17929 1
a17929 2
if test "$ac_res" != no
then :
d17937 1
a17937 1
printf "%s\n" "#define USE_SNPRINTB 1" >>confdefs.h
d17943 8
a17950 4
ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
if test "x$ac_cv_header_errno_h" = xyes
then :
  printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
a17952 4
ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_socket_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
d17954 1
a17954 5
fi
ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_types_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
d17956 3
a17958 9
fi
ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
if test "x$ac_cv_header_time_h" = xyes
then :
  printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h

fi

ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
d17964 4
a17967 3
if test "x$ac_cv_header_net_if_h" = xyes
then :
  printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
d17971 2
d17975 5
a17979 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
printf %s "checking if net/if.h requires mpinfou predeclaration... " >&6; }
if test ${ntp_cv_predecl_mpinfou+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d17997 1
a17997 1
main (void)
d18006 1
a18006 2
if ac_fn_c_try_compile "$LINENO"
then :
d18013 1
a18013 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d18018 2
a18019 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
printf "%s\n" "$ntp_cv_predecl_mpinfou" >&6; }
d18037 3
a18039 1
    ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
d18045 4
a18048 3
if test "x$ac_cv_header_linux_if_addr_h" = xyes
then :
  printf "%s\n" "#define HAVE_LINUX_IF_ADDR_H 1" >>confdefs.h
d18052 2
d18055 1
a18055 1
printf "%s\n" "#define NEED_EARLY_FORK 1" >>confdefs.h
d18059 8
a18066 4
ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
if test "x$ac_cv_header_arpa_nameser_h" = xyes
then :
  printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h
a18068 4
ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_param_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
d18070 1
a18070 13
fi
ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_time_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/timers.h" "ac_cv_header_sys_timers_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_timers_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TIMERS_H 1" >>confdefs.h

fi
d18073 3
a18075 1
ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
d18081 4
a18084 3
if test "x$ac_cv_header_sys_sysctl_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
d18088 1
a18088 4
ac_fn_c_check_header_compile "$LINENO" "netinet/in_system.h" "ac_cv_header_netinet_in_system_h" "$ac_includes_default"
if test "x$ac_cv_header_netinet_in_system_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IN_SYSTEM_H 1" >>confdefs.h
d18090 8
a18097 5
fi
ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
if test "x$ac_cv_header_netinet_in_systm_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h
a18099 4
ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
if test "x$ac_cv_header_netinet_in_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
d18101 1
a18101 1
fi
d18104 3
a18106 1
ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
d18118 4
a18121 3
if test "x$ac_cv_header_resolv_h" = xyes
then :
  printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h
d18125 2
d18128 3
a18130 1
ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
d18145 4
a18148 3
if test "x$ac_cv_header_net_if_var_h" = xyes
then :
  printf "%s\n" "#define HAVE_NET_IF_VAR_H 1" >>confdefs.h
d18152 2
d18155 4
a18158 1
ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "
d18179 4
a18182 3
if test "x$ac_cv_header_netinet_ip_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h
a18184 19
ac_fn_c_check_header_compile "$LINENO" "netinet/in_var.h" "ac_cv_header_netinet_in_var_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_VAR_H
    # include <net/if_var.h>
    #endif
    #ifdef HAVE_NETINET_IN_SYSTM_H
    # include <netinet/in_systm.h>
    #endif
d18186 1
a18186 6
"
if test "x$ac_cv_header_netinet_in_var_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IN_VAR_H 1" >>confdefs.h

fi
d18190 5
a18194 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
printf %s "checking for library containing inet_pton... " >&6; }
if test ${ac_cv_search_inet_pton+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d18202 3
d18207 1
a18207 1
main (void)
d18214 1
a18214 2
for ac_lib in '' nsl
do
d18221 1
a18221 2
  if ac_fn_c_try_link "$LINENO"
then :
d18224 1
a18224 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d18226 1
a18226 2
  if test ${ac_cv_search_inet_pton+y}
then :
d18230 1
a18230 2
if test ${ac_cv_search_inet_pton+y}
then :
d18232 1
a18232 1
else $as_nop
d18238 2
a18239 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
printf "%s\n" "$ac_cv_search_inet_pton" >&6; }
d18241 1
a18241 2
if test "$ac_res" != no
then :
d18251 5
a18255 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
printf %s "checking for library containing inet_ntop... " >&6; }
if test ${ac_cv_search_inet_ntop+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d18263 3
d18268 1
a18268 1
main (void)
d18275 1
a18275 2
for ac_lib in '' resolv
do
d18282 1
a18282 2
  if ac_fn_c_try_link "$LINENO"
then :
d18285 1
a18285 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d18287 1
a18287 2
  if test ${ac_cv_search_inet_ntop+y}
then :
d18291 1
a18291 2
if test ${ac_cv_search_inet_ntop+y}
then :
d18293 1
a18293 1
else $as_nop
d18299 2
a18300 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
printf "%s\n" "$ac_cv_search_inet_ntop" >&6; }
d18302 1
a18302 2
if test "$ac_res" != no
then :
d18320 5
a18324 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
printf %s "checking for library containing setsockopt... " >&6; }
if test ${ac_cv_search_setsockopt+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d18332 3
d18337 1
a18337 1
main (void)
d18344 1
a18344 2
for ac_lib in '' socket
do
d18351 1
a18351 2
  if ac_fn_c_try_link "$LINENO"
then :
d18354 1
a18354 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d18356 1
a18356 2
  if test ${ac_cv_search_setsockopt+y}
then :
d18360 1
a18360 2
if test ${ac_cv_search_setsockopt+y}
then :
d18362 1
a18362 1
else $as_nop
d18368 2
a18369 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
printf "%s\n" "$ac_cv_search_setsockopt" >&6; }
d18371 1
a18371 2
if test "$ac_res" != no
then :
d18384 5
a18388 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
printf %s "checking for library containing getsockopt... " >&6; }
if test ${ac_cv_search_getsockopt+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d18396 3
d18401 1
a18401 1
main (void)
d18408 1
a18408 2
for ac_lib in '' xnet
do
d18415 1
a18415 2
  if ac_fn_c_try_link "$LINENO"
then :
d18418 1
a18418 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d18420 1
a18420 2
  if test ${ac_cv_search_getsockopt+y}
then :
d18424 1
a18424 2
if test ${ac_cv_search_getsockopt+y}
then :
d18426 1
a18426 1
else $as_nop
d18432 2
a18433 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
printf "%s\n" "$ac_cv_search_getsockopt" >&6; }
d18435 1
a18435 2
if test "$ac_res" != no
then :
d18461 7
a18467 4
ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
if test "x$ac_cv_func_recvmsg" = xyes
then :
  printf "%s\n" "#define HAVE_RECVMSG 1" >>confdefs.h
d18470 1
d18473 5
a18477 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
printf %s "checking for inline... " >&6; }
if test ${ac_cv_c_inline+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d18484 2
a18485 2
static $ac_kw foo_t static_foo (void) {return 0; }
$ac_kw foo_t foo (void) {return 0; }
d18489 1
a18489 2
if ac_fn_c_try_compile "$LINENO"
then :
d18492 1
a18492 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d18497 2
a18498 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
printf "%s\n" "$ac_cv_c_inline" >&6; }
d18521 1
a18521 1
printf "%s\n" "#define HAVE_INLINE 1" >>confdefs.h
d18526 34
d18565 6
a18570 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
printf %s "checking size of time_t... " >&6; }
if test ${ac_cv_sizeof_time_t+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"
then :
d18572 1
a18572 1
else $as_nop
d18574 2
a18575 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d18584 2
a18585 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
d18589 3
a18591 1
printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
d18594 5
a18598 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
printf %s "checking whether char is unsigned... " >&6; }
if test ${ac_cv_c_char_unsigned+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d18603 1
a18603 1
main (void)
d18613 1
a18613 2
if ac_fn_c_try_compile "$LINENO"
then :
d18615 1
a18615 1
else $as_nop
d18618 1
a18618 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d18620 4
a18623 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
if test $ac_cv_c_char_unsigned = yes; then
  printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
d18630 6
a18635 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
printf %s "checking size of signed char... " >&6; }
if test ${ac_cv_sizeof_signed_char+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"
then :
d18637 1
a18637 1
else $as_nop
d18639 2
a18640 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d18649 2
a18650 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
printf "%s\n" "$ac_cv_sizeof_signed_char" >&6; }
d18654 3
a18656 1
printf "%s\n" "#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char" >>confdefs.h
d18660 1
a18660 2
if test "x$ac_cv_type_s_char" = xyes
then :
d18662 3
a18664 1
printf "%s\n" "#define HAVE_S_CHAR 1" >>confdefs.h
d18669 1
a18669 2
if test "x$ac_cv_type_long_long" = xyes
then :
d18671 3
a18673 1
printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
d18682 6
a18687 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
printf %s "checking size of short... " >&6; }
if test ${ac_cv_sizeof_short+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
then :
d18689 1
a18689 1
else $as_nop
d18691 2
a18692 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d18701 2
a18702 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
printf "%s\n" "$ac_cv_sizeof_short" >&6; }
d18706 3
a18708 1
printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
d18715 6
a18720 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
printf %s "checking size of int... " >&6; }
if test ${ac_cv_sizeof_int+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
then :
d18722 1
a18722 1
else $as_nop
d18724 2
a18725 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d18734 2
a18735 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
printf "%s\n" "$ac_cv_sizeof_int" >&6; }
d18739 3
a18741 1
printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
d18748 6
a18753 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
printf %s "checking size of long... " >&6; }
if test ${ac_cv_sizeof_long+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
then :
d18755 1
a18755 1
else $as_nop
d18757 2
a18758 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d18767 2
a18768 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
printf "%s\n" "$ac_cv_sizeof_long" >&6; }
d18772 3
a18774 1
printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
d18786 6
a18791 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
printf %s "checking size of long long... " >&6; }
if test ${ac_cv_sizeof_long_long+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"
then :
d18793 1
a18793 1
else $as_nop
d18795 2
a18796 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d18805 2
a18806 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
d18810 3
a18812 1
printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
d18825 1
a18825 1
printf "%s\n" "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
d18831 1
a18831 1
printf "%s\n" "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
d18841 1
a18841 1
printf "%s\n" "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
d18846 5
a18850 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
printf %s "checking for uid_t in sys/types.h... " >&6; }
if test ${ac_cv_type_uid_t+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d18857 1
a18857 2
  $EGREP "uid_t" >/dev/null 2>&1
then :
d18859 1
a18859 1
else $as_nop
d18862 1
a18862 1
rm -rf conftest*
d18865 2
a18866 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
printf "%s\n" "$ac_cv_type_uid_t" >&6; }
d18869 1
a18869 1
printf "%s\n" "#define uid_t int" >>confdefs.h
d18872 1
a18872 1
printf "%s\n" "#define gid_t int" >>confdefs.h
d18881 2
a18882 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
printf %s "checking if we're including debugging code... " >&6; }
d18884 1
a18884 2
if test ${enable_debugging+y}
then :
d18886 1
a18886 1
else $as_nop
d18894 1
a18894 1
printf "%s\n" "#define DEBUG 1" >>confdefs.h
d18897 2
a18898 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d18903 7
a18909 4
ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
if test "x$ac_cv_header_semaphore_h" = xyes
then :
  printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
d18913 9
a18921 4
ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
if test "x$ac_cv_func_socketpair" = xyes
then :
  printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
d18924 1
d18927 1
a18927 2
if test ${enable_thread_support+y}
then :
d18929 1
a18929 1
else $as_nop
d18951 1
a18951 2
if test ${with_threads+y}
then :
d18964 1
a18964 1
else $as_nop
d18993 5
a18997 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d19005 1
a19005 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d19007 1
a19007 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d19009 1
a19009 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d19020 2
a19021 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
d19023 2
a19024 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d19036 2
a19037 2
				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
printf "%s\n" "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
d19054 1
a19054 2
if test ${with_yielding_select+y}
then :
d19067 1
a19067 1
else $as_nop
d19077 1
a19077 2
if test "x$ac_cv_func__beginthread" = xyes
then :
d19084 1
a19084 1
printf "%s\n" "#define HAVE_NT_THREADS 1" >>confdefs.h
d19096 1
a19096 1
printf "%s\n" "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
d19099 1
a19099 1
printf "%s\n" "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
d19111 7
a19117 4
	ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
d19121 2
d19125 5
a19129 6
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
printf %s "checking POSIX thread version... " >&6; }
if test ${ol_cv_pthread_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d19137 1
a19137 1
main (void)
d19146 1
a19146 2
if ac_fn_c_try_compile "$LINENO"
then :
d19154 1
a19154 2
  $EGREP "pthread_detach" >/dev/null 2>&1
then :
d19156 1
a19156 1
else $as_nop
d19159 1
a19159 1
rm -rf conftest*
d19161 1
a19161 1
else $as_nop
d19173 1
a19173 2
  $EGREP "draft7" >/dev/null 2>&1
then :
d19175 1
a19175 1
else $as_nop
d19183 1
a19183 2
  $EGREP "pthread_attr_init" >/dev/null 2>&1
then :
d19185 1
a19185 1
else $as_nop
d19197 1
a19197 2
  $EGREP "draft5" >/dev/null 2>&1
then :
d19199 1
a19199 1
else $as_nop
d19202 1
a19202 1
rm -rf conftest*
d19205 1
a19205 1
rm -rf conftest*
d19208 1
a19208 1
rm -rf conftest*
d19211 1
a19211 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d19214 2
a19215 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
printf "%s\n" "$ol_cv_pthread_version" >&6; }
d19220 3
a19222 1
printf "%s\n" "#define HAVE_PTHREADS $ol_cv_pthread_version" >>confdefs.h
d19232 5
a19236 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
printf %s "checking for LinuxThreads pthread.h... " >&6; }
if test ${ol_cv_header_linux_threads+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d19242 1
a19242 2
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1
then :
d19244 1
a19244 1
else $as_nop
d19247 1
a19247 1
rm -rf conftest*
d19251 2
a19252 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
printf "%s\n" "$ol_cv_header_linux_threads" >&6; }
d19255 1
a19255 1
printf "%s\n" "#define HAVE_LINUX_THREADS 1" >>confdefs.h
d19260 5
a19264 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
printf %s "checking for GNU Pth pthread.h... " >&6; }
if test ${ol_cv_header_gnu_pth_pthread_h+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d19274 1
a19274 2
  $EGREP "__gnu_pth__" >/dev/null 2>&1
then :
d19276 1
a19276 1
else $as_nop
d19279 1
a19279 1
rm -rf conftest*
d19283 2
a19284 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
printf "%s\n" "$ol_cv_header_gnu_pth_pthread_h" >&6; }
d19288 7
a19294 4
			ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sched_h" = xyes
then :
  printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
d19298 2
d19303 5
a19307 6
				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
printf %s "checking for pthread_create in default libraries... " >&6; }
if test ${ol_cv_pthread_create+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d19309 1
a19309 2
			if test "$cross_compiling" = yes
then :
d19329 1
a19329 1
main (void)
d19382 1
a19382 2
if ac_fn_c_try_link "$LINENO"
then :
d19384 1
a19384 1
else $as_nop
d19387 1
a19387 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d19389 1
a19389 1
else $as_nop
d19464 1
a19464 2
if ac_fn_c_try_run "$LINENO"
then :
d19466 1
a19466 1
else $as_nop
d19474 2
a19475 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
printf "%s\n" "$ol_cv_pthread_create" >&6; }
d19485 5
a19489 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
printf %s "checking for pthread link with -kthread... " >&6; }
if test ${ol_cv_pthread_kthread+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d19495 1
a19495 2
		if test "$cross_compiling" = yes
then :
d19515 1
a19515 1
main (void)
d19568 1
a19568 2
if ac_fn_c_try_link "$LINENO"
then :
d19570 1
a19570 1
else $as_nop
d19573 1
a19573 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d19575 1
a19575 1
else $as_nop
d19650 1
a19650 2
if ac_fn_c_try_run "$LINENO"
then :
d19652 1
a19652 1
else $as_nop
d19664 2
a19665 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
printf "%s\n" "$ol_cv_pthread_kthread" >&6; }
d19676 5
a19680 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
printf %s "checking for pthread link with -pthread... " >&6; }
if test ${ol_cv_pthread_pthread+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d19686 1
a19686 2
		if test "$cross_compiling" = yes
then :
d19706 1
a19706 1
main (void)
d19759 1
a19759 2
if ac_fn_c_try_link "$LINENO"
then :
d19761 1
a19761 1
else $as_nop
d19764 1
a19764 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d19766 1
a19766 1
else $as_nop
d19841 1
a19841 2
if ac_fn_c_try_run "$LINENO"
then :
d19843 1
a19843 1
else $as_nop
d19855 2
a19856 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
printf "%s\n" "$ol_cv_pthread_pthread" >&6; }
d19867 5
a19871 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
printf %s "checking for pthread link with -pthreads... " >&6; }
if test ${ol_cv_pthread_pthreads+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d19877 1
a19877 2
		if test "$cross_compiling" = yes
then :
d19897 1
a19897 1
main (void)
d19950 1
a19950 2
if ac_fn_c_try_link "$LINENO"
then :
d19952 1
a19952 1
else $as_nop
d19955 1
a19955 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d19957 1
a19957 1
else $as_nop
d20032 1
a20032 2
if ac_fn_c_try_run "$LINENO"
then :
d20034 1
a20034 1
else $as_nop
d20046 2
a20047 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
printf "%s\n" "$ol_cv_pthread_pthreads" >&6; }
d20058 5
a20062 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
printf %s "checking for pthread link with -mthreads... " >&6; }
if test ${ol_cv_pthread_mthreads+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d20068 1
a20068 2
		if test "$cross_compiling" = yes
then :
d20088 1
a20088 1
main (void)
d20141 1
a20141 2
if ac_fn_c_try_link "$LINENO"
then :
d20143 1
a20143 1
else $as_nop
d20146 1
a20146 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d20148 1
a20148 1
else $as_nop
d20223 1
a20223 2
if ac_fn_c_try_run "$LINENO"
then :
d20225 1
a20225 1
else $as_nop
d20237 2
a20238 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
printf "%s\n" "$ol_cv_pthread_mthreads" >&6; }
d20249 5
a20253 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
printf %s "checking for pthread link with -thread... " >&6; }
if test ${ol_cv_pthread_thread+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d20259 1
a20259 2
		if test "$cross_compiling" = yes
then :
d20279 1
a20279 1
main (void)
d20332 1
a20332 2
if ac_fn_c_try_link "$LINENO"
then :
d20334 1
a20334 1
else $as_nop
d20337 1
a20337 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d20339 1
a20339 1
else $as_nop
d20414 1
a20414 2
if ac_fn_c_try_run "$LINENO"
then :
d20416 1
a20416 1
else $as_nop
d20428 2
a20429 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
printf "%s\n" "$ol_cv_pthread_thread" >&6; }
d20441 5
a20445 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
printf %s "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
if test ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d20451 1
a20451 2
		if test "$cross_compiling" = yes
then :
d20471 1
a20471 1
main (void)
d20524 1
a20524 2
if ac_fn_c_try_link "$LINENO"
then :
d20526 1
a20526 1
else $as_nop
d20529 1
a20529 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d20531 1
a20531 1
else $as_nop
d20606 1
a20606 2
if ac_fn_c_try_run "$LINENO"
then :
d20608 1
a20608 1
else $as_nop
d20620 2
a20621 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
printf "%s\n" "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
d20632 5
a20636 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
printf %s "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
if test ${ol_cv_pthread_lpthread_lmach_lexc+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d20642 1
a20642 2
		if test "$cross_compiling" = yes
then :
d20662 1
a20662 1
main (void)
d20715 1
a20715 2
if ac_fn_c_try_link "$LINENO"
then :
d20717 1
a20717 1
else $as_nop
d20720 1
a20720 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d20722 1
a20722 1
else $as_nop
d20797 1
a20797 2
if ac_fn_c_try_run "$LINENO"
then :
d20799 1
a20799 1
else $as_nop
d20811 2
a20812 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
printf "%s\n" "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
d20824 5
a20828 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
printf %s "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
if test ${ol_cv_pthread_lib_lpthread_woff+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d20834 1
a20834 2
		if test "$cross_compiling" = yes
then :
d20854 1
a20854 1
main (void)
d20907 1
a20907 2
if ac_fn_c_try_link "$LINENO"
then :
d20909 1
a20909 1
else $as_nop
d20912 1
a20912 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d20914 1
a20914 1
else $as_nop
d20989 1
a20989 2
if ac_fn_c_try_run "$LINENO"
then :
d20991 1
a20991 1
else $as_nop
d21003 2
a21004 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
printf "%s\n" "$ol_cv_pthread_lib_lpthread_woff" >&6; }
d21016 5
a21020 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
printf %s "checking for pthread link with -lpthread... " >&6; }
if test ${ol_cv_pthread_lpthread+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d21026 1
a21026 2
		if test "$cross_compiling" = yes
then :
d21046 1
a21046 1
main (void)
d21099 1
a21099 2
if ac_fn_c_try_link "$LINENO"
then :
d21101 1
a21101 1
else $as_nop
d21104 1
a21104 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d21106 1
a21106 1
else $as_nop
d21181 1
a21181 2
if ac_fn_c_try_run "$LINENO"
then :
d21183 1
a21183 1
else $as_nop
d21195 2
a21196 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
printf "%s\n" "$ol_cv_pthread_lpthread" >&6; }
d21207 5
a21211 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
printf %s "checking for pthread link with -lc_r... " >&6; }
if test ${ol_cv_pthread_lc_r+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d21217 1
a21217 2
		if test "$cross_compiling" = yes
then :
d21237 1
a21237 1
main (void)
d21290 1
a21290 2
if ac_fn_c_try_link "$LINENO"
then :
d21292 1
a21292 1
else $as_nop
d21295 1
a21295 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d21297 1
a21297 1
else $as_nop
d21372 1
a21372 2
if ac_fn_c_try_run "$LINENO"
then :
d21374 1
a21374 1
else $as_nop
d21386 2
a21387 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
printf "%s\n" "$ol_cv_pthread_lc_r" >&6; }
d21399 5
a21403 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
printf %s "checking for pthread link with -threads... " >&6; }
if test ${ol_cv_pthread_threads+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d21409 1
a21409 2
		if test "$cross_compiling" = yes
then :
d21429 1
a21429 1
main (void)
d21482 1
a21482 2
if ac_fn_c_try_link "$LINENO"
then :
d21484 1
a21484 1
else $as_nop
d21487 1
a21487 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d21489 1
a21489 1
else $as_nop
d21564 1
a21564 2
if ac_fn_c_try_run "$LINENO"
then :
d21566 1
a21566 1
else $as_nop
d21578 2
a21579 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
printf "%s\n" "$ol_cv_pthread_threads" >&6; }
d21591 5
a21595 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
printf %s "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
if test ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d21601 1
a21601 2
		if test "$cross_compiling" = yes
then :
d21621 1
a21621 1
main (void)
d21674 1
a21674 2
if ac_fn_c_try_link "$LINENO"
then :
d21676 1
a21676 1
else $as_nop
d21679 1
a21679 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d21681 1
a21681 1
else $as_nop
d21756 1
a21756 2
if ac_fn_c_try_run "$LINENO"
then :
d21758 1
a21758 1
else $as_nop
d21770 2
a21771 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
printf "%s\n" "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
d21782 5
a21786 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
printf %s "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
if test ${ol_cv_pthread_lpthreads_lmach_lexc+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d21792 1
a21792 2
		if test "$cross_compiling" = yes
then :
d21812 1
a21812 1
main (void)
d21865 1
a21865 2
if ac_fn_c_try_link "$LINENO"
then :
d21867 1
a21867 1
else $as_nop
d21870 1
a21870 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d21872 1
a21872 1
else $as_nop
d21947 1
a21947 2
if ac_fn_c_try_run "$LINENO"
then :
d21949 1
a21949 1
else $as_nop
d21961 2
a21962 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
printf "%s\n" "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
d21973 5
a21977 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
printf %s "checking for pthread link with -lpthreads -lexc... " >&6; }
if test ${ol_cv_pthread_lpthreads_lexc+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d21983 1
a21983 2
		if test "$cross_compiling" = yes
then :
d22003 1
a22003 1
main (void)
d22056 1
a22056 2
if ac_fn_c_try_link "$LINENO"
then :
d22058 1
a22058 1
else $as_nop
d22061 1
a22061 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d22063 1
a22063 1
else $as_nop
d22138 1
a22138 2
if ac_fn_c_try_run "$LINENO"
then :
d22140 1
a22140 1
else $as_nop
d22152 2
a22153 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
printf "%s\n" "$ol_cv_pthread_lpthreads_lexc" >&6; }
d22165 5
a22169 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
printf %s "checking for pthread link with -lpthreads... " >&6; }
if test ${ol_cv_pthread_lib_lpthreads+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22175 1
a22175 2
		if test "$cross_compiling" = yes
then :
d22195 1
a22195 1
main (void)
d22248 1
a22248 2
if ac_fn_c_try_link "$LINENO"
then :
d22250 1
a22250 1
else $as_nop
d22253 1
a22253 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d22255 1
a22255 1
else $as_nop
d22330 1
a22330 2
if ac_fn_c_try_run "$LINENO"
then :
d22332 1
a22332 1
else $as_nop
d22344 2
a22345 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
printf "%s\n" "$ol_cv_pthread_lib_lpthreads" >&6; }
d22354 2
a22355 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
printf "%s\n" "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
d22364 8
a22371 16
												ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
if test "x$ac_cv_func_sched_yield" = xyes
then :
  printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield"
if test "x$ac_cv_func_pthread_yield" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "thr_yield" "ac_cv_func_thr_yield"
if test "x$ac_cv_func_thr_yield" = xyes
then :
  printf "%s\n" "#define HAVE_THR_YIELD 1" >>confdefs.h
d22374 1
d22380 5
a22384 6
								{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
printf %s "checking for sched_yield in -lrt... " >&6; }
if test ${ac_cv_lib_rt_sched_yield+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22393 3
d22398 1
a22398 1
main (void)
d22405 1
a22405 2
if ac_fn_c_try_link "$LINENO"
then :
d22407 1
a22407 1
else $as_nop
d22410 1
a22410 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d22414 3
a22416 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
if test "x$ac_cv_lib_rt_sched_yield" = xyes
then :
d22419 1
a22419 1
printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
d22422 1
a22422 1
else $as_nop
d22430 2
a22431 2
				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
printf "%s\n" "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
d22434 7
a22440 4
						ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
if test "x$ac_cv_func_pthread_kill" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h
d22443 1
d22446 5
a22450 6
									{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
printf %s "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
if test ${ol_cv_func_pthread_rwlock_destroy+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22459 1
a22459 1
main (void)
d22466 1
a22466 2
if ac_fn_c_try_link "$LINENO"
then :
d22468 1
a22468 1
else $as_nop
d22471 1
a22471 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d22475 2
a22476 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
printf "%s\n" "$ol_cv_func_pthread_rwlock_destroy" >&6; }
d22479 1
a22479 1
printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
d22483 5
a22487 6
									{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
printf %s "checking for pthread_detach with <pthread.h>... " >&6; }
if test ${ol_cv_func_pthread_detach+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22498 1
a22498 1
main (void)
d22505 1
a22505 2
if ac_fn_c_try_link "$LINENO"
then :
d22507 1
a22507 1
else $as_nop
d22510 1
a22510 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d22514 2
a22515 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
printf "%s\n" "$ol_cv_func_pthread_detach" >&6; }
d22522 1
a22522 1
printf "%s\n" "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
d22525 5
a22529 4
						ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
if test "x$ac_cv_func_pthread_setconcurrency" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
d22531 7
a22537 5
fi
ac_fn_c_check_func "$LINENO" "pthread_getconcurrency" "ac_cv_func_pthread_getconcurrency"
if test "x$ac_cv_func_pthread_getconcurrency" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_GETCONCURRENCY 1" >>confdefs.h
d22540 1
a22540 10
ac_fn_c_check_func "$LINENO" "thr_setconcurrency" "ac_cv_func_thr_setconcurrency"
if test "x$ac_cv_func_thr_setconcurrency" = xyes
then :
  printf "%s\n" "#define HAVE_THR_SETCONCURRENCY 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "thr_getconcurrency" "ac_cv_func_thr_getconcurrency"
if test "x$ac_cv_func_thr_getconcurrency" = xyes
then :
  printf "%s\n" "#define HAVE_THR_GETCONCURRENCY 1" >>confdefs.h
a22541 1
fi
d22544 7
a22550 5

	ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1" >>confdefs.h
d22553 1
d22555 5
a22559 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
printf %s "checking for LinuxThreads implementation... " >&6; }
if test ${ol_cv_sys_linux_threads+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22562 2
a22563 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
printf "%s\n" "$ol_cv_sys_linux_threads" >&6; }
d22568 5
a22572 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
printf %s "checking for LinuxThreads consistency... " >&6; }
if test ${ol_cv_linux_threads+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22585 2
a22586 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
printf "%s\n" "$ol_cv_linux_threads" >&6; }
d22593 5
a22597 6
			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
printf %s "checking if pthread_create() works... " >&6; }
if test ${ol_cv_pthread_create_works+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22599 1
a22599 2
			if test "$cross_compiling" = yes
then :
d22601 1
a22601 1
else $as_nop
d22676 1
a22676 2
if ac_fn_c_try_run "$LINENO"
then :
d22678 1
a22678 1
else $as_nop
d22686 2
a22687 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
printf "%s\n" "$ol_cv_pthread_create_works" >&6; }
d22697 1
a22697 1
printf "%s\n" "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
d22702 5
a22706 6
				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
printf %s "checking if select yields when using pthreads... " >&6; }
if test ${ol_cv_pthread_select_yields+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22708 1
a22708 2
				if test "$cross_compiling" = yes
then :
d22710 1
a22710 1
else $as_nop
d22788 1
a22788 2
if ac_fn_c_try_run "$LINENO"
then :
d22790 1
a22790 1
else $as_nop
d22798 2
a22799 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
printf "%s\n" "$ol_cv_pthread_select_yields" >&6; }
d22825 8
a22832 4
		ac_fn_c_check_header_compile "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_cthreads_h" = xyes
then :
  printf "%s\n" "#define HAVE_MACH_CTHREADS_H 1" >>confdefs.h
a22834 4
ac_fn_c_check_header_compile "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default"
if test "x$ac_cv_header_cthreads_h" = xyes
then :
  printf "%s\n" "#define HAVE_CTHREADS_H 1" >>confdefs.h
d22836 1
a22836 1
fi
d22842 1
a22842 2
if test "x$ac_cv_func_cthread_fork" = xyes
then :
d22848 5
a22852 6
									{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
printf %s "checking for cthread_fork with -all_load... " >&6; }
if test ${ol_cv_cthread_all_load+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22860 1
a22860 1
main (void)
d22869 1
a22869 2
if ac_fn_c_try_link "$LINENO"
then :
d22871 1
a22871 1
else $as_nop
d22874 1
a22874 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d22879 2
a22880 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
printf "%s\n" "$ol_cv_cthread_all_load" >&6; }
d22896 1
a22896 2
if test "x$ac_cv_func_cthread_fork" = xyes
then :
d22916 1
a22916 1
printf "%s\n" "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
d22926 7
a22932 4
	ac_fn_c_check_header_compile "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
if test "x$ac_cv_header_pth_h" = xyes
then :
  printf "%s\n" "#define HAVE_PTH_H 1" >>confdefs.h
d22936 2
d22940 5
a22944 6
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
printf %s "checking for pth_version in -lpth... " >&6; }
if test ${ac_cv_lib_pth_pth_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d22953 3
d22958 1
a22958 1
main (void)
d22965 1
a22965 2
if ac_fn_c_try_link "$LINENO"
then :
d22967 1
a22967 1
else $as_nop
d22970 1
a22970 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d22974 3
a22976 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
printf "%s\n" "$ac_cv_lib_pth_pth_version" >&6; }
if test "x$ac_cv_lib_pth_pth_version" = xyes
then :
d22978 1
a22978 1
else $as_nop
d22985 1
a22985 1
printf "%s\n" "#define HAVE_GNU_PTH 1" >>confdefs.h
d23001 8
a23008 4
		ac_fn_c_check_header_compile "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default"
if test "x$ac_cv_header_thread_h" = xyes
then :
  printf "%s\n" "#define HAVE_THREAD_H 1" >>confdefs.h
a23010 4
ac_fn_c_check_header_compile "$LINENO" "synch.h" "ac_cv_header_synch_h" "$ac_includes_default"
if test "x$ac_cv_header_synch_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYNCH_H 1" >>confdefs.h
d23012 1
a23012 1
fi
d23016 5
a23020 6
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
printf %s "checking for thr_create in -lthread... " >&6; }
if test ${ac_cv_lib_thread_thr_create+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23029 3
d23034 1
a23034 1
main (void)
d23041 1
a23041 2
if ac_fn_c_try_link "$LINENO"
then :
d23043 1
a23043 1
else $as_nop
d23046 1
a23046 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d23050 3
a23052 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
printf "%s\n" "$ac_cv_lib_thread_thr_create" >&6; }
if test "x$ac_cv_lib_thread_thr_create" = xyes
then :
d23054 1
a23054 1
else $as_nop
d23061 1
a23061 1
printf "%s\n" "#define HAVE_THR 1" >>confdefs.h
d23070 3
a23072 4
						ac_fn_c_check_func "$LINENO" "thr_setconcurrency" "ac_cv_func_thr_setconcurrency"
if test "x$ac_cv_func_thr_setconcurrency" = xyes
then :
  printf "%s\n" "#define HAVE_THR_SETCONCURRENCY 1" >>confdefs.h
d23074 7
a23080 5
fi
ac_fn_c_check_func "$LINENO" "thr_getconcurrency" "ac_cv_func_thr_getconcurrency"
if test "x$ac_cv_func_thr_getconcurrency" = xyes
then :
  printf "%s\n" "#define HAVE_THR_GETCONCURRENCY 1" >>confdefs.h
d23083 1
d23088 7
a23094 4
		ac_fn_c_check_header_compile "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes
then :
  printf "%s\n" "#define HAVE_LWP_LWP_H 1" >>confdefs.h
d23098 2
d23101 5
a23105 6
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
printf %s "checking for lwp_create in -llwp... " >&6; }
if test ${ac_cv_lib_lwp_lwp_create+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23114 3
d23119 1
a23119 1
main (void)
d23126 1
a23126 2
if ac_fn_c_try_link "$LINENO"
then :
d23128 1
a23128 1
else $as_nop
d23131 1
a23131 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d23135 3
a23137 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
printf "%s\n" "$ac_cv_lib_lwp_lwp_create" >&6; }
if test "x$ac_cv_lib_lwp_lwp_create" = xyes
then :
d23139 1
a23139 1
else $as_nop
d23146 1
a23146 1
printf "%s\n" "#define HAVE_LWP 1" >>confdefs.h
d23161 1
a23161 1
printf "%s\n" "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
d23168 2
a23169 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
printf "%s\n" "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
d23171 8
a23178 4
	ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
a23180 4
ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sched_h" = xyes
then :
  printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
d23182 1
a23182 1
fi
d23184 8
a23191 10
	ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
if test "x$ac_cv_func_sched_yield" = xyes
then :
  printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield"
if test "x$ac_cv_func_pthread_yield" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h
d23194 1
d23197 5
a23201 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
printf %s "checking for LinuxThreads pthread.h... " >&6; }
if test ${ol_cv_header_linux_threads+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23207 1
a23207 2
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1
then :
d23209 1
a23209 1
else $as_nop
d23212 1
a23212 1
rm -rf conftest*
d23216 2
a23217 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
printf "%s\n" "$ol_cv_header_linux_threads" >&6; }
d23220 1
a23220 1
printf "%s\n" "#define HAVE_LINUX_THREADS 1" >>confdefs.h
d23225 7
a23231 4
	ac_fn_c_check_header_compile "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_cthreads_h" = xyes
then :
  printf "%s\n" "#define HAVE_MACH_CTHREADS_H 1" >>confdefs.h
d23235 9
a23243 4
	ac_fn_c_check_header_compile "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes
then :
  printf "%s\n" "#define HAVE_LWP_LWP_H 1" >>confdefs.h
d23247 10
a23256 4
	ac_fn_c_check_header_compile "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default"
if test "x$ac_cv_header_thread_h" = xyes
then :
  printf "%s\n" "#define HAVE_THREAD_H 1" >>confdefs.h
a23258 4
ac_fn_c_check_header_compile "$LINENO" "synch.h" "ac_cv_header_synch_h" "$ac_includes_default"
if test "x$ac_cv_header_synch_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYNCH_H 1" >>confdefs.h
d23260 1
a23260 1
fi
d23266 1
a23266 1
printf "%s\n" "#define REENTRANT 1" >>confdefs.h
d23269 1
a23269 1
printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
d23272 1
a23272 1
printf "%s\n" "#define THREAD_SAFE 1" >>confdefs.h
d23275 1
a23275 1
printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h
d23278 1
a23278 1
printf "%s\n" "#define THREADSAFE 1" >>confdefs.h
d23281 1
a23281 1
printf "%s\n" "#define _THREADSAFE 1" >>confdefs.h
d23284 1
a23284 1
printf "%s\n" "#define _SGI_MP_SOURCE 1" >>confdefs.h
d23287 5
a23291 6
			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
printf %s "checking for thread specific errno... " >&6; }
if test ${ol_cv_errno_thread_specific+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23297 1
a23297 1
main (void)
d23304 1
a23304 2
if ac_fn_c_try_link "$LINENO"
then :
d23306 1
a23306 1
else $as_nop
d23309 1
a23309 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d23313 2
a23314 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
printf "%s\n" "$ol_cv_errno_thread_specific" >&6; }
d23316 5
a23320 6
			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
printf %s "checking for thread specific h_errno... " >&6; }
if test ${ol_cv_h_errno_thread_specific+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23326 1
a23326 1
main (void)
d23333 1
a23333 2
if ac_fn_c_try_link "$LINENO"
then :
d23335 1
a23335 1
else $as_nop
d23338 1
a23338 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d23342 2
a23343 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
printf "%s\n" "$ol_cv_h_errno_thread_specific" >&6; }
d23359 2
a23360 2
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
printf "%s\n" "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
d23365 1
a23365 1
printf "%s\n" "#define NO_THREADS 1" >>confdefs.h
d23375 1
a23375 1
printf "%s\n" "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
d23407 7
a23413 4
	ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
if test "x$ac_cv_func_sem_timedwait" = xyes
then :
  printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
d23416 1
d23441 5
a23445 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
printf %s "checking size of pthread_t... " >&6; }
if test ${ac_cv_sizeof_pthread_t+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23451 1
a23451 2
"
then :
d23453 1
a23453 1
else $as_nop
d23455 2
a23456 2
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d23465 2
a23466 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; }
d23470 3
a23472 1
printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h
d23477 1
a23477 1
printf "%s\n" "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
d23483 1
a23483 2
if test "x$ac_cv_func_sigwait" = xyes
then :
d23485 6
a23490 7
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
printf %s "checking for sigwait in -lc... " >&6; }
if test ${ac_cv_lib_c_sigwait+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23499 3
d23504 1
a23504 1
main (void)
d23511 1
a23511 2
if ac_fn_c_try_link "$LINENO"
then :
d23513 1
a23513 1
else $as_nop
d23516 1
a23516 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d23520 3
a23522 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
printf "%s\n" "$ac_cv_lib_c_sigwait" >&6; }
if test "x$ac_cv_lib_c_sigwait" = xyes
then :
d23524 6
a23529 7
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
printf %s "checking for sigwait in -lpthread... " >&6; }
if test ${ac_cv_lib_pthread_sigwait+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23538 3
d23543 1
a23543 1
main (void)
d23550 1
a23550 2
if ac_fn_c_try_link "$LINENO"
then :
d23552 1
a23552 1
else $as_nop
d23555 1
a23555 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d23559 3
a23561 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
printf "%s\n" "$ac_cv_lib_pthread_sigwait" >&6; }
if test "x$ac_cv_lib_pthread_sigwait" = xyes
then :
d23563 6
a23568 7
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
printf %s "checking for _Psigwait in -lpthread... " >&6; }
if test ${ac_cv_lib_pthread__Psigwait+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23577 3
d23582 1
a23582 1
main (void)
d23589 1
a23589 2
if ac_fn_c_try_link "$LINENO"
then :
d23591 1
a23591 1
else $as_nop
d23594 1
a23594 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d23598 3
a23600 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
printf "%s\n" "$ac_cv_lib_pthread__Psigwait" >&6; }
if test "x$ac_cv_lib_pthread__Psigwait" = xyes
then :
d23602 1
a23602 1
else $as_nop
d23618 5
a23622 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
printf %s "checking for sigwait in -lc_r... " >&6; }
if test ${ac_cv_lib_c_r_sigwait+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23631 3
d23636 1
a23636 1
main (void)
d23643 1
a23643 2
if ac_fn_c_try_link "$LINENO"
then :
d23645 1
a23645 1
else $as_nop
d23648 1
a23648 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d23652 3
a23654 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
printf "%s\n" "$ac_cv_lib_c_r_sigwait" >&6; }
if test "x$ac_cv_lib_c_r_sigwait" = xyes
then :
d23664 1
a23664 1
printf "%s\n" "#define HAVE_SIGWAIT 1" >>confdefs.h
d23668 7
a23674 4
    ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h
d23677 1
d23679 8
a23686 10
    ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize"
if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
if test "x$ac_cv_func_sysconf" = xyes
then :
  printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
d23689 1
d23697 1
a23697 1
printf "%s\n" "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
d23702 1
a23702 1
printf "%s\n" "#define NEED_PTHREAD_INIT 1" >>confdefs.h
d23707 1
a23707 1
printf "%s\n" "#define HAVE_LINUXTHREADS 1" >>confdefs.h
d23711 1
a23711 1
	printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d23713 7
a23719 4
	ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
if test "x$ac_cv_func_pthread_setconcurrency" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
d23722 1
d23727 1
a23727 1
printf "%s\n" "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
d23733 1
a23733 1
printf "%s\n" "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
d23746 5
a23750 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
printf %s "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
if test ${ntp_cv_braces_around_pthread_once_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d23757 1
a23757 1
main (void)
d23768 1
a23768 2
if ac_fn_c_try_compile "$LINENO"
then :
d23770 1
a23770 1
else $as_nop
d23774 1
a23774 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d23777 2
a23778 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
printf "%s\n" "$ntp_cv_braces_around_pthread_once_init" >&6; }
d23788 1
a23788 1
printf "%s\n" "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
d23817 6
a23822 8
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
printf %s "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
if test ${ntp_cv_vsnprintf_percent_m+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
d23825 1
a23825 1
else $as_nop
d23859 1
a23859 1
main (void)
d23877 1
a23877 2
if ac_fn_c_try_run "$LINENO"
then :
d23879 1
a23879 1
else $as_nop
d23888 2
a23889 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
printf "%s\n" "$ntp_cv_vsnprintf_percent_m" >&6; }
d23893 1
a23893 1
printf "%s\n" "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
d23898 7
a23904 4
ac_fn_c_check_header_compile "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_clockctl_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_CLOCKCTL_H 1" >>confdefs.h
d23908 2
d23912 1
a23912 2
if test ${enable_clockctl+y}
then :
d23914 1
a23914 1
else $as_nop
d23920 4
a23923 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
printf %s "checking if we should use /dev/clockctl... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
printf "%s\n" "$ntp_use_dev_clockctl" >&6; }
d23926 8
a23933 4
ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_capability_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_CAPABILITY_H 1" >>confdefs.h
a23935 4
ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_prctl_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
d23937 1
a23937 1
fi
d23940 2
a23941 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
printf %s "checking if we have linux capabilities (libcap)... " >&6; }
d23959 1
a23959 2
if test ${enable_linuxcaps+y}
then :
d23965 2
a23966 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
printf "%s\n" "$ntp_have_linuxcaps" >&6; }
d23971 1
a23971 1
printf "%s\n" "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
d23978 7
a23984 4
ac_fn_c_check_header_compile "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
if test "x$ac_cv_header_priv_h" = xyes
then :
  printf "%s\n" "#define HAVE_PRIV_H 1" >>confdefs.h
d23988 2
d23995 1
a23995 2
if test "x$ac_cv_func_setppriv" = xyes
then :
d23997 1
a23997 1
else $as_nop
d24007 1
a24007 2
if test ${enable_solarisprivs+y}
then :
d24013 2
a24014 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
printf %s "checking if we have solaris privileges... " >&6; }
d24019 1
a24019 1
printf "%s\n" "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
d24026 2
a24027 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
printf "%s\n" "$ntp_have_solarisprivs" >&6; }
d24029 7
a24035 4
ac_fn_c_check_header_compile "$LINENO" "sys/mac.h" "ac_cv_header_sys_mac_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_mac_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_MAC_H 1" >>confdefs.h
d24039 2
d24043 1
a24043 2
if test ${enable_trustedbsd_mac+y}
then :
d24049 2
a24050 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should use TrustedBSD MAC privileges" >&5
printf %s "checking if we should use TrustedBSD MAC privileges... " >&6; }
d24055 1
a24055 1
printf "%s\n" "#define HAVE_TRUSTEDBSD_MAC 1" >>confdefs.h
d24062 2
a24063 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_use_trustedbsd_mac" >&5
printf "%s\n" "$ntp_use_trustedbsd_mac" >&6; }
d24068 1
a24068 1
printf "%s\n" "#define HAVE_DROPROOT 1" >>confdefs.h
d24074 5
a24078 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
printf %s "checking for library containing res_9_init... " >&6; }
if test ${ac_cv_search_res_9_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24086 3
d24091 1
a24091 1
main (void)
d24098 1
a24098 2
for ac_lib in '' resolv
do
d24105 1
a24105 2
  if ac_fn_c_try_link "$LINENO"
then :
d24108 1
a24108 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d24110 1
a24110 2
  if test ${ac_cv_search_res_9_init+y}
then :
d24114 1
a24114 2
if test ${ac_cv_search_res_9_init+y}
then :
d24116 1
a24116 1
else $as_nop
d24122 2
a24123 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
printf "%s\n" "$ac_cv_search_res_9_init" >&6; }
d24125 1
a24125 2
if test "$ac_res" != no
then :
d24131 5
a24135 6
 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
printf %s "checking for library containing res_init... " >&6; }
if test ${ac_cv_search_res_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24143 3
d24148 1
a24148 1
main (void)
d24155 1
a24155 2
for ac_lib in '' resolv
do
d24162 1
a24162 2
  if ac_fn_c_try_link "$LINENO"
then :
d24165 1
a24165 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d24167 1
a24167 2
  if test ${ac_cv_search_res_init+y}
then :
d24171 1
a24171 2
if test ${ac_cv_search_res_init+y}
then :
d24173 1
a24173 1
else $as_nop
d24179 2
a24180 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
printf "%s\n" "$ac_cv_search_res_init" >&6; }
d24182 1
a24182 2
if test "$ac_res" != no
then :
d24189 4
a24192 1
ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "#ifdef HAVE_SYS_TYPES_H
d24205 4
a24208 21
if test "x$ac_cv_header_sys_types_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
if test "x$ac_cv_header_netinet_in_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
a24210 16
ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
if test "x$ac_cv_header_arpa_nameser_h" = xyes
then :
  printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h
d24212 1
a24212 37
fi
ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
if test "x$ac_cv_header_netdb_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
if test "x$ac_cv_header_resolv_h" = xyes
then :
  printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h

fi
d24216 1
a24216 2

  for ac_func in res_init
d24219 4
a24222 3
if test "x$ac_cv_func_res_init" = xyes
then :
  printf "%s\n" "#define HAVE_RES_INIT 1" >>confdefs.h
d24224 3
a24226 1
else $as_nop
d24228 4
a24231 3
if test "x$ac_cv_func___res_init" = xyes
then :
  printf "%s\n" "#define HAVE___RES_INIT 1" >>confdefs.h
d24234 1
d24237 1
a24238 1
done
d24242 1
a24242 2
if test "x$ac_cv_func_inet_ntop" = xyes
then :
d24244 1
a24244 1
else $as_nop
d24246 1
a24246 1
printf "%s\n" "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
d24251 1
a24251 2
if test "x$ac_cv_func_inet_pton" = xyes
then :
d24253 1
a24253 1
else $as_nop
d24255 1
a24255 1
printf "%s\n" "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
d24261 1
a24261 2
if test "x$ac_cv_type_uintptr_t" = xyes
then :
d24263 3
a24265 1
printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
d24270 1
a24270 2
if test "x$ac_cv_type_int32" = xyes
then :
d24272 3
a24274 1
printf "%s\n" "#define HAVE_INT32 1" >>confdefs.h
d24279 1
a24279 2
if test "x$ac_cv_type_u_int32" = xyes
then :
d24281 3
a24283 1
printf "%s\n" "#define HAVE_U_INT32 1" >>confdefs.h
d24291 7
a24297 23
ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
	#ifdef HAVE_SYS_TIME_H
	# include <sys/time.h>
	#endif
	#ifdef HAVE_ERRNO_H
	# include <errno.h>
	#endif


"
if test "x$ac_cv_header_sys_timepps_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TIMEPPS_H 1" >>confdefs.h

fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
printf %s "checking for struct timespec... " >&6; }
if test ${ntp_cv_struct_timespec+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24301 4
a24304 10
		#include <sys/time.h>
		/* Under SunOS, timespec is in sys/timepps.h,
		   which needs errno.h and FRAC */
		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif
		#ifdef HAVE_SYS_TIMEPPS_H
		# define FRAC 4294967296
		# include <sys/timepps.h>
		#endif
d24307 1
a24307 1
main (void)
d24310 1
a24310 1
		struct timespec n;
d24317 4
a24320 5
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_struct_timespec=yes
else $as_nop
  ntp_cv_struct_timespec=no
d24323 1
a24323 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d24326 118
a24443 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
printf "%s\n" "$ntp_cv_struct_timespec" >&6; }
d24447 1
a24447 1
printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
d24451 5
a24455 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
printf %s "checking for struct ntptimeval... " >&6; }
if test ${ntp_cv_struct_ntptimeval+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24463 1
a24463 1
main (void)
d24473 1
a24473 2
if ac_fn_c_try_compile "$LINENO"
then :
d24475 1
a24475 1
else $as_nop
d24479 1
a24479 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d24482 2
a24483 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
printf "%s\n" "$ntp_cv_struct_ntptimeval" >&6; }
d24487 1
a24487 1
printf "%s\n" "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
d24491 3
a24493 1
ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
d24500 4
a24503 3
if test "x$ac_cv_header_md5_h" = xyes
then :
  printf "%s\n" "#define HAVE_MD5_H 1" >>confdefs.h
d24507 2
d24510 5
a24514 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
printf %s "checking for library containing MD5Init... " >&6; }
if test ${ac_cv_search_MD5Init+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24522 3
d24527 1
a24527 1
main (void)
d24534 1
a24534 2
for ac_lib in '' md5 md
do
d24541 1
a24541 2
  if ac_fn_c_try_link "$LINENO"
then :
d24544 1
a24544 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d24546 1
a24546 2
  if test ${ac_cv_search_MD5Init+y}
then :
d24550 1
a24550 2
if test ${ac_cv_search_MD5Init+y}
then :
d24552 1
a24552 1
else $as_nop
d24558 2
a24559 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
printf "%s\n" "$ac_cv_search_MD5Init" >&6; }
d24561 1
a24561 2
if test "$ac_res" != no
then :
d24566 8
a24573 34
ac_fn_c_check_func "$LINENO" "MD5Init" "ac_cv_func_MD5Init"
if test "x$ac_cv_func_MD5Init" = xyes
then :
  printf "%s\n" "#define HAVE_MD5INIT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
if test "x$ac_cv_func_sysconf" = xyes
then :
  printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
if test "x$ac_cv_func_getdtablesize" = xyes
then :
  printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
if test "x$ac_cv_func_sigaction" = xyes
then :
  printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
if test "x$ac_cv_func_sigset" = xyes
then :
  printf "%s\n" "#define HAVE_SIGSET 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "sigvec" "ac_cv_func_sigvec"
if test "x$ac_cv_func_sigvec" = xyes
then :
  printf "%s\n" "#define HAVE_SIGVEC 1" >>confdefs.h
d24576 1
d24581 1
a24581 2
if test ${enable_signalled_io+y}
then :
d24583 1
a24583 1
else $as_nop
d24589 5
a24593 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
printf %s "checking for SIGIO... " >&6; }
if test ${ntp_cv_hdr_def_sigio+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24604 1
a24604 2
if ac_fn_c_try_cpp "$LINENO"
then :
d24606 1
a24606 1
else $as_nop
d24613 2
a24614 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
printf "%s\n" "$ntp_cv_hdr_def_sigio" >&6; }
d24616 2
a24617 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
printf %s "checking if we want to use SIGIO... " >&6; }
d24675 1
a24675 1
printf "%s\n" "#define HAVE_SIGNALED_IO 1" >>confdefs.h
d24682 2
a24683 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d24685 5
a24689 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
printf %s "checking for SIGPOLL... " >&6; }
if test ${ntp_cv_hdr_def_sigpoll+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24700 1
a24700 2
if ac_fn_c_try_cpp "$LINENO"
then :
d24702 1
a24702 1
else $as_nop
d24709 2
a24710 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
printf "%s\n" "$ntp_cv_hdr_def_sigpoll" >&6; }
d24712 2
a24713 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
printf %s "checking if we can use SIGPOLL for UDP I/O... " >&6; }
d24772 1
a24772 1
printf "%s\n" "#define USE_UDP_SIGPOLL 1" >>confdefs.h
d24775 2
a24776 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d24778 2
a24779 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
printf %s "checking if we can use SIGPOLL for TTY I/O... " >&6; }
d24830 1
a24830 865
    ;;
esac
case "$ans" in
 yes)

printf "%s\n" "#define USE_TTY_SIGPOLL 1" >>confdefs.h

esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
printf %s "checking number of arguments to gettimeofday()... " >&6; }
if test ${ntp_cv_func_Xettimeofday_nargs+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>

int
main (void)
{

		gettimeofday(0, 0);
		settimeofday(0, 0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_func_Xettimeofday_nargs=2
else $as_nop
  ntp_cv_func_Xettimeofday_nargs=1

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
printf "%s\n" "$ntp_cv_func_Xettimeofday_nargs" >&6; }
case "$ntp_cv_func_Xettimeofday_nargs" in
 1)

printf "%s\n" "#define SYSV_TIMEOFDAY 1" >>confdefs.h

esac


  for ac_func in settimeofday
do :
  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
if test "x$ac_cv_func_settimeofday" = xyes
then :
  printf "%s\n" "#define HAVE_SETTIMEOFDAY 1" >>confdefs.h

else $as_nop

    case "$host" in
     *-*-mpeix*) ac_cv_func_settimeofday=yes
    esac

fi

done

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
printf %s "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
ntp_warning='GRONK'
ans=none
case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
 yes*)
    ntp_warning=''
    ans='clock_settime()'
    ;;
 noyes*)
    ntp_warning='But clock_settime() would be better (if we had it)'
    ans='settimeofday()'
    ;;
 nonoyes)
    ntp_warning='Which is the worst of the three'
    ans='stime()'
    ;;
 *)
    case "$build" in
     $host)
	ntp_warning='Which leaves us with nothing to use!'
    esac
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
case "$ntp_warning" in
 '')
    ;;
 *)
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
printf "%s\n" "$as_me: WARNING: *** $ntp_warning ***" >&2;}
    ;;
esac

 if test x"$enable_dependency_tracking" = x"yes"; then
  LIBNTP_SUBMAKES_TRUE=
  LIBNTP_SUBMAKES_FALSE='#'
else
  LIBNTP_SUBMAKES_TRUE='#'
  LIBNTP_SUBMAKES_FALSE=
fi





# Check whether --with-crypto was given.
if test ${with_crypto+y}
then :
  withval=$with_crypto; 		case "$with_crypto" in
	 yes)
	    with_crypto=openssl,libcrypto
	esac

else $as_nop
  with_crypto=openssl,libcrypto
fi


# Check whether --with-openssl-libdir was given.
if test ${with_openssl_libdir+y}
then :
  withval=$with_openssl_libdir;
fi


# Check whether --with-openssl-incdir was given.
if test ${with_openssl_incdir+y}
then :
  withval=$with_openssl_incdir;
fi

# Check whether --enable-verbose-ssl was given.
if test ${enable_verbose_ssl+y}
then :
  enableval=$enable_verbose_ssl;
else $as_nop
  enable_verbose_ssl=no
fi


ntp_openssl=no
ntp_openssl_from_pkg_config=no
ntp_ssl_incdir=
ntp_ssl_cflags=
ntp_ssl_cppflags=
ntp_ssl_libdir=
ntp_ssl_libs_L=
ntp_ssl_libs_l=
ntp_ssl_libs=
ntp_ssl_ldflags=

NTPSSL_SAVED_CFLAGS="$CFLAGS"
NTPSSL_SAVED_CPPFLAGS="$CPPFLAGS"
NTPSSL_SAVED_LIBS="$LIBS"
NTPSSL_SAVED_LDFLAGS="$LDFLAGS"

# Extract the first word of "openssl", so it can be a program name with args.
set dummy openssl; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PATH_OPENSSL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $PATH_OPENSSL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_OPENSSL="$PATH_OPENSSL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PATH_OPENSSL="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_OPENSSL=$ac_cv_path_PATH_OPENSSL
if test -n "$PATH_OPENSSL"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_OPENSSL" >&5
printf "%s\n" "$PATH_OPENSSL" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi



str="$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}"
	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $str" >&5
printf "%s\n" "$as_me: $str" >&6;}
	esac


{ str=; unset str;}

# Make sure neither/both --with_openssl-{inc,lib}dir are given
case "${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
 notgiven:notgiven) ;;
 *notgiven*)
    as_fn_error $? "only one of --with-openssl-{inc,lib}dir=... given - provide both or neither" "$LINENO" 5
    ;;
esac

# HMS: Today there are only 2 case options.  We probably want a third
# *:*:notgiven:notgiven
# and in that case we would validate the path in PKG_CONFIG_PATH.
# Unless we can do it with 2 cases, where the 2nd case is *:*:...
# and we do a reality check on execpath and the headers/libraries.
#
##
# if $with_crypto is not "no":
#   if --with-openssl-{inc,lib}dir are not given:
#     we should use pkg-config to find openssl
#     if we don't have pkg-config, if openssl is in the base OS, use that.
##
case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
 no:*) ;;
 *:notempty:notgiven:notgiven)
    # If PKG_CONFIG is notempty and we haven't been given openssl paths,
    # then let's make sure that the openssl executable's path corresponds
    # to the path in openssl.pc, and 'openssl version' matches the Version
    # in openssl.pc.  If $PKG_CONFIG tells us an INCPATH and/or a LIBPATH,
    # then should we reality check them?
    ## INCPATH
    # harlan@@ntp-testbuild.tal1> openssl version
    # OpenSSL 1.1.1t  7 Feb 2023
    # harlan@@ntp-testbuild.tal1> grep 1.1.1t /ntpbuild/include/openssl/*
    # /ntpbuild/include/openssl/opensslv.h:# define OPENSSL_VERSION_TEXT    "OpenSSL 1.1.1t  7 Feb 2023"
    # harlan@@ntp-testbuild.tal1>
    ## LIBPATH
    # harlan@@ntp-testbuild.tal1> strings -a /ntpbuild/lib/libcrypto.* | fgrep 1.1.1t
    # OpenSSL 1.1.1t  7 Feb 2023
    # OpenSSL 1.1.1t  7 Feb 2023
    # OpenSSL 1.1.1t  7 Feb 2023
    # harlan@@ntp-testbuild.tal1> ls /ntpbuild/lib/libcrypto.*
    # /ntpbuild/lib/libcrypto.a       /ntpbuild/lib/libcrypto.so.1.1*
    # /ntpbuild/lib/libcrypto.so@@
    # harlan@@ntp-testbuild.tal1>
    ##
    # Having said this, do we really care if the openssl executable that
    # we have found is matched with the INCPATH and LIBPATH?
    # One answer: Probably not, but we should complain on a mismatch as
    # otherwise runtime differences could easily cause problems/drama.

    ##BO
    # ntp_cv_build_framework_help=yes
    save_PKG_CONFIG_PATH=${PKG_CONFIG_PATH}
    for pkg in `echo $with_crypto | $SED -e 's/,/ /'`; do
        case "$pkg" in
	 openssl)
	    if $PKG_CONFIG --exists $pkg ; then
		# Found it - yay
		# Do we want to check we found the right one?
		# --modver
		# --variable={libdir,includedir} (varname)
		overf=`openssl version`
		overs=`echo $overf | awk '{print }'`
		case "$overs" in
		 0.*) ;;	# Should we squawk?
		 1.0.*) ;;	# Should we squawk?
		 1.1.*) ;;	# Should we squawk?
		 3.*)
		    oinc=`openssl --variable=includedir`
		    olib=`openssl --variable=libdir`
		    # How should we use these?
		    ;;
		 *) ;;	# Should we squawk?
		esac
		# /ntpbuild/include/openssl/opensslv.h:# define OPENSSL_VERSION_TEXT    "OpenSSL 1.1.1t  7 Feb 2023"
		# grep 1.1.1t /ntpbuild/lib/libcrypto.a
		# strings -a /ntpbuild/lib/libcrypto.a | grep 1.1.1t
		# OpenSSL 1.1.1t  7 Feb 2023
		# harlan@@ntp-testbuild.tal1>
		# which should match $overf
		##
		# harlan@@ntp-testbuild.tal1> echo '"OpenSSL 1.1.1t  7 Feb 2023"' | cut -f 2 -d\"
		# OpenSSL 1.1.1t  7 Feb 2023
		# harlan@@ntp-testbuild.tal1> grep OPENSSL_VERSION_TEXT /ntpbuild/include/openssl/opensslv.h
		# # define OPENSSL_VERSION_TEXT    "OpenSSL 1.1.1t  7 Feb 2023"
		# harlan@@ntp-testbuild.tal1>
		##

	    else
		# This is a hack, but it's reasonable.
		pkgpath="`echo $PATH_OPENSSL | sed -e 's:/bin/openssl$::'`/lib/pkgconfig"
		test -d "$pkgpath" || pkgpath=
		# echo "pkgpath is <$pkgpath>"
		# echo "PKG_CONFIG_PATH is <$PKG_CONFIG_PATH>"
		case "$pkgpath" in
		 '') ;;	# Nothing to see here...
		 *) case ":$PKG_CONFIG_PATH:" in
		     ::)
			PKG_CONFIG_PATH=$pkgpath
			export PKG_CONFIG_PATH
			;;
		     *:$pkgpath:*)
			# Already there...
			;;
		     *)
			PKG_CONFIG_PATH="$pkgpath:$PKG_CONFIG_PATH"
			export PKG_CONFIG_PATH
			;;
		    esac
		    ;;
		esac
	    fi
	    ;;
        esac
    done
    ##EO

    for pkg in `echo $with_crypto | $SED -e 's/,/ /'`; do
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
printf %s "checking pkg-config for $pkg... " >&6; }
	if $PKG_CONFIG --exists $pkg ; then
	    ntp_ssl_cppflags="`$PKG_CONFIG --cflags-only-I $pkg`"
	    case "$ntp_ssl_cppflags" in
	     '')
		ntp_ssl_incdir='not needed'
		;;
	     *)
		ntp_ssl_incdir="`echo $ntp_ssl_cppflags | $SED -e 's/-I//'`"
	    esac
	    ntp_ssl_cflags="`$PKG_CONFIG --cflags-only-other $pkg`"
	    ntp_ssl_libs_L="`$PKG_CONFIG --libs-only-L $pkg`"
	    case "$ntp_ssl_libs_L" in
	     '')
		ntp_ssl_libdir='not needed'
		;;
	     *)
		ntp_ssl_libdir="`echo $ntp_ssl_libs_L | $SED -e 's/-L//'`"
	    esac
	    ntp_ssl_libs_l="`$PKG_CONFIG --libs-only-l $pkg`"
	    ntp_ssl_libs="$ntp_ssl_libs_L $ntp_ssl_libs_l"
	    ntp_ssl_ldflags="`$PKG_CONFIG --libs-only-other $pkg`"
	    ntp_openssl=yes
	    ntp_openssl_from_pkg_config=yes
	    ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`"
	    case "$ntp_openssl_version" in
	     *.*) ;;
	     *) ntp_openssl_version='(unknown)' ;;
	    esac
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5
printf "%s\n" "yes, version $ntp_openssl_version" >&6; }

	    break
	fi
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    done
    { pkg=; unset pkg;}
esac
case "$with_crypto" in
 no) ;;
 *)
    case "$with_openssl_libdir" in
     '') ;;
     *)
	ntp_ssl_libdir="$with_openssl_libdir"
	ntp_ssl_libs_L="-L$with_openssl_libdir"
	ntp_ssl_libs_l="-lcrypto"
	ntp_ssl_libs="$ntp_ssl_libs_L $ntp_ssl_libs_l"
    esac
    case "$with_openssl_incdir" in
     '') ;;
     *)
	ntp_ssl_incdir="$with_openssl_incdir"
	ntp_ssl_cppflags="-I$with_openssl_incdir"
    esac
esac

	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL Phase I checks:" >&5
printf "%s\n" "$as_me: OpenSSL Phase I checks:" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CPPFLAGS_NTP: ($CPPFLAGS_NTP)" >&5
printf "%s\n" "$as_me: CPPFLAGS_NTP: ($CPPFLAGS_NTP)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CFLAGS_NTP:   ($CFLAGS_NTP)" >&5
printf "%s\n" "$as_me: CFLAGS_NTP:   ($CFLAGS_NTP)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LDADD_NTP:    ($LDADD_NTP)" >&5
printf "%s\n" "$as_me: LDADD_NTP:    ($LDADD_NTP)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LDFLAGS_NTP:  ($LDFLAGS_NTP)" >&5
printf "%s\n" "$as_me: LDFLAGS_NTP:  ($LDFLAGS_NTP)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_openssl_from_pkg_config: $ntp_openssl_from_pkg_config" >&5
printf "%s\n" "$as_me: ntp_openssl_from_pkg_config: $ntp_openssl_from_pkg_config" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_incdir:   ($ntp_ssl_incdir)" >&5
printf "%s\n" "$as_me: ntp_ssl_incdir:   ($ntp_ssl_incdir)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_libdir:   ($ntp_ssl_libdir)" >&5
printf "%s\n" "$as_me: ntp_ssl_libdir:   ($ntp_ssl_libdir)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_cflags:   ($ntp_ssl_cflags)" >&5
printf "%s\n" "$as_me: ntp_ssl_cflags:   ($ntp_ssl_cflags)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_cppflags: ($ntp_ssl_cppflags)" >&5
printf "%s\n" "$as_me: ntp_ssl_cppflags: ($ntp_ssl_cppflags)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_libs_L:   ($ntp_ssl_libs_L)" >&5
printf "%s\n" "$as_me: ntp_ssl_libs_L:   ($ntp_ssl_libs_L)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_libs_l:   ($ntp_ssl_libs_l)" >&5
printf "%s\n" "$as_me: ntp_ssl_libs_l:   ($ntp_ssl_libs_l)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_libs:     ($ntp_ssl_libs)" >&5
printf "%s\n" "$as_me: ntp_ssl_libs:     ($ntp_ssl_libs)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_ldflags:  ($ntp_ssl_ldflags)" >&5
printf "%s\n" "$as_me: ntp_ssl_ldflags:  ($ntp_ssl_ldflags)" >&6;}
	esac



case "$with_crypto" in
 no)
    ntp_openssl=no
    ;;
 *)
    ntp_ssl_libs_l="${ntp_ssl_libs_l:--lcrypto}"
    ntp_ssl_libs="$ntp_ssl_libs_L $ntp_ssl_libs_l"
    case "$ntp_ssl_libdir" in
     '')

		{ ac_cv_lib_crypto_EVP_MD_CTX_new=; unset ac_cv_lib_crypto_EVP_MD_CTX_new;}
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Searching for libcrypto without -L" >&5
printf "%s\n" "$as_me: Searching for libcrypto without -L" >&6;}
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_new in -lcrypto" >&5
printf %s "checking for EVP_MD_CTX_new in -lcrypto... " >&6; }
if test ${ac_cv_lib_crypto_EVP_MD_CTX_new+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcrypto  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char EVP_MD_CTX_new ();
int
main (void)
{
return EVP_MD_CTX_new ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_crypto_EVP_MD_CTX_new=yes
else $as_nop
  ac_cv_lib_crypto_EVP_MD_CTX_new=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_new" >&5
printf "%s\n" "$ac_cv_lib_crypto_EVP_MD_CTX_new" >&6; }
if test "x$ac_cv_lib_crypto_EVP_MD_CTX_new" = xyes
then :
  ntp_ssl_libdir='not needed'

fi

		{ ac_cv_lib_crypto_EVP_MD_CTX_new=; unset ac_cv_lib_crypto_EVP_MD_CTX_new;}
    esac
    case "$ntp_ssl_libdir" in
     '')
	ntp_ssl_libdir_search="/usr/lib /usr/lib/openssl /usr/sfw/lib"
	ntp_ssl_libdir_search="$ntp_ssl_libdir_search /usr/local/lib"
	ntp_ssl_libdir_search="$ntp_ssl_libdir_search /usr/local/ssl/lib"
	ntp_ssl_libdir_search="$ntp_ssl_libdir_search /opt/local/lib"
	ntp_ssl_libdir_search="$ntp_ssl_libdir_search /lib /lib64"
	;;
     *)
	ntp_ssl_libdir_search="$ntp_ssl_libdir"
    esac
    case $ntp_ssl_libdir_search in
     'not needed') ;;
     *)
	for i in $ntp_ssl_libdir_search not_found
	do
	    case "$i" in
	     not_found) ;;
	     *)
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Searching for libcrypto in $i" >&5
printf "%s\n" "$as_me: Searching for libcrypto in $i" >&6;}
		LIBS="-L$i $NTPSSL_SAVED_LIBS"
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_new in -lcrypto" >&5
printf %s "checking for EVP_MD_CTX_new in -lcrypto... " >&6; }
if test ${ac_cv_lib_crypto_EVP_MD_CTX_new+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcrypto  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
char EVP_MD_CTX_new ();
int
main (void)
{
return EVP_MD_CTX_new ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_crypto_EVP_MD_CTX_new=yes
else $as_nop
  ac_cv_lib_crypto_EVP_MD_CTX_new=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_new" >&5
printf "%s\n" "$ac_cv_lib_crypto_EVP_MD_CTX_new" >&6; }
if test "x$ac_cv_lib_crypto_EVP_MD_CTX_new" = xyes
then :
  break

fi

				{ ac_cv_lib_crypto_EVP_MD_CTX_new=; unset ac_cv_lib_crypto_EVP_MD_CTX_new;}
	    esac
	done
	ntp_ssl_libdir="$i"
	ntp_ssl_libs_L="-L$i"
	ntp_ssl_libs="$ntp_ssl_libs_L $ntp_ssl_libs_l"
	LIBS="$NTPSSL_SAVED_LIBS"
	case "$ntp_ssl_libdir" in
	 not_found)
	    as_fn_error $? "You may want to use --without-crypto, or add
openssl.pc/libcrypto.pc to PKG_CONFIG_PATH, or use the
--with-openssl-libdir=/some/path option to configure.
libcrypto not found in any of the following directories:
$ntp_ssl_libdir_search
	    " "$LINENO" 5
	esac
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: libcrypto found in $ntp_ssl_libdir" >&5
printf "%s\n" "$as_me: libcrypto found in $ntp_ssl_libdir" >&6;}
    esac

    case "$ntp_openssl_from_pkg_config:$ntp_ssl_incdir" in
     'yes:not needed' | no:)
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Searching for openssl/evp.h without -I" >&5
printf "%s\n" "$as_me: Searching for openssl/evp.h without -I" >&6;}
		{ ac_cv_header_openssl_evp_h=; unset ac_cv_header_openssl_evp_h;}
	ac_fn_c_check_header_compile "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
if test "x$ac_cv_header_openssl_evp_h" = xyes
then :
  ntp_ssl_incdir='not needed'

fi

    esac
    case "$ntp_ssl_incdir" in
     'not needed')
	ntp_ssl_incdir_search="$ntp_ssl_incdir"
	;;
     *)
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Searching for openssl include directory" >&5
printf "%s\n" "$as_me: Searching for openssl include directory" >&6;}
	case "$with_openssl_incdir" in
	 '')
	    case "$ntp_ssl_incdir" in
	     '')
		ntp_ssl_incdir_search="/usr/include /usr/sfw/include"
		ntp_ssl_incdir_search="$ntp_ssl_incdir_search /usr/local/include"
		ntp_ssl_incdir_search="$ntp_ssl_incdir_search /opt/local/include"
		ntp_ssl_incdir_search="$ntp_ssl_incdir_search /usr/local/ssl/include"
		;;
	     *)
	    esac
	    ;;
	 *)
	    ntp_ssl_incdir_search="$with_openssl_incdir"
	esac
	case $ntp_ssl_incdir_search in
	 'not needed') ;;
	 *)
	    for i in $ntp_ssl_incdir_search
	    do
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Searching for openssl/evp.h in $i" >&5
printf "%s\n" "$as_me: Searching for openssl/evp.h in $i" >&6;}
		CPPFLAGS="$NTPSSL_SAVED_CPPFLAGS -I$i"
				{ ac_cv_header_openssl_evp_h=; unset ac_cv_header_openssl_evp_h;}
		ac_fn_c_check_header_compile "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
if test "x$ac_cv_header_openssl_evp_h" = xyes
then :
  ntp_ssl_incdir="$i" ; break

fi

	    done
	    { ac_cv_header_openssl_evp_h=; unset ac_cv_header_openssl_evp_h;}
	    { i=; unset i;}
	    CPPFLAGS="$NTPSSL_SAVED_CPPFLAGS"
	    case "$ntp_ssl_incdir" in
	     '')
		as_fn_error $? "You may want to use --without-crypto, or add
openssl.pc/libcrypto.pc to PKG_CONFIG_PATH, or use the
-with-openssl-incdir=/some/path option to configure.
No usable openssl/evp.h found in any of the following direcotries:
$ntp_ssl_incdir_search
		" "$LINENO" 5
	    esac
	    ntp_ssl_cppflags="-I$ntp_ssl_incdir"
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Found evp.h in $ntp_ssl_incdir/openssl" >&5
printf "%s\n" "$as_me: Found evp.h in $ntp_ssl_incdir/openssl" >&6;}
	esac
    esac
    ntp_openssl=yes
esac
case "$ntp_openssl:$ntp_ssl_libdir" in
 'yes:not needed')
    ;;
 yes:*)
    CFLAGS="$NTPSSL_SAVED_CFLAGS $ntp_ssl_cflags"
    CPPFLAGS="$NTPSSL_SAVED_CPPFLAGS $ntp_ssl_cppflags"
    LIBS="$ntp_ssl_libs $NTPSSL_SAVED_LIBS"
    LDFLAGS="$ntp_ssl_ldflags $NTPSSL_SAVED_LDFLAGS"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if crypto works without runpath" >&5
printf %s "checking if crypto works without runpath... " >&6; }
if test ${ntp_cv_ssl_without_runpath+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test "$cross_compiling" = yes
then :
  ntp_cv_ssl_without_runpath=yes
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include "openssl/evp.h"

int
main (void)
{

		    if (!EVP_MD_CTX_new()) {
			return 1;
		    }


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ntp_cv_ssl_without_runpath=yes
else $as_nop
  ntp_cv_ssl_without_runpath=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_ssl_without_runpath" >&5
printf "%s\n" "$ntp_cv_ssl_without_runpath" >&6; }
    case "$ntp_cv_ssl_without_runpath" in
     no)
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if crypto needs -Wl,-rpath,$ntp_ssl_libdir" >&5
printf %s "checking if crypto needs -Wl,-rpath,$ntp_ssl_libdir... " >&6; }
if test ${ntp_cv_ssl_needs_dashWl_rpath+y}
then :
  printf %s "(cached) " >&6
else $as_nop

		LDFLAGS="$ntp_ssl_ldflags -Wl,-rpath,$ntp_ssl_libdir $NTPSSL_SAVED_LDFLAGS"
		if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    #include "openssl/evp.h"

int
main (void)
{

			    if (!EVP_MD_CTX_new()) {
				return 1;
			    }


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ntp_cv_ssl_needs_dashWl_rpath=yes
else $as_nop
  ntp_cv_ssl_needs_dashWl_rpath=no

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi



fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_ssl_needs_dashWl_rpath" >&5
printf "%s\n" "$ntp_cv_ssl_needs_dashWl_rpath" >&6; }
	case "$ntp_cv_ssl_needs_dashWl_rpath" in
	 yes)
	    ntp_ssl_ldflags="$ntp_ssl_ldflags -Wl,-rpath,$ntp_ssl_libdir"
	    ;;
	 no)
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if crypto needs -R$ntp_ssl_libdir" >&5
printf %s "checking if crypto needs -R$ntp_ssl_libdir... " >&6; }
if test ${ntp_cv_ssl_needs_dashR+y}
then :
  printf %s "(cached) " >&6
else $as_nop

		    LDFLAGS="$NTPSSL_SAVED_LDFLAGS $ntp_ssl_ldflags -R$ntp_ssl_libdir"
		    if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

				#include "openssl/evp.h"

int
main (void)
{

				if (!EVP_MD_CTX_new()) {
				    return 1;
				}


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ntp_cv_ssl_needs_dashR=yes
else $as_nop
  ntp_cv_ssl_needs_dashR=no

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi



fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_ssl_needs_dashR" >&5
printf "%s\n" "$ntp_cv_ssl_needs_dashR" >&6; }
	    case "$ntp_cv_ssl_needs_dashR" in
	     yes)
		ntp_ssl_ldflags="$ntp_ssl_ldflags -R$ntp_ssl_libdir"
	    esac
	    case "$build:$ntp_cv_ssl_needs_dashR" in
	     $host:no)
		{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Unable to run program using crypto, check openssl.pc
or libcrypto.pc are in PKG_CONFIG_PATH, or provide the
 --with-openssl-libdir=/some/path option to configure.

See \`config.log' for more details" "$LINENO" 5; }
	    esac
	esac
    esac
d24832 2
a24833 4
	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL Phase II checks:" >&5
printf "%s\n" "$as_me: OpenSSL Phase II checks:" >&6;}
	esac
d24835 1
d24837 3
a24839 4
	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_incdir:   ($ntp_ssl_incdir)" >&5
printf "%s\n" "$as_me: ntp_ssl_incdir:   ($ntp_ssl_incdir)" >&6;}
	esac
d24841 5
a24845 56

	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_libdir:   ($ntp_ssl_libdir)" >&5
printf "%s\n" "$as_me: ntp_ssl_libdir:   ($ntp_ssl_libdir)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_cflags:   ($ntp_ssl_cflags)" >&5
printf "%s\n" "$as_me: ntp_ssl_cflags:   ($ntp_ssl_cflags)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_cppflags: ($ntp_ssl_cppflags)" >&5
printf "%s\n" "$as_me: ntp_ssl_cppflags: ($ntp_ssl_cppflags)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_libs_L:   ($ntp_ssl_libs_L)" >&5
printf "%s\n" "$as_me: ntp_ssl_libs_L:   ($ntp_ssl_libs_L)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_libs_l:   ($ntp_ssl_libs_l)" >&5
printf "%s\n" "$as_me: ntp_ssl_libs_l:   ($ntp_ssl_libs_l)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_libs:     ($ntp_ssl_libs)" >&5
printf "%s\n" "$as_me: ntp_ssl_libs:     ($ntp_ssl_libs)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_ssl_ldflags:  ($ntp_ssl_ldflags)" >&5
printf "%s\n" "$as_me: ntp_ssl_ldflags:  ($ntp_ssl_ldflags)" >&6;}
	esac



case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
 yes:no)
    CFLAGS="$NTPSSL_SAVED_CFLAGS $ntp_ssl_cflags"
    CPPFLAGS="$NTPSSL_SAVED_CPPFLAGS $ntp_ssl_cppflags"
    LIBS="$ntp_ssl_libs $NTPSSL_SAVED_LIBS"
    LDFLAGS="$ntp_ssl_ldflags $NTPSSL_SAVED_LDFLAGS"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linking with $ntp_ssl_libs_l alone works" >&5
printf %s "checking if linking with $ntp_ssl_libs_l alone works... " >&6; }
if test ${ntp_cv_bare_lcrypto+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24849 1
a24849 1
		    #include "openssl/evp.h"
d24852 1
a24852 1
main (void)
d24855 2
a24856 1
		    EVP_MD_CTX_new();
d24863 4
a24866 5
if ac_fn_c_try_link "$LINENO"
then :
  ntp_cv_bare_lcrypto=yes
else $as_nop
  ntp_cv_bare_lcrypto=no
d24869 1
a24869 2
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
d24872 4
a24875 13
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
printf "%s\n" "$ntp_cv_bare_lcrypto" >&6; }
    case "$ntp_cv_bare_lcrypto" in
     no)
	LIBS="-$ntp_ssl_libs -lz $NTPSSL_SAVED_LIBS"
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linking with $ntp_ssl_libs_l -lz works" >&5
printf %s "checking if linking with $ntp_ssl_libs_l -lz works... " >&6; }
if test ${ntp_cv_lcrypto_lz+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
d24877 1
a24877 1
			#include "openssl/evp.h"
d24879 1
a24879 3
int
main (void)
{
d24881 6
a24886 6
			EVP_MD_CTX_new();


  ;
  return 0;
}
a24887 5
if ac_fn_c_try_link "$LINENO"
then :
  ntp_cv_lcrypto_lz=yes
else $as_nop
  ntp_cv_lcrypto_lz=no
d24889 1
a24889 3
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
d24891 2
a24892 104
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
printf "%s\n" "$ntp_cv_lcrypto_lz" >&6; }
	case "$ntp_cv_lcrypto_lz" in
	 yes)
	     ntp_ssl_libs_l="$ntp_ssl_libs_l -lz"
	     ntp_ssl_libs="$ntp_ssl_libs_L $ntp_ssl_libs_l"
	esac
    esac	esac
case "$ntp_openssl:$GCC" in
 yes:yes)
    CFLAGS="$NTP_SAVED_CFLAGS $ntp_ssl_cflags -Werror"
    CPPFLAGS="$NTPSSL_SAVED_CPPFLAGS $ntp_ssl_cppflags"
    LIBS="$ntp_ssl_libs $NTPSSL_SAVED_LIBS"
    LDFLAGS="$ntp_ssl_ldflags $NTPSSL_SAVED_LDFLAGS"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking If $CC supports -Werror" >&5
printf %s "checking If $CC supports -Werror... " >&6; }
if test ${ntp_cv_gcc_supports_Werror+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_gcc_supports_Werror=yes
else $as_nop
  ntp_cv_gcc_supports_Werror=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_supports_Werror" >&5
printf "%s\n" "$ntp_cv_gcc_supports_Werror" >&6; }
    case "ntp_cv_gcc_supports_Werror" in
     no)
	ntp_use_Wstrict_prototypes=yes
	;;
     yes)
	CFLAGS="$CFLAGS -Wstrict-prototypes"
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OpenSSL triggers warnings" >&5
printf %s "checking if OpenSSL triggers warnings... " >&6; }
if test ${ntp_cv_ssl_triggers_warnings+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include "openssl/asn1_mac.h"
			#include "openssl/bn.h"
			#include "openssl/err.h"
			#include "openssl/evp.h"
			#include "openssl/pem.h"
			#include "openssl/rand.h"
			#include "openssl/x509v3.h"

int
main (void)
{

			/* empty body */


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_ssl_triggers_warnings=no
else $as_nop
  ntp_cv_ssl_triggers_warnings=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_ssl_triggers_warnings" >&5
printf "%s\n" "$ntp_cv_ssl_triggers_warnings" >&6; }
	case "$ntp_cv_ssl_triggers_warnings" in
	 yes)
	    ntp_use_Wstrict_prototypes=no
	    ;;
	 *)
	    ntp_use_Wstrict_prototypes=yes
	esac
    esac
    case "$ntp_use_Wstrict_prototypes" in
     no)
	ntp_ssl_cflags="$ntp_ssl_cflags -Wno-strict-prototypes"
	;;
     *)
	ntp_ssl_cflags="$ntp_ssl_cflags -Wstrict-prototypes"
a24893 21
    ;;
 no:yes)
        ntp_ssl_cflags="$ntp_ssl_cflags -Wstrict-prototypes"
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we will link to ssl library" >&5
printf %s "checking if we will link to ssl library... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
printf "%s\n" "$ntp_openssl" >&6; }

case "$ntp_openssl" in
 yes)
    VER_SUFFIX=o
           for ac_header in openssl/cmac.h
do :
  ac_fn_c_check_header_compile "$LINENO" "openssl/cmac.h" "ac_cv_header_openssl_cmac_h" "$ac_includes_default"
if test "x$ac_cv_header_openssl_cmac_h" = xyes
then :
  printf "%s\n" "#define HAVE_OPENSSL_CMAC_H 1" >>confdefs.h
 ntp_enable_cmac=yes
else $as_nop
  ntp_enable_cmac=no
a24895 1

a24896 2
    case "$ntp_enable_cmac" in
     yes)
a24897 1
printf "%s\n" "#define ENABLE_CMAC 1" >>confdefs.h
d24899 21
a24920 18

printf "%s\n" "#define OPENSSL /**/" >>confdefs.h


printf "%s\n" "#define OPENSSL_SUPPRESS_DEPRECATED 1" >>confdefs.h

        CFLAGS="$NTPSSL_SAVED_CFLAGS"
    ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes
then :
  printf "%s\n" "#define HAVE_EVP_MD_DO_ALL_SORTED 1" >>confdefs.h

fi

    CPPFLAGS_NTP="$CPPFLAGS_NTP $ntp_ssl_cppflags"
    CFLAGS_NTP="$CFLAGS_NTP $ntp_ssl_cflags"
    LDADD_NTP="$ntp_ssl_libs $LDADD_NTP"
    LDFLAGS_NTP="$ntp_ssl_ldflags $LDFLAGS_NTP"
d24922 10
a24931 5

	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL final checks:" >&5
printf "%s\n" "$as_me: OpenSSL final checks:" >&6;}
	esac
d24934 3
a24936 5
	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ntp_openssl:  $ntp_openssl" >&5
printf "%s\n" "$as_me: ntp_openssl:  $ntp_openssl" >&6;}
	esac

a24937 4
	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CPPFLAGS_NTP: ($CPPFLAGS_NTP)" >&5
printf "%s\n" "$as_me: CPPFLAGS_NTP: ($CPPFLAGS_NTP)" >&6;}
	esac
d24940 2
a24941 54
	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CFLAGS_NTP:   ($CFLAGS_NTP)" >&5
printf "%s\n" "$as_me: CFLAGS_NTP:   ($CFLAGS_NTP)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LDADD_NTP:    ($LDADD_NTP)" >&5
printf "%s\n" "$as_me: LDADD_NTP:    ($LDADD_NTP)" >&6;}
	esac


	case "$enable_verbose_ssl" in
	 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LDFLAGS_NTP:  ($LDFLAGS_NTP)" >&5
printf "%s\n" "$as_me: LDFLAGS_NTP:  ($LDFLAGS_NTP)" >&6;}
	esac



CFLAGS="$NTPSSL_SAVED_CFLAGS"
CPPFLAGS="$NTPSSL_SAVED_CPPFLAGS"
LIBS="$NTPSSL_SAVED_LIBS"
LDFLAGS="$NTPSSL_SAVED_LDFLAGS"

{ NTPSSL_SAVED_CFLAGS=; unset NTPSSL_SAVED_CFLAGS;}
{ NTPSSL_SAVED_CPPFLAGS=; unset NTPSSL_SAVED_CPPFLAGS;}
{ NTPSSL_SAVED_LIBS=; unset NTPSSL_SAVED_LIBS;}
{ NTPSSL_SAVED_LDFLAGS=; unset NTPSSL_SAVED_LDFLAGS;}
{ ntp_enable_cmac=; unset ntp_enable_cmac;}
{ ntp_use_Wstrict_prototypes=; unset ntp_use_Wstrict_prototypes;}
{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
{ ntp_openssl_version=; unset ntp_openssl_version;}
{ ntp_ssl_cflags=; unset ntp_ssl_cflags;}
{ ntp_ssl_cppflags=; unset ntp_ssl_cppflags;}
{ ntp_ssl_libdir_search=; unset ntp_ssl_libdir_search;}
{ ntp_ssl_incdir_search=; unset ntp_ssl_incdir_search;}
{ ntp_ssl_libdir=; unset ntp_ssl_libdir;}
{ ntp_ssl_incdir=; unset ntp_ssl_incdir;}
{ ntp_ssl_libs_l=; unset ntp_ssl_libs_l;}
{ ntp_ssl_libs_L=; unset ntp_ssl_libs_L;}
{ ntp_ssl_ldflags=; unset ntp_ssl_ldflags;}





{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to use SSL library's secure random numbers" >&5
printf %s "checking if we want to use SSL library's secure random numbers... " >&6; }
# Check whether --enable-openssl-random was given.
if test ${enable_openssl_random+y}
then :
  enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval ; ntp_ssl_random_mandatory=$enableval
else $as_nop
  ntp_use_openssl_random=yes ; ntp_ssl_random_mandatory=no
d24943 5
d24950 2
a24951 26
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
printf "%s\n" "$ntp_use_openssl_random" >&6; }

# The following might need extra libraries
NTPO_SAVED_LIBS="$LIBS"
LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
ac_fn_c_check_func "$LINENO" "RAND_bytes" "ac_cv_func_RAND_bytes"
if test "x$ac_cv_func_RAND_bytes" = xyes
then :
  printf "%s\n" "#define HAVE_RAND_BYTES 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "RAND_poll" "ac_cv_func_RAND_poll"
if test "x$ac_cv_func_RAND_poll" = xyes
then :
  printf "%s\n" "#define HAVE_RAND_POLL 1" >>confdefs.h

fi

LIBS="$NTPO_SAVED_LIBS"
case "$ntp_openssl$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
 yesyesyesyes)
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using SSL library's secure random number generator" >&5
printf "%s\n" "$as_me: Using SSL library's secure random number generator" >&6;}

printf "%s\n" "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
d24953 4
a24957 23
 *)
    ntp_use_openssl_random=no
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SSL library's secure random number generator unavailable." >&5
printf "%s\n" "$as_me: SSL library's secure random number generator unavailable." >&6;}
    case "$ntp_ssl_random_mandatory" in
     yes)
	as_fn_error $? "No suitable SSL library was found and
--enable-openssl-random was given..  Remove --enable-openssl-random
if you wish to build without a cryptographically secure random number
generator.

WARNING: Use of ntp-keygen without a secure RNG may generate
-------  keys that are predictable.
	" "$LINENO" 5
	;;
     *)
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Use of ntp-keygen without a secure RNG may generate
-------  keys that are predictable.
	" >&5
printf "%s\n" "$as_me: WARNING: WARNING: Use of ntp-keygen without a secure RNG may generate
-------  keys that are predictable.
	" >&2;}
    esac
a24959 10
{ ntp_ssl_random_mandatory=; unset ntp_ssl_random_mandatory;}



LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
LIBS=$SAVED_LIBS
{ SAVED_LIBS=; unset SAVED_LIBS;}



d24964 5
a24968 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_AWK+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d24976 1
a24976 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d24978 1
a24978 1
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
d24980 1
a24980 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d24991 2
a24992 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
printf "%s\n" "$AWK" >&6; }
d24994 2
a24995 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d25003 2
a25004 2
				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
d25006 4
a25009 5
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval test \${ac_cv_prog_make_${ac_make}_set+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25025 66
a25090 3
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  SET_MAKE=
d25092 4
a25095 3
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
d25097 5
a25102 10

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
printf %s "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
printf "%s\n" "no, using $LN_S" >&6; }
d25109 5
a25113 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PATH_PERL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25123 1
a25123 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d25125 3
a25127 3
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PATH_PERL="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d25139 2
a25140 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
printf "%s\n" "$PATH_PERL" >&6; }
d25142 2
a25143 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d25150 5
a25154 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PATH_TEST+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25164 1
a25164 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d25166 3
a25168 3
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PATH_TEST="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d25180 2
a25181 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
printf "%s\n" "$PATH_TEST" >&6; }
d25183 2
a25184 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d25193 1
a25193 2
if test ${with_net_snmp_config+y}
then :
d25195 1
a25195 1
else $as_nop
d25223 5
a25227 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PATH_NET_SNMP_CONFIG+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25237 1
a25237 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d25239 3
a25241 3
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d25253 2
a25254 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
printf "%s\n" "$PATH_NET_SNMP_CONFIG" >&6; }
d25256 2
a25257 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d25264 4
a25267 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
printf %s "checking for net-snmp-config path... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
printf "%s\n" "$PATH_NET_SNMP_CONFIG" >&6; }
d25270 5
a25274 6
 /*)	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
printf %s "checking for net-snmp version... " >&6; }
if test ${ntp_cv_net_snmp_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25278 2
a25279 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
printf "%s\n" "$ntp_cv_net_snmp_version" >&6; }
d25290 5
a25294 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
printf %s "checking for library containing openlog... " >&6; }
if test ${ac_cv_search_openlog+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25302 3
d25307 1
a25307 1
main (void)
d25314 1
a25314 2
for ac_lib in '' gen syslog
do
d25321 1
a25321 2
  if ac_fn_c_try_link "$LINENO"
then :
d25324 1
a25324 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d25326 1
a25326 2
  if test ${ac_cv_search_openlog+y}
then :
d25330 1
a25330 2
if test ${ac_cv_search_openlog+y}
then :
d25332 1
a25332 1
else $as_nop
d25338 2
a25339 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
printf "%s\n" "$ac_cv_search_openlog" >&6; }
d25341 1
a25341 2
if test "$ac_res" != no
then :
d25350 2
a25351 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
printf %s "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
d25353 1
a25353 2
if test ${enable_libseccomp+y}
then :
d25355 1
a25355 1
else $as_nop
d25360 2
a25361 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d25364 5
a25368 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
printf %s "checking for library containing seccomp_init... " >&6; }
if test ${ac_cv_search_seccomp_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25376 3
d25381 1
a25381 1
main (void)
d25388 1
a25388 2
for ac_lib in '' seccomp
do
d25395 1
a25395 2
  if ac_fn_c_try_link "$LINENO"
then :
d25398 1
a25398 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d25400 1
a25400 2
  if test ${ac_cv_search_seccomp_init+y}
then :
d25404 1
a25404 2
if test ${ac_cv_search_seccomp_init+y}
then :
d25406 1
a25406 1
else $as_nop
d25412 2
a25413 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
printf "%s\n" "$ac_cv_search_seccomp_init" >&6; }
d25415 1
a25415 2
if test "$ac_res" != no
then :
d25418 1
a25418 1
printf "%s\n" "#define LIBSECCOMP 1" >>confdefs.h
d25423 3
a25425 4
    if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d25428 1
a25428 1
else $as_nop
d25469 1
a25469 2
if ac_fn_c_try_run "$LINENO"
then :
d25471 1
a25471 1
printf "%s\n" "#define KERN_SECCOMP 1" >>confdefs.h
d25483 5
d25489 1
a25489 7
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
printf %s "checking for facilitynames in syslog.h... " >&6; }
if test ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d25492 3
a25494 3
		#define SYSLOG_NAMES
		#include <stdlib.h>
		#include <syslog.h>
d25497 1
a25497 1
main (void)
d25499 1
a25499 4

		void *fnames = facilitynames;


a25502 1
	ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
d25504 3
a25506 2
if ac_fn_c_try_compile "$LINENO"
then :
a25507 1

d25509 1
a25509 2
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

d25511 2
a25512 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
printf "%s\n" "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
d25516 1
a25516 1
printf "%s\n" "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
d25520 7
a25526 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
printf "%s\n" "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
d25538 7
a25544 11
     '') { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!
See \`config.log' for more details" "$LINENO" 5; } ;;
    esac
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
printf %s "checking for library containing sched_setscheduler... " >&6; }
if test ${ac_cv_search_sched_setscheduler+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25552 3
d25557 1
a25557 1
main (void)
d25564 1
a25564 2
for ac_lib in '' rt posix4
do
d25571 1
a25571 2
  if ac_fn_c_try_link "$LINENO"
then :
d25574 1
a25574 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d25576 1
a25576 2
  if test ${ac_cv_search_sched_setscheduler+y}
then :
d25580 1
a25580 2
if test ${ac_cv_search_sched_setscheduler+y}
then :
d25582 1
a25582 1
else $as_nop
d25588 2
a25589 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
printf "%s\n" "$ac_cv_search_sched_setscheduler" >&6; }
d25591 1
a25591 2
if test "$ac_res" != no
then :
d25599 7
a25605 10
ac_fn_c_check_header_compile "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
if test "x$ac_cv_header_bstring_h" = xyes
then :
  printf "%s\n" "#define HAVE_BSTRING_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/procctl.h" "ac_cv_header_sys_procctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_procctl_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PROCCTL_H 1" >>confdefs.h
d25609 9
a25617 9
ac_fn_c_check_header_compile "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
if test "x$ac_cv_header_dns_sd_h" = xyes
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
printf %s "checking for library containing DNSServiceRegister... " >&6; }
if test ${ac_cv_search_DNSServiceRegister+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d25625 3
d25630 1
a25630 1
main (void)
d25637 1
a25637 2
for ac_lib in '' dns_sd
do
d25644 1
a25644 2
  if ac_fn_c_try_link "$LINENO"
then :
d25647 1
a25647 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d25649 1
a25649 2
  if test ${ac_cv_search_DNSServiceRegister+y}
then :
d25653 1
a25653 2
if test ${ac_cv_search_DNSServiceRegister+y}
then :
d25655 1
a25655 1
else $as_nop
d25661 2
a25662 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
printf "%s\n" "$ac_cv_search_DNSServiceRegister" >&6; }
d25664 1
a25664 2
if test "$ac_res" != no
then :
d25667 1
a25667 1
printf "%s\n" "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
a25674 4
ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
if test "x$ac_cv_header_fcntl_h" = xyes
then :
  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
d25676 8
a25683 5
fi
ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
if test "x$ac_cv_header_fnmatch_h" = xyes
then :
  printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h
a25685 4
ac_fn_c_check_header_compile "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
if test "x$ac_cv_header_ieeefp_h" = xyes
then :
  printf "%s\n" "#define HAVE_IEEEFP_H 1" >>confdefs.h
d25687 1
a25687 5
fi
ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
if test "x$ac_cv_header_inttypes_h" = xyes
then :
  printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
a25688 5
fi
ac_fn_c_check_header_compile "$LINENO" "kvm.h" "ac_cv_header_kvm_h" "$ac_includes_default"
if test "x$ac_cv_header_kvm_h" = xyes
then :
  printf "%s\n" "#define HAVE_KVM_H 1" >>confdefs.h
d25690 8
a25697 5
fi
ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
if test "x$ac_cv_header_math_h" = xyes
then :
  printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
d25701 1
d25703 8
a25710 4
ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
if test "x$ac_cv_header_memory_h" = xyes
then :
  printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
a25712 4
ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
if test "x$ac_cv_header_netdb_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
d25714 1
a25714 5
fi
ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
if test "x$ac_cv_header_poll_h" = xyes
then :
  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
d25716 5
a25720 30
fi

ac_fn_c_check_header_compile "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
if test "x$ac_cv_header_sgtty_h" = xyes
then :
  printf "%s\n" "#define HAVE_SGTTY_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
if test "x$ac_cv_header_stdatomic_h" = xyes
then :
  printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h

fi

ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
if test "x$ac_cv_type__Bool" = xyes
then :

printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h


fi

   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
printf %s "checking for stdbool.h that conforms to C99... " >&6; }
if test ${ac_cv_header_stdbool_h+y}
then :
  printf %s "(cached) " >&6
else $as_nop
a25722 1
#include <stdbool.h>
d25724 9
a25732 2
             #ifndef __bool_true_false_are_defined
               #error "__bool_true_false_are_defined is not defined"
d25734 2
a25735 9
             char a[__bool_true_false_are_defined == 1 ? 1 : -1];

             /* Regardless of whether this is C++ or "_Bool" is a
                valid type name, "true" and "false" should be usable
                in #if expressions and integer constant expressions,
                and "bool" should be a valid type name.  */

             #if !true
               #error "'true' is not true"
d25738 1
a25738 1
               #error "'true' is not equal to 1"
d25740 2
a25741 5
             char b[true == 1 ? 1 : -1];
             char c[true];

             #if false
               #error "'false' is not false"
a25742 6
             #if false != 0
               #error "'false' is not equal to 0"
             #endif
             char d[false == 0 ? 1 : -1];

             enum { e = false, f = true, g = false * true, h = true * 256 };
d25744 1
a25744 6
             char i[(bool) 0.5 == true ? 1 : -1];
             char j[(bool) 0.0 == false ? 1 : -1];
             char k[sizeof (bool) > 0 ? 1 : -1];

             struct sb { bool s: 1; bool t; } s;
             char l[sizeof s.t > 0 ? 1 : -1];
d25746 10
d25758 3
a25760 3
             bool m[h];
             char n[sizeof m == h * sizeof m[0] ? 1 : -1];
             char o[-1 - (bool) 0 < 0 ? 1 : -1];
d25762 2
a25763 2
         https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
         https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
d25765 2
a25766 33
             bool p = true;
             bool *pp = &p;

             /* C 1999 specifies that bool, true, and false are to be
                macros, but C++ 2011 and later overrule this.  */
             #if __cplusplus < 201103
              #ifndef bool
               #error "bool is not defined"
              #endif
              #ifndef false
               #error "false is not defined"
              #endif
              #ifndef true
               #error "true is not defined"
              #endif
             #endif

             /* If _Bool is available, repeat with it all the tests
                above that used bool.  */
             #ifdef HAVE__BOOL
               struct sB { _Bool s: 1; _Bool t; } t;

               char q[(_Bool) 0.5 == true ? 1 : -1];
               char r[(_Bool) 0.0 == false ? 1 : -1];
               char u[sizeof (_Bool) > 0 ? 1 : -1];
               char v[sizeof t.t > 0 ? 1 : -1];

               _Bool w[h];
               char x[sizeof m == h * sizeof m[0] ? 1 : -1];
               char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
               _Bool z = true;
               _Bool *pz = &p;
             #endif
d25769 1
a25769 1
main (void)
d25772 6
a25777 18
             bool ps = &s;
             *pp |= p;
             *pp |= ! p;

             #ifdef HAVE__BOOL
               _Bool pt = &t;
               *pz |= z;
               *pz |= ! z;
             #endif

             /* Refer to every declared value, so they cannot be
                discarded as unused.  */
             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
                     + !l + !m + !n + !o + !p + !pp + !ps
             #ifdef HAVE__BOOL
                     + !q + !r + !u + !v + !w + !x + !y + !z + !pt
             #endif
                    );
d25783 1
a25783 2
if ac_fn_c_try_compile "$LINENO"
then :
d25785 1
a25785 1
else $as_nop
d25788 1
a25788 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d25790 4
a25793 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
d25795 3
a25797 1
if test $ac_cv_header_stdbool_h = yes; then
a25798 1
printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
a25801 4
ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
if test "x$ac_cv_header_stdlib_h" = xyes
then :
  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
d25803 1
a25803 5
fi
ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
if test "x$ac_cv_header_string_h" = xyes
then :
  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
d25805 1
a25805 5
fi
ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
if test "x$ac_cv_header_termio_h" = xyes
then :
  printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
d25809 8
a25816 4
ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
if test "x$ac_cv_header_termios_h" = xyes
then :
  printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
a25818 4
ac_fn_c_check_header_compile "$LINENO" "timepps.h" "ac_cv_header_timepps_h" "$ac_includes_default"
if test "x$ac_cv_header_timepps_h" = xyes
then :
  printf "%s\n" "#define HAVE_TIMEPPS_H 1" >>confdefs.h
d25820 10
a25829 5
fi
ac_fn_c_check_header_compile "$LINENO" "timex.h" "ac_cv_header_timex_h" "$ac_includes_default"
if test "x$ac_cv_header_timex_h" = xyes
then :
  printf "%s\n" "#define HAVE_TIMEX_H 1" >>confdefs.h
a25831 4
ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
if test "x$ac_cv_header_unistd_h" = xyes
then :
  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
d25833 1
a25833 1
fi
d25838 7
a25844 4
    ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
if test "x$ac_cv_header_utmpx_h" = xyes
then :
  printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
d25848 2
d25854 7
a25860 4
	ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
if test "x$ac_cv_header_utmp_h" = xyes
then :
  printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
d25864 2
d25870 8
a25877 4
    ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
if test "x$ac_cv_header_utmp_h" = xyes
then :
  printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
a25879 4
ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
if test "x$ac_cv_header_utmpx_h" = xyes
then :
  printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
d25881 1
a25881 1
fi
d25896 7
a25902 4
    ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
if test "x$ac_cv_func_getpassphrase" = xyes
then :
  printf "%s\n" "#define HAVE_GETPASSPHRASE 1" >>confdefs.h
d25905 1
d25910 7
a25916 4
ac_fn_c_check_header_compile "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
if test "x$ac_cv_header_net_if6_h" = xyes
then :
  printf "%s\n" "#define HAVE_NET_IF6_H 1" >>confdefs.h
d25920 5
a25924 1
ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
d25930 4
a25933 3
if test "x$ac_cv_header_net_route_h" = xyes
then :
  printf "%s\n" "#define HAVE_NET_ROUTE_H 1" >>confdefs.h
d25937 2
d25940 7
a25946 4
ac_fn_c_check_header_compile "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
if test "x$ac_cv_header_netinfo_ni_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINFO_NI_H 1" >>confdefs.h
d25950 2
d25955 1
a25955 1
printf "%s\n" "#define HAVE_NETINFO 1" >>confdefs.h
d25958 8
a25965 4
ac_fn_c_check_header_compile "$LINENO" "sun/audioio.h" "ac_cv_header_sun_audioio_h" "$ac_includes_default"
if test "x$ac_cv_header_sun_audioio_h" = xyes
then :
  printf "%s\n" "#define HAVE_SUN_AUDIOIO_H 1" >>confdefs.h
a25967 4
ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_audioio_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_AUDIOIO_H 1" >>confdefs.h
d25969 1
a25969 7
fi
ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_file_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h

fi
d25975 7
a25981 4
    ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ioctl_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
d25985 2
d25989 8
a25996 4
ac_fn_c_check_header_compile "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ipc_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_IPC_H 1" >>confdefs.h
a25998 4
ac_fn_c_check_header_compile "$LINENO" "sys/lock.h" "ac_cv_header_sys_lock_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_lock_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_LOCK_H 1" >>confdefs.h
d26000 1
a26000 7
fi
ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_mman_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h

fi
d26003 8
a26010 4
ac_fn_c_check_header_compile "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_modem_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
a26012 4
ac_fn_c_check_header_compile "$LINENO" "sys/ppsclock.h" "ac_cv_header_sys_ppsclock_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ppsclock_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PPSCLOCK_H 1" >>confdefs.h
d26014 1
a26014 13
fi
ac_fn_c_check_header_compile "$LINENO" "sys/ppstime.h" "ac_cv_header_sys_ppstime_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ppstime_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PPSTIME_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sched_h" = xyes
then :
  printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h

fi
d26020 7
a26026 4
    ac_fn_c_check_header_compile "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sched_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SCHED_H 1" >>confdefs.h
d26030 2
d26035 8
a26042 16
ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_select_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/signal.h" "ac_cv_header_sys_signal_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_signal_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SIGNAL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sockio_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
d26046 2
d26053 8
a26060 4
    ac_fn_c_check_header_compile "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
if test "x$ac_cv_header_machine_soundcard_h" = xyes
then :
  printf "%s\n" "#define HAVE_MACHINE_SOUNDCARD_H 1" >>confdefs.h
a26062 4
ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_soundcard_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h
d26064 1
a26064 1
fi
d26068 8
a26075 4
ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_stat_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
a26077 4
ac_fn_c_check_header_compile "$LINENO" "sys/stream.h" "ac_cv_header_sys_stream_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_stream_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_STREAM_H 1" >>confdefs.h
d26079 1
a26079 5
fi
ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
if test "x$ac_cv_header_stropts_h" = xyes
then :
  printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
d26081 8
a26088 5
fi
ac_fn_c_check_header_compile "$LINENO" "sys/stropts.h" "ac_cv_header_sys_stropts_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_stropts_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_STROPTS_H 1" >>confdefs.h
a26090 4
ac_fn_c_check_header_compile "$LINENO" "sys/syssgi.h" "ac_cv_header_sys_syssgi_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_syssgi_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SYSSGI_H 1" >>confdefs.h
d26092 1
a26092 1
fi
d26094 7
a26100 29
ac_fn_c_check_header_compile "$LINENO" "sys/systune.h" "ac_cv_header_sys_systune_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_systune_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SYSTUNE_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/termios.h" "ac_cv_header_sys_termios_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_termios_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TERMIOS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/tpro.h" "ac_cv_header_sys_tpro_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_tpro_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TPRO_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_wait_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
if test "x$ac_cv_func_waitpid" = xyes
then :
  printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
d26103 1
d26107 8
a26114 4
    ac_fn_c_check_header_compile "$LINENO" "/sys/sync/queue.h" "ac_cv_header__sys_sync_queue_h" "$ac_includes_default"
if test "x$ac_cv_header__sys_sync_queue_h" = xyes
then :
  printf "%s\n" "#define HAVE__SYS_SYNC_QUEUE_H 1" >>confdefs.h
a26116 4
ac_fn_c_check_header_compile "$LINENO" "/sys/sync/sema.h" "ac_cv_header__sys_sync_sema_h" "$ac_includes_default"
if test "x$ac_cv_header__sys_sync_sema_h" = xyes
then :
  printf "%s\n" "#define HAVE__SYS_SYNC_SEMA_H 1" >>confdefs.h
d26118 1
a26118 1
fi
d26122 8
a26129 16
    ac_fn_c_check_header_compile "$LINENO" "machine/inline.h" "ac_cv_header_machine_inline_h" "$ac_includes_default"
if test "x$ac_cv_header_machine_inline_h" = xyes
then :
  printf "%s\n" "#define HAVE_MACHINE_INLINE_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/pcl720.h" "ac_cv_header_sys_pcl720_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_pcl720_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PCL720_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/i8253.h" "ac_cv_header_sys_i8253_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_i8253_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_I8253_H 1" >>confdefs.h
d26133 2
d26140 7
a26146 4
	ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
if test "x$ac_cv_func_atomic_thread_fence" = xyes
then :
  printf "%s\n" "#define HAVE_ATOMIC_THREAD_FENCE 1" >>confdefs.h
d26149 1
d26151 5
a26155 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
printf %s "checking for atomic_thread_fence()... " >&6; }
if test ${ntp_cv_func_atomic_thread_fence+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26162 1
a26162 1
main (void)
d26171 1
d26173 1
a26173 4
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_func_atomic_thread_fence=yes
else $as_nop
d26177 1
a26177 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26180 2
a26181 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
printf "%s\n" "$ntp_cv_func_atomic_thread_fence" >&6; }
d26190 8
a26197 10
    ac_fn_c_check_func "$LINENO" "ntp_adjtime" "ac_cv_func_ntp_adjtime"
if test "x$ac_cv_func_ntp_adjtime" = xyes
then :
  printf "%s\n" "#define HAVE_NTP_ADJTIME 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "ntp_gettime" "ac_cv_func_ntp_gettime"
if test "x$ac_cv_func_ntp_gettime" = xyes
then :
  printf "%s\n" "#define HAVE_NTP_GETTIME 1" >>confdefs.h
d26200 1
d26210 8
a26217 5
     *)
	ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
if test "x$ac_cv_func___ntp_gettime" = xyes
then :
  printf "%s\n" "#define HAVE___NTP_GETTIME 1" >>confdefs.h
d26220 1
d26225 1
a26225 1
printf "%s\n" "#define ntp_gettime __ntp_gettime" >>confdefs.h
d26228 1
a26228 1
printf "%s\n" "#define HAVE_NTP_GETTIME 1" >>confdefs.h
d26233 7
a26239 4
    ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
if test "x$ac_cv_func_adjtimex" = xyes
then :
  printf "%s\n" "#define HAVE_ADJTIMEX 1" >>confdefs.h
d26242 1
d26247 1
a26247 1
printf "%s\n" "#define ntp_adjtime adjtimex" >>confdefs.h
d26250 1
a26250 1
printf "%s\n" "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
d26255 7
a26261 4
	ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
if test "x$ac_cv_func___adjtimex" = xyes
then :
  printf "%s\n" "#define HAVE___ADJTIMEX 1" >>confdefs.h
d26264 1
d26269 1
a26269 1
printf "%s\n" "#define ntp_adjtime __adjtimex" >>confdefs.h
d26272 1
a26272 1
printf "%s\n" "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
d26275 1
a26275 1
printf "%s\n" "#define adjtimex __adjtimex" >>confdefs.h
d26278 1
a26278 1
printf "%s\n" "#define HAVE_ADJTIMEX 1" >>confdefs.h
d26290 5
a26294 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
printf %s "checking for library containing nlist... " >&6; }
if test ${ac_cv_search_nlist+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26302 3
d26307 1
a26307 1
main (void)
d26314 1
a26314 2
for ac_lib in '' elf ld mld
do
d26321 1
a26321 2
  if ac_fn_c_try_link "$LINENO"
then :
d26324 1
a26324 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d26326 1
a26326 2
  if test ${ac_cv_search_nlist+y}
then :
d26330 1
a26330 2
if test ${ac_cv_search_nlist+y}
then :
d26332 1
a26332 1
else $as_nop
d26338 2
a26339 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
printf "%s\n" "$ac_cv_search_nlist" >&6; }
d26341 1
a26341 2
if test "$ac_res" != no
then :
d26347 5
a26351 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
printf %s "checking for library containing kvm_open... " >&6; }
if test ${ac_cv_search_kvm_open+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26359 3
d26364 1
a26364 1
main (void)
d26371 1
a26371 2
for ac_lib in '' kvm
do
d26378 1
a26378 2
  if ac_fn_c_try_link "$LINENO"
then :
d26381 1
a26381 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d26383 1
a26383 2
  if test ${ac_cv_search_kvm_open+y}
then :
d26387 1
a26387 2
if test ${ac_cv_search_kvm_open+y}
then :
d26389 1
a26389 1
else $as_nop
d26395 2
a26396 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
printf "%s\n" "$ac_cv_search_kvm_open" >&6; }
d26398 1
a26398 2
if test "$ac_res" != no
then :
d26403 8
a26410 4
    ac_fn_c_check_header_compile "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
if test "x$ac_cv_header_nlist_h" = xyes
then :
  printf "%s\n" "#define HAVE_NLIST_H 1" >>confdefs.h
a26412 4
ac_fn_c_check_header_compile "$LINENO" "sys/var.h" "ac_cv_header_sys_var_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_var_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_VAR_H 1" >>confdefs.h
d26414 1
a26414 1
fi
d26419 1
a26419 1
printf "%s\n" "#define NLIST_STRUCT 1" >>confdefs.h
d26421 5
a26425 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
printf %s "checking for n_un in struct nlist... " >&6; }
if test ${ntp_cv_struct_nlist_n_un+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26432 1
a26432 1
main (void)
d26442 1
d26444 1
a26444 4
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_struct_nlist_n_un=yes
else $as_nop
d26448 1
a26448 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26451 2
a26452 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
printf "%s\n" "$ntp_cv_struct_nlist_n_un" >&6; }
d26456 1
a26456 1
printf "%s\n" "#define NLIST_NAME_UNION 1" >>confdefs.h
d26466 3
a26468 1
ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
d26477 4
a26480 3
if test "x$ac_cv_header_sys_proc_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PROC_H 1" >>confdefs.h
d26484 2
d26487 3
a26489 1
ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
d26495 4
a26498 3
if test "x$ac_cv_header_sys_resource_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
d26502 2
d26505 3
a26507 1
ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
d26516 4
a26519 3
if test "x$ac_cv_header_sys_shm_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SHM_H 1" >>confdefs.h
d26523 2
d26526 3
a26528 1
ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
d26534 4
a26537 3
if test "x$ac_cv_header_sys_timex_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TIMEX_H 1" >>confdefs.h
d26541 2
d26560 1
a26560 1
main (void)
d26562 2
a26563 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: AF_UNSPEC is zero, as expected." >&5
printf "%s\n" "$as_me: AF_UNSPEC is zero, as expected." >&6;}
d26569 1
a26569 2
if ac_fn_c_try_compile "$LINENO"
then :
d26572 1
a26572 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26574 5
a26578 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
printf %s "checking return type of signal handlers... " >&6; }
if test ${ac_cv_type_signal+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26585 1
a26585 1
main (void)
d26592 1
a26592 2
if ac_fn_c_try_compile "$LINENO"
then :
d26594 1
a26594 1
else $as_nop
d26597 1
a26597 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26599 2
a26600 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
printf "%s\n" "$ac_cv_type_signal" >&6; }
d26602 3
a26604 1
printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
d26608 1
a26608 2
if test "x$ac_cv_type_off_t" = xyes
then :
d26610 1
a26610 1
else $as_nop
d26612 3
a26614 1
printf "%s\n" "#define off_t long int" >>confdefs.h
d26618 5
a26622 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if test ${ac_cv_struct_tm+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26629 1
a26629 1
main (void)
d26638 1
a26638 2
if ac_fn_c_try_compile "$LINENO"
then :
d26640 1
a26640 1
else $as_nop
d26643 1
a26643 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26645 2
a26646 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
printf "%s\n" "$ac_cv_struct_tm" >&6; }
d26649 1
a26649 1
printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
d26653 5
a26657 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
printf %s "checking for a fallback value for HZ... " >&6; }
if test ${ntp_cv_default_hz+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26671 2
a26672 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
printf "%s\n" "$ntp_cv_default_hz" >&6; }
d26674 3
a26676 1
printf "%s\n" "#define DEFAULT_HZ $ntp_cv_default_hz" >>confdefs.h
d26679 5
a26683 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
printf %s "checking if we need to override the system's value for HZ... " >&6; }
if test ${ntp_cv_override_hz+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26706 2
a26707 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
printf "%s\n" "$ntp_cv_override_hz" >&6; }
d26711 1
a26711 1
printf "%s\n" "#define OVERRIDE_HZ 1" >>confdefs.h
d26717 5
a26721 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
printf %s "checking for struct rt_msghdr... " >&6; }
if test ${ntp_cv_struct_rt_msghdr+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26731 1
a26731 1
main (void)
d26741 1
a26741 2
if ac_fn_c_try_compile "$LINENO"
then :
d26743 1
a26743 1
else $as_nop
d26747 1
a26747 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26750 2
a26751 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
printf "%s\n" "$ntp_cv_struct_rt_msghdr" >&6; }
d26753 5
a26757 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
printf %s "checking for struct rtattr... " >&6; }
if test ${ntp_cv_rtattr+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26766 1
a26766 1
main (void)
d26776 1
a26776 2
if ac_fn_c_try_compile "$LINENO"
then :
d26778 1
a26778 1
else $as_nop
d26782 1
a26782 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26785 2
a26786 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
printf "%s\n" "$ntp_cv_rtattr" >&6; }
d26791 1
a26791 1
printf "%s\n" "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
d26796 1
a26796 1
printf "%s\n" "#define HAVE_RTNETLINK 1" >>confdefs.h
d26801 5
a26805 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
printf %s "checking struct sigaction for sa_sigaction... " >&6; }
if test ${ntp_cv_struct_sigaction_has_sa_sigaction+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26812 1
a26812 1
main (void)
d26823 1
a26823 2
if ac_fn_c_try_compile "$LINENO"
then :
d26825 1
a26825 1
else $as_nop
d26829 1
a26829 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26832 2
a26833 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
printf "%s\n" "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
d26837 1
a26837 1
printf "%s\n" "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
d26841 5
a26845 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
printf %s "checking for struct ppsclockev... " >&6; }
if test ${ntp_cv_struct_ppsclockev+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26863 1
a26863 1
main (void)
d26874 1
a26874 2
if ac_fn_c_try_compile "$LINENO"
then :
d26876 1
a26876 1
else $as_nop
d26880 1
a26880 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26883 2
a26884 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
printf "%s\n" "$ntp_cv_struct_ppsclockev" >&6; }
d26888 1
a26888 1
printf "%s\n" "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
d26894 5
a26898 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
printf %s "checking for struct snd_size... " >&6; }
if test ${ntp_cv_struct_snd_size+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26910 1
a26910 1
main (void)
d26921 1
a26921 2
if ac_fn_c_try_compile "$LINENO"
then :
d26923 1
a26923 1
else $as_nop
d26927 1
a26927 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26930 2
a26931 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
printf "%s\n" "$ntp_cv_struct_snd_size" >&6; }
d26935 1
a26935 1
printf "%s\n" "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
d26940 5
a26944 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
printf %s "checking struct clockinfo for hz... " >&6; }
if test ${ntp_cv_struct_clockinfo_has_hz+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26951 1
a26951 1
main (void)
d26962 1
a26962 2
if ac_fn_c_try_compile "$LINENO"
then :
d26964 1
a26964 1
else $as_nop
d26968 1
a26968 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d26971 2
a26972 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
printf "%s\n" "$ntp_cv_struct_clockinfo_has_hz" >&6; }
d26976 1
a26976 1
printf "%s\n" "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
d26980 5
a26984 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
printf %s "checking struct clockinfo for tickadj... " >&6; }
if test ${ntp_cv_struct_clockinfo_has_hz+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d26991 1
a26991 1
main (void)
d27002 1
a27002 2
if ac_fn_c_try_compile "$LINENO"
then :
d27004 1
a27004 1
else $as_nop
d27008 1
a27008 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d27011 2
a27012 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
printf "%s\n" "$ntp_cv_struct_clockinfo_has_hz" >&6; }
d27016 1
a27016 1
printf "%s\n" "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
d27040 1
a27040 2
if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes
then :
d27042 3
a27044 1
printf "%s\n" "#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1" >>confdefs.h
d27053 7
a27059 4
ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
if test "x$ac_cv_func_arc4random_buf" = xyes
then :
  printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
d27062 1
d27069 7
a27075 4
ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
if test "x$ac_cv_func_daemon" = xyes
then :
  printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
d27078 1
d27084 1
a27084 2

  for ac_func in finite
d27087 4
a27090 5
if test "x$ac_cv_func_finite" = xyes
then :
  printf "%s\n" "#define HAVE_FINITE 1" >>confdefs.h

else $as_nop
d27092 1
d27096 4
a27099 3
if test "x$ac_cv_func_isfinite" = xyes
then :
  printf "%s\n" "#define HAVE_ISFINITE 1" >>confdefs.h
d27101 1
a27101 1
else $as_nop
d27103 2
a27104 2
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
printf %s "checking for isfinite with <math.h>... " >&6; }
d27114 1
a27114 1
main (void)
d27125 1
a27125 2
if ac_fn_c_try_link "$LINENO"
then :
d27127 1
a27127 1
else $as_nop
d27131 1
a27131 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d27134 2
a27135 2
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d27138 1
a27138 1
		printf "%s\n" "#define HAVE_ISFINITE 1" >>confdefs.h
d27144 1
a27145 1
done
a27147 1

a27149 4
ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
if test "x$ac_cv_func_fnmatch" = xyes
then :
  printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h
d27151 8
a27158 47
fi
ac_fn_c_check_func "$LINENO" "getbootfile" "ac_cv_func_getbootfile"
if test "x$ac_cv_func_getbootfile" = xyes
then :
  printf "%s\n" "#define HAVE_GETBOOTFILE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
if test "x$ac_cv_func_getuid" = xyes
then :
  printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
if test "x$ac_cv_func_getrusage" = xyes
then :
  printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
if test "x$ac_cv_func_nanosleep" = xyes
then :
  printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
if test "x$ac_cv_func_strsignal" = xyes
then :
  printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
if test "x$ac_cv_func_strsignal" = xyes
then :
  printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
if test "x$ac_cv_func_closefrom" = xyes
then :
  printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
if test "x$ac_cv_func_getdtablesize" = xyes
then :
  printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
d27161 1
a27161 1

d27167 7
a27173 4
    ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
if test "x$ac_cv_func_kvm_open" = xyes
then :
  printf "%s\n" "#define HAVE_KVM_OPEN 1" >>confdefs.h
d27176 1
d27185 7
a27191 4
 *) ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
if test "x$ac_cv_func_mkstemp" = xyes
then :
  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
d27194 1
d27198 7
a27204 4
ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
if test "x$ac_cv_func_mktime" = xyes
then :
  printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h
d27207 1
d27230 1
a27230 2

  for ac_func in memlk
d27233 4
a27236 3
if test "x$ac_cv_func_memlk" = xyes
then :
  printf "%s\n" "#define HAVE_MEMLK 1" >>confdefs.h
d27239 1
d27241 7
a27247 5
done
    ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = xyes
then :
  printf "%s\n" "#define HAVE_MLOCKALL 1" >>confdefs.h
d27250 1
d27253 7
a27259 4
 *) ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = xyes
then :
  printf "%s\n" "#define HAVE_MLOCKALL 1" >>confdefs.h
d27262 1
d27266 8
a27273 4
ac_fn_c_check_func "$LINENO" "nice" "ac_cv_func_nice"
if test "x$ac_cv_func_nice" = xyes
then :
  printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h
d27276 1
a27276 82
ac_fn_c_check_func "$LINENO" "plock" "ac_cv_func_plock"
if test "x$ac_cv_func_plock" = xyes
then :
  printf "%s\n" "#define HAVE_PLOCK 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "pututline" "ac_cv_func_pututline"
if test "x$ac_cv_func_pututline" = xyes
then :
  printf "%s\n" "#define HAVE_PUTUTLINE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "pututxline" "ac_cv_func_pututxline"
if test "x$ac_cv_func_pututxline" = xyes
then :
  printf "%s\n" "#define HAVE_PUTUTXLINE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
if test "x$ac_cv_func_readlink" = xyes
then :
  printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "rtprio" "ac_cv_func_rtprio"
if test "x$ac_cv_func_rtprio" = xyes
then :
  printf "%s\n" "#define HAVE_RTPRIO 1" >>confdefs.h

fi


	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a POSIX-2008 compliant realpath()" >&5
printf %s "checking for a POSIX-2008 compliant realpath()... " >&6; }


	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


	if test "$cross_compiling" = yes
then :
  ans="CROSS COMPILE!"

else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <sys/param.h>
			#include <stdlib.h>
			int main() { return (NULL == realpath(".", NULL)); }

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ans="yes"
else $as_nop
  ans="no"
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
	case "$ans" in
	 yes)

printf "%s\n" "#define HAVE_FUNC_POSIX_REALPATH 1" >>confdefs.h

	    ;;
	esac

	ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

d27286 7
a27292 4
 *) ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
if test "x$ac_cv_func_sched_setscheduler" = xyes
then :
  printf "%s\n" "#define HAVE_SCHED_SETSCHEDULER 1" >>confdefs.h
d27295 1
d27299 8
a27306 4
ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf"
if test "x$ac_cv_func_setlinebuf" = xyes
then :
  printf "%s\n" "#define HAVE_SETLINEBUF 1" >>confdefs.h
d27309 1
a27309 4
ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
if test "x$ac_cv_func_setpgid" = xyes
then :
  printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
d27311 8
a27318 54
fi
ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
if test "x$ac_cv_func_setpriority" = xyes
then :
  printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
if test "x$ac_cv_func_setsid" = xyes
then :
  printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
if test "x$ac_cv_func_setvbuf" = xyes
then :
  printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
if test "x$ac_cv_func_strdup" = xyes
then :
  printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
if test "x$ac_cv_func_strnlen" = xyes
then :
  printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
if test "x$ac_cv_func_memchr" = xyes
then :
  printf "%s\n" "#define HAVE_MEMCHR 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
if test "x$ac_cv_func_strerror" = xyes
then :
  printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
if test "x$ac_cv_func_setrlimit" = xyes
then :
  printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
if test "x$ac_cv_func_strchr" = xyes
then :
  printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
d27321 1
d27338 7
a27344 4
    ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
if test "x$ac_cv_func_timer_create" = xyes
then :
  printf "%s\n" "#define HAVE_TIMER_CREATE 1" >>confdefs.h
d27347 1
d27354 5
a27358 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
printf %s "checking for RLIMIT_MEMLOCK... " >&6; }
if test ${ntp_cv_rlimit_memlock+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d27373 1
a27373 1
main (void)
d27383 1
a27383 2
if ac_fn_c_try_compile "$LINENO"
then :
d27385 1
a27385 1
else $as_nop
d27389 1
a27389 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d27392 2
a27393 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
printf "%s\n" "$ntp_cv_rlimit_memlock" >&6; }
d27405 5
a27409 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
printf %s "checking for RLIMIT_STACK... " >&6; }
if test ${ntp_cv_rlimit_stack+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d27424 1
a27424 1
main (void)
d27434 1
a27434 2
if ac_fn_c_try_compile "$LINENO"
then :
d27436 1
a27436 1
else $as_nop
d27440 1
a27440 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d27443 2
a27444 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
printf "%s\n" "$ntp_cv_rlimit_stack" >&6; }
d27452 2
a27453 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
printf %s "checking for the default number of 4k stack pages... " >&6; }
d27456 1
a27456 2
if test ${with_stack_limit+y}
then :
d27458 1
a27458 1
else $as_nop
d27478 2
a27479 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d27481 3
a27483 1
printf "%s\n" "#define DFLT_RLIMIT_STACK $ans" >>confdefs.h
d27487 2
a27488 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
printf %s "checking for the default number of megabytes to MEMLOCK... " >&6; }
d27491 1
a27491 2
if test ${with_memlock+y}
then :
d27493 1
a27493 1
else $as_nop
d27506 2
a27507 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d27509 3
a27511 1
printf "%s\n" "#define DFLT_RLIMIT_MEMLOCK $ans" >>confdefs.h
d27517 7
a27523 4
ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
if test "x$ac_cv_func__exit" = xyes
then :
  printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
d27526 1
d27538 3
a27540 1
printf "%s\n" "#define WORKER_CHILD_EXIT $ntp_worker_child_exit" >>confdefs.h
d27543 8
a27550 22
ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
if test "x$ac_cv_func_umask" = xyes
then :
  printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
if test "x$ac_cv_func_uname" = xyes
then :
  printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "updwtmp" "ac_cv_func_updwtmp"
if test "x$ac_cv_func_updwtmp" = xyes
then :
  printf "%s\n" "#define HAVE_UPDWTMP 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "updwtmpx" "ac_cv_func_updwtmpx"
if test "x$ac_cv_func_updwtmpx" = xyes
then :
  printf "%s\n" "#define HAVE_UPDWTMPX 1" >>confdefs.h
d27553 1
d27561 5
a27565 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
printf %s "checking if we need extra help to define struct iovec... " >&6; }
if test ${ntp_cv_struct_iovec_help+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d27583 1
a27583 1
main (void)
d27602 1
a27602 2
if ac_fn_c_try_compile "$LINENO"
then :
d27605 1
a27605 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d27615 2
a27616 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
printf "%s\n" "$ntp_cv_struct_iovec_help" >&6; }
d27620 1
a27620 1
printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
d27625 5
a27629 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
printf %s "checking number of arguments taken by setpgrp()... " >&6; }
if test ${ntp_cv_func_setpgrp_nargs+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d27641 1
a27641 1
main (void)
d27651 1
a27651 2
if ac_fn_c_try_compile "$LINENO"
then :
d27653 1
a27653 1
else $as_nop
d27657 1
a27657 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d27660 2
a27661 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
printf "%s\n" "$ntp_cv_func_setpgrp_nargs" >&6; }
d27665 1
a27665 1
printf "%s\n" "#define HAVE_SETPGRP_0 1" >>confdefs.h
d27669 5
a27673 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
printf %s "checking if we need to declare 'errno'... " >&6; }
if test ${ntp_cv_decl_errno+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d27682 1
a27682 1
main (void)
d27692 1
a27692 2
if ac_fn_c_try_compile "$LINENO"
then :
d27694 1
a27694 1
else $as_nop
d27698 1
a27698 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d27701 2
a27702 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
printf "%s\n" "$ntp_cv_decl_errno" >&6; }
d27706 1
a27706 1
printf "%s\n" "#define DECL_ERRNO 1" >>confdefs.h
d27710 5
a27714 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
printf %s "checking if we may declare 'h_errno'... " >&6; }
if test ${ntp_cv_decl_h_errno+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d27733 1
a27733 1
main (void)
d27743 1
a27743 2
if ac_fn_c_try_compile "$LINENO"
then :
d27745 1
a27745 1
else $as_nop
d27749 1
a27749 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d27752 2
a27753 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
printf "%s\n" "$ntp_cv_decl_h_errno" >&6; }
d27757 1
a27757 1
printf "%s\n" "#define DECL_H_ERRNO 1" >>confdefs.h
d27761 5
a27765 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
printf %s "checking if declaring 'syscall()' is ok... " >&6; }
if test ${ntp_cv_decl_syscall+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d27777 1
a27777 1
main (void)
d27786 1
d27788 1
a27788 4
if ac_fn_c_try_compile "$LINENO"
then :
  ntp_cv_decl_syscall=yes
else $as_nop
d27792 1
a27792 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d27795 2
a27796 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
printf "%s\n" "$ntp_cv_decl_syscall" >&6; }
d27800 1
a27800 1
printf "%s\n" "#define DECL_SYSCALL 1" >>confdefs.h
d27807 1
a27807 1
printf "%s\n" "#define DECL_HSTRERROR_0 1" >>confdefs.h
d27812 1
a27812 1
printf "%s\n" "#define DECL_ADJTIME_0 1" >>confdefs.h
d27815 1
a27815 1
printf "%s\n" "#define DECL_INET_NTOA_0 1" >>confdefs.h
d27818 1
a27818 1
printf "%s\n" "#define DECL_MKTEMP_0 1" >>confdefs.h
d27821 1
a27821 1
printf "%s\n" "#define DECL_SELECT_0 1" >>confdefs.h
d27824 1
a27824 1
printf "%s\n" "#define DECL_SETITIMER_0 1" >>confdefs.h
d27827 1
a27827 1
printf "%s\n" "#define DECL_SYSLOG_0 1" >>confdefs.h
d27830 1
a27830 1
printf "%s\n" "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d27835 1
a27835 1
printf "%s\n" "#define DECL_PLOCK_0 1" >>confdefs.h
d27838 1
a27838 1
printf "%s\n" "#define DECL_STIME_1 1" >>confdefs.h
d27843 1
a27843 1
printf "%s\n" "#define DECL_ADJTIME_0 1" >>confdefs.h
d27848 1
a27848 1
printf "%s\n" "#define DECL_ADJTIME_0 1" >>confdefs.h
d27851 1
a27851 1
printf "%s\n" "#define DECL_BZERO_0 1" >>confdefs.h
d27854 1
a27854 1
printf "%s\n" "#define DECL_IOCTL_0 1" >>confdefs.h
d27857 1
a27857 1
printf "%s\n" "#define DECL_IPC_0 1" >>confdefs.h
d27860 1
a27860 1
printf "%s\n" "#define DECL_MEMMOVE_0 1" >>confdefs.h
d27863 1
a27863 1
printf "%s\n" "#define DECL_MKTEMP_0 1" >>confdefs.h
d27866 1
a27866 1
printf "%s\n" "#define DECL_RENAME_0 1" >>confdefs.h
d27869 1
a27869 1
printf "%s\n" "#define DECL_SELECT_0 1" >>confdefs.h
d27872 1
a27872 1
printf "%s\n" "#define DECL_SETITIMER_0 1" >>confdefs.h
d27875 1
a27875 1
printf "%s\n" "#define DECL_SETPRIORITY_0 1" >>confdefs.h
d27878 1
a27878 1
printf "%s\n" "#define DECL_STDIO_0 1" >>confdefs.h
d27881 1
a27881 1
printf "%s\n" "#define DECL_STRTOL_0 1" >>confdefs.h
d27884 1
a27884 1
printf "%s\n" "#define DECL_SYSLOG_0 1" >>confdefs.h
d27887 1
a27887 1
printf "%s\n" "#define DECL_TIME_0 1" >>confdefs.h
d27890 1
a27890 1
printf "%s\n" "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d27893 1
a27893 1
printf "%s\n" "#define DECL_TOLOWER_0 1" >>confdefs.h
d27898 1
a27898 1
printf "%s\n" "#define DECL_MKSTEMP_0 1" >>confdefs.h
d27901 1
a27901 1
printf "%s\n" "#define DECL_SETPRIORITY_1 1" >>confdefs.h
d27906 1
a27906 1
printf "%s\n" "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d27913 1
a27913 1
printf "%s\n" "#define DECL_ADJTIME_0 1" >>confdefs.h
d27916 1
a27916 1
printf "%s\n" "#define DECL_BCOPY_0 1" >>confdefs.h
d27919 1
a27919 1
printf "%s\n" "#define DECL_BZERO_0 1" >>confdefs.h
d27922 1
a27922 1
printf "%s\n" "#define DECL_IOCTL_0 1" >>confdefs.h
d27925 1
a27925 1
printf "%s\n" "#define DECL_IPC_0 1" >>confdefs.h
d27928 1
a27928 1
printf "%s\n" "#define DECL_MEMMOVE_0 1" >>confdefs.h
d27931 1
a27931 1
printf "%s\n" "#define DECL_MKTEMP_0 1" >>confdefs.h
d27934 1
a27934 1
printf "%s\n" "#define DECL_MKSTEMP_0 1" >>confdefs.h
d27937 1
a27937 1
printf "%s\n" "#define DECL_RENAME_0 1" >>confdefs.h
d27940 1
a27940 1
printf "%s\n" "#define DECL_SELECT_0 1" >>confdefs.h
d27943 1
a27943 1
printf "%s\n" "#define DECL_SETITIMER_0 1" >>confdefs.h
d27946 1
a27946 1
printf "%s\n" "#define DECL_SETPRIORITY_0 1" >>confdefs.h
d27949 1
a27949 1
printf "%s\n" "#define DECL_SIGVEC_0 1" >>confdefs.h
d27954 1
a27954 1
printf "%s\n" "#define DECL_STDIO_0 1" >>confdefs.h
d27959 1
a27959 1
printf "%s\n" "#define DECL_STRTOL_0 1" >>confdefs.h
d27962 1
a27962 1
printf "%s\n" "#define DECL_SYSLOG_0 1" >>confdefs.h
d27965 1
a27965 1
printf "%s\n" "#define DECL_TIME_0 1" >>confdefs.h
d27968 1
a27968 1
printf "%s\n" "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d27971 1
a27971 1
printf "%s\n" "#define DECL_TOLOWER_0 1" >>confdefs.h
d27974 1
a27974 1
printf "%s\n" "#define DECL_TOUPPER_0 1" >>confdefs.h
d27977 1
a27977 1
printf "%s\n" "#define DECL_STRERROR_0 1" >>confdefs.h
d27982 1
a27982 1
printf "%s\n" "#define DECL_ADJTIME_0 1" >>confdefs.h
d27985 1
a27985 1
printf "%s\n" "#define DECL_BZERO_0 1" >>confdefs.h
d27988 1
a27988 1
printf "%s\n" "#define DECL_CFSETISPEED_0 1" >>confdefs.h
d27991 1
a27991 1
printf "%s\n" "#define DECL_IOCTL_0 1" >>confdefs.h
d27994 1
a27994 1
printf "%s\n" "#define DECL_IPC_0 1" >>confdefs.h
d27997 1
a27997 1
printf "%s\n" "#define DECL_MKTEMP_0 1" >>confdefs.h
d28000 1
a28000 1
printf "%s\n" "#define DECL_NLIST_0 1" >>confdefs.h
d28003 1
a28003 1
printf "%s\n" "#define DECL_PLOCK_0 1" >>confdefs.h
d28006 1
a28006 1
printf "%s\n" "#define DECL_SELECT_0 1" >>confdefs.h
d28009 1
a28009 1
printf "%s\n" "#define DECL_SETITIMER_0 1" >>confdefs.h
d28012 1
a28012 1
printf "%s\n" "#define DECL_SETPRIORITY_0 1" >>confdefs.h
d28015 1
a28015 1
printf "%s\n" "#define DECL_STIME_0 1" >>confdefs.h
d28018 1
a28018 1
printf "%s\n" "#define DECL_SYSLOG_0 1" >>confdefs.h
d28021 1
a28021 1
printf "%s\n" "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
d28029 1
a28029 1
printf "%s\n" "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
d28037 1
a28037 1
printf "%s\n" "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
d28041 5
a28045 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
printf %s "checking if we will open the broadcast socket... " >&6; }
if test ${ntp_cv_var_open_bcast_socket+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28056 2
a28057 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
printf "%s\n" "$ntp_cv_var_open_bcast_socket" >&6; }
d28061 1
a28061 1
printf "%s\n" "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
d28068 1
a28068 1
printf "%s\n" "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
d28072 5
a28076 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
printf %s "checking if process groups are set with -pid... " >&6; }
if test ${ntp_cv_arg_setpgrp_negpid+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28102 2
a28103 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
printf "%s\n" "$ntp_cv_arg_setpgrp_negpid" >&6; }
d28107 1
a28107 1
printf "%s\n" "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
d28111 5
a28115 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
printf %s "checking if we need a ctty for F_SETOWN... " >&6; }
if test ${ntp_cv_func_ctty_for_f_setown+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28151 2
a28152 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
printf "%s\n" "$ntp_cv_func_ctty_for_f_setown" >&6; }
d28156 1
a28156 1
printf "%s\n" "#define USE_FSETOWNCTTY 1" >>confdefs.h
d28160 5
a28164 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
printf %s "checking if the OS clears cached routes when more specifics become available... " >&6; }
if test ${ntp_cv_os_routeupdates+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28178 2
a28179 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
printf "%s\n" "$ntp_cv_os_routeupdates" >&6; }
d28183 1
a28183 1
printf "%s\n" "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
d28187 5
a28191 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
printf %s "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
if test ${ntp_cv_os_wildcardreuse+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28204 2
a28205 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
printf "%s\n" "$ntp_cv_os_wildcardreuse" >&6; }
d28209 1
a28209 1
printf "%s\n" "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
d28216 1
a28216 1
printf "%s\n" "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
d28220 5
a28224 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
printf %s "checking for a minimum recommended value of tickadj... " >&6; }
if test ${ntp_cv_var_min_rec_tickadj+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28236 2
a28237 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
printf "%s\n" "$ntp_cv_var_min_rec_tickadj" >&6; }
d28243 3
a28245 1
printf "%s\n" "#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj" >>confdefs.h
d28249 5
a28253 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
printf %s "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
if test ${ntp_cv_no_parenb_ignpar+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28276 2
a28277 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
printf "%s\n" "$ntp_cv_no_parenb_ignpar" >&6; }
d28281 1
a28281 1
printf "%s\n" "#define NO_PARENB_IGNPAR 1" >>confdefs.h
d28285 2
a28286 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
printf %s "checking if we're including processing time debugging code... " >&6; }
d28288 1
a28288 2
if test ${enable_debug_timing+y}
then :
d28290 1
a28290 1
else $as_nop
d28298 1
a28298 1
printf "%s\n" "#define DEBUG_TIMING 1" >>confdefs.h
d28301 2
a28302 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28304 2
a28305 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
printf %s "checking for a the number of minutes in a DST adjustment... " >&6; }
d28307 1
a28307 2
if test ${enable_dst_minutes+y}
then :
d28309 1
a28309 1
else $as_nop
d28315 3
a28317 1
printf "%s\n" "#define DSTMINUTES $ans" >>confdefs.h
d28319 2
a28320 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d28322 2
a28323 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
printf %s "checking if ntpd will retry permanent DNS failures... " >&6; }
d28325 1
a28325 2
if test ${enable_ignore_dns_errors+y}
then :
d28327 1
a28327 1
else $as_nop
d28335 1
a28335 1
printf "%s\n" "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
d28338 2
a28339 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d28341 5
a28345 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
printf %s "checking availability of ntp_{adj,get}time()... " >&6; }
if test ${ntp_cv_var_ntp_syscalls+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28365 1
a28365 2
if ac_fn_c_try_cpp "$LINENO"
then :
d28375 2
a28376 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
printf "%s\n" "$ntp_cv_var_ntp_syscalls" >&6; }
d28380 1
a28380 1
printf "%s\n" "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
d28385 1
a28385 1
printf "%s\n" "#define NTP_SYSCALLS_STD 1" >>confdefs.h
d28390 5
a28394 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
printf %s "checking if sys/timex.h has STA_FLL... " >&6; }
if test ${ntp_cv_var_sta_fll+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28404 1
a28404 2
if ac_fn_c_try_cpp "$LINENO"
then :
d28406 1
a28406 1
else $as_nop
d28413 2
a28414 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
printf "%s\n" "$ntp_cv_var_sta_fll" >&6; }
d28416 5
a28420 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
printf %s "checking if we have kernel PLL support... " >&6; }
if test ${ntp_cv_var_kernel_pll+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28431 2
a28432 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
printf "%s\n" "$ntp_cv_var_kernel_pll" >&6; }
d28436 1
a28436 1
printf "%s\n" "#define KERNEL_PLL 1" >>confdefs.h
d28440 5
a28444 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
printf %s "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
if test ${ntp_cv_size_returned_in_buffer+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28462 2
a28463 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
printf "%s\n" "$ntp_cv_size_returned_in_buffer" >&6; }
d28467 1
a28467 1
printf "%s\n" "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
d28472 2
a28473 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
printf %s "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
d28485 1
a28485 2
if ac_fn_c_try_cpp "$LINENO"
then :
d28487 1
a28487 1
else $as_nop
d28500 1
a28500 1
printf "%s\n" "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
d28503 2
a28504 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28507 2
a28508 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
printf %s "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
d28520 1
a28520 2
if ac_fn_c_try_cpp "$LINENO"
then :
d28522 1
a28522 1
else $as_nop
d28535 1
a28535 1
printf "%s\n" "#define HAVE_TIOCSPPS 1" >>confdefs.h
d28538 2
a28539 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28542 2
a28543 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
printf %s "checking for TTY PPS ioctl CIOGETEV... " >&6; }
d28555 1
a28555 2
if ac_fn_c_try_cpp "$LINENO"
then :
d28557 1
a28557 1
else $as_nop
d28570 1
a28570 1
printf "%s\n" "#define HAVE_CIOGETEV 1" >>confdefs.h
d28573 2
a28574 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28591 1
a28591 1
printf "%s\n" "#define HAVE_PPSAPI 1" >>confdefs.h
d28603 2
a28604 3
ac_fn_c_check_header_compile "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
if test "x$ac_cv_header_linux_serial_h" = xyes
then :
d28608 1
d28611 2
a28612 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
printf %s "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
d28638 1
a28638 2
if ac_fn_c_try_cpp "$LINENO"
then :
d28640 1
a28640 1
else $as_nop
d28645 2
a28646 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28655 1
a28655 1
printf "%s\n" "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
d28660 2
a28661 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
printf %s "checking SHMEM_STATUS support... " >&6; }
d28673 1
a28673 1
printf "%s\n" "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
d28676 2
a28677 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28682 2
a28683 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
printf %s "checking Datum/Bancomm bc635/VME interface... " >&6; }
d28685 1
a28685 2
if test ${enable_BANCOMM+y}
then :
d28687 1
a28687 1
else $as_nop
d28696 1
a28696 1
printf "%s\n" "#define CLOCK_BANC 1" >>confdefs.h
d28698 5
a28702 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing bcStartPci" >&5
printf %s "checking for library containing bcStartPci... " >&6; }
if test ${ac_cv_search_bcStartPci+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28710 3
d28715 1
a28715 1
main (void)
d28722 1
a28722 2
for ac_lib in '' bcsdk
do
d28729 1
a28729 2
  if ac_fn_c_try_link "$LINENO"
then :
d28732 1
a28732 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d28734 1
a28734 2
  if test ${ac_cv_search_bcStartPci+y}
then :
d28738 1
a28738 2
if test ${ac_cv_search_bcStartPci+y}
then :
d28740 1
a28740 1
else $as_nop
d28746 2
a28747 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bcStartPci" >&5
printf "%s\n" "$ac_cv_search_bcStartPci" >&6; }
d28749 1
a28749 2
if test "$ac_res" != no
then :
d28756 2
a28757 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28760 2
a28761 2
 yes*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
d28765 2
a28766 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
printf %s "checking TrueTime GPS receiver/VME interface... " >&6; }
d28768 1
a28768 2
if test ${enable_GPSVME+y}
then :
d28770 1
a28770 1
else $as_nop
d28779 1
a28779 1
printf "%s\n" "#define CLOCK_GPSVME 1" >>confdefs.h
d28783 2
a28784 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28787 2
a28788 2
 yes*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
d28791 2
a28792 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
printf %s "checking for PCL720 clock support... " >&6; }
d28796 1
a28796 1
printf "%s\n" "#define CLOCK_PPS720 1" >>confdefs.h
d28804 2
a28805 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d28807 2
a28808 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
printf %s "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
d28810 1
a28810 2
if test ${enable_all_clocks+y}
then :
d28812 1
a28812 1
else $as_nop
d28817 2
a28818 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
printf "%s\n" "$ntp_eac" >&6; }
d28821 2
a28822 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
printf %s "checking if we have support for PARSE clocks... " >&6; }
d28830 2
a28831 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
printf "%s\n" "$ntp_canparse" >&6; }
d28833 2
a28834 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
printf %s "checking if we have support for audio clocks... " >&6; }
d28839 1
a28839 1
printf "%s\n" "#define HAVE_AUDIO /**/" >>confdefs.h
d28844 2
a28845 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
printf "%s\n" "$ntp_canaudio" >&6; }
d28847 2
a28848 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
printf %s "checking if we have support for the SHM refclock interface... " >&6; }
d28855 2
a28856 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
printf "%s\n" "$ntp_canshm" >&6; }
d28859 5
a28863 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
printf %s "checking for termios modem control... " >&6; }
if test ${ntp_cv_modem_control+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d28878 1
a28878 1
main (void)
d28890 1
a28890 2
if ac_fn_c_try_compile "$LINENO"
then :
d28892 1
a28892 1
else $as_nop
d28896 1
a28896 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d28899 2
a28900 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
printf "%s\n" "$ntp_cv_modem_control" >&6; }
d28911 2
a28912 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
printf %s "checking ACTS modem service... " >&6; }
d28914 1
a28914 2
if test ${enable_ACTS+y}
then :
d28916 1
a28916 1
else $as_nop
d28925 1
a28925 1
printf "%s\n" "#define CLOCK_ACTS 1" >>confdefs.h
d28929 2
a28930 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28932 2
a28933 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
printf %s "checking Arbiter 1088A/B GPS receiver... " >&6; }
d28935 1
a28935 2
if test ${enable_ARBITER+y}
then :
d28937 1
a28937 1
else $as_nop
d28946 1
a28946 1
printf "%s\n" "#define CLOCK_ARBITER 1" >>confdefs.h
d28950 2
a28951 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28953 2
a28954 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
printf %s "checking Arcron MSF receiver... " >&6; }
d28956 1
a28956 2
if test ${enable_ARCRON_MSF+y}
then :
d28958 1
a28958 1
else $as_nop
d28967 1
a28967 1
printf "%s\n" "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
d28971 2
a28972 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28974 2
a28975 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
printf %s "checking Austron 2200A/2201A GPS receiver... " >&6; }
d28977 1
a28977 2
if test ${enable_AS2201+y}
then :
d28979 1
a28979 1
else $as_nop
d28988 1
a28988 1
printf "%s\n" "#define CLOCK_AS2201 1" >>confdefs.h
d28992 2
a28993 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d28995 2
a28996 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
printf %s "checking ATOM PPS interface... " >&6; }
d28998 1
a28998 2
if test ${enable_ATOM+y}
then :
d29000 1
a29000 1
else $as_nop
d29012 1
a29012 1
printf "%s\n" "#define CLOCK_ATOM 1" >>confdefs.h
d29016 2
a29017 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29019 2
a29020 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
printf %s "checking Chrono-log K-series WWVB receiver... " >&6; }
d29022 1
a29022 2
if test ${enable_CHRONOLOG+y}
then :
d29024 1
a29024 1
else $as_nop
d29033 1
a29033 1
printf "%s\n" "#define CLOCK_CHRONOLOG 1" >>confdefs.h
d29037 2
a29038 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29040 2
a29041 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
printf %s "checking CHU modem/decoder... " >&6; }
d29043 1
a29043 2
if test ${enable_CHU+y}
then :
d29045 1
a29045 1
else $as_nop
d29054 1
a29054 1
printf "%s\n" "#define CLOCK_CHU 1" >>confdefs.h
d29058 2
a29059 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29062 2
a29063 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
printf %s "checking CHU audio/decoder... " >&6; }
d29065 1
a29065 2
if test ${enable_AUDIO_CHU+y}
then :
d29067 1
a29067 1
else $as_nop
d29077 2
a29078 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29081 2
a29082 2
 yes*no*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
printf "%s\n" "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
d29086 2
a29087 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
printf %s "checking Datum Programmable Time System... " >&6; }
d29089 1
a29089 2
if test ${enable_DATUM+y}
then :
d29091 1
a29091 1
else $as_nop
d29108 1
a29108 1
printf "%s\n" "#define CLOCK_DATUM 1" >>confdefs.h
d29112 2
a29113 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29115 2
a29116 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
printf %s "checking Dumb generic hh:mm:ss local clock... " >&6; }
d29118 1
a29118 2
if test ${enable_DUMBCLOCK+y}
then :
d29120 1
a29120 1
else $as_nop
d29129 1
a29129 1
printf "%s\n" "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
d29133 2
a29134 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29136 2
a29137 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
printf %s "checking Forum Graphic GPS... " >&6; }
d29139 1
a29139 2
if test ${enable_FG+y}
then :
d29141 1
a29141 1
else $as_nop
d29150 1
a29150 1
printf "%s\n" "#define CLOCK_FG 1" >>confdefs.h
d29154 2
a29155 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29158 2
a29159 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
printf %s "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
d29161 1
a29161 2
if test ${enable_HEATH+y}
then :
d29163 1
a29163 1
else $as_nop
d29172 1
a29172 1
printf "%s\n" "#define CLOCK_HEATH 1" >>confdefs.h
d29176 2
a29177 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29179 2
a29180 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
printf %s "checking for hopf serial clock device... " >&6; }
d29182 1
a29182 2
if test ${enable_HOPFSERIAL+y}
then :
d29184 1
a29184 1
else $as_nop
d29193 1
a29193 1
printf "%s\n" "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
d29197 2
a29198 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29200 2
a29201 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
printf %s "checking for hopf PCI clock 6039... " >&6; }
d29203 1
a29203 2
if test ${enable_HOPFPCI+y}
then :
d29205 1
a29205 1
else $as_nop
d29214 1
a29214 1
printf "%s\n" "#define CLOCK_HOPF_PCI 1" >>confdefs.h
d29218 2
a29219 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29221 2
a29222 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
printf %s "checking HP 58503A GPS receiver... " >&6; }
d29224 1
a29224 2
if test ${enable_HPGPS+y}
then :
d29226 1
a29226 1
else $as_nop
d29235 1
a29235 1
printf "%s\n" "#define CLOCK_HPGPS 1" >>confdefs.h
d29239 2
a29240 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29242 2
a29243 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
printf %s "checking IRIG audio decoder... " >&6; }
d29245 1
a29245 2
if test ${enable_IRIG+y}
then :
d29247 1
a29247 1
else $as_nop
d29261 1
a29261 1
printf "%s\n" "#define CLOCK_IRIG 1" >>confdefs.h
d29265 2
a29266 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29268 2
a29269 2
 yesno) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d29272 2
a29273 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
printf %s "checking for JJY receiver... " >&6; }
d29275 1
a29275 2
if test ${enable_JJY+y}
then :
d29277 200
a29476 1
else $as_nop
d29481 92
d29577 1
a29577 1
printf "%s\n" "#define CLOCK_JJY 1" >>confdefs.h
d29581 17
a29597 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
a29598 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
printf %s "checking Rockwell Jupiter GPS receiver... " >&6; }
# Check whether --enable-JUPITER was given.
if test ${enable_JUPITER+y}
then :
  enableval=$enable_JUPITER; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
a29600 3
case "$ntp_jupiter_ok" in
 no) ntp_ok=no ;;
esac
d29605 1
a29605 1
printf "%s\n" "#define CLOCK_JUPITER 1" >>confdefs.h
d29609 2
a29610 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29612 6
a29617 7
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
printf %s "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
# Check whether --enable-LEITCH was given.
if test ${enable_LEITCH+y}
then :
  enableval=$enable_LEITCH; ntp_ok=$enableval
else $as_nop
d29626 1
a29626 1
printf "%s\n" "#define CLOCK_LEITCH 1" >>confdefs.h
d29630 18
a29647 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
a29648 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
printf %s "checking local clock reference... " >&6; }
# Check whether --enable-LOCAL-CLOCK was given.
if test ${enable_LOCAL_CLOCK+y}
then :
  enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
d29656 1
a29656 1
printf "%s\n" "#define CLOCK_LOCAL 1" >>confdefs.h
d29660 6
a29665 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29667 7
d29675 3
a29677 12
# Not Ultrix
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
printf %s "checking Magnavox MX4200 GPS receiver... " >&6; }
# Check whether --enable-MX4200 was given.
if test ${enable_MX4200+y}
then :
  enableval=$enable_MX4200; ntp_ok=$enableval
else $as_nop

	case "$ac_cv_var_ppsclock" in
	 yes)
	    ntp_ok=$ntp_eac
d29680 1
a29680 1
	    ntp_ok=no
d29691 1
a29691 1
printf "%s\n" "#define CLOCK_MX4200 1" >>confdefs.h
d29695 2
a29696 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29698 2
a29699 2
 yes*-*-ultrix*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d29702 7
a29708 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
printf %s "checking for NeoClock4X receiver... " >&6; }
# Check whether --enable-NEOCLOCK4X was given.
if test ${enable_NEOCLOCK4X+y}
then :
  enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
d29716 1
a29716 1
printf "%s\n" "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
d29720 2
a29721 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29723 6
a29728 7
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
printf %s "checking NMEA GPS receiver... " >&6; }
# Check whether --enable-NMEA was given.
if test ${enable_NMEA+y}
then :
  enableval=$enable_NMEA; ntp_ok=$enableval
else $as_nop
d29737 1
a29737 1
printf "%s\n" "#define CLOCK_NMEA 1" >>confdefs.h
d29741 2
a29742 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29744 6
a29749 4
ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
if test "x$ac_cv_func_strtoll" = xyes
then :
  printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
d29751 7
a29757 1
fi
a29758 11
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
printf %s "checking for GPSD JSON receiver... " >&6; }
# Check whether --enable-GPSD was given.
if test ${enable_GPSD+y}
then :
  enableval=$enable_GPSD; ntp_ok=$enableval
else $as_nop
  case "$ac_cv_func_strtoll" in
     yes) ntp_ok=$ntp_eac ;;
     *)   ntp_ok="no" ;;
    esac
d29766 1
a29766 1
printf "%s\n" "#define CLOCK_GPSDJSON 1" >>confdefs.h
d29770 14
a29783 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
a29784 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
printf %s "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
# Check whether --enable-ONCORE was given.
if test ${enable_ONCORE+y}
then :
  enableval=$enable_ONCORE; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
a29787 3
case "$ntp_oncore_ok" in
 no) ntp_ok=no ;;
esac
d29792 1
a29792 1
printf "%s\n" "#define CLOCK_ONCORE 1" >>confdefs.h
d29796 6
a29801 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29803 7
a29809 9
# Requires modem control
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
printf %s "checking for Palisade clock... " >&6; }
# Check whether --enable-PALISADE was given.
if test ${enable_PALISADE+y}
then :
  enableval=$enable_PALISADE; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_enable_all_modem_control_clocks
d29817 1
a29817 1
printf "%s\n" "#define CLOCK_PALISADE 1" >>confdefs.h
d29821 16
a29836 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
a29837 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
printf %s "checking Conrad parallel port radio clock... " >&6; }
# Check whether --enable-PCF was given.
if test ${enable_PCF+y}
then :
  enableval=$enable_PCF; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
d29841 2
a29842 5
case "$ntp_ok" in
 yes)
    ntp_refclock=yes

printf "%s\n" "#define CLOCK_PCF 1" >>confdefs.h
d29844 6
a29851 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29853 11
a29863 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
printf %s "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
# Check whether --enable-PST was given.
if test ${enable_PST+y}
then :
  enableval=$enable_PST; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
d29869 1
d29872 1
a29872 1
printf "%s\n" "#define CLOCK_PST 1" >>confdefs.h
d29876 6
a29881 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29883 7
a29889 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
printf %s "checking RIPENCC specific Trimble driver... " >&6; }
# Check whether --enable-RIPENCC was given.
if test ${enable_RIPENCC+y}
then :
  enableval=$enable_RIPENCC; ntp_ok=$enableval
else $as_nop
  ntp_ok=no
a29892 4
# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
case "$ntp_ripe_ncc_ok" in
 no) ntp_ok=no ;;
esac
d29895 1
d29898 1
a29898 1
printf "%s\n" "#define CLOCK_RIPENCC /**/" >>confdefs.h
d29902 6
a29907 17
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }

# Danny Meyer says SHM compiles (with a few warnings) under Win32.
# For *IX, we need sys/ipc.h and sys/shm.h.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
printf %s "checking for SHM clock attached thru shared memory... " >&6; }
# Check whether --enable-SHM was given.
if test ${enable_SHM+y}
then :
  enableval=$enable_SHM; ntp_ok=$enableval
else $as_nop

	case "$ntp_eac$ntp_canshm" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac
d29909 7
d29921 1
d29924 1
a29924 1
printf "%s\n" "#define CLOCK_SHM 1" >>confdefs.h
d29928 6
a29933 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d29935 7
a29941 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
printf %s "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
# Check whether --enable-SPECTRACOM was given.
if test ${enable_SPECTRACOM+y}
then :
  enableval=$enable_SPECTRACOM; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
d29947 1
d29950 1
a29950 1
printf "%s\n" "#define CLOCK_SPECTRACOM 1" >>confdefs.h
d29954 6
a29959 19
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
printf %s "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
# Check whether --enable-TPRO was given.
if test ${enable_TPRO+y}
then :
  enableval=$enable_TPRO; ntp_ok=$enableval
else $as_nop

	case "$ac_cv_header_sys_tpro_h" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	    ;;
	esac
d29961 7
d29973 2
d29976 1
d29978 1
a29978 1
printf "%s\n" "#define CLOCK_TPRO 1" >>confdefs.h
d29982 5
a29986 5
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ac_cv_header_sys_tpro" in
 yesno) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d29989 7
a29995 8
# Not on a vax-dec-bsd
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
printf %s "checking Kinemetrics/TrueTime receivers... " >&6; }
# Check whether --enable-TRUETIME was given.
if test ${enable_TRUETIME+y}
then :
  enableval=$enable_TRUETIME; ntp_ok=$enableval
else $as_nop
d29997 7
a30003 8
	case "$host" in
	 vax-dec-bsd)
	    ntp_ok=no
	    ;;
	 *)
	    ntp_ok=$ntp_eac
	    ;;
	esac
d30007 4
d30012 3
a30014 13
case "$ntp_ok" in
 yes)
    ntp_refclock=yes

printf "%s\n" "#define CLOCK_TRUETIME 1" >>confdefs.h

    ;;
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yesvax-dec-bsd) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d30017 7
a30023 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
printf %s "checking TrueTime 560 IRIG-B decoder... " >&6; }
# Check whether --enable-TT560 was given.
if test ${enable_TT560+y}
then :
  enableval=$enable_TT560; ntp_ok=$enableval
else $as_nop
  ntp_ok=no
d30029 1
d30032 1
a30032 1
printf "%s\n" "#define CLOCK_TT560 /**/" >>confdefs.h
d30036 6
a30041 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d30043 7
a30049 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
printf %s "checking Ultralink M320 WWVB receiver... " >&6; }
# Check whether --enable-ULINK was given.
if test ${enable_ULINK+y}
then :
  enableval=$enable_ULINK; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
d30055 1
d30058 1
a30058 1
printf "%s\n" "#define CLOCK_ULINK 1" >>confdefs.h
d30062 6
a30067 18
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
printf %s "checking Spectracom TSYNC PCI timing board... " >&6; }
# Check whether --enable-TSYNCPCI was given.
if test ${enable_TSYNCPCI+y}
then :
  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
else $as_nop

	case "$host" in
	 *-*-*linux*)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	esac
d30069 7
d30081 1
d30084 1
a30084 1
printf "%s\n" "#define CLOCK_TSYNCPCI 1" >>confdefs.h
d30088 6
a30093 15
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
printf %s "checking WWV receiver... " >&6; }
# Check whether --enable-WWV was given.
if test ${enable_WWV+y}
then :
  enableval=$enable_WWV; ntp_ok=$enableval
else $as_nop

	case "$ntp_eac$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac
d30095 7
d30107 1
d30110 1
a30110 1
printf "%s\n" "#define CLOCK_WWV 1" >>confdefs.h
d30114 5
a30118 5
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canaudio" in
 yesno) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
d30121 7
a30127 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
printf %s "checking for Zyfer receiver... " >&6; }
# Check whether --enable-ZYFER was given.
if test ${enable_ZYFER+y}
then :
  enableval=$enable_ZYFER; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eac
d30133 1
d30136 1
a30136 1
printf "%s\n" "#define CLOCK_ZYFER 1" >>confdefs.h
d30140 5
a30144 31
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
printf %s "checking for default inclusion of all suitable PARSE clocks... " >&6; }
# Check whether --enable-parse-clocks was given.
if test ${enable_parse_clocks+y}
then :
  enableval=$enable_parse_clocks; ntp_eapc=$enableval
else $as_nop

	case "$ntp_eac" in
	 yes)	ntp_eapc=$ntp_canparse ;;
	 *)	ntp_eapc=no ;;
	esac
	# Delete the next line one of these days
	ntp_eapc=no


fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
printf "%s\n" "$ntp_eapc" >&6; }

case "$ntp_eac$ntp_eapc$ntp_canparse" in
 noyes*)
    as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
    ;;
 yesyesno)
    as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
    ;;
d30147 6
a30152 11
ntp_libparse=no
ntp_parseutil=no
ntp_rawdcf=no

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
printf %s "checking Diem Computime Radio Clock... " >&6; }
# Check whether --enable-COMPUTIME was given.
if test ${enable_COMPUTIME+y}
then :
  enableval=$enable_COMPUTIME; ntp_ok=$enableval
else $as_nop
d30162 1
a30162 1
printf "%s\n" "#define CLOCK_COMPUTIME 1" >>confdefs.h
d30166 2
a30167 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d30173 6
a30178 7
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
printf %s "checking ELV/DCF7000 clock... " >&6; }
# Check whether --enable-DCF7000 was given.
if test ${enable_DCF7000+y}
then :
  enableval=$enable_DCF7000; ntp_ok=$enableval
else $as_nop
a30179 1

d30182 1
a30182 2
case "$ntp_ok" in
 yes)
d30186 1
a30186 1
printf "%s\n" "#define CLOCK_DCF7000 1" >>confdefs.h
d30188 3
a30190 4
    ;;
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d30194 21
d30216 27
a30243 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
printf %s "checking HOPF 6021 clock... " >&6; }
# Check whether --enable-HOPF6021 was given.
if test ${enable_HOPF6021+y}
then :
  enableval=$enable_HOPF6021; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
d30245 3
d30250 6
a30255 1
case "$ntp_ok" in
d30257 3
a30259 2
    ntp_libparse=yes
    ntp_refclock=yes
d30261 22
a30282 1
printf "%s\n" "#define CLOCK_HOPF6021 1" >>confdefs.h
d30284 5
a30288 1
    ;;
d30290 139
a30428 5
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d30431 17
a30447 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
printf %s "checking Meinberg clocks... " >&6; }
# Check whether --enable-MEINBERG was given.
if test ${enable_MEINBERG+y}
then :
  enableval=$enable_MEINBERG; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
d30449 1
a30449 1
fi
a30450 4
case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes
d30452 1
a30452 1
printf "%s\n" "#define CLOCK_MEINBERG 1" >>confdefs.h
d30454 4
a30459 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
d30461 3
a30463 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
printf %s "checking DCF77 raw time code... " >&6; }
# Check whether --enable-RAWDCF was given.
if test ${enable_RAWDCF+y}
then :
  enableval=$enable_RAWDCF; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
d30465 14
a30478 1
fi
d30480 2
a30481 6
case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_parseutil=yes
    ntp_refclock=yes
    ntp_rawdcf=yes
d30483 3
a30485 1
printf "%s\n" "#define CLOCK_RAWDCF 1" >>confdefs.h
d30487 2
a30488 8
    ;;
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
a30489 8
case "$ntp_rawdcf" in
 yes)
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
printf %s "checking if we must enable parity for RAWDCF... " >&6; }
if test ${ntp_cv_rawdcf_parity+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d30491 8
a30498 7
	    ans=no
	    case "$host" in
	     *-*-*linux*)
		ans=yes
		;;
	    esac
	    ntp_cv_rawdcf_parity=$ans
d30500 3
d30505 15
a30519 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
printf "%s\n" "$ntp_cv_rawdcf_parity" >&6; }
    case "$ntp_cv_rawdcf_parity" in
     yes)
d30521 3
a30523 4
printf "%s\n" "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
 ;;
    esac
esac
d30525 2
a30526 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
printf %s "checking RCC 8000 clock... " >&6; }
# Check whether --enable-RCC8000 was given.
if test ${enable_RCC8000+y}
then :
  enableval=$enable_RCC8000; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
a30527 1
fi
d30529 8
a30536 4
case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes
d30538 3
a30540 1
printf "%s\n" "#define CLOCK_RCC8000 1" >>confdefs.h
d30542 8
a30549 7
    ;;
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
d30552 21
a30572 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
printf %s "checking Schmid DCF77 clock... " >&6; }
# Check whether --enable-SCHMID was given.
if test ${enable_SCHMID+y}
then :
  enableval=$enable_SCHMID; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
a30573 1
fi
d30575 3
a30577 4
case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes
d30579 1
a30579 1
printf "%s\n" "#define CLOCK_SCHMID 1" >>confdefs.h
a30580 8
    ;;
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
d30582 8
a30589 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
printf %s "checking Trimble GPS receiver/TAIP protocol... " >&6; }
# Check whether --enable-TRIMTAIP was given.
if test ${enable_TRIMTAIP+y}
then :
  enableval=$enable_TRIMTAIP; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
d30592 19
d30612 3
a30614 4
case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes
d30616 1
a30616 1
printf "%s\n" "#define CLOCK_TRIMTAIP 1" >>confdefs.h
a30617 8
    ;;
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
d30619 8
a30626 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
printf %s "checking Trimble GPS receiver/TSIP protocol... " >&6; }
# Check whether --enable-TRIMTSIP was given.
if test ${enable_TRIMTSIP+y}
then :
  enableval=$enable_TRIMTSIP; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
d30629 9
a30637 8

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

printf "%s\n" "#define CLOCK_TRIMTSIP 1" >>confdefs.h

d30639 3
a30642 15
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
printf %s "checking WHARTON 400A Series clock... " >&6; }
# Check whether --enable-WHARTON was given.
if test ${enable_WHARTON+y}
then :
  enableval=$enable_WHARTON; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
d30644 2
a30645 1
fi
d30647 1
a30647 1
case "$ntp_ok" in
d30649 8
a30656 2
    ntp_libparse=yes
    ntp_refclock=yes
d30658 2
a30659 1
printf "%s\n" "#define CLOCK_WHARTON_400A 1" >>confdefs.h
a30662 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
a30663 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
printf %s "checking VARITEXT clock... " >&6; }
# Check whether --enable-VARITEXT was given.
if test ${enable_VARITEXT+y}
then :
  enableval=$enable_VARITEXT; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
d30665 8
a30672 1
fi
d30674 3
a30676 1
case "$ntp_ok" in
a30677 2
    ntp_libparse=yes
    ntp_refclock=yes
d30679 1
a30679 1
printf "%s\n" "#define CLOCK_VARITEXT 1" >>confdefs.h
d30681 3
d30686 3
a30688 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac
a30689 9
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
printf %s "checking SEL240X clock... " >&6; }
# Check whether --enable-SEL240X was given.
if test ${enable_SEL240X+y}
then :
  enableval=$enable_SEL240X; ntp_ok=$enableval
else $as_nop
  ntp_ok=$ntp_eapc
fi
a30690 3
if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes
d30692 7
a30698 1
printf "%s\n" "#define CLOCK_SEL240X 1" >>confdefs.h
a30700 7
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
    ;;
esac
d30702 2
d30705 11
d30717 2
d30720 3
d30724 1
d30726 3
a30728 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
printf %s "checking if we need to make and use the parse libraries... " >&6; }
ans=no
case "$ntp_libparse" in
 yes)
    ans=yes
a30729 1
printf "%s\n" "#define CLOCK_PARSE 1" >>confdefs.h
a30730 7
    LIBPARSE=../libparse/libparse.a
    MAKE_LIBPARSE=libparse.a
    # HMS: check_y2k trips the 34 year problem now...
    false && MAKE_CHECK_Y2K=check_y2k
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d30732 3
a30734 1
# if we have crypto, by default Autokey is enabled
d30736 1
a30736 2
if test ${enable_autokey+y}
then :
d30738 1
a30738 1
else $as_nop
d30749 2
a30750 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, crypto unavailable." >&5
printf "%s\n" "$as_me: WARNING: Disabling Autokey, crypto unavailable." >&2;}
d30755 1
a30755 1
printf "%s\n" "#define AUTOKEY 1" >>confdefs.h
d30762 2
a30763 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if NTP Autokey protocol will be supported" >&5
printf %s "checking if NTP Autokey protocol will be supported... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
printf "%s\n" "$ntp_autokey" >&6; }
d30766 2
a30767 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
printf %s "checking if we want to run check-layout... " >&6; }
d30777 2
a30778 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d30782 2
a30783 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
printf %s "checking if we can make dcf parse utilities... " >&6; }
d30795 2
a30796 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d30799 2
a30800 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
printf %s "checking if we can build kernel streams modules for parse... " >&6; }
d30809 1
a30809 1
printf "%s\n" "#define PPS_SYNC 1" >>confdefs.h
d30818 8
a30825 5
	MAKE_PARSEKMODULE=parse
	ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
if test "x$ac_cv_header_strings_h" = xyes
then :
  printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
d30829 2
d30835 2
a30836 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d30838 2
a30839 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
printf %s "checking if we need basic refclock support... " >&6; }
d30843 1
a30843 1
printf "%s\n" "#define REFCLOCK 1" >>confdefs.h
d30847 2
a30848 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
printf "%s\n" "$ntp_refclock" >&6; }
d30854 2
a30855 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
printf %s "checking if we want HP-UX adjtimed support... " >&6; }
d30867 1
a30867 1
printf "%s\n" "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
d30876 2
a30877 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d30879 2
a30880 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
printf %s "checking if we want QNX adjtime support... " >&6; }
d30891 1
a30891 1
printf "%s\n" "#define NEED_QNX_ADJTIME 1" >>confdefs.h
d30895 2
a30896 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d30898 2
a30899 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
printf %s "checking if we can read kmem... " >&6; }
d30934 1
a30934 2
if test ${enable_kmem+y}
then :
d30940 2
a30941 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d30950 1
a30950 1
printf "%s\n" "#define NOKMEM 1" >>confdefs.h
d30955 2
a30956 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
printf %s "checking if adjtime is accurate... " >&6; }
d30996 1
a30996 2
if test ${enable_accurate_adjtime+y}
then :
d31002 2
a31003 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31008 1
a31008 1
printf "%s\n" "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
d31017 5
a31021 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
printf %s "checking the name of 'tick' in the kernel... " >&6; }
if test ${ntp_cv_nlist_tick+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31058 2
a31059 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
printf "%s\n" "$ntp_cv_nlist_tick" >&6; }
d31065 3
a31067 1
printf "%s\n" "#define K_TICK_NAME \"$ntp_cv_nlist_tick\"" >>confdefs.h
d31071 5
a31075 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
printf %s "checking for the units of 'tick'... " >&6; }
if test ${ntp_cv_tick_nano+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31087 2
a31088 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
printf "%s\n" "$ntp_cv_tick_nano" >&6; }
d31092 1
a31092 1
printf "%s\n" "#define TICK_NANO 1" >>confdefs.h
d31096 5
a31100 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
printf %s "checking the name of 'tickadj' in the kernel... " >&6; }
if test ${ntp_cv_nlist_tickadj+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31145 2
a31146 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
printf "%s\n" "$ntp_cv_nlist_tickadj" >&6; }
d31152 3
a31154 1
printf "%s\n" "#define K_TICKADJ_NAME \"$ntp_cv_nlist_tickadj\"" >>confdefs.h
d31158 5
a31162 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
printf %s "checking for the units of 'tickadj'... " >&6; }
if test ${ntp_cv_tickadj_nano+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31174 2
a31175 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
printf "%s\n" "$ntp_cv_tickadj_nano" >&6; }
d31179 1
a31179 1
printf "%s\n" "#define TICKADJ_NANO 1" >>confdefs.h
d31183 5
a31187 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
printf %s "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
if test ${ntp_cv_nlist_dosynctodr+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31234 2
a31235 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
printf "%s\n" "$ntp_cv_nlist_dosynctodr" >&6; }
d31241 3
a31243 1
printf "%s\n" "#define K_DOSYNCTODR_NAME \"$ntp_cv_nlist_dosynctodr\"" >>confdefs.h
d31248 5
a31252 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
printf %s "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
if test ${ntp_cv_nlist_noprintf+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31293 2
a31294 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
printf "%s\n" "$ntp_cv_nlist_noprintf" >&6; }
d31300 3
a31302 1
printf "%s\n" "#define K_NOPRINTF_NAME \"$ntp_cv_nlist_noprintf\"" >>confdefs.h
d31310 2
a31311 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
printf %s "checking for a default value for 'tick'... " >&6; }
d31343 1
a31343 2
if test ${enable_tick+y}
then :
d31349 2
a31350 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31357 3
a31359 1
printf "%s\n" "#define PRESET_TICK $ans" >>confdefs.h
d31363 2
a31364 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
printf %s "checking for a default value for 'tickadj'... " >&6; }
d31417 1
a31417 2
if test ${enable_tickadj+y}
then :
d31423 2
a31424 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31433 3
a31435 1
printf "%s\n" "#define PRESET_TICKADJ $default_tickadj" >>confdefs.h
d31446 1
a31446 1
printf "%s\n" "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
d31453 1
a31453 1
printf "%s\n" "#define SCO5_CLOCK 1" >>confdefs.h
d31460 2
a31461 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&5
printf "%s\n" "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&2;}
d31465 2
a31466 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
printf "%s\n" "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
d31470 2
a31471 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
printf "%s\n" "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
d31479 2
a31480 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
printf "%s\n" "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
d31492 5
a31496 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
printf %s "checking if we want and can make the ntptime utility... " >&6; }
if test ${ac_cv_make_ntptime+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31510 2
a31511 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
printf "%s\n" "$ac_cv_make_ntptime" >&6; }
d31558 5
a31562 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
printf %s "checking if we want and can make the tickadj utility... " >&6; }
if test ${ntp_cv_make_tickadj+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31566 2
a31567 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
printf "%s\n" "$ntp_cv_make_tickadj" >&6; }
d31585 5
a31589 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
printf %s "checking if we want and can make the timetrim utility... " >&6; }
if test ${ntp_cv_make_timetrim+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31605 2
a31606 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
printf "%s\n" "$ntp_cv_make_timetrim" >&6; }
d31621 2
a31622 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
printf %s "checking if we want to build the NTPD simulator... " >&6; }
d31624 1
a31624 2
if test ${enable_simulator+y}
then :
d31626 1
a31626 1
else $as_nop
d31631 2
a31632 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31659 2
a31660 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
printf %s "checking if sntp will be built... " >&6; }
d31663 1
a31663 2
if test ${with_sntp+y}
then :
d31665 1
a31665 1
else $as_nop
d31687 2
a31688 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
printf "%s\n" "$with_sntp" >&6; }
d31692 2
a31693 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
printf %s "checking if we want to build ntpsnmpd... " >&6; }
d31696 1
a31696 2
if test ${with_ntpsnmpd+y}
then :
d31698 1
a31698 1
else $as_nop
d31708 2
a31709 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31743 2
a31744 3
	ac_fn_c_check_header_compile "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes
then :
d31746 3
a31748 3
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
printf "%s\n" "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
d31753 1
d31757 5
a31761 6
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
printf %s "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
if test ${ac_cv_lib_netsnmp_netsnmp_daemonize+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d31770 3
d31775 1
a31775 1
main (void)
d31782 1
a31782 2
if ac_fn_c_try_link "$LINENO"
then :
d31784 1
a31784 1
else $as_nop
d31787 1
a31787 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d31791 3
a31793 4
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
printf "%s\n" "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes
then :
d31795 1
a31795 1
else $as_nop
d31803 1
a31803 1
printf "%s\n" "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
d31815 2
a31816 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
printf "%s\n" "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
d31832 2
a31833 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
printf %s "checking if we should always slew the time... " >&6; }
d31857 1
a31857 2
if test ${enable_slew_always+y}
then :
d31863 2
a31864 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31869 1
a31869 1
printf "%s\n" "#define SLEWALWAYS 1" >>confdefs.h
d31873 2
a31874 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
printf %s "checking if we should step and slew the time... " >&6; }
d31903 1
a31903 2
if test ${enable_step_slew+y}
then :
d31909 2
a31910 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31915 1
a31915 1
printf "%s\n" "#define STEP_SLEW 1" >>confdefs.h
d31919 2
a31920 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
printf %s "checking if ntpdate should step the time... " >&6; }
d31931 1
a31931 2
if test ${enable_ntpdate_step+y}
then :
d31937 2
a31938 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31943 1
a31943 1
printf "%s\n" "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
d31948 2
a31949 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
printf %s "checking if we should sync TODR clock every hour... " >&6; }
d31964 1
a31964 2
if test ${enable_hourly_todr_sync+y}
then :
d31970 2
a31971 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d31976 1
a31976 1
printf "%s\n" "#define DOSYNCTODR 1" >>confdefs.h
d31981 2
a31982 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
printf %s "checking if we should avoid kernel FLL bug... " >&6; }
d32033 1
a32033 2
if test ${enable_kernel_fll_bug+y}
then :
d32039 2
a32040 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d32045 1
a32045 1
printf "%s\n" "#define KERNEL_FLL_BUG 1" >>confdefs.h
d32050 2
a32051 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
printf %s "checking if we want new session key behavior... " >&6; }
d32053 1
a32053 2
if test ${enable_bug1243_fix+y}
then :
d32055 1
a32055 1
else $as_nop
d32060 2
a32061 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d32065 1
a32065 1
printf "%s\n" "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
d32070 2
a32071 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5
printf %s "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; }
d32073 1
a32073 2
if test ${enable_bug3020_fix+y}
then :
d32075 1
a32075 1
else $as_nop
d32080 2
a32081 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d32085 1
a32085 1
printf "%s\n" "#define ENABLE_BUG3020_FIX 1" >>confdefs.h
d32090 2
a32091 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want correct mode7 fudgetime2 behavior" >&5
printf %s "checking if we want correct mode7 fudgetime2 behavior... " >&6; }
d32093 1
a32093 2
if test ${enable_bug3527_fix+y}
then :
d32095 1
a32095 1
else $as_nop
d32100 2
a32101 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d32105 1
a32105 1
printf "%s\n" "#define DISABLE_BUG3527_FIX 1" >>confdefs.h
d32110 2
a32111 23
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want a debug assert on an OOB KoD RATE value" >&5
printf %s "checking if we want a debug assert on an OOB KoD RATE value... " >&6; }
# Check whether --enable-bug3767-fix was given.
if test ${enable_bug3767_fix+y}
then :
  enableval=$enable_bug3767_fix; ans=$enableval
else $as_nop
  ans=yes

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
case "$ans" in
 no)

printf "%s\n" "#define DISABLE_BUG3767_FIX 1" >>confdefs.h

esac


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
printf %s "checking if we should use the IRIG sawtooth filter... " >&6; }
d32125 1
a32125 2
if test ${enable_irig_sawtooth+y}
then :
d32131 2
a32132 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d32137 1
a32137 1
printf "%s\n" "#define IRIG_SUCKS 1" >>confdefs.h
d32141 2
a32142 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
printf %s "checking if we should enable NIST lockclock scheme... " >&6; }
d32144 1
a32144 2
if test ${enable_nist+y}
then :
d32146 1
a32146 1
else $as_nop
d32152 2
a32153 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d32158 1
a32158 1
printf "%s\n" "#define LOCKCLOCK 1" >>confdefs.h
d32162 2
a32163 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
printf %s "checking if we want support for Samba's signing daemon... " >&6; }
d32165 1
a32165 2
if test ${enable_ntp_signd+y}
then :
d32167 1
a32167 1
else $as_nop
d32173 2
a32174 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
d32192 1
a32192 1
printf "%s\n" "#define HAVE_NTP_SIGND 1" >>confdefs.h
d32195 3
a32197 1
printf "%s\n" "#define NTP_SIGND_PATH \"$ntp_signd_path\"" >>confdefs.h
d32202 7
a32208 8
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want 'magic' PPS support" >&5
printf %s "checking if we want 'magic' PPS support... " >&6; }
# Check whether --enable-magicpps was given.
if test ${enable_magicpps+y}
then :
  enableval=$enable_magicpps; ans=$enableval
else $as_nop
  ans=yes
d32212 1
a32212 35
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
printf "%s\n" "$ans" >&6; }
case "$ans" in
 yes)

printf "%s\n" "#define ENABLE_MAGICPPS 1" >>confdefs.h

    ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
if test "x$ac_cv_func_openat" = xyes
then :
  printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir"
if test "x$ac_cv_func_fdopendir" = xyes
then :
  printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"
if test "x$ac_cv_func_fstatat" = xyes
then :
  printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h

fi

    ;;
esac

ac_fn_c_check_header_compile "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
if test "x$ac_cv_header_libscf_h" = xyes
then :
  printf "%s\n" "#define HAVE_LIBSCF_H 1" >>confdefs.h

fi
d32223 5
a32227 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
printf %s "checking for struct sockaddr_storage... " >&6; }
if test ${ntp_cv_sockaddr_storage+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32242 1
a32242 1
main (void)
d32252 1
a32252 2
if ac_fn_c_try_compile "$LINENO"
then :
d32254 1
a32254 1
else $as_nop
d32258 1
a32258 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32261 2
a32262 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
printf "%s\n" "$ntp_cv_sockaddr_storage" >&6; }
d32266 1
a32266 1
printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
d32268 5
a32272 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
printf %s "checking for sockaddr_storage.__ss_family... " >&6; }
if test ${ntp_cv_have___ss_family+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32287 1
a32287 1
main (void)
d32298 1
a32298 2
if ac_fn_c_try_compile "$LINENO"
then :
d32300 1
a32300 1
else $as_nop
d32304 1
a32304 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32307 2
a32308 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
printf "%s\n" "$ntp_cv_have___ss_family" >&6; }
d32312 1
a32312 1
printf "%s\n" "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
d32322 5
a32326 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
printf %s "checking for in_port_t... " >&6; }
if test ${isc_cv_have_in_port_t+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32334 1
a32334 1
main (void)
d32345 1
a32345 2
if ac_fn_c_try_compile "$LINENO"
then :
d32347 1
a32347 1
else $as_nop
d32351 1
a32351 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32354 2
a32355 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
printf "%s\n" "$isc_cv_have_in_port_t" >&6; }
d32359 1
a32359 1
printf "%s\n" "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
d32363 5
a32367 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
printf %s "checking type of socklen arg for getsockname()... " >&6; }
if test ${ntp_cv_getsockname_socklen_type+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32383 1
a32383 1
main (void)
d32395 1
a32395 2
if ac_fn_c_try_compile "$LINENO"
then :
d32398 1
a32398 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32410 2
a32411 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
printf "%s\n" "$ntp_cv_getsockname_socklen_type" >&6; }
d32413 3
a32415 1
printf "%s\n" "#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type" >>confdefs.h
d32418 5
a32422 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
printf %s "checking struct sockaddr for sa_len... " >&6; }
if test ${isc_cv_platform_havesalen+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32430 1
a32430 1
main (void)
d32441 1
a32441 2
if ac_fn_c_try_compile "$LINENO"
then :
d32443 1
a32443 1
else $as_nop
d32447 1
a32447 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32450 2
a32451 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
printf "%s\n" "$isc_cv_platform_havesalen" >&6; }
d32455 1
a32455 1
printf "%s\n" "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
d32460 1
a32460 2
if test ${enable_ipv6+y}
then :
d32472 1
a32472 1
printf "%s\n" "#define WANT_IPV6 1" >>confdefs.h
d32485 1
a32485 1
printf "%s\n" "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
d32490 5
a32494 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
printf %s "checking for IPv6 structures... " >&6; }
if test ${isc_cv_found_ipv6+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32503 1
a32503 1
main (void)
d32513 1
a32513 2
if ac_fn_c_try_compile "$LINENO"
then :
d32515 1
a32515 1
else $as_nop
d32519 1
a32519 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32522 2
a32523 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
printf "%s\n" "$isc_cv_found_ipv6" >&6; }
d32529 2
a32530 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
printf %s "checking for Kame IPv6 support... " >&6; }
d32533 1
a32533 2
if test ${with_kame+y}
then :
d32535 1
a32535 1
else $as_nop
d32552 2
a32553 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d32557 2
a32558 2
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
printf "%s\n" "$kame_path/lib/libinet6.a" >&6; }
d32582 1
a32582 1
printf "%s\n" "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
d32597 1
a32597 1
printf "%s\n" "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
d32610 1
a32610 1
printf "%s\n" "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
d32612 5
a32616 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
printf %s "checking for in6_pktinfo... " >&6; }
if test ${isc_cv_have_in6_pktinfo+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32627 1
a32627 1
main (void)
d32637 1
a32637 2
if ac_fn_c_try_compile "$LINENO"
then :
d32639 1
a32639 1
else $as_nop
d32643 1
a32643 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32646 2
a32647 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
printf "%s\n" "$isc_cv_have_in6_pktinfo" >&6; }
d32651 1
a32651 1
printf "%s\n" "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
d32657 5
a32661 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
printf %s "checking for sockaddr_in6.sin6_scope_id... " >&6; }
if test ${isc_cv_have_sin6_scope_id+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32672 1
a32672 1
main (void)
d32683 1
a32683 2
if ac_fn_c_try_compile "$LINENO"
then :
d32685 1
a32685 1
else $as_nop
d32689 1
a32689 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32692 2
a32693 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
printf "%s\n" "$isc_cv_have_sin6_scope_id" >&6; }
d32698 1
a32698 1
printf "%s\n" "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
d32706 5
a32710 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
printf %s "checking for in6addr_any... " >&6; }
if test ${isc_cv_in6addr_any_links+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32723 1
a32723 1
main (void)
d32733 1
a32733 2
if ac_fn_c_try_link "$LINENO"
then :
d32735 1
a32735 1
else $as_nop
d32739 1
a32739 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d32746 2
a32747 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
printf "%s\n" "$isc_cv_in6addr_any_links" >&6; }
d32752 1
a32752 1
printf "%s\n" "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
d32757 5
a32761 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
printf %s "checking for struct if_laddrconf... " >&6; }
if test ${isc_cv_struct_if_laddrconf+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32769 1
a32769 1
main (void)
d32779 1
a32779 2
if ac_fn_c_try_compile "$LINENO"
then :
d32781 1
a32781 1
else $as_nop
d32785 1
a32785 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32788 2
a32789 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
printf "%s\n" "$isc_cv_struct_if_laddrconf" >&6; }
d32794 1
a32794 1
printf "%s\n" "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
d32798 5
a32802 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
printf %s "checking for struct if_laddrreq... " >&6; }
if test ${isc_cv_struct_if_laddrreq+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32810 1
a32810 1
main (void)
d32820 1
a32820 2
if ac_fn_c_try_compile "$LINENO"
then :
d32822 1
a32822 1
else $as_nop
d32826 1
a32826 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32829 2
a32830 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
printf "%s\n" "$isc_cv_struct_if_laddrreq" >&6; }
d32835 1
a32835 1
printf "%s\n" "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
d32839 5
a32843 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
printf %s "checking for multicast IP support... " >&6; }
if test ${ntp_cv_multicast+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32858 1
a32858 1
main (void)
d32869 1
a32869 2
if ac_fn_c_try_compile "$LINENO"
then :
d32872 1
a32872 1
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
d32878 2
a32879 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
printf "%s\n" "$ntp_cv_multicast" >&6; }
d32883 1
a32883 1
printf "%s\n" "#define MCAST 1" >>confdefs.h
d32885 5
a32889 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
printf %s "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
if test ${ntp_cv_typeof_ip_multicast_loop+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32902 2
a32903 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
printf "%s\n" "$ntp_cv_typeof_ip_multicast_loop" >&6; }
d32905 3
a32907 1
printf "%s\n" "#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop" >>confdefs.h
d32912 1
a32912 2
if test ${enable_getifaddrs+y}
then :
d32914 1
a32914 1
else $as_nop
d32922 2
a32923 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
printf "%s\n" "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
d32931 7
a32937 4
    ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = xyes
then :
  printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
d32940 1
d32952 5
a32956 6
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
printf %s "checking for library containing if_nametoindex... " >&6; }
if test ${ac_cv_search_if_nametoindex+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d32964 3
d32969 1
a32969 1
main (void)
d32976 1
a32976 2
for ac_lib in '' ipv6
do
d32983 1
a32983 2
  if ac_fn_c_try_link "$LINENO"
then :
d32986 1
a32986 1
rm -f core conftest.err conftest.$ac_objext conftest.beam \
d32988 1
a32988 2
  if test ${ac_cv_search_if_nametoindex+y}
then :
d32992 1
a32992 2
if test ${ac_cv_search_if_nametoindex+y}
then :
d32994 1
a32994 1
else $as_nop
d33000 2
a33001 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
printf "%s\n" "$ac_cv_search_if_nametoindex" >&6; }
d33003 1
a33003 2
if test "$ac_res" != no
then :
d33011 7
a33017 4
ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
if test "x$ac_cv_func_if_nametoindex" = xyes
then :
  printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
d33020 1
d33027 1
a33027 1
printf "%s\n" "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
d33037 5
a33041 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
printf %s "checking for interface list sysctl... " >&6; }
if test ${ntp_cv_iflist_sysctl+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d33053 1
a33053 2
if ac_fn_c_try_cpp "$LINENO"
then :
d33055 1
a33055 1
else $as_nop
d33062 2
a33063 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
printf "%s\n" "$ntp_cv_iflist_sysctl" >&6; }
d33067 1
a33067 1
printf "%s\n" "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
d33073 2
a33074 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
printf %s "checking if we want the saveconfig mechanism... " >&6; }
d33076 1
a33076 2
if test ${enable_saveconfig+y}
then :
d33078 1
a33078 1
else $as_nop
d33088 1
a33088 1
printf "%s\n" "#define SAVECONFIG 1" >>confdefs.h
d33100 2
a33101 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d33105 2
a33106 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
printf %s "checking if we want the experimental leap smear code... " >&6; }
d33108 1
a33108 2
if test ${enable_leap_smear+y}
then :
d33110 1
a33110 1
else $as_nop
d33120 1
a33120 1
printf "%s\n" "#define LEAP_SMEAR 1" >>confdefs.h
d33126 2
a33127 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }
d33131 2
a33132 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5
printf %s "checking if we want dynamic interleave support... " >&6; }
d33134 1
a33134 2
if test ${enable_dynamic_interleave+y}
then :
d33136 1
a33136 1
else $as_nop
d33148 3
a33150 5
printf "%s\n" "#define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave" >>confdefs.h

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
printf "%s\n" "$ntp_ok" >&6; }

d33152 2
d33160 5
a33164 6
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PATH_RUBY+y}
then :
  printf %s "(cached) " >&6
else $as_nop
d33174 1
a33174 5
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
d33176 3
a33178 3
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PATH_RUBY="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
d33190 2
a33191 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
printf "%s\n" "$PATH_RUBY" >&6; }
d33193 2
a33194 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
d33218 100
d33323 2
a33324 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
printf %s "checking if we want to enable tests with undiagnosed problems... " >&6; }
d33326 1
a33326 2
if test ${enable_problem_tests+y}
then :
d33328 1
a33328 1
else $as_nop
d33333 2
a33334 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
printf "%s\n" "$ntp_ept" >&6; }
d33336 2
a33337 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
printf %s "checking if we can run test-ntp_restrict... " >&6; }
d33349 2
a33350 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
printf "%s\n" "$ntp_test_ntp_restrict" >&6; }
d33360 2
a33361 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
printf %s "checking if we can run test-ntp_scanner... " >&6; }
d33372 2
a33373 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
printf "%s\n" "$ntp_test_ntp_scanner" >&6; }
d33383 2
a33384 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
printf %s "checking if we can run test-ntp_signd... " >&6; }
d33395 2
a33396 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
printf "%s\n" "$ntp_test_ntp_signd" >&6; }
d33410 3
a33412 4
ac_fn_check_decl "$LINENO" "sigsetjmp" "ac_cv_have_decl_sigsetjmp" "#include <setjmp.h>
" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl_sigsetjmp" = xyes
then :
d33414 1
a33414 1
else $as_nop
d33417 7
a33423 5
printf "%s\n" "#define HAVE_DECL_SIGSETJMP $ac_have_decl" >>confdefs.h
ac_fn_check_decl "$LINENO" "siglongjmp" "ac_cv_have_decl_siglongjmp" "#include <setjmp.h>
" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl_siglongjmp" = xyes
then :
d33425 1
a33425 1
else $as_nop
d33428 4
a33431 1
printf "%s\n" "#define HAVE_DECL_SIGLONGJMP $ac_have_decl" >>confdefs.h
d33446 3
a33448 1
printf "%s\n" "#define NTP_KEYSDIR \"$ac_define_dir\"" >>confdefs.h
d33552 3
a33554 1
printf "%s\n" "#define PERLLIBDIR \"$ac_define_dir\"" >>confdefs.h
d33605 2
a33606 2
      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
d33636 1
a33636 1
     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
d33643 2
a33644 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
d33658 2
a33659 2
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
d33676 1
a33676 1
  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
d33687 2
a33688 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
printf %s "checking that generated files are newer than configure... " >&6; }
d33693 2
a33694 2
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
a33751 4
if test -z "${LIBNTP_SUBMAKES_TRUE}" && test -z "${LIBNTP_SUBMAKES_FALSE}"; then
  as_fn_error $? "conditional \"LIBNTP_SUBMAKES\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
d33764 4
d33785 2
a33786 2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
d33809 1
a33809 3
as_nop=:
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
d33816 1
a33816 1
else $as_nop
a33825 8

# Reset variables that may have inherited troublesome values from
# the environment.

# IFS needs to be set, to space, tab, and newline, in precisely that order.
# (If _AS_PATH_WALK were called with IFS unset, it would have the
# side effect of setting IFS to empty, thus disabling word splitting.)
# Quoting is to prevent editors from complaining about space-tab.
d33829 34
a33862 26
IFS=" ""	$as_nl"

PS1='$ '
PS2='> '
PS4='+ '

# Ensure predictable behavior from utilities with locale-dependent output.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# We cannot yet rely on "unset" to work, but we need these variables
# to be unset--not just set to an empty or harmless value--now, to
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
# also avoids known problems related to "unset" and subshell syntax
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
do eval test \${$as_var+y} \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done

# Ensure that fds 0, 1, and 2 are open.
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
d33865 1
a33865 1
if ${PATH_SEPARATOR+false} :; then
d33874 7
d33889 2
a33890 6
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
d33902 1
a33902 1
  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
d33906 20
d33938 1
a33938 1
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
d33940 1
a33940 1
  printf "%s\n" "$as_me: error: $2" >&2
a33944 1

a33970 1

d33977 1
a33977 2
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
then :
d33982 1
a33982 1
else $as_nop
d33994 1
a33994 2
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
then :
d33999 1
a33999 1
else $as_nop
d34030 1
a34030 1
printf "%s\n" X/"$0" |
a34051 4

# Determine whether it's possible to make 'echo' print without a newline.
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
# for compatibility with existing Makefiles.
a34064 6
# For backward compatibility with old third-party macros, we provide
# the shell variables $as_echo and $as_echo_n.  New code should use
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
as_echo='printf %s\n'
as_echo_n='printf %s'

d34106 1
a34106 1
      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
d34115 1
a34115 1
printf "%s\n" X"$as_dir" |
d34177 2
a34178 2
This file was extended by ntp $as_me 4.2.8p18, which was
generated by GNU Autoconf 2.71.  Invocation command line was
d34237 2
a34238 2
Report bugs to <https://bugs.ntp.org/>.
ntp home page: <https://www.ntp.org/>."
a34240 2
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
d34242 1
a34242 1
ac_cs_config='$ac_cs_config_escaped'
d34244 2
a34245 2
ntp config.status 4.2.8p18
configured by $0, generated by GNU Autoconf 2.71,
d34248 1
a34248 1
Copyright (C) 2021 Free Software Foundation, Inc.
d34288 1
a34288 1
    printf "%s\n" "$ac_cs_version"; exit ;;
d34290 1
a34290 1
    printf "%s\n" "$ac_cs_config"; exit ;;
d34296 1
a34296 1
    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d34304 1
a34304 1
    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d34313 1
a34313 1
    printf "%s\n" "$ac_cs_usage"; exit ;;
d34341 1
a34341 1
  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
d34355 1
a34355 1
  printf "%s\n" "$ac_log"
d34363 1
a34363 1
AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
d34373 1
a34375 1
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
d34713 3
a34715 3
  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
d35085 1
a35085 1
      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
d35093 1
a35093 1
	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
d35097 2
a35098 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
printf "%s\n" "$as_me: creating $ac_file" >&6;}
d35103 1
a35103 1
       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
d35120 1
a35120 1
printf "%s\n" X"$ac_file" |
d35144 1
a35144 1
  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
d35146 1
a35146 1
  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
d35208 2
a35209 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d35258 1
a35258 1
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d35260 1
a35260 1
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d35276 1
a35276 1
      printf "%s\n" "/* $configure_input  */" >&1 \
d35281 2
a35282 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
d35289 1
a35289 1
    printf "%s\n" "/* $configure_input  */" >&1 \
d35309 1
a35309 1
printf "%s\n" X"$_am_arg" |
d35329 2
a35330 2
  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
d35340 4
a35343 10
  # TODO: see whether this extra hack can be removed once we start
  # requiring Autoconf 2.70 or later.
  case $CONFIG_FILES in #(
  *\'*) :
    eval set x "$CONFIG_FILES" ;; #(
  *) :
    set x $CONFIG_FILES ;; #(
  *) :
     ;;
esac
d35345 1
a35345 3
  # Used to flag and report bootstrapping failures.
  am_rc=0
  for am_mf
d35348 7
a35354 4
    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
    # Check whether this is an Automake generated Makefile which includes
    # dependency-tracking related rules and includes.
    # Grep'ing the whole file directly is not great: AIX grep has a line
d35356 7
a35362 8
    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
      || continue
    am_dirpart=`$as_dirname -- "$am_mf" ||
$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$am_mf" : 'X\(//\)[^/]' \| \
	 X"$am_mf" : 'X\(//\)$' \| \
	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X"$am_mf" |
d35380 30
a35409 6
    am_filepart=`$as_basename -- "$am_mf" ||
$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$am_mf" : 'X\(//\)$' \| \
	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X/"$am_mf" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
d35413 1
a35413 1
	  /^X\/\(\/\/\)$/{
d35417 1
a35417 1
	  /^X\/\(\/\).*/{
d35422 4
a35425 9
    { echo "$as_me:$LINENO: cd "$am_dirpart" \
      && sed -e '/# am--include-marker/d' "$am_filepart" \
        | $MAKE -f - am--depfiles" >&5
   (cd "$am_dirpart" \
      && sed -e '/# am--include-marker/d' "$am_filepart" \
        | $MAKE -f - am--depfiles) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } || am_rc=$?
a35426 16
  if test $am_rc -ne 0; then
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Something went wrong bootstrapping makefile fragments
    for automatic dependency tracking.  If GNU make was not used, consider
    re-running the configure script with MAKE=\"gmake\" (or whatever is
    necessary).  You can also try re-running configure with the
    '--disable-dependency-tracking' option to at least be able to build
    the package (albeit without support for automatic dependency tracking).
See \`config.log' for more details" "$LINENO" 5; }
  fi
  { am_dirpart=; unset am_dirpart;}
  { am_filepart=; unset am_filepart;}
  { am_mf=; unset am_mf;}
  { am_rc=; unset am_rc;}
  rm -f conftest-deps.mk
d35481 3
a35487 3
# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

a35956 1

d35972 1
a35972 1
    "ntpd/complete.conf":F) $SED -e '/^rlimit$/d' -e '/^$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
d36057 1
a36057 1
      *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d36067 1
a36067 1
  *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d36088 2
a36089 2
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
    printf "%s\n" "$ac_msg" >&6
d36096 1
a36096 1
  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
d36098 1
a36098 1
  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
d36128 1
a36128 2
    # Check for configure.gnu first; this name is used for a wrapper for
    # Metaconfig's "Configure" on case-insensitive file systems.
d36133 3
d36137 2
a36138 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
d36151 2
a36152 2
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
d36163 2
a36164 2
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
a36166 1

@


1.1.1.4.6.1
log
@file configure was added on branch netbsd-5-1 on 2015-01-07 12:13:12 +0000
@
text
@d1 39094
@


1.1.1.4.6.2
log
@Pullup the following revision (requested by he in ticket #1938):

dist/ntp/COPYRIGHT						delete
dist/ntp/ChangeLog						delete
dist/ntp/CommitLog						delete
dist/ntp/CommitLog-4.1.0					delete
dist/ntp/INSTALL						delete
dist/ntp/Makefile.am						delete
dist/ntp/Makefile.in						delete
dist/ntp/NEWS							delete
dist/ntp/NOTES.y2kfixes						delete
dist/ntp/README							delete
dist/ntp/README.bk						delete
dist/ntp/README.hackers						delete
dist/ntp/README.patches						delete
dist/ntp/README.refclocks					delete
dist/ntp/README.versions					delete
dist/ntp/TODO							delete
dist/ntp/WHERE-TO-START						delete
dist/ntp/aclocal.m4						delete
dist/ntp/bincheck.mf						delete
dist/ntp/bootstrap						delete
dist/ntp/build							delete
dist/ntp/compile						delete
dist/ntp/config.guess						delete
dist/ntp/config.h.in						delete
dist/ntp/config.sub						delete
dist/ntp/configure						delete
dist/ntp/configure.ac						delete
dist/ntp/depcomp						delete
dist/ntp/dot.emacs						delete
dist/ntp/excludes						delete
dist/ntp/flock-build						delete
dist/ntp/install-sh						delete
dist/ntp/ltmain.sh						delete
dist/ntp/missing						delete
dist/ntp/ntp-html2mdoc.pl					delete
dist/ntp/ntp2netbsd						delete
dist/ntp/packageinfo.sh						delete
dist/ntp/readme.y2kfixes					delete
dist/ntp/results.y2kfixes					delete
dist/ntp/version						delete
dist/ntp/version.m4						delete
dist/ntp/ElectricFence/CHANGES					delete
dist/ntp/ElectricFence/COPYING					delete
dist/ntp/ElectricFence/Makefile.am				delete
dist/ntp/ElectricFence/Makefile.in				delete
dist/ntp/ElectricFence/README					delete
dist/ntp/ElectricFence/efence.c					delete
dist/ntp/ElectricFence/efence.h					delete
dist/ntp/ElectricFence/eftest.c					delete
dist/ntp/ElectricFence/libefence.3				delete
dist/ntp/ElectricFence/page.c					delete
dist/ntp/ElectricFence/print.c					delete
dist/ntp/ElectricFence/tstheap.c				delete
dist/ntp/adjtimed/Makefile.am					delete
dist/ntp/adjtimed/Makefile.in					delete
dist/ntp/adjtimed/README					delete
dist/ntp/adjtimed/adjtimed.c					delete
dist/ntp/arlib/COPYING						delete
dist/ntp/arlib/INSTALL						delete
dist/ntp/arlib/Makefile.am					delete
dist/ntp/arlib/Makefile.in					delete
dist/ntp/arlib/README						delete
dist/ntp/arlib/UNSHAR.HDR					delete
dist/ntp/arlib/aclocal.m4					delete
dist/ntp/arlib/arlib.3						delete
dist/ntp/arlib/arlib.c						delete
dist/ntp/arlib/arlib.h						delete
dist/ntp/arlib/arplib.h						delete
dist/ntp/arlib/configure					delete
dist/ntp/arlib/configure.in					delete
dist/ntp/arlib/depcomp						delete
dist/ntp/arlib/install-sh					delete
dist/ntp/arlib/missing						delete
dist/ntp/arlib/sample.c						delete
dist/ntp/clockstuff/Makefile.am					delete
dist/ntp/clockstuff/Makefile.in					delete
dist/ntp/clockstuff/README					delete
dist/ntp/clockstuff/chutest.c					delete
dist/ntp/clockstuff/clktest.c					delete
dist/ntp/clockstuff/propdelay.c					delete
dist/ntp/conf/README						delete
dist/ntp/conf/baldwin.conf					delete
dist/ntp/conf/beauregard.conf					delete
dist/ntp/conf/grundoon.conf					delete
dist/ntp/conf/malarky.conf					delete
dist/ntp/conf/pogo.conf						delete
dist/ntp/conf/rackety.conf					delete
dist/ntp/html/accopt.html					delete
dist/ntp/html/assoc.html					delete
dist/ntp/html/audio.html					delete
dist/ntp/html/authopt.html					delete
dist/ntp/html/clockopt.html					delete
dist/ntp/html/confopt.html					delete
dist/ntp/html/copyright.html					delete
dist/ntp/html/debug.html					delete
dist/ntp/html/extern.html					delete
dist/ntp/html/gadget.html					delete
dist/ntp/html/groups.html					delete
dist/ntp/html/howto.html					delete
dist/ntp/html/index.html					delete
dist/ntp/html/kern.html						delete
dist/ntp/html/keygen.html					delete
dist/ntp/html/ldisc.html					delete
dist/ntp/html/manyopt.html					delete
dist/ntp/html/measure.html					delete
dist/ntp/html/miscopt.html					delete
dist/ntp/html/monopt.html					delete
dist/ntp/html/msyslog.html					delete
dist/ntp/html/mx4200data.html					delete
dist/ntp/html/notes.html					delete
dist/ntp/html/ntp_conf.html					delete
dist/ntp/html/ntpd.html						delete
dist/ntp/html/ntpdate.html					delete
dist/ntp/html/ntpdc.html					delete
dist/ntp/html/ntpdsim.html					delete
dist/ntp/html/ntpdsim_new.html					delete
dist/ntp/html/ntpq.html						delete
dist/ntp/html/ntptime.html					delete
dist/ntp/html/ntptrace.html					delete
dist/ntp/html/parsedata.html					delete
dist/ntp/html/parsenew.html					delete
dist/ntp/html/pps.html						delete
dist/ntp/html/prefer.html					delete
dist/ntp/html/rdebug.html					delete
dist/ntp/html/refclock.html					delete
dist/ntp/html/release.html					delete
dist/ntp/html/sntp.html						delete
dist/ntp/html/tickadj.html					delete
dist/ntp/html/build/build.html					delete
dist/ntp/html/build/config.html					delete
dist/ntp/html/build/hints.html					delete
dist/ntp/html/build/patches.html				delete
dist/ntp/html/build/porting.html				delete
dist/ntp/html/build/quick.html					delete
dist/ntp/html/build/hints/a-ux					delete
dist/ntp/html/build/hints/aix					delete
dist/ntp/html/build/hints/bsdi					delete
dist/ntp/html/build/hints/changes				delete
dist/ntp/html/build/hints/decosf1				delete
dist/ntp/html/build/hints/decosf2				delete
dist/ntp/html/build/hints/freebsd				delete
dist/ntp/html/build/hints/hpux					delete
dist/ntp/html/build/hints/linux					delete
dist/ntp/html/build/hints/mpeix					delete
dist/ntp/html/build/hints/netbsd				delete
dist/ntp/html/build/hints/notes-xntp-v3				delete
dist/ntp/html/build/hints/parse					delete
dist/ntp/html/build/hints/refclocks				delete
dist/ntp/html/build/hints/rs6000				delete
dist/ntp/html/build/hints/sco.html				delete
dist/ntp/html/build/hints/sgi					delete
dist/ntp/html/build/hints/solaris-dosynctodr.html		delete
dist/ntp/html/build/hints/solaris.html				delete
dist/ntp/html/build/hints/solaris.xtra.4023118			delete
dist/ntp/html/build/hints/solaris.xtra.4095849			delete
dist/ntp/html/build/hints/solaris.xtra.S99ntpd			delete
dist/ntp/html/build/hints/solaris.xtra.patchfreq		delete
dist/ntp/html/build/hints/sun4					delete
dist/ntp/html/build/hints/svr4-dell				delete
dist/ntp/html/build/hints/svr4_package				delete
dist/ntp/html/build/hints/todo					delete
dist/ntp/html/build/hints/vxworks.html				delete
dist/ntp/html/build/hints/winnt.html				delete
dist/ntp/html/build/scripts/footer.txt				delete
dist/ntp/html/build/scripts/links10.txt				delete
dist/ntp/html/build/scripts/links11.txt				delete
dist/ntp/html/build/scripts/links12.txt				delete
dist/ntp/html/build/scripts/links7.txt				delete
dist/ntp/html/build/scripts/links8.txt				delete
dist/ntp/html/build/scripts/links9.txt				delete
dist/ntp/html/build/scripts/style.css				delete
dist/ntp/html/drivers/driver1.html				delete
dist/ntp/html/drivers/driver10.html				delete
dist/ntp/html/drivers/driver11.html				delete
dist/ntp/html/drivers/driver12.html				delete
dist/ntp/html/drivers/driver16.html				delete
dist/ntp/html/drivers/driver18.html				delete
dist/ntp/html/drivers/driver19.html				delete
dist/ntp/html/drivers/driver2.html				delete
dist/ntp/html/drivers/driver20.html				delete
dist/ntp/html/drivers/driver22.html				delete
dist/ntp/html/drivers/driver26.html				delete
dist/ntp/html/drivers/driver27.html				delete
dist/ntp/html/drivers/driver28.html				delete
dist/ntp/html/drivers/driver29.html				delete
dist/ntp/html/drivers/driver3.html				delete
dist/ntp/html/drivers/driver30.html				delete
dist/ntp/html/drivers/driver31.html				delete
dist/ntp/html/drivers/driver32.html				delete
dist/ntp/html/drivers/driver33.html				delete
dist/ntp/html/drivers/driver34.html				delete
dist/ntp/html/drivers/driver35.html				delete
dist/ntp/html/drivers/driver36.html				delete
dist/ntp/html/drivers/driver37.html				delete
dist/ntp/html/drivers/driver38.html				delete
dist/ntp/html/drivers/driver39.html				delete
dist/ntp/html/drivers/driver4.html				delete
dist/ntp/html/drivers/driver40.html				delete
dist/ntp/html/drivers/driver42.html				delete
dist/ntp/html/drivers/driver43.html				delete
dist/ntp/html/drivers/driver44.html				delete
dist/ntp/html/drivers/driver5.html				delete
dist/ntp/html/drivers/driver6.html				delete
dist/ntp/html/drivers/driver7.html				delete
dist/ntp/html/drivers/driver8.html				delete
dist/ntp/html/drivers/driver9.html				delete
dist/ntp/html/drivers/oncore-shmem.html				delete
dist/ntp/html/drivers/tf582_4.html				delete
dist/ntp/html/drivers/icons/home.gif				delete
dist/ntp/html/drivers/icons/mail2.gif				delete
dist/ntp/html/drivers/scripts/footer.txt			delete
dist/ntp/html/drivers/scripts/style.css				delete
dist/ntp/html/icons/home.gif					delete
dist/ntp/html/icons/mail2.gif					delete
dist/ntp/html/scripts/footer.txt				delete
dist/ntp/html/scripts/links10.txt				delete
dist/ntp/html/scripts/links11.txt				delete
dist/ntp/html/scripts/links12.txt				delete
dist/ntp/html/scripts/links7.txt				delete
dist/ntp/html/scripts/links8.txt				delete
dist/ntp/html/scripts/links9.txt				delete
dist/ntp/html/scripts/style.css					delete
dist/ntp/include/Makefile.am					delete
dist/ntp/include/Makefile.in					delete
dist/ntp/include/README						delete
dist/ntp/include/adjtime.h					delete
dist/ntp/include/ascii.h					delete
dist/ntp/include/audio.h					delete
dist/ntp/include/autogen-version.def				delete
dist/ntp/include/binio.h					delete
dist/ntp/include/copyright.def					delete
dist/ntp/include/debug-opt.def					delete
dist/ntp/include/global.h					delete
dist/ntp/include/gps.h						delete
dist/ntp/include/homerc.def					delete
dist/ntp/include/hopf6039.h					delete
dist/ntp/include/icom.h						delete
dist/ntp/include/ieee754io.h					delete
dist/ntp/include/iosignal.h					delete
dist/ntp/include/l_stdlib.h					delete
dist/ntp/include/mbg_gps166.h					delete
dist/ntp/include/mx4200.h					delete
dist/ntp/include/ntif.h						delete
dist/ntp/include/ntp.h						delete
dist/ntp/include/ntp_calendar.h					delete
dist/ntp/include/ntp_cmdargs.h					delete
dist/ntp/include/ntp_config.h					delete
dist/ntp/include/ntp_control.h					delete
dist/ntp/include/ntp_crypto.h					delete
dist/ntp/include/ntp_datum.h					delete
dist/ntp/include/ntp_debug.h					delete
dist/ntp/include/ntp_filegen.h					delete
dist/ntp/include/ntp_fp.h					delete
dist/ntp/include/ntp_if.h					delete
dist/ntp/include/ntp_io.h					delete
dist/ntp/include/ntp_machine.h					delete
dist/ntp/include/ntp_malloc.h					delete
dist/ntp/include/ntp_md5.h					delete
dist/ntp/include/ntp_proto.h					delete
dist/ntp/include/ntp_random.h					delete
dist/ntp/include/ntp_refclock.h					delete
dist/ntp/include/ntp_request.h					delete
dist/ntp/include/ntp_rfc2553.h					delete
dist/ntp/include/ntp_select.h					delete
dist/ntp/include/ntp_sprintf.h					delete
dist/ntp/include/ntp_stdlib.h					delete
dist/ntp/include/ntp_string.h					delete
dist/ntp/include/ntp_syscall.h					delete
dist/ntp/include/ntp_syslog.h					delete
dist/ntp/include/ntp_tty.h					delete
dist/ntp/include/ntp_types.h					delete
dist/ntp/include/ntp_unixtime.h					delete
dist/ntp/include/ntpd.h						delete
dist/ntp/include/ntpsim.h					delete
dist/ntp/include/parse.h					delete
dist/ntp/include/parse_conf.h					delete
dist/ntp/include/recvbuff.h					delete
dist/ntp/include/rsa_md5.h					delete
dist/ntp/include/timepps-SCO.h					delete
dist/ntp/include/timepps-Solaris.h				delete
dist/ntp/include/timepps-SunOS.h				delete
dist/ntp/include/trimble.h					delete
dist/ntp/include/version.def					delete
dist/ntp/include/isc/Makefile.am				delete
dist/ntp/include/isc/Makefile.in				delete
dist/ntp/include/isc/app.h					delete
dist/ntp/include/isc/assertions.h				delete
dist/ntp/include/isc/boolean.h					delete
dist/ntp/include/isc/buffer.h					delete
dist/ntp/include/isc/error.h					delete
dist/ntp/include/isc/formatcheck.h				delete
dist/ntp/include/isc/int.h					delete
dist/ntp/include/isc/interfaceiter.h				delete
dist/ntp/include/isc/ipv6.h					delete
dist/ntp/include/isc/lang.h					delete
dist/ntp/include/isc/lib.h					delete
dist/ntp/include/isc/list.h					delete
dist/ntp/include/isc/magic.h					delete
dist/ntp/include/isc/mem.h					delete
dist/ntp/include/isc/msgcat.h					delete
dist/ntp/include/isc/msgs.h					delete
dist/ntp/include/isc/mutex.h					delete
dist/ntp/include/isc/net.h					delete
dist/ntp/include/isc/netaddr.h					delete
dist/ntp/include/isc/netscope.h					delete
dist/ntp/include/isc/offset.h					delete
dist/ntp/include/isc/once.h					delete
dist/ntp/include/isc/platform.h					delete
dist/ntp/include/isc/print.h					delete
dist/ntp/include/isc/region.h					delete
dist/ntp/include/isc/result.h					delete
dist/ntp/include/isc/sockaddr.h					delete
dist/ntp/include/isc/strerror.h					delete
dist/ntp/include/isc/string.h					delete
dist/ntp/include/isc/types.h					delete
dist/ntp/include/isc/util.h					delete
dist/ntp/kernel/Makefile.am					delete
dist/ntp/kernel/Makefile.in					delete
dist/ntp/kernel/README						delete
dist/ntp/kernel/chuinit.c					delete
dist/ntp/kernel/clkinit.c					delete
dist/ntp/kernel/tty_chu.c					delete
dist/ntp/kernel/tty_chu_STREAMS.c				delete
dist/ntp/kernel/tty_clk.c					delete
dist/ntp/kernel/tty_clk_STREAMS.c				delete
dist/ntp/kernel/sys/Makefile.am					delete
dist/ntp/kernel/sys/Makefile.in					delete
dist/ntp/kernel/sys/README					delete
dist/ntp/kernel/sys/bsd_audioirig.h				delete
dist/ntp/kernel/sys/chudefs.h					delete
dist/ntp/kernel/sys/clkdefs.h					delete
dist/ntp/kernel/sys/i8253.h					delete
dist/ntp/kernel/sys/parsestreams.h				delete
dist/ntp/kernel/sys/pcl720.h					delete
dist/ntp/kernel/sys/ppsclock.h					delete
dist/ntp/kernel/sys/timex.h					delete
dist/ntp/kernel/sys/tpro.h					delete
dist/ntp/kernel/sys/tt560_api.h					delete
dist/ntp/libisc/assertions.c					delete
dist/ntp/libisc/error.c						delete
dist/ntp/libisc/ifiter_getifaddrs.c				delete
dist/ntp/libisc/ifiter_ioctl.c					delete
dist/ntp/libisc/ifiter_sysctl.c					delete
dist/ntp/libisc/inet_aton.c					delete
dist/ntp/libisc/inet_ntop.c					delete
dist/ntp/libisc/inet_pton.c					delete
dist/ntp/libisc/interfaceiter.c					delete
dist/ntp/libisc/isc_strerror.c					delete
dist/ntp/libisc/lib.c						delete
dist/ntp/libisc/mem.c						delete
dist/ntp/libisc/msgcat.c					delete
dist/ntp/libisc/net.c						delete
dist/ntp/libisc/netaddr.c					delete
dist/ntp/libisc/netscope.c					delete
dist/ntp/libisc/sockaddr.c					delete
dist/ntp/libisc/strerror.c					delete
dist/ntp/libntp/Makefile.am					delete
dist/ntp/libntp/Makefile.in					delete
dist/ntp/libntp/README						delete
dist/ntp/libntp/a_md5encrypt.c					delete
dist/ntp/libntp/adjtime.c					delete
dist/ntp/libntp/adjtimex.c					delete
dist/ntp/libntp/atoint.c					delete
dist/ntp/libntp/atolfp.c					delete
dist/ntp/libntp/atouint.c					delete
dist/ntp/libntp/audio.c						delete
dist/ntp/libntp/authkeys.c					delete
dist/ntp/libntp/authreadkeys.c					delete
dist/ntp/libntp/authusekey.c					delete
dist/ntp/libntp/buftvtots.c					delete
dist/ntp/libntp/caljulian.c					delete
dist/ntp/libntp/caltontp.c					delete
dist/ntp/libntp/calyearstart.c					delete
dist/ntp/libntp/clocktime.c					delete
dist/ntp/libntp/clocktypes.c					delete
dist/ntp/libntp/decodenetnum.c					delete
dist/ntp/libntp/dofptoa.c					delete
dist/ntp/libntp/dolfptoa.c					delete
dist/ntp/libntp/emalloc.c					delete
dist/ntp/libntp/findconfig.c					delete
dist/ntp/libntp/fptoa.c						delete
dist/ntp/libntp/fptoms.c					delete
dist/ntp/libntp/getopt.c					delete
dist/ntp/libntp/hextoint.c					delete
dist/ntp/libntp/hextolfp.c					delete
dist/ntp/libntp/humandate.c					delete
dist/ntp/libntp/icom.c						delete
dist/ntp/libntp/inttoa.c					delete
dist/ntp/libntp/iosignal.c					delete
dist/ntp/libntp/lib_strbuf.c					delete
dist/ntp/libntp/lib_strbuf.h					delete
dist/ntp/libntp/machines.c					delete
dist/ntp/libntp/md5c.c						delete
dist/ntp/libntp/memmove.c					delete
dist/ntp/libntp/mfptoa.c					delete
dist/ntp/libntp/mfptoms.c					delete
dist/ntp/libntp/mktime.c					delete
dist/ntp/libntp/modetoa.c					delete
dist/ntp/libntp/mstolfp.c					delete
dist/ntp/libntp/msutotsf.c					delete
dist/ntp/libntp/msyslog.c					delete
dist/ntp/libntp/netof.c						delete
dist/ntp/libntp/ntp_random.c					delete
dist/ntp/libntp/ntp_rfc2553.c					delete
dist/ntp/libntp/numtoa.c					delete
dist/ntp/libntp/numtohost.c					delete
dist/ntp/libntp/octtoint.c					delete
dist/ntp/libntp/prettydate.c					delete
dist/ntp/libntp/recvbuff.c					delete
dist/ntp/libntp/refnumtoa.c					delete
dist/ntp/libntp/snprintf.c					delete
dist/ntp/libntp/socktoa.c					delete
dist/ntp/libntp/socktohost.c					delete
dist/ntp/libntp/statestr.c					delete
dist/ntp/libntp/strdup.c					delete
dist/ntp/libntp/strerror.c					delete
dist/ntp/libntp/strstr.c					delete
dist/ntp/libntp/syssignal.c					delete
dist/ntp/libntp/systime.c					delete
dist/ntp/libntp/systime_s.c					delete
dist/ntp/libntp/tsftomsu.c					delete
dist/ntp/libntp/tstotv.c					delete
dist/ntp/libntp/tvtoa.c						delete
dist/ntp/libntp/tvtots.c					delete
dist/ntp/libntp/uglydate.c					delete
dist/ntp/libntp/uinttoa.c					delete
dist/ntp/libntp/utvtoa.c					delete
dist/ntp/libntp/ymd2yd.c					delete
dist/ntp/libopts/COPYING.lgpl					delete
dist/ntp/libopts/COPYING.mbsd					delete
dist/ntp/libopts/MakeDefs.inc					delete
dist/ntp/libopts/Makefile.am					delete
dist/ntp/libopts/Makefile.in					delete
dist/ntp/libopts/README						delete
dist/ntp/libopts/autoopts.c					delete
dist/ntp/libopts/autoopts.h					delete
dist/ntp/libopts/boolean.c					delete
dist/ntp/libopts/configfile.c					delete
dist/ntp/libopts/cook.c						delete
dist/ntp/libopts/enumeration.c					delete
dist/ntp/libopts/environment.c					delete
dist/ntp/libopts/genshell.c					delete
dist/ntp/libopts/genshell.h					delete
dist/ntp/libopts/libopts.c					delete
dist/ntp/libopts/load.c						delete
dist/ntp/libopts/makeshell.c					delete
dist/ntp/libopts/nested.c					delete
dist/ntp/libopts/numeric.c					delete
dist/ntp/libopts/pgusage.c					delete
dist/ntp/libopts/proto.h					delete
dist/ntp/libopts/putshell.c					delete
dist/ntp/libopts/restore.c					delete
dist/ntp/libopts/save.c						delete
dist/ntp/libopts/sort.c						delete
dist/ntp/libopts/stack.c					delete
dist/ntp/libopts/streqvcmp.c					delete
dist/ntp/libopts/text_mmap.c					delete
dist/ntp/libopts/tokenize.c					delete
dist/ntp/libopts/usage.c					delete
dist/ntp/libopts/version.c					delete
dist/ntp/libopts/autoopts/options.h				delete
dist/ntp/libopts/autoopts/usage-txt.h				delete
dist/ntp/libopts/compat/compat.h				delete
dist/ntp/libopts/compat/pathfind.c				delete
dist/ntp/libopts/compat/snprintf.c				delete
dist/ntp/libopts/compat/strchr.c				delete
dist/ntp/libopts/compat/strdup.c				delete
dist/ntp/libopts/compat/windows-config.h			delete
dist/ntp/libopts/m4/libopts.m4					delete
dist/ntp/libopts/m4/liboptschk.m4				delete
dist/ntp/libparse/Makefile.am					delete
dist/ntp/libparse/Makefile.in					delete
dist/ntp/libparse/README					delete
dist/ntp/libparse/binio.c					delete
dist/ntp/libparse/clk_computime.c				delete
dist/ntp/libparse/clk_dcf7000.c					delete
dist/ntp/libparse/clk_hopf6021.c				delete
dist/ntp/libparse/clk_meinberg.c				delete
dist/ntp/libparse/clk_rawdcf.c					delete
dist/ntp/libparse/clk_rcc8000.c					delete
dist/ntp/libparse/clk_schmid.c					delete
dist/ntp/libparse/clk_trimtaip.c				delete
dist/ntp/libparse/clk_trimtsip.c				delete
dist/ntp/libparse/clk_varitext.c				delete
dist/ntp/libparse/clk_wharton.c					delete
dist/ntp/libparse/data_mbg.c					delete
dist/ntp/libparse/gpstolfp.c					delete
dist/ntp/libparse/ieee754io.c					delete
dist/ntp/libparse/info_trimble.c				delete
dist/ntp/libparse/mfp_mul.c					delete
dist/ntp/libparse/mkinfo_rcmd.sed				delete
dist/ntp/libparse/mkinfo_scmd.sed				delete
dist/ntp/libparse/parse.c					delete
dist/ntp/libparse/parse_conf.c					delete
dist/ntp/libparse/parsesolaris.c				delete
dist/ntp/libparse/parsestreams.c				delete
dist/ntp/libparse/trim_info.c					delete
dist/ntp/m4/define_dir.m4					delete
dist/ntp/m4/hs_ulong_const.m4					delete
dist/ntp/m4/os_cflags.m4					delete
dist/ntp/ntpd/Makefile.am					delete
dist/ntp/ntpd/Makefile.in					delete
dist/ntp/ntpd/check_y2k.c					delete
dist/ntp/ntpd/cmd_args.c					delete
dist/ntp/ntpd/jupiter.h						delete
dist/ntp/ntpd/ntp_config.c					delete
dist/ntp/ntpd/ntp_control.c					delete
dist/ntp/ntpd/ntp_crypto.c					delete
dist/ntp/ntpd/ntp_filegen.c					delete
dist/ntp/ntpd/ntp_intres.c					delete
dist/ntp/ntpd/ntp_io.c						delete
dist/ntp/ntpd/ntp_loopfilter.c					delete
dist/ntp/ntpd/ntp_monitor.c					delete
dist/ntp/ntpd/ntp_peer.c					delete
dist/ntp/ntpd/ntp_proto.c					delete
dist/ntp/ntpd/ntp_refclock.c					delete
dist/ntp/ntpd/ntp_request.c					delete
dist/ntp/ntpd/ntp_restrict.c					delete
dist/ntp/ntpd/ntp_timer.c					delete
dist/ntp/ntpd/ntp_util.c					delete
dist/ntp/ntpd/ntpd-opts.c					delete
dist/ntp/ntpd/ntpd-opts.def					delete
dist/ntp/ntpd/ntpd-opts.h					delete
dist/ntp/ntpd/ntpd-opts.menu					delete
dist/ntp/ntpd/ntpd-opts.texi					delete
dist/ntp/ntpd/ntpd.1						delete
dist/ntp/ntpd/ntpd.c						delete
dist/ntp/ntpd/ntpdbase-opts.def					delete
dist/ntp/ntpd/ntpdsim-opts.c					delete
dist/ntp/ntpd/ntpdsim-opts.def					delete
dist/ntp/ntpd/ntpdsim-opts.h					delete
dist/ntp/ntpd/ntpdsim-opts.menu					delete
dist/ntp/ntpd/ntpdsim-opts.texi					delete
dist/ntp/ntpd/ntpdsim.1						delete
dist/ntp/ntpd/ntpsim.c						delete
dist/ntp/ntpd/ppsapi_timepps.h					delete
dist/ntp/ntpd/refclock_acts.c					delete
dist/ntp/ntpd/refclock_arbiter.c				delete
dist/ntp/ntpd/refclock_arc.c					delete
dist/ntp/ntpd/refclock_as2201.c					delete
dist/ntp/ntpd/refclock_atom.c					delete
dist/ntp/ntpd/refclock_bancomm.c				delete
dist/ntp/ntpd/refclock_chronolog.c				delete
dist/ntp/ntpd/refclock_chu.c					delete
dist/ntp/ntpd/refclock_conf.c					delete
dist/ntp/ntpd/refclock_datum.c					delete
dist/ntp/ntpd/refclock_dumbclock.c				delete
dist/ntp/ntpd/refclock_fg.c					delete
dist/ntp/ntpd/refclock_gpsvme.c					delete
dist/ntp/ntpd/refclock_heath.c					delete
dist/ntp/ntpd/refclock_hopfpci.c				delete
dist/ntp/ntpd/refclock_hopfser.c				delete
dist/ntp/ntpd/refclock_hpgps.c					delete
dist/ntp/ntpd/refclock_irig.c					delete
dist/ntp/ntpd/refclock_jjy.c					delete
dist/ntp/ntpd/refclock_jupiter.c				delete
dist/ntp/ntpd/refclock_leitch.c					delete
dist/ntp/ntpd/refclock_local.c					delete
dist/ntp/ntpd/refclock_msfees.c					delete
dist/ntp/ntpd/refclock_mx4200.c					delete
dist/ntp/ntpd/refclock_neoclock4x.c				delete
dist/ntp/ntpd/refclock_nmea.c					delete
dist/ntp/ntpd/refclock_oncore.c					delete
dist/ntp/ntpd/refclock_palisade.c				delete
dist/ntp/ntpd/refclock_palisade.h				delete
dist/ntp/ntpd/refclock_parse.c					delete
dist/ntp/ntpd/refclock_pcf.c					delete
dist/ntp/ntpd/refclock_pst.c					delete
dist/ntp/ntpd/refclock_ripencc.c				delete
dist/ntp/ntpd/refclock_shm.c					delete
dist/ntp/ntpd/refclock_tpro.c					delete
dist/ntp/ntpd/refclock_trak.c					delete
dist/ntp/ntpd/refclock_true.c					delete
dist/ntp/ntpd/refclock_tt560.c					delete
dist/ntp/ntpd/refclock_ulink.c					delete
dist/ntp/ntpd/refclock_wwv.c					delete
dist/ntp/ntpd/refclock_wwvb.c					delete
dist/ntp/ntpd/refclock_zyfer.c					delete
dist/ntp/ntpdate/Makefile.am					delete
dist/ntp/ntpdate/Makefile.in					delete
dist/ntp/ntpdate/README						delete
dist/ntp/ntpdate/ntpdate.c					delete
dist/ntp/ntpdate/ntpdate.h					delete
dist/ntp/ntpdate/ntptime_config.c				delete
dist/ntp/ntpdate/ntptimeset.c					delete
dist/ntp/ntpdc/Makefile.am					delete
dist/ntp/ntpdc/Makefile.in					delete
dist/ntp/ntpdc/README						delete
dist/ntp/ntpdc/layout.std					delete
dist/ntp/ntpdc/nl.pl						delete
dist/ntp/ntpdc/nl.pl.in						delete
dist/ntp/ntpdc/nl_in.c						delete
dist/ntp/ntpdc/ntpdc-layout.c					delete
dist/ntp/ntpdc/ntpdc-opts.c					delete
dist/ntp/ntpdc/ntpdc-opts.def					delete
dist/ntp/ntpdc/ntpdc-opts.h					delete
dist/ntp/ntpdc/ntpdc-opts.menu					delete
dist/ntp/ntpdc/ntpdc-opts.texi					delete
dist/ntp/ntpdc/ntpdc.1						delete
dist/ntp/ntpdc/ntpdc.c						delete
dist/ntp/ntpdc/ntpdc.h						delete
dist/ntp/ntpdc/ntpdc_ops.c					delete
dist/ntp/ntpq/Makefile.am					delete
dist/ntp/ntpq/Makefile.in					delete
dist/ntp/ntpq/README						delete
dist/ntp/ntpq/ntpq-opts.c					delete
dist/ntp/ntpq/ntpq-opts.def					delete
dist/ntp/ntpq/ntpq-opts.h					delete
dist/ntp/ntpq/ntpq-opts.menu					delete
dist/ntp/ntpq/ntpq-opts.texi					delete
dist/ntp/ntpq/ntpq-subs.c					delete
dist/ntp/ntpq/ntpq.1						delete
dist/ntp/ntpq/ntpq.c						delete
dist/ntp/ntpq/ntpq.h						delete
dist/ntp/parseutil/Makefile.am					delete
dist/ntp/parseutil/Makefile.in					delete
dist/ntp/parseutil/README					delete
dist/ntp/parseutil/dcfd.c					delete
dist/ntp/parseutil/testdcf.c					delete
dist/ntp/scripts/Makefile.am					delete
dist/ntp/scripts/Makefile.in					delete
dist/ntp/scripts/README						delete
dist/ntp/scripts/VersionName					delete
dist/ntp/scripts/calc_tickadj.in				delete
dist/ntp/scripts/checktime.in					delete
dist/ntp/scripts/fixautomakedepsmagic				delete
dist/ntp/scripts/freq_adj.in					delete
dist/ntp/scripts/genCommitLog					delete
dist/ntp/scripts/genver						delete
dist/ntp/scripts/hpadjtime.sh					delete
dist/ntp/scripts/html2man.in					delete
dist/ntp/scripts/mkver.in					delete
dist/ntp/scripts/ntp-close					delete
dist/ntp/scripts/ntp-groper					delete
dist/ntp/scripts/ntp-restart					delete
dist/ntp/scripts/ntp-status					delete
dist/ntp/scripts/ntp-wait.in					delete
dist/ntp/scripts/ntpsweep.in					delete
dist/ntp/scripts/ntptrace.in					delete
dist/ntp/scripts/ntpver.in					delete
dist/ntp/scripts/plot_summary.in				delete
dist/ntp/scripts/summary.in					delete
dist/ntp/scripts/monitoring/README				delete
dist/ntp/scripts/monitoring/loopwatch.config.SAMPLE		delete
dist/ntp/scripts/monitoring/lr.pl				delete
dist/ntp/scripts/monitoring/ntp.pl				delete
dist/ntp/scripts/monitoring/ntploopstat				delete
dist/ntp/scripts/monitoring/ntploopwatch			delete
dist/ntp/scripts/monitoring/ntptrap				delete
dist/ntp/scripts/monitoring/timelocal.pl			delete
dist/ntp/scripts/rc1/postinstall				delete
dist/ntp/scripts/rc1/preinstall					delete
dist/ntp/scripts/rc1/preremove					delete
dist/ntp/scripts/rc1/prototype					delete
dist/ntp/scripts/rc1/xntp					delete
dist/ntp/scripts/rc2/local.ntpd					delete
dist/ntp/scripts/stats/README					delete
dist/ntp/scripts/stats/README.stats				delete
dist/ntp/scripts/stats/README.timecodes				delete
dist/ntp/scripts/stats/clock.awk				delete
dist/ntp/scripts/stats/dupe.awk					delete
dist/ntp/scripts/stats/ensemble.S				delete
dist/ntp/scripts/stats/ensemble.awk				delete
dist/ntp/scripts/stats/etf.S					delete
dist/ntp/scripts/stats/etf.awk					delete
dist/ntp/scripts/stats/itf.S					delete
dist/ntp/scripts/stats/itf.awk					delete
dist/ntp/scripts/stats/loop.S					delete
dist/ntp/scripts/stats/loop.awk					delete
dist/ntp/scripts/stats/loop_summary				delete
dist/ntp/scripts/stats/peer.awk					delete
dist/ntp/scripts/stats/psummary.awk				delete
dist/ntp/scripts/stats/summary.sh				delete
dist/ntp/scripts/stats/tdata.S					delete
dist/ntp/scripts/stats/tdata.awk				delete
dist/ntp/sntp/COPYRIGHT						delete
dist/ntp/sntp/Makefile.am					delete
dist/ntp/sntp/Makefile.in					delete
dist/ntp/sntp/README						delete
dist/ntp/sntp/aclocal.m4					delete
dist/ntp/sntp/autogen-version.def				delete
dist/ntp/sntp/bincheck.mf					delete
dist/ntp/sntp/compile						delete
dist/ntp/sntp/config.guess					delete
dist/ntp/sntp/config.h.in					delete
dist/ntp/sntp/config.sub					delete
dist/ntp/sntp/configure						delete
dist/ntp/sntp/configure.ac					delete
dist/ntp/sntp/depcomp						delete
dist/ntp/sntp/header.h						delete
dist/ntp/sntp/install-sh					delete
dist/ntp/sntp/internet.c					delete
dist/ntp/sntp/internet.h					delete
dist/ntp/sntp/kludges.h						delete
dist/ntp/sntp/ltmain.sh						delete
dist/ntp/sntp/main.c						delete
dist/ntp/sntp/missing						delete
dist/ntp/sntp/sntp-opts.c					delete
dist/ntp/sntp/sntp-opts.def					delete
dist/ntp/sntp/sntp-opts.h					delete
dist/ntp/sntp/sntp-opts.menu					delete
dist/ntp/sntp/sntp-opts.texi					delete
dist/ntp/sntp/sntp.1						delete
dist/ntp/sntp/socket.c						delete
dist/ntp/sntp/timing.c						delete
dist/ntp/sntp/unix.c						delete
dist/ntp/sntp/version.def					delete
dist/ntp/sntp/libopts/COPYING.lgpl				delete
dist/ntp/sntp/libopts/COPYING.mbsd				delete
dist/ntp/sntp/libopts/MakeDefs.inc				delete
dist/ntp/sntp/libopts/Makefile.am				delete
dist/ntp/sntp/libopts/Makefile.in				delete
dist/ntp/sntp/libopts/README					delete
dist/ntp/sntp/libopts/autoopts.c				delete
dist/ntp/sntp/libopts/autoopts.h				delete
dist/ntp/sntp/libopts/boolean.c					delete
dist/ntp/sntp/libopts/configfile.c				delete
dist/ntp/sntp/libopts/cook.c					delete
dist/ntp/sntp/libopts/enumeration.c				delete
dist/ntp/sntp/libopts/environment.c				delete
dist/ntp/sntp/libopts/genshell.c				delete
dist/ntp/sntp/libopts/genshell.h				delete
dist/ntp/sntp/libopts/libopts.c					delete
dist/ntp/sntp/libopts/load.c					delete
dist/ntp/sntp/libopts/makeshell.c				delete
dist/ntp/sntp/libopts/nested.c					delete
dist/ntp/sntp/libopts/numeric.c					delete
dist/ntp/sntp/libopts/pgusage.c					delete
dist/ntp/sntp/libopts/proto.h					delete
dist/ntp/sntp/libopts/putshell.c				delete
dist/ntp/sntp/libopts/restore.c					delete
dist/ntp/sntp/libopts/save.c					delete
dist/ntp/sntp/libopts/sort.c					delete
dist/ntp/sntp/libopts/stack.c					delete
dist/ntp/sntp/libopts/streqvcmp.c				delete
dist/ntp/sntp/libopts/text_mmap.c				delete
dist/ntp/sntp/libopts/tokenize.c				delete
dist/ntp/sntp/libopts/usage.c					delete
dist/ntp/sntp/libopts/version.c					delete
dist/ntp/sntp/libopts/autoopts/options.h			delete
dist/ntp/sntp/libopts/autoopts/usage-txt.h			delete
dist/ntp/sntp/libopts/compat/compat.h				delete
dist/ntp/sntp/libopts/compat/pathfind.c				delete
dist/ntp/sntp/libopts/compat/snprintf.c				delete
dist/ntp/sntp/libopts/compat/strchr.c				delete
dist/ntp/sntp/libopts/compat/strdup.c				delete
dist/ntp/sntp/libopts/compat/windows-config.h			delete
dist/ntp/sntp/libopts/m4/libopts.m4				delete
dist/ntp/sntp/libopts/m4/liboptschk.m4				delete
dist/ntp/util/Makefile.am					delete
dist/ntp/util/Makefile.in					delete
dist/ntp/util/README						delete
dist/ntp/util/ansi2knr.1					delete
dist/ntp/util/ansi2knr.c					delete
dist/ntp/util/audio-pcm.c					delete
dist/ntp/util/byteorder.c					delete
dist/ntp/util/hist.c						delete
dist/ntp/util/jitter.c						delete
dist/ntp/util/jitter.h						delete
dist/ntp/util/kern.c						delete
dist/ntp/util/longsize.c					delete
dist/ntp/util/ntp-keygen-opts.c					delete
dist/ntp/util/ntp-keygen-opts.def				delete
dist/ntp/util/ntp-keygen-opts.h					delete
dist/ntp/util/ntp-keygen-opts.menu				delete
dist/ntp/util/ntp-keygen-opts.texi				delete
dist/ntp/util/ntp-keygen.1					delete
dist/ntp/util/ntp-keygen.c					delete
dist/ntp/util/ntptime.c						delete
dist/ntp/util/pps-api.c						delete
dist/ntp/util/precision.c					delete
dist/ntp/util/sht.c						delete
dist/ntp/util/testrs6000.c					delete
dist/ntp/util/tg.c						delete
dist/ntp/util/tickadj.c						delete
dist/ntp/util/timetrim.c					delete
distrib/sets/lists/man/mi					patch
distrib/sets/lists/misc/mi					patch
external/bsd/Makefile						patch
external/bsd/ntp/Makefile					new
external/bsd/ntp/Makefile.inc					new
external/bsd/ntp/importdate					new
external/bsd/ntp/ntp2netbsd					new
external/bsd/ntp/bin/Makefile					new
external/bsd/ntp/bin/Makefile.inc				new
external/bsd/ntp/bin/ntp-keygen/Makefile			new
external/bsd/ntp/bin/ntp-keygen/ntp-keygen.8			new
external/bsd/ntp/bin/ntpd/Makefile				new
external/bsd/ntp/bin/ntpd/ntp.conf.5				new
external/bsd/ntp/bin/ntpd/ntp.keys.5				new
external/bsd/ntp/bin/ntpd/ntpd.8				new
external/bsd/ntp/bin/ntpdate/Makefile				new
external/bsd/ntp/bin/ntpdate/ntpdate.8				new
external/bsd/ntp/bin/ntpdc/Makefile				new
external/bsd/ntp/bin/ntpdc/ntpdc.8				new
external/bsd/ntp/bin/ntpq/Makefile				new
external/bsd/ntp/bin/ntpq/ntpq.8				new
external/bsd/ntp/bin/ntptime/Makefile				new
external/bsd/ntp/bin/ntptime/ntptime.8				new
external/bsd/ntp/bin/ntptrace/Makefile				new
external/bsd/ntp/bin/ntptrace/ntptrace.8			new
external/bsd/ntp/bin/ntptrace/ntptrace.awk			new
external/bsd/ntp/bin/sntp/Makefile				new
external/bsd/ntp/bin/sntp/sntp.1				new
external/bsd/ntp/dist/COPYRIGHT					new
external/bsd/ntp/dist/ChangeLog					new
external/bsd/ntp/dist/CommitLog					new
external/bsd/ntp/dist/CommitLog-4.1.0				new
external/bsd/ntp/dist/INSTALL					new
external/bsd/ntp/dist/Makefile.am				new
external/bsd/ntp/dist/Makefile.in				new
external/bsd/ntp/dist/NEWS					new
external/bsd/ntp/dist/NOTES.y2kfixes				new
external/bsd/ntp/dist/README					new
external/bsd/ntp/dist/README.bk					new
external/bsd/ntp/dist/README.hackers				new
external/bsd/ntp/dist/README.patches				new
external/bsd/ntp/dist/README.refclocks				new
external/bsd/ntp/dist/README.versions				new
external/bsd/ntp/dist/TODO					new
external/bsd/ntp/dist/WHERE-TO-START				new
external/bsd/ntp/dist/aclocal.m4				new
external/bsd/ntp/dist/bincheck.mf				new
external/bsd/ntp/dist/bootstrap					new
external/bsd/ntp/dist/build					new
external/bsd/ntp/dist/check-libopts.mf				new
external/bsd/ntp/dist/config.h.in				new
external/bsd/ntp/dist/configure					new
external/bsd/ntp/dist/configure.ac				new
external/bsd/ntp/dist/deps-ver					new
external/bsd/ntp/dist/depsver.mf				new
external/bsd/ntp/dist/dot.emacs					new
external/bsd/ntp/dist/flock-build				new
external/bsd/ntp/dist/includes.mf				new
external/bsd/ntp/dist/install-sh				new
external/bsd/ntp/dist/packageinfo.sh				new
external/bsd/ntp/dist/readme.y2kfixes				new
external/bsd/ntp/dist/results.y2kfixes				new
external/bsd/ntp/dist/adjtimed/Makefile.am			new
external/bsd/ntp/dist/adjtimed/Makefile.in			new
external/bsd/ntp/dist/adjtimed/README				new
external/bsd/ntp/dist/adjtimed/adjtimed.c			new
external/bsd/ntp/dist/clockstuff/Makefile.am			new
external/bsd/ntp/dist/clockstuff/Makefile.in			new
external/bsd/ntp/dist/clockstuff/README				new
external/bsd/ntp/dist/clockstuff/chutest.c			new
external/bsd/ntp/dist/clockstuff/propdelay.c			new
external/bsd/ntp/dist/conf/README				new
external/bsd/ntp/dist/conf/baldwin.conf				new
external/bsd/ntp/dist/conf/beauregard.conf			new
external/bsd/ntp/dist/conf/grundoon.conf			new
external/bsd/ntp/dist/conf/malarky.conf				new
external/bsd/ntp/dist/conf/pogo.conf				new
external/bsd/ntp/dist/conf/rackety.conf				new
external/bsd/ntp/dist/html/access.html				new
external/bsd/ntp/dist/html/accopt.html				new
external/bsd/ntp/dist/html/assoc.html				new
external/bsd/ntp/dist/html/audio.html				new
external/bsd/ntp/dist/html/authentic.html			new
external/bsd/ntp/dist/html/authopt.html				new
external/bsd/ntp/dist/html/autokey.html				new
external/bsd/ntp/dist/html/bugs.html				new
external/bsd/ntp/dist/html/build.html				new
external/bsd/ntp/dist/html/clock.html				new
external/bsd/ntp/dist/html/clockopt.html			new
external/bsd/ntp/dist/html/cluster.html				new
external/bsd/ntp/dist/html/comdex.html				new
external/bsd/ntp/dist/html/config.html				new
external/bsd/ntp/dist/html/confopt.html				new
external/bsd/ntp/dist/html/copyright.html			new
external/bsd/ntp/dist/html/debug.html				new
external/bsd/ntp/dist/html/decode.html				new
external/bsd/ntp/dist/html/discipline.html			new
external/bsd/ntp/dist/html/discover.html			new
external/bsd/ntp/dist/html/extern.html				new
external/bsd/ntp/dist/html/filter.html				new
external/bsd/ntp/dist/html/hints.html				new
external/bsd/ntp/dist/html/history.html				new
external/bsd/ntp/dist/html/howto.html				new
external/bsd/ntp/dist/html/huffpuff.html			new
external/bsd/ntp/dist/html/index.html				new
external/bsd/ntp/dist/html/kern.html				new
external/bsd/ntp/dist/html/kernpps.html				new
external/bsd/ntp/dist/html/keygen.html				new
external/bsd/ntp/dist/html/leap.html				new
external/bsd/ntp/dist/html/miscopt.html				new
external/bsd/ntp/dist/html/monopt.html				new
external/bsd/ntp/dist/html/msyslog.html				new
external/bsd/ntp/dist/html/ntp-wait.html			new
external/bsd/ntp/dist/html/ntp_conf.html			new
external/bsd/ntp/dist/html/ntpd.html				new
external/bsd/ntp/dist/html/ntpdate.html				new
external/bsd/ntp/dist/html/ntpdc.html				new
external/bsd/ntp/dist/html/ntpdsim.html				new
external/bsd/ntp/dist/html/ntpdsim_new.html			new
external/bsd/ntp/dist/html/ntpq.html				new
external/bsd/ntp/dist/html/ntptime.html				new
external/bsd/ntp/dist/html/ntptrace.html			new
external/bsd/ntp/dist/html/orphan.html				new
external/bsd/ntp/dist/html/parsedata.html			new
external/bsd/ntp/dist/html/parsenew.html			new
external/bsd/ntp/dist/html/poll.html				new
external/bsd/ntp/dist/html/pps.html				new
external/bsd/ntp/dist/html/prefer.html				new
external/bsd/ntp/dist/html/quick.html				new
external/bsd/ntp/dist/html/rate.html				new
external/bsd/ntp/dist/html/rdebug.html				new
external/bsd/ntp/dist/html/refclock.html			new
external/bsd/ntp/dist/html/release.html				new
external/bsd/ntp/dist/html/select.html				new
external/bsd/ntp/dist/html/sitemap.html				new
external/bsd/ntp/dist/html/sntp.html				new
external/bsd/ntp/dist/html/stats.html				new
external/bsd/ntp/dist/html/tickadj.html				new
external/bsd/ntp/dist/html/warp.html				new
external/bsd/ntp/dist/html/xleave.html				new
external/bsd/ntp/dist/html/drivers/driver1.html			new
external/bsd/ntp/dist/html/drivers/driver10.html		new
external/bsd/ntp/dist/html/drivers/driver11.html		new
external/bsd/ntp/dist/html/drivers/driver12.html		new
external/bsd/ntp/dist/html/drivers/driver16.html		new
external/bsd/ntp/dist/html/drivers/driver18.html		new
external/bsd/ntp/dist/html/drivers/driver19.html		new
external/bsd/ntp/dist/html/drivers/driver20.html		new
external/bsd/ntp/dist/html/drivers/driver22.html		new
external/bsd/ntp/dist/html/drivers/driver26.html		new
external/bsd/ntp/dist/html/drivers/driver27.html		new
external/bsd/ntp/dist/html/drivers/driver28.html		new
external/bsd/ntp/dist/html/drivers/driver29.html		new
external/bsd/ntp/dist/html/drivers/driver3.html			new
external/bsd/ntp/dist/html/drivers/driver30.html		new
external/bsd/ntp/dist/html/drivers/driver31.html		new
external/bsd/ntp/dist/html/drivers/driver32.html		new
external/bsd/ntp/dist/html/drivers/driver33.html		new
external/bsd/ntp/dist/html/drivers/driver34.html		new
external/bsd/ntp/dist/html/drivers/driver35.html		new
external/bsd/ntp/dist/html/drivers/driver36.html		new
external/bsd/ntp/dist/html/drivers/driver37.html		new
external/bsd/ntp/dist/html/drivers/driver38.html		new
external/bsd/ntp/dist/html/drivers/driver39.html		new
external/bsd/ntp/dist/html/drivers/driver4.html			new
external/bsd/ntp/dist/html/drivers/driver40.html		new
external/bsd/ntp/dist/html/drivers/driver42.html		new
external/bsd/ntp/dist/html/drivers/driver43.html		new
external/bsd/ntp/dist/html/drivers/driver44.html		new
external/bsd/ntp/dist/html/drivers/driver45.html		new
external/bsd/ntp/dist/html/drivers/driver46.html		new
external/bsd/ntp/dist/html/drivers/driver5.html			new
external/bsd/ntp/dist/html/drivers/driver6.html			new
external/bsd/ntp/dist/html/drivers/driver7.html			new
external/bsd/ntp/dist/html/drivers/driver8.html			new
external/bsd/ntp/dist/html/drivers/driver9.html			new
external/bsd/ntp/dist/html/drivers/mx4200data.html		new
external/bsd/ntp/dist/html/drivers/oncore-shmem.html		new
external/bsd/ntp/dist/html/drivers/tf582_4.html			new
external/bsd/ntp/dist/html/drivers/icons/home.gif		new
external/bsd/ntp/dist/html/drivers/icons/mail2.gif		new
external/bsd/ntp/dist/html/drivers/scripts/footer.txt		new
external/bsd/ntp/dist/html/drivers/scripts/style.css		new
external/bsd/ntp/dist/html/hints/a-ux				new
external/bsd/ntp/dist/html/hints/aix				new
external/bsd/ntp/dist/html/hints/bsdi				new
external/bsd/ntp/dist/html/hints/changes			new
external/bsd/ntp/dist/html/hints/decosf1			new
external/bsd/ntp/dist/html/hints/decosf2			new
external/bsd/ntp/dist/html/hints/freebsd			new
external/bsd/ntp/dist/html/hints/hpux				new
external/bsd/ntp/dist/html/hints/linux				new
external/bsd/ntp/dist/html/hints/mpeix				new
external/bsd/ntp/dist/html/hints/notes-xntp-v3			new
external/bsd/ntp/dist/html/hints/parse				new
external/bsd/ntp/dist/html/hints/refclocks			new
external/bsd/ntp/dist/html/hints/rs6000				new
external/bsd/ntp/dist/html/hints/sco.html			new
external/bsd/ntp/dist/html/hints/sgi				new
external/bsd/ntp/dist/html/hints/solaris-dosynctodr.html	new
external/bsd/ntp/dist/html/hints/solaris.html			new
external/bsd/ntp/dist/html/hints/solaris.xtra.4023118		new
external/bsd/ntp/dist/html/hints/solaris.xtra.4095849		new
external/bsd/ntp/dist/html/hints/solaris.xtra.S99ntpd		new
external/bsd/ntp/dist/html/hints/solaris.xtra.patchfreq		new
external/bsd/ntp/dist/html/hints/sun4				new
external/bsd/ntp/dist/html/hints/svr4-dell			new
external/bsd/ntp/dist/html/hints/svr4_package			new
external/bsd/ntp/dist/html/hints/todo				new
external/bsd/ntp/dist/html/hints/vxworks.html			new
external/bsd/ntp/dist/html/hints/winnt.html			new
external/bsd/ntp/dist/html/icons/home.gif			new
external/bsd/ntp/dist/html/icons/mail2.gif			new
external/bsd/ntp/dist/html/icons/sitemap.png			new
external/bsd/ntp/dist/html/scripts/accopt.txt			new
external/bsd/ntp/dist/html/scripts/audio.txt			new
external/bsd/ntp/dist/html/scripts/authopt.txt			new
external/bsd/ntp/dist/html/scripts/clockopt.txt			new
external/bsd/ntp/dist/html/scripts/command.txt			new
external/bsd/ntp/dist/html/scripts/config.txt			new
external/bsd/ntp/dist/html/scripts/confopt.txt			new
external/bsd/ntp/dist/html/scripts/external.txt			new
external/bsd/ntp/dist/html/scripts/footer.txt			new
external/bsd/ntp/dist/html/scripts/hand.txt			new
external/bsd/ntp/dist/html/scripts/install.txt			new
external/bsd/ntp/dist/html/scripts/manual.txt			new
external/bsd/ntp/dist/html/scripts/misc.txt			new
external/bsd/ntp/dist/html/scripts/miscopt.txt			new
external/bsd/ntp/dist/html/scripts/monopt.txt			new
external/bsd/ntp/dist/html/scripts/refclock.txt			new
external/bsd/ntp/dist/html/scripts/special.txt			new
external/bsd/ntp/dist/html/scripts/style.css			new
external/bsd/ntp/dist/include/Makefile.am			new
external/bsd/ntp/dist/include/Makefile.in			new
external/bsd/ntp/dist/include/README				new
external/bsd/ntp/dist/include/adjtime.h				new
external/bsd/ntp/dist/include/ascii.h				new
external/bsd/ntp/dist/include/audio.h				new
external/bsd/ntp/dist/include/binio.h				new
external/bsd/ntp/dist/include/declcond.h			new
external/bsd/ntp/dist/include/gps.h				new
external/bsd/ntp/dist/include/hopf6039.h			new
external/bsd/ntp/dist/include/icom.h				new
external/bsd/ntp/dist/include/ieee754io.h			new
external/bsd/ntp/dist/include/intreswork.h			new
external/bsd/ntp/dist/include/iosignal.h			new
external/bsd/ntp/dist/include/l_stdlib.h			new
external/bsd/ntp/dist/include/lib_strbuf.h			new
external/bsd/ntp/dist/include/libntp.h				new
external/bsd/ntp/dist/include/mbg_gps166.h			new
external/bsd/ntp/dist/include/mx4200.h				new
external/bsd/ntp/dist/include/ntif.h				new
external/bsd/ntp/dist/include/ntp.h				new
external/bsd/ntp/dist/include/ntp_assert.h			new
external/bsd/ntp/dist/include/ntp_calendar.h			new
external/bsd/ntp/dist/include/ntp_cmdargs.h			new
external/bsd/ntp/dist/include/ntp_config.h			new
external/bsd/ntp/dist/include/ntp_control.h			new
external/bsd/ntp/dist/include/ntp_crypto.h			new
external/bsd/ntp/dist/include/ntp_datum.h			new
external/bsd/ntp/dist/include/ntp_debug.h			new
external/bsd/ntp/dist/include/ntp_filegen.h			new
external/bsd/ntp/dist/include/ntp_fp.h				new
external/bsd/ntp/dist/include/ntp_if.h				new
external/bsd/ntp/dist/include/ntp_intres.h			new
external/bsd/ntp/dist/include/ntp_io.h				new
external/bsd/ntp/dist/include/ntp_libopts.h			new
external/bsd/ntp/dist/include/ntp_lineedit.h			new
external/bsd/ntp/dist/include/ntp_lists.h			new
external/bsd/ntp/dist/include/ntp_machine.h			new
external/bsd/ntp/dist/include/ntp_malloc.h			new
external/bsd/ntp/dist/include/ntp_md5.h				new
external/bsd/ntp/dist/include/ntp_net.h				new
external/bsd/ntp/dist/include/ntp_prio_q.h			new
external/bsd/ntp/dist/include/ntp_proto.h			new
external/bsd/ntp/dist/include/ntp_random.h			new
external/bsd/ntp/dist/include/ntp_refclock.h			new
external/bsd/ntp/dist/include/ntp_request.h			new
external/bsd/ntp/dist/include/ntp_rfc2553.h			new
external/bsd/ntp/dist/include/ntp_select.h			new
external/bsd/ntp/dist/include/ntp_stdlib.h			new
external/bsd/ntp/dist/include/ntp_string.h			new
external/bsd/ntp/dist/include/ntp_syscall.h			new
external/bsd/ntp/dist/include/ntp_syslog.h			new
external/bsd/ntp/dist/include/ntp_tty.h				new
external/bsd/ntp/dist/include/ntp_types.h			new
external/bsd/ntp/dist/include/ntp_unixtime.h			new
external/bsd/ntp/dist/include/ntp_worker.h			new
external/bsd/ntp/dist/include/ntp_workimpl.h			new
external/bsd/ntp/dist/include/ntpd.h				new
external/bsd/ntp/dist/include/ntpsim.h				new
external/bsd/ntp/dist/include/parse.h				new
external/bsd/ntp/dist/include/parse_conf.h			new
external/bsd/ntp/dist/include/recvbuff.h			new
external/bsd/ntp/dist/include/refclock_atom.h			new
external/bsd/ntp/dist/include/ssl_applink.c			new
external/bsd/ntp/dist/include/timepps-SCO.h			new
external/bsd/ntp/dist/include/timepps-Solaris.h			new
external/bsd/ntp/dist/include/timepps-SunOS.h			new
external/bsd/ntp/dist/include/timespecops.h			new
external/bsd/ntp/dist/include/timetoa.h				new
external/bsd/ntp/dist/include/timevalops.h			new
external/bsd/ntp/dist/include/trimble.h				new
external/bsd/ntp/dist/include/vint64ops.h			new
external/bsd/ntp/dist/include/isc/Makefile.am			new
external/bsd/ntp/dist/include/isc/Makefile.in			new
external/bsd/ntp/dist/include/isc/mem.h				new
external/bsd/ntp/dist/kernel/Makefile.am			new
external/bsd/ntp/dist/kernel/Makefile.in			new
external/bsd/ntp/dist/kernel/sys/Makefile.am			new
external/bsd/ntp/dist/kernel/sys/Makefile.in			new
external/bsd/ntp/dist/kernel/sys/README				new
external/bsd/ntp/dist/kernel/sys/bsd_audioirig.h		new
external/bsd/ntp/dist/kernel/sys/i8253.h			new
external/bsd/ntp/dist/kernel/sys/parsestreams.h			new
external/bsd/ntp/dist/kernel/sys/pcl720.h			new
external/bsd/ntp/dist/kernel/sys/ppsclock.h			new
external/bsd/ntp/dist/kernel/sys/timex.h			new
external/bsd/ntp/dist/kernel/sys/tpro.h				new
external/bsd/ntp/dist/kernel/sys/tt560_api.h			new
external/bsd/ntp/dist/lib/isc/Atffile				new
external/bsd/ntp/dist/lib/isc/api				new
external/bsd/ntp/dist/lib/isc/app_api.c				new
external/bsd/ntp/dist/lib/isc/assertions.c			new
external/bsd/ntp/dist/lib/isc/backtrace-emptytbl.c		new
external/bsd/ntp/dist/lib/isc/backtrace.c			new
external/bsd/ntp/dist/lib/isc/base32.c				new
external/bsd/ntp/dist/lib/isc/base64.c				new
external/bsd/ntp/dist/lib/isc/bitstring.c			new
external/bsd/ntp/dist/lib/isc/buffer.c				new
external/bsd/ntp/dist/lib/isc/bufferlist.c			new
external/bsd/ntp/dist/lib/isc/commandline.c			new
external/bsd/ntp/dist/lib/isc/entropy.c				new
external/bsd/ntp/dist/lib/isc/error.c				new
external/bsd/ntp/dist/lib/isc/event.c				new
external/bsd/ntp/dist/lib/isc/fsaccess.c			new
external/bsd/ntp/dist/lib/isc/hash.c				new
external/bsd/ntp/dist/lib/isc/heap.c				new
external/bsd/ntp/dist/lib/isc/hex.c				new
external/bsd/ntp/dist/lib/isc/hmacmd5.c				new
external/bsd/ntp/dist/lib/isc/hmacsha.c				new
external/bsd/ntp/dist/lib/isc/httpd.c				new
external/bsd/ntp/dist/lib/isc/inet_aton.c			new
external/bsd/ntp/dist/lib/isc/inet_ntop.c			new
external/bsd/ntp/dist/lib/isc/inet_pton.c			new
external/bsd/ntp/dist/lib/isc/iterated_hash.c			new
external/bsd/ntp/dist/lib/isc/lex.c				new
external/bsd/ntp/dist/lib/isc/lfsr.c				new
external/bsd/ntp/dist/lib/isc/lib.c				new
external/bsd/ntp/dist/lib/isc/log.c				new
external/bsd/ntp/dist/lib/isc/md5.c				new
external/bsd/ntp/dist/lib/isc/mem.c				new
external/bsd/ntp/dist/lib/isc/mem_api.c				new
external/bsd/ntp/dist/lib/isc/mutexblock.c			new
external/bsd/ntp/dist/lib/isc/netaddr.c				new
external/bsd/ntp/dist/lib/isc/netscope.c			new
external/bsd/ntp/dist/lib/isc/ondestroy.c			new
external/bsd/ntp/dist/lib/isc/parseint.c			new
external/bsd/ntp/dist/lib/isc/portset.c				new
external/bsd/ntp/dist/lib/isc/print.c				new
external/bsd/ntp/dist/lib/isc/quota.c				new
external/bsd/ntp/dist/lib/isc/radix.c				new
external/bsd/ntp/dist/lib/isc/random.c				new
external/bsd/ntp/dist/lib/isc/ratelimiter.c			new
external/bsd/ntp/dist/lib/isc/refcount.c			new
external/bsd/ntp/dist/lib/isc/region.c				new
external/bsd/ntp/dist/lib/isc/result.c				new
external/bsd/ntp/dist/lib/isc/rwlock.c				new
external/bsd/ntp/dist/lib/isc/serial.c				new
external/bsd/ntp/dist/lib/isc/sha1.c				new
external/bsd/ntp/dist/lib/isc/sha2.c				new
external/bsd/ntp/dist/lib/isc/sockaddr.c			new
external/bsd/ntp/dist/lib/isc/socket_api.c			new
external/bsd/ntp/dist/lib/isc/stats.c				new
external/bsd/ntp/dist/lib/isc/string.c				new
external/bsd/ntp/dist/lib/isc/strtoul.c				new
external/bsd/ntp/dist/lib/isc/symtab.c				new
external/bsd/ntp/dist/lib/isc/task.c				new
external/bsd/ntp/dist/lib/isc/task_api.c			new
external/bsd/ntp/dist/lib/isc/task_p.h				new
external/bsd/ntp/dist/lib/isc/taskpool.c			new
external/bsd/ntp/dist/lib/isc/timer.c				new
external/bsd/ntp/dist/lib/isc/timer_api.c			new
external/bsd/ntp/dist/lib/isc/timer_p.h				new
external/bsd/ntp/dist/lib/isc/version.c				new
external/bsd/ntp/dist/lib/isc/alpha/include/isc/atomic.h	new
external/bsd/ntp/dist/lib/isc/ia64/include/isc/atomic.h		new
external/bsd/ntp/dist/lib/isc/include/isc/app.h			new
external/bsd/ntp/dist/lib/isc/include/isc/assertions.h		new
external/bsd/ntp/dist/lib/isc/include/isc/backtrace.h		new
external/bsd/ntp/dist/lib/isc/include/isc/base32.h		new
external/bsd/ntp/dist/lib/isc/include/isc/base64.h		new
external/bsd/ntp/dist/lib/isc/include/isc/bind9.h		new
external/bsd/ntp/dist/lib/isc/include/isc/bitstring.h		new
external/bsd/ntp/dist/lib/isc/include/isc/boolean.h		new
external/bsd/ntp/dist/lib/isc/include/isc/buffer.h		new
external/bsd/ntp/dist/lib/isc/include/isc/bufferlist.h		new
external/bsd/ntp/dist/lib/isc/include/isc/commandline.h		new
external/bsd/ntp/dist/lib/isc/include/isc/entropy.h		new
external/bsd/ntp/dist/lib/isc/include/isc/error.h		new
external/bsd/ntp/dist/lib/isc/include/isc/event.h		new
external/bsd/ntp/dist/lib/isc/include/isc/eventclass.h		new
external/bsd/ntp/dist/lib/isc/include/isc/file.h		new
external/bsd/ntp/dist/lib/isc/include/isc/formatcheck.h		new
external/bsd/ntp/dist/lib/isc/include/isc/fsaccess.h		new
external/bsd/ntp/dist/lib/isc/include/isc/hash.h		new
external/bsd/ntp/dist/lib/isc/include/isc/heap.h		new
external/bsd/ntp/dist/lib/isc/include/isc/hex.h			new
external/bsd/ntp/dist/lib/isc/include/isc/hmacmd5.h		new
external/bsd/ntp/dist/lib/isc/include/isc/hmacsha.h		new
external/bsd/ntp/dist/lib/isc/include/isc/httpd.h		new
external/bsd/ntp/dist/lib/isc/include/isc/interfaceiter.h	new
external/bsd/ntp/dist/lib/isc/include/isc/ipv6.h		new
external/bsd/ntp/dist/lib/isc/include/isc/iterated_hash.h	new
external/bsd/ntp/dist/lib/isc/include/isc/lang.h		new
external/bsd/ntp/dist/lib/isc/include/isc/lex.h			new
external/bsd/ntp/dist/lib/isc/include/isc/lfsr.h		new
external/bsd/ntp/dist/lib/isc/include/isc/lib.h			new
external/bsd/ntp/dist/lib/isc/include/isc/list.h		new
external/bsd/ntp/dist/lib/isc/include/isc/log.h			new
external/bsd/ntp/dist/lib/isc/include/isc/magic.h		new
external/bsd/ntp/dist/lib/isc/include/isc/md5.h			new
external/bsd/ntp/dist/lib/isc/include/isc/mem.h			new
external/bsd/ntp/dist/lib/isc/include/isc/msgcat.h		new
external/bsd/ntp/dist/lib/isc/include/isc/msgs.h		new
external/bsd/ntp/dist/lib/isc/include/isc/mutexblock.h		new
external/bsd/ntp/dist/lib/isc/include/isc/namespace.h		new
external/bsd/ntp/dist/lib/isc/include/isc/netaddr.h		new
external/bsd/ntp/dist/lib/isc/include/isc/netscope.h		new
external/bsd/ntp/dist/lib/isc/include/isc/ondestroy.h		new
external/bsd/ntp/dist/lib/isc/include/isc/os.h			new
external/bsd/ntp/dist/lib/isc/include/isc/parseint.h		new
external/bsd/ntp/dist/lib/isc/include/isc/platform.h		new
external/bsd/ntp/dist/lib/isc/include/isc/platform.h.in		new
external/bsd/ntp/dist/lib/isc/include/isc/portset.h		new
external/bsd/ntp/dist/lib/isc/include/isc/print.h		new
external/bsd/ntp/dist/lib/isc/include/isc/queue.h		new
external/bsd/ntp/dist/lib/isc/include/isc/quota.h		new
external/bsd/ntp/dist/lib/isc/include/isc/radix.h		new
external/bsd/ntp/dist/lib/isc/include/isc/random.h		new
external/bsd/ntp/dist/lib/isc/include/isc/ratelimiter.h		new
external/bsd/ntp/dist/lib/isc/include/isc/refcount.h		new
external/bsd/ntp/dist/lib/isc/include/isc/region.h		new
external/bsd/ntp/dist/lib/isc/include/isc/resource.h		new
external/bsd/ntp/dist/lib/isc/include/isc/result.h		new
external/bsd/ntp/dist/lib/isc/include/isc/resultclass.h		new
external/bsd/ntp/dist/lib/isc/include/isc/rwlock.h		new
external/bsd/ntp/dist/lib/isc/include/isc/serial.h		new
external/bsd/ntp/dist/lib/isc/include/isc/sha1.h		new
external/bsd/ntp/dist/lib/isc/include/isc/sha2.h		new
external/bsd/ntp/dist/lib/isc/include/isc/sockaddr.h		new
external/bsd/ntp/dist/lib/isc/include/isc/socket.h		new
external/bsd/ntp/dist/lib/isc/include/isc/stats.h		new
external/bsd/ntp/dist/lib/isc/include/isc/stdio.h		new
external/bsd/ntp/dist/lib/isc/include/isc/stdlib.h		new
external/bsd/ntp/dist/lib/isc/include/isc/string.h		new
external/bsd/ntp/dist/lib/isc/include/isc/symtab.h		new
external/bsd/ntp/dist/lib/isc/include/isc/task.h		new
external/bsd/ntp/dist/lib/isc/include/isc/taskpool.h		new
external/bsd/ntp/dist/lib/isc/include/isc/timer.h		new
external/bsd/ntp/dist/lib/isc/include/isc/types.h		new
external/bsd/ntp/dist/lib/isc/include/isc/util.h		new
external/bsd/ntp/dist/lib/isc/include/isc/version.h		new
external/bsd/ntp/dist/lib/isc/include/isc/xml.h			new
external/bsd/ntp/dist/lib/isc/mips/include/isc/atomic.h		new
external/bsd/ntp/dist/lib/isc/nls/msgcat.c			new
external/bsd/ntp/dist/lib/isc/noatomic/include/isc/atomic.h	new
external/bsd/ntp/dist/lib/isc/nothreads/condition.c		new
external/bsd/ntp/dist/lib/isc/nothreads/mutex.c			new
external/bsd/ntp/dist/lib/isc/nothreads/thread.c		new
external/bsd/ntp/dist/lib/isc/nothreads/include/isc/condition.h	new
external/bsd/ntp/dist/lib/isc/nothreads/include/isc/mutex.h	new
external/bsd/ntp/dist/lib/isc/nothreads/include/isc/once.h	new
external/bsd/ntp/dist/lib/isc/nothreads/include/isc/thread.h	new
external/bsd/ntp/dist/lib/isc/powerpc/include/isc/atomic.h	new
external/bsd/ntp/dist/lib/isc/pthreads/condition.c		new
external/bsd/ntp/dist/lib/isc/pthreads/mutex.c			new
external/bsd/ntp/dist/lib/isc/pthreads/thread.c			new
external/bsd/ntp/dist/lib/isc/pthreads/include/isc/condition.h	new
external/bsd/ntp/dist/lib/isc/pthreads/include/isc/mutex.h	new
external/bsd/ntp/dist/lib/isc/pthreads/include/isc/once.h	new
external/bsd/ntp/dist/lib/isc/pthreads/include/isc/thread.h	new
external/bsd/ntp/dist/lib/isc/sparc64/include/isc/atomic.h	new
external/bsd/ntp/dist/lib/isc/tests/Atffile			new
external/bsd/ntp/dist/lib/isc/tests/hash_test.c			new
external/bsd/ntp/dist/lib/isc/tests/isctest.c			new
external/bsd/ntp/dist/lib/isc/tests/isctest.h			new
external/bsd/ntp/dist/lib/isc/tests/queue_test.c		new
external/bsd/ntp/dist/lib/isc/tests/socket_test.c		new
external/bsd/ntp/dist/lib/isc/tests/symtab_test.c		new
external/bsd/ntp/dist/lib/isc/tests/task_test.c			new
external/bsd/ntp/dist/lib/isc/tests/taskpool_test.c		new
external/bsd/ntp/dist/lib/isc/unix/app.c			new
external/bsd/ntp/dist/lib/isc/unix/dir.c			new
external/bsd/ntp/dist/lib/isc/unix/entropy.c			new
external/bsd/ntp/dist/lib/isc/unix/errno2result.c		new
external/bsd/ntp/dist/lib/isc/unix/errno2result.h		new
external/bsd/ntp/dist/lib/isc/unix/file.c			new
external/bsd/ntp/dist/lib/isc/unix/fsaccess.c			new
external/bsd/ntp/dist/lib/isc/unix/ifiter_getifaddrs.c		new
external/bsd/ntp/dist/lib/isc/unix/ifiter_ioctl.c		new
external/bsd/ntp/dist/lib/isc/unix/ifiter_sysctl.c		new
external/bsd/ntp/dist/lib/isc/unix/interfaceiter.c		new
external/bsd/ntp/dist/lib/isc/unix/ipv6.c			new
external/bsd/ntp/dist/lib/isc/unix/keyboard.c			new
external/bsd/ntp/dist/lib/isc/unix/net.c			new
external/bsd/ntp/dist/lib/isc/unix/os.c				new
external/bsd/ntp/dist/lib/isc/unix/resource.c			new
external/bsd/ntp/dist/lib/isc/unix/socket.c			new
external/bsd/ntp/dist/lib/isc/unix/socket_p.h			new
external/bsd/ntp/dist/lib/isc/unix/stdio.c			new
external/bsd/ntp/dist/lib/isc/unix/stdtime.c			new
external/bsd/ntp/dist/lib/isc/unix/strerror.c			new
external/bsd/ntp/dist/lib/isc/unix/syslog.c			new
external/bsd/ntp/dist/lib/isc/unix/time.c			new
external/bsd/ntp/dist/lib/isc/unix/include/isc/dir.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/int.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/keyboard.h	new
external/bsd/ntp/dist/lib/isc/unix/include/isc/net.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/netdb.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/offset.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/stat.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/stdtime.h	new
external/bsd/ntp/dist/lib/isc/unix/include/isc/strerror.h	new
external/bsd/ntp/dist/lib/isc/unix/include/isc/syslog.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/time.h		new
external/bsd/ntp/dist/lib/isc/win32/DLLMain.c			new
external/bsd/ntp/dist/lib/isc/win32/app.c			new
external/bsd/ntp/dist/lib/isc/win32/condition.c			new
external/bsd/ntp/dist/lib/isc/win32/dir.c			new
external/bsd/ntp/dist/lib/isc/win32/entropy.c			new
external/bsd/ntp/dist/lib/isc/win32/errno2result.c		new
external/bsd/ntp/dist/lib/isc/win32/errno2result.h		new
external/bsd/ntp/dist/lib/isc/win32/file.c			new
external/bsd/ntp/dist/lib/isc/win32/fsaccess.c			new
external/bsd/ntp/dist/lib/isc/win32/interfaceiter.c		new
external/bsd/ntp/dist/lib/isc/win32/ipv6.c			new
external/bsd/ntp/dist/lib/isc/win32/keyboard.c			new
external/bsd/ntp/dist/lib/isc/win32/libgen.h			new
external/bsd/ntp/dist/lib/isc/win32/libisc.def			new
external/bsd/ntp/dist/lib/isc/win32/libisc.dsp			new
external/bsd/ntp/dist/lib/isc/win32/libisc.dsw			new
external/bsd/ntp/dist/lib/isc/win32/libisc.mak			new
external/bsd/ntp/dist/lib/isc/win32/net.c			new
external/bsd/ntp/dist/lib/isc/win32/netdb.h			new
external/bsd/ntp/dist/lib/isc/win32/ntgroups.c			new
external/bsd/ntp/dist/lib/isc/win32/ntpaths.c			new
external/bsd/ntp/dist/lib/isc/win32/once.c			new
external/bsd/ntp/dist/lib/isc/win32/os.c			new
external/bsd/ntp/dist/lib/isc/win32/resource.c			new
external/bsd/ntp/dist/lib/isc/win32/socket.c			new
external/bsd/ntp/dist/lib/isc/win32/stdio.c			new
external/bsd/ntp/dist/lib/isc/win32/stdtime.c			new
external/bsd/ntp/dist/lib/isc/win32/strerror.c			new
external/bsd/ntp/dist/lib/isc/win32/syslog.c			new
external/bsd/ntp/dist/lib/isc/win32/syslog.h			new
external/bsd/ntp/dist/lib/isc/win32/thread.c			new
external/bsd/ntp/dist/lib/isc/win32/time.c			new
external/bsd/ntp/dist/lib/isc/win32/unistd.h			new
external/bsd/ntp/dist/lib/isc/win32/version.c			new
external/bsd/ntp/dist/lib/isc/win32/win32os.c			new
external/bsd/ntp/dist/lib/isc/win32/include/isc/bind_registry.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/bindevt.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/condition.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/dir.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/int.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/ipv6.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/keyboard.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/mutex.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/net.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/netdb.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/ntgroups.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/ntpaths.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/offset.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/once.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/platform.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/stat.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/stdtime.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/strerror.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/syslog.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/thread.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/time.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/win32os.h	new
external/bsd/ntp/dist/lib/isc/x86_32/include/isc/atomic.h	new
external/bsd/ntp/dist/lib/isc/x86_64/include/isc/atomic.h	new
external/bsd/ntp/dist/libjsmn/LICENSE				new
external/bsd/ntp/dist/libjsmn/Makefile				new
external/bsd/ntp/dist/libjsmn/README.md				new
external/bsd/ntp/dist/libjsmn/jsmn.c				new
external/bsd/ntp/dist/libjsmn/jsmn.h				new
external/bsd/ntp/dist/libjsmn/jsmn_test.c			new
external/bsd/ntp/dist/libntp/Makefile.am			new
external/bsd/ntp/dist/libntp/Makefile.in			new
external/bsd/ntp/dist/libntp/README				new
external/bsd/ntp/dist/libntp/a_md5encrypt.c			new
external/bsd/ntp/dist/libntp/adjtime.c				new
external/bsd/ntp/dist/libntp/adjtimex.c				new
external/bsd/ntp/dist/libntp/atoint.c				new
external/bsd/ntp/dist/libntp/atolfp.c				new
external/bsd/ntp/dist/libntp/atouint.c				new
external/bsd/ntp/dist/libntp/audio.c				new
external/bsd/ntp/dist/libntp/authkeys.c				new
external/bsd/ntp/dist/libntp/authreadkeys.c			new
external/bsd/ntp/dist/libntp/authusekey.c			new
external/bsd/ntp/dist/libntp/bsd_strerror.c			new
external/bsd/ntp/dist/libntp/buftvtots.c			new
external/bsd/ntp/dist/libntp/caljulian.c			new
external/bsd/ntp/dist/libntp/caltontp.c				new
external/bsd/ntp/dist/libntp/calyearstart.c			new
external/bsd/ntp/dist/libntp/clocktime.c			new
external/bsd/ntp/dist/libntp/clocktypes.c			new
external/bsd/ntp/dist/libntp/decodenetnum.c			new
external/bsd/ntp/dist/libntp/dofptoa.c				new
external/bsd/ntp/dist/libntp/dolfptoa.c				new
external/bsd/ntp/dist/libntp/emalloc.c				new
external/bsd/ntp/dist/libntp/findconfig.c			new
external/bsd/ntp/dist/libntp/getopt.c				new
external/bsd/ntp/dist/libntp/hextoint.c				new
external/bsd/ntp/dist/libntp/hextolfp.c				new
external/bsd/ntp/dist/libntp/humandate.c			new
external/bsd/ntp/dist/libntp/icom.c				new
external/bsd/ntp/dist/libntp/iosignal.c				new
external/bsd/ntp/dist/libntp/lib_strbuf.c			new
external/bsd/ntp/dist/libntp/machines.c				new
external/bsd/ntp/dist/libntp/mktime.c				new
external/bsd/ntp/dist/libntp/modetoa.c				new
external/bsd/ntp/dist/libntp/mstolfp.c				new
external/bsd/ntp/dist/libntp/msyslog.c				new
external/bsd/ntp/dist/libntp/netof.c				new
external/bsd/ntp/dist/libntp/ntp_calendar.c			new
external/bsd/ntp/dist/libntp/ntp_crypto_rnd.c			new
external/bsd/ntp/dist/libntp/ntp_intres.c			new
external/bsd/ntp/dist/libntp/ntp_libopts.c			new
external/bsd/ntp/dist/libntp/ntp_lineedit.c			new
external/bsd/ntp/dist/libntp/ntp_random.c			new
external/bsd/ntp/dist/libntp/ntp_rfc2553.c			new
external/bsd/ntp/dist/libntp/ntp_worker.c			new
external/bsd/ntp/dist/libntp/numtoa.c				new
external/bsd/ntp/dist/libntp/numtohost.c			new
external/bsd/ntp/dist/libntp/octtoint.c				new
external/bsd/ntp/dist/libntp/prettydate.c			new
external/bsd/ntp/dist/libntp/recvbuff.c				new
external/bsd/ntp/dist/libntp/refnumtoa.c			new
external/bsd/ntp/dist/libntp/snprintf.c				new
external/bsd/ntp/dist/libntp/socket.c				new
external/bsd/ntp/dist/libntp/socktoa.c				new
external/bsd/ntp/dist/libntp/socktohost.c			new
external/bsd/ntp/dist/libntp/ssl_init.c				new
external/bsd/ntp/dist/libntp/statestr.c				new
external/bsd/ntp/dist/libntp/strdup.c				new
external/bsd/ntp/dist/libntp/strl_obsd.c			new
external/bsd/ntp/dist/libntp/syssignal.c			new
external/bsd/ntp/dist/libntp/systime.c				new
external/bsd/ntp/dist/libntp/systime_s.c			new
external/bsd/ntp/dist/libntp/timetoa.c				new
external/bsd/ntp/dist/libntp/timevalops.c			new
external/bsd/ntp/dist/libntp/uglydate.c				new
external/bsd/ntp/dist/libntp/vint64ops.c			new
external/bsd/ntp/dist/libntp/work_fork.c			new
external/bsd/ntp/dist/libntp/work_thread.c			new
external/bsd/ntp/dist/libntp/ymd2yd.c				new
external/bsd/ntp/dist/libparse/Makefile.am			new
external/bsd/ntp/dist/libparse/Makefile.in			new
external/bsd/ntp/dist/libparse/README				new
external/bsd/ntp/dist/libparse/binio.c				new
external/bsd/ntp/dist/libparse/clk_computime.c			new
external/bsd/ntp/dist/libparse/clk_dcf7000.c			new
external/bsd/ntp/dist/libparse/clk_hopf6021.c			new
external/bsd/ntp/dist/libparse/clk_meinberg.c			new
external/bsd/ntp/dist/libparse/clk_rawdcf.c			new
external/bsd/ntp/dist/libparse/clk_rcc8000.c			new
external/bsd/ntp/dist/libparse/clk_schmid.c			new
external/bsd/ntp/dist/libparse/clk_sel240x.c			new
external/bsd/ntp/dist/libparse/clk_trimtaip.c			new
external/bsd/ntp/dist/libparse/clk_trimtsip.c			new
external/bsd/ntp/dist/libparse/clk_varitext.c			new
external/bsd/ntp/dist/libparse/clk_wharton.c			new
external/bsd/ntp/dist/libparse/data_mbg.c			new
external/bsd/ntp/dist/libparse/gpstolfp.c			new
external/bsd/ntp/dist/libparse/ieee754io.c			new
external/bsd/ntp/dist/libparse/info_trimble.c			new
external/bsd/ntp/dist/libparse/mfp_mul.c			new
external/bsd/ntp/dist/libparse/mkinfo_rcmd.sed			new
external/bsd/ntp/dist/libparse/mkinfo_scmd.sed			new
external/bsd/ntp/dist/libparse/parse.c				new
external/bsd/ntp/dist/libparse/parse_conf.c			new
external/bsd/ntp/dist/libparse/parsesolaris.c			new
external/bsd/ntp/dist/libparse/parsestreams.c			new
external/bsd/ntp/dist/libparse/trim_info.c			new
external/bsd/ntp/dist/ntpd/Makefile.am				new
external/bsd/ntp/dist/ntpd/Makefile.in				new
external/bsd/ntp/dist/ntpd/check_y2k.c				new
external/bsd/ntp/dist/ntpd/cmd_args.c				new
external/bsd/ntp/dist/ntpd/complete.conf.in			new
external/bsd/ntp/dist/ntpd/declcond.h				new
external/bsd/ntp/dist/ntpd/invoke-ntp.conf.menu			new
external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi			new
external/bsd/ntp/dist/ntpd/invoke-ntp.keys.menu			new
external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi			new
external/bsd/ntp/dist/ntpd/invoke-ntpd.menu			new
external/bsd/ntp/dist/ntpd/invoke-ntpd.texi			new
external/bsd/ntp/dist/ntpd/jupiter.h				new
external/bsd/ntp/dist/ntpd/keyword-gen-utd			new
external/bsd/ntp/dist/ntpd/keyword-gen.c			new
external/bsd/ntp/dist/ntpd/ntp.conf.5man			new
external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc			new
external/bsd/ntp/dist/ntpd/ntp.conf.def				new
external/bsd/ntp/dist/ntpd/ntp.conf.html			new
external/bsd/ntp/dist/ntpd/ntp.conf.man.in			new
external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in			new
external/bsd/ntp/dist/ntpd/ntp.conf.texi			new
external/bsd/ntp/dist/ntpd/ntp.keys.5man			new
external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc			new
external/bsd/ntp/dist/ntpd/ntp.keys.def				new
external/bsd/ntp/dist/ntpd/ntp.keys.html			new
external/bsd/ntp/dist/ntpd/ntp.keys.man.in			new
external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in			new
external/bsd/ntp/dist/ntpd/ntp.keys.texi			new
external/bsd/ntp/dist/ntpd/ntp_config.c				new
external/bsd/ntp/dist/ntpd/ntp_control.c			new
external/bsd/ntp/dist/ntpd/ntp_crypto.c				new
external/bsd/ntp/dist/ntpd/ntp_filegen.c			new
external/bsd/ntp/dist/ntpd/ntp_io.c				new
external/bsd/ntp/dist/ntpd/ntp_keyword.h			new
external/bsd/ntp/dist/ntpd/ntp_leapsec.c			new
external/bsd/ntp/dist/ntpd/ntp_leapsec.h			new
external/bsd/ntp/dist/ntpd/ntp_loopfilter.c			new
external/bsd/ntp/dist/ntpd/ntp_monitor.c			new
external/bsd/ntp/dist/ntpd/ntp_parser.c				new
external/bsd/ntp/dist/ntpd/ntp_parser.h				new
external/bsd/ntp/dist/ntpd/ntp_parser.y				new
external/bsd/ntp/dist/ntpd/ntp_peer.c				new
external/bsd/ntp/dist/ntpd/ntp_prio_q.c				new
external/bsd/ntp/dist/ntpd/ntp_proto.c				new
external/bsd/ntp/dist/ntpd/ntp_refclock.c			new
external/bsd/ntp/dist/ntpd/ntp_request.c			new
external/bsd/ntp/dist/ntpd/ntp_restrict.c			new
external/bsd/ntp/dist/ntpd/ntp_scanner.c			new
external/bsd/ntp/dist/ntpd/ntp_scanner.h			new
external/bsd/ntp/dist/ntpd/ntp_signd.c				new
external/bsd/ntp/dist/ntpd/ntp_timer.c				new
external/bsd/ntp/dist/ntpd/ntp_util.c				new
external/bsd/ntp/dist/ntpd/ntpd-opts.c				new
external/bsd/ntp/dist/ntpd/ntpd-opts.def			new
external/bsd/ntp/dist/ntpd/ntpd-opts.h				new
external/bsd/ntp/dist/ntpd/ntpd.1ntpdman			new
external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc			new
external/bsd/ntp/dist/ntpd/ntpd.c				new
external/bsd/ntp/dist/ntpd/ntpd.html				new
external/bsd/ntp/dist/ntpd/ntpd.man.in				new
external/bsd/ntp/dist/ntpd/ntpd.mdoc.in				new
external/bsd/ntp/dist/ntpd/ntpd.texi				new
external/bsd/ntp/dist/ntpd/ntpdbase-opts.def			new
external/bsd/ntp/dist/ntpd/ntpsim.c				new
external/bsd/ntp/dist/ntpd/ppsapi_timepps.h			new
external/bsd/ntp/dist/ntpd/refclock_acts.c			new
external/bsd/ntp/dist/ntpd/refclock_arbiter.c			new
external/bsd/ntp/dist/ntpd/refclock_arc.c			new
external/bsd/ntp/dist/ntpd/refclock_as2201.c			new
external/bsd/ntp/dist/ntpd/refclock_atom.c			new
external/bsd/ntp/dist/ntpd/refclock_bancomm.c			new
external/bsd/ntp/dist/ntpd/refclock_chronolog.c			new
external/bsd/ntp/dist/ntpd/refclock_chu.c			new
external/bsd/ntp/dist/ntpd/refclock_conf.c			new
external/bsd/ntp/dist/ntpd/refclock_datum.c			new
external/bsd/ntp/dist/ntpd/refclock_dumbclock.c			new
external/bsd/ntp/dist/ntpd/refclock_fg.c			new
external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c			new
external/bsd/ntp/dist/ntpd/refclock_gpsvme.c			new
external/bsd/ntp/dist/ntpd/refclock_heath.c			new
external/bsd/ntp/dist/ntpd/refclock_hopfpci.c			new
external/bsd/ntp/dist/ntpd/refclock_hopfser.c			new
external/bsd/ntp/dist/ntpd/refclock_hpgps.c			new
external/bsd/ntp/dist/ntpd/refclock_irig.c			new
external/bsd/ntp/dist/ntpd/refclock_jjy.c			new
external/bsd/ntp/dist/ntpd/refclock_jupiter.c			new
external/bsd/ntp/dist/ntpd/refclock_leitch.c			new
external/bsd/ntp/dist/ntpd/refclock_local.c			new
external/bsd/ntp/dist/ntpd/refclock_msfees.c			new
external/bsd/ntp/dist/ntpd/refclock_mx4200.c			new
external/bsd/ntp/dist/ntpd/refclock_neoclock4x.c		new
external/bsd/ntp/dist/ntpd/refclock_nmea.c			new
external/bsd/ntp/dist/ntpd/refclock_oncore.c			new
external/bsd/ntp/dist/ntpd/refclock_palisade.c			new
external/bsd/ntp/dist/ntpd/refclock_palisade.h			new
external/bsd/ntp/dist/ntpd/refclock_parse.c			new
external/bsd/ntp/dist/ntpd/refclock_pcf.c			new
external/bsd/ntp/dist/ntpd/refclock_pst.c			new
external/bsd/ntp/dist/ntpd/refclock_ripencc.c			new
external/bsd/ntp/dist/ntpd/refclock_shm.c			new
external/bsd/ntp/dist/ntpd/refclock_tpro.c			new
external/bsd/ntp/dist/ntpd/refclock_true.c			new
external/bsd/ntp/dist/ntpd/refclock_tsyncpci.c			new
external/bsd/ntp/dist/ntpd/refclock_tt560.c			new
external/bsd/ntp/dist/ntpd/refclock_ulink.c			new
external/bsd/ntp/dist/ntpd/refclock_wwv.c			new
external/bsd/ntp/dist/ntpd/refclock_wwvb.c			new
external/bsd/ntp/dist/ntpd/refclock_zyfer.c			new
external/bsd/ntp/dist/ntpdate/Makefile.am			new
external/bsd/ntp/dist/ntpdate/Makefile.in			new
external/bsd/ntp/dist/ntpdate/README				new
external/bsd/ntp/dist/ntpdate/ntpdate.c				new
external/bsd/ntp/dist/ntpdate/ntpdate.h				new
external/bsd/ntp/dist/ntpdc/Makefile.am				new
external/bsd/ntp/dist/ntpdc/Makefile.in				new
external/bsd/ntp/dist/ntpdc/README				new
external/bsd/ntp/dist/ntpdc/invoke-ntpdc.menu			new
external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi			new
external/bsd/ntp/dist/ntpdc/layout.std				new
external/bsd/ntp/dist/ntpdc/nl.pl				new
external/bsd/ntp/dist/ntpdc/nl.pl.in				new
external/bsd/ntp/dist/ntpdc/nl_in.c				new
external/bsd/ntp/dist/ntpdc/ntpdc-layout.c			new
external/bsd/ntp/dist/ntpdc/ntpdc-opts.c			new
external/bsd/ntp/dist/ntpdc/ntpdc-opts.def			new
external/bsd/ntp/dist/ntpdc/ntpdc-opts.h			new
external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman			new
external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc			new
external/bsd/ntp/dist/ntpdc/ntpdc.c				new
external/bsd/ntp/dist/ntpdc/ntpdc.h				new
external/bsd/ntp/dist/ntpdc/ntpdc.html				new
external/bsd/ntp/dist/ntpdc/ntpdc.man.in			new
external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in			new
external/bsd/ntp/dist/ntpdc/ntpdc.texi				new
external/bsd/ntp/dist/ntpdc/ntpdc_ops.c				new
external/bsd/ntp/dist/ntpq/Makefile.am				new
external/bsd/ntp/dist/ntpq/Makefile.in				new
external/bsd/ntp/dist/ntpq/README				new
external/bsd/ntp/dist/ntpq/invoke-ntpq.menu			new
external/bsd/ntp/dist/ntpq/invoke-ntpq.texi			new
external/bsd/ntp/dist/ntpq/libntpq.c				new
external/bsd/ntp/dist/ntpq/libntpq.h				new
external/bsd/ntp/dist/ntpq/libntpq_subs.c			new
external/bsd/ntp/dist/ntpq/ntpq-opts.c				new
external/bsd/ntp/dist/ntpq/ntpq-opts.def			new
external/bsd/ntp/dist/ntpq/ntpq-opts.h				new
external/bsd/ntp/dist/ntpq/ntpq-subs.c				new
external/bsd/ntp/dist/ntpq/ntpq.1ntpqman			new
external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc			new
external/bsd/ntp/dist/ntpq/ntpq.c				new
external/bsd/ntp/dist/ntpq/ntpq.h				new
external/bsd/ntp/dist/ntpq/ntpq.html				new
external/bsd/ntp/dist/ntpq/ntpq.man.in				new
external/bsd/ntp/dist/ntpq/ntpq.mdoc.in				new
external/bsd/ntp/dist/ntpq/ntpq.texi				new
external/bsd/ntp/dist/ntpsnmpd/Makefile.am			new
external/bsd/ntp/dist/ntpsnmpd/Makefile.in			new
external/bsd/ntp/dist/ntpsnmpd/README				new
external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.menu		new
external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi		new
external/bsd/ntp/dist/ntpsnmpd/netsnmp_daemonize.c		new
external/bsd/ntp/dist/ntpsnmpd/ntpSnmpSubagentObject.c		new
external/bsd/ntp/dist/ntpsnmpd/ntpSnmpSubagentObject.h		new
external/bsd/ntp/dist/ntpsnmpd/ntp_snmp.h			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.def		new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman		new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc		new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.c			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.texi			new
external/bsd/ntp/dist/ntpsnmpd/ntpv4-mib.mib			new
external/bsd/ntp/dist/parseutil/Makefile.am			new
external/bsd/ntp/dist/parseutil/Makefile.in			new
external/bsd/ntp/dist/parseutil/README				new
external/bsd/ntp/dist/parseutil/dcfd.c				new
external/bsd/ntp/dist/parseutil/testdcf.c			new
external/bsd/ntp/dist/scripts/Makefile.am			new
external/bsd/ntp/dist/scripts/Makefile.in			new
external/bsd/ntp/dist/scripts/README				new
external/bsd/ntp/dist/scripts/invoke-plot_summary.menu		new
external/bsd/ntp/dist/scripts/invoke-plot_summary.texi		new
external/bsd/ntp/dist/scripts/invoke-summary.menu		new
external/bsd/ntp/dist/scripts/invoke-summary.texi		new
external/bsd/ntp/dist/scripts/ntpver.in				new
external/bsd/ntp/dist/scripts/plot_summary-opts			new
external/bsd/ntp/dist/scripts/plot_summary-opts.def		new
external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman	new
external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc	new
external/bsd/ntp/dist/scripts/plot_summary.html			new
external/bsd/ntp/dist/scripts/plot_summary.in			new
external/bsd/ntp/dist/scripts/plot_summary.man.in		new
external/bsd/ntp/dist/scripts/plot_summary.mdoc.in		new
external/bsd/ntp/dist/scripts/plot_summary.texi			new
external/bsd/ntp/dist/scripts/summary-opts			new
external/bsd/ntp/dist/scripts/summary-opts.def			new
external/bsd/ntp/dist/scripts/summary.1summaryman		new
external/bsd/ntp/dist/scripts/summary.1summarymdoc		new
external/bsd/ntp/dist/scripts/summary.html			new
external/bsd/ntp/dist/scripts/summary.in			new
external/bsd/ntp/dist/scripts/summary.man.in			new
external/bsd/ntp/dist/scripts/summary.mdoc.in			new
external/bsd/ntp/dist/scripts/summary.texi			new
external/bsd/ntp/dist/scripts/build/Makefile.am			new
external/bsd/ntp/dist/scripts/build/Makefile.in			new
external/bsd/ntp/dist/scripts/build/UpdatePoint			new
external/bsd/ntp/dist/scripts/build/VersionName			new
external/bsd/ntp/dist/scripts/build/check--help			new
external/bsd/ntp/dist/scripts/build/checkChangeLog		new
external/bsd/ntp/dist/scripts/build/checkHtmlFileDates		new
external/bsd/ntp/dist/scripts/build/fixautomakedepsmagic	new
external/bsd/ntp/dist/scripts/build/genCommitLog		new
external/bsd/ntp/dist/scripts/build/genver			new
external/bsd/ntp/dist/scripts/build/mkver.in			new
external/bsd/ntp/dist/scripts/build/updateBEDate		new
external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.am		new
external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in		new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj-opts	new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj-opts.def new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmannew
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html	new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.in	new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in	new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in	new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.texi	new
external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.menu new
external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi new
external/bsd/ntp/dist/scripts/deprecated/freq_adj.in		new
external/bsd/ntp/dist/scripts/deprecated/hpadjtime.sh		new
external/bsd/ntp/dist/scripts/deprecated/html2man.in		new
external/bsd/ntp/dist/scripts/deprecated/ntp-close		new
external/bsd/ntp/dist/scripts/deprecated/ntp-groper		new
external/bsd/ntp/dist/scripts/deprecated/ntp-restart		new
external/bsd/ntp/dist/scripts/deprecated/ntp-status		new
external/bsd/ntp/dist/scripts/lib/Makefile.am			new
external/bsd/ntp/dist/scripts/lib/Makefile.in			new
external/bsd/ntp/dist/scripts/lib/NTP/Util.pm			new
external/bsd/ntp/dist/scripts/monitoring/README			new
external/bsd/ntp/dist/scripts/monitoring/loopwatch.config.SAMPLE new
external/bsd/ntp/dist/scripts/monitoring/lr.pl			new
external/bsd/ntp/dist/scripts/monitoring/ntp.pl			new
external/bsd/ntp/dist/scripts/monitoring/ntploopstat		new
external/bsd/ntp/dist/scripts/monitoring/ntploopwatch		new
external/bsd/ntp/dist/scripts/monitoring/ntptrap		new
external/bsd/ntp/dist/scripts/monitoring/timelocal.pl		new
external/bsd/ntp/dist/scripts/ntp-wait/Makefile.am		new
external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in		new
external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.menu	new
external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi	new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts		new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts.def	new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman	new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc	new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html		new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.in		new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in		new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in		new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.texi		new
external/bsd/ntp/dist/scripts/ntpsweep/Makefile.am		new
external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in		new
external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.menu	new
external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi	new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts		new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts.def	new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman	new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc	new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html		new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.in		new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in		new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in		new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.texi		new
external/bsd/ntp/dist/scripts/ntptrace/Makefile.am		new
external/bsd/ntp/dist/scripts/ntptrace/Makefile.in		new
external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.menu	new
external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi	new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts		new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts.def	new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman	new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc	new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html		new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.in		new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in		new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in		new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.texi		new
external/bsd/ntp/dist/scripts/rc/README				new
external/bsd/ntp/dist/scripts/rc/ntpd				new
external/bsd/ntp/dist/scripts/rc/ntpwait			new
external/bsd/ntp/dist/scripts/rc/rc.d/TIMESYNC			new
external/bsd/ntp/dist/scripts/rc/rc.d/ntpd			new
external/bsd/ntp/dist/scripts/rc/rc.d/ntpwait			new
external/bsd/ntp/dist/scripts/stats/README			new
external/bsd/ntp/dist/scripts/stats/README.stats		new
external/bsd/ntp/dist/scripts/stats/README.timecodes		new
external/bsd/ntp/dist/scripts/stats/clock.awk			new
external/bsd/ntp/dist/scripts/stats/dupe.awk			new
external/bsd/ntp/dist/scripts/stats/ensemble.S			new
external/bsd/ntp/dist/scripts/stats/ensemble.awk		new
external/bsd/ntp/dist/scripts/stats/etf.S			new
external/bsd/ntp/dist/scripts/stats/etf.awk			new
external/bsd/ntp/dist/scripts/stats/itf.S			new
external/bsd/ntp/dist/scripts/stats/itf.awk			new
external/bsd/ntp/dist/scripts/stats/loop.S			new
external/bsd/ntp/dist/scripts/stats/loop.awk			new
external/bsd/ntp/dist/scripts/stats/loop_summary		new
external/bsd/ntp/dist/scripts/stats/peer.awk			new
external/bsd/ntp/dist/scripts/stats/psummary.awk		new
external/bsd/ntp/dist/scripts/stats/summary.sh			new
external/bsd/ntp/dist/scripts/stats/tdata.S			new
external/bsd/ntp/dist/scripts/stats/tdata.awk			new
external/bsd/ntp/dist/sntp/COPYRIGHT				new
external/bsd/ntp/dist/sntp/Makefile.am				new
external/bsd/ntp/dist/sntp/Makefile.in				new
external/bsd/ntp/dist/sntp/aclocal.m4				new
external/bsd/ntp/dist/sntp/bincheck.mf				new
external/bsd/ntp/dist/sntp/check-libntp.mf			new
external/bsd/ntp/dist/sntp/check-libopts.mf			new
external/bsd/ntp/dist/sntp/config.h.in				new
external/bsd/ntp/dist/sntp/configure				new
external/bsd/ntp/dist/sntp/configure.ac				new
external/bsd/ntp/dist/sntp/crypto.c				new
external/bsd/ntp/dist/sntp/crypto.h				new
external/bsd/ntp/dist/sntp/data_formats.h			new
external/bsd/ntp/dist/sntp/deps-ver				new
external/bsd/ntp/dist/sntp/depsver.mf				new
external/bsd/ntp/dist/sntp/evlog.c				new
external/bsd/ntp/dist/sntp/includes.mf				new
external/bsd/ntp/dist/sntp/install-sh				new
external/bsd/ntp/dist/sntp/invoke-sntp.menu			new
external/bsd/ntp/dist/sntp/invoke-sntp.texi			new
external/bsd/ntp/dist/sntp/kod_management.c			new
external/bsd/ntp/dist/sntp/kod_management.h			new
external/bsd/ntp/dist/sntp/log.c				new
external/bsd/ntp/dist/sntp/log.h				new
external/bsd/ntp/dist/sntp/main.c				new
external/bsd/ntp/dist/sntp/main.h				new
external/bsd/ntp/dist/sntp/networking.c				new
external/bsd/ntp/dist/sntp/networking.h				new
external/bsd/ntp/dist/sntp/scm-rev				new
external/bsd/ntp/dist/sntp/sntp-opts.c				new
external/bsd/ntp/dist/sntp/sntp-opts.def			new
external/bsd/ntp/dist/sntp/sntp-opts.h				new
external/bsd/ntp/dist/sntp/sntp.1sntpman			new
external/bsd/ntp/dist/sntp/sntp.1sntpmdoc			new
external/bsd/ntp/dist/sntp/sntp.c				new
external/bsd/ntp/dist/sntp/sntp.html				new
external/bsd/ntp/dist/sntp/sntp.man.in				new
external/bsd/ntp/dist/sntp/sntp.mdoc.in				new
external/bsd/ntp/dist/sntp/sntp.texi				new
external/bsd/ntp/dist/sntp/tests_main.cpp			new
external/bsd/ntp/dist/sntp/tests_main.h				new
external/bsd/ntp/dist/sntp/utilities.c				new
external/bsd/ntp/dist/sntp/utilities.h				new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/Mdoc.pm			new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/agman-cmd.tpl		new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/agmdoc-cmd.tpl		new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/cmd-doc.tlib		new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/mdoc-synopsis.tlib	new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/mdoc2man		new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/mdoc2texi		new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/perlopt.tpl		new
external/bsd/ntp/dist/sntp/event2/event-config.h		new
external/bsd/ntp/dist/sntp/include/Makefile.am			new
external/bsd/ntp/dist/sntp/include/Makefile.in			new
external/bsd/ntp/dist/sntp/include/autogen-version.def		new
external/bsd/ntp/dist/sntp/include/copyright.def		new
external/bsd/ntp/dist/sntp/include/debug-opt.def		new
external/bsd/ntp/dist/sntp/include/homerc.def			new
external/bsd/ntp/dist/sntp/include/ntp.lic			new
external/bsd/ntp/dist/sntp/include/version.def			new
external/bsd/ntp/dist/sntp/include/version.texi			new
external/bsd/ntp/dist/sntp/libevent/ChangeLog			new
external/bsd/ntp/dist/sntp/libevent/ChangeLog-1.4		new
external/bsd/ntp/dist/sntp/libevent/ChangeLog-2.0		new
external/bsd/ntp/dist/sntp/libevent/Doxyfile			new
external/bsd/ntp/dist/sntp/libevent/LICENSE			new
external/bsd/ntp/dist/sntp/libevent/Makefile.am			new
external/bsd/ntp/dist/sntp/libevent/Makefile.in			new
external/bsd/ntp/dist/sntp/libevent/Makefile.nmake		new
external/bsd/ntp/dist/sntp/libevent/README			new
external/bsd/ntp/dist/sntp/libevent/aclocal.m4			new
external/bsd/ntp/dist/sntp/libevent/arc4random.c		new
external/bsd/ntp/dist/sntp/libevent/autogen.sh			new
external/bsd/ntp/dist/sntp/libevent/buffer.c			new
external/bsd/ntp/dist/sntp/libevent/buffer_iocp.c		new
external/bsd/ntp/dist/sntp/libevent/bufferevent-internal.h	new
external/bsd/ntp/dist/sntp/libevent/bufferevent.c		new
external/bsd/ntp/dist/sntp/libevent/bufferevent_async.c		new
external/bsd/ntp/dist/sntp/libevent/bufferevent_filter.c	new
external/bsd/ntp/dist/sntp/libevent/bufferevent_openssl.c	new
external/bsd/ntp/dist/sntp/libevent/bufferevent_pair.c		new
external/bsd/ntp/dist/sntp/libevent/bufferevent_ratelim.c	new
external/bsd/ntp/dist/sntp/libevent/bufferevent_sock.c		new
external/bsd/ntp/dist/sntp/libevent/changelist-internal.h	new
external/bsd/ntp/dist/sntp/libevent/config.h.in			new
external/bsd/ntp/dist/sntp/libevent/configure			new
external/bsd/ntp/dist/sntp/libevent/configure.ac		new
external/bsd/ntp/dist/sntp/libevent/defer-internal.h		new
external/bsd/ntp/dist/sntp/libevent/devpoll.c			new
external/bsd/ntp/dist/sntp/libevent/epoll.c			new
external/bsd/ntp/dist/sntp/libevent/epoll_sub.c			new
external/bsd/ntp/dist/sntp/libevent/epolltable-internal.h	new
external/bsd/ntp/dist/sntp/libevent/evbuffer-internal.h		new
external/bsd/ntp/dist/sntp/libevent/evconfig-private.h		new
external/bsd/ntp/dist/sntp/libevent/evconfig-private.h.in	new
external/bsd/ntp/dist/sntp/libevent/evdns.c			new
external/bsd/ntp/dist/sntp/libevent/event-internal.h		new
external/bsd/ntp/dist/sntp/libevent/event.c			new
external/bsd/ntp/dist/sntp/libevent/event_iocp.c		new
external/bsd/ntp/dist/sntp/libevent/event_rpcgen.py		new
external/bsd/ntp/dist/sntp/libevent/event_tagging.c		new
external/bsd/ntp/dist/sntp/libevent/evmap-internal.h		new
external/bsd/ntp/dist/sntp/libevent/evmap.c			new
external/bsd/ntp/dist/sntp/libevent/evport.c			new
external/bsd/ntp/dist/sntp/libevent/evrpc-internal.h		new
external/bsd/ntp/dist/sntp/libevent/evrpc.c			new
external/bsd/ntp/dist/sntp/libevent/evsignal-internal.h		new
external/bsd/ntp/dist/sntp/libevent/evthread-internal.h		new
external/bsd/ntp/dist/sntp/libevent/evthread.c			new
external/bsd/ntp/dist/sntp/libevent/evthread_pthread.c		new
external/bsd/ntp/dist/sntp/libevent/evthread_win32.c		new
external/bsd/ntp/dist/sntp/libevent/evutil.c			new
external/bsd/ntp/dist/sntp/libevent/evutil_rand.c		new
external/bsd/ntp/dist/sntp/libevent/evutil_time.c		new
external/bsd/ntp/dist/sntp/libevent/ht-internal.h		new
external/bsd/ntp/dist/sntp/libevent/http-internal.h		new
external/bsd/ntp/dist/sntp/libevent/http.c			new
external/bsd/ntp/dist/sntp/libevent/iocp-internal.h		new
external/bsd/ntp/dist/sntp/libevent/ipv6-internal.h		new
external/bsd/ntp/dist/sntp/libevent/kqueue-internal.h		new
external/bsd/ntp/dist/sntp/libevent/kqueue.c			new
external/bsd/ntp/dist/sntp/libevent/libevent.pc.in		new
external/bsd/ntp/dist/sntp/libevent/libevent_openssl.pc.in	new
external/bsd/ntp/dist/sntp/libevent/libevent_pthreads.pc.in	new
external/bsd/ntp/dist/sntp/libevent/listener.c			new
external/bsd/ntp/dist/sntp/libevent/log-internal.h		new
external/bsd/ntp/dist/sntp/libevent/log.c			new
external/bsd/ntp/dist/sntp/libevent/make-event-config.sed	new
external/bsd/ntp/dist/sntp/libevent/minheap-internal.h		new
external/bsd/ntp/dist/sntp/libevent/mm-internal.h		new
external/bsd/ntp/dist/sntp/libevent/poll.c			new
external/bsd/ntp/dist/sntp/libevent/ratelim-internal.h		new
external/bsd/ntp/dist/sntp/libevent/select.c			new
external/bsd/ntp/dist/sntp/libevent/signal.c			new
external/bsd/ntp/dist/sntp/libevent/strlcpy-internal.h		new
external/bsd/ntp/dist/sntp/libevent/strlcpy.c			new
external/bsd/ntp/dist/sntp/libevent/time-internal.h		new
external/bsd/ntp/dist/sntp/libevent/util-internal.h		new
external/bsd/ntp/dist/sntp/libevent/whatsnew-2.0.txt		new
external/bsd/ntp/dist/sntp/libevent/whatsnew-2.1.txt		new
external/bsd/ntp/dist/sntp/libevent/win32select.c		new
external/bsd/ntp/dist/sntp/libevent/WIN32-Code/tree.h		new
external/bsd/ntp/dist/sntp/libevent/WIN32-Code/nmake/evconfig-private.h new
external/bsd/ntp/dist/sntp/libevent/WIN32-Code/nmake/event2/event-config.h new
external/bsd/ntp/dist/sntp/libevent/build-aux/compile		new
external/bsd/ntp/dist/sntp/libevent/build-aux/config.guess	new
external/bsd/ntp/dist/sntp/libevent/build-aux/config.sub	new
external/bsd/ntp/dist/sntp/libevent/build-aux/depcomp		new
external/bsd/ntp/dist/sntp/libevent/build-aux/install-sh	new
external/bsd/ntp/dist/sntp/libevent/build-aux/ltmain.sh		new
external/bsd/ntp/dist/sntp/libevent/build-aux/missing		new
external/bsd/ntp/dist/sntp/libevent/build-aux/ylwrap		new
external/bsd/ntp/dist/sntp/libevent/compat/sys/queue.h		new
external/bsd/ntp/dist/sntp/libevent/include/evdns.h		new
external/bsd/ntp/dist/sntp/libevent/include/event.h		new
external/bsd/ntp/dist/sntp/libevent/include/evhttp.h		new
external/bsd/ntp/dist/sntp/libevent/include/evrpc.h		new
external/bsd/ntp/dist/sntp/libevent/include/evutil.h		new
external/bsd/ntp/dist/sntp/libevent/include/include.am		new
external/bsd/ntp/dist/sntp/libevent/include/event2/buffer.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/buffer_compat.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent_compat.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent_ssl.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent_struct.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/dns.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/dns_compat.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/dns_struct.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/event.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/event_compat.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/event_struct.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/http.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/http_compat.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/http_struct.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/keyvalq_struct.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/listener.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/rpc.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/rpc_compat.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/rpc_struct.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/tag.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/tag_compat.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/thread.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/util.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/visibility.h	new
external/bsd/ntp/dist/sntp/libevent/m4/ac_backport_259_ssizet.m4 new
external/bsd/ntp/dist/sntp/libevent/m4/libevent_openssl.m4	new
external/bsd/ntp/dist/sntp/libevent/m4/libtool.m4		new
external/bsd/ntp/dist/sntp/libevent/m4/ltoptions.m4		new
external/bsd/ntp/dist/sntp/libevent/m4/ltsugar.m4		new
external/bsd/ntp/dist/sntp/libevent/m4/ltversion.m4		new
external/bsd/ntp/dist/sntp/libevent/m4/lt~obsolete.m4		new
external/bsd/ntp/dist/sntp/libevent/m4/ntp_pkg_config.m4	new
external/bsd/ntp/dist/sntp/libevent/m4/openldap-thread-check.m4	new
external/bsd/ntp/dist/sntp/libevent/m4/openldap.m4		new
external/bsd/ntp/dist/sntp/libevent/sample/dns-example.c	new
external/bsd/ntp/dist/sntp/libevent/sample/event-read-fifo.c	new
external/bsd/ntp/dist/sntp/libevent/sample/hello-world.c	new
external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.c		new
external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.h		new
external/bsd/ntp/dist/sntp/libevent/sample/http-server.c	new
external/bsd/ntp/dist/sntp/libevent/sample/https-client.c	new
external/bsd/ntp/dist/sntp/libevent/sample/include.am		new
external/bsd/ntp/dist/sntp/libevent/sample/le-proxy.c		new
external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.c new
external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.h new
external/bsd/ntp/dist/sntp/libevent/sample/signal-test.c	new
external/bsd/ntp/dist/sntp/libevent/sample/time-test.c		new
external/bsd/ntp/dist/sntp/libevent/test/Makefile.nmake		new
external/bsd/ntp/dist/sntp/libevent/test/bench.c		new
external/bsd/ntp/dist/sntp/libevent/test/bench_cascade.c	new
external/bsd/ntp/dist/sntp/libevent/test/bench_http.c		new
external/bsd/ntp/dist/sntp/libevent/test/bench_httpclient.c	new
external/bsd/ntp/dist/sntp/libevent/test/check-dumpevents.py	new
external/bsd/ntp/dist/sntp/libevent/test/include.am		new
external/bsd/ntp/dist/sntp/libevent/test/regress.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress.gen.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress.gen.h		new
external/bsd/ntp/dist/sntp/libevent/test/regress.h		new
external/bsd/ntp/dist/sntp/libevent/test/regress.rpc		new
external/bsd/ntp/dist/sntp/libevent/test/regress_buffer.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_bufferevent.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_dns.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_et.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_finalize.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_http.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_iocp.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_listener.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_main.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_minheap.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_rpc.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_ssl.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_testutils.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_testutils.h	new
external/bsd/ntp/dist/sntp/libevent/test/regress_thread.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_thread.h	new
external/bsd/ntp/dist/sntp/libevent/test/regress_util.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_zlib.c		new
external/bsd/ntp/dist/sntp/libevent/test/rpcgen_wrapper.sh	new
external/bsd/ntp/dist/sntp/libevent/test/test-changelist.c	new
external/bsd/ntp/dist/sntp/libevent/test/test-closed.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-dumpevents.c	new
external/bsd/ntp/dist/sntp/libevent/test/test-eof.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-fdleak.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-init.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-ratelim.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-time.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-weof.c		new
external/bsd/ntp/dist/sntp/libevent/test/test.sh		new
external/bsd/ntp/dist/sntp/libevent/test/tinytest.c		new
external/bsd/ntp/dist/sntp/libevent/test/tinytest.h		new
external/bsd/ntp/dist/sntp/libevent/test/tinytest_local.h	new
external/bsd/ntp/dist/sntp/libevent/test/tinytest_macros.h	new
external/bsd/ntp/dist/sntp/libopts/COPYING.gplv3		new
external/bsd/ntp/dist/sntp/libopts/COPYING.lgplv3		new
external/bsd/ntp/dist/sntp/libopts/COPYING.mbsd			new
external/bsd/ntp/dist/sntp/libopts/MakeDefs.inc			new
external/bsd/ntp/dist/sntp/libopts/Makefile.am			new
external/bsd/ntp/dist/sntp/libopts/Makefile.in			new
external/bsd/ntp/dist/sntp/libopts/README			new
external/bsd/ntp/dist/sntp/libopts/ag-char-map.h		new
external/bsd/ntp/dist/sntp/libopts/alias.c			new
external/bsd/ntp/dist/sntp/libopts/ao-strs.c			new
external/bsd/ntp/dist/sntp/libopts/ao-strs.h			new
external/bsd/ntp/dist/sntp/libopts/autoopts.c			new
external/bsd/ntp/dist/sntp/libopts/autoopts.h			new
external/bsd/ntp/dist/sntp/libopts/boolean.c			new
external/bsd/ntp/dist/sntp/libopts/check.c			new
external/bsd/ntp/dist/sntp/libopts/configfile.c			new
external/bsd/ntp/dist/sntp/libopts/cook.c			new
external/bsd/ntp/dist/sntp/libopts/enum.c			new
external/bsd/ntp/dist/sntp/libopts/env.c			new
external/bsd/ntp/dist/sntp/libopts/file.c			new
external/bsd/ntp/dist/sntp/libopts/find.c			new
external/bsd/ntp/dist/sntp/libopts/genshell.c			new
external/bsd/ntp/dist/sntp/libopts/genshell.h			new
external/bsd/ntp/dist/sntp/libopts/gettext.h			new
external/bsd/ntp/dist/sntp/libopts/init.c			new
external/bsd/ntp/dist/sntp/libopts/intprops.h			new
external/bsd/ntp/dist/sntp/libopts/libopts.c			new
external/bsd/ntp/dist/sntp/libopts/load.c			new
external/bsd/ntp/dist/sntp/libopts/makeshell.c			new
external/bsd/ntp/dist/sntp/libopts/nested.c			new
external/bsd/ntp/dist/sntp/libopts/numeric.c			new
external/bsd/ntp/dist/sntp/libopts/option-value-type.c		new
external/bsd/ntp/dist/sntp/libopts/option-value-type.h		new
external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.c	new
external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.h	new
external/bsd/ntp/dist/sntp/libopts/parse-duration.c		new
external/bsd/ntp/dist/sntp/libopts/parse-duration.h		new
external/bsd/ntp/dist/sntp/libopts/pgusage.c			new
external/bsd/ntp/dist/sntp/libopts/proto.h			new
external/bsd/ntp/dist/sntp/libopts/putshell.c			new
external/bsd/ntp/dist/sntp/libopts/reset.c			new
external/bsd/ntp/dist/sntp/libopts/restore.c			new
external/bsd/ntp/dist/sntp/libopts/save.c			new
external/bsd/ntp/dist/sntp/libopts/sort.c			new
external/bsd/ntp/dist/sntp/libopts/stack.c			new
external/bsd/ntp/dist/sntp/libopts/stdnoreturn.in.h		new
external/bsd/ntp/dist/sntp/libopts/streqvcmp.c			new
external/bsd/ntp/dist/sntp/libopts/text_mmap.c			new
external/bsd/ntp/dist/sntp/libopts/time.c			new
external/bsd/ntp/dist/sntp/libopts/tokenize.c			new
external/bsd/ntp/dist/sntp/libopts/usage.c			new
external/bsd/ntp/dist/sntp/libopts/version.c			new
external/bsd/ntp/dist/sntp/libopts/autoopts/options.h		new
external/bsd/ntp/dist/sntp/libopts/autoopts/project.h		new
external/bsd/ntp/dist/sntp/libopts/autoopts/usage-txt.h		new
external/bsd/ntp/dist/sntp/libopts/compat/_Noreturn.h		new
external/bsd/ntp/dist/sntp/libopts/compat/compat.h		new
external/bsd/ntp/dist/sntp/libopts/compat/pathfind.c		new
external/bsd/ntp/dist/sntp/libopts/compat/snprintf.c		new
external/bsd/ntp/dist/sntp/libopts/compat/strchr.c		new
external/bsd/ntp/dist/sntp/libopts/compat/strdup.c		new
external/bsd/ntp/dist/sntp/libopts/compat/windows-config.h	new
external/bsd/ntp/dist/sntp/libopts/m4/libopts.m4		new
external/bsd/ntp/dist/sntp/libopts/m4/liboptschk.m4		new
external/bsd/ntp/dist/sntp/libopts/m4/stdnoreturn.m4		new
external/bsd/ntp/dist/sntp/loc/README				new
external/bsd/ntp/dist/sntp/loc/darwin				new
external/bsd/ntp/dist/sntp/loc/debian				new
external/bsd/ntp/dist/sntp/loc/freebsd				new
external/bsd/ntp/dist/sntp/loc/legacy				new
external/bsd/ntp/dist/sntp/loc/netbsd				new
external/bsd/ntp/dist/sntp/loc/redhat				new
external/bsd/ntp/dist/sntp/loc/solaris				new
external/bsd/ntp/dist/sntp/m4/define_dir.m4			new
external/bsd/ntp/dist/sntp/m4/hms_search_lib.m4			new
external/bsd/ntp/dist/sntp/m4/libtool.m4			new
external/bsd/ntp/dist/sntp/m4/ltoptions.m4			new
external/bsd/ntp/dist/sntp/m4/ltsugar.m4			new
external/bsd/ntp/dist/sntp/m4/ltversion.m4			new
external/bsd/ntp/dist/sntp/m4/lt~obsolete.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_cacheversion.m4		new
external/bsd/ntp/dist/sntp/m4/ntp_compiler.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_crosscompile.m4		new
external/bsd/ntp/dist/sntp/m4/ntp_crypto_rand.m4		new
external/bsd/ntp/dist/sntp/m4/ntp_debug.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_dir_sep.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_facilitynames.m4		new
external/bsd/ntp/dist/sntp/m4/ntp_googletest.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_ipv6.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_lib_m.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_lineeditlibs.m4		new
external/bsd/ntp/dist/sntp/m4/ntp_locinfo.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_openssl.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_pkg_config.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_prog_cc.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_rlimit.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_sntp.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_sysexits.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_ver_suffix.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_vpathhack.m4			new
external/bsd/ntp/dist/sntp/m4/os_cflags.m4			new
external/bsd/ntp/dist/sntp/m4/snprintf.m4			new
external/bsd/ntp/dist/sntp/m4/version.m4			new
external/bsd/ntp/dist/sntp/scripts/Makefile.am			new
external/bsd/ntp/dist/sntp/scripts/Makefile.in			new
external/bsd/ntp/dist/sntp/scripts/cvo.sh			new
external/bsd/ntp/dist/sntp/scripts/genLocInfo			new
external/bsd/ntp/dist/sntp/scripts/mansec2subst.sed		new
external/bsd/ntp/dist/sntp/tests/Makefile.am			new
external/bsd/ntp/dist/sntp/tests/Makefile.in			new
external/bsd/ntp/dist/sntp/tests/crypto.cpp			new
external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h		new
external/bsd/ntp/dist/sntp/tests/keyFile.cpp			new
external/bsd/ntp/dist/sntp/tests/kodDatabase.cpp		new
external/bsd/ntp/dist/sntp/tests/kodFile.cpp			new
external/bsd/ntp/dist/sntp/tests/networking.cpp			new
external/bsd/ntp/dist/sntp/tests/packetHandling.cpp		new
external/bsd/ntp/dist/sntp/tests/packetProcessing.cpp		new
external/bsd/ntp/dist/sntp/tests/sntptest.h			new
external/bsd/ntp/dist/sntp/tests/tests-runner			new
external/bsd/ntp/dist/sntp/tests/utilities.cpp			new
external/bsd/ntp/dist/sntp/tests/data/debug-input-lfp-bin	new
external/bsd/ntp/dist/sntp/tests/data/debug-input-lfp-dec	new
external/bsd/ntp/dist/sntp/tests/data/debug-input-pkt		new
external/bsd/ntp/dist/sntp/tests/data/key-test-ascii		new
external/bsd/ntp/dist/sntp/tests/data/key-test-comments		new
external/bsd/ntp/dist/sntp/tests/data/key-test-empty		new
external/bsd/ntp/dist/sntp/tests/data/key-test-hex		new
external/bsd/ntp/dist/sntp/tests/data/key-test-invalid-hex	new
external/bsd/ntp/dist/sntp/tests/data/kod-expected-multiple	new
external/bsd/ntp/dist/sntp/tests/data/kod-expected-single	new
external/bsd/ntp/dist/sntp/tests/data/kod-test-blanks		new
external/bsd/ntp/dist/sntp/tests/data/kod-test-correct		new
external/bsd/ntp/dist/sntp/tests/data/kod-test-empty		new
external/bsd/ntp/dist/tests/Makefile.am				new
external/bsd/ntp/dist/tests/Makefile.in				new
external/bsd/ntp/dist/tests/libntp/Makefile.am			new
external/bsd/ntp/dist/tests/libntp/Makefile.in			new
external/bsd/ntp/dist/tests/libntp/a_md5encrypt.cpp		new
external/bsd/ntp/dist/tests/libntp/atoint.cpp			new
external/bsd/ntp/dist/tests/libntp/atouint.cpp			new
external/bsd/ntp/dist/tests/libntp/authkeys.cpp			new
external/bsd/ntp/dist/tests/libntp/buftvtots.cpp		new
external/bsd/ntp/dist/tests/libntp/calendar.cpp			new
external/bsd/ntp/dist/tests/libntp/caljulian.cpp		new
external/bsd/ntp/dist/tests/libntp/caltontp.cpp			new
external/bsd/ntp/dist/tests/libntp/calyearstart.cpp		new
external/bsd/ntp/dist/tests/libntp/clocktime.cpp		new
external/bsd/ntp/dist/tests/libntp/decodenetnum.cpp		new
external/bsd/ntp/dist/tests/libntp/hextoint.cpp			new
external/bsd/ntp/dist/tests/libntp/hextolfp.cpp			new
external/bsd/ntp/dist/tests/libntp/humandate.cpp		new
external/bsd/ntp/dist/tests/libntp/lfpfunc.cpp			new
external/bsd/ntp/dist/tests/libntp/lfptest.h			new
external/bsd/ntp/dist/tests/libntp/lfptostr.cpp			new
external/bsd/ntp/dist/tests/libntp/libntptest.cpp		new
external/bsd/ntp/dist/tests/libntp/libntptest.h			new
external/bsd/ntp/dist/tests/libntp/modetoa.cpp			new
external/bsd/ntp/dist/tests/libntp/msyslog.cpp			new
external/bsd/ntp/dist/tests/libntp/netof.cpp			new
external/bsd/ntp/dist/tests/libntp/numtoa.cpp			new
external/bsd/ntp/dist/tests/libntp/numtohost.cpp		new
external/bsd/ntp/dist/tests/libntp/octtoint.cpp			new
external/bsd/ntp/dist/tests/libntp/prettydate.cpp		new
external/bsd/ntp/dist/tests/libntp/recvbuff.cpp			new
external/bsd/ntp/dist/tests/libntp/refnumtoa.cpp		new
external/bsd/ntp/dist/tests/libntp/sfptostr.cpp			new
external/bsd/ntp/dist/tests/libntp/sockaddrtest.h		new
external/bsd/ntp/dist/tests/libntp/socktoa.cpp			new
external/bsd/ntp/dist/tests/libntp/ssl_init.cpp			new
external/bsd/ntp/dist/tests/libntp/statestr.cpp			new
external/bsd/ntp/dist/tests/libntp/strtolfp.cpp			new
external/bsd/ntp/dist/tests/libntp/timespecops.cpp		new
external/bsd/ntp/dist/tests/libntp/timestructs.cpp		new
external/bsd/ntp/dist/tests/libntp/timestructs.h		new
external/bsd/ntp/dist/tests/libntp/timevalops.cpp		new
external/bsd/ntp/dist/tests/libntp/tstotv.cpp			new
external/bsd/ntp/dist/tests/libntp/tvtots.cpp			new
external/bsd/ntp/dist/tests/libntp/uglydate.cpp			new
external/bsd/ntp/dist/tests/libntp/vi64ops.cpp			new
external/bsd/ntp/dist/tests/libntp/ymd2yd.cpp			new
external/bsd/ntp/dist/tests/ntpd/Makefile.am			new
external/bsd/ntp/dist/tests/ntpd/Makefile.in			new
external/bsd/ntp/dist/tests/ntpd/leapsec.cpp			new
external/bsd/ntp/dist/tests/ntpd/ntpdtest.cpp			new
external/bsd/ntp/dist/tests/ntpd/ntpdtest.h			new
external/bsd/ntp/dist/util/Makefile.am				new
external/bsd/ntp/dist/util/Makefile.in				new
external/bsd/ntp/dist/util/README				new
external/bsd/ntp/dist/util/audio-pcm.c				new
external/bsd/ntp/dist/util/byteorder.c				new
external/bsd/ntp/dist/util/hist.c				new
external/bsd/ntp/dist/util/invoke-ntp-keygen.menu		new
external/bsd/ntp/dist/util/invoke-ntp-keygen.texi		new
external/bsd/ntp/dist/util/jitter.c				new
external/bsd/ntp/dist/util/jitter.h				new
external/bsd/ntp/dist/util/kern.c				new
external/bsd/ntp/dist/util/longsize.c				new
external/bsd/ntp/dist/util/ntp-keygen-opts.c			new
external/bsd/ntp/dist/util/ntp-keygen-opts.def			new
external/bsd/ntp/dist/util/ntp-keygen-opts.h			new
external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman		new
external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc		new
external/bsd/ntp/dist/util/ntp-keygen.c				new
external/bsd/ntp/dist/util/ntp-keygen.html			new
external/bsd/ntp/dist/util/ntp-keygen.man.in			new
external/bsd/ntp/dist/util/ntp-keygen.mdoc.in			new
external/bsd/ntp/dist/util/ntp-keygen.texi			new
external/bsd/ntp/dist/util/ntptime.c				new
external/bsd/ntp/dist/util/pps-api.c				new
external/bsd/ntp/dist/util/precision.c				new
external/bsd/ntp/dist/util/sht.c				new
external/bsd/ntp/dist/util/testrs6000.c				new
external/bsd/ntp/dist/util/tg.c					new
external/bsd/ntp/dist/util/tg2.c				new
external/bsd/ntp/dist/util/tickadj.c				new
external/bsd/ntp/dist/util/timetrim.c				new
external/bsd/ntp/html/Makefile					new
external/bsd/ntp/include/config.h				new
external/bsd/ntp/lib/Makefile					new
external/bsd/ntp/lib/Makefile.inc				new
external/bsd/ntp/lib/libiscntp/Makefile				new
external/bsd/ntp/lib/libntp/Makefile				new
external/bsd/ntp/lib/libopts/Makefile				new
external/bsd/ntp/lib/libparse/Makefile				new
external/bsd/ntp/scripts/mkver					new
usr.sbin/Makefile						patch
usr.sbin/ntp/Makefile						delete
usr.sbin/ntp/Makefile.inc					delete
usr.sbin/ntp/importdate						delete
usr.sbin/ntp/html/Makefile					delete
usr.sbin/ntp/include/config.h					delete
usr.sbin/ntp/libisc/Makefile					delete
usr.sbin/ntp/libntp/Makefile					delete
usr.sbin/ntp/libopts/Makefile					delete
usr.sbin/ntp/libparse/Makefile					delete
usr.sbin/ntp/ntp-keygen/Makefile				delete
usr.sbin/ntp/ntp-keygen/ntp-keygen.8				delete
usr.sbin/ntp/ntpd/Makefile					delete
usr.sbin/ntp/ntpd/ntpd.8					delete
usr.sbin/ntp/ntpdate/Makefile					delete
usr.sbin/ntp/ntpdate/ntpdate.8					delete
usr.sbin/ntp/ntpdc/Makefile					delete
usr.sbin/ntp/ntpdc/ntpdc.8					delete
usr.sbin/ntp/ntpq/Makefile					delete
usr.sbin/ntp/ntpq/ntpq.8					delete
usr.sbin/ntp/ntptime/Makefile					delete
usr.sbin/ntp/ntptime/ntptime.8					delete
usr.sbin/ntp/ntptrace/Makefile					delete
usr.sbin/ntp/ntptrace/ntptrace.8				delete
usr.sbin/ntp/ntptrace/ntptrace.awk				delete
usr.sbin/ntp/scripts/mkver					delete
usr.sbin/sntp/Makefile						delete
usr.sbin/sntp/sntp.1						delete

	Update ntp to 4.2.8.  This pullup syncs with -current as of
	2014/01/06. CVE-2014-9293, CVE-2014-9294, CVE-2014-9295 and
	CVE-2014-9296.
@
text
@a0 39094
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.68 for ntp4 4.2.8.
#
# Report bugs to <http://bugs.ntp.org./>.
#
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
# Foundation, Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

if test "x$CONFIG_SHELL" = x; then
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@@\"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '\${1+\"\$@@\"}'='\"\$@@\"'
  setopt NO_GLOB_SUBST
else
  case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi
"
  as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :

else
  exitcode=1; echo positional parameters were not saved.
fi
test x\$exitcode = x0 || exit 1"
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1

  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    PATH=/empty FPATH=/empty; export PATH FPATH
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  if (eval "$as_required") 2>/dev/null; then :
  as_have_required=yes
else
  as_have_required=no
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :

else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  as_found=:
  case $as_dir in #(
	 /*)
	   for as_base in sh bash ksh sh5; do
	     # Try only shells that exist, to save several forks.
	     as_shell=$as_dir/$as_base
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  break 2
fi
fi
	   done;;
       esac
  as_found=false
done
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi; }
IFS=$as_save_IFS


      if test "x$CONFIG_SHELL" != x; then :
  # We cannot yet assume a decent shell, so we have to provide a
	# neutralization value for shells without unset; and this also
	# works around shells that cannot unset nonexistent variables.
	# Preserve -v and -x to the replacement shell.
	BASH_ENV=/dev/null
	ENV=/dev/null
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
	export CONFIG_SHELL
	case $- in # ((((
	  *v*x* | *x*v* ) as_opts=-vx ;;
	  *v* ) as_opts=-v ;;
	  *x* ) as_opts=-x ;;
	  * ) as_opts= ;;
	esac
	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@@"}
fi

    if test x$as_have_required = xno; then :
  $as_echo "$0: This script requires a shell more modern than all"
  $as_echo "$0: the shells that I found on your system."
  if test x${ZSH_VERSION+set} = xset ; then
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  else
    $as_echo "$0: Please tell bug-autoconf@@gnu.org and
$0: http://bugs.ntp.org./ about your system, including any
$0: error possibly output before this message. Then install
$0: a modern shell, or manually run the script under such a
$0: shell if you do have one."
  fi
  exit 1
fi
fi
fi
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS

## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset

# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@@" || test $? -eq 1`
  }
fi # as_fn_arith


# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  $as_echo "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits


  as_lineno_1=$LINENO as_lineno_1a=$LINENO
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"

SHELL=${CONFIG_SHELL-/bin/sh}


test -n "$DJDIR" || exec 7<&0 </dev/null
exec 6>&1

# Name of the host.
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME='ntp4'
PACKAGE_TARNAME='ntp4'
PACKAGE_VERSION='4.2.8'
PACKAGE_STRING='ntp4 4.2.8'
PACKAGE_BUGREPORT='http://bugs.ntp.org./'
PACKAGE_URL='http://www.ntp.org./'

# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_header_list=
enable_option_checking=no
ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
subdirs
PERLLIBDIR
NTP_KEYSDIR
GTEST_AVAILABLE_FALSE
GTEST_AVAILABLE_TRUE
GTEST_CPPFLAGS
GTEST_CXXFLAGS
GTEST_LIBS
GTEST_LDFLAGS
GTEST_CONFIG
SAVECONFIG_ENABLED_FALSE
SAVECONFIG_ENABLED_TRUE
LSCF
MAKE_NTPSNMPD
SNMP_CFLAGS
SNMP_CPPFLAGS
SNMP_LIBS
BUILD_SNTP_FALSE
BUILD_SNTP_TRUE
SNTP
MAKE_NTPDSIM
MAKE_LIBNTPSIM
MAKE_TIMETRIM
MAKE_TICKADJ
MAKE_NTPTIME
MAKE_ADJTIMED
CHUTEST
PROPDELAY
MAKE_PARSEKMODULE
DCFD
TESTDCF
MAKE_CHECK_LAYOUT
VER_SUFFIX
PKG_CONFIG
MAKE_CHECK_Y2K
MAKE_LIBPARSE_KERNEL
MAKE_LIBPARSE
LIBPARSE
HAVE_RLIMIT_STACK
HAVE_RLIMIT_MEMLOCK
LDADD_NLIST
PATH_NET_SNMP_CONFIG
CONFIG_SHELL
PATH_TEST
PATH_PERL
LIBOBJS
PTHREADS_FALSE
PTHREADS_TRUE
LIBISC_PTHREADS_NOTHREADS
PTHREAD_LIBS
HAVE_INLINE
ALLOCA
LIBM
EDITLINE_LIBS
LDADD_LIBNTP
NTP_CROSSCOMPILE_FALSE
NTP_CROSSCOMPILE_TRUE
LIBOPTS_DIR
LIBOPTS_CFLAGS
LIBOPTS_LDADD
NEED_LIBOPTS_FALSE
NEED_LIBOPTS_TRUE
INSTALL_LIBOPTS_FALSE
INSTALL_LIBOPTS_TRUE
POSIX_SHELL
GL_GENERATE_STDNORETURN_H_FALSE
GL_GENERATE_STDNORETURN_H_TRUE
STDNORETURN_H
LIBTOOL_DEPS
CXXCPP
OTOOL64
OTOOL
LIPO
NMEDIT
DSYMUTIL
MANIFEST_TOOL
RANLIB
ac_ct_AR
AR
DLLTOOL
OBJDUMP
LN_S
NM
ac_ct_DUMPBIN
DUMPBIN
LD
FGREP
SED
LIBTOOL
TIMETRIM_NI
TIMETRIM_MS
TIMETRIM_DS
TIMETRIM_DL
TIMETRIM_DB
TICKADJ_NI
TICKADJ_MS
TICKADJ_DS
TICKADJ_DL
TICKADJ_DB
SNTP_NI
SNTP_MS
SNTP_DS
SNTP_DL
SNTP_DB
NTP_WAIT_NI
NTP_WAIT_MS
NTP_WAIT_DS
NTP_WAIT_DL
NTP_WAIT_DB
NTP_KEYGEN_NI
NTP_KEYGEN_MS
NTP_KEYGEN_DS
NTP_KEYGEN_DL
NTP_KEYGEN_DB
NTPTRACE_NI
NTPTRACE_MS
NTPTRACE_DS
NTPTRACE_DL
NTPTRACE_DB
NTPTIME_NI
NTPTIME_MS
NTPTIME_DS
NTPTIME_DL
NTPTIME_DB
INSTALL_NTPSWEEP_FALSE
INSTALL_NTPSWEEP_TRUE
NTPSWEEP_NI
NTPSWEEP_MS
NTPSWEEP_DS
NTPSWEEP_DL
NTPSWEEP_DB
NTPSNMPD_NI
NTPSNMPD_MS
NTPSNMPD_DS
NTPSNMPD_DL
NTPSNMPD_DB
NTPQ_NI
NTPQ_MS
NTPQ_DS
NTPQ_DL
NTPQ_DB
NTPD_NI
NTPD_MS
NTPD_DS
NTPD_DL
NTPD_DB
NTPDSIM_NI
NTPDSIM_MS
NTPDSIM_DS
NTPDSIM_DL
NTPDSIM_DB
NTPDC_NI
NTPDC_MS
NTPDC_DS
NTPDC_DL
NTPDC_DB
NTPDATE_NI
NTPDATE_MS
NTPDATE_DS
NTPDATE_DL
NTPDATE_DB
MANTAGFMT
CALC_TICKADJ_NI
CALC_TICKADJ_MS
CALC_TICKADJ_DS
CALC_TICKADJ_DL
CALC_TICKADJ_DB
WANT_CALC_TICKADJ_MS_FALSE
WANT_CALC_TICKADJ_MS_TRUE
VPATH_HACK_FALSE
VPATH_HACK_TRUE
YFLAGS
YACC
am__fastdepCXX_FALSE
am__fastdepCXX_TRUE
CXXDEPMODE
ac_ct_CXX
CXXFLAGS
CXX
LDFLAGS_NTP
LDADD_NTP
CPPFLAGS_NTP
CFLAGS_NTP
EGREP
GREP
CPP
am__fastdepCC_FALSE
am__fastdepCC_TRUE
CCDEPMODE
AMDEPBACKSLASH
AMDEP_FALSE
AMDEP_TRUE
am__quote
am__include
DEPDIR
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
AM_BACKSLASH
AM_DEFAULT_VERBOSITY
am__untar
am__tar
AMTAR
am__leading_dot
SET_MAKE
AWK
mkdir_p
MKDIR_P
INSTALL_STRIP_PROGRAM
STRIP
install_sh
MAKEINFO
AUTOHEADER
AUTOMAKE
AUTOCONF
ACLOCAL
VERSION
PACKAGE
CYGPATH_W
am__isrc
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files='calc_tickadj_opts
ntp_wait_opts
ntpsweep_opts
ntptrace_opts
summary_opts
plot_summary_opts'
ac_user_opts='
enable_option_checking
enable_silent_rules
enable_dependency_tracking
with_locfile
enable_shared
enable_static
with_pic
enable_fast_install
with_gnu_ld
with_sysroot
enable_libtool_lock
enable_nls
enable_local_libopts
enable_libopts_install
with_autoopts_config
enable_local_libevent
with_lineeditlibs
enable_debugging
enable_thread_support
with_threads
with_yielding_select
enable_c99_snprintf
enable_clockctl
enable_linuxcaps
enable_solarisprivs
with_arlib
with_net_snmp_config
enable_libseccomp
with_stack_limit
with_memlock
enable_debug_timing
enable_dst_minutes
enable_ignore_dns_errors
enable_BANCOMM
enable_GPSVME
enable_all_clocks
enable_ACTS
enable_ARBITER
enable_ARCRON_MSF
enable_AS2201
enable_ATOM
enable_CHRONOLOG
enable_CHU
enable_AUDIO_CHU
enable_DATUM
enable_DUMBCLOCK
enable_FG
enable_HEATH
enable_HOPFSERIAL
enable_HOPFPCI
enable_HPGPS
enable_IRIG
enable_JJY
enable_JUPITER
enable_LEITCH
enable_LOCAL_CLOCK
enable_MX4200
enable_NEOCLOCK4X
enable_NMEA
enable_GPSD
enable_ONCORE
enable_PALISADE
enable_PCF
enable_PST
enable_RIPENCC
enable_SHM
enable_SPECTRACOM
enable_TPRO
enable_TRUETIME
enable_TT560
enable_ULINK
enable_TSYNCPCI
enable_WWV
enable_ZYFER
enable_parse_clocks
enable_COMPUTIME
enable_DCF7000
enable_HOPF6021
enable_MEINBERG
enable_RAWDCF
enable_RCC8000
enable_SCHMID
enable_TRIMTAIP
enable_TRIMTSIP
enable_WHARTON
enable_VARITEXT
enable_SEL240X
with_crypto
with_openssl_libdir
with_openssl_incdir
with_rpath
enable_openssl_random
enable_autokey
enable_kmem
enable_accurate_adjtime
enable_tick
enable_tickadj
enable_simulator
with_sntp
with_ntpsnmpd
enable_slew_always
enable_step_slew
enable_ntpdate_step
enable_hourly_todr_sync
enable_kernel_fll_bug
enable_bug1243_fix
enable_irig_sawtooth
enable_nist
enable_ntp_signd
enable_ipv6
with_kame
enable_getifaddrs
enable_saveconfig
with_gtest
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
CXX
CXXFLAGS
CCC
YACC
YFLAGS
CXXCPP'
ac_subdirs_all='sntp'

# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
ac_unrecognized_opts=
ac_unrecognized_sep=
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'

ac_prev=
ac_dashdash=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval $ac_prev=\$ac_option
    ac_prev=
    continue
  fi

  case $ac_option in
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *=)   ac_optarg= ;;
  *)    ac_optarg=yes ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;

  -enable-* | --enable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=\$ac_optarg ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=\$ac_optarg ;;

  -without-* | --without-*)
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=no ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) as_fn_error $? "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information"
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    case $ac_envvar in #(
      '' | [0-9]* | *[!_$as_cr_alnum]* )
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
    esac
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  as_fn_error $? "missing argument to $ac_option"
fi

if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  esac
fi

# Check all directory arguments for consistency.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
do
  eval ac_val=\$$ac_var
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used" >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  as_fn_error $? "working directory cannot be determined"
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  as_fn_error $? "pwd does not report name of working directory"


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_myself" : 'X\(//\)[^/]' \| \
	 X"$as_myself" : 'X\(//\)$' \| \
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r "$srcdir/$ac_unique_file"; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures ntp4 4.2.8 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp4]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of ntp4 4.2.8:";;
   esac
  cat <<\_ACEOF

Optional Features and Packages:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --enable-silent-rules          less verbose build output (undo: `make V=1')
  --disable-silent-rules         verbose build output (undo: `make V=0')
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --with-locfile=XXX      os-specific or "legacy"
  --enable-shared[=PKGS]  build shared libraries [default=no]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --disable-nls           disable nls support in libopts
  --enable-local-libopts  Use the supplied libopts tearoff code
  --enable-libopts-install
                          Install libopts with client installation
  --with-autoopts-config  specify the config-info script
  --enable-local-libevent Force using the supplied libevent tearoff code
  --with-lineeditlibs     edit,editline (readline may be specified if desired)
  defaults:               + yes, - no, s system-specific
  --enable-debugging      + include ntpd debugging code
  --enable-thread-support s use threads (+ if available)
  --with-threads	  with threads [auto]
  --with-yielding-select  with yielding select [auto]
  --enable-c99-snprintf   s force replacement
  --enable-clockctl       s Use /dev/clockctl for non-root clock control
  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
  --with-arlib            - deprecated, arlib not distributed
  --with-net-snmp-config  + =net-snmp-config
  --enable-libseccomp     EXPERIMENTAL: enable support for libseccomp
                          sandboxing (default is no)
  --with-stack-limit      ? =50 (200 for openbsd) 4k pages
  --with-memlock          ? =32 (megabytes)
  --enable-debug-timing   - include processing time debugging code (costs
                          performance)
  --enable-dst-minutes    =60 minutes per DST adjustment
  --enable-ignore-dns-errors
                          - retry DNS queries on any error
  --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
  --enable-GPSVME         - TrueTime GPS receiver/VME interface
  --enable-all-clocks     + include all suitable non-PARSE clocks:
  --enable-ACTS           s ACTS modem service
  --enable-ARBITER        + Arbiter 1088A/B GPS receiver
  --enable-ARCRON-MSF     + Arcron MSF receiver
  --enable-AS2201         + Austron 2200A/2201A GPS receiver
  --enable-ATOM           s ATOM PPS interface
  --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
  --enable-CHU            + CHU modem/decoder
  --enable-AUDIO-CHU      s CHU audio/decoder
  --enable-DATUM          s Datum Programmable Time System
  --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
  --enable-FG             + Forum Graphic GPS
  --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
  --enable-HOPFSERIAL     + hopf serial clock device
  --enable-HOPFPCI        + hopf 6039 PCI board
  --enable-HPGPS          + HP 58503A GPS receiver
  --enable-IRIG           s IRIG audio decoder
  --enable-JJY            + JJY receiver
  --enable-JUPITER        s Rockwell Jupiter GPS receiver
  --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
  --enable-LOCAL-CLOCK    + local clock reference
  --enable-MX4200         s Magnavox MX4200 GPS receiver
  --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
  --enable-NMEA           + NMEA GPS receiver
  --enable-GPSD           + GPSD JSON receiver
  --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
  --enable-PALISADE       s Palisade clock
  --enable-PCF            + Conrad parallel port radio clock
  --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
  --enable-RIPENCC        - RIPENCC specific Trimble driver
  --enable-SHM            s SHM clock attached thru shared memory
  --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
  --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
  --enable-TRUETIME       s Kinemetrics/TrueTime receivers
  --enable-TT560          - TrueTime 560 IRIG-B decoder
  --enable-ULINK          + Ultralink WWVB receiver
  --enable-TSYNCPCI       s Spectracom TSYNC timing board
  --enable-WWV            s WWV Audio receiver
  --enable-ZYFER          + Zyfer GPStarplus receiver
  --enable-parse-clocks   - include all suitable PARSE clocks:
  --enable-COMPUTIME      s Diem Computime Radio Clock
  --enable-DCF7000        s ELV/DCF7000 clock
  --enable-HOPF6021       s HOPF 6021 clock
  --enable-MEINBERG       s Meinberg clocks
  --enable-RAWDCF         s DCF77 raw time code
  --enable-RCC8000        s RCC 8000 clock
  --enable-SCHMID         s Schmid DCF77 clock
  --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
  --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
  --enable-WHARTON        s WHARTON 400A Series clock
  --enable-VARITEXT       s VARITEXT clock
  --enable-SEL240X        s SEL240X clock
  --with-crypto           + =openssl,libcrypto

  --with-openssl-libdir   + =/something/reasonable

  --with-openssl-incdir   + =/something/reasonable

  --without-rpath         s Disable auto-added -R linker paths

  --enable-openssl-random Use OpenSSL's crypto random number functions, if
                          available (default is yes)
  --enable-autokey        + support NTP Autokey protocol
  --enable-kmem           s read /dev/kmem for tick and/or tickadj
  --enable-accurate-adjtime
                          s the adjtime() call is accurate
  --enable-tick=VALUE     s force a value for 'tick'
  --enable-tickadj=VALUE  s force a value for 'tickadj'
  --enable-simulator      - build/install the NTPD simulator?
  --without-sntp          - disable building sntp and sntp/tests
  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
  --enable-slew-always    s always slew the time
  --enable-step-slew      s step and slew the time
  --enable-ntpdate-step   s if ntpdate should step the time
  --enable-hourly-todr-sync
                          s if we should sync TODR hourly
  --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
  --enable-bug1243-fix    + use unmodified autokey session keys
  --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
  --enable-nist           - if we should enable the NIST lockclock scheme
  --enable-ntp-signd      - Provide support for Samba's signing daemon,
                          =/var/run/ntp_signd
  --enable-ipv6           s use IPv6?

  --with-kame             - =/usr/local/v6
  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
  --enable-saveconfig     + saveconfig mechanism
  --with-gtest            Use the gtest framework (Default: if it's available)

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  YACC        The `Yet Another Compiler Compiler' implementation to use.
              Defaults to the first program found out of: `bison -y', `byacc',
              `yacc'.
  YFLAGS      The list of arguments that will be passed by default to $YACC.
              This script will default YFLAGS to the empty string to avoid a
              default value of `-d' given by some make applications.
  CXXCPP      C++ preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <http://bugs.ntp.org./>.
ntp4 home page: <http://www.ntp.org./>.
_ACEOF
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
      continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for guested configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
    else
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
ntp4 configure 4.2.8
generated by GNU Autoconf 2.68

Copyright (C) 2010 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi

## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##

# ac_fn_c_try_compile LINENO
# --------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_compile

# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_cpp

# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
# the include files in INCLUDES and setting the cache variable VAR
# accordingly.
ac_fn_c_check_header_mongrel ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if eval \${$3+:} false; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
$as_echo_n "checking $2 usability... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_header_compiler=yes
else
  ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
$as_echo_n "checking $2 presence... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$2>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ac_header_preproc=yes
else
  ac_header_preproc=no
fi
rm -f conftest.err conftest.i conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  yes:no: )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
  no:yes:* )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
( $as_echo "## ------------------------------------ ##
## Report this to http://bugs.ntp.org./ ##
## ------------------------------------ ##"
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=\$ac_header_compiler"
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_mongrel

# ac_fn_c_try_run LINENO
# ----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_c_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_run

# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_compile

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_link

# ac_fn_cxx_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_compile

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

int
main ()
{
return $2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_func

# ac_fn_cxx_try_cpp LINENO
# ------------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_cpp

# ac_fn_cxx_try_link LINENO
# -------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_link

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_type

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid; break
else
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=-1 ac_mid=-1
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=$ac_mid; break
else
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  ac_lo= ac_hi=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid
else
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in #((
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
'') ac_retval=1 ;;
esac
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
static long int longval () { return $2; }
static unsigned long int ulongval () { return $2; }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (($2) < 0)
    {
      long int i = longval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
else
  ac_retval=1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
rm -f conftest.val

  fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_compute_int

# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
# ---------------------------------------------
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
# accordingly.
ac_fn_c_check_decl ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  as_decl_name=`echo $2|sed 's/ *(.*//'`
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
#ifndef $as_decl_name
#ifdef __cplusplus
  (void) $as_decl_use;
#else
  (void) $as_decl_name;
#endif
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_decl

# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
# ----------------------------------------------------
# Tries to find if the field MEMBER exists in type AGGR, after including
# INCLUDES, setting cache variable VAR accordingly.
ac_fn_c_check_member ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
$as_echo_n "checking for $2.$3... " >&6; }
if eval \${$4+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$5
int
main ()
{
static $2 ac_aggr;
if (ac_aggr.$3)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$4=yes"
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$5
int
main ()
{
static $2 ac_aggr;
if (sizeof ac_aggr.$3)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$4=yes"
else
  eval "$4=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$4
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_member
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by ntp4 $as_me 4.2.8, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ $0 $@@

_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    $as_echo "PATH: $as_dir"
  done
IFS=$as_save_IFS

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    2)
      as_fn_append ac_configure_args1 " '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      as_fn_append ac_configure_args " '$ac_arg'"
      ;;
    esac
  done
done
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    $as_echo "## ---------------- ##
## Cache variables. ##
## ---------------- ##"
    echo
    # The following way of writing the cache mishandles newlines in values,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

    $as_echo "## ----------------- ##
## Output variables. ##
## ----------------- ##"
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      $as_echo "$ac_var='\''$ac_val'\''"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      $as_echo "## ------------------- ##
## File substitutions. ##
## ------------------- ##"
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	$as_echo "$ac_var='\''$ac_val'\''"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      $as_echo "## ----------- ##
## confdefs.h. ##
## ----------- ##"
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      $as_echo "$as_me: caught signal $ac_signal"
    $as_echo "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h

$as_echo "/* confdefs.h */" > confdefs.h

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_URL "$PACKAGE_URL"
_ACEOF


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
  # We do not want a PATH search for config.site.
  case $CONFIG_SITE in #((
    -*)  ac_site_file1=./$CONFIG_SITE;;
    */*) ac_site_file1=$CONFIG_SITE;;
    *)   ac_site_file1=./$CONFIG_SITE;;
  esac
elif test "x$prefix" != xNONE; then
  ac_site_file1=$prefix/share/config.site
  ac_site_file2=$prefix/etc/config.site
else
  ac_site_file1=$ac_default_prefix/share/config.site
  ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
  test "x$ac_site_file" = xNONE && continue
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file" \
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "failed to load site script $ac_site_file
See \`config.log' for more details" "$LINENO" 5; }
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special files
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

as_fn_append ac_header_list " stdarg.h"
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
fi
## -------------------- ##
## Main body of script. ##
## -------------------- ##

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



ac_aux_dir=
for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
  if test -f "$ac_dir/install-sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f "$ac_dir/install.sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f "$ac_dir/shtool"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
fi

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.







# Bump ntp_configure_cache_version for each change to configure.ac or
# .m4 files which invalidates cached values from previous configure
# runs.
#
# If the change affects cache variables used only by the main NTP
# configure.ac, then only its version number should be bumped, while
# the subdir configure.ac version numbers should be unchanged.  The
# same is true for a test/variable that is used only by one subdir
# being changed incompatibly; only that subdir's cache version needs
# bumping.
#
# If a change affects variables shared by all NTP configure scripts,
# please bump the version numbers of each.  If you are not sure, the
# safe choice is to bump all on any cache-invalidating change.
#
# In order to avoid the risk of version stamp collision between -stable
# and -dev branches, do not simply increment the version, instead use
# the date YYYYMMDD optionally with -HHMM if there is more than one
# bump in a day.

ntp_configure_cache_version=20120806

# When the cache version of config.cache and configure do not
# match, NTP_CACHEVERSION will flush the cache.



    ntp_cache_flush=1

    case "$ntp_cv_main_cache_version" in
     $ntp_configure_cache_version)
	# same version, good
	ntp_cache_flush=0
	;;
     '')
	# No cache, predates ntp_cv_main_cache_version, or is empty.
	case "$cache_file" in
	 /dev/null)
	    ntp_cache_flush=0
	    ;;
	 *)
	    case "$NTP_CACHEVERSION_PARENT" in
	     '')
		# Do not clear the cache immediately after it is created
		# empty as it is noisy.  Differentiate a newly-created
		# config.cache from one predating the cache version
		# mechanism by looking for the first cached variable set
		# by Autoconf
		case "$ac_cv_path_install" in
		 '')
		    # empty config.cache file
		    ntp_cache_flush=0
		esac
		;;
	     *)
		# Parent configure just created cache from empty,
		# flushing would be counterproductive.
		ntp_cache_flush=0;
		;;
	    esac
	esac
	;;
     *)
	# configure cache version mismatches config.cache version
	;;
    esac

    case "$ntp_cache_flush" in
     1)
	c_version="${ntp_cv_main_cache_version:-(no version found)}"

	# Do we flush all variables or exclude others' version stamps?

	case "$NTP_CACHEVERSION_PARENT" in
	 '')
	    # Clear all *_cv_* variables including our child subdirs'
	    # ntp_cv_*_cache_version variables.  This prevents subdir
	    # configure scripts from noticing a version mismatch just
	    # after the top configure in the invocation cleared and
	    # recreated the cache.

	    c_varname_list=`set |
			    sed -n -e 's/=.*$//' \
				   -e '/_cv_/p'
			   `
	    ;;
	 *)
	    # This is not the top configure this particular invocation.
	    # Clear all *_cv_* variables sparing the version stamps
	    # of other configure scripts, so we don't trigger
	    # useless repeated clearings.

	    c_varname_list=`set |
			    sed -n -e 's/=.*$//' \
				   -e '/ntp_cv_.*_cache_version/d' \
				   -e '/_cv_/p'
			   `
	esac

	for c_varname in $c_varname_list
	do
	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
	done

	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
$as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
$as_echo "$as_me: $cache_file version: $c_version" >&6;}
	{ c_varname=; unset c_varname;}
	{ c_varname_list=; unset c_varname_list;}
	{ c_version=; unset c_version;}
    esac

    { ntp_cache_flush=; unset ntp_cache_flush;}

    # save configure version in config.cache for next time
    ntp_cv_main_cache_version="$ntp_configure_cache_version"

    # let any subdir configure.ac NTP_CACHEVERSION invocations
    # know they are not the top level.
    NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT


am__api_version='1.11'

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if ${ac_cv_path_install+:} false; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in #((
  ./ | .// | /[cC]/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
	  fi
	fi
      done
    done
    ;;
esac

  done
IFS=$as_save_IFS

rm -rf conftest.one conftest.two conftest.dir

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    INSTALL=$ac_install_sh
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
$as_echo "$INSTALL" >&6; }

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
$as_echo_n "checking whether build environment is sane... " >&6; }
# Just in case
sleep 1
echo timestamp > conftest.file
# Reject unsafe characters in $srcdir or the absolute working directory
# name.  Accept space and tab only in the latter.
am_lf='
'
case `pwd` in
  *[\\\"\#\$\&\'\`$am_lf]*)
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
esac
case $srcdir in
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
esac

# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t "$srcdir/configure" conftest.file`
   fi
   rm -f conftest.file
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $srcdir/configure"; then

      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
alias in your environment" "$LINENO" 5
   fi

   test "$2" = conftest.file
   )
then
   # Ok.
   :
else
   as_fn_error $? "newly created file is older than distributed files!
Check your system clock" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
test "$program_prefix" != NONE &&
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
# Double any \ or $.
# By default was `s,x,x', remove it if useless.
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`

# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`

if test x"${MISSING+set}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  *)
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
  esac
fi
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
fi

if test x"${install_sh}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  *)
    install_sh="\${SHELL} $am_aux_dir/install-sh"
  esac
fi

# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
if test -z "$MKDIR_P"; then
  if ${ac_cv_path_mkdir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in mkdir gmkdir; do
	 for ac_exec_ext in '' $ac_executable_extensions; do
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir (GNU coreutils) '* | \
	     'mkdir (coreutils) '* | \
	     'mkdir (fileutils) '4.1*)
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
	       break 3;;
	   esac
	 done
       done
  done
IFS=$as_save_IFS

fi

  test -d ./--version && rmdir ./--version
  if test "${ac_cv_path_mkdir+set}" = set; then
    MKDIR_P="$ac_cv_path_mkdir -p"
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for MKDIR_P within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    MKDIR_P="$ac_install_sh -d"
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
$as_echo "$MKDIR_P" >&6; }

mkdir_p="$MKDIR_P"
case $mkdir_p in
  [\\/$]* | ?:[\\/]*) ;;
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi

rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
  am__leading_dot=.
else
  am__leading_dot=_
fi
rmdir .tst 2>/dev/null

if test "`cd $srcdir && pwd`" != "`pwd`"; then
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  # is not polluted with repeated "-I."
  am__isrc=' -I$(srcdir)'
  # test to see if srcdir already configured
  if test -f $srcdir/config.status; then
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  fi
fi

# test whether we have cygpath
if test -z "$CYGPATH_W"; then
  if (cygpath --version) >/dev/null 2>/dev/null; then
    CYGPATH_W='cygpath -w'
  else
    CYGPATH_W=echo
  fi
fi


# Define the identity of the package.
 PACKAGE='ntp4'
 VERSION='4.2.8'


cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION"
_ACEOF

# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}


AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}


AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}


AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}


MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.
# Always define AMTAR for backward compatibility.

AMTAR=${AMTAR-"${am_missing_run}tar"}

am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'






# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in
yes) AM_DEFAULT_VERBOSITY=0;;
no)  AM_DEFAULT_VERBOSITY=1;;
*)   AM_DEFAULT_VERBOSITY=0;;
esac
AM_BACKSLASH='\'


# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
$as_echo_n "checking build system type... " >&6; }
if ${ac_cv_build+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
$as_echo "$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
esac
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
$as_echo_n "checking host system type... " >&6; }
if ${ac_cv_host+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
$as_echo "$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac



cat >>confdefs.h <<_ACEOF
#define STR_SYSTEM "$host"
_ACEOF

ac_config_headers="$ac_config_headers config.h"


ntp_atom_ok=${ntp_atom_ok=no}
ntp_oncore_ok=${ntp_oncore_ok=no}
ntp_parse_ok=${ntp_parse_ok=no}
ntp_ripe_ncc_ok=${ntp_parse_ok=no}
ntp_jupiter_ok=${ntp_jupiter_ok=no}

DEPDIR="${am__leading_dot}deps"

ac_config_commands="$ac_config_commands depfiles"


am_make=${MAKE-make}
cat > confinc << 'END'
am__doit:
	@@echo this is the am__doit target
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
$as_echo_n "checking for style of include used by $am_make... " >&6; }
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# Ignore all kinds of additional output from `make'.
case `$am_make -s -f confmf 2> /dev/null` in #(
*the\ am__doit\ target*)
  am__include=include
  am__quote=
  _am_result=GNU
  ;;
esac
# Now try BSD make style include.
if test "$am__include" = "#"; then
   echo '.include "confinc"' > confmf
   case `$am_make -s -f confmf 2> /dev/null` in #(
   *the\ am__doit\ target*)
     am__include=.include
     am__quote="\""
     _am_result=BSD
     ;;
   esac
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
$as_echo "$_am_result" >&6; }
rm -f confinc confmf

# Check whether --enable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then :
  enableval=$enable_dependency_tracking;
fi

if test "x$enable_dependency_tracking" != xno; then
  am_depcomp="$ac_aux_dir/depcomp"
  AMDEPBACKSLASH='\'
fi
 if test "x$enable_dependency_tracking" != xno; then
  AMDEP_TRUE=
  AMDEP_FALSE='#'
else
  AMDEP_TRUE='#'
  AMDEP_FALSE=
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { { ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
	break;;
    * )
	break;;
  esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=

else
  ac_file=''
fi
if test -z "$ac_file"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "C compiler cannot create executables
See \`config.log' for more details" "$LINENO" 5; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext

rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
 return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
  { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
  if { ac_try='./conftest$ac_cv_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details" "$LINENO" 5; }
    fi
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }

rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if ${ac_cv_objext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of object files: cannot compile
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if ${ac_cv_c_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if ${ac_cv_prog_cc_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CC"   am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if ${ac_cv_path_GREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in grep ggrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
if ${ac_cv_path_EGREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in egrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if ${ac_cv_header_stdc+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done





  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
if test "x$ac_cv_header_minix_config_h" = xyes; then :
  MINIX=yes
else
  MINIX=
fi


  if test "$MINIX" = yes; then

$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h


$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h


$as_echo "#define _MINIX 1" >>confdefs.h

  fi

        case "$host_os" in
    hpux*)

$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h

      ;;
  esac


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
if ${ac_cv_safe_to_define___extensions__+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#         define __EXTENSIONS__ 1
          $ac_includes_default
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_safe_to_define___extensions__=yes
else
  ac_cv_safe_to_define___extensions__=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  test $ac_cv_safe_to_define___extensions__ = yes &&
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h

  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h

  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h

  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h


if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
fi
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
else
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi






ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if ${ac_cv_c_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if ${ac_cv_prog_cc_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CC"   am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi


# Ralf Wildenhues: With per-target flags we need CC_C_O
# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
if test "$am_t" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi


if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
  $as_echo_n "(cached) " >&6
else
    ac_pattern="Autoconf.*'x'"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
else
  ac_cv_prog_gcc_traditional=no
fi
rm -f conftest*


  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
fi
rm -f conftest*

  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
fi




CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=





case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#warning foo
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cpp_warning=yes
else
  ntp_cv_cpp_warning=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
void foo(void) __attribute__((__noreturn__));

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cc_attribute=yes
else
  ntp_cv_cc_attribute=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)

$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h

esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Wstrict_overflow=yes
else
  ntp_cv_gcc_Wstrict_overflow=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <stdlib.h>
			#include <stdio.h>

int
main ()
{

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi

else
  ntp_cv_gc_sections_runs=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    CFLAGS="$origCFLAGS"
	    { origCFLAGS=; unset origCFLAGS;}


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
$as_echo "$ntp_cv_gc_sections_runs" >&6; }
    case "$ntp_cv_gc_sections_runs" in
     yes)
	LDADD_LIBNTP="-Wl,--gc-sections"
	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
	;;
     no)
	LDADD_LIBNTP=
	;;
    esac
    CFLAGS_NTP="$CFLAGS_NTP -Wall"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
    case "$ntp_cv_gcc_Winit_self" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
    esac
    case "$ntp_cv_gcc_Wstrict_overflow" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
    esac
    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
esac


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
$as_echo_n "checking additional compiler flags... " >&6; }
    # allow ntp_os_flags to be preset to skip this stuff
    case "${ntp_os_cflags+set}" in
     set)
	;;
     *)
	ntp_os_cflags=
	case "$host_os" in
	 aix[1-3]*)
	    ;;
	 aix4.[0-2]*)
	    # turn on additional headers
	    ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
	    ;;
	 aix5.3*)
	    # avoid circular dependencies in yp headers, and more
	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
	    ;;
	 aix*)
	    # XXX Only verified thru AIX6.
	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
	    # avoid circular dependencies in yp headers
	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
	    ;;
	 amigaos)
	    ntp_os_cflags="-DSYS_AMIGA"
	    ;;
	 darwin*|macosx*|rhapsody*)
	    ntp_os_cflags="-D_P1003_1B_VISIBLE"
	    ;;
	 hpux10.*)		# at least for hppa2.0-hp-hpux10.20
	    case "$GCC" in
	     yes)
		;;
	     *)
		# use Ansi compiler on HPUX, and some -Wp magic
		ntp_os_cflags="-Ae -Wp,-H18816"
		;;
	    esac
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
	    ;;
	 hpux*)
	    case "$GCC" in
	     yes)
		;;
	     *)
		# use Ansi compiler on HPUX
		ntp_os_cflags="-Ae"
	    esac
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
	    ;;
	 irix6*)
	    case "$CC" in
	     cc)
		# do not use 64-bit compiler
		ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
	    esac
	    ;;
	 nextstep3)
	    ntp_os_cflags="-posix"
	    ;;
	 solaris1*|solaris2.[0-5]|solaris2.5.*)
	    ;;
	 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
	    ;;
	 solaris2*|sunos5*)
	    # turn on 64-bit file offset interface
	    ntp_os_cflags="-D_LARGEFILE64_SOURCE"
	    ;;
	 vxworks*)
	    case "$build" in
	     $host)
		;;
	     *)
		# Quick and dirty sanity check
		case "$VX_KERNEL" in
		 '')
		    as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
		esac
		ntp_os_cflags="-DSYS_VXWORKS"
	    esac
	    ;;
	esac
    esac
    case "$ntp_os_flags" in
     '')
	ntp_os_cflags_msg="none needed"
	;;
     *)
	ntp_os_cflags_msg="$ntp_os_cflags"
    esac
    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
$as_echo "$ntp_os_cflags_msg" >&6; }
    { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}



 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>

int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
		#include <sys/param.h>

int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;

int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)

$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h

     ;; #(
   *)
     as_fn_error $? "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
$as_echo_n "checking for working volatile... " >&6; }
if ${ac_cv_c_volatile+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

volatile int x;
int * volatile y = (int *) 0;
return !x && !y;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_volatile=yes
else
  ac_cv_c_volatile=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
$as_echo "$ac_cv_c_volatile" >&6; }
if test $ac_cv_c_volatile = no; then

$as_echo "#define volatile /**/" >>confdefs.h

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CXX" && break
done

  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if ${ac_cv_cxx_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if ${ac_cv_prog_cxx_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
else
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CXX"  am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CXX_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CXX_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CXX_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  am__fastdepCXX_TRUE=
  am__fastdepCXX_FALSE='#'
else
  am__fastdepCXX_TRUE='#'
  am__fastdepCXX_FALSE=
fi


for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_YACC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"

if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
fi
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
else
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
ntp_vpath_hack="no"
case "$srcdir::${force_ntp_vpath_hack-no}" in
 .::*)
    ;; # VPATH_HACK path is for VPATH builds only.
 *::yes)
    ntp_vpath_hack="yes"
    ;;
 *::*)
    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	ntp_vpath_hack="yes"
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
$as_echo "$ntp_vpath_hack" >&6; }
 if test x$ntp_vpath_hack = xyes; then
  VPATH_HACK_TRUE=
  VPATH_HACK_FALSE='#'
else
  VPATH_HACK_TRUE='#'
  VPATH_HACK_FALSE=
fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
$as_echo_n "checking for install dir and man conventions... " >&6; }


# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
else
  with_locfile=no

fi


(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genLocInfo -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genLocInfo.i 2> genLocInfo.err
. ./genLocInfo.i

case "$GENLOCINFO" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
$as_echo "in file $GENLOCINFOFILE" >&6; }
    rm genLocInfo.err genLocInfo.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
    ;;
esac

 if test "$CALC_TICKADJ_MS" ; then
  WANT_CALC_TICKADJ_MS_TRUE=
  WANT_CALC_TICKADJ_MS_FALSE='#'
else
  WANT_CALC_TICKADJ_MS_TRUE='#'
  WANT_CALC_TICKADJ_MS_FALSE=
fi











































 if test -z "$NTPSWEEP_NI" ; then
  INSTALL_NTPSWEEP_TRUE=
  INSTALL_NTPSWEEP_FALSE='#'
else
  INSTALL_NTPSWEEP_TRUE='#'
  INSTALL_NTPSWEEP_FALSE=
fi








































# So far, the only shared library we might use is libopts.
# It's a small library - we might as well use a static version of it.
# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then :
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_shared=no
fi









case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac



macro_version='2.4'
macro_revision='1.3293'













ltmain="$ac_aux_dir/ltmain.sh"

# Backslashify metacharacters that are still active within
# double-quoted strings.
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\(["`\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
$as_echo_n "checking how to print strings... " >&6; }
# Test print first, because it will be a builtin if present.
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='print -r --'
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='printf %s\n'
else
  # Use this function as a fallback that always works.
  func_fallback_echo ()
  {
    eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
  }
  ECHO='func_fallback_echo'
fi

# func_echo_all arg...
# Invoke $ECHO with all args, space-separated.
func_echo_all ()
{
    $ECHO ""
}

case "$ECHO" in
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
$as_echo "printf" >&6; } ;;
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
$as_echo "print -r" >&6; } ;;
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
$as_echo "cat" >&6; } ;;
esac














{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"











{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if ${ac_cv_path_FGREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  ac_path_FGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in fgrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
# Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_FGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_FGREP"; then
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_FGREP=$FGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"


test -z "$GREP" && GREP=grep



















# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if ${lt_cv_path_NM+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$DUMPBIN"; then :
    # Let the user override the test.
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in dumpbin "link -dump"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DUMPBIN+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$DUMPBIN" && break
  done
fi
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in dumpbin "link -dump"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_DUMPBIN" && break
done

  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DUMPBIN=$ac_ct_DUMPBIN
  fi
fi

    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
    *COFF*)
      DUMPBIN="$DUMPBIN -symbols"
      ;;
    *)
      DUMPBIN=:
      ;;
    esac
  fi

  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
fi
test -z "$NM" && NM=nm






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if ${lt_cv_nm_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

# find the maximum length of command line arguments
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if ${lt_cv_sys_max_cmd_len+:} false; then :
  $as_echo_n "(cached) " >&6
else
    i=0
  teststring="ABCD"

  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;

  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;

  cygwin* | mingw* | cegcc*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;

  mint*)
    # On MiNT this can take a long time and run out of memory.
    lt_cv_sys_max_cmd_len=8192;
    ;;

  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;

  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;

  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;

  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n "$lt_cv_sys_max_cmd_len"; then
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    else
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      for i in 1 2 3 4 5 6 7 8 ; do
        teststring=$teststring$teststring
      done
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
      # If test is not a shell built-in, we'll probably end up computing a
      # maximum length that is only half of the actual maximum length, but
      # we can't tell.
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
	      test $i != 17 # 1/2 MB should be enough
      do
        i=`expr $i + 1`
        teststring=$teststring$teststring
      done
      # Only check the string length outside the loop.
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
      teststring=
      # Add a significant safety factor because C++ compilers can tack on
      # massive amounts of additional arguments before passing them to the
      # linker.  It appears as though 1/2 is a usable value.
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    fi
    ;;
  esac

fi

if test -n $lt_cv_sys_max_cmd_len ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi
max_cmd_len=$lt_cv_sys_max_cmd_len






: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,b/c, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }


if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
else
  lt_unset=false
fi





# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
esac









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
if ${lt_cv_to_host_file_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
        ;;
    esac
    ;;
  *-*-cygwin* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_noop
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
        ;;
    esac
    ;;
  * ) # unhandled hosts (and "normal" native builds)
    lt_cv_to_host_file_cmd=func_convert_file_noop
    ;;
esac

fi

to_host_file_cmd=$lt_cv_to_host_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
$as_echo "$lt_cv_to_host_file_cmd" >&6; }





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
if ${lt_cv_to_tool_file_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
else
  #assume ordinary cross tools, or native build.
lt_cv_to_tool_file_cmd=func_convert_file_noop
case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
        ;;
    esac
    ;;
esac

fi

to_tool_file_cmd=$lt_cv_to_tool_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
$as_echo_n "checking for $LD option to reload object files... " >&6; }
if ${lt_cv_ld_reload_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_reload_flag='-r'
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
$as_echo "$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    if test "$GCC" != yes; then
      reload_cmds=false
    fi
    ;;
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac









if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OBJDUMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi

test -z "$OBJDUMP" && OBJDUMP=objdump









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
if ${lt_cv_deplibs_check_method+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
aix[4-9]*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    # Keep this pattern in sync with the one in func_win32_libid.
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;

cegcc*)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

freebsd* | dragonfly*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

haiku*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    ;;
  *)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    ;;
  esac
  ;;

interix[3-9]*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  ;;

irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  lt_cv_deplibs_check_method=pass_all
  ;;

netbsd*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;

newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;

*nto* | *qnx*)
  lt_cv_deplibs_check_method=pass_all
  ;;

openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;

osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

rdos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
  esac
  ;;

tpf*)
  lt_cv_deplibs_check_method=pass_all
  ;;
esac

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
$as_echo "$lt_cv_deplibs_check_method" >&6; }

file_magic_glob=
want_nocaseglob=no
if test "$build" = "$host"; then
  case $host_os in
  mingw* | pw32*)
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
      want_nocaseglob=yes
    else
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
    fi
    ;;
  esac
fi

file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown






















if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DLLTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DLLTOOL=$ac_ct_DLLTOOL
  fi
else
  DLLTOOL="$ac_cv_prog_DLLTOOL"
fi

test -z "$DLLTOOL" && DLLTOOL=dlltool










{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_sharedlib_from_linklib_cmd='unknown'

case $host_os in
cygwin* | mingw* | pw32* | cegcc*)
  # two different shell functions defined in ltmain.sh
  # decide which to use based on capabilities of $DLLTOOL
  case `$DLLTOOL --help 2>&1` in
  *--identify-strict*)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
    ;;
  *)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
    ;;
  esac
  ;;
*)
  # fallback: assume linklib IS sharedlib
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  ;;
esac

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO







if test -n "$ac_tool_prefix"; then
  for ac_prog in ar
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_AR" && break
done

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
fi

: ${AR=ar}
: ${AR_FLAGS=cru}











{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @@FILE support" >&5
$as_echo_n "checking for archiver @@FILE support... " >&6; }
if ${lt_cv_ar_at_file+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ar_at_file=no
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  echo conftest.$ac_objext > conftest.lst
      lt_ar_try='$AR $AR_FLAGS libconftest.a @@conftest.lst >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
	# Ensure the archiver fails upon bogus file names.
	rm -f conftest.$ac_objext libconftest.a
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	if test "$ac_status" -ne 0; then
          lt_cv_ar_at_file=@@
        fi
      fi
      rm -f conftest.* libconftest.a

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
$as_echo "$lt_cv_ar_at_file" >&6; }

if test "x$lt_cv_ar_at_file" = xno; then
  archiver_list_spec=
else
  archiver_list_spec=$lt_cv_ar_at_file
fi







if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

test -z "$STRIP" && STRIP=:






if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

test -z "$RANLIB" && RANLIB=:






# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=

if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    ;;
  *)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi

case $host_os in
  darwin*)
    lock_old_archive_extraction=yes ;;
  *)
    lock_old_archive_extraction=no ;;
esac







































# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# Check for command to grab the raw symbol name followed by C symbol from nm.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  $as_echo_n "(cached) " >&6
else

# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]

# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'

# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32* | cegcc*)
  symcode='[ABCDGISTW]'
  ;;
hpux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris*)
  symcode='[BDRT]'
  ;;
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac

# Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently,
# so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"

# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"

# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# Try without a prefix underscore, then with it.
for ac_symprfx in "" "_"; do

  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"

  # Write the raw and C identifiers.
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
    # Fake it for dumpbin and say T for any non-static function
    # and D for any global variable.
    # Also find C++ and __fastcall symbols from MSVC++,
    # which start with @@ or ?.
    lt_cv_sys_global_symbol_pipe="$AWK '"\
"     {last_section=section; section=\$ 3};"\
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
"     \$ 0!~/External *\|/{next};"\
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
"     {if(hide[section]) next};"\
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
"     s[1]~/^[@@?]/{print s[1], s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print t[1], substr(t[1],length(prfx))}"\
"     ' prfx=^$ac_symprfx"
  else
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  fi
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"

  # Check to see that the pipe works correctly.
  pipe_works=no

  rm -f conftest*
  cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(void);
void nm_test_func(void){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
_LT_EOF

  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<_LT_EOF > conftest.$ac_ext
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
/* DATA imports from DLLs on WIN32 con't be const, because runtime
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
# define LT_DLSYM_CONST
#elif defined(__osf__)
/* This system does not cope well with relocations in const data.  */
# define LT_DLSYM_CONST
#else
# define LT_DLSYM_CONST const
#endif

#ifdef __cplusplus
extern "C" {
#endif

_LT_EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'

	  cat <<_LT_EOF >> conftest.$ac_ext

/* The mapping between symbol names and symbols.  */
LT_DLSYM_CONST struct {
  const char *name;
  void       *address;
}
lt__PROGRAM__LTX_preloaded_symbols[] =
{
  { "@@PROGRAM@@", (void *) 0 },
_LT_EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
	  cat <<\_LT_EOF >> conftest.$ac_ext
  {0, (void *) 0}
};

/* This works around a problem in FreeBSD linker */
#ifdef FREEBSD_WORKAROUND
static const void *lt_preloaded_setup() {
  return lt__PROGRAM__LTX_preloaded_symbols;
}
#endif

#ifdef __cplusplus
}
#endif
_LT_EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_globsym_save_LIBS=$LIBS
	  lt_globsym_save_CFLAGS=$CFLAGS
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
	    pipe_works=yes
	  fi
	  LIBS=$lt_globsym_save_LIBS
	  CFLAGS=$lt_globsym_save_CFLAGS
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -rf conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done

fi

if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
fi

# Response file support.
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  nm_file_list_spec='@@'
elif $NM --help 2>/dev/null | grep '[@@]FILE' >/dev/null; then
  nm_file_list_spec='@@'
fi



























{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
$as_echo_n "checking for sysroot... " >&6; }

# Check whether --with-sysroot was given.
if test "${with_sysroot+set}" = set; then :
  withval=$with_sysroot;
else
  with_sysroot=no
fi


lt_sysroot=
case ${with_sysroot} in #(
 yes)
   if test "$GCC" = yes; then
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   fi
   ;; #(
 /*)
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   ;; #(
 no|'')
   ;; #(
 *)
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
$as_echo "${with_sysroot}" >&6; }
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   ;;
esac

 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
$as_echo "${lt_sysroot:-no}" >&6; }





# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then :
  enableval=$enable_libtool_lock;
fi

test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.$ac_objext` in
      *ELF-32*)
	HPUX_IA64_MODE="32"
	;;
      *ELF-64*)
	HPUX_IA64_MODE="64"
	;;
    esac
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    if test "$lt_cv_prog_gnu_ld" = yes; then
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -melf32bsmip"
	  ;;
	*N32*)
	  LD="${LD-ld} -melf32bmipn32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -melf64bmip"
	;;
      esac
    else
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -32"
	  ;;
	*N32*)
	  LD="${LD-ld} -n32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -64"
	  ;;
      esac
    fi
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
      *32-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_i386_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_i386"
	    ;;
	  ppc64-*linux*|powerpc64-*linux*)
	    LD="${LD-ld} -m elf32ppclinux"
	    ;;
	  s390x-*linux*)
	    LD="${LD-ld} -m elf_s390"
	    ;;
	  sparc64-*linux*)
	    LD="${LD-ld} -m elf32_sparc"
	    ;;
	esac
	;;
      *64-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_x86_64_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_x86_64"
	    ;;
	  ppc*-*linux*|powerpc*-*linux*)
	    LD="${LD-ld} -m elf64ppc"
	    ;;
	  s390*-*linux*|s390*-*tpf*)
	    LD="${LD-ld} -m elf64_s390"
	    ;;
	  sparc*-*linux*)
	    LD="${LD-ld} -m elf64_sparc"
	    ;;
	esac
	;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
if ${lt_cv_cc_needs_belf+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_cc_needs_belf=yes
else
  lt_cv_cc_needs_belf=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
$as_echo "$lt_cv_cc_needs_belf" >&6; }
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
	  LD="${LD-ld} -64"
	fi
	;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;
esac

need_locks="$enable_libtool_lock"

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
set dummy ${ac_tool_prefix}mt; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MANIFEST_TOOL"; then
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
if test -n "$MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
$as_echo "$MANIFEST_TOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  # Extract the first word of "mt", so it can be a program name with args.
set dummy mt; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_MANIFEST_TOOL"; then
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
if test -n "$ac_ct_MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_MANIFEST_TOOL" = x; then
    MANIFEST_TOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  fi
else
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
fi

test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
if ${lt_cv_path_mainfest_tool+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_path_mainfest_tool=no
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  cat conftest.err >&5
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
    lt_cv_path_mainfest_tool=yes
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
if test "x$lt_cv_path_mainfest_tool" != xyes; then
  MANIFEST_TOOL=:
fi






  case $host_os in
    rhapsody* | darwin*)
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DSYMUTIL"; then
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DSYMUTIL=$ac_cv_prog_DSYMUTIL
if test -n "$DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
$as_echo "$DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DSYMUTIL"; then
  ac_ct_DSYMUTIL=$DSYMUTIL
  # Extract the first word of "dsymutil", so it can be a program name with args.
set dummy dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DSYMUTIL"; then
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
if test -n "$ac_ct_DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
$as_echo "$ac_ct_DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DSYMUTIL" = x; then
    DSYMUTIL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DSYMUTIL=$ac_ct_DSYMUTIL
  fi
else
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NMEDIT"; then
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
NMEDIT=$ac_cv_prog_NMEDIT
if test -n "$NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
$as_echo "$NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_NMEDIT"; then
  ac_ct_NMEDIT=$NMEDIT
  # Extract the first word of "nmedit", so it can be a program name with args.
set dummy nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_NMEDIT"; then
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
if test -n "$ac_ct_NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
$as_echo "$ac_ct_NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_NMEDIT" = x; then
    NMEDIT=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    NMEDIT=$ac_ct_NMEDIT
  fi
else
  NMEDIT="$ac_cv_prog_NMEDIT"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
set dummy ${ac_tool_prefix}lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$LIPO"; then
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
LIPO=$ac_cv_prog_LIPO
if test -n "$LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
$as_echo "$LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_LIPO"; then
  ac_ct_LIPO=$LIPO
  # Extract the first word of "lipo", so it can be a program name with args.
set dummy lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_LIPO"; then
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_LIPO="lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
if test -n "$ac_ct_LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
$as_echo "$ac_ct_LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_LIPO" = x; then
    LIPO=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    LIPO=$ac_ct_LIPO
  fi
else
  LIPO="$ac_cv_prog_LIPO"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL"; then
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OTOOL=$ac_cv_prog_OTOOL
if test -n "$OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
$as_echo "$OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL"; then
  ac_ct_OTOOL=$OTOOL
  # Extract the first word of "otool", so it can be a program name with args.
set dummy otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL"; then
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL="otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
if test -n "$ac_ct_OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
$as_echo "$ac_ct_OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL" = x; then
    OTOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL=$ac_ct_OTOOL
  fi
else
  OTOOL="$ac_cv_prog_OTOOL"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OTOOL64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL64"; then
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OTOOL64=$ac_cv_prog_OTOOL64
if test -n "$OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
$as_echo "$OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL64"; then
  ac_ct_OTOOL64=$OTOOL64
  # Extract the first word of "otool64", so it can be a program name with args.
set dummy otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL64"; then
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL64="otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
if test -n "$ac_ct_OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
$as_echo "$ac_ct_OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL64" = x; then
    OTOOL64=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL64=$ac_ct_OTOOL64
  fi
else
  OTOOL64="$ac_cv_prog_OTOOL64"
fi



























    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
$as_echo_n "checking for -single_module linker flag... " >&6; }
if ${lt_cv_apple_cc_single_mod+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_apple_cc_single_mod=no
      if test -z "${LT_MULTI_MODULE}"; then
	# By default we will add the -single_module flag. You can override
	# by either setting the environment variable LT_MULTI_MODULE
	# non-empty at configure time, or by adding -multi_module to the
	# link flags.
	rm -rf libconftest.dylib*
	echo "int foo(void){return 1;}" > conftest.c
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-dynamiclib -Wl,-single_module conftest.c" >&5
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
        _lt_result=$?
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
	  lt_cv_apple_cc_single_mod=yes
	else
	  cat conftest.err >&5
	fi
	rm -rf libconftest.dylib*
	rm -f conftest.*
      fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
if ${lt_cv_ld_exported_symbols_list+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_exported_symbols_list=no
      save_LDFLAGS=$LDFLAGS
      echo "_main" > conftest.sym
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_ld_exported_symbols_list=yes
else
  lt_cv_ld_exported_symbols_list=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
$as_echo_n "checking for -force_load linker flag... " >&6; }
if ${lt_cv_ld_force_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_force_load=no
      cat > conftest.c << _LT_EOF
int forced_loaded() { return 2;}
_LT_EOF
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
      echo "$AR cru libconftest.a conftest.o" >&5
      $AR cru libconftest.a conftest.o 2>&5
      echo "$RANLIB libconftest.a" >&5
      $RANLIB libconftest.a 2>&5
      cat > conftest.c << _LT_EOF
int main() { return 0;}
_LT_EOF
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
      _lt_result=$?
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
	lt_cv_ld_force_load=yes
      else
	cat conftest.err >&5
      fi
        rm -f conftest.err libconftest.a conftest conftest.c
        rm -rf conftest.dSYM

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
$as_echo "$lt_cv_ld_force_load" >&6; }
    case $host_os in
    rhapsody* | darwin1.[012])
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
    darwin1.*)
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    darwin*) # darwin 5.x on
      # if running on 10.5 or later, the deployment target defaults
      # to the OS version, if on x86, and 10.4, the deployment
      # target defaults to 10.4. Don't you love it?
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
	10.[012]*)
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
	10.*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
      esac
    ;;
  esac
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
      _lt_dar_single_mod='$single_module'
    fi
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
    else
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    fi
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
      _lt_dsymutil='~$DSYMUTIL $lib || :'
    else
      _lt_dsymutil=
    fi
    ;;
  esac

for ac_header in dlfcn.h
do :
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
"
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLFCN_H 1
_ACEOF

fi

done




func_stripname_cnf ()
{
  case ${2} in
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  esac
} # func_stripname_cnf





# Set options



        enable_dlopen=no


  enable_win32_dll=no



  # Check whether --enable-static was given.
if test "${enable_static+set}" = set; then :
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_static=yes
fi










# Check whether --with-pic was given.
if test "${with_pic+set}" = set; then :
  withval=$with_pic; pic_mode="$withval"
else
  pic_mode=default
fi


test -z "$pic_mode" && pic_mode=default







  # Check whether --enable-fast-install was given.
if test "${enable_fast_install+set}" = set; then :
  enableval=$enable_fast_install; p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
    *)
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_fast_install=yes
fi











# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ltmain"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'


























test -z "$LN_S" && LN_S="ln -s"














if test -n "${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
$as_echo_n "checking for objdir... " >&6; }
if ${lt_cv_objdir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
fi
rmdir .libs 2>/dev/null
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
$as_echo "$lt_cv_objdir" >&6; }
objdir=$lt_cv_objdir





cat >>confdefs.h <<_ACEOF
#define LT_OBJDIR "$lt_cv_objdir/"
_ACEOF




case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
esac

# Global variables:
ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a

with_gnu_ld="$lt_cv_prog_gnu_ld"

old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
test -z "$LD" && LD=ld
test -z "$ac_objext" && ac_objext=o

for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`


# Only perform the check for file, if the check method requires it
test -z "$MAGIC_CMD" && MAGIC_CMD=file
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
if ${lt_cv_path_MAGIC_CMD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi





if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
$as_echo_n "checking for file... " >&6; }
if ${lt_cv_path_MAGIC_CMD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  else
    MAGIC_CMD=:
  fi
fi

  fi
  ;;
esac

# Use C for the default configuration in the libtool script

lt_save_CC="$CC"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# Source file extension for C test sources.
ac_ext=c

# Object file extension for compiled C test sources.
objext=o
objext=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;"

# Code to be used in simple link tests
lt_simple_link_test_code='int main(){return(0);}'







# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC

# Save the default compiler, since it gets overwritten when the other
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
compiler_DEFAULT=$CC

# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


## CAVEAT EMPTOR:
## There is no encapsulation within the following macros, do not change
## the running order or otherwise move them around unless you know exactly
## what you are doing...
if test -n "$compiler"; then

lt_prog_compiler_no_builtin_flag=

if test "$GCC" = yes; then
  case $cc_basename in
  nvcc*)
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  *)
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  esac

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }

if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
else
    :
fi

fi






  lt_prog_compiler_wl=
lt_prog_compiler_pic=
lt_prog_compiler_static=


  if test "$GCC" = yes; then
    lt_prog_compiler_wl='-Wl,'
    lt_prog_compiler_static='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      ;;

    haiku*)
      # PIC is the default for Haiku.
      # The "-static" flag exists, but is broken.
      lt_prog_compiler_static=
      ;;

    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='-fPIC'
	;;
      esac
      ;;

    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared=no
      enable_shared=no
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic=-Kconform_pic
      fi
      ;;

    *)
      lt_prog_compiler_pic='-fPIC'
      ;;
    esac

    case $cc_basename in
    nvcc*) # Cuda Compiler Driver 2.2
      lt_prog_compiler_wl='-Xlinker '
      lt_prog_compiler_pic='-Xcompiler -fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      else
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static='-non_shared'
      ;;

    linux* | k*bsd*-gnu | kopensolaris*-gnu)
      case $cc_basename in
      # old Intel for x86_64 which still supported -KPIC.
      ecc*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-KPIC'
	lt_prog_compiler_static='-static'
        ;;
      # icc used to be incompatible with GCC.
      # ICC 10 doesn't accept -KPIC any more.
      icc* | ifort*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
        ;;
      # Lahey Fortran 8.1.
      lf95*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='--shared'
	lt_prog_compiler_static='--static'
	;;
      nagfor*)
	# NAG Fortran compiler
	lt_prog_compiler_wl='-Wl,-Wl,,'
	lt_prog_compiler_pic='-PIC'
	lt_prog_compiler_static='-Bstatic'
	;;
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fpic'
	lt_prog_compiler_static='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static='-non_shared'
        ;;
      xl* | bgxl* | bgf* | mpixl*)
	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-qpic'
	lt_prog_compiler_static='-qstaticlink'
	;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ F* | *Sun*Fortran*)
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl=''
	  ;;
	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Wl,'
	  ;;
	esac
	;;
      esac
      ;;

    newsos6)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static='-non_shared'
      ;;

    rdos*)
      lt_prog_compiler_static='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
	lt_prog_compiler_wl='-Qoption ld ';;
      *)
	lt_prog_compiler_wl='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl='-Qoption ld '
      lt_prog_compiler_pic='-PIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic='-Kconform_pic'
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_can_build_shared=no
      ;;

    uts4*)
      lt_prog_compiler_pic='-pic'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared=no
      ;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic=
    ;;
  *)
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
if ${lt_cv_prog_compiler_pic+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
if ${lt_cv_prog_compiler_pic_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }

if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
    case $lt_prog_compiler_pic in
     "" | " "*) ;;
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
     esac
else
    lt_prog_compiler_pic=
     lt_prog_compiler_can_build_shared=no
fi

fi











#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if ${lt_cv_prog_compiler_static_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works=yes
       fi
     else
       lt_cv_prog_compiler_static_works=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }

if test x"$lt_cv_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi







  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }






  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi






  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  runpath_var=
  allow_undefined_flag=
  always_export_symbols=no
  archive_cmds=
  archive_expsym_cmds=
  compiler_needs_object=no
  enable_shared_with_static_runtimes=no
  export_dynamic_flag_spec=
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  hardcode_automatic=no
  hardcode_direct=no
  hardcode_direct_absolute=no
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  inherit_rpath=no
  link_all_deplibs=unknown
  module_cmds=
  module_expsym_cmds=
  old_archive_from_new_cmds=
  old_archive_from_expsyms_cmds=
  thread_safe_flag_spec=
  whole_archive_flag_spec=
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  # Exclude shared library initialization/finalization symbols.
  extract_expsyms_cmds=

  case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs=yes

  # On some targets, GNU ld is compatible enough with the native linker
  # that we're better off using the native interface for both.
  lt_use_gnu_ld_interface=no
  if test "$with_gnu_ld" = yes; then
    case $host_os in
      aix*)
	# The AIX port of GNU ld has always aspired to compatibility
	# with the native linker.  However, as the warning in the GNU ld
	# block says, versions before 2.19.5* couldn't really create working
	# shared libraries, regardless of the interface used.
	case `$LD -v 2>&1` in
	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
	  *)
	    lt_use_gnu_ld_interface=yes
	    ;;
	esac
	;;
      *)
	lt_use_gnu_ld_interface=yes
	;;
    esac
  fi

  if test "$lt_use_gnu_ld_interface" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    else
      whole_archive_flag_spec=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>&1` in
      *GNU\ gold*) supports_anon_versioning=yes ;;
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix[3-9]*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.19, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to install binutils
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
*** You will then need to restart the configuration process.

_LT_EOF
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
      ;;

    beos*)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec='-L$libdir'
      export_dynamic_flag_spec='${wl}--export-all-symbols'
      allow_undefined_flag=unsupported
      always_export_symbols=no
      enable_shared_with_static_runtimes=yes
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'

      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs=no
      fi
      ;;

    haiku*)
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      link_all_deplibs=yes
      ;;

    interix[3-9]*)
      hardcode_direct=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
      tmp_diet=no
      if test "$host_os" = linux-dietlibc; then
	case $cc_basename in
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
	esac
      fi
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
	 && test "$tmp_diet" = no
      then
	tmp_addflag=' $pic_flag'
	tmp_sharedflag='-shared'
	case $cc_basename,$host_cpu in
        pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95* | pgfortran*)
					# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	lf95*)				# Lahey Fortran 8.1
	  whole_archive_flag_spec=
	  tmp_sharedflag='--shared' ;;
	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
	  tmp_sharedflag='-qmkshrobj'
	  tmp_addflag= ;;
	nvcc*)	# Cuda Compiler Driver 2.2
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  ;;
	esac
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)			# Sun C 5.9
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  tmp_sharedflag='-G' ;;
	*Sun\ F*)			# Sun Fortran 8.3
	  tmp_sharedflag='-G' ;;
	esac
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

        if test "x$supports_anon_versioning" = xyes; then
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	    echo "local: *; };" >> $output_objdir/$libname.ver~
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
        fi

	case $cc_basename in
	xlf* | bgf* | bgxlf* | mpixlf*)
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
	  hardcode_libdir_flag_spec=
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
	  if test "x$supports_anon_versioning" = xyes; then
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	      echo "local: *; };" >> $output_objdir/$libname.ver~
	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
	  fi
	  ;;
	esac
      else
        ld_shlibs=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  # For security reasons, it is highly recommended that you always
	  # use absolute paths for naming shared libraries, and exclude the
	  # DT_RUNPATH tag from executables and libraries.  But doing so
	  # requires that you compile everything twice, which is a pain.
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  else
	    ld_shlibs=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    *)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;
    esac

    if test "$ld_shlibs" = no; then
      runpath_var=
      hardcode_libdir_flag_spec=
      export_dynamic_flag_spec=
      whole_archive_flag_spec=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag=unsupported
      always_export_symbols=yes
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct=unsupported
      fi
      ;;

    aix[4-9]*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	# Also, AIX nm treats weak defined symbols like other global
	# defined symbols, whereas GNU nm marks them as "W".
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	  for ld_flag in $LDFLAGS; do
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
	    aix_use_runtimelinking=yes
	    break
	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds=''
      hardcode_direct=yes
      hardcode_direct_absolute=yes
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      file_list_spec='${wl}-f,'

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	  # We have reworked collect2
	  :
	  else
	  # We have old collect2
	  hardcode_direct=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L=yes
	  hardcode_libdir_flag_spec='-L$libdir'
	  hardcode_libdir_separator=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      export_dynamic_flag_spec='${wl}-bexpall'
      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='-berok'
        # Determine the default libpath from the value encoded in an
        # empty executable.
        if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath_+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath_
fi

        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
      else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag="-z nodefs"
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an
	 # empty executable.
	 if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath_+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath_
fi

	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag=' ${wl}-bernotok'
	  allow_undefined_flag=' ${wl}-berok'
	  if test "$with_gnu_ld" = yes; then
	    # We only use this code for GNU lds that support --whole-archive.
	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	  else
	    # Exported symbols can be pulled into shared objects from archives
	    whole_archive_flag_spec='$convenience'
	  fi
	  archive_cmds_need_lc=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec=-rdynamic
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      case $cc_basename in
      cl*)
	# Native MSVC
	hardcode_libdir_flag_spec=' '
	allow_undefined_flag=unsupported
	always_export_symbols=yes
	file_list_spec='@@'
	# Tell ltmain to make .lib files, not .a files.
	libext=lib
	# Tell ltmain to make .dll files, not .so files.
	shrext_cmds=".dll"
	# FIXME: Setting linknames here is a bad hack.
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	  else
	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	  fi~
	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	  linknames='
	# The linker will not automatically build a static lib if we build a DLL.
	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
	enable_shared_with_static_runtimes=yes
	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
	# Don't use ranlib
	old_postinstall_cmds='chmod 644 $oldlib'
	postlink_cmds='lt_outputfile="@@OUTPUT@@"~
	  lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	  case $lt_outputfile in
	    *.exe|*.EXE) ;;
	    *)
	      lt_outputfile="$lt_outputfile.exe"
	      lt_tool_outputfile="$lt_tool_outputfile.exe"
	      ;;
	  esac~
	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	    $RM "$lt_outputfile.manifest";
	  fi'
	;;
      *)
	# Assume MSVC wrapper
	hardcode_libdir_flag_spec=' '
	allow_undefined_flag=unsupported
	# Tell ltmain to make .lib files, not .a files.
	libext=lib
	# Tell ltmain to make .dll files, not .so files.
	shrext_cmds=".dll"
	# FIXME: Setting linknames here is a bad hack.
	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
	# The linker will automatically build a .lib file if we build a DLL.
	old_archive_from_new_cmds='true'
	# FIXME: Should let the user specify the lib program.
	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
	enable_shared_with_static_runtimes=yes
	;;
      esac
      ;;

    darwin* | rhapsody*)


  archive_cmds_need_lc=no
  hardcode_direct=no
  hardcode_automatic=yes
  hardcode_shlibpath_var=unsupported
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  else
    whole_archive_flag_spec=''
  fi
  link_all_deplibs=yes
  allow_undefined_flag="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=func_echo_all
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"

  else
  ld_shlibs=no
  fi

      ;;

    dgux*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    freebsd1*)
      ld_shlibs=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | dragonfly*)
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_direct=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L=yes
      export_dynamic_flag_spec='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_flag_spec_ld='+b $libdir'
	hardcode_libdir_separator=:
	hardcode_direct=yes
	hardcode_direct_absolute=yes
	export_dynamic_flag_spec='${wl}-E'
	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)

	  # Older versions of the 11.00 compiler do not understand -b yet
	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
$as_echo_n "checking if $CC understands -b... " >&6; }
if ${lt_cv_prog_compiler__b+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler__b=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS -b"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler__b=yes
       fi
     else
       lt_cv_prog_compiler__b=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
$as_echo "$lt_cv_prog_compiler__b" >&6; }

if test x"$lt_cv_prog_compiler__b" = xyes; then
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
else
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
fi

	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_direct=no
	  hardcode_shlibpath_var=no
	  ;;
	*)
	  hardcode_direct=yes
	  hardcode_direct_absolute=yes
	  export_dynamic_flag_spec='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	# Try to use the -exported_symbol ld option, if it does not
	# work, assume that -exports_file does not work either and
	# implicitly export all symbols.
	# This should be the same for all languages, so no per-tag cache variable.
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
if ${lt_cv_irix_exported_symbol+:} false; then :
  $as_echo_n "(cached) " >&6
else
  save_LDFLAGS="$LDFLAGS"
	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo (void) { return 0; }
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_irix_exported_symbol=yes
else
  lt_cv_irix_exported_symbol=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
           LDFLAGS="$save_LDFLAGS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
	if test "$lt_cv_irix_exported_symbol" = yes; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
	fi
      else
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      inherit_rpath=yes
      link_all_deplibs=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    newsos6)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_shlibpath_var=no
      ;;

    *nto* | *qnx*)
      ;;

    openbsd*)
      if test -f /usr/libexec/ld.so; then
	hardcode_direct=yes
	hardcode_shlibpath_var=no
	hardcode_direct_absolute=yes
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	  export_dynamic_flag_spec='${wl}-E'
	else
	  case $host_os in
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	     hardcode_libdir_flag_spec='-R$libdir'
	     ;;
	   *)
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	     ;;
	  esac
	fi
      else
	ld_shlibs=no
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec='-rpath $libdir'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_separator=:
      ;;

    solaris*)
      no_undefined_flag=' -z defs'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
      else
	case `$CC -V 2>&1` in
	*"Compilers 5.0"*)
	  wlarc=''
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
	  ;;
	*)
	  wlarc='${wl}'
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
	  ;;
	esac
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_shlibpath_var=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
	# The compiler driver will combine and reorder linker options,
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
	# but is careful enough not to reorder.
	# Supported since Solaris 2.6 (maybe 2.5.1?)
	if test "$GCC" = yes; then
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
	else
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
	fi
	;;
      esac
      link_all_deplibs=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds='$CC -r -o $output$reload_objs'
	  hardcode_direct=no
        ;;
	motorola)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var=no
      ;;

    sysv4.3*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag='${wl}-z,text'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag='${wl}-z,text'
      allow_undefined_flag='${wl}-z,nodefs'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      export_dynamic_flag_spec='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    *)
      ld_shlibs=no
      ;;
    esac

    if test x$host_vendor = xsni; then
      case $host in
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
	export_dynamic_flag_spec='${wl}-Blargedynsym'
	;;
      esac
    fi
  fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
$as_echo "$ld_shlibs" >&6; }
test "$ld_shlibs" = no && can_build_shared=no

with_gnu_ld=$with_gnu_ld















#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
if ${lt_cv_archive_cmds_need_lc+:} false; then :
  $as_echo_n "(cached) " >&6
else
  $RM conftest*
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext

	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
	  soname=conftest
	  lib=conftest
	  libobjs=conftest.$ac_objext
	  deplibs=
	  wl=$lt_prog_compiler_wl
	  pic_flag=$lt_prog_compiler_pic
	  compiler_flags=-v
	  linker_flags=-v
	  verstring=
	  output_objdir=.
	  libname=conftest
	  lt_save_allow_undefined_flag=$allow_undefined_flag
	  allow_undefined_flag=
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	  then
	    lt_cv_archive_cmds_need_lc=no
	  else
	    lt_cv_archive_cmds_need_lc=yes
	  fi
	  allow_undefined_flag=$lt_save_allow_undefined_flag
	else
	  cat conftest.err 1>&5
	fi
	$RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
      ;;
    esac
  fi
  ;;
esac





























































































































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

if test "$GCC" = yes; then
  case $host_os in
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
    *) lt_awk_arg="/^libraries:/" ;;
  esac
  case $host_os in
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
    *) lt_sed_strip_eq="s,=/,/,g" ;;
  esac
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  case $lt_search_path_spec in
  *\;*)
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
    ;;
  *)
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
    ;;
  esac
  # Ok, now we have the path, separated by spaces, we can step through it
  # and add multilib dir if necessary.
  lt_tmp_lt_search_path_spec=
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  for lt_sys_path in $lt_search_path_spec; do
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
    else
      test -d "$lt_sys_path" && \
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
    fi
  done
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
BEGIN {RS=" "; FS="/|\n";} {
  lt_foo="";
  lt_count=0;
  for (lt_i = NF; lt_i > 0; lt_i--) {
    if ($lt_i != "" && $lt_i != ".") {
      if ($lt_i == "..") {
        lt_count++;
      } else {
        if (lt_count == 0) {
          lt_foo="/" $lt_i lt_foo;
        } else {
          lt_count--;
        }
      }
    }
  }
  if (lt_foo != "") { lt_freq[lt_foo]++; }
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
}'`
  # AWK program above erroneously prepends '/' to C:/dos/paths
  # for these hosts.
  case $host_os in
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  esac
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$cc_basename in
  yes,*)
    # gcc
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'

      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    dynamic_linker='Win32 ld.exe'
    ;;

  *,cl*)
    # Native MSVC
    libname_spec='$name'
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'

    case $build_os in
    mingw*)
      sys_lib_search_path_spec=
      lt_save_ifs=$IFS
      IFS=';'
      for lt_path in $LIB
      do
        IFS=$lt_save_ifs
        # Let DOS variable expansion print the short 8.3 style file name.
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @@echo %~si"`
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
      done
      IFS=$lt_save_ifs
      # Convert to MSYS style.
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
      ;;
    cygwin*)
      # Convert to unix form, then to dos form, then back to unix form
      # but this time dos style (no spaces!) so that the unix form looks
      # like /cygdrive/c/PROGRA~1:/cygdr...
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      ;;
    *)
      sys_lib_search_path_spec="$LIB"
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      fi
      # FIXME: find the short name or the path components, as spaces are
      # common. (e.g. "Program Files" -> "PROGRA~1")
      ;;
    esac

    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
    dynamic_linker='Win32 link.exe'
    ;;

  *)
    # Assume MSVC wrapper
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    dynamic_linker='Win32 ld.exe'
    ;;
  esac
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

haiku*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  dynamic_linker="$host_os runtime_loader"
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  postinstall_cmds='chmod 555 $lib'
  # or fails outright, so override atomically:
  install_override_mode=555
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no

  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




























































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" ||
   test -n "$runpath_var" ||
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi






  if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

    ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if ${ac_cv_lib_dld_shl_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if ${ac_cv_lib_svld_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if ${ac_cv_lib_dld_dld_link+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi

















striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP" ; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi












  # Report which library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test "$can_build_shared" = "no" && enable_shared=no

  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test "$enable_shared" = yes && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;

  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }




fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if ${ac_cv_prog_CXXCPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
$as_echo "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
  _lt_caught_CXX_error=yes
fi

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

archive_cmds_need_lc_CXX=no
allow_undefined_flag_CXX=
always_export_symbols_CXX=no
archive_expsym_cmds_CXX=
compiler_needs_object_CXX=no
export_dynamic_flag_spec_CXX=
hardcode_direct_CXX=no
hardcode_direct_absolute_CXX=no
hardcode_libdir_flag_spec_CXX=
hardcode_libdir_flag_spec_ld_CXX=
hardcode_libdir_separator_CXX=
hardcode_minus_L_CXX=no
hardcode_shlibpath_var_CXX=unsupported
hardcode_automatic_CXX=no
inherit_rpath_CXX=no
module_cmds_CXX=
module_expsym_cmds_CXX=
link_all_deplibs_CXX=unknown
old_archive_cmds_CXX=$old_archive_cmds
reload_flag_CXX=$reload_flag
reload_cmds_CXX=$reload_cmds
no_undefined_flag_CXX=
whole_archive_flag_spec_CXX=
enable_shared_with_static_runtimes_CXX=no

# Source file extension for C++ test sources.
ac_ext=cpp

# Object file extension for compiled C++ test sources.
objext=o
objext_CXX=$objext

# No sense in running all these tests if we already determined that
# the CXX compiler isn't working.  Some variables (like enable_shared)
# are currently assumed to apply to all compilers on this platform,
# and will be corrupted by setting them based on a non-working compiler.
if test "$_lt_caught_CXX_error" != yes; then
  # Code to be used in simple compile tests
  lt_simple_compile_test_code="int some_variable = 0;"

  # Code to be used in simple link tests
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'

  # ltmain only uses $CC for tagged configurations so make sure $CC is set.






# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


  # save warnings/boilerplate of simple test code
  ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

  ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


  # Allow CC to be a program name with arguments.
  lt_save_CC=$CC
  lt_save_CFLAGS=$CFLAGS
  lt_save_LD=$LD
  lt_save_GCC=$GCC
  GCC=$GXX
  lt_save_with_gnu_ld=$with_gnu_ld
  lt_save_path_LD=$lt_cv_path_LD
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  else
    $as_unset lt_cv_prog_gnu_ld
  fi
  if test -n "${lt_cv_path_LDCXX+set}"; then
    lt_cv_path_LD=$lt_cv_path_LDCXX
  else
    $as_unset lt_cv_path_LD
  fi
  test -z "${LDCXX+set}" || LD=$LDCXX
  CC=${CXX-"c++"}
  CFLAGS=$CXXFLAGS
  compiler=$CC
  compiler_CXX=$CC
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`


  if test -n "$compiler"; then
    # We don't want -fno-exception when compiling C++ code, so set the
    # no_builtin_flag separately
    if test "$GXX" = yes; then
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
    else
      lt_prog_compiler_no_builtin_flag_CXX=
    fi

    if test "$GXX" = yes; then
      # Set up default GNU C++ configuration



# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld







      # Check if GNU C++ uses GNU ld as the underlying linker, since the
      # archiving commands below assume that GNU ld is being used.
      if test "$with_gnu_ld" = yes; then
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'

        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

        # If archive_cmds runs LD, not CC, wlarc should be empty
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
        #     investigate it a little bit more. (MM)
        wlarc='${wl}'

        # ancient GNU ld didn't support --whole-archive et. al.
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
	  $GREP 'no-whole-archive' > /dev/null; then
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
        else
          whole_archive_flag_spec_CXX=
        fi
      else
        with_gnu_ld=no
        wlarc=

        # A generic and very simple default shared library creation
        # command for GNU C++ for the case where it uses the native
        # linker, instead of GNU ld.  If possible, this setting should
        # overridden to take advantage of the native linker features on
        # the platform it is being used on.
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
      fi

      # Commands to make compiler produce verbose output that lists
      # what "hidden" libraries, object files and flags are used when
      # linking a shared library.
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

    else
      GXX=no
      with_gnu_ld=no
      wlarc=
    fi

    # PORTME: fill in a description of your system's C++ link characteristics
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
    ld_shlibs_CXX=yes
    case $host_os in
      aix3*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
      aix[4-9]*)
        if test "$host_cpu" = ia64; then
          # On IA64, the linker does run time linking by default, so we don't
          # have to do anything special.
          aix_use_runtimelinking=no
          exp_sym_flag='-Bexport'
          no_entry_flag=""
        else
          aix_use_runtimelinking=no

          # Test if we are trying to use run time linking or normal
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
          # need to do runtime linking.
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	    for ld_flag in $LDFLAGS; do
	      case $ld_flag in
	      *-brtl*)
	        aix_use_runtimelinking=yes
	        break
	        ;;
	      esac
	    done
	    ;;
          esac

          exp_sym_flag='-bexport'
          no_entry_flag='-bnoentry'
        fi

        # When large executables or shared objects are built, AIX ld can
        # have problems creating the table of contents.  If linking a library
        # or program results in "error TOC overflow" add -mminimal-toc to
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

        archive_cmds_CXX=''
        hardcode_direct_CXX=yes
        hardcode_direct_absolute_CXX=yes
        hardcode_libdir_separator_CXX=':'
        link_all_deplibs_CXX=yes
        file_list_spec_CXX='${wl}-f,'

        if test "$GXX" = yes; then
          case $host_os in aix4.[012]|aix4.[012].*)
          # We only want to do this on AIX 4.2 and lower, the check
          # below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	    # We have reworked collect2
	    :
	  else
	    # We have old collect2
	    hardcode_direct_CXX=unsupported
	    # It fails to find uninstalled libraries when the uninstalled
	    # path is not listed in the libpath.  Setting hardcode_minus_L
	    # to unsupported forces relinking
	    hardcode_minus_L_CXX=yes
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
	    hardcode_libdir_separator_CXX=
	  fi
          esac
          shared_flag='-shared'
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag="$shared_flag "'${wl}-G'
	  fi
        else
          # not using gcc
          if test "$host_cpu" = ia64; then
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	  # chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
          else
	    if test "$aix_use_runtimelinking" = yes; then
	      shared_flag='${wl}-G'
	    else
	      shared_flag='${wl}-bM:SRE'
	    fi
          fi
        fi

        export_dynamic_flag_spec_CXX='${wl}-bexpall'
        # It seems that -bexpall does not export symbols beginning with
        # underscore (_), so it is better to generate a list of symbols to
	# export.
        always_export_symbols_CXX=yes
        if test "$aix_use_runtimelinking" = yes; then
          # Warning - without using the other runtime loading flags (-brtl),
          # -berok will link without error, but may produce a broken library.
          allow_undefined_flag_CXX='-berok'
          # Determine the default libpath from the value encoded in an empty
          # executable.
          if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"

          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
        else
          if test "$host_cpu" = ia64; then
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
	    allow_undefined_flag_CXX="-z nodefs"
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
          else
	    # Determine the default libpath from the value encoded in an
	    # empty executable.
	    if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
	    # Warning - without using the other run time loading flags,
	    # -berok will link without error, but may produce a broken library.
	    no_undefined_flag_CXX=' ${wl}-bernotok'
	    allow_undefined_flag_CXX=' ${wl}-berok'
	    if test "$with_gnu_ld" = yes; then
	      # We only use this code for GNU lds that support --whole-archive.
	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    else
	      # Exported symbols can be pulled into shared objects from archives
	      whole_archive_flag_spec_CXX='$convenience'
	    fi
	    archive_cmds_need_lc_CXX=yes
	    # This is similar to how AIX traditionally builds its shared
	    # libraries.
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
          fi
        fi
        ;;

      beos*)
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	  allow_undefined_flag_CXX=unsupported
	  # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	  # support --undefined.  This deserves some investigation.  FIXME
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	else
	  ld_shlibs_CXX=no
	fi
	;;

      chorus*)
        case $cc_basename in
          *)
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	  ;;
        esac
        ;;

      cygwin* | mingw* | pw32* | cegcc*)
	case $GXX,$cc_basename in
	,cl* | no,cl*)
	  # Native MSVC
	  # hardcode_libdir_flag_spec is actually meaningless, as there is
	  # no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX=' '
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=yes
	  file_list_spec_CXX='@@'
	  # Tell ltmain to make .lib files, not .a files.
	  libext=lib
	  # Tell ltmain to make .dll files, not .so files.
	  shrext_cmds=".dll"
	  # FIXME: Setting linknames here is a bad hack.
	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	    else
	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	    fi~
	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	    linknames='
	  # The linker will not automatically build a static lib if we build a DLL.
	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
	  enable_shared_with_static_runtimes_CXX=yes
	  # Don't use ranlib
	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
	  postlink_cmds_CXX='lt_outputfile="@@OUTPUT@@"~
	    lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	    case $lt_outputfile in
	      *.exe|*.EXE) ;;
	      *)
		lt_outputfile="$lt_outputfile.exe"
		lt_tool_outputfile="$lt_tool_outputfile.exe"
		;;
	    esac~
	    func_to_tool_file "$lt_outputfile"~
	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	      $RM "$lt_outputfile.manifest";
	    fi'
	  ;;
	*)
	  # g++
	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
	  # as there is no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=no
	  enable_shared_with_static_runtimes_CXX=yes

	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	    # If the export-symbols file already is a .def file (1st line
	    # is EXPORTS), use it as is; otherwise, prepend...
	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      cp $export_symbols $output_objdir/$soname.def;
	    else
	      echo EXPORTS > $output_objdir/$soname.def;
	      cat $export_symbols >> $output_objdir/$soname.def;
	    fi~
	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	  else
	    ld_shlibs_CXX=no
	  fi
	  ;;
	esac
	;;
      darwin* | rhapsody*)


  archive_cmds_need_lc_CXX=no
  hardcode_direct_CXX=no
  hardcode_automatic_CXX=yes
  hardcode_shlibpath_var_CXX=unsupported
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  else
    whole_archive_flag_spec_CXX=''
  fi
  link_all_deplibs_CXX=yes
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=func_echo_all
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
    fi

  else
  ld_shlibs_CXX=no
  fi

	;;

      dgux*)
        case $cc_basename in
          ec++*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          ghcx*)
	    # Green Hills C++ Compiler
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      freebsd[12]*)
        # C++ shared libraries reported to be fairly broken before
	# switch to ELF
        ld_shlibs_CXX=no
        ;;

      freebsd-elf*)
        archive_cmds_need_lc_CXX=no
        ;;

      freebsd* | dragonfly*)
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
        # conventions
        ld_shlibs_CXX=yes
        ;;

      gnu*)
        ;;

      haiku*)
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
        link_all_deplibs_CXX=yes
        ;;

      hpux9*)
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        export_dynamic_flag_spec_CXX='${wl}-E'
        hardcode_direct_CXX=yes
        hardcode_minus_L_CXX=yes # Not in the search PATH,
				             # but as the default
				             # location of the library.

        case $cc_basename in
          CC*)
            # FIXME: insert proper C++ library support
            ld_shlibs_CXX=no
            ;;
          aCC*)
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            # Commands to make compiler produce verbose output that lists
            # what "hidden" libraries, object files and flags are used when
            # linking a shared library.
            #
            # There doesn't appear to be a way to prevent this compiler from
            # explicitly linking system object files so we need to strip them
            # from the output so that they don't get included in the library
            # dependencies.
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
            ;;
          *)
            if test "$GXX" = yes; then
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            else
              # FIXME: insert proper C++ library support
              ld_shlibs_CXX=no
            fi
            ;;
        esac
        ;;

      hpux10*|hpux11*)
        if test $with_gnu_ld = no; then
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

          case $host_cpu in
            hppa*64*|ia64*)
              ;;
            *)
	      export_dynamic_flag_spec_CXX='${wl}-E'
              ;;
          esac
        fi
        case $host_cpu in
          hppa*64*|ia64*)
            hardcode_direct_CXX=no
            hardcode_shlibpath_var_CXX=no
            ;;
          *)
            hardcode_direct_CXX=yes
            hardcode_direct_absolute_CXX=yes
            hardcode_minus_L_CXX=yes # Not in the search PATH,
					         # but as the default
					         # location of the library.
            ;;
        esac

        case $cc_basename in
          CC*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          aCC*)
	    case $host_cpu in
	      hppa*64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      ia64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      *)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	    esac
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test $with_gnu_ld = no; then
	        case $host_cpu in
	          hppa*64*)
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          ia64*)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          *)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	        esac
	      fi
	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      interix[3-9]*)
	hardcode_direct_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}-E'
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
	# Instead, shared libraries are loaded at an image base (0x10000000 by
	# default) and relocated if they conflict, which is a slow very memory
	# consuming and fragmenting process.  To avoid this, we pick a random,
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	;;
      irix5* | irix6*)
        case $cc_basename in
          CC*)
	    # SGI C++
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'

	    # Archives containing C++ object files must be created using
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test "$with_gnu_ld" = no; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	      else
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
	      fi
	    fi
	    link_all_deplibs_CXX=yes
	    ;;
        esac
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        inherit_rpath_CXX=yes
        ;;

      linux* | k*bsd*-gnu | kopensolaris*-gnu)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

	    # Archives containing C++ object files must be created using
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
	    ;;
	  icpc* | ecpc* )
	    # Intel C++
	    with_gnu_ld=yes
	    # version 8.0 and above of icpc choke on multiply defined symbols
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
	    # earlier do not add the objects themselves.
	    case `$CC -V 2>&1` in
	      *"Version 7."*)
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	      *)  # Version 8.0 or newer
	        tmp_idyn=
	        case $host_cpu in
		  ia64*) tmp_idyn=' -i_dynamic';;
		esac
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	    esac
	    archive_cmds_need_lc_CXX=no
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    ;;
          pgCC* | pgcpp*)
            # Portland Group C++ compiler
	    case `$CC -V` in
	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
	      prelink_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
	      old_archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
		$RANLIB $oldlib'
	      archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    *) # Version 6 and above use weak symbols
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    esac

	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
            ;;
	  cxx*)
	    # Compaq C++
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'

	    runpath_var=LD_RUN_PATH
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
	    ;;
	  xl* | mpixl* | bgxl*)
	    # IBM XL 8.0 on PPC, with GNU ld
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    if test "x$supports_anon_versioning" = xyes; then
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
		echo "local: *; };" >> $output_objdir/$libname.ver~
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	    fi
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      no_undefined_flag_CXX=' -zdefs'
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	      compiler_needs_object_CXX=yes

	      # Not sure whether something based on
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
	      # would be better.
	      output_verbose_link_cmd='func_echo_all'

	      # Archives containing C++ object files must be created using
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	      # necessary to make sure instantiated templates are included
	      # in the archive.
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	      ;;
	    esac
	    ;;
	esac
	;;

      lynxos*)
        # FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;

      m88k*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
	;;

      mvs*)
        case $cc_basename in
          cxx*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	  *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	esac
	;;

      netbsd*)
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
	  wlarc=
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	fi
	# Workaround some broken pre-1.5 toolchains
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
	;;

      *nto* | *qnx*)
        ld_shlibs_CXX=yes
	;;

      openbsd2*)
        # C++ shared libraries are fairly broken
	ld_shlibs_CXX=no
	;;

      openbsd*)
	if test -f /usr/libexec/ld.so; then
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	  hardcode_direct_absolute_CXX=yes
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
	    export_dynamic_flag_spec_CXX='${wl}-E'
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
	  fi
	  output_verbose_link_cmd=func_echo_all
	else
	  ld_shlibs_CXX=no
	fi
	;;

      osf3* | osf4* | osf5*)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    hardcode_libdir_separator_CXX=:

	    # Archives containing C++ object files must be created using
	    # the KAI C++ compiler.
	    case $host in
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
	    esac
	    ;;
          RCC*)
	    # Rational C++ 2.4.1
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          cxx*)
	    case $host in
	      osf3*)
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
		;;
	      *)
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
	          echo "-hidden">> $lib.exp~
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
	          $RM $lib.exp'
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
		;;
	    esac

	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
	  *)
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	      case $host in
	        osf3*)
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	        *)
	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	      esac

	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	      hardcode_libdir_separator_CXX=:

	      # Commands to make compiler produce verbose output that lists
	      # what "hidden" libraries, object files and flags are used when
	      # linking a shared library.
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      psos*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      sunos4*)
        case $cc_basename in
          CC*)
	    # Sun C++ 4.x
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          lcc*)
	    # Lucid
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      solaris*)
        case $cc_basename in
          CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
            archive_cmds_need_lc_CXX=yes
	    no_undefined_flag_CXX=' -zdefs'
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	    hardcode_libdir_flag_spec_CXX='-R$libdir'
	    hardcode_shlibpath_var_CXX=no
	    case $host_os in
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
	      *)
		# The compiler driver will combine and reorder linker options,
		# but understands `-z linker_flag'.
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
	        ;;
	    esac
	    link_all_deplibs_CXX=yes

	    output_verbose_link_cmd='func_echo_all'

	    # Archives containing C++ object files must be created using
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	    ;;
          gcx*)
	    # Green Hills C++ Compiler
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'

	    # The C++ compiler must be used to create the archive.
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
	    ;;
          *)
	    # GNU C++ compiler with Solaris linker
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      else
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
	        # platform.
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      fi

	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
	      case $host_os in
		solaris2.[0-5] | solaris2.[0-5].*) ;;
		*)
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
		  ;;
	      esac
	    fi
	    ;;
        esac
        ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag_CXX='${wl}-z,text'
      archive_cmds_need_lc_CXX=no
      hardcode_shlibpath_var_CXX=no
      runpath_var='LD_RUN_PATH'

      case $cc_basename in
        CC*)
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
      esac
      ;;

      sysv5* | sco3.2v5* | sco5v6*)
	# Note: We can NOT use -z defs as we might desire, because we do not
	# link with -lc, and that would cause any symbols used from libc to
	# always be unresolved, which means just about no library would
	# ever link correctly.  If we're not using GNU ld we use -z text
	# though, which does catch some bad symbols but isn't as heavy-handed
	# as -z defs.
	no_undefined_flag_CXX='${wl}-z,text'
	allow_undefined_flag_CXX='${wl}-z,nodefs'
	archive_cmds_need_lc_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
	hardcode_libdir_separator_CXX=':'
	link_all_deplibs_CXX=yes
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
	runpath_var='LD_RUN_PATH'

	case $cc_basename in
          CC*)
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
	      '"$old_archive_cmds_CXX"
	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
	      '"$reload_cmds_CXX"
	    ;;
	  *)
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    ;;
	esac
      ;;

      tandem*)
        case $cc_basename in
          NCC*)
	    # NonStop-UX NCC 3.20
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      vxworks*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      *)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
    test "$ld_shlibs_CXX" = no && can_build_shared=no

    GCC_CXX="$GXX"
    LD_CXX="$LD"

    ## CAVEAT EMPTOR:
    ## There is no encapsulation within the following macros, do not change
    ## the running order or otherwise move them around unless you know exactly
    ## what you are doing...
    # Dependencies to place before and after the object being linked:
predep_objects_CXX=
postdep_objects_CXX=
predeps_CXX=
postdeps_CXX=
compiler_lib_search_path_CXX=

cat > conftest.$ac_ext <<_LT_EOF
class Foo
{
public:
  Foo (void) { a = 0; }
private:
  int a;
};
_LT_EOF


_lt_libdeps_save_CFLAGS=$CFLAGS
case "$CC $CFLAGS " in #(
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
esac

if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # Parse the compiler output and extract the necessary
  # objects, libraries and library flags.

  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  pre_test_object_deps_done=no

  for p in `eval "$output_verbose_link_cmd"`; do
    case ${prev}${p} in

    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       if test $p = "-L" ||
          test $p = "-R"; then
	 prev=$p
	 continue
       fi

       # Expand the sysroot to ease extracting the directories later.
       if test -z "$prev"; then
         case $p in
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
         esac
       fi
       case $p in
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
       esac
       if test "$pre_test_object_deps_done" = no; then
	 case ${prev} in
	 -L | -R)
	   # Internal compiler library paths should come after those
	   # provided the user.  The postdeps already come after the
	   # user supplied libs so there is no need to process them.
	   if test -z "$compiler_lib_search_path_CXX"; then
	     compiler_lib_search_path_CXX="${prev}${p}"
	   else
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
	   fi
	   ;;
	 # The "-l" case would never come before the object being
	 # linked, so don't bother handling this case.
	 esac
       else
	 if test -z "$postdeps_CXX"; then
	   postdeps_CXX="${prev}${p}"
	 else
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
	 fi
       fi
       prev=
       ;;

    *.lto.$objext) ;; # Ignore GCC LTO objects
    *.$objext)
       # This assumes that the test object file only shows up
       # once in the compiler output.
       if test "$p" = "conftest.$objext"; then
	 pre_test_object_deps_done=yes
	 continue
       fi

       if test "$pre_test_object_deps_done" = no; then
	 if test -z "$predep_objects_CXX"; then
	   predep_objects_CXX="$p"
	 else
	   predep_objects_CXX="$predep_objects_CXX $p"
	 fi
       else
	 if test -z "$postdep_objects_CXX"; then
	   postdep_objects_CXX="$p"
	 else
	   postdep_objects_CXX="$postdep_objects_CXX $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling CXX test program"
fi

$RM -f confest.$objext
CFLAGS=$_lt_libdeps_save_CFLAGS

# PORTME: override above test on systems where it is broken
case $host_os in
interix[3-9]*)
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  # hack all around it, let's just trust "g++" to DTRT.
  predep_objects_CXX=
  postdep_objects_CXX=
  postdeps_CXX=
  ;;

linux*)
  case `$CC -V 2>&1 | sed 5q` in
  *Sun\ C*)
    # Sun C++ 5.9

    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;

solaris*)
  case $cc_basename in
  CC* | sunCC*)
    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;
esac


case " $postdeps_CXX " in
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
esac
 compiler_lib_search_dirs_CXX=
if test -n "${compiler_lib_search_path_CXX}"; then
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
fi































    lt_prog_compiler_wl_CXX=
lt_prog_compiler_pic_CXX=
lt_prog_compiler_static_CXX=


  # C++ specific cases for pic, static, wl, etc.
  if test "$GXX" = yes; then
    lt_prog_compiler_wl_CXX='-Wl,'
    lt_prog_compiler_static_CXX='-static'

    case $host_os in
    aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_CXX='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic_CXX='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | cygwin* | os2* | pw32* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_CXX='-fno-common'
      ;;
    *djgpp*)
      # DJGPP does not support shared libraries at all
      lt_prog_compiler_pic_CXX=
      ;;
    haiku*)
      # PIC is the default for Haiku.
      # The "-static" flag exists, but is broken.
      lt_prog_compiler_static_CXX=
      ;;
    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_CXX=-Kconform_pic
      fi
      ;;
    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	;;
      *)
	lt_prog_compiler_pic_CXX='-fPIC'
	;;
      esac
      ;;
    *qnx* | *nto*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_CXX='-fPIC -shared'
      ;;
    *)
      lt_prog_compiler_pic_CXX='-fPIC'
      ;;
    esac
  else
    case $host_os in
      aix[4-9]*)
	# All AIX code is PIC.
	if test "$host_cpu" = ia64; then
	  # AIX 5 now supports IA64 processor
	  lt_prog_compiler_static_CXX='-Bstatic'
	else
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
	fi
	;;
      chorus*)
	case $cc_basename in
	cxch68*)
	  # Green Hills C++ Compiler
	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
	  ;;
	esac
	;;
      mingw* | cygwin* | os2* | pw32* | cegcc*)
	# This hack is so that the source file can tell whether it is being
	# built for inclusion in a dll (and should export symbols for example).
	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
	;;
      dgux*)
	case $cc_basename in
	  ec++*)
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  ghcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      freebsd* | dragonfly*)
	# FreeBSD uses GNU C++
	;;
      hpux9* | hpux10* | hpux11*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    if test "$host_cpu" != ia64; then
	      lt_prog_compiler_pic_CXX='+Z'
	    fi
	    ;;
	  aCC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    case $host_cpu in
	    hppa*64*|ia64*)
	      # +Z the default
	      ;;
	    *)
	      lt_prog_compiler_pic_CXX='+Z'
	      ;;
	    esac
	    ;;
	  *)
	    ;;
	esac
	;;
      interix*)
	# This is c89, which is MS Visual C++ (no shared libs)
	# Anyone wants to do a port?
	;;
      irix5* | irix6* | nonstopux*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='-non_shared'
	    # CC pic flag -KPIC is the default.
	    ;;
	  *)
	    ;;
	esac
	;;
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
	case $cc_basename in
	  KCC*)
	    # KAI C++ Compiler
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  ecpc* )
	    # old Intel C++ for x86_64 which still supported -KPIC.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  icpc* )
	    # Intel C++, used to be incompatible with GCC.
	    # ICC 10 doesn't accept -KPIC any more.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  pgCC* | pgcpp*)
	    # Portland Group C++ compiler
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fpic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  cxx*)
	    # Compaq C++
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
	    # IBM XL 8.0, 9.0 on PPC and BlueGene
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-qpic'
	    lt_prog_compiler_static_CXX='-qstaticlink'
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      lt_prog_compiler_pic_CXX='-KPIC'
	      lt_prog_compiler_static_CXX='-Bstatic'
	      lt_prog_compiler_wl_CXX='-Qoption ld '
	      ;;
	    esac
	    ;;
	esac
	;;
      lynxos*)
	;;
      m88k*)
	;;
      mvs*)
	case $cc_basename in
	  cxx*)
	    lt_prog_compiler_pic_CXX='-W c,exportall'
	    ;;
	  *)
	    ;;
	esac
	;;
      netbsd*)
	;;
      *qnx* | *nto*)
        # QNX uses GNU C++, but need to define -shared option too, otherwise
        # it will coredump.
        lt_prog_compiler_pic_CXX='-fPIC -shared'
        ;;
      osf3* | osf4* | osf5*)
	case $cc_basename in
	  KCC*)
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    ;;
	  RCC*)
	    # Rational C++ 2.4.1
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  cxx*)
	    # Digital/Compaq C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      psos*)
	;;
      solaris*)
	case $cc_basename in
	  CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    lt_prog_compiler_wl_CXX='-Qoption ld '
	    ;;
	  gcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-PIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sunos4*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.x
	    lt_prog_compiler_pic_CXX='-pic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  lcc*)
	    # Lucid
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	esac
	;;
      tandem*)
	case $cc_basename in
	  NCC*)
	    # NonStop-UX NCC 3.20
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      vxworks*)
	;;
      *)
	lt_prog_compiler_can_build_shared_CXX=no
	;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_CXX=
    ;;
  *)
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works_CXX=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works_CXX=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
    case $lt_prog_compiler_pic_CXX in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
     esac
else
    lt_prog_compiler_pic_CXX=
     lt_prog_compiler_can_build_shared_CXX=no
fi

fi





#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works_CXX=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_cv_prog_compiler_static_works_CXX=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  case $host_os in
  aix[4-9]*)
    # If we're using GNU nm, then we don't want the "-C" option.
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    # Also, AIX nm treats weak defined symbols like other global defined
    # symbols, whereas GNU nm marks them as "W".
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    else
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    fi
    ;;
  pw32*)
    export_symbols_cmds_CXX="$ltdll_cmds"
    ;;
  cygwin* | mingw* | cegcc*)
    case $cc_basename in
    cl*) ;;
    *)
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
      ;;
    esac
    ;;
  *)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    ;;
  esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
test "$ld_shlibs_CXX" = no && can_build_shared=no

with_gnu_ld_CXX=$with_gnu_ld






#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_CXX" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_CXX=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_CXX in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  $RM conftest*
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext

	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
	  soname=conftest
	  lib=conftest
	  libobjs=conftest.$ac_objext
	  deplibs=
	  wl=$lt_prog_compiler_wl_CXX
	  pic_flag=$lt_prog_compiler_pic_CXX
	  compiler_flags=-v
	  linker_flags=-v
	  verstring=
	  output_objdir=.
	  libname=conftest
	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
	  allow_undefined_flag_CXX=
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	  then
	    lt_cv_archive_cmds_need_lc_CXX=no
	  else
	    lt_cv_archive_cmds_need_lc_CXX=yes
	  fi
	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
	else
	  cat conftest.err 1>&5
	fi
	$RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
      ;;
    esac
  fi
  ;;
esac
































































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$cc_basename in
  yes,*)
    # gcc
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'

      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    dynamic_linker='Win32 ld.exe'
    ;;

  *,cl*)
    # Native MSVC
    libname_spec='$name'
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'

    case $build_os in
    mingw*)
      sys_lib_search_path_spec=
      lt_save_ifs=$IFS
      IFS=';'
      for lt_path in $LIB
      do
        IFS=$lt_save_ifs
        # Let DOS variable expansion print the short 8.3 style file name.
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @@echo %~si"`
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
      done
      IFS=$lt_save_ifs
      # Convert to MSYS style.
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
      ;;
    cygwin*)
      # Convert to unix form, then to dos form, then back to unix form
      # but this time dos style (no spaces!) so that the unix form looks
      # like /cygdrive/c/PROGRA~1:/cygdr...
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      ;;
    *)
      sys_lib_search_path_spec="$LIB"
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      fi
      # FIXME: find the short name or the path components, as spaces are
      # common. (e.g. "Program Files" -> "PROGRA~1")
      ;;
    esac

    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
    dynamic_linker='Win32 link.exe'
    ;;

  *)
    # Assume MSVC wrapper
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    dynamic_linker='Win32 ld.exe'
    ;;
  esac
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

haiku*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  dynamic_linker="$host_os runtime_loader"
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  postinstall_cmds='chmod 555 $lib'
  # or fails outright, so override atomically:
  install_override_mode=555
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no

  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi






































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action_CXX=
if test -n "$hardcode_libdir_flag_spec_CXX" ||
   test -n "$runpath_var_CXX" ||
   test "X$hardcode_automatic_CXX" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct_CXX" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_CXX=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_CXX=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_CXX=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
$as_echo "$hardcode_action_CXX" >&6; }

if test "$hardcode_action_CXX" = relink ||
   test "$inherit_rpath_CXX" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi







  fi # test -n "$compiler"

  CC=$lt_save_CC
  CFLAGS=$lt_save_CFLAGS
  LDCXX=$LD
  LD=$lt_save_LD
  GCC=$lt_save_GCC
  with_gnu_ld=$lt_save_with_gnu_ld
  lt_cv_path_LDCXX=$lt_cv_path_LD
  lt_cv_path_LD=$lt_save_path_LD
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
fi # test "$_lt_caught_CXX_error" != yes

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu













        ac_config_commands="$ac_config_commands libtool"




# Only expand once:




# NTP has (so far) been relying on leading-edge autogen, which
# means we need the appropriate corresponding libopts as well.
# Therefore, by default:
# - use the version of libopts we ship with
# - do not install it
# - build a static copy (AC_DISABLE_SHARED - done earlier)
case "${enable_local_libopts+set}" in
 set) ;;
 *) enable_local_libopts=yes ;;
esac
case "${enable_libopts_install+set}" in
 set) ;;
 *) enable_libopts_install=no ;;
esac
enable_nls=no
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi



  ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
if eval \${$as_ac_Header+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$as_ac_Header=yes"
else
  eval "$as_ac_Header=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_ac_Header
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dir; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' x; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi


  # =================
  # AC_CHECK_HEADERS
  # =================
  for ac_header in  \
      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
      fcntl.h       libgen.h      libintl.h     memory.h \
      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
      unistd.h      utime.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  for ac_header in stdarg.h     varargs.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_arg_hdr=true;break
else
  lo_have_arg_hdr=false
fi

done


  for ac_header in string.h     strings.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_str_hdr=true;break
else
  lo_have_str_hdr=false
fi

done


  for ac_header in limits.h     sys/limits.h  values.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_lim_hdr=true;break
else
  lo_have_lim_hdr=false
fi

done


  for ac_header in inttypes.h   stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_typ_hdr=true;break
else
  lo_have_typ_hdr=false
fi

done


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
$as_echo_n "checking for working stdnoreturn.h... " >&6; }
if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
            #include <stdnoreturn.h>
            /* Do not check for 'noreturn' after the return type.
               C11 allows it, but it's rarely done that way
               and circa-2012 bleeding-edge GCC rejects it when given
               -Werror=old-style-declaration.  */
            noreturn void foo1 (void) { exit (0); }
            _Noreturn void foo2 (void) { exit (0); }
            int testit (int argc, char **argv) {
              if (argc & 1)
                return 0;
              (argv[0][0] ? foo1 : foo2) ();
            }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  gl_cv_header_working_stdnoreturn_h=yes
else
  gl_cv_header_working_stdnoreturn_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }

  if test $gl_cv_header_working_stdnoreturn_h = yes; then
    STDNORETURN_H=''
  else
    STDNORETURN_H='stdnoreturn.h'
  fi


   if test -n "$STDNORETURN_H"; then
  GL_GENERATE_STDNORETURN_H_TRUE=
  GL_GENERATE_STDNORETURN_H_FALSE='#'
else
  GL_GENERATE_STDNORETURN_H_TRUE='#'
  GL_GENERATE_STDNORETURN_H_FALSE=
fi



  # ----------------------------------------------------------------------
  # check for various programs used during the build.
  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  # ----------------------------------------------------------------------
  for ac_header in runetype.h wchar.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  $ac_includes_default
  #if HAVE_RUNETYPE_H
  # include <runetype.h>
  #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  # Check whether --enable-nls was given.
if test "${enable_nls+set}" = set; then :
  enableval=$enable_nls;
fi

  if test "x$enable_nls" != "xno" && \
  test "X${ac_cv_header_libintl_h}" = Xyes; then :


$as_echo "#define ENABLE_NLS 1" >>confdefs.h

fi

  # --------------------------------------------
  # Verify certain entries from AC_CHECK_HEADERS
  # --------------------------------------------
  ${lo_have_arg_hdr} || \
    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5

  ${lo_have_str_hdr} || \
    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5

  ${lo_have_lim_hdr} || \
    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5

  ${lo_have_typ_hdr} || \
    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5

  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  do eval as_ac_var=\${ac_cv_header_${f}_h}
     test "X${as_ac_var}" = Xyes || {
       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
     }
  done
  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
    echo '#include <stdint.h>' > inttypes.h

  # ----------------------------------------------------------------------
  # Checks for typedefs
  # ----------------------------------------------------------------------
  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
if test "x$ac_cv_type_wchar_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WCHAR_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
    $ac_includes_default
    #if HAVE_RUNETYPE_H
    # include <runetype.h>
    #endif
    #if HAVE_WCHAR_H
    # include <wchar.h>
    #endif

"
if test "x$ac_cv_type_wint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WINT_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
if test "x$ac_cv_type_int8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
if test "x$ac_cv_type_uint8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
if test "x$ac_cv_type_int16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
if test "x$ac_cv_type_uint16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
if test "x$ac_cv_type_int32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
if test "x$ac_cv_type_uint32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
if test "x$ac_cv_type_intptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
if test "x$ac_cv_type_uint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PID_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SIZE_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi

  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
$as_echo_n "checking size of char*... " >&6; }
if ${ac_cv_sizeof_charp+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_charp" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (char*)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_charp=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
$as_echo "$ac_cv_sizeof_charp" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHARP $ac_cv_sizeof_charp
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF



  # ------------
  # AC_CHECK_LIB
  # ------------
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
$as_echo_n "checking for pathfind in -lgen... " >&6; }
if ${ac_cv_lib_gen_pathfind+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgen  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pathfind ();
int
main ()
{
return pathfind ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gen_pathfind=yes
else
  ac_cv_lib_gen_pathfind=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGEN 1
_ACEOF

  LIBS="-lgen $LIBS"

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
$as_echo_n "checking for gettext in -lintl... " >&6; }
if ${ac_cv_lib_intl_gettext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lintl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gettext ();
int
main ()
{
return gettext ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_intl_gettext=yes
else
  ac_cv_lib_intl_gettext=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
$as_echo "$ac_cv_lib_intl_gettext" >&6; }
if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBINTL 1
_ACEOF

  LIBS="-lintl $LIBS"

fi

  for ac_func in vprintf
do :
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
if test "x$ac_cv_func_vprintf" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VPRINTF 1
_ACEOF

ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
if test "x$ac_cv_func__doprnt" = xyes; then :

$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h

fi

fi
done


  for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
                 strrchr strsignal fchmod fstat chmod
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

  while :
  do
      POSIX_SHELL=`which bash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`which dash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=/usr/xpg4/bin/sh
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`/bin/sh -c '
          exec 2>/dev/null
          if ! true ; then exit 1 ; fi
          echo /bin/sh'`
      test -x "$POSIX_SHELL" && break
      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  done

cat >>confdefs.h <<_ACEOF
#define POSIX_SHELL "${POSIX_SHELL}"
_ACEOF





  LIBOPTS_BUILD_BLOCKED=true


  NEED_LIBOPTS_DIR=''

  # Check whether --enable-local-libopts was given.
if test "${enable_local_libopts+set}" = set; then :
  enableval=$enable_local_libopts;
    if test x$enableval = xyes ; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
       NEED_LIBOPTS_DIR=true
       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
    fi
fi


  # Check whether --enable-libopts-install was given.
if test "${enable_libopts_install+set}" = set; then :
  enableval=$enable_libopts_install;
fi

   if test "X${enable_libopts_install}" = Xyes; then
  INSTALL_LIBOPTS_TRUE=
  INSTALL_LIBOPTS_FALSE='#'
else
  INSTALL_LIBOPTS_TRUE='#'
  INSTALL_LIBOPTS_FALSE=
fi


  if test -z "${NEED_LIBOPTS_DIR}" ; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
$as_echo_n "checking whether autoopts-config can be found... " >&6; }

# Check whether --with-autoopts-config was given.
if test "${with_autoopts_config+set}" = set; then :
  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
$as_echo_n "checking whether autoopts-config is specified... " >&6; }
if ${lo_cv_with_autoopts_config+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if autoopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=autoopts-config
        elif libopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=libopts-config
        else lo_cv_with_autoopts_config=no ; fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
$as_echo "$lo_cv_with_autoopts_config" >&6; }

fi
 # end of AC_ARG_WITH

     if ${lo_cv_test_autoopts+:} false; then :
  $as_echo_n "(cached) " >&6
else

        if test -z "${lo_cv_with_autoopts_config}" \
                -o X"${lo_cv_with_autoopts_config}" = Xno
        then
           if autoopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=autoopts-config
           elif libopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=libopts-config
           else lo_cv_with_autoopts_config=false ; fi
        fi
        lo_cv_test_autoopts=`
            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
        then lo_cv_test_autoopts=no ; fi

fi
 # end of CACHE_VAL
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
$as_echo "${lo_cv_test_autoopts}" >&6; }

     if test "X${lo_cv_test_autoopts}" != Xno
     then
        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
     else
        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
        NEED_LIBOPTS_DIR=true
     fi
  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
    NEED_LIBOPTS_DIR=''
  fi
   if test -n "${NEED_LIBOPTS_DIR}"; then
  NEED_LIBOPTS_TRUE=
  NEED_LIBOPTS_FALSE='#'
else
  NEED_LIBOPTS_TRUE='#'
  NEED_LIBOPTS_FALSE=
fi



  LIBOPTS_DIR=sntp/libopts


# end of AC_DEFUN of LIBOPTS_CHECK_COMMON

  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD




# Check whether --enable-local-libevent was given.
if test "${enable_local_libevent+set}" = set; then :
  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
else
  ntp_use_local_libevent=${ntp_use_local_libevent-detect}

fi






# Expose a cross-compilation indicator to makefiles
 if test $build != $host; then
  NTP_CROSSCOMPILE_TRUE=
  NTP_CROSSCOMPILE_FALSE='#'
else
  NTP_CROSSCOMPILE_TRUE='#'
  NTP_CROSSCOMPILE_FALSE=
fi



ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi


            # Check whether --enable-c99-snprintf was given.
if test "${enable_c99_snprintf+set}" = set; then :
  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
else
  force_c99_snprintf=no

fi

    case "$force_c99_snprintf" in
     yes)
	hw_force_rpl_snprintf=yes
	hw_force_rpl_vsnprintf=yes
    esac






  for ac_header in $ac_header_list
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done







      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
if test "x$ac_cv_func_vsnprintf" = xyes; then :
  hw_cv_func_vsnprintf=yes
else
  hw_cv_func_vsnprintf=no
fi

  if test "$hw_cv_func_vsnprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
if ${hw_cv_func_vsnprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_vsnprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if HAVE_STDARG_H
          #include <stdarg.h>
          #endif
          #include <stdio.h>
          static int testprintf(char *buf, size_t size, const char *format, ...)
          {
            int result;
            va_list ap;
            va_start(ap, format);
            result = vsnprintf(buf, size, format, ap);
            va_end(ap);
            return result;
          }
int
main ()
{
char buf[43];
          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_vsnprintf_c99=yes
else
  hw_cv_func_vsnprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
else
  hw_cv_func_vsnprintf_c99=no
fi

$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
  hw_use_rpl_vsnprintf=yes
else
  hw_use_rpl_vsnprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
$as_echo "$hw_use_rpl_vsnprintf" >&6; }
  if test "$hw_use_rpl_vsnprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_vsnprintf=no} = no; then :

$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h

fi
    for ac_header in inttypes.h locale.h stddef.h stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
_ACEOF


fi
ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
_ACEOF


fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
$as_echo_n "checking for long double... " >&6; }
if ${ac_cv_type_long_double+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$GCC" = yes; then
       ac_cv_type_long_double=yes
     else
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* The Stardent Vistra knows sizeof (long double), but does
		 not support it.  */
	      long double foo = 0.0L;
int
main ()
{
static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
	      sizeof (double) <= sizeof (long double))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_long_double=yes
else
  ac_cv_type_long_double=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
$as_echo "$ac_cv_type_long_double" >&6; }
  if test $ac_cv_type_long_double = yes; then

$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
$as_echo_n "checking for long long int... " >&6; }
if ${ac_cv_type_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  			if test "$cross_compiling" = yes; then :
  ac_cv_type_long_long_int=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
	       #ifndef LLONG_MAX
	       # define HALF \
			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
	       # define LLONG_MAX (HALF - 1 + HALF)
	       #endif
int
main ()
{
long long int n = 1;
	       int i;
	       for (i = 0; ; i++)
		 {
		   long long int m = n << i;
		   if (m >> i != n)
		     return 1;
		   if (LLONG_MAX / 2 < m)
		     break;
		 }
	       return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_type_long_long_int=yes
else
  ac_cv_type_long_long_int=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

else
  ac_cv_type_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
$as_echo "$ac_cv_type_long_long_int" >&6; }
  if test $ac_cv_type_long_long_int = yes; then

$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
$as_echo_n "checking for unsigned long long int... " >&6; }
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_type_unsigned_long_long_int=yes
else
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h

  fi

    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
if test "x$ac_cv_type_intmax_t" = xyes; then :

$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_long_long_int = yes \
       && ac_type='long long int' \
       || ac_type='long int'

cat >>confdefs.h <<_ACEOF
#define intmax_t $ac_type
_ACEOF

fi




  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
if test "x$ac_cv_type_uintmax_t" = xyes; then :

$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_unsigned_long_long_int = yes \
       && ac_type='unsigned long long int' \
       || ac_type='unsigned long int'

cat >>confdefs.h <<_ACEOF
#define uintmax_t $ac_type
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h

else
  for ac_type in 'unsigned int' 'unsigned long int' \
	'unsigned long long int'; do
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

cat >>confdefs.h <<_ACEOF
#define uintptr_t $ac_type
_ACEOF

	  ac_type=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       test -z "$ac_type" && break
     done
fi


    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi

    for ac_func in localeconv
do :
  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
if test "x$ac_cv_func_localeconv" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LOCALECONV 1
_ACEOF

fi
done


  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi


    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
if test "x$ac_cv_func_snprintf" = xyes; then :
  hw_cv_func_snprintf=yes
else
  hw_cv_func_snprintf=no
fi

  if test "$hw_cv_func_snprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
if ${hw_cv_func_snprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_snprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
char buf[43];
          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_snprintf_c99=yes
else
  hw_cv_func_snprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
$as_echo "$hw_cv_func_snprintf_c99" >&6; }
else
  hw_cv_func_snprintf_c99=no
fi

$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
  hw_use_rpl_snprintf=yes
else
  hw_use_rpl_snprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
$as_echo "$hw_use_rpl_snprintf" >&6; }
  if test "$hw_use_rpl_snprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_snprintf=no} = no; then :

$as_echo "#define snprintf rpl_snprintf" >>confdefs.h

fi

  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi





# HMS: Save $LIBS and empty it.
# any LIBS we add here should go in to LDADD_LIBNTP

__LIBS=$LIBS
LIBS=



# [Bug 2332] because we need to know if we are using GNU ld...


# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld








{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
$as_echo_n "checking for directory path separator... " >&6; }
if ${ntp_cv_dir_sep+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$ntp_cv_dir_sep" in
	 '')
	    case "$host_os" in
	     *djgpp | *mingw32* | *emx*)
		ntp_cv_dir_sep="'\\'"
		;;
	     *)
		ntp_cv_dir_sep="'/'"
		;;
	    esac
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
$as_echo "$ntp_cv_dir_sep" >&6; }

cat >>confdefs.h <<_ACEOF
#define DIR_SEP $ntp_cv_dir_sep
_ACEOF



    NTP_ORIG_LIBS="$LIBS"

# Check whether --with-lineeditlibs was given.
if test "${with_lineeditlibs+set}" = set; then :
  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
else
  use_lineeditlibs="edit,editline"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
$as_echo_n "checking line editing libraries... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
$as_echo "$use_lineeditlibs" >&6; }
    case "$use_lineeditlibs" in
     no)
	ntp_lib_lineedit=no
	;;
     *)
	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
	    for term_lib in "" termcap curses ncurses; do
		case "$term_lib" in
		 '')
		    TRY_LIB="-l$lineedit_lib"
		    ;;
		 *)
		    TRY_LIB="-l$lineedit_lib -l$term_lib"
		    ;;
		esac
		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char readline ();
int
main ()
{
return readline ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		case "$ntp_lib_lineedit" in
		 '')
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		    ;;
		 *)
		    # Use readline()
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
		    break
		esac
		case "$term_lib" in
		 '')
		    # do not try el_gets without a terminal library
		    ;;
		 *)
		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char el_gets ();
int
main ()
{
return el_gets ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		    case "$ntp_lib_lineedit" in
		     '')
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			;;
		     *) # Use el_gets()
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			break
			;;
		    esac	# $ntp_lib_lineedit
		esac		# $term_lib
	    done
	    case "$ntp_lib_lineedit" in
	     '')
		;;
	     *)
		break
		;;
	    esac
	done
	LIBS="$NTP_ORIG_LIBS"
	;;
    esac	# $use_lineeditlibs

    case "$ntp_lib_lineedit" in
     '')
	ntp_lib_lineedit="no"
	;;
     no)
	;;
     *)
	EDITLINE_LIBS="$ntp_lib_lineedit"

	;;
    esac	# $ntp_lib_lineedit

    case "$ntp_lib_lineedit" in
     no)
	;;
     *)
	for ac_header in readline.h readline/readline.h histedit.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	for ac_header in history.h readline/history.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


	case "$ac_cv_header_histedit_h" in
	 yes)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
$as_echo_n "checking number of arguments to el_init()... " >&6; }
if ${ntp_cv_el_init_args+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    #include <stdio.h>
			    #include <histedit.h>

int
main ()
{

			    el_init("conftest", stdin, stdout, stderr);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_el_init_args=4
else
  ntp_cv_el_init_args=3

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
$as_echo "$ntp_cv_el_init_args" >&6; }

cat >>confdefs.h <<_ACEOF
#define EL_INIT_ARGS $ntp_cv_el_init_args
_ACEOF

	esac

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
$as_echo_n "checking whether readline supports history... " >&6; }

	ntp_lib_lineedit_history="no"
	ORIG_LIBS="$LIBS"
	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char add_history ();
int
main ()
{
return add_history ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit_history="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LIBS="$ORIG_LIBS"

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
$as_echo "$ntp_lib_lineedit_history" >&6; }

	case "$ntp_lib_lineedit_history" in
	 yes)

$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h

	esac
    esac	# $ntp_lib_lineedit
    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
    { ORIG_LIBS=; unset ORIG_LIBS;}
    { TRY_LIB=; unset TRY_LIB;}
    { use_lineeditlibs=; unset use_lineeditlibs;}


LIBM=
case "$host" in
 *-*-darwin*)
    ;;
 *)
    _libs=$LIBS
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
$as_echo_n "checking for library containing cos... " >&6; }
if ${ac_cv_search_cos+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cos ();
int
main ()
{
return cos ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' m; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_cos=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_cos+:} false; then :
  break
fi
done
if ${ac_cv_search_cos+:} false; then :

else
  ac_cv_search_cos=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
$as_echo "$ac_cv_search_cos" >&6; }
ac_res=$ac_cv_search_cos
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  LIBM="-lm"
fi

    LIBS=$_libs
    ;;
esac

{ _libs=; unset _libs;}


for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
$as_echo_n "checking for working alloca.h... " >&6; }
if ${ac_cv_working_alloca_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <alloca.h>
int
main ()
{
char *p = (char *) alloca (2 * sizeof (int));
			  if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_working_alloca_h=yes
else
  ac_cv_working_alloca_h=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
$as_echo "$ac_cv_working_alloca_h" >&6; }
if test $ac_cv_working_alloca_h = yes; then

$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
$as_echo_n "checking for alloca... " >&6; }
if ${ac_cv_func_alloca_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  ifdef HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
void *alloca (size_t);
#    endif
#   endif
#  endif
# endif
#endif

int
main ()
{
char *p = (char *) alloca (1);
				    if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_func_alloca_works=yes
else
  ac_cv_func_alloca_works=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
$as_echo "$ac_cv_func_alloca_works" >&6; }

if test $ac_cv_func_alloca_works = yes; then

$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h

else
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble.  Some versions do not even contain alloca or
# contain a buggy version.  If you still want to use their alloca,
# use ar to extract alloca.o from them instead of compiling alloca.c.

ALLOCA=\${LIBOBJDIR}alloca.$ac_objext

$as_echo "#define C_ALLOCA 1" >>confdefs.h


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
if ${ac_cv_os_cray+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if defined CRAY && ! defined CRAY2
webecray
#else
wenotbecray
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "webecray" >/dev/null 2>&1; then :
  ac_cv_os_cray=yes
else
  ac_cv_os_cray=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
$as_echo "$ac_cv_os_cray" >&6; }
if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :

cat >>confdefs.h <<_ACEOF
#define CRAY_STACKSEG_END $ac_func
_ACEOF

    break
fi

  done
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
$as_echo_n "checking stack direction for C alloca... " >&6; }
if ${ac_cv_c_stack_direction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_c_stack_direction=0
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}

int
main ()
{
  return find_stack_direction () < 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_stack_direction=1
else
  ac_cv_c_stack_direction=-1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
$as_echo "$ac_cv_c_stack_direction" >&6; }
cat >>confdefs.h <<_ACEOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
_ACEOF


fi

ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRERROR_R $ac_have_decl
_ACEOF

for ac_func in strerror_r
do :
  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
if test "x$ac_cv_func_strerror_r" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRERROR_R 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
if ${ac_cv_func_strerror_r_char_p+:} false; then :
  $as_echo_n "(cached) " >&6
else

    ac_cv_func_strerror_r_char_p=no
    if test $ac_cv_have_decl_strerror_r = yes; then
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  char *p = strerror_r (0, buf, sizeof buf);
	  return !p || x;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    else
      # strerror_r is not declared.  Choose between
      # systems that have relatively inaccessible declarations for the
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
      # former has a strerror_r that returns char*, while the latter
      # has a strerror_r that returns `int'.
      # This test should segfault on the DEC system.
      if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
	extern char *strerror_r ();
int
main ()
{
char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  return ! isalpha (x);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
if test $ac_cv_func_strerror_r_char_p = yes; then

$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h

fi


ac_busted_vpath_in_make=no
case "$build" in
 *-*-irix6.1*)	# 64 bit only
    # busted vpath?
    ;;
 *-*-irix6*)	# 6.2 (and later?)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-solaris2.5.1)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-unicosmp*)
    ac_busted_vpath_in_make=yes
    ;;
esac

case "$ac_busted_vpath_in_make$srcdir" in
 yes.|no*)
    ;;
 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
    esac
    ;;
esac

case "$host" in
 *-*-aix4*)
	# Bug 2516:
	# Was *-*-aix[[4-9]]*
	# XXX only verified thru AIX6.  But...
	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
	# that this support would be in 5.3, removed in 6, and added back.
	#
	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
	# IBM pulls its thumbs out long enough to implement clock_settime,
	# this conditional will need to change.  Maybe use AC_TRY_RUN
	# instead to try to set the time to itself and check errno.
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
$as_echo_n "checking for library containing clock_gettime... " >&6; }
if ${ac_cv_search_clock_gettime+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char clock_gettime ();
int
main ()
{
return clock_gettime ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_clock_gettime=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_clock_gettime+:} false; then :
  break
fi
done
if ${ac_cv_search_clock_gettime+:} false; then :

else
  ac_cv_search_clock_gettime=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
$as_echo "$ac_cv_search_clock_gettime" >&6; }
ac_res=$ac_cv_search_clock_gettime
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_clock_gettime" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
 esac

fi

    for ac_func in clock_getres clock_gettime clock_settime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac

for ac_func in getclock stime timegm strlcpy strlcat
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


#
for ac_header in errno.h sys/socket.h sys/types.h time.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in net/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif

"
if test "x$ac_cv_header_net_if_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_H 1
_ACEOF

fi

done

case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
if ${ntp_cv_predecl_mpinfou+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    np_cv_predecl_mpinfou=no
	    case "$ac_cv_header_net_if_h" in
	     no)
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    typedef union mpinfou {
				    struct pdk_mpinfo *pdkptr;
				    struct mpinfo *pikptr;
			    } mpinfou_t;
			    #ifdef HAVE_SYS_SOCKET_H
			    # include <sys/socket.h>
			    #endif
			    #include <net/if.h>

int
main ()
{



  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

			ntp_cv_predecl_mpinfou=yes
			ac_cv_header_net_if_h=yes


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
$as_echo "$ntp_cv_predecl_mpinfou" >&6; }
    case "$ntp_cv_predecl_mpinfou" in
     yes)
	cat >>confdefs.h <<_ACEOF
#ifndef MPINFOU_PREDECLARED
# define MPINFOU_PREDECLARED
typedef union mpinfou {
	struct pdk_mpinfo *pdkptr;
	struct mpinfo *pikptr;
} mpinfou_t;
#endif
_ACEOF

    esac
esac

case "$host" in
 *-linux*)
    for ac_header in linux/if_addr.h
do :
  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
	#ifdef HAVE_SYS_SOCKET_H
	# include <sys/socket.h>
	#endif

"
if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LINUX_IF_ADDR_H 1
_ACEOF

fi

done

esac

for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
for ac_header in sys/sysctl.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
    #if defined HAVE_SYS_PARAM_H
    # include <sys/param.h>
    #endif

"
if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SYSCTL_H 1
_ACEOF

fi

done

for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in resolv.h
do :
  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_ARPA_NAMESER_H
    # include <arpa/nameser.h>
    #endif

"
if test "x$ac_cv_header_resolv_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RESOLV_H 1
_ACEOF

fi

done


for ac_header in net/if_var.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
    #if HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif

"
if test "x$ac_cv_header_net_if_var_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_VAR_H 1
_ACEOF

fi

done


for ac_header in netinet/ip.h netinet/in_var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_VAR_H
    # include <net/if_var.h>
    #endif
    #ifdef HAVE_NETINET_IN_SYSTM_H
    # include <netinet/in_systm.h>
    #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


# HMS: Do we need to check for -lsocket before or after these tests?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
$as_echo_n "checking for library containing inet_pton... " >&6; }
if ${ac_cv_search_inet_pton+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_pton ();
int
main ()
{
return inet_pton ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' nsl; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_pton=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_pton+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_pton+:} false; then :

else
  ac_cv_search_inet_pton=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
$as_echo "$ac_cv_search_inet_pton" >&6; }
ac_res=$ac_cv_search_inet_pton
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_pton" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
 esac

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
$as_echo_n "checking for library containing inet_ntop... " >&6; }
if ${ac_cv_search_inet_ntop+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_ntop ();
int
main ()
{
return inet_ntop ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_ntop=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_ntop+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_ntop+:} false; then :

else
  ac_cv_search_inet_ntop=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
$as_echo "$ac_cv_search_inet_ntop" >&6; }
ac_res=$ac_cv_search_inet_ntop
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_ntop" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
 esac

fi


# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
# avoid keying on the OS name:  If we find socket functions in
# libsocket, next try for them in libxnet without libsocket, if found,
# list both.  If we simply tested libxnet first, we would find the
# functions there and never add libsocket.  See also [Bug 660]
# http://bugs.ntp.org/show_bug.cgi?id=660#c9
saved_LIBS=$LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
$as_echo_n "checking for library containing setsockopt... " >&6; }
if ${ac_cv_search_setsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char setsockopt ();
int
main ()
{
return setsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' socket; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_setsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_setsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_setsockopt+:} false; then :

else
  ac_cv_search_setsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
$as_echo "$ac_cv_search_setsockopt" >&6; }
ac_res=$ac_cv_search_setsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_setsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
 esac

fi

case "$ac_cv_search_setsockopt" in
 -lsocket)
    LIBS="$saved_LIBS"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
$as_echo_n "checking for library containing getsockopt... " >&6; }
if ${ac_cv_search_getsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getsockopt ();
int
main ()
{
return getsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' xnet; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_getsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_getsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_getsockopt+:} false; then :

else
  ac_cv_search_getsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
$as_echo "$ac_cv_search_getsockopt" >&6; }
ac_res=$ac_cv_search_getsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_getsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
 esac

fi

    # XXX Possible trouble here - reading the comments above and looking at the
    # code below I wonder if we'll add -lxnet when we don't need it.
    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
    # there when it is not needed?
    case "$ac_cv_search_getsockopt" in
     -lxnet)
	LIBS="-lxnet -lsocket $saved_LIBS"
	;;
     *) LIBS="-lsocket $saved_LIBS"
	;;
    esac
    ;;
esac
{ saved_LIBS=; unset saved_LIBS;}

# Bug 2427 - look for recvmsg here.
for ac_func in recvmsg
do :
  ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
if test "x$ac_cv_func_recvmsg" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RECVMSG 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if ${ac_cv_c_inline+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }

case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac


case "$ac_cv_c_inline" in
 '')
    ;;
 *)

$as_echo "#define HAVE_INLINE 1" >>confdefs.h


esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if ${ac_cv_header_time+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_time=yes
else
  ac_cv_header_time=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h

fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
$as_echo_n "checking size of time_t... " >&6; }
if ${ac_cv_sizeof_time_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_time_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (time_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_time_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
$as_echo "$ac_cv_sizeof_time_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
$as_echo_n "checking whether char is unsigned... " >&6; }
if ${ac_cv_c_char_unsigned+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_char_unsigned=no
else
  ac_cv_c_char_unsigned=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
$as_echo "$ac_cv_c_char_unsigned" >&6; }
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h

fi
		# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
$as_echo_n "checking size of signed char... " >&6; }
if ${ac_cv_sizeof_signed_char+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_signed_char" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (signed char)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_signed_char=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
$as_echo "$ac_cv_sizeof_signed_char" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
_ACEOF


ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
if test "x$ac_cv_type_s_char" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_S_CHAR 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
if test "x$ac_cv_type_long_long" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF



case "$ac_cv_type_long_long" in
 no)
    ;;
 *)
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
if ${ac_cv_sizeof_long_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF


    ;;
esac

case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
 *yes)
    # We have a typedef for s_char.  Might as well believe it...
    ;;
 no0no)
    # We have signed chars, can't say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 no1no)
    # We have signed chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 yes0no)
    # We have unsigned chars, can't say 'signed char', no s_char typedef.
    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
    ;;
 yes1no)
    # We have unsigned chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
if ${ac_cv_type_uid_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "uid_t" >/dev/null 2>&1; then :
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; }
if test $ac_cv_type_uid_t = no; then

$as_echo "#define uid_t int" >>confdefs.h


$as_echo "#define gid_t int" >>confdefs.h

fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
$as_echo_n "checking if we're including debugging code... " >&6; }
# Check whether --enable-debugging was given.
if test "${enable_debugging+set}" = set; then :
  enableval=$enable_debugging; ntp_ok=$enableval
else
  ntp_ok=yes

fi

case "$ntp_ok" in
 yes)

$as_echo "#define DEBUG 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }



# check if we can compile with pthreads
for ac_header in semaphore.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
if test "x$ac_cv_header_semaphore_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SEMAPHORE_H 1
_ACEOF

fi

done

for ac_func in socketpair
do :
  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
if test "x$ac_cv_func_socketpair" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKETPAIR 1
_ACEOF

fi
done

# Check whether --enable-thread-support was given.
if test "${enable_thread_support+set}" = set; then :
  enableval=$enable_thread_support;
else
  enable_thread_support=yes

fi

have_pthreads=no
case "$enable_thread_support" in
 yes)
    ol_found_pthreads=no



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

# OpenLDAP --with-threads

# Check whether --with-threads was given.
if test "${with_threads+set}" = set; then :
  withval=$with_threads;
	ol_arg=invalid
	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
	fi
	ol_with_threads="$ol_arg"

else
  	ol_with_threads="auto"
fi
# end --with-threads


case "$ol_with_threads$host" in
 auto*-*-solaris2.[0-6])
        ol_with_threads=no
    ;;
esac


ol_aix_threads=no
case "$host" in
*-*-aix*) 	if test -z "$CC" ; then
		case "$ol_with_threads" in
		auto | yes |  posix) ol_aix_threads=yes ;;
		esac
	fi
;;
esac

if test $ol_aix_threads = yes ; then
	if test -z "${CC}" ; then
		for ac_prog in cc_r xlc_r cc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$CC" && break
done


		if test "$CC" = cc ; then
						if test $ol_with_threads != auto ; then
				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
			fi
			ol_with_threads=no
  		fi
	fi

	case ${CC} in cc_r | xlc_r)
		ol_with_threads=posix
		ol_cv_pthread_create=yes
		;;
	esac
fi

ol_link_threads=no
# OpenLDAP --with-yielding_select

# Check whether --with-yielding_select was given.
if test "${with_yielding_select+set}" = set; then :
  withval=$with_yielding_select;
	ol_arg=invalid
	for ol_val in auto yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
	fi
	ol_with_yielding_select="$ol_arg"

else
  	ol_with_yielding_select="auto"
fi
# end --with-yielding_select


case $ol_with_threads in auto | yes | nt)


	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
if test "x$ac_cv_func__beginthread" = xyes; then :

fi


	if test $ac_cv_func__beginthread = yes ; then

$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h

		ol_cv_nt_threads=yes
	fi


	if test "$ol_cv_nt_threads" = yes ; then
		ol_link_threads=nt
		ol_with_threads=found
		ol_with_yielding_select=yes


$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h


$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h

	fi

	if test $ol_with_threads = nt ; then
		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | posix)

	for ac_header in pthread.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_H 1
_ACEOF

fi

done


	if test $ac_cv_header_pthread_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
$as_echo_n "checking POSIX thread version... " >&6; }
if ${ol_cv_pthread_version+:} false; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>

int
main ()
{

		int i = PTHREAD_CREATE_JOINABLE;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_detach" >/dev/null 2>&1; then :
  ol_cv_pthread_version=10
else
  ol_cv_pthread_version=8
fi
rm -f conftest*

else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>
#		ifdef PTHREAD_CREATE_UNDETACHED
		draft7
#		endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft7" >/dev/null 2>&1; then :
  ol_cv_pthread_version=7
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
  ol_cv_pthread_version=6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>
#ifdef		PTHREAD_MUTEX_INITIALIZER
		draft5
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft5" >/dev/null 2>&1; then :
  ol_cv_pthread_version=5
else
  ol_cv_pthread_version=4
fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
$as_echo "$ol_cv_pthread_version" >&6; }


		if test $ol_cv_pthread_version != 0 ; then

cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREADS $ol_cv_pthread_version
_ACEOF

		else
			as_fn_error $? "unknown pthread version" "$LINENO" 5
		fi

		# consider threads found
		ol_with_threads=found


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then

$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h

	fi


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
#ifdef _POSIX_THREAD_IS_GNU_PTH
	__gnu_pth__;
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
  ol_cv_header_gnu_pth_pthread_h=yes
else
  ol_cv_header_gnu_pth_pthread_h=no
fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }


		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
			for ac_header in sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_H 1
_ACEOF

fi

done

		fi


				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
$as_echo_n "checking for pthread_create in default libraries... " >&6; }
if ${ol_cv_pthread_create+:} false; then :
  $as_echo_n "(cached) " >&6
else

			if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
$as_echo "$ol_cv_pthread_create" >&6; }

		if test $ol_cv_pthread_create != no ; then
			ol_link_threads=posix
			ol_link_pthreads=""
		fi

		# Pthread try link: -kthread (ol_cv_pthread_kthread)
if test "$ol_link_threads" = no ; then
	# try -kthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
$as_echo_n "checking for pthread link with -kthread... " >&6; }
if ${ol_cv_pthread_kthread+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-kthread $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
$as_echo "$ol_cv_pthread_kthread" >&6; }

	if test $ol_cv_pthread_kthread = yes ; then
		ol_link_pthreads="-kthread"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -pthread (ol_cv_pthread_pthread)
if test "$ol_link_threads" = no ; then
	# try -pthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
$as_echo_n "checking for pthread link with -pthread... " >&6; }
if ${ol_cv_pthread_pthread+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthread $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_pthread=yes
else
  ol_cv_pthread_pthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthread=yes
else
  ol_cv_pthread_pthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
$as_echo "$ol_cv_pthread_pthread" >&6; }

	if test $ol_cv_pthread_pthread = yes ; then
		ol_link_pthreads="-pthread"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
if test "$ol_link_threads" = no ; then
	# try -pthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
$as_echo_n "checking for pthread link with -pthreads... " >&6; }
if ${ol_cv_pthread_pthreads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthreads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_pthreads=yes
else
  ol_cv_pthread_pthreads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthreads=yes
else
  ol_cv_pthread_pthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
$as_echo "$ol_cv_pthread_pthreads" >&6; }

	if test $ol_cv_pthread_pthreads = yes ; then
		ol_link_pthreads="-pthreads"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
if test "$ol_link_threads" = no ; then
	# try -mthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
$as_echo_n "checking for pthread link with -mthreads... " >&6; }
if ${ol_cv_pthread_mthreads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-mthreads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_mthreads=yes
else
  ol_cv_pthread_mthreads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_mthreads=yes
else
  ol_cv_pthread_mthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
$as_echo "$ol_cv_pthread_mthreads" >&6; }

	if test $ol_cv_pthread_mthreads = yes ; then
		ol_link_pthreads="-mthreads"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -thread (ol_cv_pthread_thread)
if test "$ol_link_threads" = no ; then
	# try -thread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
$as_echo_n "checking for pthread link with -thread... " >&6; }
if ${ol_cv_pthread_thread+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-thread $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_thread=yes
else
  ol_cv_pthread_thread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_thread=yes
else
  ol_cv_pthread_thread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
$as_echo "$ol_cv_pthread_thread" >&6; }

	if test $ol_cv_pthread_thread = yes ; then
		ol_link_pthreads="-thread"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }

	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
else
  ol_cv_pthread_lpthread_lmach_lexc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
else
  ol_cv_pthread_lpthread_lmach_lexc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }

	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
if test "$ol_link_threads" = no ; then
	# try -lpthread -Wl,-woff,85
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -Wl,-woff,85 $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
else
  ol_cv_pthread_lib_lpthread_woff=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
else
  ol_cv_pthread_lib_lpthread_woff=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }

	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
		ol_link_pthreads="-lpthread -Wl,-woff,85"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
if test "$ol_link_threads" = no ; then
	# try -lpthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
$as_echo_n "checking for pthread link with -lpthread... " >&6; }
if ${ol_cv_pthread_lpthread+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
else
  ol_cv_pthread_lpthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
else
  ol_cv_pthread_lpthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
$as_echo "$ol_cv_pthread_lpthread" >&6; }

	if test $ol_cv_pthread_lpthread = yes ; then
		ol_link_pthreads="-lpthread"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
$as_echo_n "checking for pthread link with -lc_r... " >&6; }
if ${ol_cv_pthread_lc_r+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
else
  ol_cv_pthread_lc_r=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
else
  ol_cv_pthread_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
$as_echo "$ol_cv_pthread_lc_r" >&6; }

	if test $ol_cv_pthread_lc_r = yes ; then
		ol_link_pthreads="-lc_r"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -threads (ol_cv_pthread_threads)
if test "$ol_link_threads" = no ; then
	# try -threads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
$as_echo_n "checking for pthread link with -threads... " >&6; }
if ${ol_cv_pthread_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-threads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_threads=yes
else
  ol_cv_pthread_threads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_threads=yes
else
  ol_cv_pthread_threads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
$as_echo "$ol_cv_pthread_threads" >&6; }

	if test $ol_cv_pthread_threads = yes ; then
		ol_link_pthreads="-threads"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }

	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }

	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lexc=yes
else
  ol_cv_pthread_lpthreads_lexc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lexc=yes
else
  ol_cv_pthread_lpthreads_lexc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }

	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lexc"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
if test "$ol_link_threads" = no ; then
	# try -lpthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
if ${ol_cv_pthread_lib_lpthreads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
else
  ol_cv_pthread_lib_lpthreads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
else
  ol_cv_pthread_lib_lpthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }

	if test $ol_cv_pthread_lib_lpthreads = yes ; then
		ol_link_pthreads="-lpthreads"
		ol_link_threads=posix
	fi
fi


		if test $ol_link_threads != no ; then
			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"

						save_CPPFLAGS="$CPPFLAGS"
			save_LIBS="$LIBS"
			LIBS="$LTHREAD_LIBS $LIBS"

												for ac_func in sched_yield pthread_yield thr_yield
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test $ac_cv_func_thr_yield = no ; then
								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
$as_echo_n "checking for sched_yield in -lrt... " >&6; }
if ${ac_cv_lib_rt_sched_yield+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_yield ();
int
main ()
{
return sched_yield ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rt_sched_yield=yes
else
  ac_cv_lib_rt_sched_yield=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"

$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h

					ac_cv_func_sched_yield=yes
else
  ac_cv_func_sched_yield=no
fi

			fi
			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test "$ac_cv_func_thr_yield" = no ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
			fi

						for ac_func in pthread_kill
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
if test "x$ac_cv_func_pthread_kill" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL 1
_ACEOF

fi
done


									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
  $as_echo_n "(cached) " >&6
else

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <pthread.h>
pthread_rwlock_t rwlock;

int
main ()
{
pthread_rwlock_destroy(&rwlock);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_func_pthread_rwlock_destroy=yes
else
  ol_cv_func_pthread_rwlock_destroy=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then

$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h

			fi

									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_detach+:} false; then :
  $as_echo_n "(cached) " >&6
else

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <pthread.h>
#ifndef NULL
#define NULL (void*)0
#endif

int
main ()
{
pthread_detach(NULL);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_func_pthread_detach=yes
else
  ol_cv_func_pthread_detach=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
$as_echo "$ol_cv_func_pthread_detach" >&6; }

			if test $ol_cv_func_pthread_detach = no ; then
				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
			fi


$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h


						for ac_func in \
				pthread_setconcurrency \
				pthread_getconcurrency \
				thr_setconcurrency \
				thr_getconcurrency \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done



	for ac_func in pthread_kill_other_threads_np
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
_ACEOF

fi
done

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
$as_echo_n "checking for LinuxThreads implementation... " >&6; }
if ${ol_cv_sys_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
$as_echo "$ol_cv_sys_linux_threads" >&6; }




	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
$as_echo_n "checking for LinuxThreads consistency... " >&6; }
if ${ol_cv_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		if test $ol_cv_header_linux_threads = yes &&
		   test $ol_cv_sys_linux_threads = yes; then
			ol_cv_linux_threads=yes
		elif test $ol_cv_header_linux_threads = no &&
		     test $ol_cv_sys_linux_threads = no; then
			ol_cv_linux_threads=no
		else
			ol_cv_linux_threads=error
		fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
$as_echo "$ol_cv_linux_threads" >&6; }


			if test $ol_cv_linux_threads = error; then
				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
			fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
$as_echo_n "checking if pthread_create() works... " >&6; }
if ${ol_cv_pthread_create_works+:} false; then :
  $as_echo_n "(cached) " >&6
else

			if test "$cross_compiling" = yes; then :
  				ol_cv_pthread_create_works=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create_works=yes
else
  ol_cv_pthread_create_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
$as_echo "$ol_cv_pthread_create_works" >&6; }

			if test $ol_cv_pthread_create_works = no ; then
				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
			fi

			ol_replace_broken_yield=no

			if test $ol_replace_broken_yield = yes ; then

$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h

			fi

						if test x$ol_with_yielding_select = xauto ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
$as_echo_n "checking if select yields when using pthreads... " >&6; }
if ${ol_cv_pthread_select_yields+:} false; then :
  $as_echo_n "(cached) " >&6
else

				if test "$cross_compiling" = yes; then :
  ol_cv_pthread_select_yields=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#ifndef NULL
#define NULL (void*) 0
#endif

static int fildes[2];

static void *task(p)
	void *p;
{
	int i;
	struct timeval tv;

	fd_set rfds;

	tv.tv_sec=10;
	tv.tv_usec=0;

	FD_ZERO(&rfds);
	FD_SET(fildes[0], &rfds);

	/* we're not interested in any fds */
	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);

	if(i < 0) {
		perror("select");
		exit(10);
	}

	exit(0); /* if we exit here, the select blocked the whole process */
}

int main(argc, argv)
	int argc;
	char **argv;
{
	pthread_t t;

	/* create a pipe to select */
	if(pipe(&fildes[0])) {
		perror("select");
		exit(1);
	}

#ifdef HAVE_PTHREAD_SETCONCURRENCY
	(void) pthread_setconcurrency(2);
#else
#ifdef HAVE_THR_SETCONCURRENCY
	/* Set Solaris LWP concurrency to 2 */
	thr_setconcurrency(2);
#endif
#endif

#if HAVE_PTHREADS < 6
	pthread_create(&t, pthread_attr_default, task, NULL);
#else
	pthread_create(&t, NULL, task, NULL);
#endif

	/* make sure task runs first */
#ifdef HAVE_THR_YIELD
	thr_yield();
#elif defined( HAVE_SCHED_YIELD )
	sched_yield();
#elif defined( HAVE_PTHREAD_YIELD )
	pthread_yield();
#endif

	exit(2);
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_select_yields=no
else
  ol_cv_pthread_select_yields=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
$as_echo "$ol_cv_pthread_select_yields" >&6; }

				if test $ol_cv_pthread_select_yields = cross ; then
					as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
				fi

				if test $ol_cv_pthread_select_yields = yes ; then
					ol_with_yielding_select=yes
				fi
			fi

						CPPFLAGS="$save_CPPFLAGS"
			LIBS="$save_LIBS"
		else
			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
		fi
	fi

	if test $ol_with_threads = posix ; then
		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | mach)

		for ac_header in mach/cthreads.h cthreads.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	if test $ac_cv_header_mach_cthreads_h = yes ; then
		ol_with_threads=found

				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
fi


		if test $ol_link_threads = no ; then
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
$as_echo_n "checking for cthread_fork with -all_load... " >&6; }
if ${ol_cv_cthread_all_load+:} false; then :
  $as_echo_n "(cached) " >&6
else

								save_LIBS="$LIBS"
				LIBS="-all_load $LIBS"
				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <mach/cthreads.h>
int
main ()
{

					cthread_fork((void *)0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_cthread_all_load=yes
else
  ol_cv_cthread_all_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
								LIBS="$save_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
$as_echo "$ol_cv_cthread_all_load" >&6; }

			if test $ol_cv_cthread_all_load = yes ; then
				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
				ol_link_threads=mach
				ol_with_threads=found
			fi
		fi

	elif test $ac_cv_header_cthreads_h = yes ; then

		ol_with_threads=found

				save_LIBS="$LIBS"
		LIBS="$LIBS -lthreads"
		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
fi

		LIBS="$save_LIBS"

		if test $ol_link_threads = yes ; then
			LTHREAD_LIBS="-lthreads"
			ol_link_threads=mach
			ol_with_threads=found
		else
			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
		fi

	elif test $ol_with_threads = mach ; then
		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
	fi

	if test $ol_link_threads = mach ; then

$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h

	elif test $ol_with_threads = found ; then
		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | pth)

	for ac_header in pth.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
if test "x$ac_cv_header_pth_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTH_H 1
_ACEOF

fi

done


	if test $ac_cv_header_pth_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
$as_echo_n "checking for pth_version in -lpth... " >&6; }
if ${ac_cv_lib_pth_pth_version+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpth  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pth_version ();
int
main ()
{
return pth_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pth_pth_version=yes
else
  ac_cv_lib_pth_pth_version=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
  have_pth=yes
else
  have_pth=no
fi


		if test $have_pth = yes ; then

$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h

			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
			ol_link_threads=pth
			ol_with_threads=found

			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi
		fi
	fi
	;;
esac

case $ol_with_threads in auto | yes | lwp)

		for ac_header in thread.h synch.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	if test $ac_cv_header_thread_h = yes &&
	   test $ac_cv_header_synch_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
$as_echo_n "checking for thr_create in -lthread... " >&6; }
if ${ac_cv_lib_thread_thr_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char thr_create ();
int
main ()
{
return thr_create ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_thread_thr_create=yes
else
  ac_cv_lib_thread_thr_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
  have_thr=yes
else
  have_thr=no
fi


		if test $have_thr = yes ; then

$as_echo "#define HAVE_THR 1" >>confdefs.h

			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
			ol_link_threads=thr

			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi

						for ac_func in \
				thr_setconcurrency \
				thr_getconcurrency \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

		fi
	fi

		for ac_header in lwp/lwp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LWP_LWP_H 1
_ACEOF

fi

done

	if test $ac_cv_header_lwp_lwp_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
$as_echo_n "checking for lwp_create in -llwp... " >&6; }
if ${ac_cv_lib_lwp_lwp_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llwp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lwp_create ();
int
main ()
{
return lwp_create ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_lwp_lwp_create=yes
else
  ac_cv_lib_lwp_lwp_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
  have_lwp=yes
else
  have_lwp=no
fi


		if test $have_lwp = yes ; then

$as_echo "#define HAVE_LWP 1" >>confdefs.h

			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
			ol_link_threads=lwp

			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=no
			fi
		fi
	fi
	;;
esac

if test $ol_with_yielding_select = yes ; then

$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h

fi

if test $ol_with_threads = manual ; then
		ol_link_threads=yes

	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}

	for ac_header in pthread.h sched.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	for ac_func in sched_yield pthread_yield
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then

$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h

	fi


	for ac_header in mach/cthreads.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MACH_CTHREADS_H 1
_ACEOF

fi

done

	for ac_header in lwp/lwp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LWP_LWP_H 1
_ACEOF

fi

done

	for ac_header in thread.h synch.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

fi

if test $ol_link_threads != no && test $ol_link_threads != nt ; then

$as_echo "#define REENTRANT 1" >>confdefs.h


$as_echo "#define _REENTRANT 1" >>confdefs.h


$as_echo "#define THREAD_SAFE 1" >>confdefs.h


$as_echo "#define _THREAD_SAFE 1" >>confdefs.h


$as_echo "#define THREADSAFE 1" >>confdefs.h


$as_echo "#define _THREADSAFE 1" >>confdefs.h


$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h


			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
$as_echo_n "checking for thread specific errno... " >&6; }
if ${ol_cv_errno_thread_specific+:} false; then :
  $as_echo_n "(cached) " >&6
else

		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <errno.h>
int
main ()
{
errno = 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_errno_thread_specific=yes
else
  ol_cv_errno_thread_specific=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
$as_echo "$ol_cv_errno_thread_specific" >&6; }

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
$as_echo_n "checking for thread specific h_errno... " >&6; }
if ${ol_cv_h_errno_thread_specific+:} false; then :
  $as_echo_n "(cached) " >&6
else

		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netdb.h>
int
main ()
{
h_errno = 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_h_errno_thread_specific=yes
else
  ol_cv_h_errno_thread_specific=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
$as_echo "$ol_cv_h_errno_thread_specific" >&6; }

	if test $ol_cv_errno_thread_specific != yes ||
	   test $ol_cv_h_errno_thread_specific != yes ; then
		LIBS="$LTHREAD_LIBS $LIBS"
		LTHREAD_LIBS=""
	fi

fi

if test $ol_link_threads = no ; then
	if test $ol_with_threads = yes ; then
		as_fn_error $? "no suitable thread support" "$LINENO" 5
	fi

	if test $ol_with_threads = auto ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
		ol_with_threads=no
	fi


$as_echo "#define NO_THREADS 1" >>confdefs.h

	LTHREAD_LIBS=""
	BUILD_THREAD=no
else
	BUILD_THREAD=yes
fi

if test $ol_link_threads != no ; then

$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h

fi

# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
case "$ol_with_threads" in
 no)
    ol_pthread_ok=no

    ;;
 *)
    ol_found_pthreads=yes
    ;;
esac

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    case "$ol_found_pthreads" in
     yes)
	saved_LIBS="$LIBS"
	LIBS="$LTHREAD_LIBS $LIBS"
	saved_CFLAGS="$CFLAGS"
	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
	for ac_func in sem_timedwait
do :
  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
if test "x$ac_cv_func_sem_timedwait" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SEM_TIMEDWAIT 1
_ACEOF

fi
done

	LIBS="$saved_LIBS"
	{ saved_LIBS=; unset saved_LIBS;}
	CFLAGS="$saved_CFLAGS"
	{ saved_CFLAGS=; unset saved_CFLAGS;}
	case "$ac_cv_func_sem_timedwait" in
	 yes)
	    PTHREAD_LIBS="$LTHREAD_LIBS"
	    have_pthreads=yes
	    # Bug 2332: With GCC we need to force a reference to libgcc_s
	    # (if libgcc_s exists) or the combination of
	    # threads + setuid + mlockall does not work on linux because
	    # thread cancellation fails to load libgcc_s with dlopen().
	    # We have to pass this all as linker options to avoid argument
	    # reordering by libtool.
	    case "$GCC$with_gnu_ld" in
	    yesyes)
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lgcc_s" >&5
$as_echo_n "checking for exit in -lgcc_s... " >&6; }
if ${ac_cv_lib_gcc_s_exit+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgcc_s  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char exit ();
int
main ()
{
return exit ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gcc_s_exit=yes
else
  ac_cv_lib_gcc_s_exit=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_exit" >&5
$as_echo "$ac_cv_lib_gcc_s_exit" >&6; }
if test "x$ac_cv_lib_gcc_s_exit" = xyes; then :
  PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed"
fi

		;;
	    esac
	esac
    esac
esac

case "$have_pthreads" in
 yes)
    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
    saved_LIBS="$LIBS"
    LIBS="$LTHREAD_LIBS $LIBS"
    saved_CFLAGS="$CFLAGS"
    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
$as_echo_n "checking size of pthread_t... " >&6; }
if ${ac_cv_sizeof_pthread_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
	    $ac_includes_default
	    #include <pthread.h>


"; then :

else
  if test "$ac_cv_type_pthread_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (pthread_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_pthread_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
$as_echo "$ac_cv_sizeof_pthread_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
_ACEOF


    LIBISC_PTHREADS_NOTHREADS=pthreads

$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h

    #
    # We'd like to use sigwait() too
    #
    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
if test "x$ac_cv_func_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
$as_echo_n "checking for sigwait in -lc... " >&6; }
if ${ac_cv_lib_c_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_sigwait=yes
else
  ac_cv_lib_c_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
$as_echo "$ac_cv_lib_c_sigwait" >&6; }
if test "x$ac_cv_lib_c_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
$as_echo_n "checking for sigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread_sigwait=yes
else
  ac_cv_lib_pthread_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread__Psigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char _Psigwait ();
int
main ()
{
return _Psigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread__Psigwait=yes
else
  ac_cv_lib_pthread__Psigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
  have_sigwait=yes
else
  have_sigwait=no

fi


fi


fi


fi

    case "$host:$have_sigwait" in
     *-freebsd*:no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
$as_echo_n "checking for sigwait in -lc_r... " >&6; }
if ${ac_cv_lib_c_r_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc_r  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_r_sigwait=yes
else
  ac_cv_lib_c_r_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
  have_sigwait=yes

fi

    esac
    case "$have_sigwait" in
     yes)
	ac_cv_func_sigwait=yes

$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h

    esac

    for ac_func in pthread_attr_getstacksize
do :
  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
_ACEOF

fi
done

    for ac_func in pthread_attr_setstacksize sysconf
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


    case "$host" in
     *-freebsd5.[012]|*-freebsd5.[012].*)
	;;
     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)

$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h

	;;
     *-bsdi3.*|*-bsdi4.0*)

$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h

	;;
     *-linux*)

$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h

	;;
     *-solaris*)
	$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

	for ac_func in pthread_setconcurrency
do :
  ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_SETCONCURRENCY 1
_ACEOF

fi
done

	case "$ac_cv_func_pthread_setconcurrency" in
	 yes)

$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h

	esac
	;;
     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)

$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h

	;;
    esac
    hack_shutup_pthreadonceinit=no
    case "$host" in
     *-aix5.[123].*)
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.[89])
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.1[0-9])
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <pthread.h>

int
main ()
{

		        static pthread_once_t once_test =
						PTHREAD_ONCE_INIT;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_braces_around_pthread_once_init=no
else
  ntp_cv_braces_around_pthread_once_init=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
	case "$ntp_cv_braces_around_pthread_once_init" in
	 yes)
	    hack_shutup_pthreadonceinit=yes
	esac
	;;
    esac
    case "$hack_shutup_pthreadonceinit" in
     yes)

$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h

    esac
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
    CFLAGS="$saved_CFLAGS"
    { saved_CFLAGS=; unset saved_CFLAGS;}
    ;;
 *)
    LIBISC_PTHREADS_NOTHREADS=nothreads
    ;;
esac

 if test "$have_pthreads" != "no"; then
  PTHREADS_TRUE=
  PTHREADS_FALSE='#'
else
  PTHREADS_TRUE='#'
  PTHREADS_FALSE=
fi







case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
 no:yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
if ${ntp_cv_vsnprintf_percent_m+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ntp_cv_vsnprintf_percent_m=no

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include <stdarg.h>
		    #include <errno.h>
		    #include <stdio.h>
		    #include <string.h>

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    );

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    )
		    {
			    va_list	ap;
			    int		rc;

			    va_start(ap, fmt);
			    rc = vsnprintf(dst, sz, fmt, ap);
			    va_end(ap);

			    return rc;
		    }

int
main ()
{

		    char	sbuf[512];
		    char	pbuf[512];
		    int		slen;

		    strcpy(sbuf, strerror(ENOENT));
		    errno = ENOENT;
		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
					  "wrong");
		    return strcmp(sbuf, pbuf);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ntp_cv_vsnprintf_percent_m=yes
else
  ntp_cv_vsnprintf_percent_m=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
    case "$ntp_cv_vsnprintf_percent_m" in
     yes)

$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h

    esac
esac

for ac_header in sys/clockctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_CLOCKCTL_H 1
_ACEOF

fi

done


# Check whether --enable-clockctl was given.
if test "${enable_clockctl+set}" = set; then :
  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
else
  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
$as_echo "$ntp_use_dev_clockctl" >&6; }


for ac_header in sys/capability.h sys/prctl.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }

case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
 yesyes)
    case "$host" in
     mips-sgi-irix*)
	ntp_have_linuxcaps=no
	;;
     *) ntp_have_linuxcaps=yes
	;;
    esac
    ;;
 *)
    ntp_have_linuxcaps=no
    ;;
esac

# Check whether --enable-linuxcaps was given.
if test "${enable_linuxcaps+set}" = set; then :
  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
$as_echo "$ntp_have_linuxcaps" >&6; }

case "$ntp_have_linuxcaps" in
 yes)

$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h

    LIBS="$LIBS -lcap"
    ;;
esac


for ac_header in priv.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
if test "x$ac_cv_header_priv_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PRIV_H 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }

case "$ac_cv_header_priv_h" in
 yes)
    case "$host" in
     *-solaris*)
	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
if test "x$ac_cv_func_setppriv" = xyes; then :
  ntp_have_solarisprivs=yes
else
  ntp_have_solarisprivs=no

fi

	;;
    esac
esac

# Check whether --enable-solarisprivs was given.
if test "${enable_solarisprivs+set}" = set; then :
  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval

fi



case "$ntp_have_solarisprivs" in
 yes)

$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
$as_echo "$ntp_have_solarisprivs" >&6; }

case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
 *yes*)

$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h

esac

case "$host" in
 *-*-darwin*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
$as_echo_n "checking for library containing res_9_init... " >&6; }
if ${ac_cv_search_res_9_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char res_9_init ();
int
main ()
{
return res_9_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_9_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_res_9_init+:} false; then :
  break
fi
done
if ${ac_cv_search_res_9_init+:} false; then :

else
  ac_cv_search_res_9_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
$as_echo "$ac_cv_search_res_9_init" >&6; }
ac_res=$ac_cv_search_res_9_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

    ;;
 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
$as_echo_n "checking for library containing res_init... " >&6; }
if ${ac_cv_search_res_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char res_init ();
int
main ()
{
return res_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_res_init+:} false; then :
  break
fi
done
if ${ac_cv_search_res_init+:} false; then :

else
  ac_cv_search_res_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
$as_echo "$ac_cv_search_res_init" >&6; }
ac_res=$ac_cv_search_res_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

    ;;
esac
for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


#HMS: Why do we do this check so "early"?
for ac_func in res_init
do :
  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
if test "x$ac_cv_func_res_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RES_INIT 1
_ACEOF

else
  for ac_func in __res_init
do :
  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
if test "x$ac_cv_func___res_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___RES_INIT 1
_ACEOF

fi
done

fi
done


# We also need -lsocket, but we have tested for that already.
ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
if test "x$ac_cv_func_inet_ntop" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
if test "x$ac_cv_func_inet_pton" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h

fi


ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
if test "x$ac_cv_type_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
if test "x$ac_cv_type_u_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT32 1
_ACEOF


fi




case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
$as_echo_n "checking for int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_int32_with_dns+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>

int
main ()
{

		    size_t cb = sizeof(int32);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_type_int32_with_dns=yes
else
  ntp_cv_type_int32_with_dns=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
$as_echo "$ntp_cv_type_int32_with_dns" >&6; }
    case "$ntp_cv_type_int32_with_dns" in
     yes)

$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h

    esac
esac

case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
$as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_u_int32_with_dns+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>

int
main ()
{

		    size_t cb = sizeof(u_int32);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_type_u_int32_with_dns=yes
else
  ntp_cv_type_u_int32_with_dns=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
    case "$ntp_cv_type_u_int32_with_dns" in
     yes)

$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h

    esac
esac

for ac_header in sys/timepps.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
	#ifdef HAVE_SYS_TIME_H
	# include <sys/time.h>
	#endif
	#ifdef HAVE_ERRNO_H
	# include <errno.h>
	#endif


"
if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEPPS_H 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
$as_echo_n "checking for struct timespec... " >&6; }
if ${ntp_cv_struct_timespec+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>
		/* Under SunOS, timespec is in sys/timepps.h,
		   which needs errno.h and FRAC */
		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif
		#ifdef HAVE_SYS_TIMEPPS_H
		# define FRAC 4294967296
		# include <sys/timepps.h>
		#endif

int
main ()
{

		struct timespec n;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_timespec=yes
else
  ntp_cv_struct_timespec=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
$as_echo "$ntp_cv_struct_timespec" >&6; }
case "$ntp_cv_struct_timespec" in
 yes)

$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
$as_echo_n "checking for struct ntptimeval... " >&6; }
if ${ntp_cv_struct_ntptimeval+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>
		#include <sys/timex.h>

int
main ()
{

		struct ntptimeval n;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ntptimeval=yes
else
  ntp_cv_struct_ntptimeval=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
case "$ntp_cv_struct_ntptimeval" in
 yes)

$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h

esac

for ac_header in md5.h
do :
  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
	#ifdef HAVE_SYS_TYPES_H
	# include <sys/types.h>
	#endif


"
if test "x$ac_cv_header_md5_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MD5_H 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
$as_echo_n "checking for library containing MD5Init... " >&6; }
if ${ac_cv_search_MD5Init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char MD5Init ();
int
main ()
{
return MD5Init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' md5 md; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_MD5Init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_MD5Init+:} false; then :
  break
fi
done
if ${ac_cv_search_MD5Init+:} false; then :

else
  ac_cv_search_MD5Init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
$as_echo "$ac_cv_search_MD5Init" >&6; }
ac_res=$ac_cv_search_MD5Init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
$as_echo_n "checking for SIGIO... " >&6; }
if ${ntp_cv_hdr_def_sigio+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <signal.h>

	    #ifndef SIGIO
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_hdr_def_sigio=yes
else
  ntp_cv_hdr_def_sigio=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
$as_echo "$ntp_cv_hdr_def_sigio" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
$as_echo_n "checking if we want to use SIGIO... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigio" in
 yes)
    ans=yes
    case "$host" in
     alpha*-dec-osf4*|alpha*-dec-osf5*)
	ans=no
	;;
     *-convex-*)
	ans=no
	;;
     *-dec-*)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-univel-sysv*)
	ans=no
	;;
     *-*-irix6*)
	ans=no
	;;
     *-*-freebsd*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     m68k-*-mint*)
	ans=no
	;;
    esac
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
$as_echo_n "checking for SIGPOLL... " >&6; }
if ${ntp_cv_hdr_def_sigpoll+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <signal.h>

	    #ifndef SIGPOLL
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_hdr_def_sigpoll=yes
else
  ntp_cv_hdr_def_sigpoll=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-solaris*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>

int
main ()
{

		gettimeofday(0, 0);
		settimeofday(0, 0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_func_Xettimeofday_nargs=2
else
  ntp_cv_func_Xettimeofday_nargs=1

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
case "$ntp_cv_func_Xettimeofday_nargs" in
 1)

$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h

esac

for ac_func in settimeofday
do :
  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
if test "x$ac_cv_func_settimeofday" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETTIMEOFDAY 1
_ACEOF

else

    case "$host" in
     *-*-mpeix*) ac_cv_func_settimeofday=yes
    esac

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
ntp_warning='GRONK'
ans=none
case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
 yes*)
    ntp_warning=''
    ans='clock_settime()'
    ;;
 noyes*)
    ntp_warning='But clock_settime() would be better (if we had it)'
    ans='settimeofday()'
    ;;
 nonoyes)
    ntp_warning='Which is the worst of the three'
    ans='stime()'
    ;;
 *)
    case "$build" in
     $host)
	ntp_warning='Which leaves us with nothing to use!'
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ntp_warning" in
 '')
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
    ;;
esac


LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
LIBS=$__LIBS
{ __LIBS=; unset __LIBS;}



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
$as_echo_n "checking for deprecated --with-arlib... " >&6; }

# Check whether --with-arlib was given.
if test "${with_arlib+set}" = set; then :
  withval=$with_arlib; ans=$withval
else
  ans=no
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&5
$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&2;}
    ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
$as_echo_n "checking for library containing strerror... " >&6; }
if ${ac_cv_search_strerror+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strerror ();
int
main ()
{
return strerror ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' cposix; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_strerror=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_strerror+:} false; then :
  break
fi
done
if ${ac_cv_search_strerror+:} false; then :

else
  ac_cv_search_strerror=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
$as_echo "$ac_cv_search_strerror" >&6; }
ac_res=$ac_cv_search_strerror
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi



# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_PERL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_PERL=$ac_cv_path_PATH_PERL
if test -n "$PATH_PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
$as_echo "$PATH_PERL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
# Extract the first word of "test", so it can be a program name with args.
set dummy test; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_TEST+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_TEST in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_TEST=$ac_cv_path_PATH_TEST
if test -n "$PATH_TEST"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
$as_echo "$PATH_TEST" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh


# Check whether --with-net-snmp-config was given.
if test "${with_net_snmp_config+set}" = set; then :
  withval=$with_net_snmp_config; ans=$withval
else
  ans=yes

fi

case "$ans" in
 no)
    ;;
 yes)
    ans=net-snmp-config
    ;;
 /*)
    ;;
 */*)
    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
    ;;
 *)
    ;;
esac
PROG_NET_SNMP_CONFIG=$ans
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
case "$PROG_NET_SNMP_CONFIG" in
 no) ;;
 /*)
    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
    ;;
 *)
    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_NET_SNMP_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
if test -n "$PATH_NET_SNMP_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }

case "$host" in
 *-*-vxworks*)
    ac_link="$ac_link $VX_KERNEL"
    ;;
esac

# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
$as_echo_n "checking for library containing openlog... " >&6; }
if ${ac_cv_search_openlog+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char openlog ();
int
main ()
{
return openlog ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' gen syslog; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_openlog=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_openlog+:} false; then :
  break
fi
done
if ${ac_cv_search_openlog+:} false; then :

else
  ac_cv_search_openlog=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
$as_echo "$ac_cv_search_openlog" >&6; }
ac_res=$ac_cv_search_openlog
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

# XXX library list will be in ac_cv_search_openlog

# LIBSECCOMP is off by default -- needs testing with all the features
# Please send bug reports to loganaden@@gmail.com
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
# Check whether --enable-libseccomp was given.
if test "${enable_libseccomp+set}" = set; then :
  enableval=$enable_libseccomp; ntp_ok=$enableval
else
  ntp_ok=no

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
$as_echo_n "checking for library containing seccomp_init... " >&6; }
if ${ac_cv_search_seccomp_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char seccomp_init ();
int
main ()
{
return seccomp_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' seccomp; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_seccomp_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_seccomp_init+:} false; then :
  break
fi
done
if ${ac_cv_search_seccomp_init+:} false; then :

else
  ac_cv_search_seccomp_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
$as_echo "$ac_cv_search_seccomp_init" >&6; }
ac_res=$ac_cv_search_seccomp_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

$as_echo "#define LIBSECCOMP 1" >>confdefs.h


fi

    if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	#include <stdio.h>
	#include <stdlib.h>
	#include <errno.h>
	#include <sys/prctl.h>
	#include <linux/seccomp.h>

	int main(void)
	{
		int ret;
		ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
		if (ret < 0) {
			switch (errno) {
			case ENOSYS:
				return 1;
			case EINVAL:
				return 1;
			default:
				return 1;
			}
		}
		ret =
		prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
		if (ret < 0) {
			switch (errno) {
			case EINVAL:
				return 1;
			case EFAULT:
				return 0;
			default:
				return 1;
		}
	}
return 1;
}


_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

$as_echo "#define KERN_SECCOMP 1" >>confdefs.h


fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
$as_echo_n "checking for facilitynames in syslog.h... " >&6; }
if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define SYSLOG_NAMES
#include <stdlib.h>
#include <syslog.h>

int
main ()
{
 void *fnames; fnames = facilitynames;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
else
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
 yes)

$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h

    ;;
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
    ;;
 cross)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
    ;;
esac



case "$host" in
 *-*-*linux*) ;;
 *-*-osf4*) ;;
 *-*-osf5*) ;;
 *)
    # HMS: Make sure we check for -lrt for clock_* before this...
    case "$ac_cv_search_clock_gettime" in
     '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
$as_echo_n "checking for library containing sched_setscheduler... " >&6; }
if ${ac_cv_search_sched_setscheduler+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_setscheduler ();
int
main ()
{
return sched_setscheduler ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' rt posix4; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_sched_setscheduler=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_sched_setscheduler+:} false; then :
  break
fi
done
if ${ac_cv_search_sched_setscheduler+:} false; then :

else
  ac_cv_search_sched_setscheduler=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
$as_echo "$ac_cv_search_sched_setscheduler" >&6; }
ac_res=$ac_cv_search_sched_setscheduler
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

    ;;
esac

for ac_header in bstring.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
if test "x$ac_cv_header_bstring_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_BSTRING_H 1
_ACEOF

fi

done

ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
if test "x$ac_cv_header_dns_sd_h" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
$as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
if ${ac_cv_search_DNSServiceRegister+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char DNSServiceRegister ();
int
main ()
{
return DNSServiceRegister ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dns_sd; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_DNSServiceRegister=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_DNSServiceRegister+:} false; then :
  break
fi
done
if ${ac_cv_search_DNSServiceRegister+:} false; then :

else
  ac_cv_search_DNSServiceRegister=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
$as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
ac_res=$ac_cv_search_DNSServiceRegister
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h


fi


fi


for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in memory.h netdb.h poll.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in sgtty.h stdlib.h string.h termio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in termios.h timepps.h timex.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


case "$host" in
 *-*-aix*)
    for ac_header in utmpx.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
if test "x$ac_cv_header_utmpx_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMPX_H 1
_ACEOF

fi

done

    case "$ac_cv_header_utmpx_h" in
     yes)
	;;
     *)
	for ac_header in utmp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
if test "x$ac_cv_header_utmp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMP_H 1
_ACEOF

fi

done

	;;
    esac
    ;;
 *)
    for ac_header in utmp.h utmpx.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ;;
esac

#
# On Suns only (so far) getpass() truncates the typed password to 8
# characters, but getpassphrase() allows up to 257.  Most systems'
# getpass() does not truncate, at least not so as to affect ntpq and
# ntpdc password prompts.
#
# So check for getpassphrase(), but only on Sun operating systems.
#
case "$host" in
 *-*-sunos*|*-*-solaris*)
    for ac_func in getpassphrase
do :
  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
if test "x$ac_cv_func_getpassphrase" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETPASSPHRASE 1
_ACEOF

fi
done

esac


for ac_header in net/if6.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
if test "x$ac_cv_header_net_if6_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF6_H 1
_ACEOF

fi

done

for ac_header in net/route.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <net/if.h>

"
if test "x$ac_cv_header_net_route_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_ROUTE_H 1
_ACEOF

fi

done


for ac_header in netinfo/ni.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NETINFO_NI_H 1
_ACEOF

fi

done

case "$ac_cv_header_netinfo_ni_h" in
 yes)

$as_echo "#define HAVE_NETINFO 1" >>confdefs.h

esac
for ac_header in sun/audioio.h sys/audioio.h sys/file.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

case "$host" in
 *-*-sunos4*)
    ;;
 *)
    for ac_header in sys/ioctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_IOCTL_H 1
_ACEOF

fi

done

    ;;
esac
for ac_header in sys/ipc.h sys/lock.h sys/mman.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# HMS: Check sys/proc.h and sys/resource.h after some others
for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

case "$ac_cv_header_sched_h" in
 yes)
    ;;
 *)
    for ac_header in sys/sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SCHED_H 1
_ACEOF

fi

done

    ;;
esac
# HMS: Check sys/shm.h after some others
for ac_header in sys/select.h sys/signal.h sys/sockio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# HMS: Checked sys/socket.h earlier
case "$host" in
 *-*-netbsd*)
    ;;
 *)
    for ac_header in machine/soundcard.h sys/soundcard.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ;;
esac
for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

case "$host" in
*-convex-*)
    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ;;
*-*-bsdi*)
    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ;;
esac

case "$host" in
 *-*-solaris2.6)
    # Broken...
    ;;
 *)
    for ac_func in ntp_adjtime ntp_gettime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac

case "$host" in
 *-*-*linux*)
    case "$ac_cv_func_ntp_gettime" in
     yes)
	;;
     *)
	for ac_func in __ntp_gettime
do :
  ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
if test "x$ac_cv_func___ntp_gettime" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___NTP_GETTIME 1
_ACEOF

fi
done

	case "$ac_cv_func___ntp_gettime" in
	 yes)

$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h


$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h

	esac
	;;
    esac
    for ac_func in adjtimex
do :
  ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
if test "x$ac_cv_func_adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ADJTIMEX 1
_ACEOF

fi
done

    case "$ac_cv_func_adjtimex" in
     yes)

$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h


$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h

	have_adjtimex=1
	;;
     *)
	for ac_func in __adjtimex
do :
  ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
if test "x$ac_cv_func___adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___ADJTIMEX 1
_ACEOF

fi
done

	case "$ac_cv_func___adjtimex" in
	 yes)

$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h


$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h


$as_echo "#define adjtimex __adjtimex" >>confdefs.h


$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h

	    have_adjtimex=1
	esac
	;;
    esac
esac
case "$have_adjtimex" in
 '')
    # nlist stuff is only needed for tickadj.
    saved_LIBS="$LIBS"
    LIBS=
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
$as_echo_n "checking for library containing nlist... " >&6; }
if ${ac_cv_search_nlist+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
int
main ()
{
return nlist ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' elf ld mld; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_nlist=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_nlist+:} false; then :
  break
fi
done
if ${ac_cv_search_nlist+:} false; then :

else
  ac_cv_search_nlist=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
$as_echo "$ac_cv_search_nlist" >&6; }
ac_res=$ac_cv_search_nlist
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

    # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
$as_echo_n "checking for library containing kvm_open... " >&6; }
if ${ac_cv_search_kvm_open+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char kvm_open ();
int
main ()
{
return kvm_open ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' kvm; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_kvm_open=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_kvm_open+:} false; then :
  break
fi
done
if ${ac_cv_search_kvm_open+:} false; then :

else
  ac_cv_search_kvm_open=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
$as_echo "$ac_cv_search_kvm_open" >&6; }
ac_res=$ac_cv_search_kvm_open
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi
	    # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
    for ac_header in nlist.h sys/var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    case "$ac_cv_header_nlist_h" in
     yes)

$as_echo "#define NLIST_STRUCT 1" >>confdefs.h

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
$as_echo_n "checking for n_un in struct nlist... " >&6; }
if ${ntp_cv_struct_nlist_n_un+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <nlist.h>

int
main ()
{

			struct nlist n;
			n.n_un.n_name = 0;


  ;
  return 0;
}
		ntp_cv_struct_nlist_n_un=yes
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_nlist_n_un=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
	case "$ntp_cv_struct_nlist_n_un" in
	 yes)

$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h

	esac
    esac

    LDADD_NLIST="$LIBS"
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
esac

for ac_header in sys/proc.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif

"
if test "x$ac_cv_header_sys_proc_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PROC_H 1
_ACEOF

fi

done


for ac_header in sys/resource.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif

"
if test "x$ac_cv_header_sys_resource_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_RESOURCE_H 1
_ACEOF

fi

done


for ac_header in sys/shm.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_IPC_H
    # include <sys/ipc.h>
    #endif

"
if test "x$ac_cv_header_sys_shm_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SHM_H 1
_ACEOF

fi

done


for ac_header in sys/timex.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif

"
if test "x$ac_cv_header_sys_timex_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEX_H 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
if ${ac_cv_type_signal+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <signal.h>

int
main ()
{
return *(signal (0, 0)) (0) == 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_signal=int
else
  ac_cv_type_signal=void
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }

cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
_ACEOF


ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
if test "x$ac_cv_type_off_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define off_t long int
_ACEOF

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if ${ac_cv_struct_tm+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>

int
main ()
{
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_tm=time.h
else
  ac_cv_struct_tm=sys/time.h
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then

$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
$as_echo_n "checking for a fallback value for HZ... " >&6; }
if ${ntp_cv_default_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_default_hz=100
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_default_hz=1024
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_default_hz=256
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
$as_echo "$ntp_cv_default_hz" >&6; }

cat >>confdefs.h <<_ACEOF
#define DEFAULT_HZ $ntp_cv_default_hz
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
if ${ntp_cv_override_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_override_hz=no
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_override_hz=yes
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-freebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-sunos4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-kfreebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
$as_echo "$ntp_cv_override_hz" >&6; }
case "$ntp_cv_override_hz" in
 yes)

$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h

esac



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
$as_echo_n "checking for struct rt_msghdr... " >&6; }
if ${ntp_cv_struct_rt_msghdr+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <sys/socket.h>
		#include <net/if.h>
		#include <net/route.h>

int
main ()
{

		struct rt_msghdr p;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_rt_msghdr=yes
else
  ntp_cv_struct_rt_msghdr=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
$as_echo_n "checking for struct rtattr... " >&6; }
if ${ntp_cv_rtattr+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <stddef.h>
		#include <sys/socket.h>
		#include <linux/rtnetlink.h>

int
main ()
{

		struct rtattr p;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rtattr=yes
else
  ntp_cv_rtattr=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
$as_echo "$ntp_cv_rtattr" >&6; }

case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
 *yes*)

$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h

    case "$ntp_cv_rtattr" in
     yes)

$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h

    esac
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <signal.h>

int
main ()
{

		struct sigaction act;
		act.sa_sigaction = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_sigaction_has_sa_sigaction=yes
else
  ntp_cv_struct_sigaction_has_sa_sigaction=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
 yes)

$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
$as_echo_n "checking for struct ppsclockev... " >&6; }
if ${ntp_cv_struct_ppsclockev+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TERMIOS_H
		# include <sys/termios.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_PPSCLOCK_H
		# include <sys/ppsclock.h>
		#endif

int
main ()
{

		extern struct ppsclockev *pce;
		return pce->serial;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ppsclockev=yes
else
  ntp_cv_struct_ppsclockev=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
case "$ntp_cv_struct_ppsclockev" in
 yes)

$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h

esac

case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
  *yes*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
$as_echo_n "checking for struct snd_size... " >&6; }
if ${ntp_cv_struct_snd_size+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_MACHINE_SOUNDCARD_H
		    # include <machine/soundcard.h>
		    #endif
		    #ifdef HAVE_SYS_SOUNDCARD_H
		    # include <sys/soundcard.h>
		    #endif

int
main ()
{

		    extern struct snd_size *ss;
		    return ss->rec_size;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_snd_size=yes
else
  ntp_cv_struct_snd_size=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
$as_echo "$ntp_cv_struct_snd_size" >&6; }
    case "$ntp_cv_struct_snd_size" in
     yes)

$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h

    esac
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
$as_echo_n "checking struct clockinfo for hz... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>

int
main ()
{

		extern struct clockinfo *pc;
		return pc->hz;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_clockinfo_has_hz=yes
else
  ntp_cv_struct_clockinfo_has_hz=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)

$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>

int
main ()
{

		extern struct clockinfo *pc;
		return pc->tickadj;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_clockinfo_has_hz=yes
else
  ntp_cv_struct_clockinfo_has_hz=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)

$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h

esac

case "$ntp_cv_struct_ntptimeval" in
 yes)
    ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
	    #ifdef HAVE_SYS_TIME_H
	    # include <sys/time.h>
	    #else
	    # ifdef HAVE_TIME_H
	    #  include <time.h>
	    # endif
	    #endif
	    #ifdef HAVE_SYS_TIMEX_H
	    # include <sys/timex.h>
	    #else
	    # ifdef HAVE_TIMEX_H
	    #  include <timex.h>
	    # endif
	    #endif


"
if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
_ACEOF


fi

esac

####

saved_LIBS="$LIBS"
LIBS="$LIBS $LDADD_LIBNTP"
for ac_func in daemon
do :
  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
if test "x$ac_cv_func_daemon" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DAEMON 1
_ACEOF

fi
done

# XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
LIBS="$saved_LIBS"
{ saved_LIBS=; unset saved_LIBS;}

for ac_func in finite
do :
  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
if test "x$ac_cv_func_finite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FINITE 1
_ACEOF

else
  for ac_func in isfinite
do :
  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
if test "x$ac_cv_func_isfinite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ISFINITE 1
_ACEOF

else

	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
$as_echo_n "checking for isfinite with <math.h>... " >&6; }
	    _libs=$LIBS
	    # XXX
	    LIBS="$LIBS -lm"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <math.h>

int
main ()
{

			float f = 0.0;
			isfinite(f);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ans=yes
else
  ans=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    LIBS=$_libs
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
	    case "$ans" in
	     yes)
		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h

	    esac


fi
done


fi
done


for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


# kvm_open() is only used by tickadj.  Also see above.
case "$ac_cv_header_kvm_h" in
 yes)
    for ac_func in kvm_open
do :
  ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
if test "x$ac_cv_func_kvm_open" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_KVM_OPEN 1
_ACEOF

fi
done

    ;;
esac

case "$host" in
 *-*-sco3.2v5.0.*)
    # Just stubs.  Sigh.
    ;;
 *) for ac_func in mkstemp
do :
  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
if test "x$ac_cv_func_mkstemp" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MKSTEMP 1
_ACEOF

fi
done

    ;;
esac
for ac_func in mktime
do :
  ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
if test "x$ac_cv_func_mktime" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MKTIME 1
_ACEOF

fi
done

case "$host" in
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub.  Sigh.
    ;;
 *-*-irix[45]*)
    # Just a stub in "old" Irix.  Sigh.
    ;;
# In the belief that the fix for bug 1223 fixes mlockall() under linux...
# *-*-*linux*)
#    # there, but more trouble than it is worth for now (resolver problems)
#    ;;
 *-*-qnx*)
    # Apparently there but not working in QNX.  Sigh?
    ;;
 *-*-sco3.2v5.0.*)
    # Just a stub.  Sigh.
    ;;
 alpha*-dec-osf4*|alpha*-dec-osf5*)
    # mlockall is there, as a #define calling memlk via <sys/mman.h>
    # Not easy to test for - cheat.
    for ac_func in memlk
do :
  ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
if test "x$ac_cv_func_memlk" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MEMLK 1
_ACEOF
 ac_cv_func_mlockall=yes
fi
done

    for ac_func in mlockall
do :
  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MLOCKALL 1
_ACEOF

fi
done

    ;;
 *) for ac_func in mlockall
do :
  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MLOCKALL 1
_ACEOF

fi
done

    ;;
esac
for ac_func in nice plock pututline pututxline readlink rtprio
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

case "$host" in
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub in AIX 4.  Sigh.
    ;;
 *-*-solaris2.5*)
    # Just stubs in solaris2.5.  Sigh.
    ;;
 *) for ac_func in sched_setscheduler
do :
  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_SETSCHEDULER 1
_ACEOF

fi
done

    ;;
esac
for ac_func in setlinebuf setpgid setpriority setsid setvbuf
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

for ac_func in strdup strerror setrlimit strchr
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

case "$host" in
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just stubs.  Sigh.
    ;;
 *-*-netbsd1*)
    # Just stubs.  Sigh.
    ;;
 *-*-netbsdelf1*)
    # Just stubs.  Sigh.
    ;;
 *-*-openbsd*)
    # Just stubs.  Sigh.
    ;;
 *)
    for ac_func in timer_create
do :
  ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
if test "x$ac_cv_func_timer_create" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_TIMER_CREATE 1
_ACEOF

fi
done

    ;;
esac



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
if ${ntp_cv_rlimit_memlock+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif

int
main ()
{

		getrlimit(RLIMIT_MEMLOCK, 0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_memlock=yes
else
  ntp_cv_rlimit_memlock=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
$as_echo "$ntp_cv_rlimit_memlock" >&6; }
case "$ntp_cv_rlimit_memlock" in
 yes)

    HAVE_RLIMIT_MEMLOCK=" memlock 32"
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
$as_echo_n "checking for RLIMIT_STACK... " >&6; }
if ${ntp_cv_rlimit_stack+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif

int
main ()
{

		getrlimit(RLIMIT_STACK, 0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_stack=yes
else
  ntp_cv_rlimit_stack=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
$as_echo "$ntp_cv_rlimit_stack" >&6; }
case "$ntp_cv_rlimit_stack" in
 yes)

    HAVE_RLIMIT_STACK=" stacksize 50"
esac



# HMS: Only if we are doing the MLOCKALL stuff...
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
$as_echo_n "checking for the default number of 4k stack pages... " >&6; }

# Check whether --with-stack-limit was given.
if test "${with_stack_limit+set}" = set; then :
  withval=$with_stack_limit; ans=$withval
else
  ans=yes

fi

case "$ans" in
 yes | no)
    case "$host" in
     *-*-openbsd*)
	ans=200
	;;
     *) ans=50
        ;;
    esac
    ;;
 [1-9][0-9]*)
    ;;
 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_STACK $ans
_ACEOF


# HMS: only if we have RLIMIT_MEMLOCK
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }

# Check whether --with-memlock was given.
if test "${with_memlock+set}" = set; then :
  withval=$with_memlock; ans=$withval
else
  ans=yes

fi

case "$ans" in
 yes | no)
    ans=32
    ;;
 [1-9][0-9]*) ;;
 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
     ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_MEMLOCK $ans
_ACEOF



# some OSes prefer _exit() in forked children to exit()
for ac_func in _exit
do :
  ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
if test "x$ac_cv_func__exit" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE__EXIT 1
_ACEOF

fi
done

ntp_worker_child_exit=exit
case "$ac_cv_func__exit::$host_os" in
 yes::netbsd*)
    ntp_worker_child_exit=_exit
    ;;
 yes::openbsd*)
    ntp_worker_child_exit=_exit
    ;;
esac

cat >>confdefs.h <<_ACEOF
#define WORKER_CHILD_EXIT $ntp_worker_child_exit
_ACEOF


for ac_func in umask uname updwtmp updwtmpx
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


###

# http://bugs.ntp.org/737
case "$ac_cv_func_recvmsg" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
$as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
if ${ntp_cv_struct_iovec_help+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    compiled=no
	    for ntp_cv_struct_iovec_help in '0' '1'; do
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    #ifdef HAVE_SYS_TYPES_H
			    # include <sys/types.h>
			    #endif
			    #ifdef HAVE_SYS_SOCKET_H
			    # include <sys/socket.h>
			    #endif
			    #if $ntp_cv_struct_iovec_help
			    # include <sys/uio.h>
			    #endif

int
main ()
{

			    void foo(void) {
				ssize_t x;
				int s = 0;
				struct iovec iov;
				struct msghdr mh;
				int flags = 0;

				mh.msg_iov = &iov;
				x = recvmsg(s, &mh, flags);
			    }


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  compiled=yes ; break 1
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    done
	    case "$compiled" in
	     no)
		ntp_cv_struct_iovec_help=0
	    esac
	    { compiled=; unset compiled;}


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
$as_echo "$ntp_cv_struct_iovec_help" >&6; }
    case "$ntp_cv_struct_iovec_help" in
     1)

$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h

    esac
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
if ${ntp_cv_func_setpgrp_nargs+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_UNISTD_H
		# include <unistd.h>
		#endif

int
main ()
{

		setpgrp(0, 0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_func_setpgrp_nargs=2
else
  ntp_cv_func_setpgrp_nargs=0

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
$as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
case "$ntp_cv_func_setpgrp_nargs" in
 0)

$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
$as_echo_n "checking if we need to declare 'errno'... " >&6; }
if ${ntp_cv_decl_errno+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif

int
main ()
{

		errno = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_decl_errno=no
else
  ntp_cv_decl_errno=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
$as_echo "$ntp_cv_decl_errno" >&6; }
case "$ntp_cv_decl_errno" in
 yes)

$as_echo "#define DECL_ERRNO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
$as_echo_n "checking if we may declare 'h_errno'... " >&6; }
if ${ntp_cv_decl_h_errno+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif
		#ifdef HAVE_ARPA_NAMESER_H
		# include <arpa/nameser.h>
		#endif
		#ifdef HAVE_NETDB_H
		# include <netdb.h>
		#endif
		#ifdef HAVE_RESOLV_H
		# include <resolv.h>
		#endif

int
main ()
{

		extern int h_errno;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_decl_h_errno=yes
else
  ntp_cv_decl_h_errno=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
$as_echo "$ntp_cv_decl_h_errno" >&6; }
case "$ntp_cv_decl_h_errno" in
 yes)

$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
if ${ntp_cv_decl_syscall+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_UNISTD_H
		# include <unistd.h>
		#endif

int
main ()
{

		extern int syscall (int, ...);


  ;
  return 0;
}
	ntp_cv_decl_syscall=yes
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_decl_syscall=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
$as_echo "$ntp_cv_decl_syscall" >&6; }
case "$ntp_cv_decl_syscall" in
 yes)

$as_echo "#define DECL_SYSCALL 1" >>confdefs.h

esac

case "$host" in
 *-*-aix4.3.*)

$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
		# Needed for XLC under AIX 4.3.2
    ;;
 *-*-mpeix*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h


$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h


$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_SELECT_0 1" >>confdefs.h


$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h


$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h


$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h

    ;;
 *-*-osf[45]*)

$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h


$as_echo "#define DECL_STIME_1 1" >>confdefs.h

    ;;
 *-*-qnx*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h

    ;;
 *-*-riscos4*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h


$as_echo "#define DECL_BZERO_0 1" >>confdefs.h


$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h


$as_echo "#define DECL_IPC_0 1" >>confdefs.h


$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h


$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_RENAME_0 1" >>confdefs.h


$as_echo "#define DECL_SELECT_0 1" >>confdefs.h


$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h


$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h


$as_echo "#define DECL_STDIO_0 1" >>confdefs.h


$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h


$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h


$as_echo "#define DECL_TIME_0 1" >>confdefs.h


$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h


$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h

    ;;
 *-*-solaris2*)

$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h

    case "$host" in
     *-*-solaris2.4)

$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h

	;;
    esac
    ;;
 *-*-sunos4*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h


$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h


$as_echo "#define DECL_BZERO_0 1" >>confdefs.h


$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h


$as_echo "#define DECL_IPC_0 1" >>confdefs.h


$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h


$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_RENAME_0 1" >>confdefs.h


$as_echo "#define DECL_SELECT_0 1" >>confdefs.h


$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h


$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h


$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h

    case "`basename $ac_cv_prog_CC`" in
     acc*) ;;
     *)
$as_echo "#define DECL_STDIO_0 1" >>confdefs.h

	;;
    esac

$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h


$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h


$as_echo "#define DECL_TIME_0 1" >>confdefs.h


$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h


$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h


$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h


$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h

    ;;
 *-*-ultrix4*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h


$as_echo "#define DECL_BZERO_0 1" >>confdefs.h


$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h


$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h


$as_echo "#define DECL_IPC_0 1" >>confdefs.h


$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_NLIST_0 1" >>confdefs.h


$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h


$as_echo "#define DECL_SELECT_0 1" >>confdefs.h


$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h


$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h


$as_echo "#define DECL_STIME_0 1" >>confdefs.h


$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h


$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h

    ;;
esac

case "$host" in
 *-*-sco3.2*)

$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h

    ;;
esac

case "$host" in
 *-*-hpux[567]*)

$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
$as_echo_n "checking if we will open the broadcast socket... " >&6; }
if ${ntp_cv_var_open_bcast_socket+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=yes
	case "$host" in
	 *-*-domainos)
	    ans=no
	esac
	ntp_cv_var_open_bcast_socket=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
$as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
case "$ntp_cv_var_open_bcast_socket" in
 yes)

$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h

esac

case "$host" in
 *-*-hpux*)

$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
$as_echo_n "checking if process groups are set with -pid... " >&6; }
if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-hpux[567]*)
	    ans=no
	    ;;
	 *-*-hpux*)
	    ans=yes
	    ;;
	 *-*-*linux*)
	    ans=yes
	    ;;
	 *-*-sunos3*)
	    ans=yes
	    ;;
	 *-*-ultrix2*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_arg_setpgrp_negpid=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
$as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
case "$ntp_cv_arg_setpgrp_negpid" in
 yes)

$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-bsdi[23]*)
	    ans=yes
	    ;;
	 *-*-freebsd*)
	    ans=yes
	    ;;
	# NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
	# while later versions will fail a ioctl(TIOCSCTTY, 0) call in
	# some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
	# in $host may be followed by "aout", "ecoff", or "elf".
	 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
	    ans=yes
	    ;;
	 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
	    ans=yes
	    ;;
	 *-*-openbsd*)
	    ans=yes
	    ;;
	 *-*-osf*)
	    ans=yes
	    ;;
	 *-*-darwin*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_func_ctty_for_f_setown=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
case "$ntp_cv_func_ctty_for_f_setown" in
 yes)

$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
if ${ntp_cv_os_routeupdates+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-netbsd*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_os_routeupdates=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
$as_echo "$ntp_cv_os_routeupdates" >&6; }
case "$ntp_cv_os_routeupdates" in
 yes)

$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
if ${ntp_cv_os_wildcardreuse+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-*linux*)
	    ans=yes
	    ;;
	 *) ans=no
	    ;;
	esac
	ntp_cv_os_wildcardreuse=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
case "$ntp_cv_os_wildcardreuse" in
 yes)

$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h

esac

case "$host" in
 *-*-aix*)

$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
if ${ntp_cv_var_min_rec_tickadj+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=no
	case "$host" in
	 *-*-aix*)
	    ans=40
	    ;;
	esac
	ntp_cv_var_min_rec_tickadj=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
$as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
case "$ntp_cv_var_min_rec_tickadj" in
 ''|no)
    ;;
 *)

cat >>confdefs.h <<_ACEOF
#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
_ACEOF

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
if ${ntp_cv_no_parenb_ignpar+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=no
	case "$host" in
	 i?86-*-*linux*)
	    ans=yes
	    ;;
	 mips-sgi-irix*)
	    ans=yes
	    ;;
	 i?86-*-freebsd[123].*)
	    ;;
	 i?86-*-freebsd*)
	    ans=yes
	    ;;
	 *-*-unicosmp*)
	    ans=yes
	    ;;
	esac
	ntp_cv_no_parenb_ignpar=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
$as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
case "$ntp_cv_no_parenb_ignpar" in
 yes)

$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
$as_echo_n "checking if we're including processing time debugging code... " >&6; }
# Check whether --enable-debug-timing was given.
if test "${enable_debug_timing+set}" = set; then :
  enableval=$enable_debug_timing; ntp_ok=$enableval
else
  ntp_ok=no

fi

case "$ntp_ok" in
 yes)

$as_echo "#define DEBUG_TIMING 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
# Check whether --enable-dst-minutes was given.
if test "${enable_dst_minutes+set}" = set; then :
  enableval=$enable_dst_minutes; ans=$enableval
else
  ans=60

fi


cat >>confdefs.h <<_ACEOF
#define DSTMINUTES $ans
_ACEOF

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
# Check whether --enable-ignore-dns-errors was given.
if test "${enable_ignore_dns_errors+set}" = set; then :
  enableval=$enable_ignore_dns_errors; ans=$enableval
else
  ans=no

fi

case "$ans" in
 yes)

$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
if ${ntp_cv_var_ntp_syscalls+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_var_ntp_syscalls=no
	case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
	 yesyes*)
	    ntp_cv_var_ntp_syscalls=libc
	    ;;
	 *yes)
	    ntp_cv_var_ntp_syscalls=inline
	    ;;
	 *)
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include <sys/syscall.h>
		    #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
		    # error
		    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_var_ntp_syscalls=kernel

fi
rm -f conftest.err conftest.i conftest.$ac_ext
	    ;;
	 esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
$as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
case "$ntp_cv_var_ntp_syscalls" in
 libc)

$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h

    ;;
 kernel)

$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
if ${ntp_cv_var_sta_fll+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <sys/timex.h>
	    #ifndef STA_FLL
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_var_sta_fll=yes
else
  ntp_cv_var_sta_fll=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
$as_echo "$ntp_cv_var_sta_fll" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
$as_echo_n "checking if we have kernel PLL support... " >&6; }
if ${ntp_cv_var_kernel_pll+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
	 *no*)
	    ntp_cv_var_kernel_pll=no
	    ;;
	 *) ntp_cv_var_kernel_pll=yes
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
$as_echo "$ntp_cv_var_kernel_pll" >&6; }
case "$ntp_cv_var_kernel_pll" in
 yes)

$as_echo "#define KERNEL_PLL 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
if ${ntp_cv_size_returned_in_buffer+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=no
	case "$host" in
	 *-fujitsu-uxp*)
	    ans=yes
	    ;;
	 *-ncr-sysv4*)
	    ans=yes
	    ;;
	 *-univel-sysv*)
	    ans=yes
	    ;;
	esac
	ntp_cv_size_returned_in_buffer=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
$as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
case "$ntp_cv_size_returned_in_buffer" in
 yes)

$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h

esac

# Check for ioctls TIOCGPPSEV
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
$as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
case "$ac_cv_header_termios_h" in
 yes)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <termios.h>
	    #ifndef TIOCGPPSEV
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_ok=yes
else
  ntp_ok=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)

$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Check for ioctls TIOCSPPS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
$as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
case "$ac_cv_header_termios_h" in
 yes)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <termios.h>
	    #ifndef TIOCSPPS
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_ok=yes
else
  ntp_ok=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)

$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Check for ioctls CIOGETEV
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
$as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
case "$ac_cv_header_sys_ppsclock_h" in
 yes)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <sys/ppsclock.h>
	    #ifndef CIOGETEV
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_ok=yes
else
  ntp_ok=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)

$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# ATOM/PPSAPI stuff.

ntp_atom_ok=yes

# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.

# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
# The PPSAPI needs struct timespec.
# The PPSAPI also needs a timepps header.

case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
 inlineyes)
    case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
     *yes* | *sunos* | *solaris* | *sco* | *netbsd* )

$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h

	ntp_jupiter_ok=yes
	ntp_oncore_ok=yes
	ntp_parse_ok=yes
	ntp_ripe_ncc_ok=yes
	;;
    esac
    ;;
esac

# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
if test "x$ac_cv_header_linux_serial_h" = xyes; then :

fi


case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
  yesyes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <sys/time.h>
	    typedef int u_int;
	    #include <sys/ppsclock.h>
	    #include <linux/serial.h>

	    #ifndef TIOCGSERIAL
	    # error
	    #endif
	    #ifndef TIOCSSERIAL
	    # error
	    #endif
	    #ifndef ASYNC_PPS_CD_POS
	    # error
	    #endif
	    #ifndef ASYNC_PPS_CD_NEG
	    # error
	    #endif
	    #ifndef CIOGETEV
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_ok=yes
else
  ntp_ok=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
    ;;
  *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)

$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h

esac

# Check for SHMEM_STATUS support
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
$as_echo_n "checking SHMEM_STATUS support... " >&6; }
case "$ac_cv_header_sys_mman_h" in
 yes)
    ntp_ok=yes
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)

$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

ntp_refclock=no

# HPUX only, and by explicit request
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
# Check whether --enable-BANCOMM was given.
if test "${enable_BANCOMM+set}" = set; then :
  enableval=$enable_BANCOMM; ntp_ok=$enableval
else
  ntp_ok=no

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_BANC 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yes*-*-hpux*) ;;
 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
esac

#HPUX only, and only by explicit request
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
# Check whether --enable-GPSVME was given.
if test "${enable_GPSVME+set}" = set; then :
  enableval=$enable_GPSVME; ntp_ok=$enableval
else
  ntp_ok=no

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yes*-*-hpux*) ;;
 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
$as_echo_n "checking for PCL720 clock support... " >&6; }
case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
 yesyesyes)

$as_echo "#define CLOCK_PPS720 1" >>confdefs.h

    ans=yes
    ;;
 *)
    ans=no
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
# Check whether --enable-all-clocks was given.
if test "${enable_all_clocks+set}" = set; then :
  enableval=$enable_all_clocks; ntp_eac=$enableval
else
  ntp_eac=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
$as_echo "$ntp_eac" >&6; }

# HMS: Should we also require ntp_parse_ok?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
$as_echo_n "checking if we have support for PARSE clocks... " >&6; }
case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
 yes*yes*)
    ntp_canparse=yes
    ;;
 *) ntp_canparse=no
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
$as_echo "$ntp_canparse" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
$as_echo_n "checking if we have support for audio clocks... " >&6; }
case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
 *yes*)
    ntp_canaudio=yes

$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h

    ;;
 *) ntp_canaudio=no ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
$as_echo "$ntp_canaudio" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
 yesyes)
    ntp_canshm=yes
    ;;
 *) ntp_canshm=no ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
$as_echo "$ntp_canshm" >&6; }

# Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
$as_echo_n "checking for termios modem control... " >&6; }
if ${ntp_cv_modem_control+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_UNISTD_H
		# include <unistd.h>
		#endif
		#ifdef HAVE_TERMIOS_H
		# include <termios.h>
		#endif
		#ifdef HAVE_SYS_IOCTL_H
		# include <sys/ioctl.h>
		#endif

int
main ()
{

		int	dtr = TIOCM_DTR;

		ioctl(1, TIOCMBIS, (char *)&dtr);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_modem_control=yes
else
  ntp_cv_modem_control=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
$as_echo "$ntp_cv_modem_control" >&6; }
case "$ntp_eac::$ntp_cv_modem_control" in
 yes::yes)
    ntp_enable_all_modem_control_clocks=yes
    ;;
 *)
    ntp_enable_all_modem_control_clocks=no
    ;;
esac

# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
$as_echo_n "checking ACTS modem service... " >&6; }
# Check whether --enable-ACTS was given.
if test "${enable_ACTS+set}" = set; then :
  enableval=$enable_ACTS; ntp_ok=$enableval
else
  ntp_ok=$ntp_enable_all_modem_control_clocks

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ACTS 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
# Check whether --enable-ARBITER was given.
if test "${enable_ARBITER+set}" = set; then :
  enableval=$enable_ARBITER; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
$as_echo_n "checking Arcron MSF receiver... " >&6; }
# Check whether --enable-ARCRON_MSF was given.
if test "${enable_ARCRON_MSF+set}" = set; then :
  enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
# Check whether --enable-AS2201 was given.
if test "${enable_AS2201+set}" = set; then :
  enableval=$enable_AS2201; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_AS2201 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
$as_echo_n "checking ATOM PPS interface... " >&6; }
# Check whether --enable-ATOM was given.
if test "${enable_ATOM+set}" = set; then :
  enableval=$enable_ATOM; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_atom_ok" in
 no) ntp_ok=no ;;
esac
case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ATOM 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
# Check whether --enable-CHRONOLOG was given.
if test "${enable_CHRONOLOG+set}" = set; then :
  enableval=$enable_CHRONOLOG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
$as_echo_n "checking CHU modem/decoder... " >&6; }
# Check whether --enable-CHU was given.
if test "${enable_CHU+set}" = set; then :
  enableval=$enable_CHU; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_CHU 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
ntp_refclock_chu=$ntp_ok

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
$as_echo_n "checking CHU audio/decoder... " >&6; }
# Check whether --enable-AUDIO-CHU was given.
if test "${enable_AUDIO_CHU+set}" = set; then :
  enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
else

	case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
# We used to check for sunos/solaris target...
case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
esac

# Not under HP-UX
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
$as_echo_n "checking Datum Programmable Time System... " >&6; }
# Check whether --enable-DATUM was given.
if test "${enable_DATUM+set}" = set; then :
  enableval=$enable_DATUM; ntp_ok=$enableval
else

	case "$ac_cv_header_termios_h" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *) ntp_ok=no
	    ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_DATUM 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
# Check whether --enable-DUMBCLOCK was given.
if test "${enable_DUMBCLOCK+set}" = set; then :
  enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
$as_echo_n "checking Forum Graphic GPS... " >&6; }
# Check whether --enable-FG was given.
if test "${enable_FG+set}" = set; then :
  enableval=$enable_FG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_FG 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
# Check whether --enable-HEATH was given.
if test "${enable_HEATH+set}" = set; then :
  enableval=$enable_HEATH; ntp_ok=$enableval
else
  ntp_ok=$ntp_enable_all_modem_control_clocks

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_HEATH 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
$as_echo_n "checking for hopf serial clock device... " >&6; }
# Check whether --enable-HOPFSERIAL was given.
if test "${enable_HOPFSERIAL+set}" = set; then :
  enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
$as_echo_n "checking for hopf PCI clock 6039... " >&6; }
# Check whether --enable-HOPFPCI was given.
if test "${enable_HOPFPCI+set}" = set; then :
  enableval=$enable_HOPFPCI; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
$as_echo_n "checking HP 58503A GPS receiver... " >&6; }
# Check whether --enable-HPGPS was given.
if test "${enable_HPGPS+set}" = set; then :
  enableval=$enable_HPGPS; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
$as_echo_n "checking IRIG audio decoder... " >&6; }
# Check whether --enable-IRIG was given.
if test "${enable_IRIG+set}" = set; then :
  enableval=$enable_IRIG; ntp_ok=$enableval
else

	case "$ntp_eac$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_IRIG 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canaudio" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
$as_echo_n "checking for JJY receiver... " >&6; }
# Check whether --enable-JJY was given.
if test "${enable_JJY+set}" = set; then :
  enableval=$enable_JJY; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_JJY 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
# Check whether --enable-JUPITER was given.
if test "${enable_JUPITER+set}" = set; then :
  enableval=$enable_JUPITER; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

case "$ntp_jupiter_ok" in
 no) ntp_ok=no ;;
esac
case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
# Check whether --enable-LEITCH was given.
if test "${enable_LEITCH+set}" = set; then :
  enableval=$enable_LEITCH; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
$as_echo_n "checking local clock reference... " >&6; }
# Check whether --enable-LOCAL-CLOCK was given.
if test "${enable_LOCAL_CLOCK+set}" = set; then :
  enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }


# Not Ultrix
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
# Check whether --enable-MX4200 was given.
if test "${enable_MX4200+set}" = set; then :
  enableval=$enable_MX4200; ntp_ok=$enableval
else

	case "$ac_cv_var_ppsclock" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	    ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_MX4200 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
$as_echo_n "checking for NeoClock4X receiver... " >&6; }
# Check whether --enable-NEOCLOCK4X was given.
if test "${enable_NEOCLOCK4X+set}" = set; then :
  enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
$as_echo_n "checking NMEA GPS receiver... " >&6; }
# Check whether --enable-NMEA was given.
if test "${enable_NMEA+set}" = set; then :
  enableval=$enable_NMEA; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_NMEA 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

for ac_func in strtoll
do :
  ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
if test "x$ac_cv_func_strtoll" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRTOLL 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
$as_echo_n "checking for GPSD JSON receiver... " >&6; }
# Check whether --enable-GPSD was given.
if test "${enable_GPSD+set}" = set; then :
  enableval=$enable_GPSD; ntp_ok=$enableval
else
  case "$ac_cv_func_strtoll" in
     yes) ntp_ok=$ntp_eac ;;
     *)   ntp_ok="no" ;;
    esac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
# Check whether --enable-ONCORE was given.
if test "${enable_ONCORE+set}" = set; then :
  enableval=$enable_ONCORE; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_oncore_ok" in
 no) ntp_ok=no ;;
esac
case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
$as_echo_n "checking for Palisade clock... " >&6; }
# Check whether --enable-PALISADE was given.
if test "${enable_PALISADE+set}" = set; then :
  enableval=$enable_PALISADE; ntp_ok=$enableval
else
  ntp_ok=$ntp_enable_all_modem_control_clocks

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
$as_echo_n "checking Conrad parallel port radio clock... " >&6; }
# Check whether --enable-PCF was given.
if test "${enable_PCF+set}" = set; then :
  enableval=$enable_PCF; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_PCF 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
# Check whether --enable-PST was given.
if test "${enable_PST+set}" = set; then :
  enableval=$enable_PST; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_PST 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
# Check whether --enable-RIPENCC was given.
if test "${enable_RIPENCC+set}" = set; then :
  enableval=$enable_RIPENCC; ntp_ok=$enableval
else
  ntp_ok=no

fi

# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
case "$ntp_ripe_ncc_ok" in
 no) ntp_ok=no ;;
esac
case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Danny Meyer says SHM compiles (with a few warnings) under Win32.
# For *IX, we need sys/ipc.h and sys/shm.h.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
# Check whether --enable-SHM was given.
if test "${enable_SHM+set}" = set; then :
  enableval=$enable_SHM; ntp_ok=$enableval
else

	case "$ntp_eac$ntp_canshm" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_SHM 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
# Check whether --enable-SPECTRACOM was given.
if test "${enable_SPECTRACOM+set}" = set; then :
  enableval=$enable_SPECTRACOM; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
# Check whether --enable-TPRO was given.
if test "${enable_TPRO+set}" = set; then :
  enableval=$enable_TPRO; ntp_ok=$enableval
else

	case "$ac_cv_header_sys_tpro_h" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	    ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TPRO 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ac_cv_header_sys_tpro" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
esac

# Not on a vax-dec-bsd
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
# Check whether --enable-TRUETIME was given.
if test "${enable_TRUETIME+set}" = set; then :
  enableval=$enable_TRUETIME; ntp_ok=$enableval
else

	case "$host" in
	 vax-dec-bsd)
	    ntp_ok=no
	    ;;
	 *)
	    ntp_ok=$ntp_eac
	    ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
# Check whether --enable-TT560 was given.
if test "${enable_TT560+set}" = set; then :
  enableval=$enable_TT560; ntp_ok=$enableval
else
  ntp_ok=no

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
# Check whether --enable-ULINK was given.
if test "${enable_ULINK+set}" = set; then :
  enableval=$enable_ULINK; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ULINK 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
# Check whether --enable-TSYNCPCI was given.
if test "${enable_TSYNCPCI+set}" = set; then :
  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
else

	case "$host" in
	 *-*-*linux*)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
$as_echo_n "checking WWV receiver... " >&6; }
# Check whether --enable-WWV was given.
if test "${enable_WWV+set}" = set; then :
  enableval=$enable_WWV; ntp_ok=$enableval
else

	case "$ntp_eac$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_WWV 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canaudio" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
$as_echo_n "checking for Zyfer receiver... " >&6; }
# Check whether --enable-ZYFER was given.
if test "${enable_ZYFER+set}" = set; then :
  enableval=$enable_ZYFER; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
# Check whether --enable-parse-clocks was given.
if test "${enable_parse_clocks+set}" = set; then :
  enableval=$enable_parse_clocks; ntp_eapc=$enableval
else

	case "$ntp_eac" in
	 yes)	ntp_eapc=$ntp_canparse ;;
	 *)	ntp_eapc=no ;;
	esac
	# Delete the next line one of these days
	ntp_eapc=no


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
$as_echo "$ntp_eapc" >&6; }

case "$ntp_eac$ntp_eapc$ntp_canparse" in
 noyes*)
    as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
    ;;
 yesyesno)
    as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
    ;;
esac

ntp_libparse=no
ntp_parseutil=no
ntp_rawdcf=no

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
$as_echo_n "checking Diem Computime Radio Clock... " >&6; }
# Check whether --enable-COMPUTIME was given.
if test "${enable_COMPUTIME+set}" = set; then :
  enableval=$enable_COMPUTIME; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
$as_echo_n "checking ELV/DCF7000 clock... " >&6; }
# Check whether --enable-DCF7000 was given.
if test "${enable_DCF7000+set}" = set; then :
  enableval=$enable_DCF7000; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
$as_echo_n "checking HOPF 6021 clock... " >&6; }
# Check whether --enable-HOPF6021 was given.
if test "${enable_HOPF6021+set}" = set; then :
  enableval=$enable_HOPF6021; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
$as_echo_n "checking Meinberg clocks... " >&6; }
# Check whether --enable-MEINBERG was given.
if test "${enable_MEINBERG+set}" = set; then :
  enableval=$enable_MEINBERG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
$as_echo_n "checking DCF77 raw time code... " >&6; }
# Check whether --enable-RAWDCF was given.
if test "${enable_RAWDCF+set}" = set; then :
  enableval=$enable_RAWDCF; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_parseutil=yes
    ntp_refclock=yes
    ntp_rawdcf=yes

$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

case "$ntp_rawdcf" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
if ${ntp_cv_rawdcf_parity+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    ans=no
	    case "$host" in
	     *-*-*linux*)
		ans=yes
		;;
	    esac
	    ntp_cv_rawdcf_parity=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
$as_echo "$ntp_cv_rawdcf_parity" >&6; }
    case "$ntp_cv_rawdcf_parity" in
     yes)

$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
 ;;
    esac
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
$as_echo_n "checking RCC 8000 clock... " >&6; }
# Check whether --enable-RCC8000 was given.
if test "${enable_RCC8000+set}" = set; then :
  enableval=$enable_RCC8000; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
$as_echo_n "checking Schmid DCF77 clock... " >&6; }
# Check whether --enable-SCHMID was given.
if test "${enable_SCHMID+set}" = set; then :
  enableval=$enable_SCHMID; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
# Check whether --enable-TRIMTAIP was given.
if test "${enable_TRIMTAIP+set}" = set; then :
  enableval=$enable_TRIMTAIP; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
# Check whether --enable-TRIMTSIP was given.
if test "${enable_TRIMTSIP+set}" = set; then :
  enableval=$enable_TRIMTSIP; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
$as_echo_n "checking WHARTON 400A Series clock... " >&6; }
# Check whether --enable-WHARTON was given.
if test "${enable_WHARTON+set}" = set; then :
  enableval=$enable_WHARTON; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
$as_echo_n "checking VARITEXT clock... " >&6; }
# Check whether --enable-VARITEXT was given.
if test "${enable_VARITEXT+set}" = set; then :
  enableval=$enable_VARITEXT; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
$as_echo_n "checking SEL240X clock... " >&6; }
# Check whether --enable-SEL240X was given.
if test "${enable_SEL240X+set}" = set; then :
  enableval=$enable_SEL240X; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
    ;;
esac






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
$as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
ans=no
case "$ntp_libparse" in
 yes)
    ans=yes

$as_echo "#define CLOCK_PARSE 1" >>confdefs.h

    LIBPARSE=../libparse/libparse.a
    MAKE_LIBPARSE=libparse.a
    # HMS: check_y2k trips the 34 year problem now...
    false && MAKE_CHECK_Y2K=check_y2k
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }



ntp_pkgconfig_min_version='0.15.0'
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}

case "$PKG_CONFIG" in
 /*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	PKG_CONFIG=""
    fi
    ;;
esac





VER_SUFFIX=




# Check whether --with-crypto was given.
if test "${with_crypto+set}" = set; then :
  withval=$with_crypto;
fi


# Check whether --with-openssl-libdir was given.
if test "${with_openssl_libdir+set}" = set; then :
  withval=$with_openssl_libdir;
fi


# Check whether --with-openssl-incdir was given.
if test "${with_openssl_incdir+set}" = set; then :
  withval=$with_openssl_incdir;
fi


# Check whether --with-rpath was given.
if test "${with_rpath+set}" = set; then :
  withval=$with_rpath;
fi

ntp_openssl=no
ntp_openssl_from_pkg_config=no
with_crypto=${with_crypto:-openssl,libcrypto}
case "$with_crypto" in
 yes)
    with_crypto=openssl,libcrypto
esac
case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
 no:*) ;;
 *:notempty:notgiven:notgiven)
    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
$as_echo_n "checking pkg-config for $pkg... " >&6; }
	if $PKG_CONFIG --exists $pkg ; then
	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
	    VER_SUFFIX=o
	    ntp_openssl=yes
	    ntp_openssl_from_pkg_config=yes
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

	    break
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    done
esac
case "$with_crypto:$ntp_openssl" in
 no:*) ;;
 *:no)
    need_dash_r=
    need_dash_Wlrpath=
    case "${with_rpath-notgiven}" in
     yes)
	# Lame - what to do if we need -Wl... but not -R?
	need_dash_r=1
	;;
     notgiven)
	case "$host" in
	 *-*-linux*)
	    # This may really only be true for gcc
	    need_dash_Wlrpath=1
	    ;;
	 *-*-netbsd*)
	    need_dash_r=1
	    ;;
	 *-*-solaris*)
	    need_dash_r=1
	    ;;
	esac
	;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
$as_echo_n "checking for openssl library directory... " >&6; }
    with_openssl_libdir=${with_openssl_libdir-notgiven}
    case "$with_openssl_libdir" in
     notgiven)
	case "$build" in
	 $host)
	    with_openssl_libdir=default
	    ;;
	 *)
	    with_openssl_libdir=no
	    ;;
	esac
    esac
    case "$with_openssl_libdir" in
     default)
	# Look in:
	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
    esac
    case "$with_openssl_libdir" in
     no)
	;;
     *) # Look for libcrypto.a and libssl.a:
	for i in $with_openssl_libdir no
	do
	    case "$host" in
	     *-*-darwin*)
		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
		;;
	     *)
		test -f $i/libcrypto.so -a -f $i/libssl.so && break
		test -f $i/libcrypto.a -a -f $i/libssl.a && break
		;;
	    esac
	done
	openssl_libdir=$i
	;;
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
$as_echo "$openssl_libdir" >&6; }
    case "$openssl_libdir" in
     no)
	openssl_libdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
$as_echo_n "checking for openssl include directory... " >&6; }
    with_openssl_incdir=${with_openssl_incdir-notgiven}
    case "$with_openssl_incdir" in
     notgiven)
	# Look in:
	with_openssl_incdir="/usr/include /usr/sfw/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
    esac
    case "$with_openssl_incdir" in
     no)
	;;
     *) # look for openssl/evp.h:
	for i in $with_openssl_incdir no
	do
	    test -f $i/openssl/evp.h && break
	done
	openssl_incdir=$i
	;;
    esac
    { i=; unset i;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
$as_echo "$openssl_incdir" >&6; }
    case "$openssl_incdir" in
     no)
	openssl_incdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
    esac
    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
    then
	ntp_openssl=no
    else
	ntp_openssl=yes
	VER_SUFFIX=o
    fi
    case "$ntp_openssl" in
     yes)
	# We have OpenSSL inc/lib dirs - use them.
	case "$openssl_incdir" in
	 /usr/include)
	    ;;
	 *)
	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
	    ;;
	esac
	case "$openssl_libdir" in
	 /usr/lib)
	    ;;
	 *)
	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
	    case "$need_dash_r" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
	    esac
	    case "$need_dash_Wlrpath" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
	    esac
	    ;;
	esac
	LDADD_NTP="$LDADD_NTP -lcrypto"
    esac
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
$as_echo_n "checking if we will use crypto... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
$as_echo "$ntp_openssl" >&6; }

case "$ntp_openssl" in
 yes)

$as_echo "#define OPENSSL /**/" >>confdefs.h

    case "$VER_SUFFIX" in
     *o*) ;;
     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
    esac
    ;;
esac

NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
NTPO_SAVED_LIBS="$LIBS"

#
# check for linking with -lcrypto failure, and try -lcrypto -lz.
# Helps m68k-atari-mint
#
case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
 yes:no)
    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
$as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
if ${ntp_cv_bare_lcrypto+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include "openssl/err.h"
		    #include "openssl/evp.h"

int
main ()
{

		    ERR_load_crypto_strings();
		    OpenSSL_add_all_algorithms();


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_cv_bare_lcrypto=yes
else
  ntp_cv_bare_lcrypto=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
$as_echo "$ntp_cv_bare_lcrypto" >&6; }
    case "$ntp_cv_bare_lcrypto" in
     no)
	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
if ${ntp_cv_lcrypto_lz+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include "openssl/err.h"
			#include "openssl/evp.h"

int
main ()
{

			ERR_load_crypto_strings();
			OpenSSL_add_all_algorithms();


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_cv_lcrypto_lz=yes
else
  ntp_cv_lcrypto_lz=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
$as_echo "$ntp_cv_lcrypto_lz" >&6; }
	case "$ntp_cv_lcrypto_lz" in
	 yes)
	     LDADD_NTP="$LDADD_NTP -lz"
	esac
    esac
esac

#
# Older OpenSSL headers have a number of callback prototypes inside
# other function prototypes which trigger copious warnings with gcc's
# -Wstrict-prototypes, which is included in -Wall.
#
# An example:
#
# int i2d_RSA_NET(const RSA *a, unsigned char **pp,
#		  int (*cb)(), int sgckey);
#		  ^^^^^^^^^^^
#
#
#
openssl_triggers_warnings=unknown
NTPO_SAVED_CFLAGS="$CFLAGS"

case "$ntp_openssl:$GCC" in
 yes:yes)
    CFLAGS="$CFLAGS -Werror"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{

		/* see if -Werror breaks gcc */


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  gcc_handles_Werror=yes
else
  gcc_handles_Werror=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    case "$gcc_handles_Werror" in
     no)
	# if this gcc doesn't do -Werror go ahead and use
	# -Wstrict-prototypes.
	openssl_triggers_warnings=yes
	;;
     yes)
	CFLAGS="$CFLAGS -Wstrict-prototypes"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include "openssl/asn1_mac.h"
		    #include "openssl/bn.h"
		    #include "openssl/err.h"
		    #include "openssl/evp.h"
		    #include "openssl/pem.h"
		    #include "openssl/rand.h"
		    #include "openssl/x509v3.h"

int
main ()
{

		    /* empty body */


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  openssl_triggers_warnings=no
else
  openssl_triggers_warnings=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    esac
    case "$openssl_triggers_warnings" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
	;;
     *)
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
    esac
    ;;
 no:yes)
    # gcc without OpenSSL
    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
esac

CFLAGS="$NTPO_SAVED_CFLAGS"
CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
LIBS="$NTPO_SAVED_LIBS"
{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
# Check whether --enable-openssl-random was given.
if test "${enable_openssl_random+set}" = set; then :
  enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
else
  ntp_use_openssl_random=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
$as_echo "$ntp_use_openssl_random" >&6; }

# The following might need extra libraries
NTPO_SAVED_LIBS="$LIBS"
LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
for ac_func in RAND_bytes RAND_poll
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

LIBS="$NTPO_SAVED_LIBS"
case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
 yesyesyes)

$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h

     ;;
 *) ntp_use_openssl_random=no ;;
esac



# if we are using OpenSSL (--with-crypto), by default Autokey is enabled
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
# Check whether --enable-autokey was given.
if test "${enable_autokey+set}" = set; then :
  enableval=$enable_autokey; ntp_autokey=$enableval
else
  ntp_autokey=$ntp_openssl

fi

case "$ntp_autokey" in
 no)
    ;;
 *)
    case "$ntp_openssl" in
     no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
	ntp_autokey=no
	;;
     *)

$as_echo "#define AUTOKEY 1" >>confdefs.h

	ntp_autokey=yes
	;;
    esac
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
$as_echo "$ntp_autokey" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
$as_echo_n "checking if we want to run check-layout... " >&6; }
case "$cross_compiling$PATH_PERL" in
 no/*)
    MAKE_CHECK_LAYOUT=check-layout
    ans=yes
    ;;
 *)
    ans=no
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
$as_echo_n "checking if we can make dcf parse utilities... " >&6; }
ans=no
case "$ntp_parseutil" in
 yes)
    case "$host" in
     *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
	ans="dcfd testdcf"
	DCFD=dcfd
	TESTDCF=testdcf
    esac
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
ans=no
case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
 yesyes)
    case "$host" in
     sparc-*-sunos4*)
        case "$ntp_cv_var_kernel_pll" in
	yes)

$as_echo "#define PPS_SYNC 1" >>confdefs.h

	    ;;
	esac
	ans=parsestreams
	MAKE_PARSEKMODULE=parsestreams.loadable_module.o
	;;
     sparc-*-solaris2*)
	ans=parsesolaris
	MAKE_PARSEKMODULE=parse
	for ac_header in strings.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
if test "x$ac_cv_header_strings_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRINGS_H 1
_ACEOF

fi

done

	;;
    esac
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
$as_echo_n "checking if we need basic refclock support... " >&6; }
case "$ntp_refclock" in
 yes)

$as_echo "#define REFCLOCK 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
$as_echo "$ntp_refclock" >&6; }

PROPDELAY=propdelay



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
case "$host" in
 *-*-hpux[56789]*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac
case "$ans" in
 yes)
    MAKE_ADJTIMED=adjtimed

$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h

    ;;
 *) ADJTIMED_DB=
    ADJTIMED_DL=
    ADJTIMED_DS=
    ADJTIMED_MS=
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
$as_echo_n "checking if we want QNX adjtime support... " >&6; }
case "$host" in
 *-*-qnx*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
$as_echo_n "checking if we can read kmem... " >&6; }

#  the default is to enable it if the system has the capability

case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
 *yes*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac

case "$host" in
 *-*-domainos)	# Won't be found...
    ans=no
    ;;
 *-*-hpux*)
    #ans=no
    ;;
 *-*-irix[456]*)
    ans=no
    ;;
 *-*-*linux*)
    ans=no
    ;;
 *-*-winnt3.5)
    ans=no
    ;;
 *-*-unicosmp*)
    ans=no
    ;;
esac

# --enable-kmem / --disable-kmem controls if present
# Check whether --enable-kmem was given.
if test "${enable_kmem+set}" = set; then :
  enableval=$enable_kmem; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
    can_kmem=yes
    ;;
 *)
    can_kmem=no

$as_echo "#define NOKMEM 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
$as_echo_n "checking if adjtime is accurate... " >&6; }

# target-dependent defaults

case "$host" in
 i386-sequent-ptx*)
    ans=no
    ;;
 i386-unknown-osf1*)
    ans=yes
    ;;
 mips-sgi-irix[456]*)
    ans=yes
    ;;
 *-fujitsu-uxp*)
    ans=yes
    ;;
 *-ibm-aix[4-9]*)
    # XXX only verified thru AIX6.
    ans=yes
    ;;
 *-*-*linux*)
    ans=yes
    ;;
 *-*-solaris2.[01])
    ans=no
    ;;
 *-*-solaris2*)
    ans=yes
    ;;
 *-*-unicosmp*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# --enable-accurate-adjtime / --disable-accurate-adjtime
# override the default
# Check whether --enable-accurate-adjtime was given.
if test "${enable_accurate_adjtime+set}" = set; then :
  enableval=$enable_accurate_adjtime; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h

    adjtime_is_accurate=yes
    ;;
 *)
    adjtime_is_accurate=no
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
$as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
if ${ntp_cv_nlist_tick+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=_tick
	case "$host" in
	 m68*-hp-hpux*) # HP9000/300?
	    ans=_old_tick
	    ;;
	 *-apple-aux[23]*)
	    ans=tick
	    ;;
	 *-hp-hpux*)
	    ans=old_tick
	    ;;
	 *-ibm-aix[3-9]*)
	    # XXX only verified thru AIX6.
	    ans=no
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-ptx*)
	    ans=tick
	    ;;
	 *-*-sco3.2v[45]*)
	    ans=no
	    ;;
	 *-*-solaris2*)
	    ans=nsec_per_tick
	    ;;
	 *-*-sysv4*)
	    ans=tick
	    ;;
	esac
	ntp_cv_nlist_tick=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
$as_echo "$ntp_cv_nlist_tick" >&6; }
case "$ntp_cv_nlist_tick" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)

cat >>confdefs.h <<_ACEOF
#define K_TICK_NAME "$ntp_cv_nlist_tick"
_ACEOF

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
$as_echo_n "checking for the units of 'tick'... " >&6; }
if ${ntp_cv_tick_nano+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=usec
	case "$host" in
	 *-*-solaris2*)
	    ans=nsec
	    ;;
	esac
	ntp_cv_tick_nano=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
$as_echo "$ntp_cv_tick_nano" >&6; }
case "$ntp_cv_tick_nano" in
 nsec)

$as_echo "#define TICK_NANO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
if ${ntp_cv_nlist_tickadj+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=_tickadj
	case "$host" in
	 m68*-hp-hpux*) # HP9000/300?
	    ans=_tickadj
	    ;;
	 *-apple-aux[23]*)
	    ans=tickadj
	    ;;
	 *-hp-hpux10*)
	    ans=no
	    ;;
	 *-hp-hpux9*)
	    ans=no
	    ;;
	 *-hp-hpux*)
	    ans=tickadj
	    ;;
	 *-*-aix*)
	    ans=tickadj
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-ptx*)
	    ans=tickadj
	    ;;
	 *-*-sco3.2v4*)
	    ans=no
	    ;;
	 *-*-sco3.2v5.0*)
	    ans=clock_drift
	    ;;
	 *-*-solaris2*)
	    ans=no	# hrestime_adj
	    ;;
	 *-*-sysv4*)
	    ans=tickadj
	    ;;
	esac
	ntp_cv_nlist_tickadj=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
$as_echo "$ntp_cv_nlist_tickadj" >&6; }
case "$ntp_cv_nlist_tickadj" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)

cat >>confdefs.h <<_ACEOF
#define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
_ACEOF

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
$as_echo_n "checking for the units of 'tickadj'... " >&6; }
if ${ntp_cv_tickadj_nano+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=usec
	case "$host" in
	 *-*-solaris2*)
	    ans=nsec
	    ;;
	esac
	ntp_cv_tickadj_nano=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
$as_echo "$ntp_cv_tickadj_nano" >&6; }
case "$ntp_cv_tickadj_nano" in
 nsec)

$as_echo "#define TICKADJ_NANO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
if ${ntp_cv_nlist_dosynctodr+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-apple-aux[23]*)
	    ans=no
	    ;;
	 *-sni-sysv*)
	    ans=dosynctodr
	    ;;
	 *-*-aix*)
	    ans=dosynctodr
	    ;;
	 *-*-hpux*)
	    ans=no
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-nextstep*)
	    ans=_dosynctodr
	    ;;
	 *-*-ptx*)
	    ans=doresettodr
	    ;;
	 *-*-sco3.2v4*)
	    ans=no
	    ;;
	 *-*-sco3.2v5*)
	    ans=track_rtc
	    ;;
	 *-*-solaris2*)
	    ans=dosynctodr
	    ;;
	 *-*-sysv4*)
	    ans=doresettodr
	    ;;
	 *)
	    ans=_dosynctodr
	    ;;
	esac
	ntp_cv_nlist_dosynctodr=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
$as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
case "$ntp_cv_nlist_dosynctodr" in
 no)
    ;;
 *)

cat >>confdefs.h <<_ACEOF
#define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
_ACEOF

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
if ${ntp_cv_nlist_noprintf+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-apple-aux[23]*)
	    ans=no
	    ;;
	 *-sni-sysv*)
	    ans=noprintf
	    ;;
	 *-*-aix*)
	    ans=noprintf
	    ;;
	 *-*-hpux*)
	    ans=no
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-ptx*)
	    ans=noprintf
	    ;;
	 *-*-nextstep*)
	    ans=_noprintf
	    ;;
	 *-*-solaris2*)
	    ans=noprintf
	    ;;
	 *-*-sysv4*)
	    ans=noprintf
	    ;;
	 *)
	    ans=_noprintf
	    ;;
	esac
	ntp_cv_nlist_noprintf=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
$as_echo "$ntp_cv_nlist_noprintf" >&6; }
case "$ntp_cv_nlist_noprintf" in
 no)
    ;;
 *)

cat >>confdefs.h <<_ACEOF
#define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
_ACEOF

    ;;
esac




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
$as_echo_n "checking for a default value for 'tick'... " >&6; }

# target-dependent default for tick

case "$host" in
 *-*-pc-cygwin*)
    as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
    ;;
 *-univel-sysv*)
    ans=10000
    ;;
 *-*-irix*)
    ans=10000
    ;;
 *-*-*linux*)
    ans=txc.tick
    ;;
 *-*-mpeix*)
    ans=no
    ;;
 *-*-winnt3.5)
    ans='(every / 10)'
    ;;
 *-*-unicosmp*)
    ans=10000
    ;;
 *)
    ans='1000000L/hz'
    ;;
esac

# Check whether --enable-tick was given.
if test "${enable_tick+set}" = set; then :
  enableval=$enable_tick; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)

cat >>confdefs.h <<_ACEOF
#define PRESET_TICK $ans
_ACEOF

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
$as_echo_n "checking for a default value for 'tickadj'... " >&6; }

# target-specific default
ans='500/hz'
case "$host" in
 *-fujitsu-uxp*)
    case "$adjtime_is_accurate" in
     yes)
	ans='tick/16'
    esac
    ;;
 *-univel-sysv*)
    ans=80
    ;;
 *-*-aix*)
    case "$can_kmem" in
     no)
	ans=1000
	;;
    esac
    ;;
 *-*-domainos)	# Skippy: won't be found...
    case "$can_kmem" in
     no)
	ans=668
	;;
    esac
    ;;
 *-*-hpux*)
    case "$adjtime_is_accurate" in
     yes)
	ans='tick/16'
	;;
    esac
    ;;
 *-*-irix*)
    ans=150
    ;;
 *-*-mpeix*)
    ans=no
    ;;
 *-*-sco3.2v5.0*)
    ans=10000L/hz
    ;;
 *-*-winnt3.5)
    ans=50
    ;;
 *-*-unicosmp*)
    ans=150
    ;;
esac

# Check whether --enable-tickadj was given.
if test "${enable_tickadj+set}" = set; then :
  enableval=$enable_tickadj; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

default_tickadj=$ans

case "$default_tickadj" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)

cat >>confdefs.h <<_ACEOF
#define PRESET_TICKADJ $default_tickadj
_ACEOF
 ;;
esac

# Newer versions of ReliantUNIX round adjtime() values down to
# 1/100s (system tick). Sigh ...
# Unfortunately, there is no easy way to know if particular release
# has this "feature" or any obvious way to test for it.
case "$host" in
 mips-sni-sysv4*)

$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h

esac

case "$host" in
 *-*-sco3.2v5*)

$as_echo "#define SCO5_CLOCK 1" >>confdefs.h

esac

ntp_cv_make_tickadj=yes
case "$can_kmem$ac_cv_var_tick$default_tickadj" in
 nonono)	# Don't read KMEM, no presets.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&2;}
    ntp_cv_make_tickadj=no
    ;;
 nono*)		# Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
    ntp_cv_make_tickadj=no
    ;;
 no*no)		# Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
    ntp_cv_make_tickadj=no
    ;;
 no*)		# Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
    ;;
 yesnono)	# Read KMEM, no presets.  Cool.
    ;;
 yesno*)	# Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
    ;;
 yes*no)	# Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
    ;;
 yes*)		# READ KMEM, PRESET_TICK and PRESET_TICKADJ.
    ;;
 *)		# Generally bogus.
    as_fn_error $? "This shouldn't happen." "$LINENO" 5
    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
$as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
if ${ac_cv_make_ntptime+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case "$host" in
 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
     yesyes)
	ans=yes
	;;
     *)
	ans=no
	;;
    esac
    ;;
esac
ac_cv_make_ntptime=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
$as_echo "$ac_cv_make_ntptime" >&6; }
case "$ac_cv_make_ntptime" in
 yes)
    MAKE_NTPTIME=ntptime
    ;;
 *)
    NTPTIME_DB=
    NTPTIME_DL=
    NTPTIME_DS=
    NTPTIME_MS=
    ;;
esac


case "$host" in
 mips-sni-sysv4*)
    # tickadj is pretty useless on newer versions of ReliantUNIX
    # Do not bother
    ntp_cv_make_tickadj=no
    ;;
 *-*-irix*)
    ntp_cv_make_tickadj=no
    ;;
 *-*-solaris2*)
    # DLM says tickadj is a no-no starting with solaris2.5
    case "$host" in
     *-*-solaris2.1[0-9]*)
	ntp_cv_make_tickadj=no
	;;
     *-*-solaris2.[0-4]*) ;;
     *) ntp_cv_make_tickadj=no ;;
    esac
    ;;
 *-*-unicosmp*)
    ntp_cv_make_tickadj=no
    ;;
esac

#
# Despite all the above, we always make tickadj.  Setting
# ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
# report that the configuration variable was cached.  It may
# be better to simply remove the hunk above, I did not want
# to remove it if there is hope it will be used again.
#
{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
$as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
if ${ntp_cv_make_tickadj+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ntp_cv_make_tickadj=yes

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
$as_echo "$ntp_cv_make_tickadj" >&6; }
case "$ntp_cv_make_tickadj" in
 yes)
    MAKE_TICKADJ=tickadj
    ;;
 *)
    CALC_TICKADJ_DB=
    CALC_TICKADJ_DL=
    CALC_TICKADJ_DS=
    CALC_TICKADJ_MS=
    TICKADJ_DB=
    TICKADJ_DL=
    TICKADJ_DS=
    TICKADJ_MS=
    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
$as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
if ${ntp_cv_make_timetrim+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-irix*)
	    ntp_cv_make_timetrim=yes
	    ;;
	 *-*-unicosmp*)
	    ntp_cv_make_timetrim=yes
	    ;;
	 *)
	    ntp_cv_make_timetrim=no
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
$as_echo "$ntp_cv_make_timetrim" >&6; }
case "$ntp_cv_make_timetrim" in
 yes)
    MAKE_TIMETRIM=timetrim
    ;;
 *) TIMETRIM_DB=
    TIMETRIM_DL=
    TIMETRIM_DS=
    TIMETRIM_MS=
    ;;
esac




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
$as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
# Check whether --enable-simulator was given.
if test "${enable_simulator+set}" = set; then :
  enableval=$enable_simulator; ans=$enableval
else
  ans=no

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 yes)
    MAKE_NTPDSIM=ntpdsim
    MAKE_LIBNTPSIM=libntpsim.a
    ;;
 *)
    NTPDSIM_DB=
    NTPDSIM_DL=
    NTPDSIM_DS=
    NTPDSIM_MS=
    ;;
esac

case "$build" in
 $host)
    ;;
 *) case "$host" in
     *-*-vxworks*)
	LDFLAGS="$LDFLAGS -r"
	;;
    esac
    ;;
esac



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
$as_echo_n "checking if sntp will be built... " >&6; }

# Check whether --with-sntp was given.
if test "${with_sntp+set}" = set; then :
  withval=$with_sntp;
else
  with_sntp="${withsntp=yes}"

fi

case "$with_sntp" in
 no)
    SNTP=
    ;;
 *)
    SNTP=sntp
    ;;
esac

 if test -n "$SNTP"; then
  BUILD_SNTP_TRUE=
  BUILD_SNTP_FALSE='#'
else
  BUILD_SNTP_TRUE='#'
  BUILD_SNTP_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
$as_echo "$with_sntp" >&6; }



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
$as_echo_n "checking if we want to build ntpsnmpd... " >&6; }

# Check whether --with-ntpsnmpd was given.
if test "${with_ntpsnmpd+set}" = set; then :
  withval=$with_ntpsnmpd; ans=$withval
else

	case "$PATH_NET_SNMP_CONFIG" in
	 /*)	ans=yes ;;
	 *)	ans=no  ;;
	esac


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 yes)
    case "$PATH_NET_SNMP_CONFIG" in
     /*)
	SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`

	# HMS: we really want to separate CPPFLAGS and CFLAGS
	foo=`$PATH_NET_SNMP_CONFIG --cflags`
	SNMP_CPPFLAGS=
	SNMP_CFLAGS=
	for i in $foo; do
	    case "$i" in
	     -D*|-U*|-I*)
		SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
		;;
	    *)	SNMP_CFLAGS="$SNMP_CFLAGS $i"
		;;
	    esac
	done



	save_CFLAGS=$CFLAGS
	save_CPPFLAGS=$CPPFLAGS
	save_LIBS=$LIBS
	CFLAGS=$SNMP_CFLAGS
	CPPFLAGS=$SNMP_CPPFLAGS

	ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
  MAKE_NTPSNMPD=ntpsnmpd
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}

fi



	# Do this last, as we're messing up LIBS.
	# check -lnetsnmp for netsnmp_daemonize
	LIBS=`$PATH_NET_SNMP_CONFIG --libs`
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnetsnmp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char netsnmp_daemonize ();
int
main ()
{
return netsnmp_daemonize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_netsnmp_netsnmp_daemonize=yes
else
  ac_cv_lib_netsnmp_netsnmp_daemonize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
  ans=yes
else
  ans=no

fi

	case "$ans" in
	 no)

$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h

	esac

	CFLAGS=$save_CFLAGS
	{ save_CFLAGS=; unset save_CFLAGS;}
	CPPFLAGS=$save_CPPFLAGS
	{ save_CPPFLAGS=; unset save_CPPFLAGS;}
	LIBS=$save_LIBS
	{ save_LIBS=; unset save_LIBS;}
	;;
     *)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
$as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
	;;
    esac
    ;;
esac


case "$MAKE_NTPSNMPD" in
 '')
    NTPSNMPD_DB=
    NTPSNMPD_DL=
    NTPSNMPD_DS=
    NTPSNMPD_MS=
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
$as_echo_n "checking if we should always slew the time... " >&6; }

# target-specific defaults

case "$host" in
 *-apple-aux[23]*)
    ans=yes
    ;;
 *-*-bsdi[012]*)
    ans=no
    ;;
 *-*-bsdi*)
    ans=yes
    ;;
 *-*-openvms*)	# HMS: won't be found
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# --enable-slew-always / --disable-slew-always overrides default

# Check whether --enable-slew-always was given.
if test "${enable_slew_always+set}" = set; then :
  enableval=$enable_slew_always; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define SLEWALWAYS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
$as_echo_n "checking if we should step and slew the time... " >&6; }

case "$host" in
 *-sni-sysv*)
    ans=yes
    ;;
 *-univel-sysv*)
    ans=no
    ;;
 *-*-ptx*)
    ans=yes
    ;;
 *-*-solaris2.1[0-9]*)
    ans=no
    ;;
 *-*-solaris2.[012]*)
    ans=yes
    ;;
 *-*-sysv4*)	# HMS: Does this catch Fujitsu UXP?
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# Check whether --enable-step-slew was given.
if test "${enable_step_slew+set}" = set; then :
  enableval=$enable_step_slew; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define STEP_SLEW 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
$as_echo_n "checking if ntpdate should step the time... " >&6; }

case "$host" in
 *-apple-aux[23]*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# Check whether --enable-ntpdate-step was given.
if test "${enable_ntpdate_step+set}" = set; then :
  enableval=$enable_ntpdate_step; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
$as_echo_n "checking if we should sync TODR clock every hour... " >&6; }

case "$host" in
 *-*-nextstep*)
    ans=yes
    ;;
 *-*-openvms*)	# HMS: won't be found
    ans=yes
    ;;
 *)
    ans=no
    ;;
esac

# Check whether --enable-hourly-todr-sync was given.
if test "${enable_hourly_todr_sync+set}" = set; then :
  enableval=$enable_hourly_todr_sync; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ac_cv_var_sync_todr" in
 yes)

$as_echo "#define DOSYNCTODR 1" >>confdefs.h
 ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }

case "$host" in
 *-*-solaris2.6)
    unamev=`uname -v`
    case "$unamev" in
     Generic_105181-*)
	old_IFS="$IFS"
	IFS="-"
	set $unamev
	IFS="$old_IFS"
	if test "$2" -ge 17
	then
	    # Generic_105181-17 and higher
	    ans=no
	else
	    ans=yes
	fi
	;;
     *)
	ans=yes
	;;
    esac
    ;;
 *-*-solaris2.7)
    unamev=`uname -v`
    case "$unamev" in
     Generic_106541-*)
	old_IFS="$IFS"
	IFS="-"
	set $unamev
	IFS="$old_IFS"
	if test "$2" -ge 07
	then
	    # Generic_106541-07 and higher
	    ans=no
	else
	    ans=yes
	fi
	;;
     *)
	ans=yes
	;;
    esac
    ;;
 *)
    ans=no
    ;;
esac

# Check whether --enable-kernel-fll-bug was given.
if test "${enable_kernel_fll_bug+set}" = set; then :
  enableval=$enable_kernel_fll_bug; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
$as_echo_n "checking if we want new session key behavior... " >&6; }
# Check whether --enable-bug1243-fix was given.
if test "${enable_bug1243_fix+set}" = set; then :
  enableval=$enable_bug1243_fix; ans=$enableval
else
  ans=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 no)

$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }

case "$host" in
 *-*-solaris2.[89])
    ans=yes
    ;;
 *-*-solaris2.1[0-9]*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# Check whether --enable-irig-sawtooth was given.
if test "${enable_irig_sawtooth+set}" = set; then :
  enableval=$enable_irig_sawtooth; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define IRIG_SUCKS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }

# Check whether --enable-nist was given.
if test "${enable_nist+set}" = set; then :
  enableval=$enable_nist; ans=$enableval
else
  ans=no

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define LOCKCLOCK 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }

# Check whether --enable-ntp-signd was given.
if test "${enable_ntp_signd+set}" = set; then :
  enableval=$enable_ntp_signd; ans=$enableval
else
  ans=no

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 no)
    ntp_signd_path=
    ;;
 yes)
    ntp_signd_path=/var/run/ntp_signd
    ;;
 *)
    ntp_signd_path="$ans"
esac

case "$ntp_signd_path" in
 '')
    ;;
 *)

$as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h


cat >>confdefs.h <<_ACEOF
#define NTP_SIGND_PATH "$ntp_signd_path"
_ACEOF

    ;;
esac

for ac_header in libscf.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
if test "x$ac_cv_header_libscf_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSCF_H 1
_ACEOF

fi

done

LSCF=
case "$ac_cv_header_libscf_h" in
 yes)
    LSCF='-lscf'
esac




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
if ${ntp_cv_sockaddr_storage+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif

int
main ()
{

		struct sockaddr_storage n;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_sockaddr_storage=yes
else
  ntp_cv_sockaddr_storage=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
$as_echo "$ntp_cv_sockaddr_storage" >&6; }
case "$ntp_cv_sockaddr_storage" in
 yes)

$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
if ${ntp_cv_have___ss_family+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_SYS_TYPES_H
		    # include <sys/types.h>
		    #endif
		    #ifdef HAVE_SYS_SOCKET_H
		    # include <sys/socket.h>
		    #endif
		    #ifdef HAVE_NETINET_IN_H
		    # include <netinet/in.h>
		    #endif

int
main ()
{

		    struct sockaddr_storage s;
		    s.__ss_family = 1;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have___ss_family=yes
else
  ntp_cv_have___ss_family=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
$as_echo "$ntp_cv_have___ss_family" >&6; }
    case "$ntp_cv_have___ss_family" in
     yes)

$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h

    esac

esac


#
# Look for in_port_t.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
$as_echo_n "checking for in_port_t... " >&6; }
if ${isc_cv_have_in_port_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <netinet/in.h>

int
main ()
{

		in_port_t port = 25;
		return (0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_in_port_t=yes
else
  isc_cv_have_in_port_t=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
$as_echo "$isc_cv_have_in_port_t" >&6; }
case "$isc_cv_have_in_port_t" in
 no)

$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
if ${ntp_cv_getsockname_socklen_type+:} false; then :
  $as_echo_n "(cached) " >&6
else

    getsockname_socklen_type_found=no
    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#ifdef HAVE_SYS_TYPES_H
			# include <sys/types.h>
			#endif
			#ifdef HAVE_SYS_SOCKET_H
			# include <sys/socket.h>
			#endif

int
main ()
{

			extern
			getsockname(int, $getsockname_arg2,
				$ntp_cv_getsockname_socklen_type *);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  getsockname_socklen_type_found=yes ; break 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	done
    done
    case "$getsockname_socklen_type_found" in
     no)
	ntp_cv_getsockname_socklen_type='socklen_t'
    esac
    { getsockname_arg2=; unset getsockname_arg2;}
    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }

cat >>confdefs.h <<_ACEOF
#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
$as_echo_n "checking struct sockaddr for sa_len... " >&6; }
if ${isc_cv_platform_havesalen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <sys/socket.h>

int
main ()
{

		extern struct sockaddr *ps;
		return ps->sa_len;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_platform_havesalen=yes
else
  isc_cv_platform_havesalen=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
$as_echo "$isc_cv_platform_havesalen" >&6; }
case "$isc_cv_platform_havesalen" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h

esac

# Check whether --enable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then :
  enableval=$enable_ipv6;
fi


case "$enable_ipv6" in
 yes|''|autodetect)
    case "$host" in
     powerpc-ibm-aix4*)
	;;
     *)

$as_echo "#define WANT_IPV6 1" >>confdefs.h

	;;
    esac
    ;;
 no)
    ;;
esac


case "$host" in
 *-*-darwin*)

$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
$as_echo_n "checking for IPv6 structures... " >&6; }
if ${isc_cv_found_ipv6+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <sys/socket.h>
		#include <netinet/in.h>

int
main ()
{

		struct sockaddr_in6 sin6;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_found_ipv6=yes
else
  isc_cv_found_ipv6=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
$as_echo "$isc_cv_found_ipv6" >&6; }

#
# See whether IPv6 support is provided via a Kame add-on.
# This is done before other IPv6 linking tests so LIBS is properly set.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
$as_echo_n "checking for Kame IPv6 support... " >&6; }

# Check whether --with-kame was given.
if test "${with_kame+set}" = set; then :
  withval=$with_kame; use_kame="$withval"
else
  use_kame="no"

fi

case "$use_kame" in
 no)
    ;;
 yes)
    kame_path=/usr/local/v6
    ;;
 *)
    kame_path="$use_kame"
    ;;
esac
case "$use_kame" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
 *)
    if test -f $kame_path/lib/libinet6.a; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
$as_echo "$kame_path/lib/libinet6.a" >&6; }
	LIBS="-L$kame_path/lib -linet6 $LIBS"
    else
	as_fn_error $? "$kame_path/lib/libinet6.a not found.

Please choose the proper path with the following command:

    configure --with-kame=PATH
" "$LINENO" 5
    fi
    ;;
esac

#
# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
# Including it on Kame-using platforms is very bad, though, because
# Kame uses #error against direct inclusion.   So include it on only
# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
# This is done before the in6_pktinfo check because that's what
# netinet6/in6.h is needed for.
#
case "$host" in
 *-bsdi4.[01]*)

$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h

    isc_netinet6in6_hack="#include <netinet6/in6.h>"
    ;;
 *)
    isc_netinet6in6_hack=""
    ;;
esac

#
# This is similar to the netinet6/in6.h issue.
#
case "$host" in
 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)

$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h

    isc_netinetin6_hack="#include <netinet/in6.h>"
    ;;
 *)
    isc_netinetin6_hack=""
    ;;
esac


case "$isc_cv_found_ipv6" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
$as_echo_n "checking for in6_pktinfo... " >&6; }
if ${isc_cv_have_in6_pktinfo+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include <sys/types.h>
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack

int
main ()
{

		    struct in6_pktinfo xyzzy;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_in6_pktinfo=yes
else
  isc_cv_have_in6_pktinfo=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
$as_echo "$isc_cv_have_in6_pktinfo" >&6; }
    case "$isc_cv_have_in6_pktinfo" in
     yes)

$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h

    esac


    # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
if ${isc_cv_have_sin6_scope_id+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include <sys/types.h>
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack

int
main ()
{

		    struct sockaddr_in6 xyzzy;
		    xyzzy.sin6_scope_id = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_sin6_scope_id=yes
else
  isc_cv_have_sin6_scope_id=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
$as_echo "$isc_cv_have_sin6_scope_id" >&6; }

    case "$isc_cv_have_sin6_scope_id" in
     yes)

$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h

    esac
esac


# We need this check run even without isc_cv_found_ipv6=yes

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
$as_echo_n "checking for in6addr_any... " >&6; }
if ${isc_cv_in6addr_any_links+:} false; then :
  $as_echo_n "(cached) " >&6
else

	SAVED_LIBS="$LIBS"
	LIBS="$LDADD_LIBNTP $LIBS"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack

int
main ()
{

		    printf("%x", in6addr_any.s6_addr[15]);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  isc_cv_in6addr_any_links=yes
else
  isc_cv_in6addr_any_links=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LIBS="$SAVED_LIBS"
	{ SAVED_LIBS=; unset SAVED_LIBS;}


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
$as_echo "$isc_cv_in6addr_any_links" >&6; }

case "$isc_cv_in6addr_any_links" in
 no)

$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
$as_echo_n "checking for struct if_laddrconf... " >&6; }
if ${isc_cv_struct_if_laddrconf+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <net/if6.h>

int
main ()
{

		struct if_laddrconf a;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_struct_if_laddrconf=yes
else
  isc_cv_struct_if_laddrconf=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
$as_echo "$isc_cv_struct_if_laddrconf" >&6; }

case "$isc_cv_struct_if_laddrconf" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
$as_echo_n "checking for struct if_laddrreq... " >&6; }
if ${isc_cv_struct_if_laddrreq+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <net/if6.h>

int
main ()
{

		struct if_laddrreq a;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_struct_if_laddrreq=yes
else
  isc_cv_struct_if_laddrreq=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
$as_echo "$isc_cv_struct_if_laddrreq" >&6; }

case "$isc_cv_struct_if_laddrreq" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
$as_echo_n "checking for multicast IP support... " >&6; }
if ${ntp_cv_multicast+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_multicast=no
	case "$host" in
	 i386-sequent-sysv4)
	    ;;
	 *)
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#ifdef HAVE_NETINET_IN_H
			# include <netinet/in.h>
			#endif

int
main ()
{

			struct ip_mreq ipmr;
			ipmr.imr_interface.s_addr = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_multicast=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
$as_echo "$ntp_cv_multicast" >&6; }
case "$ntp_cv_multicast" in
 yes)

$as_echo "#define MCAST 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    case "$host" in
	     *-*-netbsd*|*-*-*linux*)
		ntp_cv_typeof_ip_multicast_loop=u_int
		;;
	     *)
		ntp_cv_typeof_ip_multicast_loop=u_char
		;;
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }

cat >>confdefs.h <<_ACEOF
#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
_ACEOF

esac

# Check whether --enable-getifaddrs was given.
if test "${enable_getifaddrs+set}" = set; then :
  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
else
  want_getifaddrs="yes"

fi


case $want_getifaddrs in
 glibc)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
esac
case $want_getifaddrs in
 no)
    ;;
 *)
    SAVED_LIBS="$LIBS"
    LIBS="$LDADD_LIBNTP $LIBS"
    for ac_func in getifaddrs
do :
  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF

fi
done

    LIBS="$SAVED_LIBS"
    { SAVED_LIBS=; unset SAVED_LIBS;}
    ;;
esac

#
# Check for if_nametoindex() for IPv6 scoped addresses support
#
case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
$as_echo_n "checking for library containing if_nametoindex... " >&6; }
if ${ac_cv_search_if_nametoindex+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char if_nametoindex ();
int
main ()
{
return if_nametoindex ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' ipv6; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_if_nametoindex=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_if_nametoindex+:} false; then :
  break
fi
done
if ${ac_cv_search_if_nametoindex+:} false; then :

else
  ac_cv_search_if_nametoindex=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
$as_echo "$ac_cv_search_if_nametoindex" >&6; }
ac_res=$ac_cv_search_if_nametoindex
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

esac
SAVED_LIBS="$LIBS"
LIBS="$LDADD_LIBNTP $LIBS"
for ac_func in if_nametoindex
do :
  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
if test "x$ac_cv_func_if_nametoindex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_IF_NAMETOINDEX 1
_ACEOF

fi
done

LIBS="$SAVED_LIBS"
{ SAVED_LIBS=; unset SAVED_LIBS;}
case "$ac_cv_func_if_nametoindex" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h

esac




#
# Look for a sysctl call to get the list of network interfaces.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
$as_echo_n "checking for interface list sysctl... " >&6; }
if ${ntp_cv_iflist_sysctl+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <sys/param.h>
	    #include <sys/sysctl.h>
	    #include <sys/socket.h>
	    #ifndef NET_RT_IFLIST
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_iflist_sysctl=yes
else
  ntp_cv_iflist_sysctl=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
$as_echo "$ntp_cv_iflist_sysctl" >&6; }
case "$ntp_cv_iflist_sysctl" in
 yes)

$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h

esac

###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
$as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
# Check whether --enable-saveconfig was given.
if test "${enable_saveconfig+set}" = set; then :
  enableval=$enable_saveconfig; ntp_ok=$enableval
else
  ntp_ok=yes

fi

ntp_saveconfig_enabled=0
case "$ntp_ok" in
 yes)
    ntp_saveconfig_enabled=1

$as_echo "#define SAVECONFIG 1" >>confdefs.h

    ;;
esac
 if test x$ntp_saveconfig_enabled = x1; then
  SAVECONFIG_ENABLED_TRUE=
  SAVECONFIG_ENABLED_FALSE='#'
else
  SAVECONFIG_ENABLED_TRUE='#'
  SAVECONFIG_ENABLED_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }


gta=false

# Check whether --with-gtest was given.
if test "${with_gtest+set}" = set; then :
  withval=$with_gtest; try_gtest=$withval
else
  try_gtest=yes

fi

case "$try_gtest" in
 yes)
    # Extract the first word of "gtest-config", so it can be a program name with args.
set dummy gtest-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_GTEST_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $GTEST_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
if test -n "$GTEST_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
$as_echo "$GTEST_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
    case x${GTEST_CONFIG} in
     x) ;;
     *)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
$as_echo_n "checking gtest version... " >&6; }
	gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
	case "$gtest_version_test" in
	 toolow*)
	    ;;
	 *)
	    GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
	    GTEST_LIBS=`$GTEST_CONFIG --libs`
	    GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
	    GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`




	    gta=true
	    ;;
	esac
	gtest_version=`$GTEST_CONFIG --version`
	case "$gta" in
	 true)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
$as_echo "($gtest_version) ok" >&6; }
	    ;;
	 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
$as_echo "($gtest_version) not ok" >&6; }
	    ;;
	esac
	{ gtest_version_test=; unset gtest_version_test;}
	{ gtest_version=; unset gtest_version;}
    esac
esac
 if $gta; then
  GTEST_AVAILABLE_TRUE=
  GTEST_AVAILABLE_FALSE='#'
else
  GTEST_AVAILABLE_TRUE='#'
  GTEST_AVAILABLE_FALSE=
fi




###


  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$sysconfdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  NTP_KEYSDIR="$ac_define_dir"


cat >>confdefs.h <<_ACEOF
#define NTP_KEYSDIR "$ac_define_dir"
_ACEOF

  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE


ac_config_files="$ac_config_files Makefile"

ac_config_files="$ac_config_files adjtimed/Makefile"

ac_config_files="$ac_config_files clockstuff/Makefile"

ac_config_files="$ac_config_files include/Makefile"

ac_config_files="$ac_config_files include/isc/Makefile"

ac_config_files="$ac_config_files kernel/Makefile"

ac_config_files="$ac_config_files kernel/sys/Makefile"

ac_config_files="$ac_config_files libntp/Makefile"

ac_config_files="$ac_config_files libparse/Makefile"

ac_config_files="$ac_config_files ntpd/Makefile"

ac_config_files="$ac_config_files ntpd/complete.conf"

ac_config_files="$ac_config_files ntpdate/Makefile"

ac_config_files="$ac_config_files ntpdc/Makefile"

ac_config_files="$ac_config_files ntpdc/nl.pl"

ac_config_files="$ac_config_files ntpq/Makefile"

ac_config_files="$ac_config_files ntpsnmpd/Makefile"

ac_config_files="$ac_config_files parseutil/Makefile"

ac_config_files="$ac_config_files scripts/Makefile"

ac_config_files="$ac_config_files scripts/lib/Makefile"

ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"

ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"

ac_config_files="$ac_config_files scripts/build/mkver"

ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"

ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"

ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"

ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"

ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"

ac_config_files="$ac_config_files scripts/ntptrace/Makefile"

ac_config_files="$ac_config_files scripts/ntpver"

ac_config_files="$ac_config_files scripts/plot_summary"

ac_config_files="$ac_config_files scripts/summary"

ac_config_files="$ac_config_files scripts/build/Makefile"

ac_config_files="$ac_config_files tests/Makefile"

ac_config_files="$ac_config_files tests/libntp/Makefile"

ac_config_files="$ac_config_files tests/ntpd/Makefile"

ac_config_files="$ac_config_files util/Makefile"


perllibdir="${datadir}/ntp/lib"

  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$perllibdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  PERLLIBDIR="$ac_define_dir"


cat >>confdefs.h <<_ACEOF
#define PERLLIBDIR "$ac_define_dir"
_ACEOF

  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE


calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"

ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"

ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"

ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"

summary_opts="$srcdir/scripts/summary-opts"

plot_summary_opts="$srcdir/scripts/plot_summary-opts"




subdirs="$subdirs sntp"


cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    if test "x$cache_file" != "x/dev/null"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
      if test ! -f "$cache_file" || test -h "$cache_file"; then
	cat confcache >"$cache_file"
      else
        case $cache_file in #(
        */* | ?:*)
	  mv -f confcache "$cache_file"$$ &&
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
        *)
	  mv -f confcache "$cache_file" ;;
	esac
      fi
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
U=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


 if test -n "$EXEEXT"; then
  am__EXEEXT_TRUE=
  am__EXEEXT_FALSE='#'
else
  am__EXEEXT_TRUE='#'
  am__EXEEXT_FALSE=
fi

if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  as_fn_error $? "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
  as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
  as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
  as_fn_error $? "conditional \"PTHREADS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
  as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
  as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false

SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH


# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  $as_echo "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@@" || test $? -eq 1`
  }
fi # as_fn_arith


if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null


# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by ntp4 $as_me 4.2.8, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to <http://bugs.ntp.org./>.
ntp4 home page: <http://www.ntp.org./>."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
ntp4 config.status 4.2.8
configured by $0, generated by GNU Autoconf 2.68,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2010 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=?*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  --*=)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    $as_echo "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    $as_echo "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    '') as_fn_error $? "missing file argument" ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error $? "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
  --help | --hel | -h )
    $as_echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error $? "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#
# INIT-COMMANDS
#
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"


# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

sed_quote_subst='$sed_quote_subst'
double_quote_subst='$double_quote_subst'
delay_variable_subst='$delay_variable_subst'
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'

LTCC='$LTCC'
LTCFLAGS='$LTCFLAGS'
compiler='$compiler_DEFAULT'

# A function that is used when there is no print builtin or printf.
func_fallback_echo ()
{
  eval 'cat <<_LTECHO_EOF
\$1
_LTECHO_EOF'
}

# Quote evaled strings.
for var in SHELL \
ECHO \
SED \
GREP \
EGREP \
FGREP \
LD \
NM \
LN_S \
lt_SP2NL \
lt_NL2SP \
reload_flag \
OBJDUMP \
deplibs_check_method \
file_magic_cmd \
file_magic_glob \
want_nocaseglob \
DLLTOOL \
sharedlib_from_linklib_cmd \
AR \
AR_FLAGS \
archiver_list_spec \
STRIP \
RANLIB \
CC \
CFLAGS \
compiler \
lt_cv_sys_global_symbol_pipe \
lt_cv_sys_global_symbol_to_cdecl \
lt_cv_sys_global_symbol_to_c_name_address \
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
nm_file_list_spec \
lt_prog_compiler_no_builtin_flag \
lt_prog_compiler_pic \
lt_prog_compiler_wl \
lt_prog_compiler_static \
lt_cv_prog_compiler_c_o \
need_locks \
MANIFEST_TOOL \
DSYMUTIL \
NMEDIT \
LIPO \
OTOOL \
OTOOL64 \
shrext_cmds \
export_dynamic_flag_spec \
whole_archive_flag_spec \
compiler_needs_object \
with_gnu_ld \
allow_undefined_flag \
no_undefined_flag \
hardcode_libdir_flag_spec \
hardcode_libdir_flag_spec_ld \
hardcode_libdir_separator \
exclude_expsyms \
include_expsyms \
file_list_spec \
variables_saved_for_relink \
libname_spec \
library_names_spec \
soname_spec \
install_override_mode \
finish_eval \
old_striplib \
striplib \
compiler_lib_search_dirs \
predep_objects \
postdep_objects \
predeps \
postdeps \
compiler_lib_search_path \
LD_CXX \
reload_flag_CXX \
compiler_CXX \
lt_prog_compiler_no_builtin_flag_CXX \
lt_prog_compiler_pic_CXX \
lt_prog_compiler_wl_CXX \
lt_prog_compiler_static_CXX \
lt_cv_prog_compiler_c_o_CXX \
export_dynamic_flag_spec_CXX \
whole_archive_flag_spec_CXX \
compiler_needs_object_CXX \
with_gnu_ld_CXX \
allow_undefined_flag_CXX \
no_undefined_flag_CXX \
hardcode_libdir_flag_spec_CXX \
hardcode_libdir_flag_spec_ld_CXX \
hardcode_libdir_separator_CXX \
exclude_expsyms_CXX \
include_expsyms_CXX \
file_list_spec_CXX \
compiler_lib_search_dirs_CXX \
predep_objects_CXX \
postdep_objects_CXX \
predeps_CXX \
postdeps_CXX \
compiler_lib_search_path_CXX; do
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

# Double-quote double-evaled strings.
for var in reload_cmds \
old_postinstall_cmds \
old_postuninstall_cmds \
old_archive_cmds \
extract_expsyms_cmds \
old_archive_from_new_cmds \
old_archive_from_expsyms_cmds \
archive_cmds \
archive_expsym_cmds \
module_cmds \
module_expsym_cmds \
export_symbols_cmds \
prelink_cmds \
postlink_cmds \
postinstall_cmds \
postuninstall_cmds \
finish_cmds \
sys_lib_search_path_spec \
sys_lib_dlsearch_path_spec \
reload_cmds_CXX \
old_archive_cmds_CXX \
old_archive_from_new_cmds_CXX \
old_archive_from_expsyms_cmds_CXX \
archive_cmds_CXX \
archive_expsym_cmds_CXX \
module_cmds_CXX \
module_expsym_cmds_CXX \
export_symbols_cmds_CXX \
prelink_cmds_CXX \
postlink_cmds_CXX; do
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

ac_aux_dir='$ac_aux_dir'
xsi_shell='$xsi_shell'
lt_shell_append='$lt_shell_append'

# See if we are running on zsh, and set the options which allow our
# commands through without removal of \ escapes INIT.
if test -n "\${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi


    PACKAGE='$PACKAGE'
    VERSION='$VERSION'
    TIMESTAMP='$TIMESTAMP'
    RM='$RM'
    ofile='$ofile'






_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
    "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
    "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
    "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
    "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
    "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
    "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
    "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
    "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
    "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
    "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
    "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
    "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
    "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
    "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
    "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
    "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
    "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
    "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
    "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
    "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
    "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
    "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
    "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;

  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp= ac_tmp=
  trap 'exit_status=$?
  : "${ac_tmp:=$tmp}"
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ac_tmp=$tmp

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then

if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  ac_cs_awk_getline=:
  ac_cs_awk_pipe_init=
  ac_cs_awk_read_file='
      while ((getline aline < (F[key])) > 0)
	print(aline)
      close(F[key])'
  ac_cs_awk_pipe_fini=
else
  ac_cs_awk_getline=false
  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  ac_cs_awk_read_file='
      print "|#_!!_#|"
      print "cat " F[key] " &&"
      '$ac_cs_awk_pipe_init
  # The final `:' finishes the AND list.
  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
fi
ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
_ACEOF

# Create commands to substitute file output variables.
{
  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  echo "_ACAWK" &&
  echo "_ACEOF"
} >conf$$files.sh &&
. ./conf$$files.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
rm -f conf$$files.sh

{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""
  \$ac_cs_awk_pipe_init
}
{
  line = $ 0
  nfields = split(line, field, "@@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }
  if (nfields == 3 && !substed) {
    key = field[2]
    if (F[key] != "" && line ~ /^[	 ]*@@.*@@[	 ]*$/) {
      \$ac_cs_awk_read_file
      next
    }
  }
  print line
}
\$ac_cs_awk_pipe_fini
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
_ACEOF

# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
# ${srcdir} and @@srcdir@@ entries from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
h
s///
s/^/:/
s/[	 ]*$/:/
s/:\$(srcdir):/:/g
s/:\${srcdir}:/:/g
s/:@@srcdir@@:/:/g
s/^:*//
s/:*$//
x
s/\(=[	 ]*\).*/\1/
G
s/\n//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_tt"; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$ac_tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@@datadir@@/p
/@@docdir@@/p
/@@infodir@@/p
/@@localedir@@/p
/@@mandir@@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@@datadir@@*|*@@docdir@@*|*@@infodir@@*|*@@localedir@@*|*@@mandir@@*)
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@@datadir@@&$datadir&g
  s&@@docdir@@&$docdir&g
  s&@@infodir@@&$infodir&g
  s&@@localedir@@&$localedir&g
  s&@@mandir@@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s|@@configure_input@@|$ac_sed_conf_input|;t t
s&@@top_builddir@@&$ac_top_builddir_sub&;t t
s&@@top_build_prefix@@&$ac_top_build_prefix&;t t
s&@@srcdir@@&$ac_srcdir&;t t
s&@@abs_srcdir@@&$ac_abs_srcdir&;t t
s&@@top_srcdir@@&$ac_top_srcdir&;t t
s&@@abs_top_srcdir@@&$ac_abs_top_srcdir&;t t
s&@@builddir@@&$ac_builddir&;t t
s&@@abs_builddir@@&$ac_abs_builddir&;t t
s&@@abs_top_builddir@@&$ac_abs_top_builddir&;t t
s&@@INSTALL@@&$ac_INSTALL&;t t
s&@@MKDIR_P@@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
if $ac_cs_awk_getline; then
  $AWK -f "$ac_tmp/subs.awk"
else
  $AWK -f "$ac_tmp/subs.awk" | $SHELL
fi \
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&2;}

  rm -f "$ac_tmp/stdin"
  case $ac_file in
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  esac \
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
    } >"$ac_tmp/config.h" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
$as_echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$ac_tmp/config.h" "$ac_file" \
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
    fi
  else
    $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error $? "could not create -" "$LINENO" 5
  fi
# Compute "$ac_file"'s index in $config_headers.
_am_arg="$ac_file"
_am_stamp_count=1
for _am_header in $config_headers :; do
  case $_am_header in
    $_am_arg | $_am_arg:* )
      break ;;
    * )
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  esac
done
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
	 X"$_am_arg" : 'X\(//\)$' \| \
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$_am_arg" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`/stamp-h$_am_stamp_count
 ;;

  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
  # are listed without --file.  Let's play safe and only enable the eval
  # if we detect the quoting.
  case $CONFIG_FILES in
  *\'*) eval set x "$CONFIG_FILES" ;;
  *)   set x $CONFIG_FILES ;;
  esac
  shift
  for mf
  do
    # Strip MF so we end up with the name of the file.
    mf=`echo "$mf" | sed -e 's/:.*$//'`
    # Check whether this is an Automake generated Makefile or not.
    # We used to match only the files named `Makefile.in', but
    # some people rename them; so instead we look at the file content.
    # Grep'ing the first line is not enough: some people post-process
    # each Makefile.in and add a new line on top of each file to say so.
    # Grep'ing the whole file is not good either: AIX grep has a line
    # limit of 2048, but all sed's we know have understand at least 4000.
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
      dirpart=`$as_dirname -- "$mf" ||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$mf" : 'X\(//\)[^/]' \| \
	 X"$mf" : 'X\(//\)$' \| \
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
    else
      continue
    fi
    # Extract the definition of DEPDIR, am__include, and am__quote
    # from the Makefile without running `make'.
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    test -z "$DEPDIR" && continue
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
    test -z "am__include" && continue
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
    # When using ansi2knr, U may be empty or an underscore; expand it
    U=`sed -n 's/^U = //p' < "$mf"`
    # Find all dependency output files, they are included files with
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
    # simplest approach to changing $(DEPDIR) to its actual value in the
    # expansion.
    for file in `sed -n "
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
      # Make sure the directory exists.
      test -f "$dirpart/$file" && continue
      fdir=`$as_dirname -- "$file" ||
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$file" : 'X\(//\)[^/]' \| \
	 X"$file" : 'X\(//\)$' \| \
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
      # echo "creating $dirpart/$file"
      echo '# dummy' > "$dirpart/$file"
    done
  done
}
 ;;
    "libtool":C)

    # See if we are running on zsh, and set the options which allow our
    # commands through without removal of \ escapes.
    if test -n "${ZSH_VERSION+set}" ; then
      setopt NO_GLOB_SUBST
    fi

    cfgfile="${ofile}T"
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
    $RM "$cfgfile"

    cat <<_LT_EOF >> "$cfgfile"
#! $SHELL

# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
#                 Inc.
#   Written by Gordon Matzigkeit, 1996
#
#   This file is part of GNU Libtool.
#
# GNU Libtool is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# As a special exception to the GNU General Public License,
# if you distribute this file as part of a program or library that
# is built using GNU Libtool, you may include this file under the
# same distribution terms that you use for the rest of that program.
#
# GNU Libtool is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Libtool; see the file COPYING.  If not, a copy
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
# obtained by writing to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


# The names of the tagged configurations supported by this script.
available_tags="CXX "

# ### BEGIN LIBTOOL CONFIG

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Which release of libtool.m4 was used?
macro_version=$macro_version
macro_revision=$macro_revision

# Whether or not to build static libraries.
build_old_libs=$enable_static

# What type of objects to build.
pic_mode=$pic_mode

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# An echo program that protects backslashes.
ECHO=$lt_ECHO

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# A sed program that does not truncate output.
SED=$lt_SED

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="\$SED -e 1s/^X//"

# A grep program that handles long lines.
GREP=$lt_GREP

# An ERE matcher.
EGREP=$lt_EGREP

# A literal string matcher.
FGREP=$lt_FGREP

# A BSD- or MS-compatible name lister.
NM=$lt_NM

# Whether we need soft or hard links.
LN_S=$lt_LN_S

# What is the maximum length of a command?
max_cmd_len=$max_cmd_len

# Object file suffix (normally "o").
objext=$ac_objext

# Executable file suffix (normally "").
exeext=$exeext

# whether the shell understands "unset".
lt_unset=$lt_unset

# turn spaces into newlines.
SP2NL=$lt_lt_SP2NL

# turn newlines into spaces.
NL2SP=$lt_lt_NL2SP

# convert \$build file names to \$host format.
to_host_file_cmd=$lt_cv_to_host_file_cmd

# convert \$build files to toolchain format.
to_tool_file_cmd=$lt_cv_to_tool_file_cmd

# An object symbol dumper.
OBJDUMP=$lt_OBJDUMP

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method = "file_magic".
file_magic_cmd=$lt_file_magic_cmd

# How to find potential files when deplibs_check_method = "file_magic".
file_magic_glob=$lt_file_magic_glob

# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
want_nocaseglob=$lt_want_nocaseglob

# DLL creation program.
DLLTOOL=$lt_DLLTOOL

# Command to associate shared and link libraries.
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd

# The archiver.
AR=$lt_AR

# Flags to create an archive.
AR_FLAGS=$lt_AR_FLAGS

# How to feed a file listing to the archiver.
archiver_list_spec=$lt_archiver_list_spec

# A symbol stripping program.
STRIP=$lt_STRIP

# Commands used to install an old-style archive.
RANLIB=$lt_RANLIB
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Whether to use a lock for old archive extraction.
lock_old_archive_extraction=$lock_old_archive_extraction

# A C compiler.
LTCC=$lt_CC

# LTCC compiler flags.
LTCFLAGS=$lt_CFLAGS

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration.
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair.
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# Transform the output of nm in a C name address pair when lib prefix is needed.
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix

# Specify filename containing input files for \$NM.
nm_file_list_spec=$lt_nm_file_list_spec

# The root where to search for dependent libraries,and in which our libraries should be installed.
lt_sysroot=$lt_sysroot

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# Used to examine libraries when file_magic_cmd begins with "file".
MAGIC_CMD=$MAGIC_CMD

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Manifest tool.
MANIFEST_TOOL=$lt_MANIFEST_TOOL

# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
DSYMUTIL=$lt_DSYMUTIL

# Tool to change global to local symbols on Mac OS X.
NMEDIT=$lt_NMEDIT

# Tool to manipulate fat objects and archives on Mac OS X.
LIPO=$lt_LIPO

# ldd/readelf like tool for Mach-O binaries on Mac OS X.
OTOOL=$lt_OTOOL

# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
OTOOL64=$lt_OTOOL64

# Old archive suffix (normally "a").
libext=$libext

# Shared library suffix (normally ".so").
shrext_cmds=$lt_shrext_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Variables whose values should be saved in libtool wrapper scripts and
# restored at link time.
variables_saved_for_relink=$lt_variables_saved_for_relink

# Do we need the "lib" prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Library versioning type.
version_type=$version_type

# Shared library runtime path variable.
runpath_var=$runpath_var

# Shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Permission mode override for installation of shared libraries.
install_override_mode=$lt_install_override_mode

# Command to use after installation of a shared archive.
postinstall_cmds=$lt_postinstall_cmds

# Command to use after uninstallation of a shared archive.
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# As "finish_cmds", except a single script fragment to be evaled but
# not shown.
finish_eval=$lt_finish_eval

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Compile-time system search path for libraries.
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib


# The linker used to build libraries.
LD=$lt_LD

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds

# A language specific compiler.
CC=$lt_compiler

# Is the compiler the GNU compiler?
with_gcc=$GCC

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds

# Commands necessary for finishing linking programs.
postlink_cmds=$lt_postlink_cmds

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects
postdep_objects=$lt_postdep_objects
predeps=$lt_predeps
postdeps=$lt_postdeps

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path

# ### END LIBTOOL CONFIG

_LT_EOF

  case $host_os in
  aix3*)
    cat <<\_LT_EOF >> "$cfgfile"
# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
_LT_EOF
    ;;
  esac


ltmain="$ac_aux_dir/ltmain.sh"


  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '$q' "$ltmain" >> "$cfgfile" \
     || (rm -f "$cfgfile"; exit 1)

  if test x"$xsi_shell" = xyes; then
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
func_dirname ()\
{\
\    case ${1} in\
\      */*) func_dirname_result="${1%/*}${2}" ;;\
\      *  ) func_dirname_result="${3}" ;;\
\    esac\
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_basename ()$/,/^} # func_basename /c\
func_basename ()\
{\
\    func_basename_result="${1##*/}"\
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
func_dirname_and_basename ()\
{\
\    case ${1} in\
\      */*) func_dirname_result="${1%/*}${2}" ;;\
\      *  ) func_dirname_result="${3}" ;;\
\    esac\
\    func_basename_result="${1##*/}"\
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
func_stripname ()\
{\
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
\    # positional parameters, so assign one to ordinary parameter first.\
\    func_stripname_result=${3}\
\    func_stripname_result=${func_stripname_result#"${1}"}\
\    func_stripname_result=${func_stripname_result%"${2}"}\
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
func_split_long_opt ()\
{\
\    func_split_long_opt_name=${1%%=*}\
\    func_split_long_opt_arg=${1#*=}\
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
func_split_short_opt ()\
{\
\    func_split_short_opt_arg=${1#??}\
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
func_lo2o ()\
{\
\    case ${1} in\
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
\      *)    func_lo2o_result=${1} ;;\
\    esac\
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_xform ()$/,/^} # func_xform /c\
func_xform ()\
{\
    func_xform_result=${1%.*}.lo\
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_arith ()$/,/^} # func_arith /c\
func_arith ()\
{\
    func_arith_result=$(( $* ))\
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_len ()$/,/^} # func_len /c\
func_len ()\
{\
    func_len_result=${#1}\
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:

fi

if test x"$lt_shell_append" = xyes; then
  sed -e '/^func_append ()$/,/^} # func_append /c\
func_append ()\
{\
    eval "${1}+=\\${2}"\
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
func_append_quoted ()\
{\
\    func_quote_for_eval "${2}"\
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  # Save a `func_append' function call where possible by direct use of '+='
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
    && mv -f "$cfgfile.tmp" "$cfgfile" \
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  test 0 -eq $? || _lt_function_replace_fail=:
else
  # Save a `func_append' function call even when '+=' is not available
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
    && mv -f "$cfgfile.tmp" "$cfgfile" \
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  test 0 -eq $? || _lt_function_replace_fail=:
fi

if test x"$_lt_function_replace_fail" = x":"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
fi


   mv -f "$cfgfile" "$ofile" ||
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"


    cat <<_LT_EOF >> "$ofile"

# ### BEGIN LIBTOOL TAG CONFIG: CXX

# The linker used to build libraries.
LD=$lt_LD_CXX

# How to create reloadable object files.
reload_flag=$lt_reload_flag_CXX
reload_cmds=$lt_reload_cmds_CXX

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds_CXX

# A language specific compiler.
CC=$lt_compiler_CXX

# Is the compiler the GNU compiler?
with_gcc=$GCC_CXX

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object_CXX

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld_CXX

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute_CXX

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic_CXX

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath_CXX

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds_CXX

# Commands necessary for finishing linking programs.
postlink_cmds=$lt_postlink_cmds_CXX

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec_CXX

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects_CXX
postdep_objects=$lt_postdep_objects_CXX
predeps=$lt_predeps_CXX
postdeps=$lt_postdeps_CXX

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX

# ### END LIBTOOL TAG CONFIG: CXX
_LT_EOF

 ;;
    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
    "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
    "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
    "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
    "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
    "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
    "scripts/ntpver":F) chmod +x scripts/ntpver ;;
    "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
    "scripts/summary":F) chmod +x scripts/summary ;;

  esac
done # for ac_tag


as_fn_exit 0
_ACEOF
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || as_fn_exit 1
fi

#
# CONFIG_SUBDIRS section.
#
if test "$no_recursion" != yes; then

  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  # so they do not pile up.
  ac_sub_configure_args=
  ac_prev=
  eval "set x $ac_configure_args"
  shift
  for ac_arg
  do
    if test -n "$ac_prev"; then
      ac_prev=
      continue
    fi
    case $ac_arg in
    -cache-file | --cache-file | --cache-fil | --cache-fi \
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
      ac_prev=cache_file ;;
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
    | --c=*)
      ;;
    --config-cache | -C)
      ;;
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
      ac_prev=srcdir ;;
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
      ;;
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
      ac_prev=prefix ;;
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
      ;;
    --disable-option-checking)
      ;;
    *)
      case $ac_arg in
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
      esac
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
    esac
  done

  # Always prepend --prefix to ensure using the same prefix
  # in subdir configurations.
  ac_arg="--prefix=$prefix"
  case $ac_arg in
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  esac
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"

  # Pass --silent
  if test "$silent" = yes; then
    ac_sub_configure_args="--silent $ac_sub_configure_args"
  fi

  # Always prepend --disable-option-checking to silence warnings, since
  # different subdirs can have different --enable and --with options.
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"

  ac_popdir=`pwd`
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue

    # Do not complain, so a configure script can configure whichever
    # parts of a large source tree are present.
    test -d "$srcdir/$ac_dir" || continue

    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
    $as_echo "$ac_msg" >&6
    as_dir="$ac_dir"; as_fn_mkdir_p
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


    cd "$ac_dir"

    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      ac_sub_configure=$ac_srcdir/configure.gnu
    elif test -f "$ac_srcdir/configure"; then
      ac_sub_configure=$ac_srcdir/configure
    elif test -f "$ac_srcdir/configure.in"; then
      # This should be Cygnus configure.
      ac_sub_configure=$ac_aux_dir/configure
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
      ac_sub_configure=
    fi

    # The recursion is here.
    if test -n "$ac_sub_configure"; then
      # Make the cache file name correct relative to the subdirectory.
      case $cache_file in
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
      *) # Relative name.
	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
      esac

      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
      # The eval makes quoting arguments work.
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
    fi

    cd "$ac_popdir"
  done
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi

@


1.1.1.4.4.1
log
@file configure was added on branch netbsd-5-2 on 2015-01-07 10:10:03 +0000
@
text
@d1 39094
@


1.1.1.4.4.2
log
@Pullup the following revision (requested by he in ticket #1938):

dist/ntp/COPYRIGHT						delete
dist/ntp/ChangeLog						delete
dist/ntp/CommitLog						delete
dist/ntp/CommitLog-4.1.0					delete
dist/ntp/INSTALL						delete
dist/ntp/Makefile.am						delete
dist/ntp/Makefile.in						delete
dist/ntp/NEWS							delete
dist/ntp/NOTES.y2kfixes						delete
dist/ntp/README							delete
dist/ntp/README.bk						delete
dist/ntp/README.hackers						delete
dist/ntp/README.patches						delete
dist/ntp/README.refclocks					delete
dist/ntp/README.versions					delete
dist/ntp/TODO							delete
dist/ntp/WHERE-TO-START						delete
dist/ntp/aclocal.m4						delete
dist/ntp/bincheck.mf						delete
dist/ntp/bootstrap						delete
dist/ntp/build							delete
dist/ntp/compile						delete
dist/ntp/config.guess						delete
dist/ntp/config.h.in						delete
dist/ntp/config.sub						delete
dist/ntp/configure						delete
dist/ntp/configure.ac						delete
dist/ntp/depcomp						delete
dist/ntp/dot.emacs						delete
dist/ntp/excludes						delete
dist/ntp/flock-build						delete
dist/ntp/install-sh						delete
dist/ntp/ltmain.sh						delete
dist/ntp/missing						delete
dist/ntp/ntp-html2mdoc.pl					delete
dist/ntp/ntp2netbsd						delete
dist/ntp/packageinfo.sh						delete
dist/ntp/readme.y2kfixes					delete
dist/ntp/results.y2kfixes					delete
dist/ntp/version						delete
dist/ntp/version.m4						delete
dist/ntp/ElectricFence/CHANGES					delete
dist/ntp/ElectricFence/COPYING					delete
dist/ntp/ElectricFence/Makefile.am				delete
dist/ntp/ElectricFence/Makefile.in				delete
dist/ntp/ElectricFence/README					delete
dist/ntp/ElectricFence/efence.c					delete
dist/ntp/ElectricFence/efence.h					delete
dist/ntp/ElectricFence/eftest.c					delete
dist/ntp/ElectricFence/libefence.3				delete
dist/ntp/ElectricFence/page.c					delete
dist/ntp/ElectricFence/print.c					delete
dist/ntp/ElectricFence/tstheap.c				delete
dist/ntp/adjtimed/Makefile.am					delete
dist/ntp/adjtimed/Makefile.in					delete
dist/ntp/adjtimed/README					delete
dist/ntp/adjtimed/adjtimed.c					delete
dist/ntp/arlib/COPYING						delete
dist/ntp/arlib/INSTALL						delete
dist/ntp/arlib/Makefile.am					delete
dist/ntp/arlib/Makefile.in					delete
dist/ntp/arlib/README						delete
dist/ntp/arlib/UNSHAR.HDR					delete
dist/ntp/arlib/aclocal.m4					delete
dist/ntp/arlib/arlib.3						delete
dist/ntp/arlib/arlib.c						delete
dist/ntp/arlib/arlib.h						delete
dist/ntp/arlib/arplib.h						delete
dist/ntp/arlib/configure					delete
dist/ntp/arlib/configure.in					delete
dist/ntp/arlib/depcomp						delete
dist/ntp/arlib/install-sh					delete
dist/ntp/arlib/missing						delete
dist/ntp/arlib/sample.c						delete
dist/ntp/clockstuff/Makefile.am					delete
dist/ntp/clockstuff/Makefile.in					delete
dist/ntp/clockstuff/README					delete
dist/ntp/clockstuff/chutest.c					delete
dist/ntp/clockstuff/clktest.c					delete
dist/ntp/clockstuff/propdelay.c					delete
dist/ntp/conf/README						delete
dist/ntp/conf/baldwin.conf					delete
dist/ntp/conf/beauregard.conf					delete
dist/ntp/conf/grundoon.conf					delete
dist/ntp/conf/malarky.conf					delete
dist/ntp/conf/pogo.conf						delete
dist/ntp/conf/rackety.conf					delete
dist/ntp/html/accopt.html					delete
dist/ntp/html/assoc.html					delete
dist/ntp/html/audio.html					delete
dist/ntp/html/authopt.html					delete
dist/ntp/html/clockopt.html					delete
dist/ntp/html/confopt.html					delete
dist/ntp/html/copyright.html					delete
dist/ntp/html/debug.html					delete
dist/ntp/html/extern.html					delete
dist/ntp/html/gadget.html					delete
dist/ntp/html/groups.html					delete
dist/ntp/html/howto.html					delete
dist/ntp/html/index.html					delete
dist/ntp/html/kern.html						delete
dist/ntp/html/keygen.html					delete
dist/ntp/html/ldisc.html					delete
dist/ntp/html/manyopt.html					delete
dist/ntp/html/measure.html					delete
dist/ntp/html/miscopt.html					delete
dist/ntp/html/monopt.html					delete
dist/ntp/html/msyslog.html					delete
dist/ntp/html/mx4200data.html					delete
dist/ntp/html/notes.html					delete
dist/ntp/html/ntp_conf.html					delete
dist/ntp/html/ntpd.html						delete
dist/ntp/html/ntpdate.html					delete
dist/ntp/html/ntpdc.html					delete
dist/ntp/html/ntpdsim.html					delete
dist/ntp/html/ntpdsim_new.html					delete
dist/ntp/html/ntpq.html						delete
dist/ntp/html/ntptime.html					delete
dist/ntp/html/ntptrace.html					delete
dist/ntp/html/parsedata.html					delete
dist/ntp/html/parsenew.html					delete
dist/ntp/html/pps.html						delete
dist/ntp/html/prefer.html					delete
dist/ntp/html/rdebug.html					delete
dist/ntp/html/refclock.html					delete
dist/ntp/html/release.html					delete
dist/ntp/html/sntp.html						delete
dist/ntp/html/tickadj.html					delete
dist/ntp/html/build/build.html					delete
dist/ntp/html/build/config.html					delete
dist/ntp/html/build/hints.html					delete
dist/ntp/html/build/patches.html				delete
dist/ntp/html/build/porting.html				delete
dist/ntp/html/build/quick.html					delete
dist/ntp/html/build/hints/a-ux					delete
dist/ntp/html/build/hints/aix					delete
dist/ntp/html/build/hints/bsdi					delete
dist/ntp/html/build/hints/changes				delete
dist/ntp/html/build/hints/decosf1				delete
dist/ntp/html/build/hints/decosf2				delete
dist/ntp/html/build/hints/freebsd				delete
dist/ntp/html/build/hints/hpux					delete
dist/ntp/html/build/hints/linux					delete
dist/ntp/html/build/hints/mpeix					delete
dist/ntp/html/build/hints/netbsd				delete
dist/ntp/html/build/hints/notes-xntp-v3				delete
dist/ntp/html/build/hints/parse					delete
dist/ntp/html/build/hints/refclocks				delete
dist/ntp/html/build/hints/rs6000				delete
dist/ntp/html/build/hints/sco.html				delete
dist/ntp/html/build/hints/sgi					delete
dist/ntp/html/build/hints/solaris-dosynctodr.html		delete
dist/ntp/html/build/hints/solaris.html				delete
dist/ntp/html/build/hints/solaris.xtra.4023118			delete
dist/ntp/html/build/hints/solaris.xtra.4095849			delete
dist/ntp/html/build/hints/solaris.xtra.S99ntpd			delete
dist/ntp/html/build/hints/solaris.xtra.patchfreq		delete
dist/ntp/html/build/hints/sun4					delete
dist/ntp/html/build/hints/svr4-dell				delete
dist/ntp/html/build/hints/svr4_package				delete
dist/ntp/html/build/hints/todo					delete
dist/ntp/html/build/hints/vxworks.html				delete
dist/ntp/html/build/hints/winnt.html				delete
dist/ntp/html/build/scripts/footer.txt				delete
dist/ntp/html/build/scripts/links10.txt				delete
dist/ntp/html/build/scripts/links11.txt				delete
dist/ntp/html/build/scripts/links12.txt				delete
dist/ntp/html/build/scripts/links7.txt				delete
dist/ntp/html/build/scripts/links8.txt				delete
dist/ntp/html/build/scripts/links9.txt				delete
dist/ntp/html/build/scripts/style.css				delete
dist/ntp/html/drivers/driver1.html				delete
dist/ntp/html/drivers/driver10.html				delete
dist/ntp/html/drivers/driver11.html				delete
dist/ntp/html/drivers/driver12.html				delete
dist/ntp/html/drivers/driver16.html				delete
dist/ntp/html/drivers/driver18.html				delete
dist/ntp/html/drivers/driver19.html				delete
dist/ntp/html/drivers/driver2.html				delete
dist/ntp/html/drivers/driver20.html				delete
dist/ntp/html/drivers/driver22.html				delete
dist/ntp/html/drivers/driver26.html				delete
dist/ntp/html/drivers/driver27.html				delete
dist/ntp/html/drivers/driver28.html				delete
dist/ntp/html/drivers/driver29.html				delete
dist/ntp/html/drivers/driver3.html				delete
dist/ntp/html/drivers/driver30.html				delete
dist/ntp/html/drivers/driver31.html				delete
dist/ntp/html/drivers/driver32.html				delete
dist/ntp/html/drivers/driver33.html				delete
dist/ntp/html/drivers/driver34.html				delete
dist/ntp/html/drivers/driver35.html				delete
dist/ntp/html/drivers/driver36.html				delete
dist/ntp/html/drivers/driver37.html				delete
dist/ntp/html/drivers/driver38.html				delete
dist/ntp/html/drivers/driver39.html				delete
dist/ntp/html/drivers/driver4.html				delete
dist/ntp/html/drivers/driver40.html				delete
dist/ntp/html/drivers/driver42.html				delete
dist/ntp/html/drivers/driver43.html				delete
dist/ntp/html/drivers/driver44.html				delete
dist/ntp/html/drivers/driver5.html				delete
dist/ntp/html/drivers/driver6.html				delete
dist/ntp/html/drivers/driver7.html				delete
dist/ntp/html/drivers/driver8.html				delete
dist/ntp/html/drivers/driver9.html				delete
dist/ntp/html/drivers/oncore-shmem.html				delete
dist/ntp/html/drivers/tf582_4.html				delete
dist/ntp/html/drivers/icons/home.gif				delete
dist/ntp/html/drivers/icons/mail2.gif				delete
dist/ntp/html/drivers/scripts/footer.txt			delete
dist/ntp/html/drivers/scripts/style.css				delete
dist/ntp/html/icons/home.gif					delete
dist/ntp/html/icons/mail2.gif					delete
dist/ntp/html/scripts/footer.txt				delete
dist/ntp/html/scripts/links10.txt				delete
dist/ntp/html/scripts/links11.txt				delete
dist/ntp/html/scripts/links12.txt				delete
dist/ntp/html/scripts/links7.txt				delete
dist/ntp/html/scripts/links8.txt				delete
dist/ntp/html/scripts/links9.txt				delete
dist/ntp/html/scripts/style.css					delete
dist/ntp/include/Makefile.am					delete
dist/ntp/include/Makefile.in					delete
dist/ntp/include/README						delete
dist/ntp/include/adjtime.h					delete
dist/ntp/include/ascii.h					delete
dist/ntp/include/audio.h					delete
dist/ntp/include/autogen-version.def				delete
dist/ntp/include/binio.h					delete
dist/ntp/include/copyright.def					delete
dist/ntp/include/debug-opt.def					delete
dist/ntp/include/global.h					delete
dist/ntp/include/gps.h						delete
dist/ntp/include/homerc.def					delete
dist/ntp/include/hopf6039.h					delete
dist/ntp/include/icom.h						delete
dist/ntp/include/ieee754io.h					delete
dist/ntp/include/iosignal.h					delete
dist/ntp/include/l_stdlib.h					delete
dist/ntp/include/mbg_gps166.h					delete
dist/ntp/include/mx4200.h					delete
dist/ntp/include/ntif.h						delete
dist/ntp/include/ntp.h						delete
dist/ntp/include/ntp_calendar.h					delete
dist/ntp/include/ntp_cmdargs.h					delete
dist/ntp/include/ntp_config.h					delete
dist/ntp/include/ntp_control.h					delete
dist/ntp/include/ntp_crypto.h					delete
dist/ntp/include/ntp_datum.h					delete
dist/ntp/include/ntp_debug.h					delete
dist/ntp/include/ntp_filegen.h					delete
dist/ntp/include/ntp_fp.h					delete
dist/ntp/include/ntp_if.h					delete
dist/ntp/include/ntp_io.h					delete
dist/ntp/include/ntp_machine.h					delete
dist/ntp/include/ntp_malloc.h					delete
dist/ntp/include/ntp_md5.h					delete
dist/ntp/include/ntp_proto.h					delete
dist/ntp/include/ntp_random.h					delete
dist/ntp/include/ntp_refclock.h					delete
dist/ntp/include/ntp_request.h					delete
dist/ntp/include/ntp_rfc2553.h					delete
dist/ntp/include/ntp_select.h					delete
dist/ntp/include/ntp_sprintf.h					delete
dist/ntp/include/ntp_stdlib.h					delete
dist/ntp/include/ntp_string.h					delete
dist/ntp/include/ntp_syscall.h					delete
dist/ntp/include/ntp_syslog.h					delete
dist/ntp/include/ntp_tty.h					delete
dist/ntp/include/ntp_types.h					delete
dist/ntp/include/ntp_unixtime.h					delete
dist/ntp/include/ntpd.h						delete
dist/ntp/include/ntpsim.h					delete
dist/ntp/include/parse.h					delete
dist/ntp/include/parse_conf.h					delete
dist/ntp/include/recvbuff.h					delete
dist/ntp/include/rsa_md5.h					delete
dist/ntp/include/timepps-SCO.h					delete
dist/ntp/include/timepps-Solaris.h				delete
dist/ntp/include/timepps-SunOS.h				delete
dist/ntp/include/trimble.h					delete
dist/ntp/include/version.def					delete
dist/ntp/include/isc/Makefile.am				delete
dist/ntp/include/isc/Makefile.in				delete
dist/ntp/include/isc/app.h					delete
dist/ntp/include/isc/assertions.h				delete
dist/ntp/include/isc/boolean.h					delete
dist/ntp/include/isc/buffer.h					delete
dist/ntp/include/isc/error.h					delete
dist/ntp/include/isc/formatcheck.h				delete
dist/ntp/include/isc/int.h					delete
dist/ntp/include/isc/interfaceiter.h				delete
dist/ntp/include/isc/ipv6.h					delete
dist/ntp/include/isc/lang.h					delete
dist/ntp/include/isc/lib.h					delete
dist/ntp/include/isc/list.h					delete
dist/ntp/include/isc/magic.h					delete
dist/ntp/include/isc/mem.h					delete
dist/ntp/include/isc/msgcat.h					delete
dist/ntp/include/isc/msgs.h					delete
dist/ntp/include/isc/mutex.h					delete
dist/ntp/include/isc/net.h					delete
dist/ntp/include/isc/netaddr.h					delete
dist/ntp/include/isc/netscope.h					delete
dist/ntp/include/isc/offset.h					delete
dist/ntp/include/isc/once.h					delete
dist/ntp/include/isc/platform.h					delete
dist/ntp/include/isc/print.h					delete
dist/ntp/include/isc/region.h					delete
dist/ntp/include/isc/result.h					delete
dist/ntp/include/isc/sockaddr.h					delete
dist/ntp/include/isc/strerror.h					delete
dist/ntp/include/isc/string.h					delete
dist/ntp/include/isc/types.h					delete
dist/ntp/include/isc/util.h					delete
dist/ntp/kernel/Makefile.am					delete
dist/ntp/kernel/Makefile.in					delete
dist/ntp/kernel/README						delete
dist/ntp/kernel/chuinit.c					delete
dist/ntp/kernel/clkinit.c					delete
dist/ntp/kernel/tty_chu.c					delete
dist/ntp/kernel/tty_chu_STREAMS.c				delete
dist/ntp/kernel/tty_clk.c					delete
dist/ntp/kernel/tty_clk_STREAMS.c				delete
dist/ntp/kernel/sys/Makefile.am					delete
dist/ntp/kernel/sys/Makefile.in					delete
dist/ntp/kernel/sys/README					delete
dist/ntp/kernel/sys/bsd_audioirig.h				delete
dist/ntp/kernel/sys/chudefs.h					delete
dist/ntp/kernel/sys/clkdefs.h					delete
dist/ntp/kernel/sys/i8253.h					delete
dist/ntp/kernel/sys/parsestreams.h				delete
dist/ntp/kernel/sys/pcl720.h					delete
dist/ntp/kernel/sys/ppsclock.h					delete
dist/ntp/kernel/sys/timex.h					delete
dist/ntp/kernel/sys/tpro.h					delete
dist/ntp/kernel/sys/tt560_api.h					delete
dist/ntp/libisc/assertions.c					delete
dist/ntp/libisc/error.c						delete
dist/ntp/libisc/ifiter_getifaddrs.c				delete
dist/ntp/libisc/ifiter_ioctl.c					delete
dist/ntp/libisc/ifiter_sysctl.c					delete
dist/ntp/libisc/inet_aton.c					delete
dist/ntp/libisc/inet_ntop.c					delete
dist/ntp/libisc/inet_pton.c					delete
dist/ntp/libisc/interfaceiter.c					delete
dist/ntp/libisc/isc_strerror.c					delete
dist/ntp/libisc/lib.c						delete
dist/ntp/libisc/mem.c						delete
dist/ntp/libisc/msgcat.c					delete
dist/ntp/libisc/net.c						delete
dist/ntp/libisc/netaddr.c					delete
dist/ntp/libisc/netscope.c					delete
dist/ntp/libisc/sockaddr.c					delete
dist/ntp/libisc/strerror.c					delete
dist/ntp/libntp/Makefile.am					delete
dist/ntp/libntp/Makefile.in					delete
dist/ntp/libntp/README						delete
dist/ntp/libntp/a_md5encrypt.c					delete
dist/ntp/libntp/adjtime.c					delete
dist/ntp/libntp/adjtimex.c					delete
dist/ntp/libntp/atoint.c					delete
dist/ntp/libntp/atolfp.c					delete
dist/ntp/libntp/atouint.c					delete
dist/ntp/libntp/audio.c						delete
dist/ntp/libntp/authkeys.c					delete
dist/ntp/libntp/authreadkeys.c					delete
dist/ntp/libntp/authusekey.c					delete
dist/ntp/libntp/buftvtots.c					delete
dist/ntp/libntp/caljulian.c					delete
dist/ntp/libntp/caltontp.c					delete
dist/ntp/libntp/calyearstart.c					delete
dist/ntp/libntp/clocktime.c					delete
dist/ntp/libntp/clocktypes.c					delete
dist/ntp/libntp/decodenetnum.c					delete
dist/ntp/libntp/dofptoa.c					delete
dist/ntp/libntp/dolfptoa.c					delete
dist/ntp/libntp/emalloc.c					delete
dist/ntp/libntp/findconfig.c					delete
dist/ntp/libntp/fptoa.c						delete
dist/ntp/libntp/fptoms.c					delete
dist/ntp/libntp/getopt.c					delete
dist/ntp/libntp/hextoint.c					delete
dist/ntp/libntp/hextolfp.c					delete
dist/ntp/libntp/humandate.c					delete
dist/ntp/libntp/icom.c						delete
dist/ntp/libntp/inttoa.c					delete
dist/ntp/libntp/iosignal.c					delete
dist/ntp/libntp/lib_strbuf.c					delete
dist/ntp/libntp/lib_strbuf.h					delete
dist/ntp/libntp/machines.c					delete
dist/ntp/libntp/md5c.c						delete
dist/ntp/libntp/memmove.c					delete
dist/ntp/libntp/mfptoa.c					delete
dist/ntp/libntp/mfptoms.c					delete
dist/ntp/libntp/mktime.c					delete
dist/ntp/libntp/modetoa.c					delete
dist/ntp/libntp/mstolfp.c					delete
dist/ntp/libntp/msutotsf.c					delete
dist/ntp/libntp/msyslog.c					delete
dist/ntp/libntp/netof.c						delete
dist/ntp/libntp/ntp_random.c					delete
dist/ntp/libntp/ntp_rfc2553.c					delete
dist/ntp/libntp/numtoa.c					delete
dist/ntp/libntp/numtohost.c					delete
dist/ntp/libntp/octtoint.c					delete
dist/ntp/libntp/prettydate.c					delete
dist/ntp/libntp/recvbuff.c					delete
dist/ntp/libntp/refnumtoa.c					delete
dist/ntp/libntp/snprintf.c					delete
dist/ntp/libntp/socktoa.c					delete
dist/ntp/libntp/socktohost.c					delete
dist/ntp/libntp/statestr.c					delete
dist/ntp/libntp/strdup.c					delete
dist/ntp/libntp/strerror.c					delete
dist/ntp/libntp/strstr.c					delete
dist/ntp/libntp/syssignal.c					delete
dist/ntp/libntp/systime.c					delete
dist/ntp/libntp/systime_s.c					delete
dist/ntp/libntp/tsftomsu.c					delete
dist/ntp/libntp/tstotv.c					delete
dist/ntp/libntp/tvtoa.c						delete
dist/ntp/libntp/tvtots.c					delete
dist/ntp/libntp/uglydate.c					delete
dist/ntp/libntp/uinttoa.c					delete
dist/ntp/libntp/utvtoa.c					delete
dist/ntp/libntp/ymd2yd.c					delete
dist/ntp/libopts/COPYING.lgpl					delete
dist/ntp/libopts/COPYING.mbsd					delete
dist/ntp/libopts/MakeDefs.inc					delete
dist/ntp/libopts/Makefile.am					delete
dist/ntp/libopts/Makefile.in					delete
dist/ntp/libopts/README						delete
dist/ntp/libopts/autoopts.c					delete
dist/ntp/libopts/autoopts.h					delete
dist/ntp/libopts/boolean.c					delete
dist/ntp/libopts/configfile.c					delete
dist/ntp/libopts/cook.c						delete
dist/ntp/libopts/enumeration.c					delete
dist/ntp/libopts/environment.c					delete
dist/ntp/libopts/genshell.c					delete
dist/ntp/libopts/genshell.h					delete
dist/ntp/libopts/libopts.c					delete
dist/ntp/libopts/load.c						delete
dist/ntp/libopts/makeshell.c					delete
dist/ntp/libopts/nested.c					delete
dist/ntp/libopts/numeric.c					delete
dist/ntp/libopts/pgusage.c					delete
dist/ntp/libopts/proto.h					delete
dist/ntp/libopts/putshell.c					delete
dist/ntp/libopts/restore.c					delete
dist/ntp/libopts/save.c						delete
dist/ntp/libopts/sort.c						delete
dist/ntp/libopts/stack.c					delete
dist/ntp/libopts/streqvcmp.c					delete
dist/ntp/libopts/text_mmap.c					delete
dist/ntp/libopts/tokenize.c					delete
dist/ntp/libopts/usage.c					delete
dist/ntp/libopts/version.c					delete
dist/ntp/libopts/autoopts/options.h				delete
dist/ntp/libopts/autoopts/usage-txt.h				delete
dist/ntp/libopts/compat/compat.h				delete
dist/ntp/libopts/compat/pathfind.c				delete
dist/ntp/libopts/compat/snprintf.c				delete
dist/ntp/libopts/compat/strchr.c				delete
dist/ntp/libopts/compat/strdup.c				delete
dist/ntp/libopts/compat/windows-config.h			delete
dist/ntp/libopts/m4/libopts.m4					delete
dist/ntp/libopts/m4/liboptschk.m4				delete
dist/ntp/libparse/Makefile.am					delete
dist/ntp/libparse/Makefile.in					delete
dist/ntp/libparse/README					delete
dist/ntp/libparse/binio.c					delete
dist/ntp/libparse/clk_computime.c				delete
dist/ntp/libparse/clk_dcf7000.c					delete
dist/ntp/libparse/clk_hopf6021.c				delete
dist/ntp/libparse/clk_meinberg.c				delete
dist/ntp/libparse/clk_rawdcf.c					delete
dist/ntp/libparse/clk_rcc8000.c					delete
dist/ntp/libparse/clk_schmid.c					delete
dist/ntp/libparse/clk_trimtaip.c				delete
dist/ntp/libparse/clk_trimtsip.c				delete
dist/ntp/libparse/clk_varitext.c				delete
dist/ntp/libparse/clk_wharton.c					delete
dist/ntp/libparse/data_mbg.c					delete
dist/ntp/libparse/gpstolfp.c					delete
dist/ntp/libparse/ieee754io.c					delete
dist/ntp/libparse/info_trimble.c				delete
dist/ntp/libparse/mfp_mul.c					delete
dist/ntp/libparse/mkinfo_rcmd.sed				delete
dist/ntp/libparse/mkinfo_scmd.sed				delete
dist/ntp/libparse/parse.c					delete
dist/ntp/libparse/parse_conf.c					delete
dist/ntp/libparse/parsesolaris.c				delete
dist/ntp/libparse/parsestreams.c				delete
dist/ntp/libparse/trim_info.c					delete
dist/ntp/m4/define_dir.m4					delete
dist/ntp/m4/hs_ulong_const.m4					delete
dist/ntp/m4/os_cflags.m4					delete
dist/ntp/ntpd/Makefile.am					delete
dist/ntp/ntpd/Makefile.in					delete
dist/ntp/ntpd/check_y2k.c					delete
dist/ntp/ntpd/cmd_args.c					delete
dist/ntp/ntpd/jupiter.h						delete
dist/ntp/ntpd/ntp_config.c					delete
dist/ntp/ntpd/ntp_control.c					delete
dist/ntp/ntpd/ntp_crypto.c					delete
dist/ntp/ntpd/ntp_filegen.c					delete
dist/ntp/ntpd/ntp_intres.c					delete
dist/ntp/ntpd/ntp_io.c						delete
dist/ntp/ntpd/ntp_loopfilter.c					delete
dist/ntp/ntpd/ntp_monitor.c					delete
dist/ntp/ntpd/ntp_peer.c					delete
dist/ntp/ntpd/ntp_proto.c					delete
dist/ntp/ntpd/ntp_refclock.c					delete
dist/ntp/ntpd/ntp_request.c					delete
dist/ntp/ntpd/ntp_restrict.c					delete
dist/ntp/ntpd/ntp_timer.c					delete
dist/ntp/ntpd/ntp_util.c					delete
dist/ntp/ntpd/ntpd-opts.c					delete
dist/ntp/ntpd/ntpd-opts.def					delete
dist/ntp/ntpd/ntpd-opts.h					delete
dist/ntp/ntpd/ntpd-opts.menu					delete
dist/ntp/ntpd/ntpd-opts.texi					delete
dist/ntp/ntpd/ntpd.1						delete
dist/ntp/ntpd/ntpd.c						delete
dist/ntp/ntpd/ntpdbase-opts.def					delete
dist/ntp/ntpd/ntpdsim-opts.c					delete
dist/ntp/ntpd/ntpdsim-opts.def					delete
dist/ntp/ntpd/ntpdsim-opts.h					delete
dist/ntp/ntpd/ntpdsim-opts.menu					delete
dist/ntp/ntpd/ntpdsim-opts.texi					delete
dist/ntp/ntpd/ntpdsim.1						delete
dist/ntp/ntpd/ntpsim.c						delete
dist/ntp/ntpd/ppsapi_timepps.h					delete
dist/ntp/ntpd/refclock_acts.c					delete
dist/ntp/ntpd/refclock_arbiter.c				delete
dist/ntp/ntpd/refclock_arc.c					delete
dist/ntp/ntpd/refclock_as2201.c					delete
dist/ntp/ntpd/refclock_atom.c					delete
dist/ntp/ntpd/refclock_bancomm.c				delete
dist/ntp/ntpd/refclock_chronolog.c				delete
dist/ntp/ntpd/refclock_chu.c					delete
dist/ntp/ntpd/refclock_conf.c					delete
dist/ntp/ntpd/refclock_datum.c					delete
dist/ntp/ntpd/refclock_dumbclock.c				delete
dist/ntp/ntpd/refclock_fg.c					delete
dist/ntp/ntpd/refclock_gpsvme.c					delete
dist/ntp/ntpd/refclock_heath.c					delete
dist/ntp/ntpd/refclock_hopfpci.c				delete
dist/ntp/ntpd/refclock_hopfser.c				delete
dist/ntp/ntpd/refclock_hpgps.c					delete
dist/ntp/ntpd/refclock_irig.c					delete
dist/ntp/ntpd/refclock_jjy.c					delete
dist/ntp/ntpd/refclock_jupiter.c				delete
dist/ntp/ntpd/refclock_leitch.c					delete
dist/ntp/ntpd/refclock_local.c					delete
dist/ntp/ntpd/refclock_msfees.c					delete
dist/ntp/ntpd/refclock_mx4200.c					delete
dist/ntp/ntpd/refclock_neoclock4x.c				delete
dist/ntp/ntpd/refclock_nmea.c					delete
dist/ntp/ntpd/refclock_oncore.c					delete
dist/ntp/ntpd/refclock_palisade.c				delete
dist/ntp/ntpd/refclock_palisade.h				delete
dist/ntp/ntpd/refclock_parse.c					delete
dist/ntp/ntpd/refclock_pcf.c					delete
dist/ntp/ntpd/refclock_pst.c					delete
dist/ntp/ntpd/refclock_ripencc.c				delete
dist/ntp/ntpd/refclock_shm.c					delete
dist/ntp/ntpd/refclock_tpro.c					delete
dist/ntp/ntpd/refclock_trak.c					delete
dist/ntp/ntpd/refclock_true.c					delete
dist/ntp/ntpd/refclock_tt560.c					delete
dist/ntp/ntpd/refclock_ulink.c					delete
dist/ntp/ntpd/refclock_wwv.c					delete
dist/ntp/ntpd/refclock_wwvb.c					delete
dist/ntp/ntpd/refclock_zyfer.c					delete
dist/ntp/ntpdate/Makefile.am					delete
dist/ntp/ntpdate/Makefile.in					delete
dist/ntp/ntpdate/README						delete
dist/ntp/ntpdate/ntpdate.c					delete
dist/ntp/ntpdate/ntpdate.h					delete
dist/ntp/ntpdate/ntptime_config.c				delete
dist/ntp/ntpdate/ntptimeset.c					delete
dist/ntp/ntpdc/Makefile.am					delete
dist/ntp/ntpdc/Makefile.in					delete
dist/ntp/ntpdc/README						delete
dist/ntp/ntpdc/layout.std					delete
dist/ntp/ntpdc/nl.pl						delete
dist/ntp/ntpdc/nl.pl.in						delete
dist/ntp/ntpdc/nl_in.c						delete
dist/ntp/ntpdc/ntpdc-layout.c					delete
dist/ntp/ntpdc/ntpdc-opts.c					delete
dist/ntp/ntpdc/ntpdc-opts.def					delete
dist/ntp/ntpdc/ntpdc-opts.h					delete
dist/ntp/ntpdc/ntpdc-opts.menu					delete
dist/ntp/ntpdc/ntpdc-opts.texi					delete
dist/ntp/ntpdc/ntpdc.1						delete
dist/ntp/ntpdc/ntpdc.c						delete
dist/ntp/ntpdc/ntpdc.h						delete
dist/ntp/ntpdc/ntpdc_ops.c					delete
dist/ntp/ntpq/Makefile.am					delete
dist/ntp/ntpq/Makefile.in					delete
dist/ntp/ntpq/README						delete
dist/ntp/ntpq/ntpq-opts.c					delete
dist/ntp/ntpq/ntpq-opts.def					delete
dist/ntp/ntpq/ntpq-opts.h					delete
dist/ntp/ntpq/ntpq-opts.menu					delete
dist/ntp/ntpq/ntpq-opts.texi					delete
dist/ntp/ntpq/ntpq-subs.c					delete
dist/ntp/ntpq/ntpq.1						delete
dist/ntp/ntpq/ntpq.c						delete
dist/ntp/ntpq/ntpq.h						delete
dist/ntp/parseutil/Makefile.am					delete
dist/ntp/parseutil/Makefile.in					delete
dist/ntp/parseutil/README					delete
dist/ntp/parseutil/dcfd.c					delete
dist/ntp/parseutil/testdcf.c					delete
dist/ntp/scripts/Makefile.am					delete
dist/ntp/scripts/Makefile.in					delete
dist/ntp/scripts/README						delete
dist/ntp/scripts/VersionName					delete
dist/ntp/scripts/calc_tickadj.in				delete
dist/ntp/scripts/checktime.in					delete
dist/ntp/scripts/fixautomakedepsmagic				delete
dist/ntp/scripts/freq_adj.in					delete
dist/ntp/scripts/genCommitLog					delete
dist/ntp/scripts/genver						delete
dist/ntp/scripts/hpadjtime.sh					delete
dist/ntp/scripts/html2man.in					delete
dist/ntp/scripts/mkver.in					delete
dist/ntp/scripts/ntp-close					delete
dist/ntp/scripts/ntp-groper					delete
dist/ntp/scripts/ntp-restart					delete
dist/ntp/scripts/ntp-status					delete
dist/ntp/scripts/ntp-wait.in					delete
dist/ntp/scripts/ntpsweep.in					delete
dist/ntp/scripts/ntptrace.in					delete
dist/ntp/scripts/ntpver.in					delete
dist/ntp/scripts/plot_summary.in				delete
dist/ntp/scripts/summary.in					delete
dist/ntp/scripts/monitoring/README				delete
dist/ntp/scripts/monitoring/loopwatch.config.SAMPLE		delete
dist/ntp/scripts/monitoring/lr.pl				delete
dist/ntp/scripts/monitoring/ntp.pl				delete
dist/ntp/scripts/monitoring/ntploopstat				delete
dist/ntp/scripts/monitoring/ntploopwatch			delete
dist/ntp/scripts/monitoring/ntptrap				delete
dist/ntp/scripts/monitoring/timelocal.pl			delete
dist/ntp/scripts/rc1/postinstall				delete
dist/ntp/scripts/rc1/preinstall					delete
dist/ntp/scripts/rc1/preremove					delete
dist/ntp/scripts/rc1/prototype					delete
dist/ntp/scripts/rc1/xntp					delete
dist/ntp/scripts/rc2/local.ntpd					delete
dist/ntp/scripts/stats/README					delete
dist/ntp/scripts/stats/README.stats				delete
dist/ntp/scripts/stats/README.timecodes				delete
dist/ntp/scripts/stats/clock.awk				delete
dist/ntp/scripts/stats/dupe.awk					delete
dist/ntp/scripts/stats/ensemble.S				delete
dist/ntp/scripts/stats/ensemble.awk				delete
dist/ntp/scripts/stats/etf.S					delete
dist/ntp/scripts/stats/etf.awk					delete
dist/ntp/scripts/stats/itf.S					delete
dist/ntp/scripts/stats/itf.awk					delete
dist/ntp/scripts/stats/loop.S					delete
dist/ntp/scripts/stats/loop.awk					delete
dist/ntp/scripts/stats/loop_summary				delete
dist/ntp/scripts/stats/peer.awk					delete
dist/ntp/scripts/stats/psummary.awk				delete
dist/ntp/scripts/stats/summary.sh				delete
dist/ntp/scripts/stats/tdata.S					delete
dist/ntp/scripts/stats/tdata.awk				delete
dist/ntp/sntp/COPYRIGHT						delete
dist/ntp/sntp/Makefile.am					delete
dist/ntp/sntp/Makefile.in					delete
dist/ntp/sntp/README						delete
dist/ntp/sntp/aclocal.m4					delete
dist/ntp/sntp/autogen-version.def				delete
dist/ntp/sntp/bincheck.mf					delete
dist/ntp/sntp/compile						delete
dist/ntp/sntp/config.guess					delete
dist/ntp/sntp/config.h.in					delete
dist/ntp/sntp/config.sub					delete
dist/ntp/sntp/configure						delete
dist/ntp/sntp/configure.ac					delete
dist/ntp/sntp/depcomp						delete
dist/ntp/sntp/header.h						delete
dist/ntp/sntp/install-sh					delete
dist/ntp/sntp/internet.c					delete
dist/ntp/sntp/internet.h					delete
dist/ntp/sntp/kludges.h						delete
dist/ntp/sntp/ltmain.sh						delete
dist/ntp/sntp/main.c						delete
dist/ntp/sntp/missing						delete
dist/ntp/sntp/sntp-opts.c					delete
dist/ntp/sntp/sntp-opts.def					delete
dist/ntp/sntp/sntp-opts.h					delete
dist/ntp/sntp/sntp-opts.menu					delete
dist/ntp/sntp/sntp-opts.texi					delete
dist/ntp/sntp/sntp.1						delete
dist/ntp/sntp/socket.c						delete
dist/ntp/sntp/timing.c						delete
dist/ntp/sntp/unix.c						delete
dist/ntp/sntp/version.def					delete
dist/ntp/sntp/libopts/COPYING.lgpl				delete
dist/ntp/sntp/libopts/COPYING.mbsd				delete
dist/ntp/sntp/libopts/MakeDefs.inc				delete
dist/ntp/sntp/libopts/Makefile.am				delete
dist/ntp/sntp/libopts/Makefile.in				delete
dist/ntp/sntp/libopts/README					delete
dist/ntp/sntp/libopts/autoopts.c				delete
dist/ntp/sntp/libopts/autoopts.h				delete
dist/ntp/sntp/libopts/boolean.c					delete
dist/ntp/sntp/libopts/configfile.c				delete
dist/ntp/sntp/libopts/cook.c					delete
dist/ntp/sntp/libopts/enumeration.c				delete
dist/ntp/sntp/libopts/environment.c				delete
dist/ntp/sntp/libopts/genshell.c				delete
dist/ntp/sntp/libopts/genshell.h				delete
dist/ntp/sntp/libopts/libopts.c					delete
dist/ntp/sntp/libopts/load.c					delete
dist/ntp/sntp/libopts/makeshell.c				delete
dist/ntp/sntp/libopts/nested.c					delete
dist/ntp/sntp/libopts/numeric.c					delete
dist/ntp/sntp/libopts/pgusage.c					delete
dist/ntp/sntp/libopts/proto.h					delete
dist/ntp/sntp/libopts/putshell.c				delete
dist/ntp/sntp/libopts/restore.c					delete
dist/ntp/sntp/libopts/save.c					delete
dist/ntp/sntp/libopts/sort.c					delete
dist/ntp/sntp/libopts/stack.c					delete
dist/ntp/sntp/libopts/streqvcmp.c				delete
dist/ntp/sntp/libopts/text_mmap.c				delete
dist/ntp/sntp/libopts/tokenize.c				delete
dist/ntp/sntp/libopts/usage.c					delete
dist/ntp/sntp/libopts/version.c					delete
dist/ntp/sntp/libopts/autoopts/options.h			delete
dist/ntp/sntp/libopts/autoopts/usage-txt.h			delete
dist/ntp/sntp/libopts/compat/compat.h				delete
dist/ntp/sntp/libopts/compat/pathfind.c				delete
dist/ntp/sntp/libopts/compat/snprintf.c				delete
dist/ntp/sntp/libopts/compat/strchr.c				delete
dist/ntp/sntp/libopts/compat/strdup.c				delete
dist/ntp/sntp/libopts/compat/windows-config.h			delete
dist/ntp/sntp/libopts/m4/libopts.m4				delete
dist/ntp/sntp/libopts/m4/liboptschk.m4				delete
dist/ntp/util/Makefile.am					delete
dist/ntp/util/Makefile.in					delete
dist/ntp/util/README						delete
dist/ntp/util/ansi2knr.1					delete
dist/ntp/util/ansi2knr.c					delete
dist/ntp/util/audio-pcm.c					delete
dist/ntp/util/byteorder.c					delete
dist/ntp/util/hist.c						delete
dist/ntp/util/jitter.c						delete
dist/ntp/util/jitter.h						delete
dist/ntp/util/kern.c						delete
dist/ntp/util/longsize.c					delete
dist/ntp/util/ntp-keygen-opts.c					delete
dist/ntp/util/ntp-keygen-opts.def				delete
dist/ntp/util/ntp-keygen-opts.h					delete
dist/ntp/util/ntp-keygen-opts.menu				delete
dist/ntp/util/ntp-keygen-opts.texi				delete
dist/ntp/util/ntp-keygen.1					delete
dist/ntp/util/ntp-keygen.c					delete
dist/ntp/util/ntptime.c						delete
dist/ntp/util/pps-api.c						delete
dist/ntp/util/precision.c					delete
dist/ntp/util/sht.c						delete
dist/ntp/util/testrs6000.c					delete
dist/ntp/util/tg.c						delete
dist/ntp/util/tickadj.c						delete
dist/ntp/util/timetrim.c					delete
distrib/sets/lists/man/mi					patch
distrib/sets/lists/misc/mi					patch
external/bsd/Makefile						patch
external/bsd/ntp/Makefile					new
external/bsd/ntp/Makefile.inc					new
external/bsd/ntp/importdate					new
external/bsd/ntp/ntp2netbsd					new
external/bsd/ntp/bin/Makefile					new
external/bsd/ntp/bin/Makefile.inc				new
external/bsd/ntp/bin/ntp-keygen/Makefile			new
external/bsd/ntp/bin/ntp-keygen/ntp-keygen.8			new
external/bsd/ntp/bin/ntpd/Makefile				new
external/bsd/ntp/bin/ntpd/ntp.conf.5				new
external/bsd/ntp/bin/ntpd/ntp.keys.5				new
external/bsd/ntp/bin/ntpd/ntpd.8				new
external/bsd/ntp/bin/ntpdate/Makefile				new
external/bsd/ntp/bin/ntpdate/ntpdate.8				new
external/bsd/ntp/bin/ntpdc/Makefile				new
external/bsd/ntp/bin/ntpdc/ntpdc.8				new
external/bsd/ntp/bin/ntpq/Makefile				new
external/bsd/ntp/bin/ntpq/ntpq.8				new
external/bsd/ntp/bin/ntptime/Makefile				new
external/bsd/ntp/bin/ntptime/ntptime.8				new
external/bsd/ntp/bin/ntptrace/Makefile				new
external/bsd/ntp/bin/ntptrace/ntptrace.8			new
external/bsd/ntp/bin/ntptrace/ntptrace.awk			new
external/bsd/ntp/bin/sntp/Makefile				new
external/bsd/ntp/bin/sntp/sntp.1				new
external/bsd/ntp/dist/COPYRIGHT					new
external/bsd/ntp/dist/ChangeLog					new
external/bsd/ntp/dist/CommitLog					new
external/bsd/ntp/dist/CommitLog-4.1.0				new
external/bsd/ntp/dist/INSTALL					new
external/bsd/ntp/dist/Makefile.am				new
external/bsd/ntp/dist/Makefile.in				new
external/bsd/ntp/dist/NEWS					new
external/bsd/ntp/dist/NOTES.y2kfixes				new
external/bsd/ntp/dist/README					new
external/bsd/ntp/dist/README.bk					new
external/bsd/ntp/dist/README.hackers				new
external/bsd/ntp/dist/README.patches				new
external/bsd/ntp/dist/README.refclocks				new
external/bsd/ntp/dist/README.versions				new
external/bsd/ntp/dist/TODO					new
external/bsd/ntp/dist/WHERE-TO-START				new
external/bsd/ntp/dist/aclocal.m4				new
external/bsd/ntp/dist/bincheck.mf				new
external/bsd/ntp/dist/bootstrap					new
external/bsd/ntp/dist/build					new
external/bsd/ntp/dist/check-libopts.mf				new
external/bsd/ntp/dist/config.h.in				new
external/bsd/ntp/dist/configure					new
external/bsd/ntp/dist/configure.ac				new
external/bsd/ntp/dist/deps-ver					new
external/bsd/ntp/dist/depsver.mf				new
external/bsd/ntp/dist/dot.emacs					new
external/bsd/ntp/dist/flock-build				new
external/bsd/ntp/dist/includes.mf				new
external/bsd/ntp/dist/install-sh				new
external/bsd/ntp/dist/packageinfo.sh				new
external/bsd/ntp/dist/readme.y2kfixes				new
external/bsd/ntp/dist/results.y2kfixes				new
external/bsd/ntp/dist/adjtimed/Makefile.am			new
external/bsd/ntp/dist/adjtimed/Makefile.in			new
external/bsd/ntp/dist/adjtimed/README				new
external/bsd/ntp/dist/adjtimed/adjtimed.c			new
external/bsd/ntp/dist/clockstuff/Makefile.am			new
external/bsd/ntp/dist/clockstuff/Makefile.in			new
external/bsd/ntp/dist/clockstuff/README				new
external/bsd/ntp/dist/clockstuff/chutest.c			new
external/bsd/ntp/dist/clockstuff/propdelay.c			new
external/bsd/ntp/dist/conf/README				new
external/bsd/ntp/dist/conf/baldwin.conf				new
external/bsd/ntp/dist/conf/beauregard.conf			new
external/bsd/ntp/dist/conf/grundoon.conf			new
external/bsd/ntp/dist/conf/malarky.conf				new
external/bsd/ntp/dist/conf/pogo.conf				new
external/bsd/ntp/dist/conf/rackety.conf				new
external/bsd/ntp/dist/html/access.html				new
external/bsd/ntp/dist/html/accopt.html				new
external/bsd/ntp/dist/html/assoc.html				new
external/bsd/ntp/dist/html/audio.html				new
external/bsd/ntp/dist/html/authentic.html			new
external/bsd/ntp/dist/html/authopt.html				new
external/bsd/ntp/dist/html/autokey.html				new
external/bsd/ntp/dist/html/bugs.html				new
external/bsd/ntp/dist/html/build.html				new
external/bsd/ntp/dist/html/clock.html				new
external/bsd/ntp/dist/html/clockopt.html			new
external/bsd/ntp/dist/html/cluster.html				new
external/bsd/ntp/dist/html/comdex.html				new
external/bsd/ntp/dist/html/config.html				new
external/bsd/ntp/dist/html/confopt.html				new
external/bsd/ntp/dist/html/copyright.html			new
external/bsd/ntp/dist/html/debug.html				new
external/bsd/ntp/dist/html/decode.html				new
external/bsd/ntp/dist/html/discipline.html			new
external/bsd/ntp/dist/html/discover.html			new
external/bsd/ntp/dist/html/extern.html				new
external/bsd/ntp/dist/html/filter.html				new
external/bsd/ntp/dist/html/hints.html				new
external/bsd/ntp/dist/html/history.html				new
external/bsd/ntp/dist/html/howto.html				new
external/bsd/ntp/dist/html/huffpuff.html			new
external/bsd/ntp/dist/html/index.html				new
external/bsd/ntp/dist/html/kern.html				new
external/bsd/ntp/dist/html/kernpps.html				new
external/bsd/ntp/dist/html/keygen.html				new
external/bsd/ntp/dist/html/leap.html				new
external/bsd/ntp/dist/html/miscopt.html				new
external/bsd/ntp/dist/html/monopt.html				new
external/bsd/ntp/dist/html/msyslog.html				new
external/bsd/ntp/dist/html/ntp-wait.html			new
external/bsd/ntp/dist/html/ntp_conf.html			new
external/bsd/ntp/dist/html/ntpd.html				new
external/bsd/ntp/dist/html/ntpdate.html				new
external/bsd/ntp/dist/html/ntpdc.html				new
external/bsd/ntp/dist/html/ntpdsim.html				new
external/bsd/ntp/dist/html/ntpdsim_new.html			new
external/bsd/ntp/dist/html/ntpq.html				new
external/bsd/ntp/dist/html/ntptime.html				new
external/bsd/ntp/dist/html/ntptrace.html			new
external/bsd/ntp/dist/html/orphan.html				new
external/bsd/ntp/dist/html/parsedata.html			new
external/bsd/ntp/dist/html/parsenew.html			new
external/bsd/ntp/dist/html/poll.html				new
external/bsd/ntp/dist/html/pps.html				new
external/bsd/ntp/dist/html/prefer.html				new
external/bsd/ntp/dist/html/quick.html				new
external/bsd/ntp/dist/html/rate.html				new
external/bsd/ntp/dist/html/rdebug.html				new
external/bsd/ntp/dist/html/refclock.html			new
external/bsd/ntp/dist/html/release.html				new
external/bsd/ntp/dist/html/select.html				new
external/bsd/ntp/dist/html/sitemap.html				new
external/bsd/ntp/dist/html/sntp.html				new
external/bsd/ntp/dist/html/stats.html				new
external/bsd/ntp/dist/html/tickadj.html				new
external/bsd/ntp/dist/html/warp.html				new
external/bsd/ntp/dist/html/xleave.html				new
external/bsd/ntp/dist/html/drivers/driver1.html			new
external/bsd/ntp/dist/html/drivers/driver10.html		new
external/bsd/ntp/dist/html/drivers/driver11.html		new
external/bsd/ntp/dist/html/drivers/driver12.html		new
external/bsd/ntp/dist/html/drivers/driver16.html		new
external/bsd/ntp/dist/html/drivers/driver18.html		new
external/bsd/ntp/dist/html/drivers/driver19.html		new
external/bsd/ntp/dist/html/drivers/driver20.html		new
external/bsd/ntp/dist/html/drivers/driver22.html		new
external/bsd/ntp/dist/html/drivers/driver26.html		new
external/bsd/ntp/dist/html/drivers/driver27.html		new
external/bsd/ntp/dist/html/drivers/driver28.html		new
external/bsd/ntp/dist/html/drivers/driver29.html		new
external/bsd/ntp/dist/html/drivers/driver3.html			new
external/bsd/ntp/dist/html/drivers/driver30.html		new
external/bsd/ntp/dist/html/drivers/driver31.html		new
external/bsd/ntp/dist/html/drivers/driver32.html		new
external/bsd/ntp/dist/html/drivers/driver33.html		new
external/bsd/ntp/dist/html/drivers/driver34.html		new
external/bsd/ntp/dist/html/drivers/driver35.html		new
external/bsd/ntp/dist/html/drivers/driver36.html		new
external/bsd/ntp/dist/html/drivers/driver37.html		new
external/bsd/ntp/dist/html/drivers/driver38.html		new
external/bsd/ntp/dist/html/drivers/driver39.html		new
external/bsd/ntp/dist/html/drivers/driver4.html			new
external/bsd/ntp/dist/html/drivers/driver40.html		new
external/bsd/ntp/dist/html/drivers/driver42.html		new
external/bsd/ntp/dist/html/drivers/driver43.html		new
external/bsd/ntp/dist/html/drivers/driver44.html		new
external/bsd/ntp/dist/html/drivers/driver45.html		new
external/bsd/ntp/dist/html/drivers/driver46.html		new
external/bsd/ntp/dist/html/drivers/driver5.html			new
external/bsd/ntp/dist/html/drivers/driver6.html			new
external/bsd/ntp/dist/html/drivers/driver7.html			new
external/bsd/ntp/dist/html/drivers/driver8.html			new
external/bsd/ntp/dist/html/drivers/driver9.html			new
external/bsd/ntp/dist/html/drivers/mx4200data.html		new
external/bsd/ntp/dist/html/drivers/oncore-shmem.html		new
external/bsd/ntp/dist/html/drivers/tf582_4.html			new
external/bsd/ntp/dist/html/drivers/icons/home.gif		new
external/bsd/ntp/dist/html/drivers/icons/mail2.gif		new
external/bsd/ntp/dist/html/drivers/scripts/footer.txt		new
external/bsd/ntp/dist/html/drivers/scripts/style.css		new
external/bsd/ntp/dist/html/hints/a-ux				new
external/bsd/ntp/dist/html/hints/aix				new
external/bsd/ntp/dist/html/hints/bsdi				new
external/bsd/ntp/dist/html/hints/changes			new
external/bsd/ntp/dist/html/hints/decosf1			new
external/bsd/ntp/dist/html/hints/decosf2			new
external/bsd/ntp/dist/html/hints/freebsd			new
external/bsd/ntp/dist/html/hints/hpux				new
external/bsd/ntp/dist/html/hints/linux				new
external/bsd/ntp/dist/html/hints/mpeix				new
external/bsd/ntp/dist/html/hints/notes-xntp-v3			new
external/bsd/ntp/dist/html/hints/parse				new
external/bsd/ntp/dist/html/hints/refclocks			new
external/bsd/ntp/dist/html/hints/rs6000				new
external/bsd/ntp/dist/html/hints/sco.html			new
external/bsd/ntp/dist/html/hints/sgi				new
external/bsd/ntp/dist/html/hints/solaris-dosynctodr.html	new
external/bsd/ntp/dist/html/hints/solaris.html			new
external/bsd/ntp/dist/html/hints/solaris.xtra.4023118		new
external/bsd/ntp/dist/html/hints/solaris.xtra.4095849		new
external/bsd/ntp/dist/html/hints/solaris.xtra.S99ntpd		new
external/bsd/ntp/dist/html/hints/solaris.xtra.patchfreq		new
external/bsd/ntp/dist/html/hints/sun4				new
external/bsd/ntp/dist/html/hints/svr4-dell			new
external/bsd/ntp/dist/html/hints/svr4_package			new
external/bsd/ntp/dist/html/hints/todo				new
external/bsd/ntp/dist/html/hints/vxworks.html			new
external/bsd/ntp/dist/html/hints/winnt.html			new
external/bsd/ntp/dist/html/icons/home.gif			new
external/bsd/ntp/dist/html/icons/mail2.gif			new
external/bsd/ntp/dist/html/icons/sitemap.png			new
external/bsd/ntp/dist/html/scripts/accopt.txt			new
external/bsd/ntp/dist/html/scripts/audio.txt			new
external/bsd/ntp/dist/html/scripts/authopt.txt			new
external/bsd/ntp/dist/html/scripts/clockopt.txt			new
external/bsd/ntp/dist/html/scripts/command.txt			new
external/bsd/ntp/dist/html/scripts/config.txt			new
external/bsd/ntp/dist/html/scripts/confopt.txt			new
external/bsd/ntp/dist/html/scripts/external.txt			new
external/bsd/ntp/dist/html/scripts/footer.txt			new
external/bsd/ntp/dist/html/scripts/hand.txt			new
external/bsd/ntp/dist/html/scripts/install.txt			new
external/bsd/ntp/dist/html/scripts/manual.txt			new
external/bsd/ntp/dist/html/scripts/misc.txt			new
external/bsd/ntp/dist/html/scripts/miscopt.txt			new
external/bsd/ntp/dist/html/scripts/monopt.txt			new
external/bsd/ntp/dist/html/scripts/refclock.txt			new
external/bsd/ntp/dist/html/scripts/special.txt			new
external/bsd/ntp/dist/html/scripts/style.css			new
external/bsd/ntp/dist/include/Makefile.am			new
external/bsd/ntp/dist/include/Makefile.in			new
external/bsd/ntp/dist/include/README				new
external/bsd/ntp/dist/include/adjtime.h				new
external/bsd/ntp/dist/include/ascii.h				new
external/bsd/ntp/dist/include/audio.h				new
external/bsd/ntp/dist/include/binio.h				new
external/bsd/ntp/dist/include/declcond.h			new
external/bsd/ntp/dist/include/gps.h				new
external/bsd/ntp/dist/include/hopf6039.h			new
external/bsd/ntp/dist/include/icom.h				new
external/bsd/ntp/dist/include/ieee754io.h			new
external/bsd/ntp/dist/include/intreswork.h			new
external/bsd/ntp/dist/include/iosignal.h			new
external/bsd/ntp/dist/include/l_stdlib.h			new
external/bsd/ntp/dist/include/lib_strbuf.h			new
external/bsd/ntp/dist/include/libntp.h				new
external/bsd/ntp/dist/include/mbg_gps166.h			new
external/bsd/ntp/dist/include/mx4200.h				new
external/bsd/ntp/dist/include/ntif.h				new
external/bsd/ntp/dist/include/ntp.h				new
external/bsd/ntp/dist/include/ntp_assert.h			new
external/bsd/ntp/dist/include/ntp_calendar.h			new
external/bsd/ntp/dist/include/ntp_cmdargs.h			new
external/bsd/ntp/dist/include/ntp_config.h			new
external/bsd/ntp/dist/include/ntp_control.h			new
external/bsd/ntp/dist/include/ntp_crypto.h			new
external/bsd/ntp/dist/include/ntp_datum.h			new
external/bsd/ntp/dist/include/ntp_debug.h			new
external/bsd/ntp/dist/include/ntp_filegen.h			new
external/bsd/ntp/dist/include/ntp_fp.h				new
external/bsd/ntp/dist/include/ntp_if.h				new
external/bsd/ntp/dist/include/ntp_intres.h			new
external/bsd/ntp/dist/include/ntp_io.h				new
external/bsd/ntp/dist/include/ntp_libopts.h			new
external/bsd/ntp/dist/include/ntp_lineedit.h			new
external/bsd/ntp/dist/include/ntp_lists.h			new
external/bsd/ntp/dist/include/ntp_machine.h			new
external/bsd/ntp/dist/include/ntp_malloc.h			new
external/bsd/ntp/dist/include/ntp_md5.h				new
external/bsd/ntp/dist/include/ntp_net.h				new
external/bsd/ntp/dist/include/ntp_prio_q.h			new
external/bsd/ntp/dist/include/ntp_proto.h			new
external/bsd/ntp/dist/include/ntp_random.h			new
external/bsd/ntp/dist/include/ntp_refclock.h			new
external/bsd/ntp/dist/include/ntp_request.h			new
external/bsd/ntp/dist/include/ntp_rfc2553.h			new
external/bsd/ntp/dist/include/ntp_select.h			new
external/bsd/ntp/dist/include/ntp_stdlib.h			new
external/bsd/ntp/dist/include/ntp_string.h			new
external/bsd/ntp/dist/include/ntp_syscall.h			new
external/bsd/ntp/dist/include/ntp_syslog.h			new
external/bsd/ntp/dist/include/ntp_tty.h				new
external/bsd/ntp/dist/include/ntp_types.h			new
external/bsd/ntp/dist/include/ntp_unixtime.h			new
external/bsd/ntp/dist/include/ntp_worker.h			new
external/bsd/ntp/dist/include/ntp_workimpl.h			new
external/bsd/ntp/dist/include/ntpd.h				new
external/bsd/ntp/dist/include/ntpsim.h				new
external/bsd/ntp/dist/include/parse.h				new
external/bsd/ntp/dist/include/parse_conf.h			new
external/bsd/ntp/dist/include/recvbuff.h			new
external/bsd/ntp/dist/include/refclock_atom.h			new
external/bsd/ntp/dist/include/ssl_applink.c			new
external/bsd/ntp/dist/include/timepps-SCO.h			new
external/bsd/ntp/dist/include/timepps-Solaris.h			new
external/bsd/ntp/dist/include/timepps-SunOS.h			new
external/bsd/ntp/dist/include/timespecops.h			new
external/bsd/ntp/dist/include/timetoa.h				new
external/bsd/ntp/dist/include/timevalops.h			new
external/bsd/ntp/dist/include/trimble.h				new
external/bsd/ntp/dist/include/vint64ops.h			new
external/bsd/ntp/dist/include/isc/Makefile.am			new
external/bsd/ntp/dist/include/isc/Makefile.in			new
external/bsd/ntp/dist/include/isc/mem.h				new
external/bsd/ntp/dist/kernel/Makefile.am			new
external/bsd/ntp/dist/kernel/Makefile.in			new
external/bsd/ntp/dist/kernel/sys/Makefile.am			new
external/bsd/ntp/dist/kernel/sys/Makefile.in			new
external/bsd/ntp/dist/kernel/sys/README				new
external/bsd/ntp/dist/kernel/sys/bsd_audioirig.h		new
external/bsd/ntp/dist/kernel/sys/i8253.h			new
external/bsd/ntp/dist/kernel/sys/parsestreams.h			new
external/bsd/ntp/dist/kernel/sys/pcl720.h			new
external/bsd/ntp/dist/kernel/sys/ppsclock.h			new
external/bsd/ntp/dist/kernel/sys/timex.h			new
external/bsd/ntp/dist/kernel/sys/tpro.h				new
external/bsd/ntp/dist/kernel/sys/tt560_api.h			new
external/bsd/ntp/dist/lib/isc/Atffile				new
external/bsd/ntp/dist/lib/isc/api				new
external/bsd/ntp/dist/lib/isc/app_api.c				new
external/bsd/ntp/dist/lib/isc/assertions.c			new
external/bsd/ntp/dist/lib/isc/backtrace-emptytbl.c		new
external/bsd/ntp/dist/lib/isc/backtrace.c			new
external/bsd/ntp/dist/lib/isc/base32.c				new
external/bsd/ntp/dist/lib/isc/base64.c				new
external/bsd/ntp/dist/lib/isc/bitstring.c			new
external/bsd/ntp/dist/lib/isc/buffer.c				new
external/bsd/ntp/dist/lib/isc/bufferlist.c			new
external/bsd/ntp/dist/lib/isc/commandline.c			new
external/bsd/ntp/dist/lib/isc/entropy.c				new
external/bsd/ntp/dist/lib/isc/error.c				new
external/bsd/ntp/dist/lib/isc/event.c				new
external/bsd/ntp/dist/lib/isc/fsaccess.c			new
external/bsd/ntp/dist/lib/isc/hash.c				new
external/bsd/ntp/dist/lib/isc/heap.c				new
external/bsd/ntp/dist/lib/isc/hex.c				new
external/bsd/ntp/dist/lib/isc/hmacmd5.c				new
external/bsd/ntp/dist/lib/isc/hmacsha.c				new
external/bsd/ntp/dist/lib/isc/httpd.c				new
external/bsd/ntp/dist/lib/isc/inet_aton.c			new
external/bsd/ntp/dist/lib/isc/inet_ntop.c			new
external/bsd/ntp/dist/lib/isc/inet_pton.c			new
external/bsd/ntp/dist/lib/isc/iterated_hash.c			new
external/bsd/ntp/dist/lib/isc/lex.c				new
external/bsd/ntp/dist/lib/isc/lfsr.c				new
external/bsd/ntp/dist/lib/isc/lib.c				new
external/bsd/ntp/dist/lib/isc/log.c				new
external/bsd/ntp/dist/lib/isc/md5.c				new
external/bsd/ntp/dist/lib/isc/mem.c				new
external/bsd/ntp/dist/lib/isc/mem_api.c				new
external/bsd/ntp/dist/lib/isc/mutexblock.c			new
external/bsd/ntp/dist/lib/isc/netaddr.c				new
external/bsd/ntp/dist/lib/isc/netscope.c			new
external/bsd/ntp/dist/lib/isc/ondestroy.c			new
external/bsd/ntp/dist/lib/isc/parseint.c			new
external/bsd/ntp/dist/lib/isc/portset.c				new
external/bsd/ntp/dist/lib/isc/print.c				new
external/bsd/ntp/dist/lib/isc/quota.c				new
external/bsd/ntp/dist/lib/isc/radix.c				new
external/bsd/ntp/dist/lib/isc/random.c				new
external/bsd/ntp/dist/lib/isc/ratelimiter.c			new
external/bsd/ntp/dist/lib/isc/refcount.c			new
external/bsd/ntp/dist/lib/isc/region.c				new
external/bsd/ntp/dist/lib/isc/result.c				new
external/bsd/ntp/dist/lib/isc/rwlock.c				new
external/bsd/ntp/dist/lib/isc/serial.c				new
external/bsd/ntp/dist/lib/isc/sha1.c				new
external/bsd/ntp/dist/lib/isc/sha2.c				new
external/bsd/ntp/dist/lib/isc/sockaddr.c			new
external/bsd/ntp/dist/lib/isc/socket_api.c			new
external/bsd/ntp/dist/lib/isc/stats.c				new
external/bsd/ntp/dist/lib/isc/string.c				new
external/bsd/ntp/dist/lib/isc/strtoul.c				new
external/bsd/ntp/dist/lib/isc/symtab.c				new
external/bsd/ntp/dist/lib/isc/task.c				new
external/bsd/ntp/dist/lib/isc/task_api.c			new
external/bsd/ntp/dist/lib/isc/task_p.h				new
external/bsd/ntp/dist/lib/isc/taskpool.c			new
external/bsd/ntp/dist/lib/isc/timer.c				new
external/bsd/ntp/dist/lib/isc/timer_api.c			new
external/bsd/ntp/dist/lib/isc/timer_p.h				new
external/bsd/ntp/dist/lib/isc/version.c				new
external/bsd/ntp/dist/lib/isc/alpha/include/isc/atomic.h	new
external/bsd/ntp/dist/lib/isc/ia64/include/isc/atomic.h		new
external/bsd/ntp/dist/lib/isc/include/isc/app.h			new
external/bsd/ntp/dist/lib/isc/include/isc/assertions.h		new
external/bsd/ntp/dist/lib/isc/include/isc/backtrace.h		new
external/bsd/ntp/dist/lib/isc/include/isc/base32.h		new
external/bsd/ntp/dist/lib/isc/include/isc/base64.h		new
external/bsd/ntp/dist/lib/isc/include/isc/bind9.h		new
external/bsd/ntp/dist/lib/isc/include/isc/bitstring.h		new
external/bsd/ntp/dist/lib/isc/include/isc/boolean.h		new
external/bsd/ntp/dist/lib/isc/include/isc/buffer.h		new
external/bsd/ntp/dist/lib/isc/include/isc/bufferlist.h		new
external/bsd/ntp/dist/lib/isc/include/isc/commandline.h		new
external/bsd/ntp/dist/lib/isc/include/isc/entropy.h		new
external/bsd/ntp/dist/lib/isc/include/isc/error.h		new
external/bsd/ntp/dist/lib/isc/include/isc/event.h		new
external/bsd/ntp/dist/lib/isc/include/isc/eventclass.h		new
external/bsd/ntp/dist/lib/isc/include/isc/file.h		new
external/bsd/ntp/dist/lib/isc/include/isc/formatcheck.h		new
external/bsd/ntp/dist/lib/isc/include/isc/fsaccess.h		new
external/bsd/ntp/dist/lib/isc/include/isc/hash.h		new
external/bsd/ntp/dist/lib/isc/include/isc/heap.h		new
external/bsd/ntp/dist/lib/isc/include/isc/hex.h			new
external/bsd/ntp/dist/lib/isc/include/isc/hmacmd5.h		new
external/bsd/ntp/dist/lib/isc/include/isc/hmacsha.h		new
external/bsd/ntp/dist/lib/isc/include/isc/httpd.h		new
external/bsd/ntp/dist/lib/isc/include/isc/interfaceiter.h	new
external/bsd/ntp/dist/lib/isc/include/isc/ipv6.h		new
external/bsd/ntp/dist/lib/isc/include/isc/iterated_hash.h	new
external/bsd/ntp/dist/lib/isc/include/isc/lang.h		new
external/bsd/ntp/dist/lib/isc/include/isc/lex.h			new
external/bsd/ntp/dist/lib/isc/include/isc/lfsr.h		new
external/bsd/ntp/dist/lib/isc/include/isc/lib.h			new
external/bsd/ntp/dist/lib/isc/include/isc/list.h		new
external/bsd/ntp/dist/lib/isc/include/isc/log.h			new
external/bsd/ntp/dist/lib/isc/include/isc/magic.h		new
external/bsd/ntp/dist/lib/isc/include/isc/md5.h			new
external/bsd/ntp/dist/lib/isc/include/isc/mem.h			new
external/bsd/ntp/dist/lib/isc/include/isc/msgcat.h		new
external/bsd/ntp/dist/lib/isc/include/isc/msgs.h		new
external/bsd/ntp/dist/lib/isc/include/isc/mutexblock.h		new
external/bsd/ntp/dist/lib/isc/include/isc/namespace.h		new
external/bsd/ntp/dist/lib/isc/include/isc/netaddr.h		new
external/bsd/ntp/dist/lib/isc/include/isc/netscope.h		new
external/bsd/ntp/dist/lib/isc/include/isc/ondestroy.h		new
external/bsd/ntp/dist/lib/isc/include/isc/os.h			new
external/bsd/ntp/dist/lib/isc/include/isc/parseint.h		new
external/bsd/ntp/dist/lib/isc/include/isc/platform.h		new
external/bsd/ntp/dist/lib/isc/include/isc/platform.h.in		new
external/bsd/ntp/dist/lib/isc/include/isc/portset.h		new
external/bsd/ntp/dist/lib/isc/include/isc/print.h		new
external/bsd/ntp/dist/lib/isc/include/isc/queue.h		new
external/bsd/ntp/dist/lib/isc/include/isc/quota.h		new
external/bsd/ntp/dist/lib/isc/include/isc/radix.h		new
external/bsd/ntp/dist/lib/isc/include/isc/random.h		new
external/bsd/ntp/dist/lib/isc/include/isc/ratelimiter.h		new
external/bsd/ntp/dist/lib/isc/include/isc/refcount.h		new
external/bsd/ntp/dist/lib/isc/include/isc/region.h		new
external/bsd/ntp/dist/lib/isc/include/isc/resource.h		new
external/bsd/ntp/dist/lib/isc/include/isc/result.h		new
external/bsd/ntp/dist/lib/isc/include/isc/resultclass.h		new
external/bsd/ntp/dist/lib/isc/include/isc/rwlock.h		new
external/bsd/ntp/dist/lib/isc/include/isc/serial.h		new
external/bsd/ntp/dist/lib/isc/include/isc/sha1.h		new
external/bsd/ntp/dist/lib/isc/include/isc/sha2.h		new
external/bsd/ntp/dist/lib/isc/include/isc/sockaddr.h		new
external/bsd/ntp/dist/lib/isc/include/isc/socket.h		new
external/bsd/ntp/dist/lib/isc/include/isc/stats.h		new
external/bsd/ntp/dist/lib/isc/include/isc/stdio.h		new
external/bsd/ntp/dist/lib/isc/include/isc/stdlib.h		new
external/bsd/ntp/dist/lib/isc/include/isc/string.h		new
external/bsd/ntp/dist/lib/isc/include/isc/symtab.h		new
external/bsd/ntp/dist/lib/isc/include/isc/task.h		new
external/bsd/ntp/dist/lib/isc/include/isc/taskpool.h		new
external/bsd/ntp/dist/lib/isc/include/isc/timer.h		new
external/bsd/ntp/dist/lib/isc/include/isc/types.h		new
external/bsd/ntp/dist/lib/isc/include/isc/util.h		new
external/bsd/ntp/dist/lib/isc/include/isc/version.h		new
external/bsd/ntp/dist/lib/isc/include/isc/xml.h			new
external/bsd/ntp/dist/lib/isc/mips/include/isc/atomic.h		new
external/bsd/ntp/dist/lib/isc/nls/msgcat.c			new
external/bsd/ntp/dist/lib/isc/noatomic/include/isc/atomic.h	new
external/bsd/ntp/dist/lib/isc/nothreads/condition.c		new
external/bsd/ntp/dist/lib/isc/nothreads/mutex.c			new
external/bsd/ntp/dist/lib/isc/nothreads/thread.c		new
external/bsd/ntp/dist/lib/isc/nothreads/include/isc/condition.h	new
external/bsd/ntp/dist/lib/isc/nothreads/include/isc/mutex.h	new
external/bsd/ntp/dist/lib/isc/nothreads/include/isc/once.h	new
external/bsd/ntp/dist/lib/isc/nothreads/include/isc/thread.h	new
external/bsd/ntp/dist/lib/isc/powerpc/include/isc/atomic.h	new
external/bsd/ntp/dist/lib/isc/pthreads/condition.c		new
external/bsd/ntp/dist/lib/isc/pthreads/mutex.c			new
external/bsd/ntp/dist/lib/isc/pthreads/thread.c			new
external/bsd/ntp/dist/lib/isc/pthreads/include/isc/condition.h	new
external/bsd/ntp/dist/lib/isc/pthreads/include/isc/mutex.h	new
external/bsd/ntp/dist/lib/isc/pthreads/include/isc/once.h	new
external/bsd/ntp/dist/lib/isc/pthreads/include/isc/thread.h	new
external/bsd/ntp/dist/lib/isc/sparc64/include/isc/atomic.h	new
external/bsd/ntp/dist/lib/isc/tests/Atffile			new
external/bsd/ntp/dist/lib/isc/tests/hash_test.c			new
external/bsd/ntp/dist/lib/isc/tests/isctest.c			new
external/bsd/ntp/dist/lib/isc/tests/isctest.h			new
external/bsd/ntp/dist/lib/isc/tests/queue_test.c		new
external/bsd/ntp/dist/lib/isc/tests/socket_test.c		new
external/bsd/ntp/dist/lib/isc/tests/symtab_test.c		new
external/bsd/ntp/dist/lib/isc/tests/task_test.c			new
external/bsd/ntp/dist/lib/isc/tests/taskpool_test.c		new
external/bsd/ntp/dist/lib/isc/unix/app.c			new
external/bsd/ntp/dist/lib/isc/unix/dir.c			new
external/bsd/ntp/dist/lib/isc/unix/entropy.c			new
external/bsd/ntp/dist/lib/isc/unix/errno2result.c		new
external/bsd/ntp/dist/lib/isc/unix/errno2result.h		new
external/bsd/ntp/dist/lib/isc/unix/file.c			new
external/bsd/ntp/dist/lib/isc/unix/fsaccess.c			new
external/bsd/ntp/dist/lib/isc/unix/ifiter_getifaddrs.c		new
external/bsd/ntp/dist/lib/isc/unix/ifiter_ioctl.c		new
external/bsd/ntp/dist/lib/isc/unix/ifiter_sysctl.c		new
external/bsd/ntp/dist/lib/isc/unix/interfaceiter.c		new
external/bsd/ntp/dist/lib/isc/unix/ipv6.c			new
external/bsd/ntp/dist/lib/isc/unix/keyboard.c			new
external/bsd/ntp/dist/lib/isc/unix/net.c			new
external/bsd/ntp/dist/lib/isc/unix/os.c				new
external/bsd/ntp/dist/lib/isc/unix/resource.c			new
external/bsd/ntp/dist/lib/isc/unix/socket.c			new
external/bsd/ntp/dist/lib/isc/unix/socket_p.h			new
external/bsd/ntp/dist/lib/isc/unix/stdio.c			new
external/bsd/ntp/dist/lib/isc/unix/stdtime.c			new
external/bsd/ntp/dist/lib/isc/unix/strerror.c			new
external/bsd/ntp/dist/lib/isc/unix/syslog.c			new
external/bsd/ntp/dist/lib/isc/unix/time.c			new
external/bsd/ntp/dist/lib/isc/unix/include/isc/dir.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/int.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/keyboard.h	new
external/bsd/ntp/dist/lib/isc/unix/include/isc/net.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/netdb.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/offset.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/stat.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/stdtime.h	new
external/bsd/ntp/dist/lib/isc/unix/include/isc/strerror.h	new
external/bsd/ntp/dist/lib/isc/unix/include/isc/syslog.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/time.h		new
external/bsd/ntp/dist/lib/isc/win32/DLLMain.c			new
external/bsd/ntp/dist/lib/isc/win32/app.c			new
external/bsd/ntp/dist/lib/isc/win32/condition.c			new
external/bsd/ntp/dist/lib/isc/win32/dir.c			new
external/bsd/ntp/dist/lib/isc/win32/entropy.c			new
external/bsd/ntp/dist/lib/isc/win32/errno2result.c		new
external/bsd/ntp/dist/lib/isc/win32/errno2result.h		new
external/bsd/ntp/dist/lib/isc/win32/file.c			new
external/bsd/ntp/dist/lib/isc/win32/fsaccess.c			new
external/bsd/ntp/dist/lib/isc/win32/interfaceiter.c		new
external/bsd/ntp/dist/lib/isc/win32/ipv6.c			new
external/bsd/ntp/dist/lib/isc/win32/keyboard.c			new
external/bsd/ntp/dist/lib/isc/win32/libgen.h			new
external/bsd/ntp/dist/lib/isc/win32/libisc.def			new
external/bsd/ntp/dist/lib/isc/win32/libisc.dsp			new
external/bsd/ntp/dist/lib/isc/win32/libisc.dsw			new
external/bsd/ntp/dist/lib/isc/win32/libisc.mak			new
external/bsd/ntp/dist/lib/isc/win32/net.c			new
external/bsd/ntp/dist/lib/isc/win32/netdb.h			new
external/bsd/ntp/dist/lib/isc/win32/ntgroups.c			new
external/bsd/ntp/dist/lib/isc/win32/ntpaths.c			new
external/bsd/ntp/dist/lib/isc/win32/once.c			new
external/bsd/ntp/dist/lib/isc/win32/os.c			new
external/bsd/ntp/dist/lib/isc/win32/resource.c			new
external/bsd/ntp/dist/lib/isc/win32/socket.c			new
external/bsd/ntp/dist/lib/isc/win32/stdio.c			new
external/bsd/ntp/dist/lib/isc/win32/stdtime.c			new
external/bsd/ntp/dist/lib/isc/win32/strerror.c			new
external/bsd/ntp/dist/lib/isc/win32/syslog.c			new
external/bsd/ntp/dist/lib/isc/win32/syslog.h			new
external/bsd/ntp/dist/lib/isc/win32/thread.c			new
external/bsd/ntp/dist/lib/isc/win32/time.c			new
external/bsd/ntp/dist/lib/isc/win32/unistd.h			new
external/bsd/ntp/dist/lib/isc/win32/version.c			new
external/bsd/ntp/dist/lib/isc/win32/win32os.c			new
external/bsd/ntp/dist/lib/isc/win32/include/isc/bind_registry.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/bindevt.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/condition.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/dir.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/int.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/ipv6.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/keyboard.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/mutex.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/net.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/netdb.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/ntgroups.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/ntpaths.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/offset.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/once.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/platform.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/stat.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/stdtime.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/strerror.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/syslog.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/thread.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/time.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/win32os.h	new
external/bsd/ntp/dist/lib/isc/x86_32/include/isc/atomic.h	new
external/bsd/ntp/dist/lib/isc/x86_64/include/isc/atomic.h	new
external/bsd/ntp/dist/libjsmn/LICENSE				new
external/bsd/ntp/dist/libjsmn/Makefile				new
external/bsd/ntp/dist/libjsmn/README.md				new
external/bsd/ntp/dist/libjsmn/jsmn.c				new
external/bsd/ntp/dist/libjsmn/jsmn.h				new
external/bsd/ntp/dist/libjsmn/jsmn_test.c			new
external/bsd/ntp/dist/libntp/Makefile.am			new
external/bsd/ntp/dist/libntp/Makefile.in			new
external/bsd/ntp/dist/libntp/README				new
external/bsd/ntp/dist/libntp/a_md5encrypt.c			new
external/bsd/ntp/dist/libntp/adjtime.c				new
external/bsd/ntp/dist/libntp/adjtimex.c				new
external/bsd/ntp/dist/libntp/atoint.c				new
external/bsd/ntp/dist/libntp/atolfp.c				new
external/bsd/ntp/dist/libntp/atouint.c				new
external/bsd/ntp/dist/libntp/audio.c				new
external/bsd/ntp/dist/libntp/authkeys.c				new
external/bsd/ntp/dist/libntp/authreadkeys.c			new
external/bsd/ntp/dist/libntp/authusekey.c			new
external/bsd/ntp/dist/libntp/bsd_strerror.c			new
external/bsd/ntp/dist/libntp/buftvtots.c			new
external/bsd/ntp/dist/libntp/caljulian.c			new
external/bsd/ntp/dist/libntp/caltontp.c				new
external/bsd/ntp/dist/libntp/calyearstart.c			new
external/bsd/ntp/dist/libntp/clocktime.c			new
external/bsd/ntp/dist/libntp/clocktypes.c			new
external/bsd/ntp/dist/libntp/decodenetnum.c			new
external/bsd/ntp/dist/libntp/dofptoa.c				new
external/bsd/ntp/dist/libntp/dolfptoa.c				new
external/bsd/ntp/dist/libntp/emalloc.c				new
external/bsd/ntp/dist/libntp/findconfig.c			new
external/bsd/ntp/dist/libntp/getopt.c				new
external/bsd/ntp/dist/libntp/hextoint.c				new
external/bsd/ntp/dist/libntp/hextolfp.c				new
external/bsd/ntp/dist/libntp/humandate.c			new
external/bsd/ntp/dist/libntp/icom.c				new
external/bsd/ntp/dist/libntp/iosignal.c				new
external/bsd/ntp/dist/libntp/lib_strbuf.c			new
external/bsd/ntp/dist/libntp/machines.c				new
external/bsd/ntp/dist/libntp/mktime.c				new
external/bsd/ntp/dist/libntp/modetoa.c				new
external/bsd/ntp/dist/libntp/mstolfp.c				new
external/bsd/ntp/dist/libntp/msyslog.c				new
external/bsd/ntp/dist/libntp/netof.c				new
external/bsd/ntp/dist/libntp/ntp_calendar.c			new
external/bsd/ntp/dist/libntp/ntp_crypto_rnd.c			new
external/bsd/ntp/dist/libntp/ntp_intres.c			new
external/bsd/ntp/dist/libntp/ntp_libopts.c			new
external/bsd/ntp/dist/libntp/ntp_lineedit.c			new
external/bsd/ntp/dist/libntp/ntp_random.c			new
external/bsd/ntp/dist/libntp/ntp_rfc2553.c			new
external/bsd/ntp/dist/libntp/ntp_worker.c			new
external/bsd/ntp/dist/libntp/numtoa.c				new
external/bsd/ntp/dist/libntp/numtohost.c			new
external/bsd/ntp/dist/libntp/octtoint.c				new
external/bsd/ntp/dist/libntp/prettydate.c			new
external/bsd/ntp/dist/libntp/recvbuff.c				new
external/bsd/ntp/dist/libntp/refnumtoa.c			new
external/bsd/ntp/dist/libntp/snprintf.c				new
external/bsd/ntp/dist/libntp/socket.c				new
external/bsd/ntp/dist/libntp/socktoa.c				new
external/bsd/ntp/dist/libntp/socktohost.c			new
external/bsd/ntp/dist/libntp/ssl_init.c				new
external/bsd/ntp/dist/libntp/statestr.c				new
external/bsd/ntp/dist/libntp/strdup.c				new
external/bsd/ntp/dist/libntp/strl_obsd.c			new
external/bsd/ntp/dist/libntp/syssignal.c			new
external/bsd/ntp/dist/libntp/systime.c				new
external/bsd/ntp/dist/libntp/systime_s.c			new
external/bsd/ntp/dist/libntp/timetoa.c				new
external/bsd/ntp/dist/libntp/timevalops.c			new
external/bsd/ntp/dist/libntp/uglydate.c				new
external/bsd/ntp/dist/libntp/vint64ops.c			new
external/bsd/ntp/dist/libntp/work_fork.c			new
external/bsd/ntp/dist/libntp/work_thread.c			new
external/bsd/ntp/dist/libntp/ymd2yd.c				new
external/bsd/ntp/dist/libparse/Makefile.am			new
external/bsd/ntp/dist/libparse/Makefile.in			new
external/bsd/ntp/dist/libparse/README				new
external/bsd/ntp/dist/libparse/binio.c				new
external/bsd/ntp/dist/libparse/clk_computime.c			new
external/bsd/ntp/dist/libparse/clk_dcf7000.c			new
external/bsd/ntp/dist/libparse/clk_hopf6021.c			new
external/bsd/ntp/dist/libparse/clk_meinberg.c			new
external/bsd/ntp/dist/libparse/clk_rawdcf.c			new
external/bsd/ntp/dist/libparse/clk_rcc8000.c			new
external/bsd/ntp/dist/libparse/clk_schmid.c			new
external/bsd/ntp/dist/libparse/clk_sel240x.c			new
external/bsd/ntp/dist/libparse/clk_trimtaip.c			new
external/bsd/ntp/dist/libparse/clk_trimtsip.c			new
external/bsd/ntp/dist/libparse/clk_varitext.c			new
external/bsd/ntp/dist/libparse/clk_wharton.c			new
external/bsd/ntp/dist/libparse/data_mbg.c			new
external/bsd/ntp/dist/libparse/gpstolfp.c			new
external/bsd/ntp/dist/libparse/ieee754io.c			new
external/bsd/ntp/dist/libparse/info_trimble.c			new
external/bsd/ntp/dist/libparse/mfp_mul.c			new
external/bsd/ntp/dist/libparse/mkinfo_rcmd.sed			new
external/bsd/ntp/dist/libparse/mkinfo_scmd.sed			new
external/bsd/ntp/dist/libparse/parse.c				new
external/bsd/ntp/dist/libparse/parse_conf.c			new
external/bsd/ntp/dist/libparse/parsesolaris.c			new
external/bsd/ntp/dist/libparse/parsestreams.c			new
external/bsd/ntp/dist/libparse/trim_info.c			new
external/bsd/ntp/dist/ntpd/Makefile.am				new
external/bsd/ntp/dist/ntpd/Makefile.in				new
external/bsd/ntp/dist/ntpd/check_y2k.c				new
external/bsd/ntp/dist/ntpd/cmd_args.c				new
external/bsd/ntp/dist/ntpd/complete.conf.in			new
external/bsd/ntp/dist/ntpd/declcond.h				new
external/bsd/ntp/dist/ntpd/invoke-ntp.conf.menu			new
external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi			new
external/bsd/ntp/dist/ntpd/invoke-ntp.keys.menu			new
external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi			new
external/bsd/ntp/dist/ntpd/invoke-ntpd.menu			new
external/bsd/ntp/dist/ntpd/invoke-ntpd.texi			new
external/bsd/ntp/dist/ntpd/jupiter.h				new
external/bsd/ntp/dist/ntpd/keyword-gen-utd			new
external/bsd/ntp/dist/ntpd/keyword-gen.c			new
external/bsd/ntp/dist/ntpd/ntp.conf.5man			new
external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc			new
external/bsd/ntp/dist/ntpd/ntp.conf.def				new
external/bsd/ntp/dist/ntpd/ntp.conf.html			new
external/bsd/ntp/dist/ntpd/ntp.conf.man.in			new
external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in			new
external/bsd/ntp/dist/ntpd/ntp.conf.texi			new
external/bsd/ntp/dist/ntpd/ntp.keys.5man			new
external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc			new
external/bsd/ntp/dist/ntpd/ntp.keys.def				new
external/bsd/ntp/dist/ntpd/ntp.keys.html			new
external/bsd/ntp/dist/ntpd/ntp.keys.man.in			new
external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in			new
external/bsd/ntp/dist/ntpd/ntp.keys.texi			new
external/bsd/ntp/dist/ntpd/ntp_config.c				new
external/bsd/ntp/dist/ntpd/ntp_control.c			new
external/bsd/ntp/dist/ntpd/ntp_crypto.c				new
external/bsd/ntp/dist/ntpd/ntp_filegen.c			new
external/bsd/ntp/dist/ntpd/ntp_io.c				new
external/bsd/ntp/dist/ntpd/ntp_keyword.h			new
external/bsd/ntp/dist/ntpd/ntp_leapsec.c			new
external/bsd/ntp/dist/ntpd/ntp_leapsec.h			new
external/bsd/ntp/dist/ntpd/ntp_loopfilter.c			new
external/bsd/ntp/dist/ntpd/ntp_monitor.c			new
external/bsd/ntp/dist/ntpd/ntp_parser.c				new
external/bsd/ntp/dist/ntpd/ntp_parser.h				new
external/bsd/ntp/dist/ntpd/ntp_parser.y				new
external/bsd/ntp/dist/ntpd/ntp_peer.c				new
external/bsd/ntp/dist/ntpd/ntp_prio_q.c				new
external/bsd/ntp/dist/ntpd/ntp_proto.c				new
external/bsd/ntp/dist/ntpd/ntp_refclock.c			new
external/bsd/ntp/dist/ntpd/ntp_request.c			new
external/bsd/ntp/dist/ntpd/ntp_restrict.c			new
external/bsd/ntp/dist/ntpd/ntp_scanner.c			new
external/bsd/ntp/dist/ntpd/ntp_scanner.h			new
external/bsd/ntp/dist/ntpd/ntp_signd.c				new
external/bsd/ntp/dist/ntpd/ntp_timer.c				new
external/bsd/ntp/dist/ntpd/ntp_util.c				new
external/bsd/ntp/dist/ntpd/ntpd-opts.c				new
external/bsd/ntp/dist/ntpd/ntpd-opts.def			new
external/bsd/ntp/dist/ntpd/ntpd-opts.h				new
external/bsd/ntp/dist/ntpd/ntpd.1ntpdman			new
external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc			new
external/bsd/ntp/dist/ntpd/ntpd.c				new
external/bsd/ntp/dist/ntpd/ntpd.html				new
external/bsd/ntp/dist/ntpd/ntpd.man.in				new
external/bsd/ntp/dist/ntpd/ntpd.mdoc.in				new
external/bsd/ntp/dist/ntpd/ntpd.texi				new
external/bsd/ntp/dist/ntpd/ntpdbase-opts.def			new
external/bsd/ntp/dist/ntpd/ntpsim.c				new
external/bsd/ntp/dist/ntpd/ppsapi_timepps.h			new
external/bsd/ntp/dist/ntpd/refclock_acts.c			new
external/bsd/ntp/dist/ntpd/refclock_arbiter.c			new
external/bsd/ntp/dist/ntpd/refclock_arc.c			new
external/bsd/ntp/dist/ntpd/refclock_as2201.c			new
external/bsd/ntp/dist/ntpd/refclock_atom.c			new
external/bsd/ntp/dist/ntpd/refclock_bancomm.c			new
external/bsd/ntp/dist/ntpd/refclock_chronolog.c			new
external/bsd/ntp/dist/ntpd/refclock_chu.c			new
external/bsd/ntp/dist/ntpd/refclock_conf.c			new
external/bsd/ntp/dist/ntpd/refclock_datum.c			new
external/bsd/ntp/dist/ntpd/refclock_dumbclock.c			new
external/bsd/ntp/dist/ntpd/refclock_fg.c			new
external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c			new
external/bsd/ntp/dist/ntpd/refclock_gpsvme.c			new
external/bsd/ntp/dist/ntpd/refclock_heath.c			new
external/bsd/ntp/dist/ntpd/refclock_hopfpci.c			new
external/bsd/ntp/dist/ntpd/refclock_hopfser.c			new
external/bsd/ntp/dist/ntpd/refclock_hpgps.c			new
external/bsd/ntp/dist/ntpd/refclock_irig.c			new
external/bsd/ntp/dist/ntpd/refclock_jjy.c			new
external/bsd/ntp/dist/ntpd/refclock_jupiter.c			new
external/bsd/ntp/dist/ntpd/refclock_leitch.c			new
external/bsd/ntp/dist/ntpd/refclock_local.c			new
external/bsd/ntp/dist/ntpd/refclock_msfees.c			new
external/bsd/ntp/dist/ntpd/refclock_mx4200.c			new
external/bsd/ntp/dist/ntpd/refclock_neoclock4x.c		new
external/bsd/ntp/dist/ntpd/refclock_nmea.c			new
external/bsd/ntp/dist/ntpd/refclock_oncore.c			new
external/bsd/ntp/dist/ntpd/refclock_palisade.c			new
external/bsd/ntp/dist/ntpd/refclock_palisade.h			new
external/bsd/ntp/dist/ntpd/refclock_parse.c			new
external/bsd/ntp/dist/ntpd/refclock_pcf.c			new
external/bsd/ntp/dist/ntpd/refclock_pst.c			new
external/bsd/ntp/dist/ntpd/refclock_ripencc.c			new
external/bsd/ntp/dist/ntpd/refclock_shm.c			new
external/bsd/ntp/dist/ntpd/refclock_tpro.c			new
external/bsd/ntp/dist/ntpd/refclock_true.c			new
external/bsd/ntp/dist/ntpd/refclock_tsyncpci.c			new
external/bsd/ntp/dist/ntpd/refclock_tt560.c			new
external/bsd/ntp/dist/ntpd/refclock_ulink.c			new
external/bsd/ntp/dist/ntpd/refclock_wwv.c			new
external/bsd/ntp/dist/ntpd/refclock_wwvb.c			new
external/bsd/ntp/dist/ntpd/refclock_zyfer.c			new
external/bsd/ntp/dist/ntpdate/Makefile.am			new
external/bsd/ntp/dist/ntpdate/Makefile.in			new
external/bsd/ntp/dist/ntpdate/README				new
external/bsd/ntp/dist/ntpdate/ntpdate.c				new
external/bsd/ntp/dist/ntpdate/ntpdate.h				new
external/bsd/ntp/dist/ntpdc/Makefile.am				new
external/bsd/ntp/dist/ntpdc/Makefile.in				new
external/bsd/ntp/dist/ntpdc/README				new
external/bsd/ntp/dist/ntpdc/invoke-ntpdc.menu			new
external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi			new
external/bsd/ntp/dist/ntpdc/layout.std				new
external/bsd/ntp/dist/ntpdc/nl.pl				new
external/bsd/ntp/dist/ntpdc/nl.pl.in				new
external/bsd/ntp/dist/ntpdc/nl_in.c				new
external/bsd/ntp/dist/ntpdc/ntpdc-layout.c			new
external/bsd/ntp/dist/ntpdc/ntpdc-opts.c			new
external/bsd/ntp/dist/ntpdc/ntpdc-opts.def			new
external/bsd/ntp/dist/ntpdc/ntpdc-opts.h			new
external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman			new
external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc			new
external/bsd/ntp/dist/ntpdc/ntpdc.c				new
external/bsd/ntp/dist/ntpdc/ntpdc.h				new
external/bsd/ntp/dist/ntpdc/ntpdc.html				new
external/bsd/ntp/dist/ntpdc/ntpdc.man.in			new
external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in			new
external/bsd/ntp/dist/ntpdc/ntpdc.texi				new
external/bsd/ntp/dist/ntpdc/ntpdc_ops.c				new
external/bsd/ntp/dist/ntpq/Makefile.am				new
external/bsd/ntp/dist/ntpq/Makefile.in				new
external/bsd/ntp/dist/ntpq/README				new
external/bsd/ntp/dist/ntpq/invoke-ntpq.menu			new
external/bsd/ntp/dist/ntpq/invoke-ntpq.texi			new
external/bsd/ntp/dist/ntpq/libntpq.c				new
external/bsd/ntp/dist/ntpq/libntpq.h				new
external/bsd/ntp/dist/ntpq/libntpq_subs.c			new
external/bsd/ntp/dist/ntpq/ntpq-opts.c				new
external/bsd/ntp/dist/ntpq/ntpq-opts.def			new
external/bsd/ntp/dist/ntpq/ntpq-opts.h				new
external/bsd/ntp/dist/ntpq/ntpq-subs.c				new
external/bsd/ntp/dist/ntpq/ntpq.1ntpqman			new
external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc			new
external/bsd/ntp/dist/ntpq/ntpq.c				new
external/bsd/ntp/dist/ntpq/ntpq.h				new
external/bsd/ntp/dist/ntpq/ntpq.html				new
external/bsd/ntp/dist/ntpq/ntpq.man.in				new
external/bsd/ntp/dist/ntpq/ntpq.mdoc.in				new
external/bsd/ntp/dist/ntpq/ntpq.texi				new
external/bsd/ntp/dist/ntpsnmpd/Makefile.am			new
external/bsd/ntp/dist/ntpsnmpd/Makefile.in			new
external/bsd/ntp/dist/ntpsnmpd/README				new
external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.menu		new
external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi		new
external/bsd/ntp/dist/ntpsnmpd/netsnmp_daemonize.c		new
external/bsd/ntp/dist/ntpsnmpd/ntpSnmpSubagentObject.c		new
external/bsd/ntp/dist/ntpsnmpd/ntpSnmpSubagentObject.h		new
external/bsd/ntp/dist/ntpsnmpd/ntp_snmp.h			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.def		new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman		new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc		new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.c			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.texi			new
external/bsd/ntp/dist/ntpsnmpd/ntpv4-mib.mib			new
external/bsd/ntp/dist/parseutil/Makefile.am			new
external/bsd/ntp/dist/parseutil/Makefile.in			new
external/bsd/ntp/dist/parseutil/README				new
external/bsd/ntp/dist/parseutil/dcfd.c				new
external/bsd/ntp/dist/parseutil/testdcf.c			new
external/bsd/ntp/dist/scripts/Makefile.am			new
external/bsd/ntp/dist/scripts/Makefile.in			new
external/bsd/ntp/dist/scripts/README				new
external/bsd/ntp/dist/scripts/invoke-plot_summary.menu		new
external/bsd/ntp/dist/scripts/invoke-plot_summary.texi		new
external/bsd/ntp/dist/scripts/invoke-summary.menu		new
external/bsd/ntp/dist/scripts/invoke-summary.texi		new
external/bsd/ntp/dist/scripts/ntpver.in				new
external/bsd/ntp/dist/scripts/plot_summary-opts			new
external/bsd/ntp/dist/scripts/plot_summary-opts.def		new
external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman	new
external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc	new
external/bsd/ntp/dist/scripts/plot_summary.html			new
external/bsd/ntp/dist/scripts/plot_summary.in			new
external/bsd/ntp/dist/scripts/plot_summary.man.in		new
external/bsd/ntp/dist/scripts/plot_summary.mdoc.in		new
external/bsd/ntp/dist/scripts/plot_summary.texi			new
external/bsd/ntp/dist/scripts/summary-opts			new
external/bsd/ntp/dist/scripts/summary-opts.def			new
external/bsd/ntp/dist/scripts/summary.1summaryman		new
external/bsd/ntp/dist/scripts/summary.1summarymdoc		new
external/bsd/ntp/dist/scripts/summary.html			new
external/bsd/ntp/dist/scripts/summary.in			new
external/bsd/ntp/dist/scripts/summary.man.in			new
external/bsd/ntp/dist/scripts/summary.mdoc.in			new
external/bsd/ntp/dist/scripts/summary.texi			new
external/bsd/ntp/dist/scripts/build/Makefile.am			new
external/bsd/ntp/dist/scripts/build/Makefile.in			new
external/bsd/ntp/dist/scripts/build/UpdatePoint			new
external/bsd/ntp/dist/scripts/build/VersionName			new
external/bsd/ntp/dist/scripts/build/check--help			new
external/bsd/ntp/dist/scripts/build/checkChangeLog		new
external/bsd/ntp/dist/scripts/build/checkHtmlFileDates		new
external/bsd/ntp/dist/scripts/build/fixautomakedepsmagic	new
external/bsd/ntp/dist/scripts/build/genCommitLog		new
external/bsd/ntp/dist/scripts/build/genver			new
external/bsd/ntp/dist/scripts/build/mkver.in			new
external/bsd/ntp/dist/scripts/build/updateBEDate		new
external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.am		new
external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in		new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj-opts	new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj-opts.def new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmannew
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html	new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.in	new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in	new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in	new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.texi	new
external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.menu new
external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi new
external/bsd/ntp/dist/scripts/deprecated/freq_adj.in		new
external/bsd/ntp/dist/scripts/deprecated/hpadjtime.sh		new
external/bsd/ntp/dist/scripts/deprecated/html2man.in		new
external/bsd/ntp/dist/scripts/deprecated/ntp-close		new
external/bsd/ntp/dist/scripts/deprecated/ntp-groper		new
external/bsd/ntp/dist/scripts/deprecated/ntp-restart		new
external/bsd/ntp/dist/scripts/deprecated/ntp-status		new
external/bsd/ntp/dist/scripts/lib/Makefile.am			new
external/bsd/ntp/dist/scripts/lib/Makefile.in			new
external/bsd/ntp/dist/scripts/lib/NTP/Util.pm			new
external/bsd/ntp/dist/scripts/monitoring/README			new
external/bsd/ntp/dist/scripts/monitoring/loopwatch.config.SAMPLE new
external/bsd/ntp/dist/scripts/monitoring/lr.pl			new
external/bsd/ntp/dist/scripts/monitoring/ntp.pl			new
external/bsd/ntp/dist/scripts/monitoring/ntploopstat		new
external/bsd/ntp/dist/scripts/monitoring/ntploopwatch		new
external/bsd/ntp/dist/scripts/monitoring/ntptrap		new
external/bsd/ntp/dist/scripts/monitoring/timelocal.pl		new
external/bsd/ntp/dist/scripts/ntp-wait/Makefile.am		new
external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in		new
external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.menu	new
external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi	new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts		new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts.def	new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman	new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc	new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html		new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.in		new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in		new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in		new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.texi		new
external/bsd/ntp/dist/scripts/ntpsweep/Makefile.am		new
external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in		new
external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.menu	new
external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi	new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts		new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts.def	new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman	new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc	new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html		new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.in		new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in		new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in		new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.texi		new
external/bsd/ntp/dist/scripts/ntptrace/Makefile.am		new
external/bsd/ntp/dist/scripts/ntptrace/Makefile.in		new
external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.menu	new
external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi	new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts		new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts.def	new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman	new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc	new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html		new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.in		new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in		new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in		new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.texi		new
external/bsd/ntp/dist/scripts/rc/README				new
external/bsd/ntp/dist/scripts/rc/ntpd				new
external/bsd/ntp/dist/scripts/rc/ntpwait			new
external/bsd/ntp/dist/scripts/rc/rc.d/TIMESYNC			new
external/bsd/ntp/dist/scripts/rc/rc.d/ntpd			new
external/bsd/ntp/dist/scripts/rc/rc.d/ntpwait			new
external/bsd/ntp/dist/scripts/stats/README			new
external/bsd/ntp/dist/scripts/stats/README.stats		new
external/bsd/ntp/dist/scripts/stats/README.timecodes		new
external/bsd/ntp/dist/scripts/stats/clock.awk			new
external/bsd/ntp/dist/scripts/stats/dupe.awk			new
external/bsd/ntp/dist/scripts/stats/ensemble.S			new
external/bsd/ntp/dist/scripts/stats/ensemble.awk		new
external/bsd/ntp/dist/scripts/stats/etf.S			new
external/bsd/ntp/dist/scripts/stats/etf.awk			new
external/bsd/ntp/dist/scripts/stats/itf.S			new
external/bsd/ntp/dist/scripts/stats/itf.awk			new
external/bsd/ntp/dist/scripts/stats/loop.S			new
external/bsd/ntp/dist/scripts/stats/loop.awk			new
external/bsd/ntp/dist/scripts/stats/loop_summary		new
external/bsd/ntp/dist/scripts/stats/peer.awk			new
external/bsd/ntp/dist/scripts/stats/psummary.awk		new
external/bsd/ntp/dist/scripts/stats/summary.sh			new
external/bsd/ntp/dist/scripts/stats/tdata.S			new
external/bsd/ntp/dist/scripts/stats/tdata.awk			new
external/bsd/ntp/dist/sntp/COPYRIGHT				new
external/bsd/ntp/dist/sntp/Makefile.am				new
external/bsd/ntp/dist/sntp/Makefile.in				new
external/bsd/ntp/dist/sntp/aclocal.m4				new
external/bsd/ntp/dist/sntp/bincheck.mf				new
external/bsd/ntp/dist/sntp/check-libntp.mf			new
external/bsd/ntp/dist/sntp/check-libopts.mf			new
external/bsd/ntp/dist/sntp/config.h.in				new
external/bsd/ntp/dist/sntp/configure				new
external/bsd/ntp/dist/sntp/configure.ac				new
external/bsd/ntp/dist/sntp/crypto.c				new
external/bsd/ntp/dist/sntp/crypto.h				new
external/bsd/ntp/dist/sntp/data_formats.h			new
external/bsd/ntp/dist/sntp/deps-ver				new
external/bsd/ntp/dist/sntp/depsver.mf				new
external/bsd/ntp/dist/sntp/evlog.c				new
external/bsd/ntp/dist/sntp/includes.mf				new
external/bsd/ntp/dist/sntp/install-sh				new
external/bsd/ntp/dist/sntp/invoke-sntp.menu			new
external/bsd/ntp/dist/sntp/invoke-sntp.texi			new
external/bsd/ntp/dist/sntp/kod_management.c			new
external/bsd/ntp/dist/sntp/kod_management.h			new
external/bsd/ntp/dist/sntp/log.c				new
external/bsd/ntp/dist/sntp/log.h				new
external/bsd/ntp/dist/sntp/main.c				new
external/bsd/ntp/dist/sntp/main.h				new
external/bsd/ntp/dist/sntp/networking.c				new
external/bsd/ntp/dist/sntp/networking.h				new
external/bsd/ntp/dist/sntp/scm-rev				new
external/bsd/ntp/dist/sntp/sntp-opts.c				new
external/bsd/ntp/dist/sntp/sntp-opts.def			new
external/bsd/ntp/dist/sntp/sntp-opts.h				new
external/bsd/ntp/dist/sntp/sntp.1sntpman			new
external/bsd/ntp/dist/sntp/sntp.1sntpmdoc			new
external/bsd/ntp/dist/sntp/sntp.c				new
external/bsd/ntp/dist/sntp/sntp.html				new
external/bsd/ntp/dist/sntp/sntp.man.in				new
external/bsd/ntp/dist/sntp/sntp.mdoc.in				new
external/bsd/ntp/dist/sntp/sntp.texi				new
external/bsd/ntp/dist/sntp/tests_main.cpp			new
external/bsd/ntp/dist/sntp/tests_main.h				new
external/bsd/ntp/dist/sntp/utilities.c				new
external/bsd/ntp/dist/sntp/utilities.h				new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/Mdoc.pm			new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/agman-cmd.tpl		new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/agmdoc-cmd.tpl		new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/cmd-doc.tlib		new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/mdoc-synopsis.tlib	new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/mdoc2man		new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/mdoc2texi		new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/perlopt.tpl		new
external/bsd/ntp/dist/sntp/event2/event-config.h		new
external/bsd/ntp/dist/sntp/include/Makefile.am			new
external/bsd/ntp/dist/sntp/include/Makefile.in			new
external/bsd/ntp/dist/sntp/include/autogen-version.def		new
external/bsd/ntp/dist/sntp/include/copyright.def		new
external/bsd/ntp/dist/sntp/include/debug-opt.def		new
external/bsd/ntp/dist/sntp/include/homerc.def			new
external/bsd/ntp/dist/sntp/include/ntp.lic			new
external/bsd/ntp/dist/sntp/include/version.def			new
external/bsd/ntp/dist/sntp/include/version.texi			new
external/bsd/ntp/dist/sntp/libevent/ChangeLog			new
external/bsd/ntp/dist/sntp/libevent/ChangeLog-1.4		new
external/bsd/ntp/dist/sntp/libevent/ChangeLog-2.0		new
external/bsd/ntp/dist/sntp/libevent/Doxyfile			new
external/bsd/ntp/dist/sntp/libevent/LICENSE			new
external/bsd/ntp/dist/sntp/libevent/Makefile.am			new
external/bsd/ntp/dist/sntp/libevent/Makefile.in			new
external/bsd/ntp/dist/sntp/libevent/Makefile.nmake		new
external/bsd/ntp/dist/sntp/libevent/README			new
external/bsd/ntp/dist/sntp/libevent/aclocal.m4			new
external/bsd/ntp/dist/sntp/libevent/arc4random.c		new
external/bsd/ntp/dist/sntp/libevent/autogen.sh			new
external/bsd/ntp/dist/sntp/libevent/buffer.c			new
external/bsd/ntp/dist/sntp/libevent/buffer_iocp.c		new
external/bsd/ntp/dist/sntp/libevent/bufferevent-internal.h	new
external/bsd/ntp/dist/sntp/libevent/bufferevent.c		new
external/bsd/ntp/dist/sntp/libevent/bufferevent_async.c		new
external/bsd/ntp/dist/sntp/libevent/bufferevent_filter.c	new
external/bsd/ntp/dist/sntp/libevent/bufferevent_openssl.c	new
external/bsd/ntp/dist/sntp/libevent/bufferevent_pair.c		new
external/bsd/ntp/dist/sntp/libevent/bufferevent_ratelim.c	new
external/bsd/ntp/dist/sntp/libevent/bufferevent_sock.c		new
external/bsd/ntp/dist/sntp/libevent/changelist-internal.h	new
external/bsd/ntp/dist/sntp/libevent/config.h.in			new
external/bsd/ntp/dist/sntp/libevent/configure			new
external/bsd/ntp/dist/sntp/libevent/configure.ac		new
external/bsd/ntp/dist/sntp/libevent/defer-internal.h		new
external/bsd/ntp/dist/sntp/libevent/devpoll.c			new
external/bsd/ntp/dist/sntp/libevent/epoll.c			new
external/bsd/ntp/dist/sntp/libevent/epoll_sub.c			new
external/bsd/ntp/dist/sntp/libevent/epolltable-internal.h	new
external/bsd/ntp/dist/sntp/libevent/evbuffer-internal.h		new
external/bsd/ntp/dist/sntp/libevent/evconfig-private.h		new
external/bsd/ntp/dist/sntp/libevent/evconfig-private.h.in	new
external/bsd/ntp/dist/sntp/libevent/evdns.c			new
external/bsd/ntp/dist/sntp/libevent/event-internal.h		new
external/bsd/ntp/dist/sntp/libevent/event.c			new
external/bsd/ntp/dist/sntp/libevent/event_iocp.c		new
external/bsd/ntp/dist/sntp/libevent/event_rpcgen.py		new
external/bsd/ntp/dist/sntp/libevent/event_tagging.c		new
external/bsd/ntp/dist/sntp/libevent/evmap-internal.h		new
external/bsd/ntp/dist/sntp/libevent/evmap.c			new
external/bsd/ntp/dist/sntp/libevent/evport.c			new
external/bsd/ntp/dist/sntp/libevent/evrpc-internal.h		new
external/bsd/ntp/dist/sntp/libevent/evrpc.c			new
external/bsd/ntp/dist/sntp/libevent/evsignal-internal.h		new
external/bsd/ntp/dist/sntp/libevent/evthread-internal.h		new
external/bsd/ntp/dist/sntp/libevent/evthread.c			new
external/bsd/ntp/dist/sntp/libevent/evthread_pthread.c		new
external/bsd/ntp/dist/sntp/libevent/evthread_win32.c		new
external/bsd/ntp/dist/sntp/libevent/evutil.c			new
external/bsd/ntp/dist/sntp/libevent/evutil_rand.c		new
external/bsd/ntp/dist/sntp/libevent/evutil_time.c		new
external/bsd/ntp/dist/sntp/libevent/ht-internal.h		new
external/bsd/ntp/dist/sntp/libevent/http-internal.h		new
external/bsd/ntp/dist/sntp/libevent/http.c			new
external/bsd/ntp/dist/sntp/libevent/iocp-internal.h		new
external/bsd/ntp/dist/sntp/libevent/ipv6-internal.h		new
external/bsd/ntp/dist/sntp/libevent/kqueue-internal.h		new
external/bsd/ntp/dist/sntp/libevent/kqueue.c			new
external/bsd/ntp/dist/sntp/libevent/libevent.pc.in		new
external/bsd/ntp/dist/sntp/libevent/libevent_openssl.pc.in	new
external/bsd/ntp/dist/sntp/libevent/libevent_pthreads.pc.in	new
external/bsd/ntp/dist/sntp/libevent/listener.c			new
external/bsd/ntp/dist/sntp/libevent/log-internal.h		new
external/bsd/ntp/dist/sntp/libevent/log.c			new
external/bsd/ntp/dist/sntp/libevent/make-event-config.sed	new
external/bsd/ntp/dist/sntp/libevent/minheap-internal.h		new
external/bsd/ntp/dist/sntp/libevent/mm-internal.h		new
external/bsd/ntp/dist/sntp/libevent/poll.c			new
external/bsd/ntp/dist/sntp/libevent/ratelim-internal.h		new
external/bsd/ntp/dist/sntp/libevent/select.c			new
external/bsd/ntp/dist/sntp/libevent/signal.c			new
external/bsd/ntp/dist/sntp/libevent/strlcpy-internal.h		new
external/bsd/ntp/dist/sntp/libevent/strlcpy.c			new
external/bsd/ntp/dist/sntp/libevent/time-internal.h		new
external/bsd/ntp/dist/sntp/libevent/util-internal.h		new
external/bsd/ntp/dist/sntp/libevent/whatsnew-2.0.txt		new
external/bsd/ntp/dist/sntp/libevent/whatsnew-2.1.txt		new
external/bsd/ntp/dist/sntp/libevent/win32select.c		new
external/bsd/ntp/dist/sntp/libevent/WIN32-Code/tree.h		new
external/bsd/ntp/dist/sntp/libevent/WIN32-Code/nmake/evconfig-private.h new
external/bsd/ntp/dist/sntp/libevent/WIN32-Code/nmake/event2/event-config.h new
external/bsd/ntp/dist/sntp/libevent/build-aux/compile		new
external/bsd/ntp/dist/sntp/libevent/build-aux/config.guess	new
external/bsd/ntp/dist/sntp/libevent/build-aux/config.sub	new
external/bsd/ntp/dist/sntp/libevent/build-aux/depcomp		new
external/bsd/ntp/dist/sntp/libevent/build-aux/install-sh	new
external/bsd/ntp/dist/sntp/libevent/build-aux/ltmain.sh		new
external/bsd/ntp/dist/sntp/libevent/build-aux/missing		new
external/bsd/ntp/dist/sntp/libevent/build-aux/ylwrap		new
external/bsd/ntp/dist/sntp/libevent/compat/sys/queue.h		new
external/bsd/ntp/dist/sntp/libevent/include/evdns.h		new
external/bsd/ntp/dist/sntp/libevent/include/event.h		new
external/bsd/ntp/dist/sntp/libevent/include/evhttp.h		new
external/bsd/ntp/dist/sntp/libevent/include/evrpc.h		new
external/bsd/ntp/dist/sntp/libevent/include/evutil.h		new
external/bsd/ntp/dist/sntp/libevent/include/include.am		new
external/bsd/ntp/dist/sntp/libevent/include/event2/buffer.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/buffer_compat.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent_compat.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent_ssl.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent_struct.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/dns.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/dns_compat.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/dns_struct.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/event.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/event_compat.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/event_struct.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/http.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/http_compat.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/http_struct.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/keyvalq_struct.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/listener.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/rpc.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/rpc_compat.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/rpc_struct.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/tag.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/tag_compat.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/thread.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/util.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/visibility.h	new
external/bsd/ntp/dist/sntp/libevent/m4/ac_backport_259_ssizet.m4 new
external/bsd/ntp/dist/sntp/libevent/m4/libevent_openssl.m4	new
external/bsd/ntp/dist/sntp/libevent/m4/libtool.m4		new
external/bsd/ntp/dist/sntp/libevent/m4/ltoptions.m4		new
external/bsd/ntp/dist/sntp/libevent/m4/ltsugar.m4		new
external/bsd/ntp/dist/sntp/libevent/m4/ltversion.m4		new
external/bsd/ntp/dist/sntp/libevent/m4/lt~obsolete.m4		new
external/bsd/ntp/dist/sntp/libevent/m4/ntp_pkg_config.m4	new
external/bsd/ntp/dist/sntp/libevent/m4/openldap-thread-check.m4	new
external/bsd/ntp/dist/sntp/libevent/m4/openldap.m4		new
external/bsd/ntp/dist/sntp/libevent/sample/dns-example.c	new
external/bsd/ntp/dist/sntp/libevent/sample/event-read-fifo.c	new
external/bsd/ntp/dist/sntp/libevent/sample/hello-world.c	new
external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.c		new
external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.h		new
external/bsd/ntp/dist/sntp/libevent/sample/http-server.c	new
external/bsd/ntp/dist/sntp/libevent/sample/https-client.c	new
external/bsd/ntp/dist/sntp/libevent/sample/include.am		new
external/bsd/ntp/dist/sntp/libevent/sample/le-proxy.c		new
external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.cnew
external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.hnew
external/bsd/ntp/dist/sntp/libevent/sample/signal-test.c	new
external/bsd/ntp/dist/sntp/libevent/sample/time-test.c		new
external/bsd/ntp/dist/sntp/libevent/test/Makefile.nmake		new
external/bsd/ntp/dist/sntp/libevent/test/bench.c		new
external/bsd/ntp/dist/sntp/libevent/test/bench_cascade.c	new
external/bsd/ntp/dist/sntp/libevent/test/bench_http.c		new
external/bsd/ntp/dist/sntp/libevent/test/bench_httpclient.c	new
external/bsd/ntp/dist/sntp/libevent/test/check-dumpevents.py	new
external/bsd/ntp/dist/sntp/libevent/test/include.am		new
external/bsd/ntp/dist/sntp/libevent/test/regress.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress.gen.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress.gen.h		new
external/bsd/ntp/dist/sntp/libevent/test/regress.h		new
external/bsd/ntp/dist/sntp/libevent/test/regress.rpc		new
external/bsd/ntp/dist/sntp/libevent/test/regress_buffer.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_bufferevent.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_dns.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_et.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_finalize.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_http.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_iocp.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_listener.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_main.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_minheap.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_rpc.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_ssl.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_testutils.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_testutils.h	new
external/bsd/ntp/dist/sntp/libevent/test/regress_thread.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_thread.h	new
external/bsd/ntp/dist/sntp/libevent/test/regress_util.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_zlib.c		new
external/bsd/ntp/dist/sntp/libevent/test/rpcgen_wrapper.sh	new
external/bsd/ntp/dist/sntp/libevent/test/test-changelist.c	new
external/bsd/ntp/dist/sntp/libevent/test/test-closed.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-dumpevents.c	new
external/bsd/ntp/dist/sntp/libevent/test/test-eof.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-fdleak.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-init.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-ratelim.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-time.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-weof.c		new
external/bsd/ntp/dist/sntp/libevent/test/test.sh		new
external/bsd/ntp/dist/sntp/libevent/test/tinytest.c		new
external/bsd/ntp/dist/sntp/libevent/test/tinytest.h		new
external/bsd/ntp/dist/sntp/libevent/test/tinytest_local.h	new
external/bsd/ntp/dist/sntp/libevent/test/tinytest_macros.h	new
external/bsd/ntp/dist/sntp/libopts/COPYING.gplv3		new
external/bsd/ntp/dist/sntp/libopts/COPYING.lgplv3		new
external/bsd/ntp/dist/sntp/libopts/COPYING.mbsd			new
external/bsd/ntp/dist/sntp/libopts/MakeDefs.inc			new
external/bsd/ntp/dist/sntp/libopts/Makefile.am			new
external/bsd/ntp/dist/sntp/libopts/Makefile.in			new
external/bsd/ntp/dist/sntp/libopts/README			new
external/bsd/ntp/dist/sntp/libopts/ag-char-map.h		new
external/bsd/ntp/dist/sntp/libopts/alias.c			new
external/bsd/ntp/dist/sntp/libopts/ao-strs.c			new
external/bsd/ntp/dist/sntp/libopts/ao-strs.h			new
external/bsd/ntp/dist/sntp/libopts/autoopts.c			new
external/bsd/ntp/dist/sntp/libopts/autoopts.h			new
external/bsd/ntp/dist/sntp/libopts/boolean.c			new
external/bsd/ntp/dist/sntp/libopts/check.c			new
external/bsd/ntp/dist/sntp/libopts/configfile.c			new
external/bsd/ntp/dist/sntp/libopts/cook.c			new
external/bsd/ntp/dist/sntp/libopts/enum.c			new
external/bsd/ntp/dist/sntp/libopts/env.c			new
external/bsd/ntp/dist/sntp/libopts/file.c			new
external/bsd/ntp/dist/sntp/libopts/find.c			new
external/bsd/ntp/dist/sntp/libopts/genshell.c			new
external/bsd/ntp/dist/sntp/libopts/genshell.h			new
external/bsd/ntp/dist/sntp/libopts/gettext.h			new
external/bsd/ntp/dist/sntp/libopts/init.c			new
external/bsd/ntp/dist/sntp/libopts/intprops.h			new
external/bsd/ntp/dist/sntp/libopts/libopts.c			new
external/bsd/ntp/dist/sntp/libopts/load.c			new
external/bsd/ntp/dist/sntp/libopts/makeshell.c			new
external/bsd/ntp/dist/sntp/libopts/nested.c			new
external/bsd/ntp/dist/sntp/libopts/numeric.c			new
external/bsd/ntp/dist/sntp/libopts/option-value-type.c		new
external/bsd/ntp/dist/sntp/libopts/option-value-type.h		new
external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.c	new
external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.h	new
external/bsd/ntp/dist/sntp/libopts/parse-duration.c		new
external/bsd/ntp/dist/sntp/libopts/parse-duration.h		new
external/bsd/ntp/dist/sntp/libopts/pgusage.c			new
external/bsd/ntp/dist/sntp/libopts/proto.h			new
external/bsd/ntp/dist/sntp/libopts/putshell.c			new
external/bsd/ntp/dist/sntp/libopts/reset.c			new
external/bsd/ntp/dist/sntp/libopts/restore.c			new
external/bsd/ntp/dist/sntp/libopts/save.c			new
external/bsd/ntp/dist/sntp/libopts/sort.c			new
external/bsd/ntp/dist/sntp/libopts/stack.c			new
external/bsd/ntp/dist/sntp/libopts/stdnoreturn.in.h		new
external/bsd/ntp/dist/sntp/libopts/streqvcmp.c			new
external/bsd/ntp/dist/sntp/libopts/text_mmap.c			new
external/bsd/ntp/dist/sntp/libopts/time.c			new
external/bsd/ntp/dist/sntp/libopts/tokenize.c			new
external/bsd/ntp/dist/sntp/libopts/usage.c			new
external/bsd/ntp/dist/sntp/libopts/version.c			new
external/bsd/ntp/dist/sntp/libopts/autoopts/options.h		new
external/bsd/ntp/dist/sntp/libopts/autoopts/project.h		new
external/bsd/ntp/dist/sntp/libopts/autoopts/usage-txt.h		new
external/bsd/ntp/dist/sntp/libopts/compat/_Noreturn.h		new
external/bsd/ntp/dist/sntp/libopts/compat/compat.h		new
external/bsd/ntp/dist/sntp/libopts/compat/pathfind.c		new
external/bsd/ntp/dist/sntp/libopts/compat/snprintf.c		new
external/bsd/ntp/dist/sntp/libopts/compat/strchr.c		new
external/bsd/ntp/dist/sntp/libopts/compat/strdup.c		new
external/bsd/ntp/dist/sntp/libopts/compat/windows-config.h	new
external/bsd/ntp/dist/sntp/libopts/m4/libopts.m4		new
external/bsd/ntp/dist/sntp/libopts/m4/liboptschk.m4		new
external/bsd/ntp/dist/sntp/libopts/m4/stdnoreturn.m4		new
external/bsd/ntp/dist/sntp/loc/README				new
external/bsd/ntp/dist/sntp/loc/darwin				new
external/bsd/ntp/dist/sntp/loc/debian				new
external/bsd/ntp/dist/sntp/loc/freebsd				new
external/bsd/ntp/dist/sntp/loc/legacy				new
external/bsd/ntp/dist/sntp/loc/netbsd				new
external/bsd/ntp/dist/sntp/loc/redhat				new
external/bsd/ntp/dist/sntp/loc/solaris				new
external/bsd/ntp/dist/sntp/m4/define_dir.m4			new
external/bsd/ntp/dist/sntp/m4/hms_search_lib.m4			new
external/bsd/ntp/dist/sntp/m4/libtool.m4			new
external/bsd/ntp/dist/sntp/m4/ltoptions.m4			new
external/bsd/ntp/dist/sntp/m4/ltsugar.m4			new
external/bsd/ntp/dist/sntp/m4/ltversion.m4			new
external/bsd/ntp/dist/sntp/m4/lt~obsolete.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_cacheversion.m4		new
external/bsd/ntp/dist/sntp/m4/ntp_compiler.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_crosscompile.m4		new
external/bsd/ntp/dist/sntp/m4/ntp_crypto_rand.m4		new
external/bsd/ntp/dist/sntp/m4/ntp_debug.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_dir_sep.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_facilitynames.m4		new
external/bsd/ntp/dist/sntp/m4/ntp_googletest.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_ipv6.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_lib_m.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_lineeditlibs.m4		new
external/bsd/ntp/dist/sntp/m4/ntp_locinfo.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_openssl.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_pkg_config.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_prog_cc.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_rlimit.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_sntp.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_sysexits.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_ver_suffix.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_vpathhack.m4			new
external/bsd/ntp/dist/sntp/m4/os_cflags.m4			new
external/bsd/ntp/dist/sntp/m4/snprintf.m4			new
external/bsd/ntp/dist/sntp/m4/version.m4			new
external/bsd/ntp/dist/sntp/scripts/Makefile.am			new
external/bsd/ntp/dist/sntp/scripts/Makefile.in			new
external/bsd/ntp/dist/sntp/scripts/cvo.sh			new
external/bsd/ntp/dist/sntp/scripts/genLocInfo			new
external/bsd/ntp/dist/sntp/scripts/mansec2subst.sed		new
external/bsd/ntp/dist/sntp/tests/Makefile.am			new
external/bsd/ntp/dist/sntp/tests/Makefile.in			new
external/bsd/ntp/dist/sntp/tests/crypto.cpp			new
external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h		new
external/bsd/ntp/dist/sntp/tests/keyFile.cpp			new
external/bsd/ntp/dist/sntp/tests/kodDatabase.cpp		new
external/bsd/ntp/dist/sntp/tests/kodFile.cpp			new
external/bsd/ntp/dist/sntp/tests/networking.cpp			new
external/bsd/ntp/dist/sntp/tests/packetHandling.cpp		new
external/bsd/ntp/dist/sntp/tests/packetProcessing.cpp		new
external/bsd/ntp/dist/sntp/tests/sntptest.h			new
external/bsd/ntp/dist/sntp/tests/tests-runner			new
external/bsd/ntp/dist/sntp/tests/utilities.cpp			new
external/bsd/ntp/dist/sntp/tests/data/debug-input-lfp-bin	new
external/bsd/ntp/dist/sntp/tests/data/debug-input-lfp-dec	new
external/bsd/ntp/dist/sntp/tests/data/debug-input-pkt		new
external/bsd/ntp/dist/sntp/tests/data/key-test-ascii		new
external/bsd/ntp/dist/sntp/tests/data/key-test-comments		new
external/bsd/ntp/dist/sntp/tests/data/key-test-empty		new
external/bsd/ntp/dist/sntp/tests/data/key-test-hex		new
external/bsd/ntp/dist/sntp/tests/data/key-test-invalid-hex	new
external/bsd/ntp/dist/sntp/tests/data/kod-expected-multiple	new
external/bsd/ntp/dist/sntp/tests/data/kod-expected-single	new
external/bsd/ntp/dist/sntp/tests/data/kod-test-blanks		new
external/bsd/ntp/dist/sntp/tests/data/kod-test-correct		new
external/bsd/ntp/dist/sntp/tests/data/kod-test-empty		new
external/bsd/ntp/dist/tests/Makefile.am				new
external/bsd/ntp/dist/tests/Makefile.in				new
external/bsd/ntp/dist/tests/libntp/Makefile.am			new
external/bsd/ntp/dist/tests/libntp/Makefile.in			new
external/bsd/ntp/dist/tests/libntp/a_md5encrypt.cpp		new
external/bsd/ntp/dist/tests/libntp/atoint.cpp			new
external/bsd/ntp/dist/tests/libntp/atouint.cpp			new
external/bsd/ntp/dist/tests/libntp/authkeys.cpp			new
external/bsd/ntp/dist/tests/libntp/buftvtots.cpp		new
external/bsd/ntp/dist/tests/libntp/calendar.cpp			new
external/bsd/ntp/dist/tests/libntp/caljulian.cpp		new
external/bsd/ntp/dist/tests/libntp/caltontp.cpp			new
external/bsd/ntp/dist/tests/libntp/calyearstart.cpp		new
external/bsd/ntp/dist/tests/libntp/clocktime.cpp		new
external/bsd/ntp/dist/tests/libntp/decodenetnum.cpp		new
external/bsd/ntp/dist/tests/libntp/hextoint.cpp			new
external/bsd/ntp/dist/tests/libntp/hextolfp.cpp			new
external/bsd/ntp/dist/tests/libntp/humandate.cpp		new
external/bsd/ntp/dist/tests/libntp/lfpfunc.cpp			new
external/bsd/ntp/dist/tests/libntp/lfptest.h			new
external/bsd/ntp/dist/tests/libntp/lfptostr.cpp			new
external/bsd/ntp/dist/tests/libntp/libntptest.cpp		new
external/bsd/ntp/dist/tests/libntp/libntptest.h			new
external/bsd/ntp/dist/tests/libntp/modetoa.cpp			new
external/bsd/ntp/dist/tests/libntp/msyslog.cpp			new
external/bsd/ntp/dist/tests/libntp/netof.cpp			new
external/bsd/ntp/dist/tests/libntp/numtoa.cpp			new
external/bsd/ntp/dist/tests/libntp/numtohost.cpp		new
external/bsd/ntp/dist/tests/libntp/octtoint.cpp			new
external/bsd/ntp/dist/tests/libntp/prettydate.cpp		new
external/bsd/ntp/dist/tests/libntp/recvbuff.cpp			new
external/bsd/ntp/dist/tests/libntp/refnumtoa.cpp		new
external/bsd/ntp/dist/tests/libntp/sfptostr.cpp			new
external/bsd/ntp/dist/tests/libntp/sockaddrtest.h		new
external/bsd/ntp/dist/tests/libntp/socktoa.cpp			new
external/bsd/ntp/dist/tests/libntp/ssl_init.cpp			new
external/bsd/ntp/dist/tests/libntp/statestr.cpp			new
external/bsd/ntp/dist/tests/libntp/strtolfp.cpp			new
external/bsd/ntp/dist/tests/libntp/timespecops.cpp		new
external/bsd/ntp/dist/tests/libntp/timestructs.cpp		new
external/bsd/ntp/dist/tests/libntp/timestructs.h		new
external/bsd/ntp/dist/tests/libntp/timevalops.cpp		new
external/bsd/ntp/dist/tests/libntp/tstotv.cpp			new
external/bsd/ntp/dist/tests/libntp/tvtots.cpp			new
external/bsd/ntp/dist/tests/libntp/uglydate.cpp			new
external/bsd/ntp/dist/tests/libntp/vi64ops.cpp			new
external/bsd/ntp/dist/tests/libntp/ymd2yd.cpp			new
external/bsd/ntp/dist/tests/ntpd/Makefile.am			new
external/bsd/ntp/dist/tests/ntpd/Makefile.in			new
external/bsd/ntp/dist/tests/ntpd/leapsec.cpp			new
external/bsd/ntp/dist/tests/ntpd/ntpdtest.cpp			new
external/bsd/ntp/dist/tests/ntpd/ntpdtest.h			new
external/bsd/ntp/dist/util/Makefile.am				new
external/bsd/ntp/dist/util/Makefile.in				new
external/bsd/ntp/dist/util/README				new
external/bsd/ntp/dist/util/audio-pcm.c				new
external/bsd/ntp/dist/util/byteorder.c				new
external/bsd/ntp/dist/util/hist.c				new
external/bsd/ntp/dist/util/invoke-ntp-keygen.menu		new
external/bsd/ntp/dist/util/invoke-ntp-keygen.texi		new
external/bsd/ntp/dist/util/jitter.c				new
external/bsd/ntp/dist/util/jitter.h				new
external/bsd/ntp/dist/util/kern.c				new
external/bsd/ntp/dist/util/longsize.c				new
external/bsd/ntp/dist/util/ntp-keygen-opts.c			new
external/bsd/ntp/dist/util/ntp-keygen-opts.def			new
external/bsd/ntp/dist/util/ntp-keygen-opts.h			new
external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman		new
external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc		new
external/bsd/ntp/dist/util/ntp-keygen.c				new
external/bsd/ntp/dist/util/ntp-keygen.html			new
external/bsd/ntp/dist/util/ntp-keygen.man.in			new
external/bsd/ntp/dist/util/ntp-keygen.mdoc.in			new
external/bsd/ntp/dist/util/ntp-keygen.texi			new
external/bsd/ntp/dist/util/ntptime.c				new
external/bsd/ntp/dist/util/pps-api.c				new
external/bsd/ntp/dist/util/precision.c				new
external/bsd/ntp/dist/util/sht.c				new
external/bsd/ntp/dist/util/testrs6000.c				new
external/bsd/ntp/dist/util/tg.c					new
external/bsd/ntp/dist/util/tg2.c				new
external/bsd/ntp/dist/util/tickadj.c				new
external/bsd/ntp/dist/util/timetrim.c				new
external/bsd/ntp/html/Makefile					new
external/bsd/ntp/include/config.h				new
external/bsd/ntp/lib/Makefile					new
external/bsd/ntp/lib/Makefile.inc				new
external/bsd/ntp/lib/libiscntp/Makefile				new
external/bsd/ntp/lib/libntp/Makefile				new
external/bsd/ntp/lib/libopts/Makefile				new
external/bsd/ntp/lib/libparse/Makefile				new
external/bsd/ntp/scripts/mkver					new
usr.sbin/Makefile						patch
usr.sbin/ntp/Makefile						delete
usr.sbin/ntp/Makefile.inc					delete
usr.sbin/ntp/importdate						delete
usr.sbin/ntp/html/Makefile					delete
usr.sbin/ntp/include/config.h					delete
usr.sbin/ntp/libisc/Makefile					delete
usr.sbin/ntp/libntp/Makefile					delete
usr.sbin/ntp/libopts/Makefile					delete
usr.sbin/ntp/libparse/Makefile					delete
usr.sbin/ntp/ntp-keygen/Makefile				delete
usr.sbin/ntp/ntp-keygen/ntp-keygen.8				delete
usr.sbin/ntp/ntpd/Makefile					delete
usr.sbin/ntp/ntpd/ntpd.8					delete
usr.sbin/ntp/ntpdate/Makefile					delete
usr.sbin/ntp/ntpdate/ntpdate.8					delete
usr.sbin/ntp/ntpdc/Makefile					delete
usr.sbin/ntp/ntpdc/ntpdc.8					delete
usr.sbin/ntp/ntpq/Makefile					delete
usr.sbin/ntp/ntpq/ntpq.8					delete
usr.sbin/ntp/ntptime/Makefile					delete
usr.sbin/ntp/ntptime/ntptime.8					delete
usr.sbin/ntp/ntptrace/Makefile					delete
usr.sbin/ntp/ntptrace/ntptrace.8				delete
usr.sbin/ntp/ntptrace/ntptrace.awk				delete
usr.sbin/ntp/scripts/mkver					delete
usr.sbin/sntp/Makefile						delete
usr.sbin/sntp/sntp.1						delete

	Update ntp to 4.2.8. CVE-2014-9293, CVE-2014-9294, CVE-2014-9295,
	and CVE-2014-9296.
	[he, ticket #1938]
@
text
@a0 39094
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.68 for ntp4 4.2.8.
#
# Report bugs to <http://bugs.ntp.org./>.
#
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
# Foundation, Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

if test "x$CONFIG_SHELL" = x; then
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@@\"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '\${1+\"\$@@\"}'='\"\$@@\"'
  setopt NO_GLOB_SUBST
else
  case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi
"
  as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :

else
  exitcode=1; echo positional parameters were not saved.
fi
test x\$exitcode = x0 || exit 1"
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1

  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    PATH=/empty FPATH=/empty; export PATH FPATH
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  if (eval "$as_required") 2>/dev/null; then :
  as_have_required=yes
else
  as_have_required=no
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :

else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  as_found=:
  case $as_dir in #(
	 /*)
	   for as_base in sh bash ksh sh5; do
	     # Try only shells that exist, to save several forks.
	     as_shell=$as_dir/$as_base
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  break 2
fi
fi
	   done;;
       esac
  as_found=false
done
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi; }
IFS=$as_save_IFS


      if test "x$CONFIG_SHELL" != x; then :
  # We cannot yet assume a decent shell, so we have to provide a
	# neutralization value for shells without unset; and this also
	# works around shells that cannot unset nonexistent variables.
	# Preserve -v and -x to the replacement shell.
	BASH_ENV=/dev/null
	ENV=/dev/null
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
	export CONFIG_SHELL
	case $- in # ((((
	  *v*x* | *x*v* ) as_opts=-vx ;;
	  *v* ) as_opts=-v ;;
	  *x* ) as_opts=-x ;;
	  * ) as_opts= ;;
	esac
	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@@"}
fi

    if test x$as_have_required = xno; then :
  $as_echo "$0: This script requires a shell more modern than all"
  $as_echo "$0: the shells that I found on your system."
  if test x${ZSH_VERSION+set} = xset ; then
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  else
    $as_echo "$0: Please tell bug-autoconf@@gnu.org and
$0: http://bugs.ntp.org./ about your system, including any
$0: error possibly output before this message. Then install
$0: a modern shell, or manually run the script under such a
$0: shell if you do have one."
  fi
  exit 1
fi
fi
fi
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS

## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset

# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@@" || test $? -eq 1`
  }
fi # as_fn_arith


# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  $as_echo "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits


  as_lineno_1=$LINENO as_lineno_1a=$LINENO
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"

SHELL=${CONFIG_SHELL-/bin/sh}


test -n "$DJDIR" || exec 7<&0 </dev/null
exec 6>&1

# Name of the host.
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME='ntp4'
PACKAGE_TARNAME='ntp4'
PACKAGE_VERSION='4.2.8'
PACKAGE_STRING='ntp4 4.2.8'
PACKAGE_BUGREPORT='http://bugs.ntp.org./'
PACKAGE_URL='http://www.ntp.org./'

# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_header_list=
enable_option_checking=no
ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
subdirs
PERLLIBDIR
NTP_KEYSDIR
GTEST_AVAILABLE_FALSE
GTEST_AVAILABLE_TRUE
GTEST_CPPFLAGS
GTEST_CXXFLAGS
GTEST_LIBS
GTEST_LDFLAGS
GTEST_CONFIG
SAVECONFIG_ENABLED_FALSE
SAVECONFIG_ENABLED_TRUE
LSCF
MAKE_NTPSNMPD
SNMP_CFLAGS
SNMP_CPPFLAGS
SNMP_LIBS
BUILD_SNTP_FALSE
BUILD_SNTP_TRUE
SNTP
MAKE_NTPDSIM
MAKE_LIBNTPSIM
MAKE_TIMETRIM
MAKE_TICKADJ
MAKE_NTPTIME
MAKE_ADJTIMED
CHUTEST
PROPDELAY
MAKE_PARSEKMODULE
DCFD
TESTDCF
MAKE_CHECK_LAYOUT
VER_SUFFIX
PKG_CONFIG
MAKE_CHECK_Y2K
MAKE_LIBPARSE_KERNEL
MAKE_LIBPARSE
LIBPARSE
HAVE_RLIMIT_STACK
HAVE_RLIMIT_MEMLOCK
LDADD_NLIST
PATH_NET_SNMP_CONFIG
CONFIG_SHELL
PATH_TEST
PATH_PERL
LIBOBJS
PTHREADS_FALSE
PTHREADS_TRUE
LIBISC_PTHREADS_NOTHREADS
PTHREAD_LIBS
HAVE_INLINE
ALLOCA
LIBM
EDITLINE_LIBS
LDADD_LIBNTP
NTP_CROSSCOMPILE_FALSE
NTP_CROSSCOMPILE_TRUE
LIBOPTS_DIR
LIBOPTS_CFLAGS
LIBOPTS_LDADD
NEED_LIBOPTS_FALSE
NEED_LIBOPTS_TRUE
INSTALL_LIBOPTS_FALSE
INSTALL_LIBOPTS_TRUE
POSIX_SHELL
GL_GENERATE_STDNORETURN_H_FALSE
GL_GENERATE_STDNORETURN_H_TRUE
STDNORETURN_H
LIBTOOL_DEPS
CXXCPP
OTOOL64
OTOOL
LIPO
NMEDIT
DSYMUTIL
MANIFEST_TOOL
RANLIB
ac_ct_AR
AR
DLLTOOL
OBJDUMP
LN_S
NM
ac_ct_DUMPBIN
DUMPBIN
LD
FGREP
SED
LIBTOOL
TIMETRIM_NI
TIMETRIM_MS
TIMETRIM_DS
TIMETRIM_DL
TIMETRIM_DB
TICKADJ_NI
TICKADJ_MS
TICKADJ_DS
TICKADJ_DL
TICKADJ_DB
SNTP_NI
SNTP_MS
SNTP_DS
SNTP_DL
SNTP_DB
NTP_WAIT_NI
NTP_WAIT_MS
NTP_WAIT_DS
NTP_WAIT_DL
NTP_WAIT_DB
NTP_KEYGEN_NI
NTP_KEYGEN_MS
NTP_KEYGEN_DS
NTP_KEYGEN_DL
NTP_KEYGEN_DB
NTPTRACE_NI
NTPTRACE_MS
NTPTRACE_DS
NTPTRACE_DL
NTPTRACE_DB
NTPTIME_NI
NTPTIME_MS
NTPTIME_DS
NTPTIME_DL
NTPTIME_DB
INSTALL_NTPSWEEP_FALSE
INSTALL_NTPSWEEP_TRUE
NTPSWEEP_NI
NTPSWEEP_MS
NTPSWEEP_DS
NTPSWEEP_DL
NTPSWEEP_DB
NTPSNMPD_NI
NTPSNMPD_MS
NTPSNMPD_DS
NTPSNMPD_DL
NTPSNMPD_DB
NTPQ_NI
NTPQ_MS
NTPQ_DS
NTPQ_DL
NTPQ_DB
NTPD_NI
NTPD_MS
NTPD_DS
NTPD_DL
NTPD_DB
NTPDSIM_NI
NTPDSIM_MS
NTPDSIM_DS
NTPDSIM_DL
NTPDSIM_DB
NTPDC_NI
NTPDC_MS
NTPDC_DS
NTPDC_DL
NTPDC_DB
NTPDATE_NI
NTPDATE_MS
NTPDATE_DS
NTPDATE_DL
NTPDATE_DB
MANTAGFMT
CALC_TICKADJ_NI
CALC_TICKADJ_MS
CALC_TICKADJ_DS
CALC_TICKADJ_DL
CALC_TICKADJ_DB
WANT_CALC_TICKADJ_MS_FALSE
WANT_CALC_TICKADJ_MS_TRUE
VPATH_HACK_FALSE
VPATH_HACK_TRUE
YFLAGS
YACC
am__fastdepCXX_FALSE
am__fastdepCXX_TRUE
CXXDEPMODE
ac_ct_CXX
CXXFLAGS
CXX
LDFLAGS_NTP
LDADD_NTP
CPPFLAGS_NTP
CFLAGS_NTP
EGREP
GREP
CPP
am__fastdepCC_FALSE
am__fastdepCC_TRUE
CCDEPMODE
AMDEPBACKSLASH
AMDEP_FALSE
AMDEP_TRUE
am__quote
am__include
DEPDIR
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
AM_BACKSLASH
AM_DEFAULT_VERBOSITY
am__untar
am__tar
AMTAR
am__leading_dot
SET_MAKE
AWK
mkdir_p
MKDIR_P
INSTALL_STRIP_PROGRAM
STRIP
install_sh
MAKEINFO
AUTOHEADER
AUTOMAKE
AUTOCONF
ACLOCAL
VERSION
PACKAGE
CYGPATH_W
am__isrc
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files='calc_tickadj_opts
ntp_wait_opts
ntpsweep_opts
ntptrace_opts
summary_opts
plot_summary_opts'
ac_user_opts='
enable_option_checking
enable_silent_rules
enable_dependency_tracking
with_locfile
enable_shared
enable_static
with_pic
enable_fast_install
with_gnu_ld
with_sysroot
enable_libtool_lock
enable_nls
enable_local_libopts
enable_libopts_install
with_autoopts_config
enable_local_libevent
with_lineeditlibs
enable_debugging
enable_thread_support
with_threads
with_yielding_select
enable_c99_snprintf
enable_clockctl
enable_linuxcaps
enable_solarisprivs
with_arlib
with_net_snmp_config
enable_libseccomp
with_stack_limit
with_memlock
enable_debug_timing
enable_dst_minutes
enable_ignore_dns_errors
enable_BANCOMM
enable_GPSVME
enable_all_clocks
enable_ACTS
enable_ARBITER
enable_ARCRON_MSF
enable_AS2201
enable_ATOM
enable_CHRONOLOG
enable_CHU
enable_AUDIO_CHU
enable_DATUM
enable_DUMBCLOCK
enable_FG
enable_HEATH
enable_HOPFSERIAL
enable_HOPFPCI
enable_HPGPS
enable_IRIG
enable_JJY
enable_JUPITER
enable_LEITCH
enable_LOCAL_CLOCK
enable_MX4200
enable_NEOCLOCK4X
enable_NMEA
enable_GPSD
enable_ONCORE
enable_PALISADE
enable_PCF
enable_PST
enable_RIPENCC
enable_SHM
enable_SPECTRACOM
enable_TPRO
enable_TRUETIME
enable_TT560
enable_ULINK
enable_TSYNCPCI
enable_WWV
enable_ZYFER
enable_parse_clocks
enable_COMPUTIME
enable_DCF7000
enable_HOPF6021
enable_MEINBERG
enable_RAWDCF
enable_RCC8000
enable_SCHMID
enable_TRIMTAIP
enable_TRIMTSIP
enable_WHARTON
enable_VARITEXT
enable_SEL240X
with_crypto
with_openssl_libdir
with_openssl_incdir
with_rpath
enable_openssl_random
enable_autokey
enable_kmem
enable_accurate_adjtime
enable_tick
enable_tickadj
enable_simulator
with_sntp
with_ntpsnmpd
enable_slew_always
enable_step_slew
enable_ntpdate_step
enable_hourly_todr_sync
enable_kernel_fll_bug
enable_bug1243_fix
enable_irig_sawtooth
enable_nist
enable_ntp_signd
enable_ipv6
with_kame
enable_getifaddrs
enable_saveconfig
with_gtest
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
CXX
CXXFLAGS
CCC
YACC
YFLAGS
CXXCPP'
ac_subdirs_all='sntp'

# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
ac_unrecognized_opts=
ac_unrecognized_sep=
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'

ac_prev=
ac_dashdash=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval $ac_prev=\$ac_option
    ac_prev=
    continue
  fi

  case $ac_option in
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *=)   ac_optarg= ;;
  *)    ac_optarg=yes ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;

  -enable-* | --enable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=\$ac_optarg ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=\$ac_optarg ;;

  -without-* | --without-*)
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=no ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) as_fn_error $? "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information"
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    case $ac_envvar in #(
      '' | [0-9]* | *[!_$as_cr_alnum]* )
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
    esac
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  as_fn_error $? "missing argument to $ac_option"
fi

if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  esac
fi

# Check all directory arguments for consistency.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
do
  eval ac_val=\$$ac_var
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used" >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  as_fn_error $? "working directory cannot be determined"
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  as_fn_error $? "pwd does not report name of working directory"


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_myself" : 'X\(//\)[^/]' \| \
	 X"$as_myself" : 'X\(//\)$' \| \
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r "$srcdir/$ac_unique_file"; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures ntp4 4.2.8 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp4]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of ntp4 4.2.8:";;
   esac
  cat <<\_ACEOF

Optional Features and Packages:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --enable-silent-rules          less verbose build output (undo: `make V=1')
  --disable-silent-rules         verbose build output (undo: `make V=0')
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --with-locfile=XXX      os-specific or "legacy"
  --enable-shared[=PKGS]  build shared libraries [default=no]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --disable-nls           disable nls support in libopts
  --enable-local-libopts  Use the supplied libopts tearoff code
  --enable-libopts-install
                          Install libopts with client installation
  --with-autoopts-config  specify the config-info script
  --enable-local-libevent Force using the supplied libevent tearoff code
  --with-lineeditlibs     edit,editline (readline may be specified if desired)
  defaults:               + yes, - no, s system-specific
  --enable-debugging      + include ntpd debugging code
  --enable-thread-support s use threads (+ if available)
  --with-threads	  with threads [auto]
  --with-yielding-select  with yielding select [auto]
  --enable-c99-snprintf   s force replacement
  --enable-clockctl       s Use /dev/clockctl for non-root clock control
  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
  --with-arlib            - deprecated, arlib not distributed
  --with-net-snmp-config  + =net-snmp-config
  --enable-libseccomp     EXPERIMENTAL: enable support for libseccomp
                          sandboxing (default is no)
  --with-stack-limit      ? =50 (200 for openbsd) 4k pages
  --with-memlock          ? =32 (megabytes)
  --enable-debug-timing   - include processing time debugging code (costs
                          performance)
  --enable-dst-minutes    =60 minutes per DST adjustment
  --enable-ignore-dns-errors
                          - retry DNS queries on any error
  --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
  --enable-GPSVME         - TrueTime GPS receiver/VME interface
  --enable-all-clocks     + include all suitable non-PARSE clocks:
  --enable-ACTS           s ACTS modem service
  --enable-ARBITER        + Arbiter 1088A/B GPS receiver
  --enable-ARCRON-MSF     + Arcron MSF receiver
  --enable-AS2201         + Austron 2200A/2201A GPS receiver
  --enable-ATOM           s ATOM PPS interface
  --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
  --enable-CHU            + CHU modem/decoder
  --enable-AUDIO-CHU      s CHU audio/decoder
  --enable-DATUM          s Datum Programmable Time System
  --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
  --enable-FG             + Forum Graphic GPS
  --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
  --enable-HOPFSERIAL     + hopf serial clock device
  --enable-HOPFPCI        + hopf 6039 PCI board
  --enable-HPGPS          + HP 58503A GPS receiver
  --enable-IRIG           s IRIG audio decoder
  --enable-JJY            + JJY receiver
  --enable-JUPITER        s Rockwell Jupiter GPS receiver
  --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
  --enable-LOCAL-CLOCK    + local clock reference
  --enable-MX4200         s Magnavox MX4200 GPS receiver
  --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
  --enable-NMEA           + NMEA GPS receiver
  --enable-GPSD           + GPSD JSON receiver
  --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
  --enable-PALISADE       s Palisade clock
  --enable-PCF            + Conrad parallel port radio clock
  --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
  --enable-RIPENCC        - RIPENCC specific Trimble driver
  --enable-SHM            s SHM clock attached thru shared memory
  --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
  --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
  --enable-TRUETIME       s Kinemetrics/TrueTime receivers
  --enable-TT560          - TrueTime 560 IRIG-B decoder
  --enable-ULINK          + Ultralink WWVB receiver
  --enable-TSYNCPCI       s Spectracom TSYNC timing board
  --enable-WWV            s WWV Audio receiver
  --enable-ZYFER          + Zyfer GPStarplus receiver
  --enable-parse-clocks   - include all suitable PARSE clocks:
  --enable-COMPUTIME      s Diem Computime Radio Clock
  --enable-DCF7000        s ELV/DCF7000 clock
  --enable-HOPF6021       s HOPF 6021 clock
  --enable-MEINBERG       s Meinberg clocks
  --enable-RAWDCF         s DCF77 raw time code
  --enable-RCC8000        s RCC 8000 clock
  --enable-SCHMID         s Schmid DCF77 clock
  --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
  --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
  --enable-WHARTON        s WHARTON 400A Series clock
  --enable-VARITEXT       s VARITEXT clock
  --enable-SEL240X        s SEL240X clock
  --with-crypto           + =openssl,libcrypto

  --with-openssl-libdir   + =/something/reasonable

  --with-openssl-incdir   + =/something/reasonable

  --without-rpath         s Disable auto-added -R linker paths

  --enable-openssl-random Use OpenSSL's crypto random number functions, if
                          available (default is yes)
  --enable-autokey        + support NTP Autokey protocol
  --enable-kmem           s read /dev/kmem for tick and/or tickadj
  --enable-accurate-adjtime
                          s the adjtime() call is accurate
  --enable-tick=VALUE     s force a value for 'tick'
  --enable-tickadj=VALUE  s force a value for 'tickadj'
  --enable-simulator      - build/install the NTPD simulator?
  --without-sntp          - disable building sntp and sntp/tests
  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
  --enable-slew-always    s always slew the time
  --enable-step-slew      s step and slew the time
  --enable-ntpdate-step   s if ntpdate should step the time
  --enable-hourly-todr-sync
                          s if we should sync TODR hourly
  --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
  --enable-bug1243-fix    + use unmodified autokey session keys
  --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
  --enable-nist           - if we should enable the NIST lockclock scheme
  --enable-ntp-signd      - Provide support for Samba's signing daemon,
                          =/var/run/ntp_signd
  --enable-ipv6           s use IPv6?

  --with-kame             - =/usr/local/v6
  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
  --enable-saveconfig     + saveconfig mechanism
  --with-gtest            Use the gtest framework (Default: if it's available)

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  YACC        The `Yet Another Compiler Compiler' implementation to use.
              Defaults to the first program found out of: `bison -y', `byacc',
              `yacc'.
  YFLAGS      The list of arguments that will be passed by default to $YACC.
              This script will default YFLAGS to the empty string to avoid a
              default value of `-d' given by some make applications.
  CXXCPP      C++ preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <http://bugs.ntp.org./>.
ntp4 home page: <http://www.ntp.org./>.
_ACEOF
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
      continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for guested configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
    else
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
ntp4 configure 4.2.8
generated by GNU Autoconf 2.68

Copyright (C) 2010 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi

## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##

# ac_fn_c_try_compile LINENO
# --------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_compile

# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_cpp

# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
# the include files in INCLUDES and setting the cache variable VAR
# accordingly.
ac_fn_c_check_header_mongrel ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if eval \${$3+:} false; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
$as_echo_n "checking $2 usability... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_header_compiler=yes
else
  ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
$as_echo_n "checking $2 presence... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$2>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ac_header_preproc=yes
else
  ac_header_preproc=no
fi
rm -f conftest.err conftest.i conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  yes:no: )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
  no:yes:* )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
( $as_echo "## ------------------------------------ ##
## Report this to http://bugs.ntp.org./ ##
## ------------------------------------ ##"
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=\$ac_header_compiler"
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_mongrel

# ac_fn_c_try_run LINENO
# ----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_c_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_run

# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_compile

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_link

# ac_fn_cxx_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_compile

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

int
main ()
{
return $2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_func

# ac_fn_cxx_try_cpp LINENO
# ------------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_cpp

# ac_fn_cxx_try_link LINENO
# -------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_link

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_type

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid; break
else
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=-1 ac_mid=-1
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=$ac_mid; break
else
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  ac_lo= ac_hi=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid
else
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in #((
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
'') ac_retval=1 ;;
esac
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
static long int longval () { return $2; }
static unsigned long int ulongval () { return $2; }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (($2) < 0)
    {
      long int i = longval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
else
  ac_retval=1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
rm -f conftest.val

  fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_compute_int

# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
# ---------------------------------------------
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
# accordingly.
ac_fn_c_check_decl ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  as_decl_name=`echo $2|sed 's/ *(.*//'`
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
#ifndef $as_decl_name
#ifdef __cplusplus
  (void) $as_decl_use;
#else
  (void) $as_decl_name;
#endif
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_decl

# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
# ----------------------------------------------------
# Tries to find if the field MEMBER exists in type AGGR, after including
# INCLUDES, setting cache variable VAR accordingly.
ac_fn_c_check_member ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
$as_echo_n "checking for $2.$3... " >&6; }
if eval \${$4+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$5
int
main ()
{
static $2 ac_aggr;
if (ac_aggr.$3)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$4=yes"
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$5
int
main ()
{
static $2 ac_aggr;
if (sizeof ac_aggr.$3)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$4=yes"
else
  eval "$4=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$4
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_member
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by ntp4 $as_me 4.2.8, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ $0 $@@

_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    $as_echo "PATH: $as_dir"
  done
IFS=$as_save_IFS

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    2)
      as_fn_append ac_configure_args1 " '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      as_fn_append ac_configure_args " '$ac_arg'"
      ;;
    esac
  done
done
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    $as_echo "## ---------------- ##
## Cache variables. ##
## ---------------- ##"
    echo
    # The following way of writing the cache mishandles newlines in values,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

    $as_echo "## ----------------- ##
## Output variables. ##
## ----------------- ##"
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      $as_echo "$ac_var='\''$ac_val'\''"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      $as_echo "## ------------------- ##
## File substitutions. ##
## ------------------- ##"
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	$as_echo "$ac_var='\''$ac_val'\''"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      $as_echo "## ----------- ##
## confdefs.h. ##
## ----------- ##"
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      $as_echo "$as_me: caught signal $ac_signal"
    $as_echo "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h

$as_echo "/* confdefs.h */" > confdefs.h

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_URL "$PACKAGE_URL"
_ACEOF


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
  # We do not want a PATH search for config.site.
  case $CONFIG_SITE in #((
    -*)  ac_site_file1=./$CONFIG_SITE;;
    */*) ac_site_file1=$CONFIG_SITE;;
    *)   ac_site_file1=./$CONFIG_SITE;;
  esac
elif test "x$prefix" != xNONE; then
  ac_site_file1=$prefix/share/config.site
  ac_site_file2=$prefix/etc/config.site
else
  ac_site_file1=$ac_default_prefix/share/config.site
  ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
  test "x$ac_site_file" = xNONE && continue
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file" \
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "failed to load site script $ac_site_file
See \`config.log' for more details" "$LINENO" 5; }
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special files
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

as_fn_append ac_header_list " stdarg.h"
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
fi
## -------------------- ##
## Main body of script. ##
## -------------------- ##

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



ac_aux_dir=
for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
  if test -f "$ac_dir/install-sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f "$ac_dir/install.sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f "$ac_dir/shtool"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
fi

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.







# Bump ntp_configure_cache_version for each change to configure.ac or
# .m4 files which invalidates cached values from previous configure
# runs.
#
# If the change affects cache variables used only by the main NTP
# configure.ac, then only its version number should be bumped, while
# the subdir configure.ac version numbers should be unchanged.  The
# same is true for a test/variable that is used only by one subdir
# being changed incompatibly; only that subdir's cache version needs
# bumping.
#
# If a change affects variables shared by all NTP configure scripts,
# please bump the version numbers of each.  If you are not sure, the
# safe choice is to bump all on any cache-invalidating change.
#
# In order to avoid the risk of version stamp collision between -stable
# and -dev branches, do not simply increment the version, instead use
# the date YYYYMMDD optionally with -HHMM if there is more than one
# bump in a day.

ntp_configure_cache_version=20120806

# When the cache version of config.cache and configure do not
# match, NTP_CACHEVERSION will flush the cache.



    ntp_cache_flush=1

    case "$ntp_cv_main_cache_version" in
     $ntp_configure_cache_version)
	# same version, good
	ntp_cache_flush=0
	;;
     '')
	# No cache, predates ntp_cv_main_cache_version, or is empty.
	case "$cache_file" in
	 /dev/null)
	    ntp_cache_flush=0
	    ;;
	 *)
	    case "$NTP_CACHEVERSION_PARENT" in
	     '')
		# Do not clear the cache immediately after it is created
		# empty as it is noisy.  Differentiate a newly-created
		# config.cache from one predating the cache version
		# mechanism by looking for the first cached variable set
		# by Autoconf
		case "$ac_cv_path_install" in
		 '')
		    # empty config.cache file
		    ntp_cache_flush=0
		esac
		;;
	     *)
		# Parent configure just created cache from empty,
		# flushing would be counterproductive.
		ntp_cache_flush=0;
		;;
	    esac
	esac
	;;
     *)
	# configure cache version mismatches config.cache version
	;;
    esac

    case "$ntp_cache_flush" in
     1)
	c_version="${ntp_cv_main_cache_version:-(no version found)}"

	# Do we flush all variables or exclude others' version stamps?

	case "$NTP_CACHEVERSION_PARENT" in
	 '')
	    # Clear all *_cv_* variables including our child subdirs'
	    # ntp_cv_*_cache_version variables.  This prevents subdir
	    # configure scripts from noticing a version mismatch just
	    # after the top configure in the invocation cleared and
	    # recreated the cache.

	    c_varname_list=`set |
			    sed -n -e 's/=.*$//' \
				   -e '/_cv_/p'
			   `
	    ;;
	 *)
	    # This is not the top configure this particular invocation.
	    # Clear all *_cv_* variables sparing the version stamps
	    # of other configure scripts, so we don't trigger
	    # useless repeated clearings.

	    c_varname_list=`set |
			    sed -n -e 's/=.*$//' \
				   -e '/ntp_cv_.*_cache_version/d' \
				   -e '/_cv_/p'
			   `
	esac

	for c_varname in $c_varname_list
	do
	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
	done

	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
$as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
$as_echo "$as_me: $cache_file version: $c_version" >&6;}
	{ c_varname=; unset c_varname;}
	{ c_varname_list=; unset c_varname_list;}
	{ c_version=; unset c_version;}
    esac

    { ntp_cache_flush=; unset ntp_cache_flush;}

    # save configure version in config.cache for next time
    ntp_cv_main_cache_version="$ntp_configure_cache_version"

    # let any subdir configure.ac NTP_CACHEVERSION invocations
    # know they are not the top level.
    NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT


am__api_version='1.11'

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if ${ac_cv_path_install+:} false; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in #((
  ./ | .// | /[cC]/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
	  fi
	fi
      done
    done
    ;;
esac

  done
IFS=$as_save_IFS

rm -rf conftest.one conftest.two conftest.dir

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    INSTALL=$ac_install_sh
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
$as_echo "$INSTALL" >&6; }

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
$as_echo_n "checking whether build environment is sane... " >&6; }
# Just in case
sleep 1
echo timestamp > conftest.file
# Reject unsafe characters in $srcdir or the absolute working directory
# name.  Accept space and tab only in the latter.
am_lf='
'
case `pwd` in
  *[\\\"\#\$\&\'\`$am_lf]*)
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
esac
case $srcdir in
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
esac

# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t "$srcdir/configure" conftest.file`
   fi
   rm -f conftest.file
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $srcdir/configure"; then

      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
alias in your environment" "$LINENO" 5
   fi

   test "$2" = conftest.file
   )
then
   # Ok.
   :
else
   as_fn_error $? "newly created file is older than distributed files!
Check your system clock" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
test "$program_prefix" != NONE &&
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
# Double any \ or $.
# By default was `s,x,x', remove it if useless.
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`

# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`

if test x"${MISSING+set}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  *)
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
  esac
fi
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
fi

if test x"${install_sh}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  *)
    install_sh="\${SHELL} $am_aux_dir/install-sh"
  esac
fi

# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
if test -z "$MKDIR_P"; then
  if ${ac_cv_path_mkdir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in mkdir gmkdir; do
	 for ac_exec_ext in '' $ac_executable_extensions; do
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir (GNU coreutils) '* | \
	     'mkdir (coreutils) '* | \
	     'mkdir (fileutils) '4.1*)
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
	       break 3;;
	   esac
	 done
       done
  done
IFS=$as_save_IFS

fi

  test -d ./--version && rmdir ./--version
  if test "${ac_cv_path_mkdir+set}" = set; then
    MKDIR_P="$ac_cv_path_mkdir -p"
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for MKDIR_P within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    MKDIR_P="$ac_install_sh -d"
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
$as_echo "$MKDIR_P" >&6; }

mkdir_p="$MKDIR_P"
case $mkdir_p in
  [\\/$]* | ?:[\\/]*) ;;
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi

rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
  am__leading_dot=.
else
  am__leading_dot=_
fi
rmdir .tst 2>/dev/null

if test "`cd $srcdir && pwd`" != "`pwd`"; then
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  # is not polluted with repeated "-I."
  am__isrc=' -I$(srcdir)'
  # test to see if srcdir already configured
  if test -f $srcdir/config.status; then
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  fi
fi

# test whether we have cygpath
if test -z "$CYGPATH_W"; then
  if (cygpath --version) >/dev/null 2>/dev/null; then
    CYGPATH_W='cygpath -w'
  else
    CYGPATH_W=echo
  fi
fi


# Define the identity of the package.
 PACKAGE='ntp4'
 VERSION='4.2.8'


cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION"
_ACEOF

# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}


AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}


AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}


AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}


MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.
# Always define AMTAR for backward compatibility.

AMTAR=${AMTAR-"${am_missing_run}tar"}

am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'






# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in
yes) AM_DEFAULT_VERBOSITY=0;;
no)  AM_DEFAULT_VERBOSITY=1;;
*)   AM_DEFAULT_VERBOSITY=0;;
esac
AM_BACKSLASH='\'


# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
$as_echo_n "checking build system type... " >&6; }
if ${ac_cv_build+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
$as_echo "$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
esac
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
$as_echo_n "checking host system type... " >&6; }
if ${ac_cv_host+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
$as_echo "$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac



cat >>confdefs.h <<_ACEOF
#define STR_SYSTEM "$host"
_ACEOF

ac_config_headers="$ac_config_headers config.h"


ntp_atom_ok=${ntp_atom_ok=no}
ntp_oncore_ok=${ntp_oncore_ok=no}
ntp_parse_ok=${ntp_parse_ok=no}
ntp_ripe_ncc_ok=${ntp_parse_ok=no}
ntp_jupiter_ok=${ntp_jupiter_ok=no}

DEPDIR="${am__leading_dot}deps"

ac_config_commands="$ac_config_commands depfiles"


am_make=${MAKE-make}
cat > confinc << 'END'
am__doit:
	@@echo this is the am__doit target
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
$as_echo_n "checking for style of include used by $am_make... " >&6; }
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# Ignore all kinds of additional output from `make'.
case `$am_make -s -f confmf 2> /dev/null` in #(
*the\ am__doit\ target*)
  am__include=include
  am__quote=
  _am_result=GNU
  ;;
esac
# Now try BSD make style include.
if test "$am__include" = "#"; then
   echo '.include "confinc"' > confmf
   case `$am_make -s -f confmf 2> /dev/null` in #(
   *the\ am__doit\ target*)
     am__include=.include
     am__quote="\""
     _am_result=BSD
     ;;
   esac
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
$as_echo "$_am_result" >&6; }
rm -f confinc confmf

# Check whether --enable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then :
  enableval=$enable_dependency_tracking;
fi

if test "x$enable_dependency_tracking" != xno; then
  am_depcomp="$ac_aux_dir/depcomp"
  AMDEPBACKSLASH='\'
fi
 if test "x$enable_dependency_tracking" != xno; then
  AMDEP_TRUE=
  AMDEP_FALSE='#'
else
  AMDEP_TRUE='#'
  AMDEP_FALSE=
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { { ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
	break;;
    * )
	break;;
  esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=

else
  ac_file=''
fi
if test -z "$ac_file"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "C compiler cannot create executables
See \`config.log' for more details" "$LINENO" 5; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext

rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
 return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
  { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
  if { ac_try='./conftest$ac_cv_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details" "$LINENO" 5; }
    fi
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }

rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if ${ac_cv_objext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of object files: cannot compile
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if ${ac_cv_c_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if ${ac_cv_prog_cc_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CC"   am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if ${ac_cv_path_GREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in grep ggrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
if ${ac_cv_path_EGREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in egrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if ${ac_cv_header_stdc+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done





  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
if test "x$ac_cv_header_minix_config_h" = xyes; then :
  MINIX=yes
else
  MINIX=
fi


  if test "$MINIX" = yes; then

$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h


$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h


$as_echo "#define _MINIX 1" >>confdefs.h

  fi

        case "$host_os" in
    hpux*)

$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h

      ;;
  esac


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
if ${ac_cv_safe_to_define___extensions__+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#         define __EXTENSIONS__ 1
          $ac_includes_default
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_safe_to_define___extensions__=yes
else
  ac_cv_safe_to_define___extensions__=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  test $ac_cv_safe_to_define___extensions__ = yes &&
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h

  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h

  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h

  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h


if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
fi
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
else
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi






ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if ${ac_cv_c_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if ${ac_cv_prog_cc_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CC"   am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi


# Ralf Wildenhues: With per-target flags we need CC_C_O
# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
if test "$am_t" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi


if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
  $as_echo_n "(cached) " >&6
else
    ac_pattern="Autoconf.*'x'"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
else
  ac_cv_prog_gcc_traditional=no
fi
rm -f conftest*


  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
fi
rm -f conftest*

  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
fi




CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=





case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#warning foo
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cpp_warning=yes
else
  ntp_cv_cpp_warning=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
void foo(void) __attribute__((__noreturn__));

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cc_attribute=yes
else
  ntp_cv_cc_attribute=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)

$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h

esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Wstrict_overflow=yes
else
  ntp_cv_gcc_Wstrict_overflow=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <stdlib.h>
			#include <stdio.h>

int
main ()
{

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi

else
  ntp_cv_gc_sections_runs=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    CFLAGS="$origCFLAGS"
	    { origCFLAGS=; unset origCFLAGS;}


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
$as_echo "$ntp_cv_gc_sections_runs" >&6; }
    case "$ntp_cv_gc_sections_runs" in
     yes)
	LDADD_LIBNTP="-Wl,--gc-sections"
	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
	;;
     no)
	LDADD_LIBNTP=
	;;
    esac
    CFLAGS_NTP="$CFLAGS_NTP -Wall"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
    case "$ntp_cv_gcc_Winit_self" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
    esac
    case "$ntp_cv_gcc_Wstrict_overflow" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
    esac
    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
esac


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
$as_echo_n "checking additional compiler flags... " >&6; }
    # allow ntp_os_flags to be preset to skip this stuff
    case "${ntp_os_cflags+set}" in
     set)
	;;
     *)
	ntp_os_cflags=
	case "$host_os" in
	 aix[1-3]*)
	    ;;
	 aix4.[0-2]*)
	    # turn on additional headers
	    ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
	    ;;
	 aix5.3*)
	    # avoid circular dependencies in yp headers, and more
	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
	    ;;
	 aix*)
	    # XXX Only verified thru AIX6.
	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
	    # avoid circular dependencies in yp headers
	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
	    ;;
	 amigaos)
	    ntp_os_cflags="-DSYS_AMIGA"
	    ;;
	 darwin*|macosx*|rhapsody*)
	    ntp_os_cflags="-D_P1003_1B_VISIBLE"
	    ;;
	 hpux10.*)		# at least for hppa2.0-hp-hpux10.20
	    case "$GCC" in
	     yes)
		;;
	     *)
		# use Ansi compiler on HPUX, and some -Wp magic
		ntp_os_cflags="-Ae -Wp,-H18816"
		;;
	    esac
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
	    ;;
	 hpux*)
	    case "$GCC" in
	     yes)
		;;
	     *)
		# use Ansi compiler on HPUX
		ntp_os_cflags="-Ae"
	    esac
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
	    ;;
	 irix6*)
	    case "$CC" in
	     cc)
		# do not use 64-bit compiler
		ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
	    esac
	    ;;
	 nextstep3)
	    ntp_os_cflags="-posix"
	    ;;
	 solaris1*|solaris2.[0-5]|solaris2.5.*)
	    ;;
	 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
	    ;;
	 solaris2*|sunos5*)
	    # turn on 64-bit file offset interface
	    ntp_os_cflags="-D_LARGEFILE64_SOURCE"
	    ;;
	 vxworks*)
	    case "$build" in
	     $host)
		;;
	     *)
		# Quick and dirty sanity check
		case "$VX_KERNEL" in
		 '')
		    as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
		esac
		ntp_os_cflags="-DSYS_VXWORKS"
	    esac
	    ;;
	esac
    esac
    case "$ntp_os_flags" in
     '')
	ntp_os_cflags_msg="none needed"
	;;
     *)
	ntp_os_cflags_msg="$ntp_os_cflags"
    esac
    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
$as_echo "$ntp_os_cflags_msg" >&6; }
    { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}



 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>

int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
		#include <sys/param.h>

int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;

int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)

$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h

     ;; #(
   *)
     as_fn_error $? "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
$as_echo_n "checking for working volatile... " >&6; }
if ${ac_cv_c_volatile+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

volatile int x;
int * volatile y = (int *) 0;
return !x && !y;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_volatile=yes
else
  ac_cv_c_volatile=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
$as_echo "$ac_cv_c_volatile" >&6; }
if test $ac_cv_c_volatile = no; then

$as_echo "#define volatile /**/" >>confdefs.h

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CXX" && break
done

  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if ${ac_cv_cxx_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if ${ac_cv_prog_cxx_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
else
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CXX"  am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CXX_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CXX_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CXX_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  am__fastdepCXX_TRUE=
  am__fastdepCXX_FALSE='#'
else
  am__fastdepCXX_TRUE='#'
  am__fastdepCXX_FALSE=
fi


for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_YACC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"

if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
fi
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
else
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
ntp_vpath_hack="no"
case "$srcdir::${force_ntp_vpath_hack-no}" in
 .::*)
    ;; # VPATH_HACK path is for VPATH builds only.
 *::yes)
    ntp_vpath_hack="yes"
    ;;
 *::*)
    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	ntp_vpath_hack="yes"
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
$as_echo "$ntp_vpath_hack" >&6; }
 if test x$ntp_vpath_hack = xyes; then
  VPATH_HACK_TRUE=
  VPATH_HACK_FALSE='#'
else
  VPATH_HACK_TRUE='#'
  VPATH_HACK_FALSE=
fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
$as_echo_n "checking for install dir and man conventions... " >&6; }


# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
else
  with_locfile=no

fi


(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genLocInfo -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genLocInfo.i 2> genLocInfo.err
. ./genLocInfo.i

case "$GENLOCINFO" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
$as_echo "in file $GENLOCINFOFILE" >&6; }
    rm genLocInfo.err genLocInfo.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
    ;;
esac

 if test "$CALC_TICKADJ_MS" ; then
  WANT_CALC_TICKADJ_MS_TRUE=
  WANT_CALC_TICKADJ_MS_FALSE='#'
else
  WANT_CALC_TICKADJ_MS_TRUE='#'
  WANT_CALC_TICKADJ_MS_FALSE=
fi











































 if test -z "$NTPSWEEP_NI" ; then
  INSTALL_NTPSWEEP_TRUE=
  INSTALL_NTPSWEEP_FALSE='#'
else
  INSTALL_NTPSWEEP_TRUE='#'
  INSTALL_NTPSWEEP_FALSE=
fi








































# So far, the only shared library we might use is libopts.
# It's a small library - we might as well use a static version of it.
# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then :
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_shared=no
fi









case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac



macro_version='2.4'
macro_revision='1.3293'













ltmain="$ac_aux_dir/ltmain.sh"

# Backslashify metacharacters that are still active within
# double-quoted strings.
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\(["`\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
$as_echo_n "checking how to print strings... " >&6; }
# Test print first, because it will be a builtin if present.
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='print -r --'
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='printf %s\n'
else
  # Use this function as a fallback that always works.
  func_fallback_echo ()
  {
    eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
  }
  ECHO='func_fallback_echo'
fi

# func_echo_all arg...
# Invoke $ECHO with all args, space-separated.
func_echo_all ()
{
    $ECHO ""
}

case "$ECHO" in
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
$as_echo "printf" >&6; } ;;
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
$as_echo "print -r" >&6; } ;;
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
$as_echo "cat" >&6; } ;;
esac














{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"











{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if ${ac_cv_path_FGREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  ac_path_FGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in fgrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
# Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_FGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_FGREP"; then
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_FGREP=$FGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"


test -z "$GREP" && GREP=grep



















# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if ${lt_cv_path_NM+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$DUMPBIN"; then :
    # Let the user override the test.
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in dumpbin "link -dump"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DUMPBIN+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$DUMPBIN" && break
  done
fi
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in dumpbin "link -dump"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_DUMPBIN" && break
done

  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DUMPBIN=$ac_ct_DUMPBIN
  fi
fi

    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
    *COFF*)
      DUMPBIN="$DUMPBIN -symbols"
      ;;
    *)
      DUMPBIN=:
      ;;
    esac
  fi

  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
fi
test -z "$NM" && NM=nm






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if ${lt_cv_nm_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

# find the maximum length of command line arguments
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if ${lt_cv_sys_max_cmd_len+:} false; then :
  $as_echo_n "(cached) " >&6
else
    i=0
  teststring="ABCD"

  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;

  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;

  cygwin* | mingw* | cegcc*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;

  mint*)
    # On MiNT this can take a long time and run out of memory.
    lt_cv_sys_max_cmd_len=8192;
    ;;

  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;

  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;

  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;

  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n "$lt_cv_sys_max_cmd_len"; then
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    else
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      for i in 1 2 3 4 5 6 7 8 ; do
        teststring=$teststring$teststring
      done
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
      # If test is not a shell built-in, we'll probably end up computing a
      # maximum length that is only half of the actual maximum length, but
      # we can't tell.
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
	      test $i != 17 # 1/2 MB should be enough
      do
        i=`expr $i + 1`
        teststring=$teststring$teststring
      done
      # Only check the string length outside the loop.
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
      teststring=
      # Add a significant safety factor because C++ compilers can tack on
      # massive amounts of additional arguments before passing them to the
      # linker.  It appears as though 1/2 is a usable value.
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    fi
    ;;
  esac

fi

if test -n $lt_cv_sys_max_cmd_len ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi
max_cmd_len=$lt_cv_sys_max_cmd_len






: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,b/c, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }


if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
else
  lt_unset=false
fi





# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
esac









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
if ${lt_cv_to_host_file_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
        ;;
    esac
    ;;
  *-*-cygwin* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_noop
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
        ;;
    esac
    ;;
  * ) # unhandled hosts (and "normal" native builds)
    lt_cv_to_host_file_cmd=func_convert_file_noop
    ;;
esac

fi

to_host_file_cmd=$lt_cv_to_host_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
$as_echo "$lt_cv_to_host_file_cmd" >&6; }





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
if ${lt_cv_to_tool_file_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
else
  #assume ordinary cross tools, or native build.
lt_cv_to_tool_file_cmd=func_convert_file_noop
case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
        ;;
    esac
    ;;
esac

fi

to_tool_file_cmd=$lt_cv_to_tool_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
$as_echo_n "checking for $LD option to reload object files... " >&6; }
if ${lt_cv_ld_reload_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_reload_flag='-r'
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
$as_echo "$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    if test "$GCC" != yes; then
      reload_cmds=false
    fi
    ;;
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac









if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OBJDUMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi

test -z "$OBJDUMP" && OBJDUMP=objdump









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
if ${lt_cv_deplibs_check_method+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
aix[4-9]*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    # Keep this pattern in sync with the one in func_win32_libid.
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;

cegcc*)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

freebsd* | dragonfly*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

haiku*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    ;;
  *)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    ;;
  esac
  ;;

interix[3-9]*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  ;;

irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  lt_cv_deplibs_check_method=pass_all
  ;;

netbsd*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;

newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;

*nto* | *qnx*)
  lt_cv_deplibs_check_method=pass_all
  ;;

openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;

osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

rdos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
  esac
  ;;

tpf*)
  lt_cv_deplibs_check_method=pass_all
  ;;
esac

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
$as_echo "$lt_cv_deplibs_check_method" >&6; }

file_magic_glob=
want_nocaseglob=no
if test "$build" = "$host"; then
  case $host_os in
  mingw* | pw32*)
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
      want_nocaseglob=yes
    else
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
    fi
    ;;
  esac
fi

file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown






















if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DLLTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DLLTOOL=$ac_ct_DLLTOOL
  fi
else
  DLLTOOL="$ac_cv_prog_DLLTOOL"
fi

test -z "$DLLTOOL" && DLLTOOL=dlltool










{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_sharedlib_from_linklib_cmd='unknown'

case $host_os in
cygwin* | mingw* | pw32* | cegcc*)
  # two different shell functions defined in ltmain.sh
  # decide which to use based on capabilities of $DLLTOOL
  case `$DLLTOOL --help 2>&1` in
  *--identify-strict*)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
    ;;
  *)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
    ;;
  esac
  ;;
*)
  # fallback: assume linklib IS sharedlib
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  ;;
esac

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO







if test -n "$ac_tool_prefix"; then
  for ac_prog in ar
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_AR" && break
done

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
fi

: ${AR=ar}
: ${AR_FLAGS=cru}











{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @@FILE support" >&5
$as_echo_n "checking for archiver @@FILE support... " >&6; }
if ${lt_cv_ar_at_file+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ar_at_file=no
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  echo conftest.$ac_objext > conftest.lst
      lt_ar_try='$AR $AR_FLAGS libconftest.a @@conftest.lst >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
	# Ensure the archiver fails upon bogus file names.
	rm -f conftest.$ac_objext libconftest.a
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	if test "$ac_status" -ne 0; then
          lt_cv_ar_at_file=@@
        fi
      fi
      rm -f conftest.* libconftest.a

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
$as_echo "$lt_cv_ar_at_file" >&6; }

if test "x$lt_cv_ar_at_file" = xno; then
  archiver_list_spec=
else
  archiver_list_spec=$lt_cv_ar_at_file
fi







if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

test -z "$STRIP" && STRIP=:






if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

test -z "$RANLIB" && RANLIB=:






# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=

if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    ;;
  *)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi

case $host_os in
  darwin*)
    lock_old_archive_extraction=yes ;;
  *)
    lock_old_archive_extraction=no ;;
esac







































# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# Check for command to grab the raw symbol name followed by C symbol from nm.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  $as_echo_n "(cached) " >&6
else

# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]

# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'

# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32* | cegcc*)
  symcode='[ABCDGISTW]'
  ;;
hpux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris*)
  symcode='[BDRT]'
  ;;
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac

# Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently,
# so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"

# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"

# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# Try without a prefix underscore, then with it.
for ac_symprfx in "" "_"; do

  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"

  # Write the raw and C identifiers.
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
    # Fake it for dumpbin and say T for any non-static function
    # and D for any global variable.
    # Also find C++ and __fastcall symbols from MSVC++,
    # which start with @@ or ?.
    lt_cv_sys_global_symbol_pipe="$AWK '"\
"     {last_section=section; section=\$ 3};"\
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
"     \$ 0!~/External *\|/{next};"\
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
"     {if(hide[section]) next};"\
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
"     s[1]~/^[@@?]/{print s[1], s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print t[1], substr(t[1],length(prfx))}"\
"     ' prfx=^$ac_symprfx"
  else
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  fi
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"

  # Check to see that the pipe works correctly.
  pipe_works=no

  rm -f conftest*
  cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(void);
void nm_test_func(void){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
_LT_EOF

  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<_LT_EOF > conftest.$ac_ext
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
/* DATA imports from DLLs on WIN32 con't be const, because runtime
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
# define LT_DLSYM_CONST
#elif defined(__osf__)
/* This system does not cope well with relocations in const data.  */
# define LT_DLSYM_CONST
#else
# define LT_DLSYM_CONST const
#endif

#ifdef __cplusplus
extern "C" {
#endif

_LT_EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'

	  cat <<_LT_EOF >> conftest.$ac_ext

/* The mapping between symbol names and symbols.  */
LT_DLSYM_CONST struct {
  const char *name;
  void       *address;
}
lt__PROGRAM__LTX_preloaded_symbols[] =
{
  { "@@PROGRAM@@", (void *) 0 },
_LT_EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
	  cat <<\_LT_EOF >> conftest.$ac_ext
  {0, (void *) 0}
};

/* This works around a problem in FreeBSD linker */
#ifdef FREEBSD_WORKAROUND
static const void *lt_preloaded_setup() {
  return lt__PROGRAM__LTX_preloaded_symbols;
}
#endif

#ifdef __cplusplus
}
#endif
_LT_EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_globsym_save_LIBS=$LIBS
	  lt_globsym_save_CFLAGS=$CFLAGS
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
	    pipe_works=yes
	  fi
	  LIBS=$lt_globsym_save_LIBS
	  CFLAGS=$lt_globsym_save_CFLAGS
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -rf conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done

fi

if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
fi

# Response file support.
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  nm_file_list_spec='@@'
elif $NM --help 2>/dev/null | grep '[@@]FILE' >/dev/null; then
  nm_file_list_spec='@@'
fi



























{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
$as_echo_n "checking for sysroot... " >&6; }

# Check whether --with-sysroot was given.
if test "${with_sysroot+set}" = set; then :
  withval=$with_sysroot;
else
  with_sysroot=no
fi


lt_sysroot=
case ${with_sysroot} in #(
 yes)
   if test "$GCC" = yes; then
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   fi
   ;; #(
 /*)
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   ;; #(
 no|'')
   ;; #(
 *)
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
$as_echo "${with_sysroot}" >&6; }
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   ;;
esac

 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
$as_echo "${lt_sysroot:-no}" >&6; }





# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then :
  enableval=$enable_libtool_lock;
fi

test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.$ac_objext` in
      *ELF-32*)
	HPUX_IA64_MODE="32"
	;;
      *ELF-64*)
	HPUX_IA64_MODE="64"
	;;
    esac
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    if test "$lt_cv_prog_gnu_ld" = yes; then
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -melf32bsmip"
	  ;;
	*N32*)
	  LD="${LD-ld} -melf32bmipn32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -melf64bmip"
	;;
      esac
    else
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -32"
	  ;;
	*N32*)
	  LD="${LD-ld} -n32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -64"
	  ;;
      esac
    fi
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
      *32-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_i386_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_i386"
	    ;;
	  ppc64-*linux*|powerpc64-*linux*)
	    LD="${LD-ld} -m elf32ppclinux"
	    ;;
	  s390x-*linux*)
	    LD="${LD-ld} -m elf_s390"
	    ;;
	  sparc64-*linux*)
	    LD="${LD-ld} -m elf32_sparc"
	    ;;
	esac
	;;
      *64-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_x86_64_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_x86_64"
	    ;;
	  ppc*-*linux*|powerpc*-*linux*)
	    LD="${LD-ld} -m elf64ppc"
	    ;;
	  s390*-*linux*|s390*-*tpf*)
	    LD="${LD-ld} -m elf64_s390"
	    ;;
	  sparc*-*linux*)
	    LD="${LD-ld} -m elf64_sparc"
	    ;;
	esac
	;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
if ${lt_cv_cc_needs_belf+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_cc_needs_belf=yes
else
  lt_cv_cc_needs_belf=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
$as_echo "$lt_cv_cc_needs_belf" >&6; }
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
	  LD="${LD-ld} -64"
	fi
	;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;
esac

need_locks="$enable_libtool_lock"

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
set dummy ${ac_tool_prefix}mt; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MANIFEST_TOOL"; then
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
if test -n "$MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
$as_echo "$MANIFEST_TOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  # Extract the first word of "mt", so it can be a program name with args.
set dummy mt; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_MANIFEST_TOOL"; then
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
if test -n "$ac_ct_MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_MANIFEST_TOOL" = x; then
    MANIFEST_TOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  fi
else
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
fi

test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
if ${lt_cv_path_mainfest_tool+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_path_mainfest_tool=no
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  cat conftest.err >&5
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
    lt_cv_path_mainfest_tool=yes
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
if test "x$lt_cv_path_mainfest_tool" != xyes; then
  MANIFEST_TOOL=:
fi






  case $host_os in
    rhapsody* | darwin*)
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DSYMUTIL"; then
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DSYMUTIL=$ac_cv_prog_DSYMUTIL
if test -n "$DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
$as_echo "$DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DSYMUTIL"; then
  ac_ct_DSYMUTIL=$DSYMUTIL
  # Extract the first word of "dsymutil", so it can be a program name with args.
set dummy dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DSYMUTIL"; then
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
if test -n "$ac_ct_DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
$as_echo "$ac_ct_DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DSYMUTIL" = x; then
    DSYMUTIL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DSYMUTIL=$ac_ct_DSYMUTIL
  fi
else
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NMEDIT"; then
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
NMEDIT=$ac_cv_prog_NMEDIT
if test -n "$NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
$as_echo "$NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_NMEDIT"; then
  ac_ct_NMEDIT=$NMEDIT
  # Extract the first word of "nmedit", so it can be a program name with args.
set dummy nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_NMEDIT"; then
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
if test -n "$ac_ct_NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
$as_echo "$ac_ct_NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_NMEDIT" = x; then
    NMEDIT=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    NMEDIT=$ac_ct_NMEDIT
  fi
else
  NMEDIT="$ac_cv_prog_NMEDIT"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
set dummy ${ac_tool_prefix}lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$LIPO"; then
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
LIPO=$ac_cv_prog_LIPO
if test -n "$LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
$as_echo "$LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_LIPO"; then
  ac_ct_LIPO=$LIPO
  # Extract the first word of "lipo", so it can be a program name with args.
set dummy lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_LIPO"; then
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_LIPO="lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
if test -n "$ac_ct_LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
$as_echo "$ac_ct_LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_LIPO" = x; then
    LIPO=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    LIPO=$ac_ct_LIPO
  fi
else
  LIPO="$ac_cv_prog_LIPO"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL"; then
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OTOOL=$ac_cv_prog_OTOOL
if test -n "$OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
$as_echo "$OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL"; then
  ac_ct_OTOOL=$OTOOL
  # Extract the first word of "otool", so it can be a program name with args.
set dummy otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL"; then
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL="otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
if test -n "$ac_ct_OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
$as_echo "$ac_ct_OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL" = x; then
    OTOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL=$ac_ct_OTOOL
  fi
else
  OTOOL="$ac_cv_prog_OTOOL"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OTOOL64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL64"; then
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OTOOL64=$ac_cv_prog_OTOOL64
if test -n "$OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
$as_echo "$OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL64"; then
  ac_ct_OTOOL64=$OTOOL64
  # Extract the first word of "otool64", so it can be a program name with args.
set dummy otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL64"; then
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL64="otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
if test -n "$ac_ct_OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
$as_echo "$ac_ct_OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL64" = x; then
    OTOOL64=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL64=$ac_ct_OTOOL64
  fi
else
  OTOOL64="$ac_cv_prog_OTOOL64"
fi



























    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
$as_echo_n "checking for -single_module linker flag... " >&6; }
if ${lt_cv_apple_cc_single_mod+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_apple_cc_single_mod=no
      if test -z "${LT_MULTI_MODULE}"; then
	# By default we will add the -single_module flag. You can override
	# by either setting the environment variable LT_MULTI_MODULE
	# non-empty at configure time, or by adding -multi_module to the
	# link flags.
	rm -rf libconftest.dylib*
	echo "int foo(void){return 1;}" > conftest.c
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-dynamiclib -Wl,-single_module conftest.c" >&5
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
        _lt_result=$?
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
	  lt_cv_apple_cc_single_mod=yes
	else
	  cat conftest.err >&5
	fi
	rm -rf libconftest.dylib*
	rm -f conftest.*
      fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
if ${lt_cv_ld_exported_symbols_list+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_exported_symbols_list=no
      save_LDFLAGS=$LDFLAGS
      echo "_main" > conftest.sym
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_ld_exported_symbols_list=yes
else
  lt_cv_ld_exported_symbols_list=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
$as_echo_n "checking for -force_load linker flag... " >&6; }
if ${lt_cv_ld_force_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_force_load=no
      cat > conftest.c << _LT_EOF
int forced_loaded() { return 2;}
_LT_EOF
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
      echo "$AR cru libconftest.a conftest.o" >&5
      $AR cru libconftest.a conftest.o 2>&5
      echo "$RANLIB libconftest.a" >&5
      $RANLIB libconftest.a 2>&5
      cat > conftest.c << _LT_EOF
int main() { return 0;}
_LT_EOF
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
      _lt_result=$?
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
	lt_cv_ld_force_load=yes
      else
	cat conftest.err >&5
      fi
        rm -f conftest.err libconftest.a conftest conftest.c
        rm -rf conftest.dSYM

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
$as_echo "$lt_cv_ld_force_load" >&6; }
    case $host_os in
    rhapsody* | darwin1.[012])
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
    darwin1.*)
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    darwin*) # darwin 5.x on
      # if running on 10.5 or later, the deployment target defaults
      # to the OS version, if on x86, and 10.4, the deployment
      # target defaults to 10.4. Don't you love it?
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
	10.[012]*)
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
	10.*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
      esac
    ;;
  esac
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
      _lt_dar_single_mod='$single_module'
    fi
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
    else
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    fi
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
      _lt_dsymutil='~$DSYMUTIL $lib || :'
    else
      _lt_dsymutil=
    fi
    ;;
  esac

for ac_header in dlfcn.h
do :
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
"
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLFCN_H 1
_ACEOF

fi

done




func_stripname_cnf ()
{
  case ${2} in
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  esac
} # func_stripname_cnf





# Set options



        enable_dlopen=no


  enable_win32_dll=no



  # Check whether --enable-static was given.
if test "${enable_static+set}" = set; then :
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_static=yes
fi










# Check whether --with-pic was given.
if test "${with_pic+set}" = set; then :
  withval=$with_pic; pic_mode="$withval"
else
  pic_mode=default
fi


test -z "$pic_mode" && pic_mode=default







  # Check whether --enable-fast-install was given.
if test "${enable_fast_install+set}" = set; then :
  enableval=$enable_fast_install; p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
    *)
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_fast_install=yes
fi











# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ltmain"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'


























test -z "$LN_S" && LN_S="ln -s"














if test -n "${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
$as_echo_n "checking for objdir... " >&6; }
if ${lt_cv_objdir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
fi
rmdir .libs 2>/dev/null
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
$as_echo "$lt_cv_objdir" >&6; }
objdir=$lt_cv_objdir





cat >>confdefs.h <<_ACEOF
#define LT_OBJDIR "$lt_cv_objdir/"
_ACEOF




case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
esac

# Global variables:
ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a

with_gnu_ld="$lt_cv_prog_gnu_ld"

old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
test -z "$LD" && LD=ld
test -z "$ac_objext" && ac_objext=o

for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`


# Only perform the check for file, if the check method requires it
test -z "$MAGIC_CMD" && MAGIC_CMD=file
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
if ${lt_cv_path_MAGIC_CMD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi





if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
$as_echo_n "checking for file... " >&6; }
if ${lt_cv_path_MAGIC_CMD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  else
    MAGIC_CMD=:
  fi
fi

  fi
  ;;
esac

# Use C for the default configuration in the libtool script

lt_save_CC="$CC"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# Source file extension for C test sources.
ac_ext=c

# Object file extension for compiled C test sources.
objext=o
objext=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;"

# Code to be used in simple link tests
lt_simple_link_test_code='int main(){return(0);}'







# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC

# Save the default compiler, since it gets overwritten when the other
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
compiler_DEFAULT=$CC

# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


## CAVEAT EMPTOR:
## There is no encapsulation within the following macros, do not change
## the running order or otherwise move them around unless you know exactly
## what you are doing...
if test -n "$compiler"; then

lt_prog_compiler_no_builtin_flag=

if test "$GCC" = yes; then
  case $cc_basename in
  nvcc*)
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  *)
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  esac

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }

if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
else
    :
fi

fi






  lt_prog_compiler_wl=
lt_prog_compiler_pic=
lt_prog_compiler_static=


  if test "$GCC" = yes; then
    lt_prog_compiler_wl='-Wl,'
    lt_prog_compiler_static='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      ;;

    haiku*)
      # PIC is the default for Haiku.
      # The "-static" flag exists, but is broken.
      lt_prog_compiler_static=
      ;;

    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='-fPIC'
	;;
      esac
      ;;

    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared=no
      enable_shared=no
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic=-Kconform_pic
      fi
      ;;

    *)
      lt_prog_compiler_pic='-fPIC'
      ;;
    esac

    case $cc_basename in
    nvcc*) # Cuda Compiler Driver 2.2
      lt_prog_compiler_wl='-Xlinker '
      lt_prog_compiler_pic='-Xcompiler -fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      else
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static='-non_shared'
      ;;

    linux* | k*bsd*-gnu | kopensolaris*-gnu)
      case $cc_basename in
      # old Intel for x86_64 which still supported -KPIC.
      ecc*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-KPIC'
	lt_prog_compiler_static='-static'
        ;;
      # icc used to be incompatible with GCC.
      # ICC 10 doesn't accept -KPIC any more.
      icc* | ifort*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
        ;;
      # Lahey Fortran 8.1.
      lf95*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='--shared'
	lt_prog_compiler_static='--static'
	;;
      nagfor*)
	# NAG Fortran compiler
	lt_prog_compiler_wl='-Wl,-Wl,,'
	lt_prog_compiler_pic='-PIC'
	lt_prog_compiler_static='-Bstatic'
	;;
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fpic'
	lt_prog_compiler_static='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static='-non_shared'
        ;;
      xl* | bgxl* | bgf* | mpixl*)
	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-qpic'
	lt_prog_compiler_static='-qstaticlink'
	;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ F* | *Sun*Fortran*)
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl=''
	  ;;
	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Wl,'
	  ;;
	esac
	;;
      esac
      ;;

    newsos6)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static='-non_shared'
      ;;

    rdos*)
      lt_prog_compiler_static='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
	lt_prog_compiler_wl='-Qoption ld ';;
      *)
	lt_prog_compiler_wl='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl='-Qoption ld '
      lt_prog_compiler_pic='-PIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic='-Kconform_pic'
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_can_build_shared=no
      ;;

    uts4*)
      lt_prog_compiler_pic='-pic'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared=no
      ;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic=
    ;;
  *)
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
if ${lt_cv_prog_compiler_pic+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
if ${lt_cv_prog_compiler_pic_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }

if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
    case $lt_prog_compiler_pic in
     "" | " "*) ;;
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
     esac
else
    lt_prog_compiler_pic=
     lt_prog_compiler_can_build_shared=no
fi

fi











#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if ${lt_cv_prog_compiler_static_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works=yes
       fi
     else
       lt_cv_prog_compiler_static_works=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }

if test x"$lt_cv_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi







  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }






  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi






  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  runpath_var=
  allow_undefined_flag=
  always_export_symbols=no
  archive_cmds=
  archive_expsym_cmds=
  compiler_needs_object=no
  enable_shared_with_static_runtimes=no
  export_dynamic_flag_spec=
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  hardcode_automatic=no
  hardcode_direct=no
  hardcode_direct_absolute=no
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  inherit_rpath=no
  link_all_deplibs=unknown
  module_cmds=
  module_expsym_cmds=
  old_archive_from_new_cmds=
  old_archive_from_expsyms_cmds=
  thread_safe_flag_spec=
  whole_archive_flag_spec=
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  # Exclude shared library initialization/finalization symbols.
  extract_expsyms_cmds=

  case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs=yes

  # On some targets, GNU ld is compatible enough with the native linker
  # that we're better off using the native interface for both.
  lt_use_gnu_ld_interface=no
  if test "$with_gnu_ld" = yes; then
    case $host_os in
      aix*)
	# The AIX port of GNU ld has always aspired to compatibility
	# with the native linker.  However, as the warning in the GNU ld
	# block says, versions before 2.19.5* couldn't really create working
	# shared libraries, regardless of the interface used.
	case `$LD -v 2>&1` in
	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
	  *)
	    lt_use_gnu_ld_interface=yes
	    ;;
	esac
	;;
      *)
	lt_use_gnu_ld_interface=yes
	;;
    esac
  fi

  if test "$lt_use_gnu_ld_interface" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    else
      whole_archive_flag_spec=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>&1` in
      *GNU\ gold*) supports_anon_versioning=yes ;;
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix[3-9]*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.19, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to install binutils
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
*** You will then need to restart the configuration process.

_LT_EOF
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
      ;;

    beos*)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec='-L$libdir'
      export_dynamic_flag_spec='${wl}--export-all-symbols'
      allow_undefined_flag=unsupported
      always_export_symbols=no
      enable_shared_with_static_runtimes=yes
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'

      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs=no
      fi
      ;;

    haiku*)
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      link_all_deplibs=yes
      ;;

    interix[3-9]*)
      hardcode_direct=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
      tmp_diet=no
      if test "$host_os" = linux-dietlibc; then
	case $cc_basename in
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
	esac
      fi
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
	 && test "$tmp_diet" = no
      then
	tmp_addflag=' $pic_flag'
	tmp_sharedflag='-shared'
	case $cc_basename,$host_cpu in
        pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95* | pgfortran*)
					# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	lf95*)				# Lahey Fortran 8.1
	  whole_archive_flag_spec=
	  tmp_sharedflag='--shared' ;;
	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
	  tmp_sharedflag='-qmkshrobj'
	  tmp_addflag= ;;
	nvcc*)	# Cuda Compiler Driver 2.2
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  ;;
	esac
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)			# Sun C 5.9
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  tmp_sharedflag='-G' ;;
	*Sun\ F*)			# Sun Fortran 8.3
	  tmp_sharedflag='-G' ;;
	esac
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

        if test "x$supports_anon_versioning" = xyes; then
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	    echo "local: *; };" >> $output_objdir/$libname.ver~
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
        fi

	case $cc_basename in
	xlf* | bgf* | bgxlf* | mpixlf*)
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
	  hardcode_libdir_flag_spec=
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
	  if test "x$supports_anon_versioning" = xyes; then
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	      echo "local: *; };" >> $output_objdir/$libname.ver~
	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
	  fi
	  ;;
	esac
      else
        ld_shlibs=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  # For security reasons, it is highly recommended that you always
	  # use absolute paths for naming shared libraries, and exclude the
	  # DT_RUNPATH tag from executables and libraries.  But doing so
	  # requires that you compile everything twice, which is a pain.
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  else
	    ld_shlibs=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    *)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;
    esac

    if test "$ld_shlibs" = no; then
      runpath_var=
      hardcode_libdir_flag_spec=
      export_dynamic_flag_spec=
      whole_archive_flag_spec=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag=unsupported
      always_export_symbols=yes
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct=unsupported
      fi
      ;;

    aix[4-9]*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	# Also, AIX nm treats weak defined symbols like other global
	# defined symbols, whereas GNU nm marks them as "W".
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	  for ld_flag in $LDFLAGS; do
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
	    aix_use_runtimelinking=yes
	    break
	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds=''
      hardcode_direct=yes
      hardcode_direct_absolute=yes
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      file_list_spec='${wl}-f,'

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	  # We have reworked collect2
	  :
	  else
	  # We have old collect2
	  hardcode_direct=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L=yes
	  hardcode_libdir_flag_spec='-L$libdir'
	  hardcode_libdir_separator=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      export_dynamic_flag_spec='${wl}-bexpall'
      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='-berok'
        # Determine the default libpath from the value encoded in an
        # empty executable.
        if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath_+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath_
fi

        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
      else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag="-z nodefs"
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an
	 # empty executable.
	 if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath_+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath_
fi

	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag=' ${wl}-bernotok'
	  allow_undefined_flag=' ${wl}-berok'
	  if test "$with_gnu_ld" = yes; then
	    # We only use this code for GNU lds that support --whole-archive.
	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	  else
	    # Exported symbols can be pulled into shared objects from archives
	    whole_archive_flag_spec='$convenience'
	  fi
	  archive_cmds_need_lc=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec=-rdynamic
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      case $cc_basename in
      cl*)
	# Native MSVC
	hardcode_libdir_flag_spec=' '
	allow_undefined_flag=unsupported
	always_export_symbols=yes
	file_list_spec='@@'
	# Tell ltmain to make .lib files, not .a files.
	libext=lib
	# Tell ltmain to make .dll files, not .so files.
	shrext_cmds=".dll"
	# FIXME: Setting linknames here is a bad hack.
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	  else
	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	  fi~
	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	  linknames='
	# The linker will not automatically build a static lib if we build a DLL.
	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
	enable_shared_with_static_runtimes=yes
	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
	# Don't use ranlib
	old_postinstall_cmds='chmod 644 $oldlib'
	postlink_cmds='lt_outputfile="@@OUTPUT@@"~
	  lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	  case $lt_outputfile in
	    *.exe|*.EXE) ;;
	    *)
	      lt_outputfile="$lt_outputfile.exe"
	      lt_tool_outputfile="$lt_tool_outputfile.exe"
	      ;;
	  esac~
	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	    $RM "$lt_outputfile.manifest";
	  fi'
	;;
      *)
	# Assume MSVC wrapper
	hardcode_libdir_flag_spec=' '
	allow_undefined_flag=unsupported
	# Tell ltmain to make .lib files, not .a files.
	libext=lib
	# Tell ltmain to make .dll files, not .so files.
	shrext_cmds=".dll"
	# FIXME: Setting linknames here is a bad hack.
	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
	# The linker will automatically build a .lib file if we build a DLL.
	old_archive_from_new_cmds='true'
	# FIXME: Should let the user specify the lib program.
	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
	enable_shared_with_static_runtimes=yes
	;;
      esac
      ;;

    darwin* | rhapsody*)


  archive_cmds_need_lc=no
  hardcode_direct=no
  hardcode_automatic=yes
  hardcode_shlibpath_var=unsupported
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  else
    whole_archive_flag_spec=''
  fi
  link_all_deplibs=yes
  allow_undefined_flag="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=func_echo_all
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"

  else
  ld_shlibs=no
  fi

      ;;

    dgux*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    freebsd1*)
      ld_shlibs=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | dragonfly*)
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_direct=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L=yes
      export_dynamic_flag_spec='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_flag_spec_ld='+b $libdir'
	hardcode_libdir_separator=:
	hardcode_direct=yes
	hardcode_direct_absolute=yes
	export_dynamic_flag_spec='${wl}-E'
	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)

	  # Older versions of the 11.00 compiler do not understand -b yet
	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
$as_echo_n "checking if $CC understands -b... " >&6; }
if ${lt_cv_prog_compiler__b+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler__b=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS -b"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler__b=yes
       fi
     else
       lt_cv_prog_compiler__b=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
$as_echo "$lt_cv_prog_compiler__b" >&6; }

if test x"$lt_cv_prog_compiler__b" = xyes; then
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
else
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
fi

	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_direct=no
	  hardcode_shlibpath_var=no
	  ;;
	*)
	  hardcode_direct=yes
	  hardcode_direct_absolute=yes
	  export_dynamic_flag_spec='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	# Try to use the -exported_symbol ld option, if it does not
	# work, assume that -exports_file does not work either and
	# implicitly export all symbols.
	# This should be the same for all languages, so no per-tag cache variable.
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
if ${lt_cv_irix_exported_symbol+:} false; then :
  $as_echo_n "(cached) " >&6
else
  save_LDFLAGS="$LDFLAGS"
	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo (void) { return 0; }
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_irix_exported_symbol=yes
else
  lt_cv_irix_exported_symbol=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
           LDFLAGS="$save_LDFLAGS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
	if test "$lt_cv_irix_exported_symbol" = yes; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
	fi
      else
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      inherit_rpath=yes
      link_all_deplibs=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    newsos6)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_shlibpath_var=no
      ;;

    *nto* | *qnx*)
      ;;

    openbsd*)
      if test -f /usr/libexec/ld.so; then
	hardcode_direct=yes
	hardcode_shlibpath_var=no
	hardcode_direct_absolute=yes
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	  export_dynamic_flag_spec='${wl}-E'
	else
	  case $host_os in
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	     hardcode_libdir_flag_spec='-R$libdir'
	     ;;
	   *)
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	     ;;
	  esac
	fi
      else
	ld_shlibs=no
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec='-rpath $libdir'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_separator=:
      ;;

    solaris*)
      no_undefined_flag=' -z defs'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
      else
	case `$CC -V 2>&1` in
	*"Compilers 5.0"*)
	  wlarc=''
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
	  ;;
	*)
	  wlarc='${wl}'
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
	  ;;
	esac
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_shlibpath_var=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
	# The compiler driver will combine and reorder linker options,
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
	# but is careful enough not to reorder.
	# Supported since Solaris 2.6 (maybe 2.5.1?)
	if test "$GCC" = yes; then
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
	else
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
	fi
	;;
      esac
      link_all_deplibs=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds='$CC -r -o $output$reload_objs'
	  hardcode_direct=no
        ;;
	motorola)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var=no
      ;;

    sysv4.3*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag='${wl}-z,text'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag='${wl}-z,text'
      allow_undefined_flag='${wl}-z,nodefs'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      export_dynamic_flag_spec='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    *)
      ld_shlibs=no
      ;;
    esac

    if test x$host_vendor = xsni; then
      case $host in
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
	export_dynamic_flag_spec='${wl}-Blargedynsym'
	;;
      esac
    fi
  fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
$as_echo "$ld_shlibs" >&6; }
test "$ld_shlibs" = no && can_build_shared=no

with_gnu_ld=$with_gnu_ld















#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
if ${lt_cv_archive_cmds_need_lc+:} false; then :
  $as_echo_n "(cached) " >&6
else
  $RM conftest*
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext

	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
	  soname=conftest
	  lib=conftest
	  libobjs=conftest.$ac_objext
	  deplibs=
	  wl=$lt_prog_compiler_wl
	  pic_flag=$lt_prog_compiler_pic
	  compiler_flags=-v
	  linker_flags=-v
	  verstring=
	  output_objdir=.
	  libname=conftest
	  lt_save_allow_undefined_flag=$allow_undefined_flag
	  allow_undefined_flag=
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	  then
	    lt_cv_archive_cmds_need_lc=no
	  else
	    lt_cv_archive_cmds_need_lc=yes
	  fi
	  allow_undefined_flag=$lt_save_allow_undefined_flag
	else
	  cat conftest.err 1>&5
	fi
	$RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
      ;;
    esac
  fi
  ;;
esac





























































































































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

if test "$GCC" = yes; then
  case $host_os in
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
    *) lt_awk_arg="/^libraries:/" ;;
  esac
  case $host_os in
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
    *) lt_sed_strip_eq="s,=/,/,g" ;;
  esac
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  case $lt_search_path_spec in
  *\;*)
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
    ;;
  *)
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
    ;;
  esac
  # Ok, now we have the path, separated by spaces, we can step through it
  # and add multilib dir if necessary.
  lt_tmp_lt_search_path_spec=
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  for lt_sys_path in $lt_search_path_spec; do
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
    else
      test -d "$lt_sys_path" && \
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
    fi
  done
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
BEGIN {RS=" "; FS="/|\n";} {
  lt_foo="";
  lt_count=0;
  for (lt_i = NF; lt_i > 0; lt_i--) {
    if ($lt_i != "" && $lt_i != ".") {
      if ($lt_i == "..") {
        lt_count++;
      } else {
        if (lt_count == 0) {
          lt_foo="/" $lt_i lt_foo;
        } else {
          lt_count--;
        }
      }
    }
  }
  if (lt_foo != "") { lt_freq[lt_foo]++; }
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
}'`
  # AWK program above erroneously prepends '/' to C:/dos/paths
  # for these hosts.
  case $host_os in
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  esac
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$cc_basename in
  yes,*)
    # gcc
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'

      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    dynamic_linker='Win32 ld.exe'
    ;;

  *,cl*)
    # Native MSVC
    libname_spec='$name'
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'

    case $build_os in
    mingw*)
      sys_lib_search_path_spec=
      lt_save_ifs=$IFS
      IFS=';'
      for lt_path in $LIB
      do
        IFS=$lt_save_ifs
        # Let DOS variable expansion print the short 8.3 style file name.
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @@echo %~si"`
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
      done
      IFS=$lt_save_ifs
      # Convert to MSYS style.
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
      ;;
    cygwin*)
      # Convert to unix form, then to dos form, then back to unix form
      # but this time dos style (no spaces!) so that the unix form looks
      # like /cygdrive/c/PROGRA~1:/cygdr...
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      ;;
    *)
      sys_lib_search_path_spec="$LIB"
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      fi
      # FIXME: find the short name or the path components, as spaces are
      # common. (e.g. "Program Files" -> "PROGRA~1")
      ;;
    esac

    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
    dynamic_linker='Win32 link.exe'
    ;;

  *)
    # Assume MSVC wrapper
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    dynamic_linker='Win32 ld.exe'
    ;;
  esac
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

haiku*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  dynamic_linker="$host_os runtime_loader"
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  postinstall_cmds='chmod 555 $lib'
  # or fails outright, so override atomically:
  install_override_mode=555
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no

  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




























































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" ||
   test -n "$runpath_var" ||
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi






  if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

    ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if ${ac_cv_lib_dld_shl_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if ${ac_cv_lib_svld_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if ${ac_cv_lib_dld_dld_link+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi

















striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP" ; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi












  # Report which library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test "$can_build_shared" = "no" && enable_shared=no

  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test "$enable_shared" = yes && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;

  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }




fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if ${ac_cv_prog_CXXCPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
$as_echo "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
  _lt_caught_CXX_error=yes
fi

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

archive_cmds_need_lc_CXX=no
allow_undefined_flag_CXX=
always_export_symbols_CXX=no
archive_expsym_cmds_CXX=
compiler_needs_object_CXX=no
export_dynamic_flag_spec_CXX=
hardcode_direct_CXX=no
hardcode_direct_absolute_CXX=no
hardcode_libdir_flag_spec_CXX=
hardcode_libdir_flag_spec_ld_CXX=
hardcode_libdir_separator_CXX=
hardcode_minus_L_CXX=no
hardcode_shlibpath_var_CXX=unsupported
hardcode_automatic_CXX=no
inherit_rpath_CXX=no
module_cmds_CXX=
module_expsym_cmds_CXX=
link_all_deplibs_CXX=unknown
old_archive_cmds_CXX=$old_archive_cmds
reload_flag_CXX=$reload_flag
reload_cmds_CXX=$reload_cmds
no_undefined_flag_CXX=
whole_archive_flag_spec_CXX=
enable_shared_with_static_runtimes_CXX=no

# Source file extension for C++ test sources.
ac_ext=cpp

# Object file extension for compiled C++ test sources.
objext=o
objext_CXX=$objext

# No sense in running all these tests if we already determined that
# the CXX compiler isn't working.  Some variables (like enable_shared)
# are currently assumed to apply to all compilers on this platform,
# and will be corrupted by setting them based on a non-working compiler.
if test "$_lt_caught_CXX_error" != yes; then
  # Code to be used in simple compile tests
  lt_simple_compile_test_code="int some_variable = 0;"

  # Code to be used in simple link tests
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'

  # ltmain only uses $CC for tagged configurations so make sure $CC is set.






# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


  # save warnings/boilerplate of simple test code
  ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

  ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


  # Allow CC to be a program name with arguments.
  lt_save_CC=$CC
  lt_save_CFLAGS=$CFLAGS
  lt_save_LD=$LD
  lt_save_GCC=$GCC
  GCC=$GXX
  lt_save_with_gnu_ld=$with_gnu_ld
  lt_save_path_LD=$lt_cv_path_LD
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  else
    $as_unset lt_cv_prog_gnu_ld
  fi
  if test -n "${lt_cv_path_LDCXX+set}"; then
    lt_cv_path_LD=$lt_cv_path_LDCXX
  else
    $as_unset lt_cv_path_LD
  fi
  test -z "${LDCXX+set}" || LD=$LDCXX
  CC=${CXX-"c++"}
  CFLAGS=$CXXFLAGS
  compiler=$CC
  compiler_CXX=$CC
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`


  if test -n "$compiler"; then
    # We don't want -fno-exception when compiling C++ code, so set the
    # no_builtin_flag separately
    if test "$GXX" = yes; then
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
    else
      lt_prog_compiler_no_builtin_flag_CXX=
    fi

    if test "$GXX" = yes; then
      # Set up default GNU C++ configuration



# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld







      # Check if GNU C++ uses GNU ld as the underlying linker, since the
      # archiving commands below assume that GNU ld is being used.
      if test "$with_gnu_ld" = yes; then
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'

        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

        # If archive_cmds runs LD, not CC, wlarc should be empty
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
        #     investigate it a little bit more. (MM)
        wlarc='${wl}'

        # ancient GNU ld didn't support --whole-archive et. al.
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
	  $GREP 'no-whole-archive' > /dev/null; then
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
        else
          whole_archive_flag_spec_CXX=
        fi
      else
        with_gnu_ld=no
        wlarc=

        # A generic and very simple default shared library creation
        # command for GNU C++ for the case where it uses the native
        # linker, instead of GNU ld.  If possible, this setting should
        # overridden to take advantage of the native linker features on
        # the platform it is being used on.
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
      fi

      # Commands to make compiler produce verbose output that lists
      # what "hidden" libraries, object files and flags are used when
      # linking a shared library.
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

    else
      GXX=no
      with_gnu_ld=no
      wlarc=
    fi

    # PORTME: fill in a description of your system's C++ link characteristics
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
    ld_shlibs_CXX=yes
    case $host_os in
      aix3*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
      aix[4-9]*)
        if test "$host_cpu" = ia64; then
          # On IA64, the linker does run time linking by default, so we don't
          # have to do anything special.
          aix_use_runtimelinking=no
          exp_sym_flag='-Bexport'
          no_entry_flag=""
        else
          aix_use_runtimelinking=no

          # Test if we are trying to use run time linking or normal
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
          # need to do runtime linking.
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	    for ld_flag in $LDFLAGS; do
	      case $ld_flag in
	      *-brtl*)
	        aix_use_runtimelinking=yes
	        break
	        ;;
	      esac
	    done
	    ;;
          esac

          exp_sym_flag='-bexport'
          no_entry_flag='-bnoentry'
        fi

        # When large executables or shared objects are built, AIX ld can
        # have problems creating the table of contents.  If linking a library
        # or program results in "error TOC overflow" add -mminimal-toc to
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

        archive_cmds_CXX=''
        hardcode_direct_CXX=yes
        hardcode_direct_absolute_CXX=yes
        hardcode_libdir_separator_CXX=':'
        link_all_deplibs_CXX=yes
        file_list_spec_CXX='${wl}-f,'

        if test "$GXX" = yes; then
          case $host_os in aix4.[012]|aix4.[012].*)
          # We only want to do this on AIX 4.2 and lower, the check
          # below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	    # We have reworked collect2
	    :
	  else
	    # We have old collect2
	    hardcode_direct_CXX=unsupported
	    # It fails to find uninstalled libraries when the uninstalled
	    # path is not listed in the libpath.  Setting hardcode_minus_L
	    # to unsupported forces relinking
	    hardcode_minus_L_CXX=yes
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
	    hardcode_libdir_separator_CXX=
	  fi
          esac
          shared_flag='-shared'
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag="$shared_flag "'${wl}-G'
	  fi
        else
          # not using gcc
          if test "$host_cpu" = ia64; then
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	  # chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
          else
	    if test "$aix_use_runtimelinking" = yes; then
	      shared_flag='${wl}-G'
	    else
	      shared_flag='${wl}-bM:SRE'
	    fi
          fi
        fi

        export_dynamic_flag_spec_CXX='${wl}-bexpall'
        # It seems that -bexpall does not export symbols beginning with
        # underscore (_), so it is better to generate a list of symbols to
	# export.
        always_export_symbols_CXX=yes
        if test "$aix_use_runtimelinking" = yes; then
          # Warning - without using the other runtime loading flags (-brtl),
          # -berok will link without error, but may produce a broken library.
          allow_undefined_flag_CXX='-berok'
          # Determine the default libpath from the value encoded in an empty
          # executable.
          if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"

          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
        else
          if test "$host_cpu" = ia64; then
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
	    allow_undefined_flag_CXX="-z nodefs"
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
          else
	    # Determine the default libpath from the value encoded in an
	    # empty executable.
	    if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
	    # Warning - without using the other run time loading flags,
	    # -berok will link without error, but may produce a broken library.
	    no_undefined_flag_CXX=' ${wl}-bernotok'
	    allow_undefined_flag_CXX=' ${wl}-berok'
	    if test "$with_gnu_ld" = yes; then
	      # We only use this code for GNU lds that support --whole-archive.
	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    else
	      # Exported symbols can be pulled into shared objects from archives
	      whole_archive_flag_spec_CXX='$convenience'
	    fi
	    archive_cmds_need_lc_CXX=yes
	    # This is similar to how AIX traditionally builds its shared
	    # libraries.
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
          fi
        fi
        ;;

      beos*)
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	  allow_undefined_flag_CXX=unsupported
	  # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	  # support --undefined.  This deserves some investigation.  FIXME
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	else
	  ld_shlibs_CXX=no
	fi
	;;

      chorus*)
        case $cc_basename in
          *)
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	  ;;
        esac
        ;;

      cygwin* | mingw* | pw32* | cegcc*)
	case $GXX,$cc_basename in
	,cl* | no,cl*)
	  # Native MSVC
	  # hardcode_libdir_flag_spec is actually meaningless, as there is
	  # no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX=' '
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=yes
	  file_list_spec_CXX='@@'
	  # Tell ltmain to make .lib files, not .a files.
	  libext=lib
	  # Tell ltmain to make .dll files, not .so files.
	  shrext_cmds=".dll"
	  # FIXME: Setting linknames here is a bad hack.
	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	    else
	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	    fi~
	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	    linknames='
	  # The linker will not automatically build a static lib if we build a DLL.
	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
	  enable_shared_with_static_runtimes_CXX=yes
	  # Don't use ranlib
	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
	  postlink_cmds_CXX='lt_outputfile="@@OUTPUT@@"~
	    lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	    case $lt_outputfile in
	      *.exe|*.EXE) ;;
	      *)
		lt_outputfile="$lt_outputfile.exe"
		lt_tool_outputfile="$lt_tool_outputfile.exe"
		;;
	    esac~
	    func_to_tool_file "$lt_outputfile"~
	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	      $RM "$lt_outputfile.manifest";
	    fi'
	  ;;
	*)
	  # g++
	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
	  # as there is no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=no
	  enable_shared_with_static_runtimes_CXX=yes

	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	    # If the export-symbols file already is a .def file (1st line
	    # is EXPORTS), use it as is; otherwise, prepend...
	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      cp $export_symbols $output_objdir/$soname.def;
	    else
	      echo EXPORTS > $output_objdir/$soname.def;
	      cat $export_symbols >> $output_objdir/$soname.def;
	    fi~
	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	  else
	    ld_shlibs_CXX=no
	  fi
	  ;;
	esac
	;;
      darwin* | rhapsody*)


  archive_cmds_need_lc_CXX=no
  hardcode_direct_CXX=no
  hardcode_automatic_CXX=yes
  hardcode_shlibpath_var_CXX=unsupported
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  else
    whole_archive_flag_spec_CXX=''
  fi
  link_all_deplibs_CXX=yes
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=func_echo_all
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
    fi

  else
  ld_shlibs_CXX=no
  fi

	;;

      dgux*)
        case $cc_basename in
          ec++*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          ghcx*)
	    # Green Hills C++ Compiler
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      freebsd[12]*)
        # C++ shared libraries reported to be fairly broken before
	# switch to ELF
        ld_shlibs_CXX=no
        ;;

      freebsd-elf*)
        archive_cmds_need_lc_CXX=no
        ;;

      freebsd* | dragonfly*)
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
        # conventions
        ld_shlibs_CXX=yes
        ;;

      gnu*)
        ;;

      haiku*)
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
        link_all_deplibs_CXX=yes
        ;;

      hpux9*)
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        export_dynamic_flag_spec_CXX='${wl}-E'
        hardcode_direct_CXX=yes
        hardcode_minus_L_CXX=yes # Not in the search PATH,
				             # but as the default
				             # location of the library.

        case $cc_basename in
          CC*)
            # FIXME: insert proper C++ library support
            ld_shlibs_CXX=no
            ;;
          aCC*)
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            # Commands to make compiler produce verbose output that lists
            # what "hidden" libraries, object files and flags are used when
            # linking a shared library.
            #
            # There doesn't appear to be a way to prevent this compiler from
            # explicitly linking system object files so we need to strip them
            # from the output so that they don't get included in the library
            # dependencies.
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
            ;;
          *)
            if test "$GXX" = yes; then
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            else
              # FIXME: insert proper C++ library support
              ld_shlibs_CXX=no
            fi
            ;;
        esac
        ;;

      hpux10*|hpux11*)
        if test $with_gnu_ld = no; then
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

          case $host_cpu in
            hppa*64*|ia64*)
              ;;
            *)
	      export_dynamic_flag_spec_CXX='${wl}-E'
              ;;
          esac
        fi
        case $host_cpu in
          hppa*64*|ia64*)
            hardcode_direct_CXX=no
            hardcode_shlibpath_var_CXX=no
            ;;
          *)
            hardcode_direct_CXX=yes
            hardcode_direct_absolute_CXX=yes
            hardcode_minus_L_CXX=yes # Not in the search PATH,
					         # but as the default
					         # location of the library.
            ;;
        esac

        case $cc_basename in
          CC*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          aCC*)
	    case $host_cpu in
	      hppa*64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      ia64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      *)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	    esac
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test $with_gnu_ld = no; then
	        case $host_cpu in
	          hppa*64*)
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          ia64*)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          *)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	        esac
	      fi
	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      interix[3-9]*)
	hardcode_direct_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}-E'
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
	# Instead, shared libraries are loaded at an image base (0x10000000 by
	# default) and relocated if they conflict, which is a slow very memory
	# consuming and fragmenting process.  To avoid this, we pick a random,
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	;;
      irix5* | irix6*)
        case $cc_basename in
          CC*)
	    # SGI C++
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'

	    # Archives containing C++ object files must be created using
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test "$with_gnu_ld" = no; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	      else
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
	      fi
	    fi
	    link_all_deplibs_CXX=yes
	    ;;
        esac
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        inherit_rpath_CXX=yes
        ;;

      linux* | k*bsd*-gnu | kopensolaris*-gnu)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

	    # Archives containing C++ object files must be created using
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
	    ;;
	  icpc* | ecpc* )
	    # Intel C++
	    with_gnu_ld=yes
	    # version 8.0 and above of icpc choke on multiply defined symbols
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
	    # earlier do not add the objects themselves.
	    case `$CC -V 2>&1` in
	      *"Version 7."*)
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	      *)  # Version 8.0 or newer
	        tmp_idyn=
	        case $host_cpu in
		  ia64*) tmp_idyn=' -i_dynamic';;
		esac
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	    esac
	    archive_cmds_need_lc_CXX=no
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    ;;
          pgCC* | pgcpp*)
            # Portland Group C++ compiler
	    case `$CC -V` in
	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
	      prelink_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
	      old_archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
		$RANLIB $oldlib'
	      archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    *) # Version 6 and above use weak symbols
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    esac

	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
            ;;
	  cxx*)
	    # Compaq C++
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'

	    runpath_var=LD_RUN_PATH
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
	    ;;
	  xl* | mpixl* | bgxl*)
	    # IBM XL 8.0 on PPC, with GNU ld
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    if test "x$supports_anon_versioning" = xyes; then
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
		echo "local: *; };" >> $output_objdir/$libname.ver~
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	    fi
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      no_undefined_flag_CXX=' -zdefs'
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	      compiler_needs_object_CXX=yes

	      # Not sure whether something based on
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
	      # would be better.
	      output_verbose_link_cmd='func_echo_all'

	      # Archives containing C++ object files must be created using
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	      # necessary to make sure instantiated templates are included
	      # in the archive.
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	      ;;
	    esac
	    ;;
	esac
	;;

      lynxos*)
        # FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;

      m88k*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
	;;

      mvs*)
        case $cc_basename in
          cxx*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	  *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	esac
	;;

      netbsd*)
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
	  wlarc=
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	fi
	# Workaround some broken pre-1.5 toolchains
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
	;;

      *nto* | *qnx*)
        ld_shlibs_CXX=yes
	;;

      openbsd2*)
        # C++ shared libraries are fairly broken
	ld_shlibs_CXX=no
	;;

      openbsd*)
	if test -f /usr/libexec/ld.so; then
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	  hardcode_direct_absolute_CXX=yes
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
	    export_dynamic_flag_spec_CXX='${wl}-E'
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
	  fi
	  output_verbose_link_cmd=func_echo_all
	else
	  ld_shlibs_CXX=no
	fi
	;;

      osf3* | osf4* | osf5*)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    hardcode_libdir_separator_CXX=:

	    # Archives containing C++ object files must be created using
	    # the KAI C++ compiler.
	    case $host in
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
	    esac
	    ;;
          RCC*)
	    # Rational C++ 2.4.1
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          cxx*)
	    case $host in
	      osf3*)
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
		;;
	      *)
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
	          echo "-hidden">> $lib.exp~
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
	          $RM $lib.exp'
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
		;;
	    esac

	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
	  *)
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	      case $host in
	        osf3*)
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	        *)
	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	      esac

	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	      hardcode_libdir_separator_CXX=:

	      # Commands to make compiler produce verbose output that lists
	      # what "hidden" libraries, object files and flags are used when
	      # linking a shared library.
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      psos*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      sunos4*)
        case $cc_basename in
          CC*)
	    # Sun C++ 4.x
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          lcc*)
	    # Lucid
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      solaris*)
        case $cc_basename in
          CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
            archive_cmds_need_lc_CXX=yes
	    no_undefined_flag_CXX=' -zdefs'
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	    hardcode_libdir_flag_spec_CXX='-R$libdir'
	    hardcode_shlibpath_var_CXX=no
	    case $host_os in
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
	      *)
		# The compiler driver will combine and reorder linker options,
		# but understands `-z linker_flag'.
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
	        ;;
	    esac
	    link_all_deplibs_CXX=yes

	    output_verbose_link_cmd='func_echo_all'

	    # Archives containing C++ object files must be created using
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	    ;;
          gcx*)
	    # Green Hills C++ Compiler
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'

	    # The C++ compiler must be used to create the archive.
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
	    ;;
          *)
	    # GNU C++ compiler with Solaris linker
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      else
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
	        # platform.
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      fi

	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
	      case $host_os in
		solaris2.[0-5] | solaris2.[0-5].*) ;;
		*)
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
		  ;;
	      esac
	    fi
	    ;;
        esac
        ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag_CXX='${wl}-z,text'
      archive_cmds_need_lc_CXX=no
      hardcode_shlibpath_var_CXX=no
      runpath_var='LD_RUN_PATH'

      case $cc_basename in
        CC*)
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
      esac
      ;;

      sysv5* | sco3.2v5* | sco5v6*)
	# Note: We can NOT use -z defs as we might desire, because we do not
	# link with -lc, and that would cause any symbols used from libc to
	# always be unresolved, which means just about no library would
	# ever link correctly.  If we're not using GNU ld we use -z text
	# though, which does catch some bad symbols but isn't as heavy-handed
	# as -z defs.
	no_undefined_flag_CXX='${wl}-z,text'
	allow_undefined_flag_CXX='${wl}-z,nodefs'
	archive_cmds_need_lc_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
	hardcode_libdir_separator_CXX=':'
	link_all_deplibs_CXX=yes
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
	runpath_var='LD_RUN_PATH'

	case $cc_basename in
          CC*)
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
	      '"$old_archive_cmds_CXX"
	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
	      '"$reload_cmds_CXX"
	    ;;
	  *)
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    ;;
	esac
      ;;

      tandem*)
        case $cc_basename in
          NCC*)
	    # NonStop-UX NCC 3.20
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      vxworks*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      *)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
    test "$ld_shlibs_CXX" = no && can_build_shared=no

    GCC_CXX="$GXX"
    LD_CXX="$LD"

    ## CAVEAT EMPTOR:
    ## There is no encapsulation within the following macros, do not change
    ## the running order or otherwise move them around unless you know exactly
    ## what you are doing...
    # Dependencies to place before and after the object being linked:
predep_objects_CXX=
postdep_objects_CXX=
predeps_CXX=
postdeps_CXX=
compiler_lib_search_path_CXX=

cat > conftest.$ac_ext <<_LT_EOF
class Foo
{
public:
  Foo (void) { a = 0; }
private:
  int a;
};
_LT_EOF


_lt_libdeps_save_CFLAGS=$CFLAGS
case "$CC $CFLAGS " in #(
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
esac

if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # Parse the compiler output and extract the necessary
  # objects, libraries and library flags.

  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  pre_test_object_deps_done=no

  for p in `eval "$output_verbose_link_cmd"`; do
    case ${prev}${p} in

    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       if test $p = "-L" ||
          test $p = "-R"; then
	 prev=$p
	 continue
       fi

       # Expand the sysroot to ease extracting the directories later.
       if test -z "$prev"; then
         case $p in
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
         esac
       fi
       case $p in
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
       esac
       if test "$pre_test_object_deps_done" = no; then
	 case ${prev} in
	 -L | -R)
	   # Internal compiler library paths should come after those
	   # provided the user.  The postdeps already come after the
	   # user supplied libs so there is no need to process them.
	   if test -z "$compiler_lib_search_path_CXX"; then
	     compiler_lib_search_path_CXX="${prev}${p}"
	   else
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
	   fi
	   ;;
	 # The "-l" case would never come before the object being
	 # linked, so don't bother handling this case.
	 esac
       else
	 if test -z "$postdeps_CXX"; then
	   postdeps_CXX="${prev}${p}"
	 else
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
	 fi
       fi
       prev=
       ;;

    *.lto.$objext) ;; # Ignore GCC LTO objects
    *.$objext)
       # This assumes that the test object file only shows up
       # once in the compiler output.
       if test "$p" = "conftest.$objext"; then
	 pre_test_object_deps_done=yes
	 continue
       fi

       if test "$pre_test_object_deps_done" = no; then
	 if test -z "$predep_objects_CXX"; then
	   predep_objects_CXX="$p"
	 else
	   predep_objects_CXX="$predep_objects_CXX $p"
	 fi
       else
	 if test -z "$postdep_objects_CXX"; then
	   postdep_objects_CXX="$p"
	 else
	   postdep_objects_CXX="$postdep_objects_CXX $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling CXX test program"
fi

$RM -f confest.$objext
CFLAGS=$_lt_libdeps_save_CFLAGS

# PORTME: override above test on systems where it is broken
case $host_os in
interix[3-9]*)
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  # hack all around it, let's just trust "g++" to DTRT.
  predep_objects_CXX=
  postdep_objects_CXX=
  postdeps_CXX=
  ;;

linux*)
  case `$CC -V 2>&1 | sed 5q` in
  *Sun\ C*)
    # Sun C++ 5.9

    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;

solaris*)
  case $cc_basename in
  CC* | sunCC*)
    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;
esac


case " $postdeps_CXX " in
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
esac
 compiler_lib_search_dirs_CXX=
if test -n "${compiler_lib_search_path_CXX}"; then
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
fi































    lt_prog_compiler_wl_CXX=
lt_prog_compiler_pic_CXX=
lt_prog_compiler_static_CXX=


  # C++ specific cases for pic, static, wl, etc.
  if test "$GXX" = yes; then
    lt_prog_compiler_wl_CXX='-Wl,'
    lt_prog_compiler_static_CXX='-static'

    case $host_os in
    aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_CXX='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic_CXX='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | cygwin* | os2* | pw32* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_CXX='-fno-common'
      ;;
    *djgpp*)
      # DJGPP does not support shared libraries at all
      lt_prog_compiler_pic_CXX=
      ;;
    haiku*)
      # PIC is the default for Haiku.
      # The "-static" flag exists, but is broken.
      lt_prog_compiler_static_CXX=
      ;;
    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_CXX=-Kconform_pic
      fi
      ;;
    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	;;
      *)
	lt_prog_compiler_pic_CXX='-fPIC'
	;;
      esac
      ;;
    *qnx* | *nto*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_CXX='-fPIC -shared'
      ;;
    *)
      lt_prog_compiler_pic_CXX='-fPIC'
      ;;
    esac
  else
    case $host_os in
      aix[4-9]*)
	# All AIX code is PIC.
	if test "$host_cpu" = ia64; then
	  # AIX 5 now supports IA64 processor
	  lt_prog_compiler_static_CXX='-Bstatic'
	else
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
	fi
	;;
      chorus*)
	case $cc_basename in
	cxch68*)
	  # Green Hills C++ Compiler
	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
	  ;;
	esac
	;;
      mingw* | cygwin* | os2* | pw32* | cegcc*)
	# This hack is so that the source file can tell whether it is being
	# built for inclusion in a dll (and should export symbols for example).
	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
	;;
      dgux*)
	case $cc_basename in
	  ec++*)
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  ghcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      freebsd* | dragonfly*)
	# FreeBSD uses GNU C++
	;;
      hpux9* | hpux10* | hpux11*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    if test "$host_cpu" != ia64; then
	      lt_prog_compiler_pic_CXX='+Z'
	    fi
	    ;;
	  aCC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    case $host_cpu in
	    hppa*64*|ia64*)
	      # +Z the default
	      ;;
	    *)
	      lt_prog_compiler_pic_CXX='+Z'
	      ;;
	    esac
	    ;;
	  *)
	    ;;
	esac
	;;
      interix*)
	# This is c89, which is MS Visual C++ (no shared libs)
	# Anyone wants to do a port?
	;;
      irix5* | irix6* | nonstopux*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='-non_shared'
	    # CC pic flag -KPIC is the default.
	    ;;
	  *)
	    ;;
	esac
	;;
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
	case $cc_basename in
	  KCC*)
	    # KAI C++ Compiler
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  ecpc* )
	    # old Intel C++ for x86_64 which still supported -KPIC.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  icpc* )
	    # Intel C++, used to be incompatible with GCC.
	    # ICC 10 doesn't accept -KPIC any more.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  pgCC* | pgcpp*)
	    # Portland Group C++ compiler
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fpic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  cxx*)
	    # Compaq C++
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
	    # IBM XL 8.0, 9.0 on PPC and BlueGene
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-qpic'
	    lt_prog_compiler_static_CXX='-qstaticlink'
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      lt_prog_compiler_pic_CXX='-KPIC'
	      lt_prog_compiler_static_CXX='-Bstatic'
	      lt_prog_compiler_wl_CXX='-Qoption ld '
	      ;;
	    esac
	    ;;
	esac
	;;
      lynxos*)
	;;
      m88k*)
	;;
      mvs*)
	case $cc_basename in
	  cxx*)
	    lt_prog_compiler_pic_CXX='-W c,exportall'
	    ;;
	  *)
	    ;;
	esac
	;;
      netbsd*)
	;;
      *qnx* | *nto*)
        # QNX uses GNU C++, but need to define -shared option too, otherwise
        # it will coredump.
        lt_prog_compiler_pic_CXX='-fPIC -shared'
        ;;
      osf3* | osf4* | osf5*)
	case $cc_basename in
	  KCC*)
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    ;;
	  RCC*)
	    # Rational C++ 2.4.1
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  cxx*)
	    # Digital/Compaq C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      psos*)
	;;
      solaris*)
	case $cc_basename in
	  CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    lt_prog_compiler_wl_CXX='-Qoption ld '
	    ;;
	  gcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-PIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sunos4*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.x
	    lt_prog_compiler_pic_CXX='-pic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  lcc*)
	    # Lucid
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	esac
	;;
      tandem*)
	case $cc_basename in
	  NCC*)
	    # NonStop-UX NCC 3.20
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      vxworks*)
	;;
      *)
	lt_prog_compiler_can_build_shared_CXX=no
	;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_CXX=
    ;;
  *)
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works_CXX=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works_CXX=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
    case $lt_prog_compiler_pic_CXX in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
     esac
else
    lt_prog_compiler_pic_CXX=
     lt_prog_compiler_can_build_shared_CXX=no
fi

fi





#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works_CXX=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_cv_prog_compiler_static_works_CXX=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  case $host_os in
  aix[4-9]*)
    # If we're using GNU nm, then we don't want the "-C" option.
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    # Also, AIX nm treats weak defined symbols like other global defined
    # symbols, whereas GNU nm marks them as "W".
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    else
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    fi
    ;;
  pw32*)
    export_symbols_cmds_CXX="$ltdll_cmds"
    ;;
  cygwin* | mingw* | cegcc*)
    case $cc_basename in
    cl*) ;;
    *)
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
      ;;
    esac
    ;;
  *)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    ;;
  esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
test "$ld_shlibs_CXX" = no && can_build_shared=no

with_gnu_ld_CXX=$with_gnu_ld






#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_CXX" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_CXX=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_CXX in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  $RM conftest*
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext

	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
	  soname=conftest
	  lib=conftest
	  libobjs=conftest.$ac_objext
	  deplibs=
	  wl=$lt_prog_compiler_wl_CXX
	  pic_flag=$lt_prog_compiler_pic_CXX
	  compiler_flags=-v
	  linker_flags=-v
	  verstring=
	  output_objdir=.
	  libname=conftest
	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
	  allow_undefined_flag_CXX=
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	  then
	    lt_cv_archive_cmds_need_lc_CXX=no
	  else
	    lt_cv_archive_cmds_need_lc_CXX=yes
	  fi
	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
	else
	  cat conftest.err 1>&5
	fi
	$RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
      ;;
    esac
  fi
  ;;
esac
































































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$cc_basename in
  yes,*)
    # gcc
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'

      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    dynamic_linker='Win32 ld.exe'
    ;;

  *,cl*)
    # Native MSVC
    libname_spec='$name'
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'

    case $build_os in
    mingw*)
      sys_lib_search_path_spec=
      lt_save_ifs=$IFS
      IFS=';'
      for lt_path in $LIB
      do
        IFS=$lt_save_ifs
        # Let DOS variable expansion print the short 8.3 style file name.
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @@echo %~si"`
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
      done
      IFS=$lt_save_ifs
      # Convert to MSYS style.
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
      ;;
    cygwin*)
      # Convert to unix form, then to dos form, then back to unix form
      # but this time dos style (no spaces!) so that the unix form looks
      # like /cygdrive/c/PROGRA~1:/cygdr...
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      ;;
    *)
      sys_lib_search_path_spec="$LIB"
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      fi
      # FIXME: find the short name or the path components, as spaces are
      # common. (e.g. "Program Files" -> "PROGRA~1")
      ;;
    esac

    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
    dynamic_linker='Win32 link.exe'
    ;;

  *)
    # Assume MSVC wrapper
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    dynamic_linker='Win32 ld.exe'
    ;;
  esac
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

haiku*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  dynamic_linker="$host_os runtime_loader"
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  postinstall_cmds='chmod 555 $lib'
  # or fails outright, so override atomically:
  install_override_mode=555
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no

  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi






































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action_CXX=
if test -n "$hardcode_libdir_flag_spec_CXX" ||
   test -n "$runpath_var_CXX" ||
   test "X$hardcode_automatic_CXX" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct_CXX" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_CXX=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_CXX=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_CXX=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
$as_echo "$hardcode_action_CXX" >&6; }

if test "$hardcode_action_CXX" = relink ||
   test "$inherit_rpath_CXX" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi







  fi # test -n "$compiler"

  CC=$lt_save_CC
  CFLAGS=$lt_save_CFLAGS
  LDCXX=$LD
  LD=$lt_save_LD
  GCC=$lt_save_GCC
  with_gnu_ld=$lt_save_with_gnu_ld
  lt_cv_path_LDCXX=$lt_cv_path_LD
  lt_cv_path_LD=$lt_save_path_LD
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
fi # test "$_lt_caught_CXX_error" != yes

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu













        ac_config_commands="$ac_config_commands libtool"




# Only expand once:




# NTP has (so far) been relying on leading-edge autogen, which
# means we need the appropriate corresponding libopts as well.
# Therefore, by default:
# - use the version of libopts we ship with
# - do not install it
# - build a static copy (AC_DISABLE_SHARED - done earlier)
case "${enable_local_libopts+set}" in
 set) ;;
 *) enable_local_libopts=yes ;;
esac
case "${enable_libopts_install+set}" in
 set) ;;
 *) enable_libopts_install=no ;;
esac
enable_nls=no
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi



  ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
if eval \${$as_ac_Header+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$as_ac_Header=yes"
else
  eval "$as_ac_Header=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_ac_Header
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dir; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' x; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi


  # =================
  # AC_CHECK_HEADERS
  # =================
  for ac_header in  \
      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
      fcntl.h       libgen.h      libintl.h     memory.h \
      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
      unistd.h      utime.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  for ac_header in stdarg.h     varargs.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_arg_hdr=true;break
else
  lo_have_arg_hdr=false
fi

done


  for ac_header in string.h     strings.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_str_hdr=true;break
else
  lo_have_str_hdr=false
fi

done


  for ac_header in limits.h     sys/limits.h  values.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_lim_hdr=true;break
else
  lo_have_lim_hdr=false
fi

done


  for ac_header in inttypes.h   stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_typ_hdr=true;break
else
  lo_have_typ_hdr=false
fi

done


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
$as_echo_n "checking for working stdnoreturn.h... " >&6; }
if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
            #include <stdnoreturn.h>
            /* Do not check for 'noreturn' after the return type.
               C11 allows it, but it's rarely done that way
               and circa-2012 bleeding-edge GCC rejects it when given
               -Werror=old-style-declaration.  */
            noreturn void foo1 (void) { exit (0); }
            _Noreturn void foo2 (void) { exit (0); }
            int testit (int argc, char **argv) {
              if (argc & 1)
                return 0;
              (argv[0][0] ? foo1 : foo2) ();
            }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  gl_cv_header_working_stdnoreturn_h=yes
else
  gl_cv_header_working_stdnoreturn_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }

  if test $gl_cv_header_working_stdnoreturn_h = yes; then
    STDNORETURN_H=''
  else
    STDNORETURN_H='stdnoreturn.h'
  fi


   if test -n "$STDNORETURN_H"; then
  GL_GENERATE_STDNORETURN_H_TRUE=
  GL_GENERATE_STDNORETURN_H_FALSE='#'
else
  GL_GENERATE_STDNORETURN_H_TRUE='#'
  GL_GENERATE_STDNORETURN_H_FALSE=
fi



  # ----------------------------------------------------------------------
  # check for various programs used during the build.
  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  # ----------------------------------------------------------------------
  for ac_header in runetype.h wchar.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  $ac_includes_default
  #if HAVE_RUNETYPE_H
  # include <runetype.h>
  #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  # Check whether --enable-nls was given.
if test "${enable_nls+set}" = set; then :
  enableval=$enable_nls;
fi

  if test "x$enable_nls" != "xno" && \
  test "X${ac_cv_header_libintl_h}" = Xyes; then :


$as_echo "#define ENABLE_NLS 1" >>confdefs.h

fi

  # --------------------------------------------
  # Verify certain entries from AC_CHECK_HEADERS
  # --------------------------------------------
  ${lo_have_arg_hdr} || \
    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5

  ${lo_have_str_hdr} || \
    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5

  ${lo_have_lim_hdr} || \
    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5

  ${lo_have_typ_hdr} || \
    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5

  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  do eval as_ac_var=\${ac_cv_header_${f}_h}
     test "X${as_ac_var}" = Xyes || {
       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
     }
  done
  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
    echo '#include <stdint.h>' > inttypes.h

  # ----------------------------------------------------------------------
  # Checks for typedefs
  # ----------------------------------------------------------------------
  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
if test "x$ac_cv_type_wchar_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WCHAR_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
    $ac_includes_default
    #if HAVE_RUNETYPE_H
    # include <runetype.h>
    #endif
    #if HAVE_WCHAR_H
    # include <wchar.h>
    #endif

"
if test "x$ac_cv_type_wint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WINT_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
if test "x$ac_cv_type_int8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
if test "x$ac_cv_type_uint8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
if test "x$ac_cv_type_int16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
if test "x$ac_cv_type_uint16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
if test "x$ac_cv_type_int32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
if test "x$ac_cv_type_uint32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
if test "x$ac_cv_type_intptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
if test "x$ac_cv_type_uint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PID_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SIZE_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi

  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
$as_echo_n "checking size of char*... " >&6; }
if ${ac_cv_sizeof_charp+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_charp" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (char*)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_charp=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
$as_echo "$ac_cv_sizeof_charp" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHARP $ac_cv_sizeof_charp
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF



  # ------------
  # AC_CHECK_LIB
  # ------------
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
$as_echo_n "checking for pathfind in -lgen... " >&6; }
if ${ac_cv_lib_gen_pathfind+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgen  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pathfind ();
int
main ()
{
return pathfind ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gen_pathfind=yes
else
  ac_cv_lib_gen_pathfind=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGEN 1
_ACEOF

  LIBS="-lgen $LIBS"

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
$as_echo_n "checking for gettext in -lintl... " >&6; }
if ${ac_cv_lib_intl_gettext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lintl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gettext ();
int
main ()
{
return gettext ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_intl_gettext=yes
else
  ac_cv_lib_intl_gettext=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
$as_echo "$ac_cv_lib_intl_gettext" >&6; }
if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBINTL 1
_ACEOF

  LIBS="-lintl $LIBS"

fi

  for ac_func in vprintf
do :
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
if test "x$ac_cv_func_vprintf" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VPRINTF 1
_ACEOF

ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
if test "x$ac_cv_func__doprnt" = xyes; then :

$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h

fi

fi
done


  for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
                 strrchr strsignal fchmod fstat chmod
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

  while :
  do
      POSIX_SHELL=`which bash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`which dash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=/usr/xpg4/bin/sh
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`/bin/sh -c '
          exec 2>/dev/null
          if ! true ; then exit 1 ; fi
          echo /bin/sh'`
      test -x "$POSIX_SHELL" && break
      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  done

cat >>confdefs.h <<_ACEOF
#define POSIX_SHELL "${POSIX_SHELL}"
_ACEOF





  LIBOPTS_BUILD_BLOCKED=true


  NEED_LIBOPTS_DIR=''

  # Check whether --enable-local-libopts was given.
if test "${enable_local_libopts+set}" = set; then :
  enableval=$enable_local_libopts;
    if test x$enableval = xyes ; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
       NEED_LIBOPTS_DIR=true
       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
    fi
fi


  # Check whether --enable-libopts-install was given.
if test "${enable_libopts_install+set}" = set; then :
  enableval=$enable_libopts_install;
fi

   if test "X${enable_libopts_install}" = Xyes; then
  INSTALL_LIBOPTS_TRUE=
  INSTALL_LIBOPTS_FALSE='#'
else
  INSTALL_LIBOPTS_TRUE='#'
  INSTALL_LIBOPTS_FALSE=
fi


  if test -z "${NEED_LIBOPTS_DIR}" ; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
$as_echo_n "checking whether autoopts-config can be found... " >&6; }

# Check whether --with-autoopts-config was given.
if test "${with_autoopts_config+set}" = set; then :
  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
$as_echo_n "checking whether autoopts-config is specified... " >&6; }
if ${lo_cv_with_autoopts_config+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if autoopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=autoopts-config
        elif libopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=libopts-config
        else lo_cv_with_autoopts_config=no ; fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
$as_echo "$lo_cv_with_autoopts_config" >&6; }

fi
 # end of AC_ARG_WITH

     if ${lo_cv_test_autoopts+:} false; then :
  $as_echo_n "(cached) " >&6
else

        if test -z "${lo_cv_with_autoopts_config}" \
                -o X"${lo_cv_with_autoopts_config}" = Xno
        then
           if autoopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=autoopts-config
           elif libopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=libopts-config
           else lo_cv_with_autoopts_config=false ; fi
        fi
        lo_cv_test_autoopts=`
            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
        then lo_cv_test_autoopts=no ; fi

fi
 # end of CACHE_VAL
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
$as_echo "${lo_cv_test_autoopts}" >&6; }

     if test "X${lo_cv_test_autoopts}" != Xno
     then
        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
     else
        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
        NEED_LIBOPTS_DIR=true
     fi
  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
    NEED_LIBOPTS_DIR=''
  fi
   if test -n "${NEED_LIBOPTS_DIR}"; then
  NEED_LIBOPTS_TRUE=
  NEED_LIBOPTS_FALSE='#'
else
  NEED_LIBOPTS_TRUE='#'
  NEED_LIBOPTS_FALSE=
fi



  LIBOPTS_DIR=sntp/libopts


# end of AC_DEFUN of LIBOPTS_CHECK_COMMON

  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD




# Check whether --enable-local-libevent was given.
if test "${enable_local_libevent+set}" = set; then :
  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
else
  ntp_use_local_libevent=${ntp_use_local_libevent-detect}

fi






# Expose a cross-compilation indicator to makefiles
 if test $build != $host; then
  NTP_CROSSCOMPILE_TRUE=
  NTP_CROSSCOMPILE_FALSE='#'
else
  NTP_CROSSCOMPILE_TRUE='#'
  NTP_CROSSCOMPILE_FALSE=
fi



ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi


            # Check whether --enable-c99-snprintf was given.
if test "${enable_c99_snprintf+set}" = set; then :
  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
else
  force_c99_snprintf=no

fi

    case "$force_c99_snprintf" in
     yes)
	hw_force_rpl_snprintf=yes
	hw_force_rpl_vsnprintf=yes
    esac






  for ac_header in $ac_header_list
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done







      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
if test "x$ac_cv_func_vsnprintf" = xyes; then :
  hw_cv_func_vsnprintf=yes
else
  hw_cv_func_vsnprintf=no
fi

  if test "$hw_cv_func_vsnprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
if ${hw_cv_func_vsnprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_vsnprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if HAVE_STDARG_H
          #include <stdarg.h>
          #endif
          #include <stdio.h>
          static int testprintf(char *buf, size_t size, const char *format, ...)
          {
            int result;
            va_list ap;
            va_start(ap, format);
            result = vsnprintf(buf, size, format, ap);
            va_end(ap);
            return result;
          }
int
main ()
{
char buf[43];
          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_vsnprintf_c99=yes
else
  hw_cv_func_vsnprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
else
  hw_cv_func_vsnprintf_c99=no
fi

$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
  hw_use_rpl_vsnprintf=yes
else
  hw_use_rpl_vsnprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
$as_echo "$hw_use_rpl_vsnprintf" >&6; }
  if test "$hw_use_rpl_vsnprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_vsnprintf=no} = no; then :

$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h

fi
    for ac_header in inttypes.h locale.h stddef.h stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
_ACEOF


fi
ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
_ACEOF


fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
$as_echo_n "checking for long double... " >&6; }
if ${ac_cv_type_long_double+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$GCC" = yes; then
       ac_cv_type_long_double=yes
     else
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* The Stardent Vistra knows sizeof (long double), but does
		 not support it.  */
	      long double foo = 0.0L;
int
main ()
{
static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
	      sizeof (double) <= sizeof (long double))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_long_double=yes
else
  ac_cv_type_long_double=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
$as_echo "$ac_cv_type_long_double" >&6; }
  if test $ac_cv_type_long_double = yes; then

$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
$as_echo_n "checking for long long int... " >&6; }
if ${ac_cv_type_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  			if test "$cross_compiling" = yes; then :
  ac_cv_type_long_long_int=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
	       #ifndef LLONG_MAX
	       # define HALF \
			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
	       # define LLONG_MAX (HALF - 1 + HALF)
	       #endif
int
main ()
{
long long int n = 1;
	       int i;
	       for (i = 0; ; i++)
		 {
		   long long int m = n << i;
		   if (m >> i != n)
		     return 1;
		   if (LLONG_MAX / 2 < m)
		     break;
		 }
	       return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_type_long_long_int=yes
else
  ac_cv_type_long_long_int=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

else
  ac_cv_type_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
$as_echo "$ac_cv_type_long_long_int" >&6; }
  if test $ac_cv_type_long_long_int = yes; then

$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
$as_echo_n "checking for unsigned long long int... " >&6; }
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_type_unsigned_long_long_int=yes
else
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h

  fi

    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
if test "x$ac_cv_type_intmax_t" = xyes; then :

$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_long_long_int = yes \
       && ac_type='long long int' \
       || ac_type='long int'

cat >>confdefs.h <<_ACEOF
#define intmax_t $ac_type
_ACEOF

fi




  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
if test "x$ac_cv_type_uintmax_t" = xyes; then :

$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_unsigned_long_long_int = yes \
       && ac_type='unsigned long long int' \
       || ac_type='unsigned long int'

cat >>confdefs.h <<_ACEOF
#define uintmax_t $ac_type
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h

else
  for ac_type in 'unsigned int' 'unsigned long int' \
	'unsigned long long int'; do
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

cat >>confdefs.h <<_ACEOF
#define uintptr_t $ac_type
_ACEOF

	  ac_type=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       test -z "$ac_type" && break
     done
fi


    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi

    for ac_func in localeconv
do :
  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
if test "x$ac_cv_func_localeconv" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LOCALECONV 1
_ACEOF

fi
done


  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi


    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
if test "x$ac_cv_func_snprintf" = xyes; then :
  hw_cv_func_snprintf=yes
else
  hw_cv_func_snprintf=no
fi

  if test "$hw_cv_func_snprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
if ${hw_cv_func_snprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_snprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
char buf[43];
          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_snprintf_c99=yes
else
  hw_cv_func_snprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
$as_echo "$hw_cv_func_snprintf_c99" >&6; }
else
  hw_cv_func_snprintf_c99=no
fi

$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
  hw_use_rpl_snprintf=yes
else
  hw_use_rpl_snprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
$as_echo "$hw_use_rpl_snprintf" >&6; }
  if test "$hw_use_rpl_snprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_snprintf=no} = no; then :

$as_echo "#define snprintf rpl_snprintf" >>confdefs.h

fi

  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi





# HMS: Save $LIBS and empty it.
# any LIBS we add here should go in to LDADD_LIBNTP

__LIBS=$LIBS
LIBS=



# [Bug 2332] because we need to know if we are using GNU ld...


# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld








{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
$as_echo_n "checking for directory path separator... " >&6; }
if ${ntp_cv_dir_sep+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$ntp_cv_dir_sep" in
	 '')
	    case "$host_os" in
	     *djgpp | *mingw32* | *emx*)
		ntp_cv_dir_sep="'\\'"
		;;
	     *)
		ntp_cv_dir_sep="'/'"
		;;
	    esac
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
$as_echo "$ntp_cv_dir_sep" >&6; }

cat >>confdefs.h <<_ACEOF
#define DIR_SEP $ntp_cv_dir_sep
_ACEOF



    NTP_ORIG_LIBS="$LIBS"

# Check whether --with-lineeditlibs was given.
if test "${with_lineeditlibs+set}" = set; then :
  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
else
  use_lineeditlibs="edit,editline"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
$as_echo_n "checking line editing libraries... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
$as_echo "$use_lineeditlibs" >&6; }
    case "$use_lineeditlibs" in
     no)
	ntp_lib_lineedit=no
	;;
     *)
	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
	    for term_lib in "" termcap curses ncurses; do
		case "$term_lib" in
		 '')
		    TRY_LIB="-l$lineedit_lib"
		    ;;
		 *)
		    TRY_LIB="-l$lineedit_lib -l$term_lib"
		    ;;
		esac
		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char readline ();
int
main ()
{
return readline ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		case "$ntp_lib_lineedit" in
		 '')
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		    ;;
		 *)
		    # Use readline()
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
		    break
		esac
		case "$term_lib" in
		 '')
		    # do not try el_gets without a terminal library
		    ;;
		 *)
		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char el_gets ();
int
main ()
{
return el_gets ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		    case "$ntp_lib_lineedit" in
		     '')
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			;;
		     *) # Use el_gets()
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			break
			;;
		    esac	# $ntp_lib_lineedit
		esac		# $term_lib
	    done
	    case "$ntp_lib_lineedit" in
	     '')
		;;
	     *)
		break
		;;
	    esac
	done
	LIBS="$NTP_ORIG_LIBS"
	;;
    esac	# $use_lineeditlibs

    case "$ntp_lib_lineedit" in
     '')
	ntp_lib_lineedit="no"
	;;
     no)
	;;
     *)
	EDITLINE_LIBS="$ntp_lib_lineedit"

	;;
    esac	# $ntp_lib_lineedit

    case "$ntp_lib_lineedit" in
     no)
	;;
     *)
	for ac_header in readline.h readline/readline.h histedit.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	for ac_header in history.h readline/history.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


	case "$ac_cv_header_histedit_h" in
	 yes)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
$as_echo_n "checking number of arguments to el_init()... " >&6; }
if ${ntp_cv_el_init_args+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    #include <stdio.h>
			    #include <histedit.h>

int
main ()
{

			    el_init("conftest", stdin, stdout, stderr);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_el_init_args=4
else
  ntp_cv_el_init_args=3

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
$as_echo "$ntp_cv_el_init_args" >&6; }

cat >>confdefs.h <<_ACEOF
#define EL_INIT_ARGS $ntp_cv_el_init_args
_ACEOF

	esac

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
$as_echo_n "checking whether readline supports history... " >&6; }

	ntp_lib_lineedit_history="no"
	ORIG_LIBS="$LIBS"
	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char add_history ();
int
main ()
{
return add_history ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit_history="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LIBS="$ORIG_LIBS"

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
$as_echo "$ntp_lib_lineedit_history" >&6; }

	case "$ntp_lib_lineedit_history" in
	 yes)

$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h

	esac
    esac	# $ntp_lib_lineedit
    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
    { ORIG_LIBS=; unset ORIG_LIBS;}
    { TRY_LIB=; unset TRY_LIB;}
    { use_lineeditlibs=; unset use_lineeditlibs;}


LIBM=
case "$host" in
 *-*-darwin*)
    ;;
 *)
    _libs=$LIBS
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
$as_echo_n "checking for library containing cos... " >&6; }
if ${ac_cv_search_cos+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cos ();
int
main ()
{
return cos ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' m; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_cos=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_cos+:} false; then :
  break
fi
done
if ${ac_cv_search_cos+:} false; then :

else
  ac_cv_search_cos=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
$as_echo "$ac_cv_search_cos" >&6; }
ac_res=$ac_cv_search_cos
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  LIBM="-lm"
fi

    LIBS=$_libs
    ;;
esac

{ _libs=; unset _libs;}


for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
$as_echo_n "checking for working alloca.h... " >&6; }
if ${ac_cv_working_alloca_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <alloca.h>
int
main ()
{
char *p = (char *) alloca (2 * sizeof (int));
			  if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_working_alloca_h=yes
else
  ac_cv_working_alloca_h=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
$as_echo "$ac_cv_working_alloca_h" >&6; }
if test $ac_cv_working_alloca_h = yes; then

$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
$as_echo_n "checking for alloca... " >&6; }
if ${ac_cv_func_alloca_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  ifdef HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
void *alloca (size_t);
#    endif
#   endif
#  endif
# endif
#endif

int
main ()
{
char *p = (char *) alloca (1);
				    if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_func_alloca_works=yes
else
  ac_cv_func_alloca_works=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
$as_echo "$ac_cv_func_alloca_works" >&6; }

if test $ac_cv_func_alloca_works = yes; then

$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h

else
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble.  Some versions do not even contain alloca or
# contain a buggy version.  If you still want to use their alloca,
# use ar to extract alloca.o from them instead of compiling alloca.c.

ALLOCA=\${LIBOBJDIR}alloca.$ac_objext

$as_echo "#define C_ALLOCA 1" >>confdefs.h


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
if ${ac_cv_os_cray+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if defined CRAY && ! defined CRAY2
webecray
#else
wenotbecray
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "webecray" >/dev/null 2>&1; then :
  ac_cv_os_cray=yes
else
  ac_cv_os_cray=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
$as_echo "$ac_cv_os_cray" >&6; }
if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :

cat >>confdefs.h <<_ACEOF
#define CRAY_STACKSEG_END $ac_func
_ACEOF

    break
fi

  done
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
$as_echo_n "checking stack direction for C alloca... " >&6; }
if ${ac_cv_c_stack_direction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_c_stack_direction=0
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}

int
main ()
{
  return find_stack_direction () < 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_stack_direction=1
else
  ac_cv_c_stack_direction=-1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
$as_echo "$ac_cv_c_stack_direction" >&6; }
cat >>confdefs.h <<_ACEOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
_ACEOF


fi

ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRERROR_R $ac_have_decl
_ACEOF

for ac_func in strerror_r
do :
  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
if test "x$ac_cv_func_strerror_r" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRERROR_R 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
if ${ac_cv_func_strerror_r_char_p+:} false; then :
  $as_echo_n "(cached) " >&6
else

    ac_cv_func_strerror_r_char_p=no
    if test $ac_cv_have_decl_strerror_r = yes; then
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  char *p = strerror_r (0, buf, sizeof buf);
	  return !p || x;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    else
      # strerror_r is not declared.  Choose between
      # systems that have relatively inaccessible declarations for the
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
      # former has a strerror_r that returns char*, while the latter
      # has a strerror_r that returns `int'.
      # This test should segfault on the DEC system.
      if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
	extern char *strerror_r ();
int
main ()
{
char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  return ! isalpha (x);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
if test $ac_cv_func_strerror_r_char_p = yes; then

$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h

fi


ac_busted_vpath_in_make=no
case "$build" in
 *-*-irix6.1*)	# 64 bit only
    # busted vpath?
    ;;
 *-*-irix6*)	# 6.2 (and later?)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-solaris2.5.1)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-unicosmp*)
    ac_busted_vpath_in_make=yes
    ;;
esac

case "$ac_busted_vpath_in_make$srcdir" in
 yes.|no*)
    ;;
 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
    esac
    ;;
esac

case "$host" in
 *-*-aix4*)
	# Bug 2516:
	# Was *-*-aix[[4-9]]*
	# XXX only verified thru AIX6.  But...
	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
	# that this support would be in 5.3, removed in 6, and added back.
	#
	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
	# IBM pulls its thumbs out long enough to implement clock_settime,
	# this conditional will need to change.  Maybe use AC_TRY_RUN
	# instead to try to set the time to itself and check errno.
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
$as_echo_n "checking for library containing clock_gettime... " >&6; }
if ${ac_cv_search_clock_gettime+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char clock_gettime ();
int
main ()
{
return clock_gettime ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_clock_gettime=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_clock_gettime+:} false; then :
  break
fi
done
if ${ac_cv_search_clock_gettime+:} false; then :

else
  ac_cv_search_clock_gettime=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
$as_echo "$ac_cv_search_clock_gettime" >&6; }
ac_res=$ac_cv_search_clock_gettime
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_clock_gettime" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
 esac

fi

    for ac_func in clock_getres clock_gettime clock_settime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac

for ac_func in getclock stime timegm strlcpy strlcat
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


#
for ac_header in errno.h sys/socket.h sys/types.h time.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in net/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif

"
if test "x$ac_cv_header_net_if_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_H 1
_ACEOF

fi

done

case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
if ${ntp_cv_predecl_mpinfou+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    np_cv_predecl_mpinfou=no
	    case "$ac_cv_header_net_if_h" in
	     no)
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    typedef union mpinfou {
				    struct pdk_mpinfo *pdkptr;
				    struct mpinfo *pikptr;
			    } mpinfou_t;
			    #ifdef HAVE_SYS_SOCKET_H
			    # include <sys/socket.h>
			    #endif
			    #include <net/if.h>

int
main ()
{



  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

			ntp_cv_predecl_mpinfou=yes
			ac_cv_header_net_if_h=yes


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
$as_echo "$ntp_cv_predecl_mpinfou" >&6; }
    case "$ntp_cv_predecl_mpinfou" in
     yes)
	cat >>confdefs.h <<_ACEOF
#ifndef MPINFOU_PREDECLARED
# define MPINFOU_PREDECLARED
typedef union mpinfou {
	struct pdk_mpinfo *pdkptr;
	struct mpinfo *pikptr;
} mpinfou_t;
#endif
_ACEOF

    esac
esac

case "$host" in
 *-linux*)
    for ac_header in linux/if_addr.h
do :
  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
	#ifdef HAVE_SYS_SOCKET_H
	# include <sys/socket.h>
	#endif

"
if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LINUX_IF_ADDR_H 1
_ACEOF

fi

done

esac

for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
for ac_header in sys/sysctl.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
    #if defined HAVE_SYS_PARAM_H
    # include <sys/param.h>
    #endif

"
if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SYSCTL_H 1
_ACEOF

fi

done

for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in resolv.h
do :
  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_ARPA_NAMESER_H
    # include <arpa/nameser.h>
    #endif

"
if test "x$ac_cv_header_resolv_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RESOLV_H 1
_ACEOF

fi

done


for ac_header in net/if_var.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
    #if HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif

"
if test "x$ac_cv_header_net_if_var_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_VAR_H 1
_ACEOF

fi

done


for ac_header in netinet/ip.h netinet/in_var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_VAR_H
    # include <net/if_var.h>
    #endif
    #ifdef HAVE_NETINET_IN_SYSTM_H
    # include <netinet/in_systm.h>
    #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


# HMS: Do we need to check for -lsocket before or after these tests?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
$as_echo_n "checking for library containing inet_pton... " >&6; }
if ${ac_cv_search_inet_pton+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_pton ();
int
main ()
{
return inet_pton ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' nsl; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_pton=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_pton+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_pton+:} false; then :

else
  ac_cv_search_inet_pton=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
$as_echo "$ac_cv_search_inet_pton" >&6; }
ac_res=$ac_cv_search_inet_pton
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_pton" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
 esac

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
$as_echo_n "checking for library containing inet_ntop... " >&6; }
if ${ac_cv_search_inet_ntop+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_ntop ();
int
main ()
{
return inet_ntop ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_ntop=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_ntop+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_ntop+:} false; then :

else
  ac_cv_search_inet_ntop=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
$as_echo "$ac_cv_search_inet_ntop" >&6; }
ac_res=$ac_cv_search_inet_ntop
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_ntop" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
 esac

fi


# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
# avoid keying on the OS name:  If we find socket functions in
# libsocket, next try for them in libxnet without libsocket, if found,
# list both.  If we simply tested libxnet first, we would find the
# functions there and never add libsocket.  See also [Bug 660]
# http://bugs.ntp.org/show_bug.cgi?id=660#c9
saved_LIBS=$LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
$as_echo_n "checking for library containing setsockopt... " >&6; }
if ${ac_cv_search_setsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char setsockopt ();
int
main ()
{
return setsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' socket; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_setsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_setsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_setsockopt+:} false; then :

else
  ac_cv_search_setsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
$as_echo "$ac_cv_search_setsockopt" >&6; }
ac_res=$ac_cv_search_setsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_setsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
 esac

fi

case "$ac_cv_search_setsockopt" in
 -lsocket)
    LIBS="$saved_LIBS"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
$as_echo_n "checking for library containing getsockopt... " >&6; }
if ${ac_cv_search_getsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getsockopt ();
int
main ()
{
return getsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' xnet; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_getsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_getsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_getsockopt+:} false; then :

else
  ac_cv_search_getsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
$as_echo "$ac_cv_search_getsockopt" >&6; }
ac_res=$ac_cv_search_getsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_getsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
 esac

fi

    # XXX Possible trouble here - reading the comments above and looking at the
    # code below I wonder if we'll add -lxnet when we don't need it.
    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
    # there when it is not needed?
    case "$ac_cv_search_getsockopt" in
     -lxnet)
	LIBS="-lxnet -lsocket $saved_LIBS"
	;;
     *) LIBS="-lsocket $saved_LIBS"
	;;
    esac
    ;;
esac
{ saved_LIBS=; unset saved_LIBS;}

# Bug 2427 - look for recvmsg here.
for ac_func in recvmsg
do :
  ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
if test "x$ac_cv_func_recvmsg" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RECVMSG 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if ${ac_cv_c_inline+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }

case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac


case "$ac_cv_c_inline" in
 '')
    ;;
 *)

$as_echo "#define HAVE_INLINE 1" >>confdefs.h


esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if ${ac_cv_header_time+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_time=yes
else
  ac_cv_header_time=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h

fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
$as_echo_n "checking size of time_t... " >&6; }
if ${ac_cv_sizeof_time_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_time_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (time_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_time_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
$as_echo "$ac_cv_sizeof_time_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
$as_echo_n "checking whether char is unsigned... " >&6; }
if ${ac_cv_c_char_unsigned+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_char_unsigned=no
else
  ac_cv_c_char_unsigned=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
$as_echo "$ac_cv_c_char_unsigned" >&6; }
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h

fi
		# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
$as_echo_n "checking size of signed char... " >&6; }
if ${ac_cv_sizeof_signed_char+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_signed_char" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (signed char)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_signed_char=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
$as_echo "$ac_cv_sizeof_signed_char" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
_ACEOF


ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
if test "x$ac_cv_type_s_char" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_S_CHAR 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
if test "x$ac_cv_type_long_long" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF



case "$ac_cv_type_long_long" in
 no)
    ;;
 *)
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
if ${ac_cv_sizeof_long_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF


    ;;
esac

case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
 *yes)
    # We have a typedef for s_char.  Might as well believe it...
    ;;
 no0no)
    # We have signed chars, can't say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 no1no)
    # We have signed chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 yes0no)
    # We have unsigned chars, can't say 'signed char', no s_char typedef.
    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
    ;;
 yes1no)
    # We have unsigned chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
if ${ac_cv_type_uid_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "uid_t" >/dev/null 2>&1; then :
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; }
if test $ac_cv_type_uid_t = no; then

$as_echo "#define uid_t int" >>confdefs.h


$as_echo "#define gid_t int" >>confdefs.h

fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
$as_echo_n "checking if we're including debugging code... " >&6; }
# Check whether --enable-debugging was given.
if test "${enable_debugging+set}" = set; then :
  enableval=$enable_debugging; ntp_ok=$enableval
else
  ntp_ok=yes

fi

case "$ntp_ok" in
 yes)

$as_echo "#define DEBUG 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }



# check if we can compile with pthreads
for ac_header in semaphore.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
if test "x$ac_cv_header_semaphore_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SEMAPHORE_H 1
_ACEOF

fi

done

for ac_func in socketpair
do :
  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
if test "x$ac_cv_func_socketpair" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKETPAIR 1
_ACEOF

fi
done

# Check whether --enable-thread-support was given.
if test "${enable_thread_support+set}" = set; then :
  enableval=$enable_thread_support;
else
  enable_thread_support=yes

fi

have_pthreads=no
case "$enable_thread_support" in
 yes)
    ol_found_pthreads=no



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

# OpenLDAP --with-threads

# Check whether --with-threads was given.
if test "${with_threads+set}" = set; then :
  withval=$with_threads;
	ol_arg=invalid
	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
	fi
	ol_with_threads="$ol_arg"

else
  	ol_with_threads="auto"
fi
# end --with-threads


case "$ol_with_threads$host" in
 auto*-*-solaris2.[0-6])
        ol_with_threads=no
    ;;
esac


ol_aix_threads=no
case "$host" in
*-*-aix*) 	if test -z "$CC" ; then
		case "$ol_with_threads" in
		auto | yes |  posix) ol_aix_threads=yes ;;
		esac
	fi
;;
esac

if test $ol_aix_threads = yes ; then
	if test -z "${CC}" ; then
		for ac_prog in cc_r xlc_r cc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$CC" && break
done


		if test "$CC" = cc ; then
						if test $ol_with_threads != auto ; then
				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
			fi
			ol_with_threads=no
  		fi
	fi

	case ${CC} in cc_r | xlc_r)
		ol_with_threads=posix
		ol_cv_pthread_create=yes
		;;
	esac
fi

ol_link_threads=no
# OpenLDAP --with-yielding_select

# Check whether --with-yielding_select was given.
if test "${with_yielding_select+set}" = set; then :
  withval=$with_yielding_select;
	ol_arg=invalid
	for ol_val in auto yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
	fi
	ol_with_yielding_select="$ol_arg"

else
  	ol_with_yielding_select="auto"
fi
# end --with-yielding_select


case $ol_with_threads in auto | yes | nt)


	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
if test "x$ac_cv_func__beginthread" = xyes; then :

fi


	if test $ac_cv_func__beginthread = yes ; then

$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h

		ol_cv_nt_threads=yes
	fi


	if test "$ol_cv_nt_threads" = yes ; then
		ol_link_threads=nt
		ol_with_threads=found
		ol_with_yielding_select=yes


$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h


$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h

	fi

	if test $ol_with_threads = nt ; then
		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | posix)

	for ac_header in pthread.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_H 1
_ACEOF

fi

done


	if test $ac_cv_header_pthread_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
$as_echo_n "checking POSIX thread version... " >&6; }
if ${ol_cv_pthread_version+:} false; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>

int
main ()
{

		int i = PTHREAD_CREATE_JOINABLE;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_detach" >/dev/null 2>&1; then :
  ol_cv_pthread_version=10
else
  ol_cv_pthread_version=8
fi
rm -f conftest*

else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>
#		ifdef PTHREAD_CREATE_UNDETACHED
		draft7
#		endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft7" >/dev/null 2>&1; then :
  ol_cv_pthread_version=7
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
  ol_cv_pthread_version=6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>
#ifdef		PTHREAD_MUTEX_INITIALIZER
		draft5
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft5" >/dev/null 2>&1; then :
  ol_cv_pthread_version=5
else
  ol_cv_pthread_version=4
fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
$as_echo "$ol_cv_pthread_version" >&6; }


		if test $ol_cv_pthread_version != 0 ; then

cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREADS $ol_cv_pthread_version
_ACEOF

		else
			as_fn_error $? "unknown pthread version" "$LINENO" 5
		fi

		# consider threads found
		ol_with_threads=found


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then

$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h

	fi


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
#ifdef _POSIX_THREAD_IS_GNU_PTH
	__gnu_pth__;
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
  ol_cv_header_gnu_pth_pthread_h=yes
else
  ol_cv_header_gnu_pth_pthread_h=no
fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }


		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
			for ac_header in sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_H 1
_ACEOF

fi

done

		fi


				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
$as_echo_n "checking for pthread_create in default libraries... " >&6; }
if ${ol_cv_pthread_create+:} false; then :
  $as_echo_n "(cached) " >&6
else

			if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
$as_echo "$ol_cv_pthread_create" >&6; }

		if test $ol_cv_pthread_create != no ; then
			ol_link_threads=posix
			ol_link_pthreads=""
		fi

		# Pthread try link: -kthread (ol_cv_pthread_kthread)
if test "$ol_link_threads" = no ; then
	# try -kthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
$as_echo_n "checking for pthread link with -kthread... " >&6; }
if ${ol_cv_pthread_kthread+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-kthread $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
$as_echo "$ol_cv_pthread_kthread" >&6; }

	if test $ol_cv_pthread_kthread = yes ; then
		ol_link_pthreads="-kthread"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -pthread (ol_cv_pthread_pthread)
if test "$ol_link_threads" = no ; then
	# try -pthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
$as_echo_n "checking for pthread link with -pthread... " >&6; }
if ${ol_cv_pthread_pthread+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthread $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_pthread=yes
else
  ol_cv_pthread_pthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthread=yes
else
  ol_cv_pthread_pthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
$as_echo "$ol_cv_pthread_pthread" >&6; }

	if test $ol_cv_pthread_pthread = yes ; then
		ol_link_pthreads="-pthread"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
if test "$ol_link_threads" = no ; then
	# try -pthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
$as_echo_n "checking for pthread link with -pthreads... " >&6; }
if ${ol_cv_pthread_pthreads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthreads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_pthreads=yes
else
  ol_cv_pthread_pthreads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthreads=yes
else
  ol_cv_pthread_pthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
$as_echo "$ol_cv_pthread_pthreads" >&6; }

	if test $ol_cv_pthread_pthreads = yes ; then
		ol_link_pthreads="-pthreads"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
if test "$ol_link_threads" = no ; then
	# try -mthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
$as_echo_n "checking for pthread link with -mthreads... " >&6; }
if ${ol_cv_pthread_mthreads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-mthreads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_mthreads=yes
else
  ol_cv_pthread_mthreads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_mthreads=yes
else
  ol_cv_pthread_mthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
$as_echo "$ol_cv_pthread_mthreads" >&6; }

	if test $ol_cv_pthread_mthreads = yes ; then
		ol_link_pthreads="-mthreads"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -thread (ol_cv_pthread_thread)
if test "$ol_link_threads" = no ; then
	# try -thread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
$as_echo_n "checking for pthread link with -thread... " >&6; }
if ${ol_cv_pthread_thread+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-thread $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_thread=yes
else
  ol_cv_pthread_thread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_thread=yes
else
  ol_cv_pthread_thread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
$as_echo "$ol_cv_pthread_thread" >&6; }

	if test $ol_cv_pthread_thread = yes ; then
		ol_link_pthreads="-thread"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }

	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
else
  ol_cv_pthread_lpthread_lmach_lexc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
else
  ol_cv_pthread_lpthread_lmach_lexc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }

	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
if test "$ol_link_threads" = no ; then
	# try -lpthread -Wl,-woff,85
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -Wl,-woff,85 $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
else
  ol_cv_pthread_lib_lpthread_woff=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
else
  ol_cv_pthread_lib_lpthread_woff=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }

	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
		ol_link_pthreads="-lpthread -Wl,-woff,85"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
if test "$ol_link_threads" = no ; then
	# try -lpthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
$as_echo_n "checking for pthread link with -lpthread... " >&6; }
if ${ol_cv_pthread_lpthread+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
else
  ol_cv_pthread_lpthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
else
  ol_cv_pthread_lpthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
$as_echo "$ol_cv_pthread_lpthread" >&6; }

	if test $ol_cv_pthread_lpthread = yes ; then
		ol_link_pthreads="-lpthread"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
$as_echo_n "checking for pthread link with -lc_r... " >&6; }
if ${ol_cv_pthread_lc_r+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
else
  ol_cv_pthread_lc_r=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
else
  ol_cv_pthread_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
$as_echo "$ol_cv_pthread_lc_r" >&6; }

	if test $ol_cv_pthread_lc_r = yes ; then
		ol_link_pthreads="-lc_r"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -threads (ol_cv_pthread_threads)
if test "$ol_link_threads" = no ; then
	# try -threads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
$as_echo_n "checking for pthread link with -threads... " >&6; }
if ${ol_cv_pthread_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-threads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_threads=yes
else
  ol_cv_pthread_threads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_threads=yes
else
  ol_cv_pthread_threads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
$as_echo "$ol_cv_pthread_threads" >&6; }

	if test $ol_cv_pthread_threads = yes ; then
		ol_link_pthreads="-threads"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }

	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }

	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lexc=yes
else
  ol_cv_pthread_lpthreads_lexc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lexc=yes
else
  ol_cv_pthread_lpthreads_lexc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }

	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lexc"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
if test "$ol_link_threads" = no ; then
	# try -lpthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
if ${ol_cv_pthread_lib_lpthreads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
else
  ol_cv_pthread_lib_lpthreads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
else
  ol_cv_pthread_lib_lpthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }

	if test $ol_cv_pthread_lib_lpthreads = yes ; then
		ol_link_pthreads="-lpthreads"
		ol_link_threads=posix
	fi
fi


		if test $ol_link_threads != no ; then
			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"

						save_CPPFLAGS="$CPPFLAGS"
			save_LIBS="$LIBS"
			LIBS="$LTHREAD_LIBS $LIBS"

												for ac_func in sched_yield pthread_yield thr_yield
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test $ac_cv_func_thr_yield = no ; then
								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
$as_echo_n "checking for sched_yield in -lrt... " >&6; }
if ${ac_cv_lib_rt_sched_yield+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_yield ();
int
main ()
{
return sched_yield ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rt_sched_yield=yes
else
  ac_cv_lib_rt_sched_yield=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"

$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h

					ac_cv_func_sched_yield=yes
else
  ac_cv_func_sched_yield=no
fi

			fi
			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test "$ac_cv_func_thr_yield" = no ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
			fi

						for ac_func in pthread_kill
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
if test "x$ac_cv_func_pthread_kill" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL 1
_ACEOF

fi
done


									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
  $as_echo_n "(cached) " >&6
else

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <pthread.h>
pthread_rwlock_t rwlock;

int
main ()
{
pthread_rwlock_destroy(&rwlock);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_func_pthread_rwlock_destroy=yes
else
  ol_cv_func_pthread_rwlock_destroy=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then

$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h

			fi

									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_detach+:} false; then :
  $as_echo_n "(cached) " >&6
else

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <pthread.h>
#ifndef NULL
#define NULL (void*)0
#endif

int
main ()
{
pthread_detach(NULL);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_func_pthread_detach=yes
else
  ol_cv_func_pthread_detach=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
$as_echo "$ol_cv_func_pthread_detach" >&6; }

			if test $ol_cv_func_pthread_detach = no ; then
				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
			fi


$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h


						for ac_func in \
				pthread_setconcurrency \
				pthread_getconcurrency \
				thr_setconcurrency \
				thr_getconcurrency \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done



	for ac_func in pthread_kill_other_threads_np
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
_ACEOF

fi
done

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
$as_echo_n "checking for LinuxThreads implementation... " >&6; }
if ${ol_cv_sys_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
$as_echo "$ol_cv_sys_linux_threads" >&6; }




	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
$as_echo_n "checking for LinuxThreads consistency... " >&6; }
if ${ol_cv_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		if test $ol_cv_header_linux_threads = yes &&
		   test $ol_cv_sys_linux_threads = yes; then
			ol_cv_linux_threads=yes
		elif test $ol_cv_header_linux_threads = no &&
		     test $ol_cv_sys_linux_threads = no; then
			ol_cv_linux_threads=no
		else
			ol_cv_linux_threads=error
		fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
$as_echo "$ol_cv_linux_threads" >&6; }


			if test $ol_cv_linux_threads = error; then
				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
			fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
$as_echo_n "checking if pthread_create() works... " >&6; }
if ${ol_cv_pthread_create_works+:} false; then :
  $as_echo_n "(cached) " >&6
else

			if test "$cross_compiling" = yes; then :
  				ol_cv_pthread_create_works=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create_works=yes
else
  ol_cv_pthread_create_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
$as_echo "$ol_cv_pthread_create_works" >&6; }

			if test $ol_cv_pthread_create_works = no ; then
				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
			fi

			ol_replace_broken_yield=no

			if test $ol_replace_broken_yield = yes ; then

$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h

			fi

						if test x$ol_with_yielding_select = xauto ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
$as_echo_n "checking if select yields when using pthreads... " >&6; }
if ${ol_cv_pthread_select_yields+:} false; then :
  $as_echo_n "(cached) " >&6
else

				if test "$cross_compiling" = yes; then :
  ol_cv_pthread_select_yields=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#ifndef NULL
#define NULL (void*) 0
#endif

static int fildes[2];

static void *task(p)
	void *p;
{
	int i;
	struct timeval tv;

	fd_set rfds;

	tv.tv_sec=10;
	tv.tv_usec=0;

	FD_ZERO(&rfds);
	FD_SET(fildes[0], &rfds);

	/* we're not interested in any fds */
	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);

	if(i < 0) {
		perror("select");
		exit(10);
	}

	exit(0); /* if we exit here, the select blocked the whole process */
}

int main(argc, argv)
	int argc;
	char **argv;
{
	pthread_t t;

	/* create a pipe to select */
	if(pipe(&fildes[0])) {
		perror("select");
		exit(1);
	}

#ifdef HAVE_PTHREAD_SETCONCURRENCY
	(void) pthread_setconcurrency(2);
#else
#ifdef HAVE_THR_SETCONCURRENCY
	/* Set Solaris LWP concurrency to 2 */
	thr_setconcurrency(2);
#endif
#endif

#if HAVE_PTHREADS < 6
	pthread_create(&t, pthread_attr_default, task, NULL);
#else
	pthread_create(&t, NULL, task, NULL);
#endif

	/* make sure task runs first */
#ifdef HAVE_THR_YIELD
	thr_yield();
#elif defined( HAVE_SCHED_YIELD )
	sched_yield();
#elif defined( HAVE_PTHREAD_YIELD )
	pthread_yield();
#endif

	exit(2);
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_select_yields=no
else
  ol_cv_pthread_select_yields=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
$as_echo "$ol_cv_pthread_select_yields" >&6; }

				if test $ol_cv_pthread_select_yields = cross ; then
					as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
				fi

				if test $ol_cv_pthread_select_yields = yes ; then
					ol_with_yielding_select=yes
				fi
			fi

						CPPFLAGS="$save_CPPFLAGS"
			LIBS="$save_LIBS"
		else
			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
		fi
	fi

	if test $ol_with_threads = posix ; then
		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | mach)

		for ac_header in mach/cthreads.h cthreads.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	if test $ac_cv_header_mach_cthreads_h = yes ; then
		ol_with_threads=found

				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
fi


		if test $ol_link_threads = no ; then
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
$as_echo_n "checking for cthread_fork with -all_load... " >&6; }
if ${ol_cv_cthread_all_load+:} false; then :
  $as_echo_n "(cached) " >&6
else

								save_LIBS="$LIBS"
				LIBS="-all_load $LIBS"
				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <mach/cthreads.h>
int
main ()
{

					cthread_fork((void *)0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_cthread_all_load=yes
else
  ol_cv_cthread_all_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
								LIBS="$save_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
$as_echo "$ol_cv_cthread_all_load" >&6; }

			if test $ol_cv_cthread_all_load = yes ; then
				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
				ol_link_threads=mach
				ol_with_threads=found
			fi
		fi

	elif test $ac_cv_header_cthreads_h = yes ; then

		ol_with_threads=found

				save_LIBS="$LIBS"
		LIBS="$LIBS -lthreads"
		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
fi

		LIBS="$save_LIBS"

		if test $ol_link_threads = yes ; then
			LTHREAD_LIBS="-lthreads"
			ol_link_threads=mach
			ol_with_threads=found
		else
			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
		fi

	elif test $ol_with_threads = mach ; then
		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
	fi

	if test $ol_link_threads = mach ; then

$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h

	elif test $ol_with_threads = found ; then
		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | pth)

	for ac_header in pth.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
if test "x$ac_cv_header_pth_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTH_H 1
_ACEOF

fi

done


	if test $ac_cv_header_pth_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
$as_echo_n "checking for pth_version in -lpth... " >&6; }
if ${ac_cv_lib_pth_pth_version+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpth  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pth_version ();
int
main ()
{
return pth_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pth_pth_version=yes
else
  ac_cv_lib_pth_pth_version=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
  have_pth=yes
else
  have_pth=no
fi


		if test $have_pth = yes ; then

$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h

			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
			ol_link_threads=pth
			ol_with_threads=found

			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi
		fi
	fi
	;;
esac

case $ol_with_threads in auto | yes | lwp)

		for ac_header in thread.h synch.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	if test $ac_cv_header_thread_h = yes &&
	   test $ac_cv_header_synch_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
$as_echo_n "checking for thr_create in -lthread... " >&6; }
if ${ac_cv_lib_thread_thr_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char thr_create ();
int
main ()
{
return thr_create ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_thread_thr_create=yes
else
  ac_cv_lib_thread_thr_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
  have_thr=yes
else
  have_thr=no
fi


		if test $have_thr = yes ; then

$as_echo "#define HAVE_THR 1" >>confdefs.h

			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
			ol_link_threads=thr

			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi

						for ac_func in \
				thr_setconcurrency \
				thr_getconcurrency \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

		fi
	fi

		for ac_header in lwp/lwp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LWP_LWP_H 1
_ACEOF

fi

done

	if test $ac_cv_header_lwp_lwp_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
$as_echo_n "checking for lwp_create in -llwp... " >&6; }
if ${ac_cv_lib_lwp_lwp_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llwp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lwp_create ();
int
main ()
{
return lwp_create ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_lwp_lwp_create=yes
else
  ac_cv_lib_lwp_lwp_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
  have_lwp=yes
else
  have_lwp=no
fi


		if test $have_lwp = yes ; then

$as_echo "#define HAVE_LWP 1" >>confdefs.h

			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
			ol_link_threads=lwp

			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=no
			fi
		fi
	fi
	;;
esac

if test $ol_with_yielding_select = yes ; then

$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h

fi

if test $ol_with_threads = manual ; then
		ol_link_threads=yes

	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}

	for ac_header in pthread.h sched.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	for ac_func in sched_yield pthread_yield
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then

$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h

	fi


	for ac_header in mach/cthreads.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MACH_CTHREADS_H 1
_ACEOF

fi

done

	for ac_header in lwp/lwp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LWP_LWP_H 1
_ACEOF

fi

done

	for ac_header in thread.h synch.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

fi

if test $ol_link_threads != no && test $ol_link_threads != nt ; then

$as_echo "#define REENTRANT 1" >>confdefs.h


$as_echo "#define _REENTRANT 1" >>confdefs.h


$as_echo "#define THREAD_SAFE 1" >>confdefs.h


$as_echo "#define _THREAD_SAFE 1" >>confdefs.h


$as_echo "#define THREADSAFE 1" >>confdefs.h


$as_echo "#define _THREADSAFE 1" >>confdefs.h


$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h


			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
$as_echo_n "checking for thread specific errno... " >&6; }
if ${ol_cv_errno_thread_specific+:} false; then :
  $as_echo_n "(cached) " >&6
else

		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <errno.h>
int
main ()
{
errno = 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_errno_thread_specific=yes
else
  ol_cv_errno_thread_specific=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
$as_echo "$ol_cv_errno_thread_specific" >&6; }

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
$as_echo_n "checking for thread specific h_errno... " >&6; }
if ${ol_cv_h_errno_thread_specific+:} false; then :
  $as_echo_n "(cached) " >&6
else

		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netdb.h>
int
main ()
{
h_errno = 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_h_errno_thread_specific=yes
else
  ol_cv_h_errno_thread_specific=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
$as_echo "$ol_cv_h_errno_thread_specific" >&6; }

	if test $ol_cv_errno_thread_specific != yes ||
	   test $ol_cv_h_errno_thread_specific != yes ; then
		LIBS="$LTHREAD_LIBS $LIBS"
		LTHREAD_LIBS=""
	fi

fi

if test $ol_link_threads = no ; then
	if test $ol_with_threads = yes ; then
		as_fn_error $? "no suitable thread support" "$LINENO" 5
	fi

	if test $ol_with_threads = auto ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
		ol_with_threads=no
	fi


$as_echo "#define NO_THREADS 1" >>confdefs.h

	LTHREAD_LIBS=""
	BUILD_THREAD=no
else
	BUILD_THREAD=yes
fi

if test $ol_link_threads != no ; then

$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h

fi

# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
case "$ol_with_threads" in
 no)
    ol_pthread_ok=no

    ;;
 *)
    ol_found_pthreads=yes
    ;;
esac

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    case "$ol_found_pthreads" in
     yes)
	saved_LIBS="$LIBS"
	LIBS="$LTHREAD_LIBS $LIBS"
	saved_CFLAGS="$CFLAGS"
	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
	for ac_func in sem_timedwait
do :
  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
if test "x$ac_cv_func_sem_timedwait" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SEM_TIMEDWAIT 1
_ACEOF

fi
done

	LIBS="$saved_LIBS"
	{ saved_LIBS=; unset saved_LIBS;}
	CFLAGS="$saved_CFLAGS"
	{ saved_CFLAGS=; unset saved_CFLAGS;}
	case "$ac_cv_func_sem_timedwait" in
	 yes)
	    PTHREAD_LIBS="$LTHREAD_LIBS"
	    have_pthreads=yes
	    # Bug 2332: With GCC we need to force a reference to libgcc_s
	    # (if libgcc_s exists) or the combination of
	    # threads + setuid + mlockall does not work on linux because
	    # thread cancellation fails to load libgcc_s with dlopen().
	    # We have to pass this all as linker options to avoid argument
	    # reordering by libtool.
	    case "$GCC$with_gnu_ld" in
	    yesyes)
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lgcc_s" >&5
$as_echo_n "checking for exit in -lgcc_s... " >&6; }
if ${ac_cv_lib_gcc_s_exit+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgcc_s  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char exit ();
int
main ()
{
return exit ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gcc_s_exit=yes
else
  ac_cv_lib_gcc_s_exit=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_exit" >&5
$as_echo "$ac_cv_lib_gcc_s_exit" >&6; }
if test "x$ac_cv_lib_gcc_s_exit" = xyes; then :
  PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed"
fi

		;;
	    esac
	esac
    esac
esac

case "$have_pthreads" in
 yes)
    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
    saved_LIBS="$LIBS"
    LIBS="$LTHREAD_LIBS $LIBS"
    saved_CFLAGS="$CFLAGS"
    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
$as_echo_n "checking size of pthread_t... " >&6; }
if ${ac_cv_sizeof_pthread_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
	    $ac_includes_default
	    #include <pthread.h>


"; then :

else
  if test "$ac_cv_type_pthread_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (pthread_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_pthread_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
$as_echo "$ac_cv_sizeof_pthread_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
_ACEOF


    LIBISC_PTHREADS_NOTHREADS=pthreads

$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h

    #
    # We'd like to use sigwait() too
    #
    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
if test "x$ac_cv_func_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
$as_echo_n "checking for sigwait in -lc... " >&6; }
if ${ac_cv_lib_c_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_sigwait=yes
else
  ac_cv_lib_c_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
$as_echo "$ac_cv_lib_c_sigwait" >&6; }
if test "x$ac_cv_lib_c_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
$as_echo_n "checking for sigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread_sigwait=yes
else
  ac_cv_lib_pthread_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread__Psigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char _Psigwait ();
int
main ()
{
return _Psigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread__Psigwait=yes
else
  ac_cv_lib_pthread__Psigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
  have_sigwait=yes
else
  have_sigwait=no

fi


fi


fi


fi

    case "$host:$have_sigwait" in
     *-freebsd*:no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
$as_echo_n "checking for sigwait in -lc_r... " >&6; }
if ${ac_cv_lib_c_r_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc_r  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_r_sigwait=yes
else
  ac_cv_lib_c_r_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
  have_sigwait=yes

fi

    esac
    case "$have_sigwait" in
     yes)
	ac_cv_func_sigwait=yes

$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h

    esac

    for ac_func in pthread_attr_getstacksize
do :
  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
_ACEOF

fi
done

    for ac_func in pthread_attr_setstacksize sysconf
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


    case "$host" in
     *-freebsd5.[012]|*-freebsd5.[012].*)
	;;
     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)

$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h

	;;
     *-bsdi3.*|*-bsdi4.0*)

$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h

	;;
     *-linux*)

$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h

	;;
     *-solaris*)
	$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

	for ac_func in pthread_setconcurrency
do :
  ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_SETCONCURRENCY 1
_ACEOF

fi
done

	case "$ac_cv_func_pthread_setconcurrency" in
	 yes)

$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h

	esac
	;;
     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)

$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h

	;;
    esac
    hack_shutup_pthreadonceinit=no
    case "$host" in
     *-aix5.[123].*)
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.[89])
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.1[0-9])
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <pthread.h>

int
main ()
{

		        static pthread_once_t once_test =
						PTHREAD_ONCE_INIT;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_braces_around_pthread_once_init=no
else
  ntp_cv_braces_around_pthread_once_init=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
	case "$ntp_cv_braces_around_pthread_once_init" in
	 yes)
	    hack_shutup_pthreadonceinit=yes
	esac
	;;
    esac
    case "$hack_shutup_pthreadonceinit" in
     yes)

$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h

    esac
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
    CFLAGS="$saved_CFLAGS"
    { saved_CFLAGS=; unset saved_CFLAGS;}
    ;;
 *)
    LIBISC_PTHREADS_NOTHREADS=nothreads
    ;;
esac

 if test "$have_pthreads" != "no"; then
  PTHREADS_TRUE=
  PTHREADS_FALSE='#'
else
  PTHREADS_TRUE='#'
  PTHREADS_FALSE=
fi







case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
 no:yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
if ${ntp_cv_vsnprintf_percent_m+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ntp_cv_vsnprintf_percent_m=no

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include <stdarg.h>
		    #include <errno.h>
		    #include <stdio.h>
		    #include <string.h>

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    );

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    )
		    {
			    va_list	ap;
			    int		rc;

			    va_start(ap, fmt);
			    rc = vsnprintf(dst, sz, fmt, ap);
			    va_end(ap);

			    return rc;
		    }

int
main ()
{

		    char	sbuf[512];
		    char	pbuf[512];
		    int		slen;

		    strcpy(sbuf, strerror(ENOENT));
		    errno = ENOENT;
		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
					  "wrong");
		    return strcmp(sbuf, pbuf);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ntp_cv_vsnprintf_percent_m=yes
else
  ntp_cv_vsnprintf_percent_m=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
    case "$ntp_cv_vsnprintf_percent_m" in
     yes)

$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h

    esac
esac

for ac_header in sys/clockctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_CLOCKCTL_H 1
_ACEOF

fi

done


# Check whether --enable-clockctl was given.
if test "${enable_clockctl+set}" = set; then :
  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
else
  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
$as_echo "$ntp_use_dev_clockctl" >&6; }


for ac_header in sys/capability.h sys/prctl.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }

case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
 yesyes)
    case "$host" in
     mips-sgi-irix*)
	ntp_have_linuxcaps=no
	;;
     *) ntp_have_linuxcaps=yes
	;;
    esac
    ;;
 *)
    ntp_have_linuxcaps=no
    ;;
esac

# Check whether --enable-linuxcaps was given.
if test "${enable_linuxcaps+set}" = set; then :
  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
$as_echo "$ntp_have_linuxcaps" >&6; }

case "$ntp_have_linuxcaps" in
 yes)

$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h

    LIBS="$LIBS -lcap"
    ;;
esac


for ac_header in priv.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
if test "x$ac_cv_header_priv_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PRIV_H 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }

case "$ac_cv_header_priv_h" in
 yes)
    case "$host" in
     *-solaris*)
	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
if test "x$ac_cv_func_setppriv" = xyes; then :
  ntp_have_solarisprivs=yes
else
  ntp_have_solarisprivs=no

fi

	;;
    esac
esac

# Check whether --enable-solarisprivs was given.
if test "${enable_solarisprivs+set}" = set; then :
  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval

fi



case "$ntp_have_solarisprivs" in
 yes)

$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
$as_echo "$ntp_have_solarisprivs" >&6; }

case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
 *yes*)

$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h

esac

case "$host" in
 *-*-darwin*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
$as_echo_n "checking for library containing res_9_init... " >&6; }
if ${ac_cv_search_res_9_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char res_9_init ();
int
main ()
{
return res_9_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_9_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_res_9_init+:} false; then :
  break
fi
done
if ${ac_cv_search_res_9_init+:} false; then :

else
  ac_cv_search_res_9_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
$as_echo "$ac_cv_search_res_9_init" >&6; }
ac_res=$ac_cv_search_res_9_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

    ;;
 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
$as_echo_n "checking for library containing res_init... " >&6; }
if ${ac_cv_search_res_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char res_init ();
int
main ()
{
return res_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_res_init+:} false; then :
  break
fi
done
if ${ac_cv_search_res_init+:} false; then :

else
  ac_cv_search_res_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
$as_echo "$ac_cv_search_res_init" >&6; }
ac_res=$ac_cv_search_res_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

    ;;
esac
for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


#HMS: Why do we do this check so "early"?
for ac_func in res_init
do :
  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
if test "x$ac_cv_func_res_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RES_INIT 1
_ACEOF

else
  for ac_func in __res_init
do :
  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
if test "x$ac_cv_func___res_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___RES_INIT 1
_ACEOF

fi
done

fi
done


# We also need -lsocket, but we have tested for that already.
ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
if test "x$ac_cv_func_inet_ntop" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
if test "x$ac_cv_func_inet_pton" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h

fi


ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
if test "x$ac_cv_type_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
if test "x$ac_cv_type_u_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT32 1
_ACEOF


fi




case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
$as_echo_n "checking for int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_int32_with_dns+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>

int
main ()
{

		    size_t cb = sizeof(int32);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_type_int32_with_dns=yes
else
  ntp_cv_type_int32_with_dns=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
$as_echo "$ntp_cv_type_int32_with_dns" >&6; }
    case "$ntp_cv_type_int32_with_dns" in
     yes)

$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h

    esac
esac

case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
$as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_u_int32_with_dns+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>

int
main ()
{

		    size_t cb = sizeof(u_int32);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_type_u_int32_with_dns=yes
else
  ntp_cv_type_u_int32_with_dns=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
    case "$ntp_cv_type_u_int32_with_dns" in
     yes)

$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h

    esac
esac

for ac_header in sys/timepps.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
	#ifdef HAVE_SYS_TIME_H
	# include <sys/time.h>
	#endif
	#ifdef HAVE_ERRNO_H
	# include <errno.h>
	#endif


"
if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEPPS_H 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
$as_echo_n "checking for struct timespec... " >&6; }
if ${ntp_cv_struct_timespec+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>
		/* Under SunOS, timespec is in sys/timepps.h,
		   which needs errno.h and FRAC */
		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif
		#ifdef HAVE_SYS_TIMEPPS_H
		# define FRAC 4294967296
		# include <sys/timepps.h>
		#endif

int
main ()
{

		struct timespec n;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_timespec=yes
else
  ntp_cv_struct_timespec=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
$as_echo "$ntp_cv_struct_timespec" >&6; }
case "$ntp_cv_struct_timespec" in
 yes)

$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
$as_echo_n "checking for struct ntptimeval... " >&6; }
if ${ntp_cv_struct_ntptimeval+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>
		#include <sys/timex.h>

int
main ()
{

		struct ntptimeval n;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ntptimeval=yes
else
  ntp_cv_struct_ntptimeval=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
case "$ntp_cv_struct_ntptimeval" in
 yes)

$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h

esac

for ac_header in md5.h
do :
  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
	#ifdef HAVE_SYS_TYPES_H
	# include <sys/types.h>
	#endif


"
if test "x$ac_cv_header_md5_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MD5_H 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
$as_echo_n "checking for library containing MD5Init... " >&6; }
if ${ac_cv_search_MD5Init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char MD5Init ();
int
main ()
{
return MD5Init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' md5 md; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_MD5Init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_MD5Init+:} false; then :
  break
fi
done
if ${ac_cv_search_MD5Init+:} false; then :

else
  ac_cv_search_MD5Init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
$as_echo "$ac_cv_search_MD5Init" >&6; }
ac_res=$ac_cv_search_MD5Init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
$as_echo_n "checking for SIGIO... " >&6; }
if ${ntp_cv_hdr_def_sigio+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <signal.h>

	    #ifndef SIGIO
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_hdr_def_sigio=yes
else
  ntp_cv_hdr_def_sigio=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
$as_echo "$ntp_cv_hdr_def_sigio" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
$as_echo_n "checking if we want to use SIGIO... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigio" in
 yes)
    ans=yes
    case "$host" in
     alpha*-dec-osf4*|alpha*-dec-osf5*)
	ans=no
	;;
     *-convex-*)
	ans=no
	;;
     *-dec-*)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-univel-sysv*)
	ans=no
	;;
     *-*-irix6*)
	ans=no
	;;
     *-*-freebsd*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     m68k-*-mint*)
	ans=no
	;;
    esac
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
$as_echo_n "checking for SIGPOLL... " >&6; }
if ${ntp_cv_hdr_def_sigpoll+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <signal.h>

	    #ifndef SIGPOLL
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_hdr_def_sigpoll=yes
else
  ntp_cv_hdr_def_sigpoll=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-solaris*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>

int
main ()
{

		gettimeofday(0, 0);
		settimeofday(0, 0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_func_Xettimeofday_nargs=2
else
  ntp_cv_func_Xettimeofday_nargs=1

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
case "$ntp_cv_func_Xettimeofday_nargs" in
 1)

$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h

esac

for ac_func in settimeofday
do :
  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
if test "x$ac_cv_func_settimeofday" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETTIMEOFDAY 1
_ACEOF

else

    case "$host" in
     *-*-mpeix*) ac_cv_func_settimeofday=yes
    esac

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
ntp_warning='GRONK'
ans=none
case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
 yes*)
    ntp_warning=''
    ans='clock_settime()'
    ;;
 noyes*)
    ntp_warning='But clock_settime() would be better (if we had it)'
    ans='settimeofday()'
    ;;
 nonoyes)
    ntp_warning='Which is the worst of the three'
    ans='stime()'
    ;;
 *)
    case "$build" in
     $host)
	ntp_warning='Which leaves us with nothing to use!'
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ntp_warning" in
 '')
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
    ;;
esac


LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
LIBS=$__LIBS
{ __LIBS=; unset __LIBS;}



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
$as_echo_n "checking for deprecated --with-arlib... " >&6; }

# Check whether --with-arlib was given.
if test "${with_arlib+set}" = set; then :
  withval=$with_arlib; ans=$withval
else
  ans=no
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&5
$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&2;}
    ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
$as_echo_n "checking for library containing strerror... " >&6; }
if ${ac_cv_search_strerror+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strerror ();
int
main ()
{
return strerror ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' cposix; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_strerror=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_strerror+:} false; then :
  break
fi
done
if ${ac_cv_search_strerror+:} false; then :

else
  ac_cv_search_strerror=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
$as_echo "$ac_cv_search_strerror" >&6; }
ac_res=$ac_cv_search_strerror
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi



# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_PERL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_PERL=$ac_cv_path_PATH_PERL
if test -n "$PATH_PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
$as_echo "$PATH_PERL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
# Extract the first word of "test", so it can be a program name with args.
set dummy test; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_TEST+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_TEST in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_TEST=$ac_cv_path_PATH_TEST
if test -n "$PATH_TEST"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
$as_echo "$PATH_TEST" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh


# Check whether --with-net-snmp-config was given.
if test "${with_net_snmp_config+set}" = set; then :
  withval=$with_net_snmp_config; ans=$withval
else
  ans=yes

fi

case "$ans" in
 no)
    ;;
 yes)
    ans=net-snmp-config
    ;;
 /*)
    ;;
 */*)
    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
    ;;
 *)
    ;;
esac
PROG_NET_SNMP_CONFIG=$ans
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
case "$PROG_NET_SNMP_CONFIG" in
 no) ;;
 /*)
    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
    ;;
 *)
    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_NET_SNMP_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
if test -n "$PATH_NET_SNMP_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }

case "$host" in
 *-*-vxworks*)
    ac_link="$ac_link $VX_KERNEL"
    ;;
esac

# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
$as_echo_n "checking for library containing openlog... " >&6; }
if ${ac_cv_search_openlog+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char openlog ();
int
main ()
{
return openlog ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' gen syslog; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_openlog=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_openlog+:} false; then :
  break
fi
done
if ${ac_cv_search_openlog+:} false; then :

else
  ac_cv_search_openlog=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
$as_echo "$ac_cv_search_openlog" >&6; }
ac_res=$ac_cv_search_openlog
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

# XXX library list will be in ac_cv_search_openlog

# LIBSECCOMP is off by default -- needs testing with all the features
# Please send bug reports to loganaden@@gmail.com
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
# Check whether --enable-libseccomp was given.
if test "${enable_libseccomp+set}" = set; then :
  enableval=$enable_libseccomp; ntp_ok=$enableval
else
  ntp_ok=no

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
$as_echo_n "checking for library containing seccomp_init... " >&6; }
if ${ac_cv_search_seccomp_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char seccomp_init ();
int
main ()
{
return seccomp_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' seccomp; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_seccomp_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_seccomp_init+:} false; then :
  break
fi
done
if ${ac_cv_search_seccomp_init+:} false; then :

else
  ac_cv_search_seccomp_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
$as_echo "$ac_cv_search_seccomp_init" >&6; }
ac_res=$ac_cv_search_seccomp_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

$as_echo "#define LIBSECCOMP 1" >>confdefs.h


fi

    if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	#include <stdio.h>
	#include <stdlib.h>
	#include <errno.h>
	#include <sys/prctl.h>
	#include <linux/seccomp.h>

	int main(void)
	{
		int ret;
		ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
		if (ret < 0) {
			switch (errno) {
			case ENOSYS:
				return 1;
			case EINVAL:
				return 1;
			default:
				return 1;
			}
		}
		ret =
		prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
		if (ret < 0) {
			switch (errno) {
			case EINVAL:
				return 1;
			case EFAULT:
				return 0;
			default:
				return 1;
		}
	}
return 1;
}


_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

$as_echo "#define KERN_SECCOMP 1" >>confdefs.h


fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
$as_echo_n "checking for facilitynames in syslog.h... " >&6; }
if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define SYSLOG_NAMES
#include <stdlib.h>
#include <syslog.h>

int
main ()
{
 void *fnames; fnames = facilitynames;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
else
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
 yes)

$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h

    ;;
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
    ;;
 cross)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
    ;;
esac



case "$host" in
 *-*-*linux*) ;;
 *-*-osf4*) ;;
 *-*-osf5*) ;;
 *)
    # HMS: Make sure we check for -lrt for clock_* before this...
    case "$ac_cv_search_clock_gettime" in
     '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
$as_echo_n "checking for library containing sched_setscheduler... " >&6; }
if ${ac_cv_search_sched_setscheduler+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_setscheduler ();
int
main ()
{
return sched_setscheduler ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' rt posix4; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_sched_setscheduler=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_sched_setscheduler+:} false; then :
  break
fi
done
if ${ac_cv_search_sched_setscheduler+:} false; then :

else
  ac_cv_search_sched_setscheduler=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
$as_echo "$ac_cv_search_sched_setscheduler" >&6; }
ac_res=$ac_cv_search_sched_setscheduler
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

    ;;
esac

for ac_header in bstring.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
if test "x$ac_cv_header_bstring_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_BSTRING_H 1
_ACEOF

fi

done

ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
if test "x$ac_cv_header_dns_sd_h" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
$as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
if ${ac_cv_search_DNSServiceRegister+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char DNSServiceRegister ();
int
main ()
{
return DNSServiceRegister ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dns_sd; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_DNSServiceRegister=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_DNSServiceRegister+:} false; then :
  break
fi
done
if ${ac_cv_search_DNSServiceRegister+:} false; then :

else
  ac_cv_search_DNSServiceRegister=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
$as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
ac_res=$ac_cv_search_DNSServiceRegister
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h


fi


fi


for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in memory.h netdb.h poll.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in sgtty.h stdlib.h string.h termio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in termios.h timepps.h timex.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


case "$host" in
 *-*-aix*)
    for ac_header in utmpx.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
if test "x$ac_cv_header_utmpx_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMPX_H 1
_ACEOF

fi

done

    case "$ac_cv_header_utmpx_h" in
     yes)
	;;
     *)
	for ac_header in utmp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
if test "x$ac_cv_header_utmp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMP_H 1
_ACEOF

fi

done

	;;
    esac
    ;;
 *)
    for ac_header in utmp.h utmpx.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ;;
esac

#
# On Suns only (so far) getpass() truncates the typed password to 8
# characters, but getpassphrase() allows up to 257.  Most systems'
# getpass() does not truncate, at least not so as to affect ntpq and
# ntpdc password prompts.
#
# So check for getpassphrase(), but only on Sun operating systems.
#
case "$host" in
 *-*-sunos*|*-*-solaris*)
    for ac_func in getpassphrase
do :
  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
if test "x$ac_cv_func_getpassphrase" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETPASSPHRASE 1
_ACEOF

fi
done

esac


for ac_header in net/if6.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
if test "x$ac_cv_header_net_if6_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF6_H 1
_ACEOF

fi

done

for ac_header in net/route.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <net/if.h>

"
if test "x$ac_cv_header_net_route_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_ROUTE_H 1
_ACEOF

fi

done


for ac_header in netinfo/ni.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NETINFO_NI_H 1
_ACEOF

fi

done

case "$ac_cv_header_netinfo_ni_h" in
 yes)

$as_echo "#define HAVE_NETINFO 1" >>confdefs.h

esac
for ac_header in sun/audioio.h sys/audioio.h sys/file.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

case "$host" in
 *-*-sunos4*)
    ;;
 *)
    for ac_header in sys/ioctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_IOCTL_H 1
_ACEOF

fi

done

    ;;
esac
for ac_header in sys/ipc.h sys/lock.h sys/mman.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# HMS: Check sys/proc.h and sys/resource.h after some others
for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

case "$ac_cv_header_sched_h" in
 yes)
    ;;
 *)
    for ac_header in sys/sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SCHED_H 1
_ACEOF

fi

done

    ;;
esac
# HMS: Check sys/shm.h after some others
for ac_header in sys/select.h sys/signal.h sys/sockio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# HMS: Checked sys/socket.h earlier
case "$host" in
 *-*-netbsd*)
    ;;
 *)
    for ac_header in machine/soundcard.h sys/soundcard.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ;;
esac
for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

case "$host" in
*-convex-*)
    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ;;
*-*-bsdi*)
    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ;;
esac

case "$host" in
 *-*-solaris2.6)
    # Broken...
    ;;
 *)
    for ac_func in ntp_adjtime ntp_gettime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac

case "$host" in
 *-*-*linux*)
    case "$ac_cv_func_ntp_gettime" in
     yes)
	;;
     *)
	for ac_func in __ntp_gettime
do :
  ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
if test "x$ac_cv_func___ntp_gettime" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___NTP_GETTIME 1
_ACEOF

fi
done

	case "$ac_cv_func___ntp_gettime" in
	 yes)

$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h


$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h

	esac
	;;
    esac
    for ac_func in adjtimex
do :
  ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
if test "x$ac_cv_func_adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ADJTIMEX 1
_ACEOF

fi
done

    case "$ac_cv_func_adjtimex" in
     yes)

$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h


$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h

	have_adjtimex=1
	;;
     *)
	for ac_func in __adjtimex
do :
  ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
if test "x$ac_cv_func___adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___ADJTIMEX 1
_ACEOF

fi
done

	case "$ac_cv_func___adjtimex" in
	 yes)

$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h


$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h


$as_echo "#define adjtimex __adjtimex" >>confdefs.h


$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h

	    have_adjtimex=1
	esac
	;;
    esac
esac
case "$have_adjtimex" in
 '')
    # nlist stuff is only needed for tickadj.
    saved_LIBS="$LIBS"
    LIBS=
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
$as_echo_n "checking for library containing nlist... " >&6; }
if ${ac_cv_search_nlist+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
int
main ()
{
return nlist ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' elf ld mld; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_nlist=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_nlist+:} false; then :
  break
fi
done
if ${ac_cv_search_nlist+:} false; then :

else
  ac_cv_search_nlist=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
$as_echo "$ac_cv_search_nlist" >&6; }
ac_res=$ac_cv_search_nlist
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

    # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
$as_echo_n "checking for library containing kvm_open... " >&6; }
if ${ac_cv_search_kvm_open+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char kvm_open ();
int
main ()
{
return kvm_open ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' kvm; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_kvm_open=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_kvm_open+:} false; then :
  break
fi
done
if ${ac_cv_search_kvm_open+:} false; then :

else
  ac_cv_search_kvm_open=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
$as_echo "$ac_cv_search_kvm_open" >&6; }
ac_res=$ac_cv_search_kvm_open
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi
	    # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
    for ac_header in nlist.h sys/var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    case "$ac_cv_header_nlist_h" in
     yes)

$as_echo "#define NLIST_STRUCT 1" >>confdefs.h

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
$as_echo_n "checking for n_un in struct nlist... " >&6; }
if ${ntp_cv_struct_nlist_n_un+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <nlist.h>

int
main ()
{

			struct nlist n;
			n.n_un.n_name = 0;


  ;
  return 0;
}
		ntp_cv_struct_nlist_n_un=yes
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_nlist_n_un=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
	case "$ntp_cv_struct_nlist_n_un" in
	 yes)

$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h

	esac
    esac

    LDADD_NLIST="$LIBS"
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
esac

for ac_header in sys/proc.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif

"
if test "x$ac_cv_header_sys_proc_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PROC_H 1
_ACEOF

fi

done


for ac_header in sys/resource.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif

"
if test "x$ac_cv_header_sys_resource_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_RESOURCE_H 1
_ACEOF

fi

done


for ac_header in sys/shm.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_IPC_H
    # include <sys/ipc.h>
    #endif

"
if test "x$ac_cv_header_sys_shm_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SHM_H 1
_ACEOF

fi

done


for ac_header in sys/timex.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif

"
if test "x$ac_cv_header_sys_timex_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEX_H 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
if ${ac_cv_type_signal+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <signal.h>

int
main ()
{
return *(signal (0, 0)) (0) == 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_signal=int
else
  ac_cv_type_signal=void
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }

cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
_ACEOF


ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
if test "x$ac_cv_type_off_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define off_t long int
_ACEOF

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if ${ac_cv_struct_tm+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>

int
main ()
{
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_tm=time.h
else
  ac_cv_struct_tm=sys/time.h
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then

$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
$as_echo_n "checking for a fallback value for HZ... " >&6; }
if ${ntp_cv_default_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_default_hz=100
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_default_hz=1024
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_default_hz=256
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
$as_echo "$ntp_cv_default_hz" >&6; }

cat >>confdefs.h <<_ACEOF
#define DEFAULT_HZ $ntp_cv_default_hz
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
if ${ntp_cv_override_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_override_hz=no
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_override_hz=yes
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-freebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-sunos4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-kfreebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
$as_echo "$ntp_cv_override_hz" >&6; }
case "$ntp_cv_override_hz" in
 yes)

$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h

esac



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
$as_echo_n "checking for struct rt_msghdr... " >&6; }
if ${ntp_cv_struct_rt_msghdr+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <sys/socket.h>
		#include <net/if.h>
		#include <net/route.h>

int
main ()
{

		struct rt_msghdr p;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_rt_msghdr=yes
else
  ntp_cv_struct_rt_msghdr=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
$as_echo_n "checking for struct rtattr... " >&6; }
if ${ntp_cv_rtattr+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <stddef.h>
		#include <sys/socket.h>
		#include <linux/rtnetlink.h>

int
main ()
{

		struct rtattr p;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rtattr=yes
else
  ntp_cv_rtattr=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
$as_echo "$ntp_cv_rtattr" >&6; }

case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
 *yes*)

$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h

    case "$ntp_cv_rtattr" in
     yes)

$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h

    esac
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <signal.h>

int
main ()
{

		struct sigaction act;
		act.sa_sigaction = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_sigaction_has_sa_sigaction=yes
else
  ntp_cv_struct_sigaction_has_sa_sigaction=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
 yes)

$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
$as_echo_n "checking for struct ppsclockev... " >&6; }
if ${ntp_cv_struct_ppsclockev+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TERMIOS_H
		# include <sys/termios.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_PPSCLOCK_H
		# include <sys/ppsclock.h>
		#endif

int
main ()
{

		extern struct ppsclockev *pce;
		return pce->serial;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ppsclockev=yes
else
  ntp_cv_struct_ppsclockev=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
case "$ntp_cv_struct_ppsclockev" in
 yes)

$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h

esac

case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
  *yes*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
$as_echo_n "checking for struct snd_size... " >&6; }
if ${ntp_cv_struct_snd_size+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_MACHINE_SOUNDCARD_H
		    # include <machine/soundcard.h>
		    #endif
		    #ifdef HAVE_SYS_SOUNDCARD_H
		    # include <sys/soundcard.h>
		    #endif

int
main ()
{

		    extern struct snd_size *ss;
		    return ss->rec_size;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_snd_size=yes
else
  ntp_cv_struct_snd_size=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
$as_echo "$ntp_cv_struct_snd_size" >&6; }
    case "$ntp_cv_struct_snd_size" in
     yes)

$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h

    esac
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
$as_echo_n "checking struct clockinfo for hz... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>

int
main ()
{

		extern struct clockinfo *pc;
		return pc->hz;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_clockinfo_has_hz=yes
else
  ntp_cv_struct_clockinfo_has_hz=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)

$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>

int
main ()
{

		extern struct clockinfo *pc;
		return pc->tickadj;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_clockinfo_has_hz=yes
else
  ntp_cv_struct_clockinfo_has_hz=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)

$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h

esac

case "$ntp_cv_struct_ntptimeval" in
 yes)
    ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
	    #ifdef HAVE_SYS_TIME_H
	    # include <sys/time.h>
	    #else
	    # ifdef HAVE_TIME_H
	    #  include <time.h>
	    # endif
	    #endif
	    #ifdef HAVE_SYS_TIMEX_H
	    # include <sys/timex.h>
	    #else
	    # ifdef HAVE_TIMEX_H
	    #  include <timex.h>
	    # endif
	    #endif


"
if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
_ACEOF


fi

esac

####

saved_LIBS="$LIBS"
LIBS="$LIBS $LDADD_LIBNTP"
for ac_func in daemon
do :
  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
if test "x$ac_cv_func_daemon" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DAEMON 1
_ACEOF

fi
done

# XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
LIBS="$saved_LIBS"
{ saved_LIBS=; unset saved_LIBS;}

for ac_func in finite
do :
  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
if test "x$ac_cv_func_finite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FINITE 1
_ACEOF

else
  for ac_func in isfinite
do :
  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
if test "x$ac_cv_func_isfinite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ISFINITE 1
_ACEOF

else

	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
$as_echo_n "checking for isfinite with <math.h>... " >&6; }
	    _libs=$LIBS
	    # XXX
	    LIBS="$LIBS -lm"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <math.h>

int
main ()
{

			float f = 0.0;
			isfinite(f);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ans=yes
else
  ans=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    LIBS=$_libs
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
	    case "$ans" in
	     yes)
		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h

	    esac


fi
done


fi
done


for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


# kvm_open() is only used by tickadj.  Also see above.
case "$ac_cv_header_kvm_h" in
 yes)
    for ac_func in kvm_open
do :
  ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
if test "x$ac_cv_func_kvm_open" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_KVM_OPEN 1
_ACEOF

fi
done

    ;;
esac

case "$host" in
 *-*-sco3.2v5.0.*)
    # Just stubs.  Sigh.
    ;;
 *) for ac_func in mkstemp
do :
  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
if test "x$ac_cv_func_mkstemp" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MKSTEMP 1
_ACEOF

fi
done

    ;;
esac
for ac_func in mktime
do :
  ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
if test "x$ac_cv_func_mktime" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MKTIME 1
_ACEOF

fi
done

case "$host" in
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub.  Sigh.
    ;;
 *-*-irix[45]*)
    # Just a stub in "old" Irix.  Sigh.
    ;;
# In the belief that the fix for bug 1223 fixes mlockall() under linux...
# *-*-*linux*)
#    # there, but more trouble than it is worth for now (resolver problems)
#    ;;
 *-*-qnx*)
    # Apparently there but not working in QNX.  Sigh?
    ;;
 *-*-sco3.2v5.0.*)
    # Just a stub.  Sigh.
    ;;
 alpha*-dec-osf4*|alpha*-dec-osf5*)
    # mlockall is there, as a #define calling memlk via <sys/mman.h>
    # Not easy to test for - cheat.
    for ac_func in memlk
do :
  ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
if test "x$ac_cv_func_memlk" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MEMLK 1
_ACEOF
 ac_cv_func_mlockall=yes
fi
done

    for ac_func in mlockall
do :
  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MLOCKALL 1
_ACEOF

fi
done

    ;;
 *) for ac_func in mlockall
do :
  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MLOCKALL 1
_ACEOF

fi
done

    ;;
esac
for ac_func in nice plock pututline pututxline readlink rtprio
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

case "$host" in
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub in AIX 4.  Sigh.
    ;;
 *-*-solaris2.5*)
    # Just stubs in solaris2.5.  Sigh.
    ;;
 *) for ac_func in sched_setscheduler
do :
  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_SETSCHEDULER 1
_ACEOF

fi
done

    ;;
esac
for ac_func in setlinebuf setpgid setpriority setsid setvbuf
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

for ac_func in strdup strerror setrlimit strchr
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

case "$host" in
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just stubs.  Sigh.
    ;;
 *-*-netbsd1*)
    # Just stubs.  Sigh.
    ;;
 *-*-netbsdelf1*)
    # Just stubs.  Sigh.
    ;;
 *-*-openbsd*)
    # Just stubs.  Sigh.
    ;;
 *)
    for ac_func in timer_create
do :
  ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
if test "x$ac_cv_func_timer_create" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_TIMER_CREATE 1
_ACEOF

fi
done

    ;;
esac



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
if ${ntp_cv_rlimit_memlock+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif

int
main ()
{

		getrlimit(RLIMIT_MEMLOCK, 0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_memlock=yes
else
  ntp_cv_rlimit_memlock=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
$as_echo "$ntp_cv_rlimit_memlock" >&6; }
case "$ntp_cv_rlimit_memlock" in
 yes)

    HAVE_RLIMIT_MEMLOCK=" memlock 32"
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
$as_echo_n "checking for RLIMIT_STACK... " >&6; }
if ${ntp_cv_rlimit_stack+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif

int
main ()
{

		getrlimit(RLIMIT_STACK, 0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_stack=yes
else
  ntp_cv_rlimit_stack=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
$as_echo "$ntp_cv_rlimit_stack" >&6; }
case "$ntp_cv_rlimit_stack" in
 yes)

    HAVE_RLIMIT_STACK=" stacksize 50"
esac



# HMS: Only if we are doing the MLOCKALL stuff...
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
$as_echo_n "checking for the default number of 4k stack pages... " >&6; }

# Check whether --with-stack-limit was given.
if test "${with_stack_limit+set}" = set; then :
  withval=$with_stack_limit; ans=$withval
else
  ans=yes

fi

case "$ans" in
 yes | no)
    case "$host" in
     *-*-openbsd*)
	ans=200
	;;
     *) ans=50
        ;;
    esac
    ;;
 [1-9][0-9]*)
    ;;
 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_STACK $ans
_ACEOF


# HMS: only if we have RLIMIT_MEMLOCK
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }

# Check whether --with-memlock was given.
if test "${with_memlock+set}" = set; then :
  withval=$with_memlock; ans=$withval
else
  ans=yes

fi

case "$ans" in
 yes | no)
    ans=32
    ;;
 [1-9][0-9]*) ;;
 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
     ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_MEMLOCK $ans
_ACEOF



# some OSes prefer _exit() in forked children to exit()
for ac_func in _exit
do :
  ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
if test "x$ac_cv_func__exit" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE__EXIT 1
_ACEOF

fi
done

ntp_worker_child_exit=exit
case "$ac_cv_func__exit::$host_os" in
 yes::netbsd*)
    ntp_worker_child_exit=_exit
    ;;
 yes::openbsd*)
    ntp_worker_child_exit=_exit
    ;;
esac

cat >>confdefs.h <<_ACEOF
#define WORKER_CHILD_EXIT $ntp_worker_child_exit
_ACEOF


for ac_func in umask uname updwtmp updwtmpx
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


###

# http://bugs.ntp.org/737
case "$ac_cv_func_recvmsg" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
$as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
if ${ntp_cv_struct_iovec_help+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    compiled=no
	    for ntp_cv_struct_iovec_help in '0' '1'; do
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    #ifdef HAVE_SYS_TYPES_H
			    # include <sys/types.h>
			    #endif
			    #ifdef HAVE_SYS_SOCKET_H
			    # include <sys/socket.h>
			    #endif
			    #if $ntp_cv_struct_iovec_help
			    # include <sys/uio.h>
			    #endif

int
main ()
{

			    void foo(void) {
				ssize_t x;
				int s = 0;
				struct iovec iov;
				struct msghdr mh;
				int flags = 0;

				mh.msg_iov = &iov;
				x = recvmsg(s, &mh, flags);
			    }


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  compiled=yes ; break 1
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    done
	    case "$compiled" in
	     no)
		ntp_cv_struct_iovec_help=0
	    esac
	    { compiled=; unset compiled;}


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
$as_echo "$ntp_cv_struct_iovec_help" >&6; }
    case "$ntp_cv_struct_iovec_help" in
     1)

$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h

    esac
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
if ${ntp_cv_func_setpgrp_nargs+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_UNISTD_H
		# include <unistd.h>
		#endif

int
main ()
{

		setpgrp(0, 0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_func_setpgrp_nargs=2
else
  ntp_cv_func_setpgrp_nargs=0

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
$as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
case "$ntp_cv_func_setpgrp_nargs" in
 0)

$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
$as_echo_n "checking if we need to declare 'errno'... " >&6; }
if ${ntp_cv_decl_errno+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif

int
main ()
{

		errno = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_decl_errno=no
else
  ntp_cv_decl_errno=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
$as_echo "$ntp_cv_decl_errno" >&6; }
case "$ntp_cv_decl_errno" in
 yes)

$as_echo "#define DECL_ERRNO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
$as_echo_n "checking if we may declare 'h_errno'... " >&6; }
if ${ntp_cv_decl_h_errno+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif
		#ifdef HAVE_ARPA_NAMESER_H
		# include <arpa/nameser.h>
		#endif
		#ifdef HAVE_NETDB_H
		# include <netdb.h>
		#endif
		#ifdef HAVE_RESOLV_H
		# include <resolv.h>
		#endif

int
main ()
{

		extern int h_errno;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_decl_h_errno=yes
else
  ntp_cv_decl_h_errno=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
$as_echo "$ntp_cv_decl_h_errno" >&6; }
case "$ntp_cv_decl_h_errno" in
 yes)

$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
if ${ntp_cv_decl_syscall+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_UNISTD_H
		# include <unistd.h>
		#endif

int
main ()
{

		extern int syscall (int, ...);


  ;
  return 0;
}
	ntp_cv_decl_syscall=yes
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_decl_syscall=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
$as_echo "$ntp_cv_decl_syscall" >&6; }
case "$ntp_cv_decl_syscall" in
 yes)

$as_echo "#define DECL_SYSCALL 1" >>confdefs.h

esac

case "$host" in
 *-*-aix4.3.*)

$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
		# Needed for XLC under AIX 4.3.2
    ;;
 *-*-mpeix*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h


$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h


$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_SELECT_0 1" >>confdefs.h


$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h


$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h


$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h

    ;;
 *-*-osf[45]*)

$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h


$as_echo "#define DECL_STIME_1 1" >>confdefs.h

    ;;
 *-*-qnx*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h

    ;;
 *-*-riscos4*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h


$as_echo "#define DECL_BZERO_0 1" >>confdefs.h


$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h


$as_echo "#define DECL_IPC_0 1" >>confdefs.h


$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h


$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_RENAME_0 1" >>confdefs.h


$as_echo "#define DECL_SELECT_0 1" >>confdefs.h


$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h


$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h


$as_echo "#define DECL_STDIO_0 1" >>confdefs.h


$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h


$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h


$as_echo "#define DECL_TIME_0 1" >>confdefs.h


$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h


$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h

    ;;
 *-*-solaris2*)

$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h

    case "$host" in
     *-*-solaris2.4)

$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h

	;;
    esac
    ;;
 *-*-sunos4*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h


$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h


$as_echo "#define DECL_BZERO_0 1" >>confdefs.h


$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h


$as_echo "#define DECL_IPC_0 1" >>confdefs.h


$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h


$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_RENAME_0 1" >>confdefs.h


$as_echo "#define DECL_SELECT_0 1" >>confdefs.h


$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h


$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h


$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h

    case "`basename $ac_cv_prog_CC`" in
     acc*) ;;
     *)
$as_echo "#define DECL_STDIO_0 1" >>confdefs.h

	;;
    esac

$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h


$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h


$as_echo "#define DECL_TIME_0 1" >>confdefs.h


$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h


$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h


$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h


$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h

    ;;
 *-*-ultrix4*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h


$as_echo "#define DECL_BZERO_0 1" >>confdefs.h


$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h


$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h


$as_echo "#define DECL_IPC_0 1" >>confdefs.h


$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_NLIST_0 1" >>confdefs.h


$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h


$as_echo "#define DECL_SELECT_0 1" >>confdefs.h


$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h


$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h


$as_echo "#define DECL_STIME_0 1" >>confdefs.h


$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h


$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h

    ;;
esac

case "$host" in
 *-*-sco3.2*)

$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h

    ;;
esac

case "$host" in
 *-*-hpux[567]*)

$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
$as_echo_n "checking if we will open the broadcast socket... " >&6; }
if ${ntp_cv_var_open_bcast_socket+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=yes
	case "$host" in
	 *-*-domainos)
	    ans=no
	esac
	ntp_cv_var_open_bcast_socket=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
$as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
case "$ntp_cv_var_open_bcast_socket" in
 yes)

$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h

esac

case "$host" in
 *-*-hpux*)

$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
$as_echo_n "checking if process groups are set with -pid... " >&6; }
if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-hpux[567]*)
	    ans=no
	    ;;
	 *-*-hpux*)
	    ans=yes
	    ;;
	 *-*-*linux*)
	    ans=yes
	    ;;
	 *-*-sunos3*)
	    ans=yes
	    ;;
	 *-*-ultrix2*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_arg_setpgrp_negpid=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
$as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
case "$ntp_cv_arg_setpgrp_negpid" in
 yes)

$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-bsdi[23]*)
	    ans=yes
	    ;;
	 *-*-freebsd*)
	    ans=yes
	    ;;
	# NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
	# while later versions will fail a ioctl(TIOCSCTTY, 0) call in
	# some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
	# in $host may be followed by "aout", "ecoff", or "elf".
	 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
	    ans=yes
	    ;;
	 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
	    ans=yes
	    ;;
	 *-*-openbsd*)
	    ans=yes
	    ;;
	 *-*-osf*)
	    ans=yes
	    ;;
	 *-*-darwin*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_func_ctty_for_f_setown=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
case "$ntp_cv_func_ctty_for_f_setown" in
 yes)

$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
if ${ntp_cv_os_routeupdates+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-netbsd*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_os_routeupdates=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
$as_echo "$ntp_cv_os_routeupdates" >&6; }
case "$ntp_cv_os_routeupdates" in
 yes)

$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
if ${ntp_cv_os_wildcardreuse+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-*linux*)
	    ans=yes
	    ;;
	 *) ans=no
	    ;;
	esac
	ntp_cv_os_wildcardreuse=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
case "$ntp_cv_os_wildcardreuse" in
 yes)

$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h

esac

case "$host" in
 *-*-aix*)

$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
if ${ntp_cv_var_min_rec_tickadj+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=no
	case "$host" in
	 *-*-aix*)
	    ans=40
	    ;;
	esac
	ntp_cv_var_min_rec_tickadj=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
$as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
case "$ntp_cv_var_min_rec_tickadj" in
 ''|no)
    ;;
 *)

cat >>confdefs.h <<_ACEOF
#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
_ACEOF

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
if ${ntp_cv_no_parenb_ignpar+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=no
	case "$host" in
	 i?86-*-*linux*)
	    ans=yes
	    ;;
	 mips-sgi-irix*)
	    ans=yes
	    ;;
	 i?86-*-freebsd[123].*)
	    ;;
	 i?86-*-freebsd*)
	    ans=yes
	    ;;
	 *-*-unicosmp*)
	    ans=yes
	    ;;
	esac
	ntp_cv_no_parenb_ignpar=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
$as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
case "$ntp_cv_no_parenb_ignpar" in
 yes)

$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
$as_echo_n "checking if we're including processing time debugging code... " >&6; }
# Check whether --enable-debug-timing was given.
if test "${enable_debug_timing+set}" = set; then :
  enableval=$enable_debug_timing; ntp_ok=$enableval
else
  ntp_ok=no

fi

case "$ntp_ok" in
 yes)

$as_echo "#define DEBUG_TIMING 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
# Check whether --enable-dst-minutes was given.
if test "${enable_dst_minutes+set}" = set; then :
  enableval=$enable_dst_minutes; ans=$enableval
else
  ans=60

fi


cat >>confdefs.h <<_ACEOF
#define DSTMINUTES $ans
_ACEOF

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
# Check whether --enable-ignore-dns-errors was given.
if test "${enable_ignore_dns_errors+set}" = set; then :
  enableval=$enable_ignore_dns_errors; ans=$enableval
else
  ans=no

fi

case "$ans" in
 yes)

$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
if ${ntp_cv_var_ntp_syscalls+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_var_ntp_syscalls=no
	case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
	 yesyes*)
	    ntp_cv_var_ntp_syscalls=libc
	    ;;
	 *yes)
	    ntp_cv_var_ntp_syscalls=inline
	    ;;
	 *)
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include <sys/syscall.h>
		    #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
		    # error
		    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_var_ntp_syscalls=kernel

fi
rm -f conftest.err conftest.i conftest.$ac_ext
	    ;;
	 esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
$as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
case "$ntp_cv_var_ntp_syscalls" in
 libc)

$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h

    ;;
 kernel)

$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
if ${ntp_cv_var_sta_fll+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <sys/timex.h>
	    #ifndef STA_FLL
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_var_sta_fll=yes
else
  ntp_cv_var_sta_fll=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
$as_echo "$ntp_cv_var_sta_fll" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
$as_echo_n "checking if we have kernel PLL support... " >&6; }
if ${ntp_cv_var_kernel_pll+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
	 *no*)
	    ntp_cv_var_kernel_pll=no
	    ;;
	 *) ntp_cv_var_kernel_pll=yes
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
$as_echo "$ntp_cv_var_kernel_pll" >&6; }
case "$ntp_cv_var_kernel_pll" in
 yes)

$as_echo "#define KERNEL_PLL 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
if ${ntp_cv_size_returned_in_buffer+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=no
	case "$host" in
	 *-fujitsu-uxp*)
	    ans=yes
	    ;;
	 *-ncr-sysv4*)
	    ans=yes
	    ;;
	 *-univel-sysv*)
	    ans=yes
	    ;;
	esac
	ntp_cv_size_returned_in_buffer=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
$as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
case "$ntp_cv_size_returned_in_buffer" in
 yes)

$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h

esac

# Check for ioctls TIOCGPPSEV
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
$as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
case "$ac_cv_header_termios_h" in
 yes)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <termios.h>
	    #ifndef TIOCGPPSEV
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_ok=yes
else
  ntp_ok=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)

$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Check for ioctls TIOCSPPS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
$as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
case "$ac_cv_header_termios_h" in
 yes)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <termios.h>
	    #ifndef TIOCSPPS
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_ok=yes
else
  ntp_ok=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)

$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Check for ioctls CIOGETEV
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
$as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
case "$ac_cv_header_sys_ppsclock_h" in
 yes)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <sys/ppsclock.h>
	    #ifndef CIOGETEV
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_ok=yes
else
  ntp_ok=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)

$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# ATOM/PPSAPI stuff.

ntp_atom_ok=yes

# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.

# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
# The PPSAPI needs struct timespec.
# The PPSAPI also needs a timepps header.

case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
 inlineyes)
    case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
     *yes* | *sunos* | *solaris* | *sco* | *netbsd* )

$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h

	ntp_jupiter_ok=yes
	ntp_oncore_ok=yes
	ntp_parse_ok=yes
	ntp_ripe_ncc_ok=yes
	;;
    esac
    ;;
esac

# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
if test "x$ac_cv_header_linux_serial_h" = xyes; then :

fi


case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
  yesyes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <sys/time.h>
	    typedef int u_int;
	    #include <sys/ppsclock.h>
	    #include <linux/serial.h>

	    #ifndef TIOCGSERIAL
	    # error
	    #endif
	    #ifndef TIOCSSERIAL
	    # error
	    #endif
	    #ifndef ASYNC_PPS_CD_POS
	    # error
	    #endif
	    #ifndef ASYNC_PPS_CD_NEG
	    # error
	    #endif
	    #ifndef CIOGETEV
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_ok=yes
else
  ntp_ok=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
    ;;
  *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)

$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h

esac

# Check for SHMEM_STATUS support
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
$as_echo_n "checking SHMEM_STATUS support... " >&6; }
case "$ac_cv_header_sys_mman_h" in
 yes)
    ntp_ok=yes
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)

$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

ntp_refclock=no

# HPUX only, and by explicit request
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
# Check whether --enable-BANCOMM was given.
if test "${enable_BANCOMM+set}" = set; then :
  enableval=$enable_BANCOMM; ntp_ok=$enableval
else
  ntp_ok=no

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_BANC 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yes*-*-hpux*) ;;
 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
esac

#HPUX only, and only by explicit request
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
# Check whether --enable-GPSVME was given.
if test "${enable_GPSVME+set}" = set; then :
  enableval=$enable_GPSVME; ntp_ok=$enableval
else
  ntp_ok=no

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yes*-*-hpux*) ;;
 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
$as_echo_n "checking for PCL720 clock support... " >&6; }
case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
 yesyesyes)

$as_echo "#define CLOCK_PPS720 1" >>confdefs.h

    ans=yes
    ;;
 *)
    ans=no
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
# Check whether --enable-all-clocks was given.
if test "${enable_all_clocks+set}" = set; then :
  enableval=$enable_all_clocks; ntp_eac=$enableval
else
  ntp_eac=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
$as_echo "$ntp_eac" >&6; }

# HMS: Should we also require ntp_parse_ok?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
$as_echo_n "checking if we have support for PARSE clocks... " >&6; }
case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
 yes*yes*)
    ntp_canparse=yes
    ;;
 *) ntp_canparse=no
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
$as_echo "$ntp_canparse" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
$as_echo_n "checking if we have support for audio clocks... " >&6; }
case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
 *yes*)
    ntp_canaudio=yes

$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h

    ;;
 *) ntp_canaudio=no ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
$as_echo "$ntp_canaudio" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
 yesyes)
    ntp_canshm=yes
    ;;
 *) ntp_canshm=no ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
$as_echo "$ntp_canshm" >&6; }

# Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
$as_echo_n "checking for termios modem control... " >&6; }
if ${ntp_cv_modem_control+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_UNISTD_H
		# include <unistd.h>
		#endif
		#ifdef HAVE_TERMIOS_H
		# include <termios.h>
		#endif
		#ifdef HAVE_SYS_IOCTL_H
		# include <sys/ioctl.h>
		#endif

int
main ()
{

		int	dtr = TIOCM_DTR;

		ioctl(1, TIOCMBIS, (char *)&dtr);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_modem_control=yes
else
  ntp_cv_modem_control=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
$as_echo "$ntp_cv_modem_control" >&6; }
case "$ntp_eac::$ntp_cv_modem_control" in
 yes::yes)
    ntp_enable_all_modem_control_clocks=yes
    ;;
 *)
    ntp_enable_all_modem_control_clocks=no
    ;;
esac

# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
$as_echo_n "checking ACTS modem service... " >&6; }
# Check whether --enable-ACTS was given.
if test "${enable_ACTS+set}" = set; then :
  enableval=$enable_ACTS; ntp_ok=$enableval
else
  ntp_ok=$ntp_enable_all_modem_control_clocks

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ACTS 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
# Check whether --enable-ARBITER was given.
if test "${enable_ARBITER+set}" = set; then :
  enableval=$enable_ARBITER; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
$as_echo_n "checking Arcron MSF receiver... " >&6; }
# Check whether --enable-ARCRON_MSF was given.
if test "${enable_ARCRON_MSF+set}" = set; then :
  enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
# Check whether --enable-AS2201 was given.
if test "${enable_AS2201+set}" = set; then :
  enableval=$enable_AS2201; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_AS2201 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
$as_echo_n "checking ATOM PPS interface... " >&6; }
# Check whether --enable-ATOM was given.
if test "${enable_ATOM+set}" = set; then :
  enableval=$enable_ATOM; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_atom_ok" in
 no) ntp_ok=no ;;
esac
case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ATOM 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
# Check whether --enable-CHRONOLOG was given.
if test "${enable_CHRONOLOG+set}" = set; then :
  enableval=$enable_CHRONOLOG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
$as_echo_n "checking CHU modem/decoder... " >&6; }
# Check whether --enable-CHU was given.
if test "${enable_CHU+set}" = set; then :
  enableval=$enable_CHU; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_CHU 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
ntp_refclock_chu=$ntp_ok

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
$as_echo_n "checking CHU audio/decoder... " >&6; }
# Check whether --enable-AUDIO-CHU was given.
if test "${enable_AUDIO_CHU+set}" = set; then :
  enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
else

	case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
# We used to check for sunos/solaris target...
case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
esac

# Not under HP-UX
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
$as_echo_n "checking Datum Programmable Time System... " >&6; }
# Check whether --enable-DATUM was given.
if test "${enable_DATUM+set}" = set; then :
  enableval=$enable_DATUM; ntp_ok=$enableval
else

	case "$ac_cv_header_termios_h" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *) ntp_ok=no
	    ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_DATUM 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
# Check whether --enable-DUMBCLOCK was given.
if test "${enable_DUMBCLOCK+set}" = set; then :
  enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
$as_echo_n "checking Forum Graphic GPS... " >&6; }
# Check whether --enable-FG was given.
if test "${enable_FG+set}" = set; then :
  enableval=$enable_FG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_FG 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
# Check whether --enable-HEATH was given.
if test "${enable_HEATH+set}" = set; then :
  enableval=$enable_HEATH; ntp_ok=$enableval
else
  ntp_ok=$ntp_enable_all_modem_control_clocks

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_HEATH 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
$as_echo_n "checking for hopf serial clock device... " >&6; }
# Check whether --enable-HOPFSERIAL was given.
if test "${enable_HOPFSERIAL+set}" = set; then :
  enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
$as_echo_n "checking for hopf PCI clock 6039... " >&6; }
# Check whether --enable-HOPFPCI was given.
if test "${enable_HOPFPCI+set}" = set; then :
  enableval=$enable_HOPFPCI; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
$as_echo_n "checking HP 58503A GPS receiver... " >&6; }
# Check whether --enable-HPGPS was given.
if test "${enable_HPGPS+set}" = set; then :
  enableval=$enable_HPGPS; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
$as_echo_n "checking IRIG audio decoder... " >&6; }
# Check whether --enable-IRIG was given.
if test "${enable_IRIG+set}" = set; then :
  enableval=$enable_IRIG; ntp_ok=$enableval
else

	case "$ntp_eac$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_IRIG 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canaudio" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
$as_echo_n "checking for JJY receiver... " >&6; }
# Check whether --enable-JJY was given.
if test "${enable_JJY+set}" = set; then :
  enableval=$enable_JJY; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_JJY 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
# Check whether --enable-JUPITER was given.
if test "${enable_JUPITER+set}" = set; then :
  enableval=$enable_JUPITER; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

case "$ntp_jupiter_ok" in
 no) ntp_ok=no ;;
esac
case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
# Check whether --enable-LEITCH was given.
if test "${enable_LEITCH+set}" = set; then :
  enableval=$enable_LEITCH; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
$as_echo_n "checking local clock reference... " >&6; }
# Check whether --enable-LOCAL-CLOCK was given.
if test "${enable_LOCAL_CLOCK+set}" = set; then :
  enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }


# Not Ultrix
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
# Check whether --enable-MX4200 was given.
if test "${enable_MX4200+set}" = set; then :
  enableval=$enable_MX4200; ntp_ok=$enableval
else

	case "$ac_cv_var_ppsclock" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	    ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_MX4200 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
$as_echo_n "checking for NeoClock4X receiver... " >&6; }
# Check whether --enable-NEOCLOCK4X was given.
if test "${enable_NEOCLOCK4X+set}" = set; then :
  enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
$as_echo_n "checking NMEA GPS receiver... " >&6; }
# Check whether --enable-NMEA was given.
if test "${enable_NMEA+set}" = set; then :
  enableval=$enable_NMEA; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_NMEA 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

for ac_func in strtoll
do :
  ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
if test "x$ac_cv_func_strtoll" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRTOLL 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
$as_echo_n "checking for GPSD JSON receiver... " >&6; }
# Check whether --enable-GPSD was given.
if test "${enable_GPSD+set}" = set; then :
  enableval=$enable_GPSD; ntp_ok=$enableval
else
  case "$ac_cv_func_strtoll" in
     yes) ntp_ok=$ntp_eac ;;
     *)   ntp_ok="no" ;;
    esac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
# Check whether --enable-ONCORE was given.
if test "${enable_ONCORE+set}" = set; then :
  enableval=$enable_ONCORE; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_oncore_ok" in
 no) ntp_ok=no ;;
esac
case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
$as_echo_n "checking for Palisade clock... " >&6; }
# Check whether --enable-PALISADE was given.
if test "${enable_PALISADE+set}" = set; then :
  enableval=$enable_PALISADE; ntp_ok=$enableval
else
  ntp_ok=$ntp_enable_all_modem_control_clocks

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
$as_echo_n "checking Conrad parallel port radio clock... " >&6; }
# Check whether --enable-PCF was given.
if test "${enable_PCF+set}" = set; then :
  enableval=$enable_PCF; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_PCF 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
# Check whether --enable-PST was given.
if test "${enable_PST+set}" = set; then :
  enableval=$enable_PST; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_PST 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
# Check whether --enable-RIPENCC was given.
if test "${enable_RIPENCC+set}" = set; then :
  enableval=$enable_RIPENCC; ntp_ok=$enableval
else
  ntp_ok=no

fi

# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
case "$ntp_ripe_ncc_ok" in
 no) ntp_ok=no ;;
esac
case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Danny Meyer says SHM compiles (with a few warnings) under Win32.
# For *IX, we need sys/ipc.h and sys/shm.h.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
# Check whether --enable-SHM was given.
if test "${enable_SHM+set}" = set; then :
  enableval=$enable_SHM; ntp_ok=$enableval
else

	case "$ntp_eac$ntp_canshm" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_SHM 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
# Check whether --enable-SPECTRACOM was given.
if test "${enable_SPECTRACOM+set}" = set; then :
  enableval=$enable_SPECTRACOM; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
# Check whether --enable-TPRO was given.
if test "${enable_TPRO+set}" = set; then :
  enableval=$enable_TPRO; ntp_ok=$enableval
else

	case "$ac_cv_header_sys_tpro_h" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	    ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TPRO 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ac_cv_header_sys_tpro" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
esac

# Not on a vax-dec-bsd
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
# Check whether --enable-TRUETIME was given.
if test "${enable_TRUETIME+set}" = set; then :
  enableval=$enable_TRUETIME; ntp_ok=$enableval
else

	case "$host" in
	 vax-dec-bsd)
	    ntp_ok=no
	    ;;
	 *)
	    ntp_ok=$ntp_eac
	    ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
# Check whether --enable-TT560 was given.
if test "${enable_TT560+set}" = set; then :
  enableval=$enable_TT560; ntp_ok=$enableval
else
  ntp_ok=no

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
# Check whether --enable-ULINK was given.
if test "${enable_ULINK+set}" = set; then :
  enableval=$enable_ULINK; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ULINK 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
# Check whether --enable-TSYNCPCI was given.
if test "${enable_TSYNCPCI+set}" = set; then :
  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
else

	case "$host" in
	 *-*-*linux*)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
$as_echo_n "checking WWV receiver... " >&6; }
# Check whether --enable-WWV was given.
if test "${enable_WWV+set}" = set; then :
  enableval=$enable_WWV; ntp_ok=$enableval
else

	case "$ntp_eac$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_WWV 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canaudio" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
$as_echo_n "checking for Zyfer receiver... " >&6; }
# Check whether --enable-ZYFER was given.
if test "${enable_ZYFER+set}" = set; then :
  enableval=$enable_ZYFER; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
# Check whether --enable-parse-clocks was given.
if test "${enable_parse_clocks+set}" = set; then :
  enableval=$enable_parse_clocks; ntp_eapc=$enableval
else

	case "$ntp_eac" in
	 yes)	ntp_eapc=$ntp_canparse ;;
	 *)	ntp_eapc=no ;;
	esac
	# Delete the next line one of these days
	ntp_eapc=no


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
$as_echo "$ntp_eapc" >&6; }

case "$ntp_eac$ntp_eapc$ntp_canparse" in
 noyes*)
    as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
    ;;
 yesyesno)
    as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
    ;;
esac

ntp_libparse=no
ntp_parseutil=no
ntp_rawdcf=no

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
$as_echo_n "checking Diem Computime Radio Clock... " >&6; }
# Check whether --enable-COMPUTIME was given.
if test "${enable_COMPUTIME+set}" = set; then :
  enableval=$enable_COMPUTIME; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
$as_echo_n "checking ELV/DCF7000 clock... " >&6; }
# Check whether --enable-DCF7000 was given.
if test "${enable_DCF7000+set}" = set; then :
  enableval=$enable_DCF7000; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
$as_echo_n "checking HOPF 6021 clock... " >&6; }
# Check whether --enable-HOPF6021 was given.
if test "${enable_HOPF6021+set}" = set; then :
  enableval=$enable_HOPF6021; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
$as_echo_n "checking Meinberg clocks... " >&6; }
# Check whether --enable-MEINBERG was given.
if test "${enable_MEINBERG+set}" = set; then :
  enableval=$enable_MEINBERG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
$as_echo_n "checking DCF77 raw time code... " >&6; }
# Check whether --enable-RAWDCF was given.
if test "${enable_RAWDCF+set}" = set; then :
  enableval=$enable_RAWDCF; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_parseutil=yes
    ntp_refclock=yes
    ntp_rawdcf=yes

$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

case "$ntp_rawdcf" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
if ${ntp_cv_rawdcf_parity+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    ans=no
	    case "$host" in
	     *-*-*linux*)
		ans=yes
		;;
	    esac
	    ntp_cv_rawdcf_parity=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
$as_echo "$ntp_cv_rawdcf_parity" >&6; }
    case "$ntp_cv_rawdcf_parity" in
     yes)

$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
 ;;
    esac
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
$as_echo_n "checking RCC 8000 clock... " >&6; }
# Check whether --enable-RCC8000 was given.
if test "${enable_RCC8000+set}" = set; then :
  enableval=$enable_RCC8000; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
$as_echo_n "checking Schmid DCF77 clock... " >&6; }
# Check whether --enable-SCHMID was given.
if test "${enable_SCHMID+set}" = set; then :
  enableval=$enable_SCHMID; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
# Check whether --enable-TRIMTAIP was given.
if test "${enable_TRIMTAIP+set}" = set; then :
  enableval=$enable_TRIMTAIP; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
# Check whether --enable-TRIMTSIP was given.
if test "${enable_TRIMTSIP+set}" = set; then :
  enableval=$enable_TRIMTSIP; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
$as_echo_n "checking WHARTON 400A Series clock... " >&6; }
# Check whether --enable-WHARTON was given.
if test "${enable_WHARTON+set}" = set; then :
  enableval=$enable_WHARTON; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
$as_echo_n "checking VARITEXT clock... " >&6; }
# Check whether --enable-VARITEXT was given.
if test "${enable_VARITEXT+set}" = set; then :
  enableval=$enable_VARITEXT; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
$as_echo_n "checking SEL240X clock... " >&6; }
# Check whether --enable-SEL240X was given.
if test "${enable_SEL240X+set}" = set; then :
  enableval=$enable_SEL240X; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
    ;;
esac






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
$as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
ans=no
case "$ntp_libparse" in
 yes)
    ans=yes

$as_echo "#define CLOCK_PARSE 1" >>confdefs.h

    LIBPARSE=../libparse/libparse.a
    MAKE_LIBPARSE=libparse.a
    # HMS: check_y2k trips the 34 year problem now...
    false && MAKE_CHECK_Y2K=check_y2k
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }



ntp_pkgconfig_min_version='0.15.0'
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}

case "$PKG_CONFIG" in
 /*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	PKG_CONFIG=""
    fi
    ;;
esac





VER_SUFFIX=




# Check whether --with-crypto was given.
if test "${with_crypto+set}" = set; then :
  withval=$with_crypto;
fi


# Check whether --with-openssl-libdir was given.
if test "${with_openssl_libdir+set}" = set; then :
  withval=$with_openssl_libdir;
fi


# Check whether --with-openssl-incdir was given.
if test "${with_openssl_incdir+set}" = set; then :
  withval=$with_openssl_incdir;
fi


# Check whether --with-rpath was given.
if test "${with_rpath+set}" = set; then :
  withval=$with_rpath;
fi

ntp_openssl=no
ntp_openssl_from_pkg_config=no
with_crypto=${with_crypto:-openssl,libcrypto}
case "$with_crypto" in
 yes)
    with_crypto=openssl,libcrypto
esac
case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
 no:*) ;;
 *:notempty:notgiven:notgiven)
    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
$as_echo_n "checking pkg-config for $pkg... " >&6; }
	if $PKG_CONFIG --exists $pkg ; then
	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
	    VER_SUFFIX=o
	    ntp_openssl=yes
	    ntp_openssl_from_pkg_config=yes
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

	    break
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    done
esac
case "$with_crypto:$ntp_openssl" in
 no:*) ;;
 *:no)
    need_dash_r=
    need_dash_Wlrpath=
    case "${with_rpath-notgiven}" in
     yes)
	# Lame - what to do if we need -Wl... but not -R?
	need_dash_r=1
	;;
     notgiven)
	case "$host" in
	 *-*-linux*)
	    # This may really only be true for gcc
	    need_dash_Wlrpath=1
	    ;;
	 *-*-netbsd*)
	    need_dash_r=1
	    ;;
	 *-*-solaris*)
	    need_dash_r=1
	    ;;
	esac
	;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
$as_echo_n "checking for openssl library directory... " >&6; }
    with_openssl_libdir=${with_openssl_libdir-notgiven}
    case "$with_openssl_libdir" in
     notgiven)
	case "$build" in
	 $host)
	    with_openssl_libdir=default
	    ;;
	 *)
	    with_openssl_libdir=no
	    ;;
	esac
    esac
    case "$with_openssl_libdir" in
     default)
	# Look in:
	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
    esac
    case "$with_openssl_libdir" in
     no)
	;;
     *) # Look for libcrypto.a and libssl.a:
	for i in $with_openssl_libdir no
	do
	    case "$host" in
	     *-*-darwin*)
		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
		;;
	     *)
		test -f $i/libcrypto.so -a -f $i/libssl.so && break
		test -f $i/libcrypto.a -a -f $i/libssl.a && break
		;;
	    esac
	done
	openssl_libdir=$i
	;;
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
$as_echo "$openssl_libdir" >&6; }
    case "$openssl_libdir" in
     no)
	openssl_libdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
$as_echo_n "checking for openssl include directory... " >&6; }
    with_openssl_incdir=${with_openssl_incdir-notgiven}
    case "$with_openssl_incdir" in
     notgiven)
	# Look in:
	with_openssl_incdir="/usr/include /usr/sfw/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
    esac
    case "$with_openssl_incdir" in
     no)
	;;
     *) # look for openssl/evp.h:
	for i in $with_openssl_incdir no
	do
	    test -f $i/openssl/evp.h && break
	done
	openssl_incdir=$i
	;;
    esac
    { i=; unset i;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
$as_echo "$openssl_incdir" >&6; }
    case "$openssl_incdir" in
     no)
	openssl_incdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
    esac
    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
    then
	ntp_openssl=no
    else
	ntp_openssl=yes
	VER_SUFFIX=o
    fi
    case "$ntp_openssl" in
     yes)
	# We have OpenSSL inc/lib dirs - use them.
	case "$openssl_incdir" in
	 /usr/include)
	    ;;
	 *)
	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
	    ;;
	esac
	case "$openssl_libdir" in
	 /usr/lib)
	    ;;
	 *)
	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
	    case "$need_dash_r" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
	    esac
	    case "$need_dash_Wlrpath" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
	    esac
	    ;;
	esac
	LDADD_NTP="$LDADD_NTP -lcrypto"
    esac
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
$as_echo_n "checking if we will use crypto... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
$as_echo "$ntp_openssl" >&6; }

case "$ntp_openssl" in
 yes)

$as_echo "#define OPENSSL /**/" >>confdefs.h

    case "$VER_SUFFIX" in
     *o*) ;;
     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
    esac
    ;;
esac

NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
NTPO_SAVED_LIBS="$LIBS"

#
# check for linking with -lcrypto failure, and try -lcrypto -lz.
# Helps m68k-atari-mint
#
case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
 yes:no)
    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
$as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
if ${ntp_cv_bare_lcrypto+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include "openssl/err.h"
		    #include "openssl/evp.h"

int
main ()
{

		    ERR_load_crypto_strings();
		    OpenSSL_add_all_algorithms();


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_cv_bare_lcrypto=yes
else
  ntp_cv_bare_lcrypto=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
$as_echo "$ntp_cv_bare_lcrypto" >&6; }
    case "$ntp_cv_bare_lcrypto" in
     no)
	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
if ${ntp_cv_lcrypto_lz+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include "openssl/err.h"
			#include "openssl/evp.h"

int
main ()
{

			ERR_load_crypto_strings();
			OpenSSL_add_all_algorithms();


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_cv_lcrypto_lz=yes
else
  ntp_cv_lcrypto_lz=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
$as_echo "$ntp_cv_lcrypto_lz" >&6; }
	case "$ntp_cv_lcrypto_lz" in
	 yes)
	     LDADD_NTP="$LDADD_NTP -lz"
	esac
    esac
esac

#
# Older OpenSSL headers have a number of callback prototypes inside
# other function prototypes which trigger copious warnings with gcc's
# -Wstrict-prototypes, which is included in -Wall.
#
# An example:
#
# int i2d_RSA_NET(const RSA *a, unsigned char **pp,
#		  int (*cb)(), int sgckey);
#		  ^^^^^^^^^^^
#
#
#
openssl_triggers_warnings=unknown
NTPO_SAVED_CFLAGS="$CFLAGS"

case "$ntp_openssl:$GCC" in
 yes:yes)
    CFLAGS="$CFLAGS -Werror"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{

		/* see if -Werror breaks gcc */


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  gcc_handles_Werror=yes
else
  gcc_handles_Werror=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    case "$gcc_handles_Werror" in
     no)
	# if this gcc doesn't do -Werror go ahead and use
	# -Wstrict-prototypes.
	openssl_triggers_warnings=yes
	;;
     yes)
	CFLAGS="$CFLAGS -Wstrict-prototypes"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include "openssl/asn1_mac.h"
		    #include "openssl/bn.h"
		    #include "openssl/err.h"
		    #include "openssl/evp.h"
		    #include "openssl/pem.h"
		    #include "openssl/rand.h"
		    #include "openssl/x509v3.h"

int
main ()
{

		    /* empty body */


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  openssl_triggers_warnings=no
else
  openssl_triggers_warnings=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    esac
    case "$openssl_triggers_warnings" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
	;;
     *)
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
    esac
    ;;
 no:yes)
    # gcc without OpenSSL
    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
esac

CFLAGS="$NTPO_SAVED_CFLAGS"
CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
LIBS="$NTPO_SAVED_LIBS"
{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
# Check whether --enable-openssl-random was given.
if test "${enable_openssl_random+set}" = set; then :
  enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
else
  ntp_use_openssl_random=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
$as_echo "$ntp_use_openssl_random" >&6; }

# The following might need extra libraries
NTPO_SAVED_LIBS="$LIBS"
LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
for ac_func in RAND_bytes RAND_poll
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

LIBS="$NTPO_SAVED_LIBS"
case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
 yesyesyes)

$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h

     ;;
 *) ntp_use_openssl_random=no ;;
esac



# if we are using OpenSSL (--with-crypto), by default Autokey is enabled
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
# Check whether --enable-autokey was given.
if test "${enable_autokey+set}" = set; then :
  enableval=$enable_autokey; ntp_autokey=$enableval
else
  ntp_autokey=$ntp_openssl

fi

case "$ntp_autokey" in
 no)
    ;;
 *)
    case "$ntp_openssl" in
     no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
	ntp_autokey=no
	;;
     *)

$as_echo "#define AUTOKEY 1" >>confdefs.h

	ntp_autokey=yes
	;;
    esac
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
$as_echo "$ntp_autokey" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
$as_echo_n "checking if we want to run check-layout... " >&6; }
case "$cross_compiling$PATH_PERL" in
 no/*)
    MAKE_CHECK_LAYOUT=check-layout
    ans=yes
    ;;
 *)
    ans=no
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
$as_echo_n "checking if we can make dcf parse utilities... " >&6; }
ans=no
case "$ntp_parseutil" in
 yes)
    case "$host" in
     *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
	ans="dcfd testdcf"
	DCFD=dcfd
	TESTDCF=testdcf
    esac
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
ans=no
case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
 yesyes)
    case "$host" in
     sparc-*-sunos4*)
        case "$ntp_cv_var_kernel_pll" in
	yes)

$as_echo "#define PPS_SYNC 1" >>confdefs.h

	    ;;
	esac
	ans=parsestreams
	MAKE_PARSEKMODULE=parsestreams.loadable_module.o
	;;
     sparc-*-solaris2*)
	ans=parsesolaris
	MAKE_PARSEKMODULE=parse
	for ac_header in strings.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
if test "x$ac_cv_header_strings_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRINGS_H 1
_ACEOF

fi

done

	;;
    esac
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
$as_echo_n "checking if we need basic refclock support... " >&6; }
case "$ntp_refclock" in
 yes)

$as_echo "#define REFCLOCK 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
$as_echo "$ntp_refclock" >&6; }

PROPDELAY=propdelay



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
case "$host" in
 *-*-hpux[56789]*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac
case "$ans" in
 yes)
    MAKE_ADJTIMED=adjtimed

$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h

    ;;
 *) ADJTIMED_DB=
    ADJTIMED_DL=
    ADJTIMED_DS=
    ADJTIMED_MS=
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
$as_echo_n "checking if we want QNX adjtime support... " >&6; }
case "$host" in
 *-*-qnx*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
$as_echo_n "checking if we can read kmem... " >&6; }

#  the default is to enable it if the system has the capability

case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
 *yes*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac

case "$host" in
 *-*-domainos)	# Won't be found...
    ans=no
    ;;
 *-*-hpux*)
    #ans=no
    ;;
 *-*-irix[456]*)
    ans=no
    ;;
 *-*-*linux*)
    ans=no
    ;;
 *-*-winnt3.5)
    ans=no
    ;;
 *-*-unicosmp*)
    ans=no
    ;;
esac

# --enable-kmem / --disable-kmem controls if present
# Check whether --enable-kmem was given.
if test "${enable_kmem+set}" = set; then :
  enableval=$enable_kmem; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
    can_kmem=yes
    ;;
 *)
    can_kmem=no

$as_echo "#define NOKMEM 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
$as_echo_n "checking if adjtime is accurate... " >&6; }

# target-dependent defaults

case "$host" in
 i386-sequent-ptx*)
    ans=no
    ;;
 i386-unknown-osf1*)
    ans=yes
    ;;
 mips-sgi-irix[456]*)
    ans=yes
    ;;
 *-fujitsu-uxp*)
    ans=yes
    ;;
 *-ibm-aix[4-9]*)
    # XXX only verified thru AIX6.
    ans=yes
    ;;
 *-*-*linux*)
    ans=yes
    ;;
 *-*-solaris2.[01])
    ans=no
    ;;
 *-*-solaris2*)
    ans=yes
    ;;
 *-*-unicosmp*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# --enable-accurate-adjtime / --disable-accurate-adjtime
# override the default
# Check whether --enable-accurate-adjtime was given.
if test "${enable_accurate_adjtime+set}" = set; then :
  enableval=$enable_accurate_adjtime; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h

    adjtime_is_accurate=yes
    ;;
 *)
    adjtime_is_accurate=no
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
$as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
if ${ntp_cv_nlist_tick+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=_tick
	case "$host" in
	 m68*-hp-hpux*) # HP9000/300?
	    ans=_old_tick
	    ;;
	 *-apple-aux[23]*)
	    ans=tick
	    ;;
	 *-hp-hpux*)
	    ans=old_tick
	    ;;
	 *-ibm-aix[3-9]*)
	    # XXX only verified thru AIX6.
	    ans=no
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-ptx*)
	    ans=tick
	    ;;
	 *-*-sco3.2v[45]*)
	    ans=no
	    ;;
	 *-*-solaris2*)
	    ans=nsec_per_tick
	    ;;
	 *-*-sysv4*)
	    ans=tick
	    ;;
	esac
	ntp_cv_nlist_tick=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
$as_echo "$ntp_cv_nlist_tick" >&6; }
case "$ntp_cv_nlist_tick" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)

cat >>confdefs.h <<_ACEOF
#define K_TICK_NAME "$ntp_cv_nlist_tick"
_ACEOF

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
$as_echo_n "checking for the units of 'tick'... " >&6; }
if ${ntp_cv_tick_nano+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=usec
	case "$host" in
	 *-*-solaris2*)
	    ans=nsec
	    ;;
	esac
	ntp_cv_tick_nano=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
$as_echo "$ntp_cv_tick_nano" >&6; }
case "$ntp_cv_tick_nano" in
 nsec)

$as_echo "#define TICK_NANO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
if ${ntp_cv_nlist_tickadj+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=_tickadj
	case "$host" in
	 m68*-hp-hpux*) # HP9000/300?
	    ans=_tickadj
	    ;;
	 *-apple-aux[23]*)
	    ans=tickadj
	    ;;
	 *-hp-hpux10*)
	    ans=no
	    ;;
	 *-hp-hpux9*)
	    ans=no
	    ;;
	 *-hp-hpux*)
	    ans=tickadj
	    ;;
	 *-*-aix*)
	    ans=tickadj
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-ptx*)
	    ans=tickadj
	    ;;
	 *-*-sco3.2v4*)
	    ans=no
	    ;;
	 *-*-sco3.2v5.0*)
	    ans=clock_drift
	    ;;
	 *-*-solaris2*)
	    ans=no	# hrestime_adj
	    ;;
	 *-*-sysv4*)
	    ans=tickadj
	    ;;
	esac
	ntp_cv_nlist_tickadj=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
$as_echo "$ntp_cv_nlist_tickadj" >&6; }
case "$ntp_cv_nlist_tickadj" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)

cat >>confdefs.h <<_ACEOF
#define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
_ACEOF

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
$as_echo_n "checking for the units of 'tickadj'... " >&6; }
if ${ntp_cv_tickadj_nano+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=usec
	case "$host" in
	 *-*-solaris2*)
	    ans=nsec
	    ;;
	esac
	ntp_cv_tickadj_nano=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
$as_echo "$ntp_cv_tickadj_nano" >&6; }
case "$ntp_cv_tickadj_nano" in
 nsec)

$as_echo "#define TICKADJ_NANO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
if ${ntp_cv_nlist_dosynctodr+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-apple-aux[23]*)
	    ans=no
	    ;;
	 *-sni-sysv*)
	    ans=dosynctodr
	    ;;
	 *-*-aix*)
	    ans=dosynctodr
	    ;;
	 *-*-hpux*)
	    ans=no
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-nextstep*)
	    ans=_dosynctodr
	    ;;
	 *-*-ptx*)
	    ans=doresettodr
	    ;;
	 *-*-sco3.2v4*)
	    ans=no
	    ;;
	 *-*-sco3.2v5*)
	    ans=track_rtc
	    ;;
	 *-*-solaris2*)
	    ans=dosynctodr
	    ;;
	 *-*-sysv4*)
	    ans=doresettodr
	    ;;
	 *)
	    ans=_dosynctodr
	    ;;
	esac
	ntp_cv_nlist_dosynctodr=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
$as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
case "$ntp_cv_nlist_dosynctodr" in
 no)
    ;;
 *)

cat >>confdefs.h <<_ACEOF
#define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
_ACEOF

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
if ${ntp_cv_nlist_noprintf+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-apple-aux[23]*)
	    ans=no
	    ;;
	 *-sni-sysv*)
	    ans=noprintf
	    ;;
	 *-*-aix*)
	    ans=noprintf
	    ;;
	 *-*-hpux*)
	    ans=no
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-ptx*)
	    ans=noprintf
	    ;;
	 *-*-nextstep*)
	    ans=_noprintf
	    ;;
	 *-*-solaris2*)
	    ans=noprintf
	    ;;
	 *-*-sysv4*)
	    ans=noprintf
	    ;;
	 *)
	    ans=_noprintf
	    ;;
	esac
	ntp_cv_nlist_noprintf=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
$as_echo "$ntp_cv_nlist_noprintf" >&6; }
case "$ntp_cv_nlist_noprintf" in
 no)
    ;;
 *)

cat >>confdefs.h <<_ACEOF
#define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
_ACEOF

    ;;
esac




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
$as_echo_n "checking for a default value for 'tick'... " >&6; }

# target-dependent default for tick

case "$host" in
 *-*-pc-cygwin*)
    as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
    ;;
 *-univel-sysv*)
    ans=10000
    ;;
 *-*-irix*)
    ans=10000
    ;;
 *-*-*linux*)
    ans=txc.tick
    ;;
 *-*-mpeix*)
    ans=no
    ;;
 *-*-winnt3.5)
    ans='(every / 10)'
    ;;
 *-*-unicosmp*)
    ans=10000
    ;;
 *)
    ans='1000000L/hz'
    ;;
esac

# Check whether --enable-tick was given.
if test "${enable_tick+set}" = set; then :
  enableval=$enable_tick; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)

cat >>confdefs.h <<_ACEOF
#define PRESET_TICK $ans
_ACEOF

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
$as_echo_n "checking for a default value for 'tickadj'... " >&6; }

# target-specific default
ans='500/hz'
case "$host" in
 *-fujitsu-uxp*)
    case "$adjtime_is_accurate" in
     yes)
	ans='tick/16'
    esac
    ;;
 *-univel-sysv*)
    ans=80
    ;;
 *-*-aix*)
    case "$can_kmem" in
     no)
	ans=1000
	;;
    esac
    ;;
 *-*-domainos)	# Skippy: won't be found...
    case "$can_kmem" in
     no)
	ans=668
	;;
    esac
    ;;
 *-*-hpux*)
    case "$adjtime_is_accurate" in
     yes)
	ans='tick/16'
	;;
    esac
    ;;
 *-*-irix*)
    ans=150
    ;;
 *-*-mpeix*)
    ans=no
    ;;
 *-*-sco3.2v5.0*)
    ans=10000L/hz
    ;;
 *-*-winnt3.5)
    ans=50
    ;;
 *-*-unicosmp*)
    ans=150
    ;;
esac

# Check whether --enable-tickadj was given.
if test "${enable_tickadj+set}" = set; then :
  enableval=$enable_tickadj; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

default_tickadj=$ans

case "$default_tickadj" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)

cat >>confdefs.h <<_ACEOF
#define PRESET_TICKADJ $default_tickadj
_ACEOF
 ;;
esac

# Newer versions of ReliantUNIX round adjtime() values down to
# 1/100s (system tick). Sigh ...
# Unfortunately, there is no easy way to know if particular release
# has this "feature" or any obvious way to test for it.
case "$host" in
 mips-sni-sysv4*)

$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h

esac

case "$host" in
 *-*-sco3.2v5*)

$as_echo "#define SCO5_CLOCK 1" >>confdefs.h

esac

ntp_cv_make_tickadj=yes
case "$can_kmem$ac_cv_var_tick$default_tickadj" in
 nonono)	# Don't read KMEM, no presets.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&2;}
    ntp_cv_make_tickadj=no
    ;;
 nono*)		# Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
    ntp_cv_make_tickadj=no
    ;;
 no*no)		# Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
    ntp_cv_make_tickadj=no
    ;;
 no*)		# Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
    ;;
 yesnono)	# Read KMEM, no presets.  Cool.
    ;;
 yesno*)	# Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
    ;;
 yes*no)	# Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
    ;;
 yes*)		# READ KMEM, PRESET_TICK and PRESET_TICKADJ.
    ;;
 *)		# Generally bogus.
    as_fn_error $? "This shouldn't happen." "$LINENO" 5
    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
$as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
if ${ac_cv_make_ntptime+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case "$host" in
 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
     yesyes)
	ans=yes
	;;
     *)
	ans=no
	;;
    esac
    ;;
esac
ac_cv_make_ntptime=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
$as_echo "$ac_cv_make_ntptime" >&6; }
case "$ac_cv_make_ntptime" in
 yes)
    MAKE_NTPTIME=ntptime
    ;;
 *)
    NTPTIME_DB=
    NTPTIME_DL=
    NTPTIME_DS=
    NTPTIME_MS=
    ;;
esac


case "$host" in
 mips-sni-sysv4*)
    # tickadj is pretty useless on newer versions of ReliantUNIX
    # Do not bother
    ntp_cv_make_tickadj=no
    ;;
 *-*-irix*)
    ntp_cv_make_tickadj=no
    ;;
 *-*-solaris2*)
    # DLM says tickadj is a no-no starting with solaris2.5
    case "$host" in
     *-*-solaris2.1[0-9]*)
	ntp_cv_make_tickadj=no
	;;
     *-*-solaris2.[0-4]*) ;;
     *) ntp_cv_make_tickadj=no ;;
    esac
    ;;
 *-*-unicosmp*)
    ntp_cv_make_tickadj=no
    ;;
esac

#
# Despite all the above, we always make tickadj.  Setting
# ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
# report that the configuration variable was cached.  It may
# be better to simply remove the hunk above, I did not want
# to remove it if there is hope it will be used again.
#
{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
$as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
if ${ntp_cv_make_tickadj+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ntp_cv_make_tickadj=yes

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
$as_echo "$ntp_cv_make_tickadj" >&6; }
case "$ntp_cv_make_tickadj" in
 yes)
    MAKE_TICKADJ=tickadj
    ;;
 *)
    CALC_TICKADJ_DB=
    CALC_TICKADJ_DL=
    CALC_TICKADJ_DS=
    CALC_TICKADJ_MS=
    TICKADJ_DB=
    TICKADJ_DL=
    TICKADJ_DS=
    TICKADJ_MS=
    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
$as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
if ${ntp_cv_make_timetrim+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-irix*)
	    ntp_cv_make_timetrim=yes
	    ;;
	 *-*-unicosmp*)
	    ntp_cv_make_timetrim=yes
	    ;;
	 *)
	    ntp_cv_make_timetrim=no
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
$as_echo "$ntp_cv_make_timetrim" >&6; }
case "$ntp_cv_make_timetrim" in
 yes)
    MAKE_TIMETRIM=timetrim
    ;;
 *) TIMETRIM_DB=
    TIMETRIM_DL=
    TIMETRIM_DS=
    TIMETRIM_MS=
    ;;
esac




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
$as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
# Check whether --enable-simulator was given.
if test "${enable_simulator+set}" = set; then :
  enableval=$enable_simulator; ans=$enableval
else
  ans=no

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 yes)
    MAKE_NTPDSIM=ntpdsim
    MAKE_LIBNTPSIM=libntpsim.a
    ;;
 *)
    NTPDSIM_DB=
    NTPDSIM_DL=
    NTPDSIM_DS=
    NTPDSIM_MS=
    ;;
esac

case "$build" in
 $host)
    ;;
 *) case "$host" in
     *-*-vxworks*)
	LDFLAGS="$LDFLAGS -r"
	;;
    esac
    ;;
esac



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
$as_echo_n "checking if sntp will be built... " >&6; }

# Check whether --with-sntp was given.
if test "${with_sntp+set}" = set; then :
  withval=$with_sntp;
else
  with_sntp="${withsntp=yes}"

fi

case "$with_sntp" in
 no)
    SNTP=
    ;;
 *)
    SNTP=sntp
    ;;
esac

 if test -n "$SNTP"; then
  BUILD_SNTP_TRUE=
  BUILD_SNTP_FALSE='#'
else
  BUILD_SNTP_TRUE='#'
  BUILD_SNTP_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
$as_echo "$with_sntp" >&6; }



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
$as_echo_n "checking if we want to build ntpsnmpd... " >&6; }

# Check whether --with-ntpsnmpd was given.
if test "${with_ntpsnmpd+set}" = set; then :
  withval=$with_ntpsnmpd; ans=$withval
else

	case "$PATH_NET_SNMP_CONFIG" in
	 /*)	ans=yes ;;
	 *)	ans=no  ;;
	esac


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 yes)
    case "$PATH_NET_SNMP_CONFIG" in
     /*)
	SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`

	# HMS: we really want to separate CPPFLAGS and CFLAGS
	foo=`$PATH_NET_SNMP_CONFIG --cflags`
	SNMP_CPPFLAGS=
	SNMP_CFLAGS=
	for i in $foo; do
	    case "$i" in
	     -D*|-U*|-I*)
		SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
		;;
	    *)	SNMP_CFLAGS="$SNMP_CFLAGS $i"
		;;
	    esac
	done



	save_CFLAGS=$CFLAGS
	save_CPPFLAGS=$CPPFLAGS
	save_LIBS=$LIBS
	CFLAGS=$SNMP_CFLAGS
	CPPFLAGS=$SNMP_CPPFLAGS

	ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
  MAKE_NTPSNMPD=ntpsnmpd
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}

fi



	# Do this last, as we're messing up LIBS.
	# check -lnetsnmp for netsnmp_daemonize
	LIBS=`$PATH_NET_SNMP_CONFIG --libs`
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnetsnmp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char netsnmp_daemonize ();
int
main ()
{
return netsnmp_daemonize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_netsnmp_netsnmp_daemonize=yes
else
  ac_cv_lib_netsnmp_netsnmp_daemonize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
  ans=yes
else
  ans=no

fi

	case "$ans" in
	 no)

$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h

	esac

	CFLAGS=$save_CFLAGS
	{ save_CFLAGS=; unset save_CFLAGS;}
	CPPFLAGS=$save_CPPFLAGS
	{ save_CPPFLAGS=; unset save_CPPFLAGS;}
	LIBS=$save_LIBS
	{ save_LIBS=; unset save_LIBS;}
	;;
     *)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
$as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
	;;
    esac
    ;;
esac


case "$MAKE_NTPSNMPD" in
 '')
    NTPSNMPD_DB=
    NTPSNMPD_DL=
    NTPSNMPD_DS=
    NTPSNMPD_MS=
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
$as_echo_n "checking if we should always slew the time... " >&6; }

# target-specific defaults

case "$host" in
 *-apple-aux[23]*)
    ans=yes
    ;;
 *-*-bsdi[012]*)
    ans=no
    ;;
 *-*-bsdi*)
    ans=yes
    ;;
 *-*-openvms*)	# HMS: won't be found
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# --enable-slew-always / --disable-slew-always overrides default

# Check whether --enable-slew-always was given.
if test "${enable_slew_always+set}" = set; then :
  enableval=$enable_slew_always; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define SLEWALWAYS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
$as_echo_n "checking if we should step and slew the time... " >&6; }

case "$host" in
 *-sni-sysv*)
    ans=yes
    ;;
 *-univel-sysv*)
    ans=no
    ;;
 *-*-ptx*)
    ans=yes
    ;;
 *-*-solaris2.1[0-9]*)
    ans=no
    ;;
 *-*-solaris2.[012]*)
    ans=yes
    ;;
 *-*-sysv4*)	# HMS: Does this catch Fujitsu UXP?
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# Check whether --enable-step-slew was given.
if test "${enable_step_slew+set}" = set; then :
  enableval=$enable_step_slew; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define STEP_SLEW 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
$as_echo_n "checking if ntpdate should step the time... " >&6; }

case "$host" in
 *-apple-aux[23]*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# Check whether --enable-ntpdate-step was given.
if test "${enable_ntpdate_step+set}" = set; then :
  enableval=$enable_ntpdate_step; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
$as_echo_n "checking if we should sync TODR clock every hour... " >&6; }

case "$host" in
 *-*-nextstep*)
    ans=yes
    ;;
 *-*-openvms*)	# HMS: won't be found
    ans=yes
    ;;
 *)
    ans=no
    ;;
esac

# Check whether --enable-hourly-todr-sync was given.
if test "${enable_hourly_todr_sync+set}" = set; then :
  enableval=$enable_hourly_todr_sync; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ac_cv_var_sync_todr" in
 yes)

$as_echo "#define DOSYNCTODR 1" >>confdefs.h
 ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }

case "$host" in
 *-*-solaris2.6)
    unamev=`uname -v`
    case "$unamev" in
     Generic_105181-*)
	old_IFS="$IFS"
	IFS="-"
	set $unamev
	IFS="$old_IFS"
	if test "$2" -ge 17
	then
	    # Generic_105181-17 and higher
	    ans=no
	else
	    ans=yes
	fi
	;;
     *)
	ans=yes
	;;
    esac
    ;;
 *-*-solaris2.7)
    unamev=`uname -v`
    case "$unamev" in
     Generic_106541-*)
	old_IFS="$IFS"
	IFS="-"
	set $unamev
	IFS="$old_IFS"
	if test "$2" -ge 07
	then
	    # Generic_106541-07 and higher
	    ans=no
	else
	    ans=yes
	fi
	;;
     *)
	ans=yes
	;;
    esac
    ;;
 *)
    ans=no
    ;;
esac

# Check whether --enable-kernel-fll-bug was given.
if test "${enable_kernel_fll_bug+set}" = set; then :
  enableval=$enable_kernel_fll_bug; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
$as_echo_n "checking if we want new session key behavior... " >&6; }
# Check whether --enable-bug1243-fix was given.
if test "${enable_bug1243_fix+set}" = set; then :
  enableval=$enable_bug1243_fix; ans=$enableval
else
  ans=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 no)

$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }

case "$host" in
 *-*-solaris2.[89])
    ans=yes
    ;;
 *-*-solaris2.1[0-9]*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# Check whether --enable-irig-sawtooth was given.
if test "${enable_irig_sawtooth+set}" = set; then :
  enableval=$enable_irig_sawtooth; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define IRIG_SUCKS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }

# Check whether --enable-nist was given.
if test "${enable_nist+set}" = set; then :
  enableval=$enable_nist; ans=$enableval
else
  ans=no

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define LOCKCLOCK 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }

# Check whether --enable-ntp-signd was given.
if test "${enable_ntp_signd+set}" = set; then :
  enableval=$enable_ntp_signd; ans=$enableval
else
  ans=no

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 no)
    ntp_signd_path=
    ;;
 yes)
    ntp_signd_path=/var/run/ntp_signd
    ;;
 *)
    ntp_signd_path="$ans"
esac

case "$ntp_signd_path" in
 '')
    ;;
 *)

$as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h


cat >>confdefs.h <<_ACEOF
#define NTP_SIGND_PATH "$ntp_signd_path"
_ACEOF

    ;;
esac

for ac_header in libscf.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
if test "x$ac_cv_header_libscf_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSCF_H 1
_ACEOF

fi

done

LSCF=
case "$ac_cv_header_libscf_h" in
 yes)
    LSCF='-lscf'
esac




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
if ${ntp_cv_sockaddr_storage+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif

int
main ()
{

		struct sockaddr_storage n;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_sockaddr_storage=yes
else
  ntp_cv_sockaddr_storage=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
$as_echo "$ntp_cv_sockaddr_storage" >&6; }
case "$ntp_cv_sockaddr_storage" in
 yes)

$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
if ${ntp_cv_have___ss_family+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_SYS_TYPES_H
		    # include <sys/types.h>
		    #endif
		    #ifdef HAVE_SYS_SOCKET_H
		    # include <sys/socket.h>
		    #endif
		    #ifdef HAVE_NETINET_IN_H
		    # include <netinet/in.h>
		    #endif

int
main ()
{

		    struct sockaddr_storage s;
		    s.__ss_family = 1;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have___ss_family=yes
else
  ntp_cv_have___ss_family=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
$as_echo "$ntp_cv_have___ss_family" >&6; }
    case "$ntp_cv_have___ss_family" in
     yes)

$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h

    esac

esac


#
# Look for in_port_t.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
$as_echo_n "checking for in_port_t... " >&6; }
if ${isc_cv_have_in_port_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <netinet/in.h>

int
main ()
{

		in_port_t port = 25;
		return (0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_in_port_t=yes
else
  isc_cv_have_in_port_t=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
$as_echo "$isc_cv_have_in_port_t" >&6; }
case "$isc_cv_have_in_port_t" in
 no)

$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
if ${ntp_cv_getsockname_socklen_type+:} false; then :
  $as_echo_n "(cached) " >&6
else

    getsockname_socklen_type_found=no
    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#ifdef HAVE_SYS_TYPES_H
			# include <sys/types.h>
			#endif
			#ifdef HAVE_SYS_SOCKET_H
			# include <sys/socket.h>
			#endif

int
main ()
{

			extern
			getsockname(int, $getsockname_arg2,
				$ntp_cv_getsockname_socklen_type *);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  getsockname_socklen_type_found=yes ; break 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	done
    done
    case "$getsockname_socklen_type_found" in
     no)
	ntp_cv_getsockname_socklen_type='socklen_t'
    esac
    { getsockname_arg2=; unset getsockname_arg2;}
    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }

cat >>confdefs.h <<_ACEOF
#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
$as_echo_n "checking struct sockaddr for sa_len... " >&6; }
if ${isc_cv_platform_havesalen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <sys/socket.h>

int
main ()
{

		extern struct sockaddr *ps;
		return ps->sa_len;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_platform_havesalen=yes
else
  isc_cv_platform_havesalen=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
$as_echo "$isc_cv_platform_havesalen" >&6; }
case "$isc_cv_platform_havesalen" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h

esac

# Check whether --enable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then :
  enableval=$enable_ipv6;
fi


case "$enable_ipv6" in
 yes|''|autodetect)
    case "$host" in
     powerpc-ibm-aix4*)
	;;
     *)

$as_echo "#define WANT_IPV6 1" >>confdefs.h

	;;
    esac
    ;;
 no)
    ;;
esac


case "$host" in
 *-*-darwin*)

$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
$as_echo_n "checking for IPv6 structures... " >&6; }
if ${isc_cv_found_ipv6+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <sys/socket.h>
		#include <netinet/in.h>

int
main ()
{

		struct sockaddr_in6 sin6;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_found_ipv6=yes
else
  isc_cv_found_ipv6=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
$as_echo "$isc_cv_found_ipv6" >&6; }

#
# See whether IPv6 support is provided via a Kame add-on.
# This is done before other IPv6 linking tests so LIBS is properly set.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
$as_echo_n "checking for Kame IPv6 support... " >&6; }

# Check whether --with-kame was given.
if test "${with_kame+set}" = set; then :
  withval=$with_kame; use_kame="$withval"
else
  use_kame="no"

fi

case "$use_kame" in
 no)
    ;;
 yes)
    kame_path=/usr/local/v6
    ;;
 *)
    kame_path="$use_kame"
    ;;
esac
case "$use_kame" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
 *)
    if test -f $kame_path/lib/libinet6.a; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
$as_echo "$kame_path/lib/libinet6.a" >&6; }
	LIBS="-L$kame_path/lib -linet6 $LIBS"
    else
	as_fn_error $? "$kame_path/lib/libinet6.a not found.

Please choose the proper path with the following command:

    configure --with-kame=PATH
" "$LINENO" 5
    fi
    ;;
esac

#
# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
# Including it on Kame-using platforms is very bad, though, because
# Kame uses #error against direct inclusion.   So include it on only
# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
# This is done before the in6_pktinfo check because that's what
# netinet6/in6.h is needed for.
#
case "$host" in
 *-bsdi4.[01]*)

$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h

    isc_netinet6in6_hack="#include <netinet6/in6.h>"
    ;;
 *)
    isc_netinet6in6_hack=""
    ;;
esac

#
# This is similar to the netinet6/in6.h issue.
#
case "$host" in
 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)

$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h

    isc_netinetin6_hack="#include <netinet/in6.h>"
    ;;
 *)
    isc_netinetin6_hack=""
    ;;
esac


case "$isc_cv_found_ipv6" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
$as_echo_n "checking for in6_pktinfo... " >&6; }
if ${isc_cv_have_in6_pktinfo+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include <sys/types.h>
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack

int
main ()
{

		    struct in6_pktinfo xyzzy;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_in6_pktinfo=yes
else
  isc_cv_have_in6_pktinfo=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
$as_echo "$isc_cv_have_in6_pktinfo" >&6; }
    case "$isc_cv_have_in6_pktinfo" in
     yes)

$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h

    esac


    # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
if ${isc_cv_have_sin6_scope_id+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include <sys/types.h>
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack

int
main ()
{

		    struct sockaddr_in6 xyzzy;
		    xyzzy.sin6_scope_id = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_sin6_scope_id=yes
else
  isc_cv_have_sin6_scope_id=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
$as_echo "$isc_cv_have_sin6_scope_id" >&6; }

    case "$isc_cv_have_sin6_scope_id" in
     yes)

$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h

    esac
esac


# We need this check run even without isc_cv_found_ipv6=yes

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
$as_echo_n "checking for in6addr_any... " >&6; }
if ${isc_cv_in6addr_any_links+:} false; then :
  $as_echo_n "(cached) " >&6
else

	SAVED_LIBS="$LIBS"
	LIBS="$LDADD_LIBNTP $LIBS"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack

int
main ()
{

		    printf("%x", in6addr_any.s6_addr[15]);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  isc_cv_in6addr_any_links=yes
else
  isc_cv_in6addr_any_links=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LIBS="$SAVED_LIBS"
	{ SAVED_LIBS=; unset SAVED_LIBS;}


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
$as_echo "$isc_cv_in6addr_any_links" >&6; }

case "$isc_cv_in6addr_any_links" in
 no)

$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
$as_echo_n "checking for struct if_laddrconf... " >&6; }
if ${isc_cv_struct_if_laddrconf+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <net/if6.h>

int
main ()
{

		struct if_laddrconf a;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_struct_if_laddrconf=yes
else
  isc_cv_struct_if_laddrconf=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
$as_echo "$isc_cv_struct_if_laddrconf" >&6; }

case "$isc_cv_struct_if_laddrconf" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
$as_echo_n "checking for struct if_laddrreq... " >&6; }
if ${isc_cv_struct_if_laddrreq+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <net/if6.h>

int
main ()
{

		struct if_laddrreq a;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_struct_if_laddrreq=yes
else
  isc_cv_struct_if_laddrreq=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
$as_echo "$isc_cv_struct_if_laddrreq" >&6; }

case "$isc_cv_struct_if_laddrreq" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
$as_echo_n "checking for multicast IP support... " >&6; }
if ${ntp_cv_multicast+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_multicast=no
	case "$host" in
	 i386-sequent-sysv4)
	    ;;
	 *)
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#ifdef HAVE_NETINET_IN_H
			# include <netinet/in.h>
			#endif

int
main ()
{

			struct ip_mreq ipmr;
			ipmr.imr_interface.s_addr = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_multicast=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
$as_echo "$ntp_cv_multicast" >&6; }
case "$ntp_cv_multicast" in
 yes)

$as_echo "#define MCAST 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    case "$host" in
	     *-*-netbsd*|*-*-*linux*)
		ntp_cv_typeof_ip_multicast_loop=u_int
		;;
	     *)
		ntp_cv_typeof_ip_multicast_loop=u_char
		;;
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }

cat >>confdefs.h <<_ACEOF
#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
_ACEOF

esac

# Check whether --enable-getifaddrs was given.
if test "${enable_getifaddrs+set}" = set; then :
  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
else
  want_getifaddrs="yes"

fi


case $want_getifaddrs in
 glibc)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
esac
case $want_getifaddrs in
 no)
    ;;
 *)
    SAVED_LIBS="$LIBS"
    LIBS="$LDADD_LIBNTP $LIBS"
    for ac_func in getifaddrs
do :
  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF

fi
done

    LIBS="$SAVED_LIBS"
    { SAVED_LIBS=; unset SAVED_LIBS;}
    ;;
esac

#
# Check for if_nametoindex() for IPv6 scoped addresses support
#
case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
$as_echo_n "checking for library containing if_nametoindex... " >&6; }
if ${ac_cv_search_if_nametoindex+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char if_nametoindex ();
int
main ()
{
return if_nametoindex ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' ipv6; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_if_nametoindex=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_if_nametoindex+:} false; then :
  break
fi
done
if ${ac_cv_search_if_nametoindex+:} false; then :

else
  ac_cv_search_if_nametoindex=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
$as_echo "$ac_cv_search_if_nametoindex" >&6; }
ac_res=$ac_cv_search_if_nametoindex
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

esac
SAVED_LIBS="$LIBS"
LIBS="$LDADD_LIBNTP $LIBS"
for ac_func in if_nametoindex
do :
  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
if test "x$ac_cv_func_if_nametoindex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_IF_NAMETOINDEX 1
_ACEOF

fi
done

LIBS="$SAVED_LIBS"
{ SAVED_LIBS=; unset SAVED_LIBS;}
case "$ac_cv_func_if_nametoindex" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h

esac




#
# Look for a sysctl call to get the list of network interfaces.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
$as_echo_n "checking for interface list sysctl... " >&6; }
if ${ntp_cv_iflist_sysctl+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <sys/param.h>
	    #include <sys/sysctl.h>
	    #include <sys/socket.h>
	    #ifndef NET_RT_IFLIST
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_iflist_sysctl=yes
else
  ntp_cv_iflist_sysctl=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
$as_echo "$ntp_cv_iflist_sysctl" >&6; }
case "$ntp_cv_iflist_sysctl" in
 yes)

$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h

esac

###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
$as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
# Check whether --enable-saveconfig was given.
if test "${enable_saveconfig+set}" = set; then :
  enableval=$enable_saveconfig; ntp_ok=$enableval
else
  ntp_ok=yes

fi

ntp_saveconfig_enabled=0
case "$ntp_ok" in
 yes)
    ntp_saveconfig_enabled=1

$as_echo "#define SAVECONFIG 1" >>confdefs.h

    ;;
esac
 if test x$ntp_saveconfig_enabled = x1; then
  SAVECONFIG_ENABLED_TRUE=
  SAVECONFIG_ENABLED_FALSE='#'
else
  SAVECONFIG_ENABLED_TRUE='#'
  SAVECONFIG_ENABLED_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }


gta=false

# Check whether --with-gtest was given.
if test "${with_gtest+set}" = set; then :
  withval=$with_gtest; try_gtest=$withval
else
  try_gtest=yes

fi

case "$try_gtest" in
 yes)
    # Extract the first word of "gtest-config", so it can be a program name with args.
set dummy gtest-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_GTEST_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $GTEST_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
if test -n "$GTEST_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
$as_echo "$GTEST_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
    case x${GTEST_CONFIG} in
     x) ;;
     *)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
$as_echo_n "checking gtest version... " >&6; }
	gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
	case "$gtest_version_test" in
	 toolow*)
	    ;;
	 *)
	    GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
	    GTEST_LIBS=`$GTEST_CONFIG --libs`
	    GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
	    GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`




	    gta=true
	    ;;
	esac
	gtest_version=`$GTEST_CONFIG --version`
	case "$gta" in
	 true)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
$as_echo "($gtest_version) ok" >&6; }
	    ;;
	 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
$as_echo "($gtest_version) not ok" >&6; }
	    ;;
	esac
	{ gtest_version_test=; unset gtest_version_test;}
	{ gtest_version=; unset gtest_version;}
    esac
esac
 if $gta; then
  GTEST_AVAILABLE_TRUE=
  GTEST_AVAILABLE_FALSE='#'
else
  GTEST_AVAILABLE_TRUE='#'
  GTEST_AVAILABLE_FALSE=
fi




###


  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$sysconfdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  NTP_KEYSDIR="$ac_define_dir"


cat >>confdefs.h <<_ACEOF
#define NTP_KEYSDIR "$ac_define_dir"
_ACEOF

  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE


ac_config_files="$ac_config_files Makefile"

ac_config_files="$ac_config_files adjtimed/Makefile"

ac_config_files="$ac_config_files clockstuff/Makefile"

ac_config_files="$ac_config_files include/Makefile"

ac_config_files="$ac_config_files include/isc/Makefile"

ac_config_files="$ac_config_files kernel/Makefile"

ac_config_files="$ac_config_files kernel/sys/Makefile"

ac_config_files="$ac_config_files libntp/Makefile"

ac_config_files="$ac_config_files libparse/Makefile"

ac_config_files="$ac_config_files ntpd/Makefile"

ac_config_files="$ac_config_files ntpd/complete.conf"

ac_config_files="$ac_config_files ntpdate/Makefile"

ac_config_files="$ac_config_files ntpdc/Makefile"

ac_config_files="$ac_config_files ntpdc/nl.pl"

ac_config_files="$ac_config_files ntpq/Makefile"

ac_config_files="$ac_config_files ntpsnmpd/Makefile"

ac_config_files="$ac_config_files parseutil/Makefile"

ac_config_files="$ac_config_files scripts/Makefile"

ac_config_files="$ac_config_files scripts/lib/Makefile"

ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"

ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"

ac_config_files="$ac_config_files scripts/build/mkver"

ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"

ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"

ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"

ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"

ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"

ac_config_files="$ac_config_files scripts/ntptrace/Makefile"

ac_config_files="$ac_config_files scripts/ntpver"

ac_config_files="$ac_config_files scripts/plot_summary"

ac_config_files="$ac_config_files scripts/summary"

ac_config_files="$ac_config_files scripts/build/Makefile"

ac_config_files="$ac_config_files tests/Makefile"

ac_config_files="$ac_config_files tests/libntp/Makefile"

ac_config_files="$ac_config_files tests/ntpd/Makefile"

ac_config_files="$ac_config_files util/Makefile"


perllibdir="${datadir}/ntp/lib"

  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$perllibdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  PERLLIBDIR="$ac_define_dir"


cat >>confdefs.h <<_ACEOF
#define PERLLIBDIR "$ac_define_dir"
_ACEOF

  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE


calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"

ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"

ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"

ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"

summary_opts="$srcdir/scripts/summary-opts"

plot_summary_opts="$srcdir/scripts/plot_summary-opts"




subdirs="$subdirs sntp"


cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    if test "x$cache_file" != "x/dev/null"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
      if test ! -f "$cache_file" || test -h "$cache_file"; then
	cat confcache >"$cache_file"
      else
        case $cache_file in #(
        */* | ?:*)
	  mv -f confcache "$cache_file"$$ &&
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
        *)
	  mv -f confcache "$cache_file" ;;
	esac
      fi
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
U=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


 if test -n "$EXEEXT"; then
  am__EXEEXT_TRUE=
  am__EXEEXT_FALSE='#'
else
  am__EXEEXT_TRUE='#'
  am__EXEEXT_FALSE=
fi

if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  as_fn_error $? "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
  as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
  as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
  as_fn_error $? "conditional \"PTHREADS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
  as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
  as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false

SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH


# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  $as_echo "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@@" || test $? -eq 1`
  }
fi # as_fn_arith


if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null


# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by ntp4 $as_me 4.2.8, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to <http://bugs.ntp.org./>.
ntp4 home page: <http://www.ntp.org./>."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
ntp4 config.status 4.2.8
configured by $0, generated by GNU Autoconf 2.68,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2010 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=?*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  --*=)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    $as_echo "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    $as_echo "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    '') as_fn_error $? "missing file argument" ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error $? "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
  --help | --hel | -h )
    $as_echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error $? "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#
# INIT-COMMANDS
#
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"


# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

sed_quote_subst='$sed_quote_subst'
double_quote_subst='$double_quote_subst'
delay_variable_subst='$delay_variable_subst'
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'

LTCC='$LTCC'
LTCFLAGS='$LTCFLAGS'
compiler='$compiler_DEFAULT'

# A function that is used when there is no print builtin or printf.
func_fallback_echo ()
{
  eval 'cat <<_LTECHO_EOF
\$1
_LTECHO_EOF'
}

# Quote evaled strings.
for var in SHELL \
ECHO \
SED \
GREP \
EGREP \
FGREP \
LD \
NM \
LN_S \
lt_SP2NL \
lt_NL2SP \
reload_flag \
OBJDUMP \
deplibs_check_method \
file_magic_cmd \
file_magic_glob \
want_nocaseglob \
DLLTOOL \
sharedlib_from_linklib_cmd \
AR \
AR_FLAGS \
archiver_list_spec \
STRIP \
RANLIB \
CC \
CFLAGS \
compiler \
lt_cv_sys_global_symbol_pipe \
lt_cv_sys_global_symbol_to_cdecl \
lt_cv_sys_global_symbol_to_c_name_address \
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
nm_file_list_spec \
lt_prog_compiler_no_builtin_flag \
lt_prog_compiler_pic \
lt_prog_compiler_wl \
lt_prog_compiler_static \
lt_cv_prog_compiler_c_o \
need_locks \
MANIFEST_TOOL \
DSYMUTIL \
NMEDIT \
LIPO \
OTOOL \
OTOOL64 \
shrext_cmds \
export_dynamic_flag_spec \
whole_archive_flag_spec \
compiler_needs_object \
with_gnu_ld \
allow_undefined_flag \
no_undefined_flag \
hardcode_libdir_flag_spec \
hardcode_libdir_flag_spec_ld \
hardcode_libdir_separator \
exclude_expsyms \
include_expsyms \
file_list_spec \
variables_saved_for_relink \
libname_spec \
library_names_spec \
soname_spec \
install_override_mode \
finish_eval \
old_striplib \
striplib \
compiler_lib_search_dirs \
predep_objects \
postdep_objects \
predeps \
postdeps \
compiler_lib_search_path \
LD_CXX \
reload_flag_CXX \
compiler_CXX \
lt_prog_compiler_no_builtin_flag_CXX \
lt_prog_compiler_pic_CXX \
lt_prog_compiler_wl_CXX \
lt_prog_compiler_static_CXX \
lt_cv_prog_compiler_c_o_CXX \
export_dynamic_flag_spec_CXX \
whole_archive_flag_spec_CXX \
compiler_needs_object_CXX \
with_gnu_ld_CXX \
allow_undefined_flag_CXX \
no_undefined_flag_CXX \
hardcode_libdir_flag_spec_CXX \
hardcode_libdir_flag_spec_ld_CXX \
hardcode_libdir_separator_CXX \
exclude_expsyms_CXX \
include_expsyms_CXX \
file_list_spec_CXX \
compiler_lib_search_dirs_CXX \
predep_objects_CXX \
postdep_objects_CXX \
predeps_CXX \
postdeps_CXX \
compiler_lib_search_path_CXX; do
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

# Double-quote double-evaled strings.
for var in reload_cmds \
old_postinstall_cmds \
old_postuninstall_cmds \
old_archive_cmds \
extract_expsyms_cmds \
old_archive_from_new_cmds \
old_archive_from_expsyms_cmds \
archive_cmds \
archive_expsym_cmds \
module_cmds \
module_expsym_cmds \
export_symbols_cmds \
prelink_cmds \
postlink_cmds \
postinstall_cmds \
postuninstall_cmds \
finish_cmds \
sys_lib_search_path_spec \
sys_lib_dlsearch_path_spec \
reload_cmds_CXX \
old_archive_cmds_CXX \
old_archive_from_new_cmds_CXX \
old_archive_from_expsyms_cmds_CXX \
archive_cmds_CXX \
archive_expsym_cmds_CXX \
module_cmds_CXX \
module_expsym_cmds_CXX \
export_symbols_cmds_CXX \
prelink_cmds_CXX \
postlink_cmds_CXX; do
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

ac_aux_dir='$ac_aux_dir'
xsi_shell='$xsi_shell'
lt_shell_append='$lt_shell_append'

# See if we are running on zsh, and set the options which allow our
# commands through without removal of \ escapes INIT.
if test -n "\${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi


    PACKAGE='$PACKAGE'
    VERSION='$VERSION'
    TIMESTAMP='$TIMESTAMP'
    RM='$RM'
    ofile='$ofile'






_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
    "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
    "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
    "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
    "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
    "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
    "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
    "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
    "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
    "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
    "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
    "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
    "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
    "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
    "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
    "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
    "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
    "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
    "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
    "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
    "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
    "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
    "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
    "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;

  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp= ac_tmp=
  trap 'exit_status=$?
  : "${ac_tmp:=$tmp}"
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ac_tmp=$tmp

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then

if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  ac_cs_awk_getline=:
  ac_cs_awk_pipe_init=
  ac_cs_awk_read_file='
      while ((getline aline < (F[key])) > 0)
	print(aline)
      close(F[key])'
  ac_cs_awk_pipe_fini=
else
  ac_cs_awk_getline=false
  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  ac_cs_awk_read_file='
      print "|#_!!_#|"
      print "cat " F[key] " &&"
      '$ac_cs_awk_pipe_init
  # The final `:' finishes the AND list.
  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
fi
ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
_ACEOF

# Create commands to substitute file output variables.
{
  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  echo "_ACAWK" &&
  echo "_ACEOF"
} >conf$$files.sh &&
. ./conf$$files.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
rm -f conf$$files.sh

{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""
  \$ac_cs_awk_pipe_init
}
{
  line = $ 0
  nfields = split(line, field, "@@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }
  if (nfields == 3 && !substed) {
    key = field[2]
    if (F[key] != "" && line ~ /^[	 ]*@@.*@@[	 ]*$/) {
      \$ac_cs_awk_read_file
      next
    }
  }
  print line
}
\$ac_cs_awk_pipe_fini
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
_ACEOF

# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
# ${srcdir} and @@srcdir@@ entries from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
h
s///
s/^/:/
s/[	 ]*$/:/
s/:\$(srcdir):/:/g
s/:\${srcdir}:/:/g
s/:@@srcdir@@:/:/g
s/^:*//
s/:*$//
x
s/\(=[	 ]*\).*/\1/
G
s/\n//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_tt"; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$ac_tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@@datadir@@/p
/@@docdir@@/p
/@@infodir@@/p
/@@localedir@@/p
/@@mandir@@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@@datadir@@*|*@@docdir@@*|*@@infodir@@*|*@@localedir@@*|*@@mandir@@*)
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@@datadir@@&$datadir&g
  s&@@docdir@@&$docdir&g
  s&@@infodir@@&$infodir&g
  s&@@localedir@@&$localedir&g
  s&@@mandir@@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s|@@configure_input@@|$ac_sed_conf_input|;t t
s&@@top_builddir@@&$ac_top_builddir_sub&;t t
s&@@top_build_prefix@@&$ac_top_build_prefix&;t t
s&@@srcdir@@&$ac_srcdir&;t t
s&@@abs_srcdir@@&$ac_abs_srcdir&;t t
s&@@top_srcdir@@&$ac_top_srcdir&;t t
s&@@abs_top_srcdir@@&$ac_abs_top_srcdir&;t t
s&@@builddir@@&$ac_builddir&;t t
s&@@abs_builddir@@&$ac_abs_builddir&;t t
s&@@abs_top_builddir@@&$ac_abs_top_builddir&;t t
s&@@INSTALL@@&$ac_INSTALL&;t t
s&@@MKDIR_P@@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
if $ac_cs_awk_getline; then
  $AWK -f "$ac_tmp/subs.awk"
else
  $AWK -f "$ac_tmp/subs.awk" | $SHELL
fi \
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&2;}

  rm -f "$ac_tmp/stdin"
  case $ac_file in
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  esac \
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
    } >"$ac_tmp/config.h" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
$as_echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$ac_tmp/config.h" "$ac_file" \
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
    fi
  else
    $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error $? "could not create -" "$LINENO" 5
  fi
# Compute "$ac_file"'s index in $config_headers.
_am_arg="$ac_file"
_am_stamp_count=1
for _am_header in $config_headers :; do
  case $_am_header in
    $_am_arg | $_am_arg:* )
      break ;;
    * )
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  esac
done
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
	 X"$_am_arg" : 'X\(//\)$' \| \
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$_am_arg" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`/stamp-h$_am_stamp_count
 ;;

  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
  # are listed without --file.  Let's play safe and only enable the eval
  # if we detect the quoting.
  case $CONFIG_FILES in
  *\'*) eval set x "$CONFIG_FILES" ;;
  *)   set x $CONFIG_FILES ;;
  esac
  shift
  for mf
  do
    # Strip MF so we end up with the name of the file.
    mf=`echo "$mf" | sed -e 's/:.*$//'`
    # Check whether this is an Automake generated Makefile or not.
    # We used to match only the files named `Makefile.in', but
    # some people rename them; so instead we look at the file content.
    # Grep'ing the first line is not enough: some people post-process
    # each Makefile.in and add a new line on top of each file to say so.
    # Grep'ing the whole file is not good either: AIX grep has a line
    # limit of 2048, but all sed's we know have understand at least 4000.
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
      dirpart=`$as_dirname -- "$mf" ||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$mf" : 'X\(//\)[^/]' \| \
	 X"$mf" : 'X\(//\)$' \| \
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
    else
      continue
    fi
    # Extract the definition of DEPDIR, am__include, and am__quote
    # from the Makefile without running `make'.
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    test -z "$DEPDIR" && continue
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
    test -z "am__include" && continue
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
    # When using ansi2knr, U may be empty or an underscore; expand it
    U=`sed -n 's/^U = //p' < "$mf"`
    # Find all dependency output files, they are included files with
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
    # simplest approach to changing $(DEPDIR) to its actual value in the
    # expansion.
    for file in `sed -n "
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
      # Make sure the directory exists.
      test -f "$dirpart/$file" && continue
      fdir=`$as_dirname -- "$file" ||
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$file" : 'X\(//\)[^/]' \| \
	 X"$file" : 'X\(//\)$' \| \
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
      # echo "creating $dirpart/$file"
      echo '# dummy' > "$dirpart/$file"
    done
  done
}
 ;;
    "libtool":C)

    # See if we are running on zsh, and set the options which allow our
    # commands through without removal of \ escapes.
    if test -n "${ZSH_VERSION+set}" ; then
      setopt NO_GLOB_SUBST
    fi

    cfgfile="${ofile}T"
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
    $RM "$cfgfile"

    cat <<_LT_EOF >> "$cfgfile"
#! $SHELL

# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
#                 Inc.
#   Written by Gordon Matzigkeit, 1996
#
#   This file is part of GNU Libtool.
#
# GNU Libtool is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# As a special exception to the GNU General Public License,
# if you distribute this file as part of a program or library that
# is built using GNU Libtool, you may include this file under the
# same distribution terms that you use for the rest of that program.
#
# GNU Libtool is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Libtool; see the file COPYING.  If not, a copy
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
# obtained by writing to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


# The names of the tagged configurations supported by this script.
available_tags="CXX "

# ### BEGIN LIBTOOL CONFIG

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Which release of libtool.m4 was used?
macro_version=$macro_version
macro_revision=$macro_revision

# Whether or not to build static libraries.
build_old_libs=$enable_static

# What type of objects to build.
pic_mode=$pic_mode

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# An echo program that protects backslashes.
ECHO=$lt_ECHO

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# A sed program that does not truncate output.
SED=$lt_SED

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="\$SED -e 1s/^X//"

# A grep program that handles long lines.
GREP=$lt_GREP

# An ERE matcher.
EGREP=$lt_EGREP

# A literal string matcher.
FGREP=$lt_FGREP

# A BSD- or MS-compatible name lister.
NM=$lt_NM

# Whether we need soft or hard links.
LN_S=$lt_LN_S

# What is the maximum length of a command?
max_cmd_len=$max_cmd_len

# Object file suffix (normally "o").
objext=$ac_objext

# Executable file suffix (normally "").
exeext=$exeext

# whether the shell understands "unset".
lt_unset=$lt_unset

# turn spaces into newlines.
SP2NL=$lt_lt_SP2NL

# turn newlines into spaces.
NL2SP=$lt_lt_NL2SP

# convert \$build file names to \$host format.
to_host_file_cmd=$lt_cv_to_host_file_cmd

# convert \$build files to toolchain format.
to_tool_file_cmd=$lt_cv_to_tool_file_cmd

# An object symbol dumper.
OBJDUMP=$lt_OBJDUMP

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method = "file_magic".
file_magic_cmd=$lt_file_magic_cmd

# How to find potential files when deplibs_check_method = "file_magic".
file_magic_glob=$lt_file_magic_glob

# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
want_nocaseglob=$lt_want_nocaseglob

# DLL creation program.
DLLTOOL=$lt_DLLTOOL

# Command to associate shared and link libraries.
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd

# The archiver.
AR=$lt_AR

# Flags to create an archive.
AR_FLAGS=$lt_AR_FLAGS

# How to feed a file listing to the archiver.
archiver_list_spec=$lt_archiver_list_spec

# A symbol stripping program.
STRIP=$lt_STRIP

# Commands used to install an old-style archive.
RANLIB=$lt_RANLIB
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Whether to use a lock for old archive extraction.
lock_old_archive_extraction=$lock_old_archive_extraction

# A C compiler.
LTCC=$lt_CC

# LTCC compiler flags.
LTCFLAGS=$lt_CFLAGS

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration.
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair.
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# Transform the output of nm in a C name address pair when lib prefix is needed.
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix

# Specify filename containing input files for \$NM.
nm_file_list_spec=$lt_nm_file_list_spec

# The root where to search for dependent libraries,and in which our libraries should be installed.
lt_sysroot=$lt_sysroot

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# Used to examine libraries when file_magic_cmd begins with "file".
MAGIC_CMD=$MAGIC_CMD

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Manifest tool.
MANIFEST_TOOL=$lt_MANIFEST_TOOL

# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
DSYMUTIL=$lt_DSYMUTIL

# Tool to change global to local symbols on Mac OS X.
NMEDIT=$lt_NMEDIT

# Tool to manipulate fat objects and archives on Mac OS X.
LIPO=$lt_LIPO

# ldd/readelf like tool for Mach-O binaries on Mac OS X.
OTOOL=$lt_OTOOL

# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
OTOOL64=$lt_OTOOL64

# Old archive suffix (normally "a").
libext=$libext

# Shared library suffix (normally ".so").
shrext_cmds=$lt_shrext_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Variables whose values should be saved in libtool wrapper scripts and
# restored at link time.
variables_saved_for_relink=$lt_variables_saved_for_relink

# Do we need the "lib" prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Library versioning type.
version_type=$version_type

# Shared library runtime path variable.
runpath_var=$runpath_var

# Shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Permission mode override for installation of shared libraries.
install_override_mode=$lt_install_override_mode

# Command to use after installation of a shared archive.
postinstall_cmds=$lt_postinstall_cmds

# Command to use after uninstallation of a shared archive.
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# As "finish_cmds", except a single script fragment to be evaled but
# not shown.
finish_eval=$lt_finish_eval

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Compile-time system search path for libraries.
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib


# The linker used to build libraries.
LD=$lt_LD

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds

# A language specific compiler.
CC=$lt_compiler

# Is the compiler the GNU compiler?
with_gcc=$GCC

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds

# Commands necessary for finishing linking programs.
postlink_cmds=$lt_postlink_cmds

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects
postdep_objects=$lt_postdep_objects
predeps=$lt_predeps
postdeps=$lt_postdeps

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path

# ### END LIBTOOL CONFIG

_LT_EOF

  case $host_os in
  aix3*)
    cat <<\_LT_EOF >> "$cfgfile"
# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
_LT_EOF
    ;;
  esac


ltmain="$ac_aux_dir/ltmain.sh"


  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '$q' "$ltmain" >> "$cfgfile" \
     || (rm -f "$cfgfile"; exit 1)

  if test x"$xsi_shell" = xyes; then
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
func_dirname ()\
{\
\    case ${1} in\
\      */*) func_dirname_result="${1%/*}${2}" ;;\
\      *  ) func_dirname_result="${3}" ;;\
\    esac\
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_basename ()$/,/^} # func_basename /c\
func_basename ()\
{\
\    func_basename_result="${1##*/}"\
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
func_dirname_and_basename ()\
{\
\    case ${1} in\
\      */*) func_dirname_result="${1%/*}${2}" ;;\
\      *  ) func_dirname_result="${3}" ;;\
\    esac\
\    func_basename_result="${1##*/}"\
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
func_stripname ()\
{\
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
\    # positional parameters, so assign one to ordinary parameter first.\
\    func_stripname_result=${3}\
\    func_stripname_result=${func_stripname_result#"${1}"}\
\    func_stripname_result=${func_stripname_result%"${2}"}\
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
func_split_long_opt ()\
{\
\    func_split_long_opt_name=${1%%=*}\
\    func_split_long_opt_arg=${1#*=}\
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
func_split_short_opt ()\
{\
\    func_split_short_opt_arg=${1#??}\
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
func_lo2o ()\
{\
\    case ${1} in\
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
\      *)    func_lo2o_result=${1} ;;\
\    esac\
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_xform ()$/,/^} # func_xform /c\
func_xform ()\
{\
    func_xform_result=${1%.*}.lo\
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_arith ()$/,/^} # func_arith /c\
func_arith ()\
{\
    func_arith_result=$(( $* ))\
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_len ()$/,/^} # func_len /c\
func_len ()\
{\
    func_len_result=${#1}\
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:

fi

if test x"$lt_shell_append" = xyes; then
  sed -e '/^func_append ()$/,/^} # func_append /c\
func_append ()\
{\
    eval "${1}+=\\${2}"\
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
func_append_quoted ()\
{\
\    func_quote_for_eval "${2}"\
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  # Save a `func_append' function call where possible by direct use of '+='
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
    && mv -f "$cfgfile.tmp" "$cfgfile" \
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  test 0 -eq $? || _lt_function_replace_fail=:
else
  # Save a `func_append' function call even when '+=' is not available
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
    && mv -f "$cfgfile.tmp" "$cfgfile" \
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  test 0 -eq $? || _lt_function_replace_fail=:
fi

if test x"$_lt_function_replace_fail" = x":"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
fi


   mv -f "$cfgfile" "$ofile" ||
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"


    cat <<_LT_EOF >> "$ofile"

# ### BEGIN LIBTOOL TAG CONFIG: CXX

# The linker used to build libraries.
LD=$lt_LD_CXX

# How to create reloadable object files.
reload_flag=$lt_reload_flag_CXX
reload_cmds=$lt_reload_cmds_CXX

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds_CXX

# A language specific compiler.
CC=$lt_compiler_CXX

# Is the compiler the GNU compiler?
with_gcc=$GCC_CXX

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object_CXX

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld_CXX

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute_CXX

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic_CXX

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath_CXX

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds_CXX

# Commands necessary for finishing linking programs.
postlink_cmds=$lt_postlink_cmds_CXX

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec_CXX

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects_CXX
postdep_objects=$lt_postdep_objects_CXX
predeps=$lt_predeps_CXX
postdeps=$lt_postdeps_CXX

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX

# ### END LIBTOOL TAG CONFIG: CXX
_LT_EOF

 ;;
    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
    "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
    "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
    "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
    "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
    "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
    "scripts/ntpver":F) chmod +x scripts/ntpver ;;
    "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
    "scripts/summary":F) chmod +x scripts/summary ;;

  esac
done # for ac_tag


as_fn_exit 0
_ACEOF
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || as_fn_exit 1
fi

#
# CONFIG_SUBDIRS section.
#
if test "$no_recursion" != yes; then

  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  # so they do not pile up.
  ac_sub_configure_args=
  ac_prev=
  eval "set x $ac_configure_args"
  shift
  for ac_arg
  do
    if test -n "$ac_prev"; then
      ac_prev=
      continue
    fi
    case $ac_arg in
    -cache-file | --cache-file | --cache-fil | --cache-fi \
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
      ac_prev=cache_file ;;
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
    | --c=*)
      ;;
    --config-cache | -C)
      ;;
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
      ac_prev=srcdir ;;
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
      ;;
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
      ac_prev=prefix ;;
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
      ;;
    --disable-option-checking)
      ;;
    *)
      case $ac_arg in
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
      esac
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
    esac
  done

  # Always prepend --prefix to ensure using the same prefix
  # in subdir configurations.
  ac_arg="--prefix=$prefix"
  case $ac_arg in
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  esac
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"

  # Pass --silent
  if test "$silent" = yes; then
    ac_sub_configure_args="--silent $ac_sub_configure_args"
  fi

  # Always prepend --disable-option-checking to silence warnings, since
  # different subdirs can have different --enable and --with options.
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"

  ac_popdir=`pwd`
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue

    # Do not complain, so a configure script can configure whichever
    # parts of a large source tree are present.
    test -d "$srcdir/$ac_dir" || continue

    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
    $as_echo "$ac_msg" >&6
    as_dir="$ac_dir"; as_fn_mkdir_p
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


    cd "$ac_dir"

    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      ac_sub_configure=$ac_srcdir/configure.gnu
    elif test -f "$ac_srcdir/configure"; then
      ac_sub_configure=$ac_srcdir/configure
    elif test -f "$ac_srcdir/configure.in"; then
      # This should be Cygnus configure.
      ac_sub_configure=$ac_aux_dir/configure
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
      ac_sub_configure=
    fi

    # The recursion is here.
    if test -n "$ac_sub_configure"; then
      # Make the cache file name correct relative to the subdirectory.
      case $cache_file in
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
      *) # Relative name.
	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
      esac

      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
      # The eval makes quoting arguments work.
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
    fi

    cd "$ac_popdir"
  done
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi

@


1.1.1.4.2.1
log
@file configure was added on branch netbsd-5 on 2015-01-07 04:45:21 +0000
@
text
@d1 39094
@


1.1.1.4.2.2
log
@Pullup the following revision (requested by he in ticket #1938):

distrib/sets/lists/man/mi					patch
distrib/sets/lists/misc/mi					patch
external/bsd/Makefile						patch
external/bsd/ntp/Makefile					new
external/bsd/ntp/Makefile.inc					new
external/bsd/ntp/importdate					new
external/bsd/ntp/ntp2netbsd					new
external/bsd/ntp/bin/Makefile					new
external/bsd/ntp/bin/Makefile.inc				new
external/bsd/ntp/bin/ntp-keygen/Makefile			new
external/bsd/ntp/bin/ntp-keygen/ntp-keygen.8			new
external/bsd/ntp/bin/ntpd/Makefile				new
external/bsd/ntp/bin/ntpd/ntp.conf.5				new
external/bsd/ntp/bin/ntpd/ntp.keys.5				new
external/bsd/ntp/bin/ntpd/ntpd.8				new
external/bsd/ntp/bin/ntpdate/Makefile				new
external/bsd/ntp/bin/ntpdate/ntpdate.8				new
external/bsd/ntp/bin/ntpdc/Makefile				new
external/bsd/ntp/bin/ntpdc/ntpdc.8				new
external/bsd/ntp/bin/ntpq/Makefile				new
external/bsd/ntp/bin/ntpq/ntpq.8				new
external/bsd/ntp/bin/ntptime/Makefile				new
external/bsd/ntp/bin/ntptime/ntptime.8				new
external/bsd/ntp/bin/ntptrace/Makefile				new
external/bsd/ntp/bin/ntptrace/ntptrace.8			new
external/bsd/ntp/bin/ntptrace/ntptrace.awk			new
external/bsd/ntp/bin/sntp/Makefile				new
external/bsd/ntp/bin/sntp/sntp.1				new
external/bsd/ntp/dist/COPYRIGHT					new
external/bsd/ntp/dist/ChangeLog					new
external/bsd/ntp/dist/CommitLog					new
external/bsd/ntp/dist/CommitLog-4.1.0				new
external/bsd/ntp/dist/INSTALL					new
external/bsd/ntp/dist/Makefile.am				new
external/bsd/ntp/dist/Makefile.in				new
external/bsd/ntp/dist/NEWS					new
external/bsd/ntp/dist/NOTES.y2kfixes				new
external/bsd/ntp/dist/README					new
external/bsd/ntp/dist/README.bk					new
external/bsd/ntp/dist/README.hackers				new
external/bsd/ntp/dist/README.patches				new
external/bsd/ntp/dist/README.refclocks				new
external/bsd/ntp/dist/README.versions				new
external/bsd/ntp/dist/TODO					new
external/bsd/ntp/dist/WHERE-TO-START				new
external/bsd/ntp/dist/aclocal.m4				new
external/bsd/ntp/dist/bincheck.mf				new
external/bsd/ntp/dist/bootstrap					new
external/bsd/ntp/dist/build					new
external/bsd/ntp/dist/check-libopts.mf				new
external/bsd/ntp/dist/config.h.in				new
external/bsd/ntp/dist/configure					new
external/bsd/ntp/dist/configure.ac				new
external/bsd/ntp/dist/deps-ver					new
external/bsd/ntp/dist/depsver.mf				new
external/bsd/ntp/dist/dot.emacs					new
external/bsd/ntp/dist/flock-build				new
external/bsd/ntp/dist/includes.mf				new
external/bsd/ntp/dist/install-sh				new
external/bsd/ntp/dist/packageinfo.sh				new
external/bsd/ntp/dist/readme.y2kfixes				new
external/bsd/ntp/dist/results.y2kfixes				new
external/bsd/ntp/dist/adjtimed/Makefile.am			new
external/bsd/ntp/dist/adjtimed/Makefile.in			new
external/bsd/ntp/dist/adjtimed/README				new
external/bsd/ntp/dist/adjtimed/adjtimed.c			new
external/bsd/ntp/dist/clockstuff/Makefile.am			new
external/bsd/ntp/dist/clockstuff/Makefile.in			new
external/bsd/ntp/dist/clockstuff/README				new
external/bsd/ntp/dist/clockstuff/chutest.c			new
external/bsd/ntp/dist/clockstuff/propdelay.c			new
external/bsd/ntp/dist/conf/README				new
external/bsd/ntp/dist/conf/baldwin.conf				new
external/bsd/ntp/dist/conf/beauregard.conf			new
external/bsd/ntp/dist/conf/grundoon.conf			new
external/bsd/ntp/dist/conf/malarky.conf				new
external/bsd/ntp/dist/conf/pogo.conf				new
external/bsd/ntp/dist/conf/rackety.conf				new
external/bsd/ntp/dist/html/access.html				new
external/bsd/ntp/dist/html/accopt.html				new
external/bsd/ntp/dist/html/assoc.html				new
external/bsd/ntp/dist/html/audio.html				new
external/bsd/ntp/dist/html/authentic.html			new
external/bsd/ntp/dist/html/authopt.html				new
external/bsd/ntp/dist/html/autokey.html				new
external/bsd/ntp/dist/html/bugs.html				new
external/bsd/ntp/dist/html/build.html				new
external/bsd/ntp/dist/html/clock.html				new
external/bsd/ntp/dist/html/clockopt.html			new
external/bsd/ntp/dist/html/cluster.html				new
external/bsd/ntp/dist/html/comdex.html				new
external/bsd/ntp/dist/html/config.html				new
external/bsd/ntp/dist/html/confopt.html				new
external/bsd/ntp/dist/html/copyright.html			new
external/bsd/ntp/dist/html/debug.html				new
external/bsd/ntp/dist/html/decode.html				new
external/bsd/ntp/dist/html/discipline.html			new
external/bsd/ntp/dist/html/discover.html			new
external/bsd/ntp/dist/html/extern.html				new
external/bsd/ntp/dist/html/filter.html				new
external/bsd/ntp/dist/html/hints.html				new
external/bsd/ntp/dist/html/history.html				new
external/bsd/ntp/dist/html/howto.html				new
external/bsd/ntp/dist/html/huffpuff.html			new
external/bsd/ntp/dist/html/index.html				new
external/bsd/ntp/dist/html/kern.html				new
external/bsd/ntp/dist/html/kernpps.html				new
external/bsd/ntp/dist/html/keygen.html				new
external/bsd/ntp/dist/html/leap.html				new
external/bsd/ntp/dist/html/miscopt.html				new
external/bsd/ntp/dist/html/monopt.html				new
external/bsd/ntp/dist/html/msyslog.html				new
external/bsd/ntp/dist/html/ntp-wait.html			new
external/bsd/ntp/dist/html/ntp_conf.html			new
external/bsd/ntp/dist/html/ntpd.html				new
external/bsd/ntp/dist/html/ntpdate.html				new
external/bsd/ntp/dist/html/ntpdc.html				new
external/bsd/ntp/dist/html/ntpdsim.html				new
external/bsd/ntp/dist/html/ntpdsim_new.html			new
external/bsd/ntp/dist/html/ntpq.html				new
external/bsd/ntp/dist/html/ntptime.html				new
external/bsd/ntp/dist/html/ntptrace.html			new
external/bsd/ntp/dist/html/orphan.html				new
external/bsd/ntp/dist/html/parsedata.html			new
external/bsd/ntp/dist/html/parsenew.html			new
external/bsd/ntp/dist/html/poll.html				new
external/bsd/ntp/dist/html/pps.html				new
external/bsd/ntp/dist/html/prefer.html				new
external/bsd/ntp/dist/html/quick.html				new
external/bsd/ntp/dist/html/rate.html				new
external/bsd/ntp/dist/html/rdebug.html				new
external/bsd/ntp/dist/html/refclock.html			new
external/bsd/ntp/dist/html/release.html				new
external/bsd/ntp/dist/html/select.html				new
external/bsd/ntp/dist/html/sitemap.html				new
external/bsd/ntp/dist/html/sntp.html				new
external/bsd/ntp/dist/html/stats.html				new
external/bsd/ntp/dist/html/tickadj.html				new
external/bsd/ntp/dist/html/warp.html				new
external/bsd/ntp/dist/html/xleave.html				new
external/bsd/ntp/dist/html/drivers/driver1.html			new
external/bsd/ntp/dist/html/drivers/driver10.html		new
external/bsd/ntp/dist/html/drivers/driver11.html		new
external/bsd/ntp/dist/html/drivers/driver12.html		new
external/bsd/ntp/dist/html/drivers/driver16.html		new
external/bsd/ntp/dist/html/drivers/driver18.html		new
external/bsd/ntp/dist/html/drivers/driver19.html		new
external/bsd/ntp/dist/html/drivers/driver20.html		new
external/bsd/ntp/dist/html/drivers/driver22.html		new
external/bsd/ntp/dist/html/drivers/driver26.html		new
external/bsd/ntp/dist/html/drivers/driver27.html		new
external/bsd/ntp/dist/html/drivers/driver28.html		new
external/bsd/ntp/dist/html/drivers/driver29.html		new
external/bsd/ntp/dist/html/drivers/driver3.html			new
external/bsd/ntp/dist/html/drivers/driver30.html		new
external/bsd/ntp/dist/html/drivers/driver31.html		new
external/bsd/ntp/dist/html/drivers/driver32.html		new
external/bsd/ntp/dist/html/drivers/driver33.html		new
external/bsd/ntp/dist/html/drivers/driver34.html		new
external/bsd/ntp/dist/html/drivers/driver35.html		new
external/bsd/ntp/dist/html/drivers/driver36.html		new
external/bsd/ntp/dist/html/drivers/driver37.html		new
external/bsd/ntp/dist/html/drivers/driver38.html		new
external/bsd/ntp/dist/html/drivers/driver39.html		new
external/bsd/ntp/dist/html/drivers/driver4.html			new
external/bsd/ntp/dist/html/drivers/driver40.html		new
external/bsd/ntp/dist/html/drivers/driver42.html		new
external/bsd/ntp/dist/html/drivers/driver43.html		new
external/bsd/ntp/dist/html/drivers/driver44.html		new
external/bsd/ntp/dist/html/drivers/driver45.html		new
external/bsd/ntp/dist/html/drivers/driver46.html		new
external/bsd/ntp/dist/html/drivers/driver5.html			new
external/bsd/ntp/dist/html/drivers/driver6.html			new
external/bsd/ntp/dist/html/drivers/driver7.html			new
external/bsd/ntp/dist/html/drivers/driver8.html			new
external/bsd/ntp/dist/html/drivers/driver9.html			new
external/bsd/ntp/dist/html/drivers/mx4200data.html		new
external/bsd/ntp/dist/html/drivers/oncore-shmem.html		new
external/bsd/ntp/dist/html/drivers/tf582_4.html			new
external/bsd/ntp/dist/html/drivers/icons/home.gif		new
external/bsd/ntp/dist/html/drivers/icons/mail2.gif		new
external/bsd/ntp/dist/html/drivers/scripts/footer.txt		new
external/bsd/ntp/dist/html/drivers/scripts/style.css		new
external/bsd/ntp/dist/html/hints/a-ux				new
external/bsd/ntp/dist/html/hints/aix				new
external/bsd/ntp/dist/html/hints/bsdi				new
external/bsd/ntp/dist/html/hints/changes			new
external/bsd/ntp/dist/html/hints/decosf1			new
external/bsd/ntp/dist/html/hints/decosf2			new
external/bsd/ntp/dist/html/hints/freebsd			new
external/bsd/ntp/dist/html/hints/hpux				new
external/bsd/ntp/dist/html/hints/linux				new
external/bsd/ntp/dist/html/hints/mpeix				new
external/bsd/ntp/dist/html/hints/notes-xntp-v3			new
external/bsd/ntp/dist/html/hints/parse				new
external/bsd/ntp/dist/html/hints/refclocks			new
external/bsd/ntp/dist/html/hints/rs6000				new
external/bsd/ntp/dist/html/hints/sco.html			new
external/bsd/ntp/dist/html/hints/sgi				new
external/bsd/ntp/dist/html/hints/solaris-dosynctodr.html	new
external/bsd/ntp/dist/html/hints/solaris.html			new
external/bsd/ntp/dist/html/hints/solaris.xtra.4023118		new
external/bsd/ntp/dist/html/hints/solaris.xtra.4095849		new
external/bsd/ntp/dist/html/hints/solaris.xtra.S99ntpd		new
external/bsd/ntp/dist/html/hints/solaris.xtra.patchfreq		new
external/bsd/ntp/dist/html/hints/sun4				new
external/bsd/ntp/dist/html/hints/svr4-dell			new
external/bsd/ntp/dist/html/hints/svr4_package			new
external/bsd/ntp/dist/html/hints/todo				new
external/bsd/ntp/dist/html/hints/vxworks.html			new
external/bsd/ntp/dist/html/hints/winnt.html			new
external/bsd/ntp/dist/html/icons/home.gif			new
external/bsd/ntp/dist/html/icons/mail2.gif			new
external/bsd/ntp/dist/html/icons/sitemap.png			new
external/bsd/ntp/dist/html/scripts/accopt.txt			new
external/bsd/ntp/dist/html/scripts/audio.txt			new
external/bsd/ntp/dist/html/scripts/authopt.txt			new
external/bsd/ntp/dist/html/scripts/clockopt.txt			new
external/bsd/ntp/dist/html/scripts/command.txt			new
external/bsd/ntp/dist/html/scripts/config.txt			new
external/bsd/ntp/dist/html/scripts/confopt.txt			new
external/bsd/ntp/dist/html/scripts/external.txt			new
external/bsd/ntp/dist/html/scripts/footer.txt			new
external/bsd/ntp/dist/html/scripts/hand.txt			new
external/bsd/ntp/dist/html/scripts/install.txt			new
external/bsd/ntp/dist/html/scripts/manual.txt			new
external/bsd/ntp/dist/html/scripts/misc.txt			new
external/bsd/ntp/dist/html/scripts/miscopt.txt			new
external/bsd/ntp/dist/html/scripts/monopt.txt			new
external/bsd/ntp/dist/html/scripts/refclock.txt			new
external/bsd/ntp/dist/html/scripts/special.txt			new
external/bsd/ntp/dist/html/scripts/style.css			new
external/bsd/ntp/dist/include/Makefile.am			new
external/bsd/ntp/dist/include/Makefile.in			new
external/bsd/ntp/dist/include/README				new
external/bsd/ntp/dist/include/adjtime.h				new
external/bsd/ntp/dist/include/ascii.h				new
external/bsd/ntp/dist/include/audio.h				new
external/bsd/ntp/dist/include/binio.h				new
external/bsd/ntp/dist/include/declcond.h			new
external/bsd/ntp/dist/include/gps.h				new
external/bsd/ntp/dist/include/hopf6039.h			new
external/bsd/ntp/dist/include/icom.h				new
external/bsd/ntp/dist/include/ieee754io.h			new
external/bsd/ntp/dist/include/intreswork.h			new
external/bsd/ntp/dist/include/iosignal.h			new
external/bsd/ntp/dist/include/l_stdlib.h			new
external/bsd/ntp/dist/include/lib_strbuf.h			new
external/bsd/ntp/dist/include/libntp.h				new
external/bsd/ntp/dist/include/mbg_gps166.h			new
external/bsd/ntp/dist/include/mx4200.h				new
external/bsd/ntp/dist/include/ntif.h				new
external/bsd/ntp/dist/include/ntp.h				new
external/bsd/ntp/dist/include/ntp_assert.h			new
external/bsd/ntp/dist/include/ntp_calendar.h			new
external/bsd/ntp/dist/include/ntp_cmdargs.h			new
external/bsd/ntp/dist/include/ntp_config.h			new
external/bsd/ntp/dist/include/ntp_control.h			new
external/bsd/ntp/dist/include/ntp_crypto.h			new
external/bsd/ntp/dist/include/ntp_datum.h			new
external/bsd/ntp/dist/include/ntp_debug.h			new
external/bsd/ntp/dist/include/ntp_filegen.h			new
external/bsd/ntp/dist/include/ntp_fp.h				new
external/bsd/ntp/dist/include/ntp_if.h				new
external/bsd/ntp/dist/include/ntp_intres.h			new
external/bsd/ntp/dist/include/ntp_io.h				new
external/bsd/ntp/dist/include/ntp_libopts.h			new
external/bsd/ntp/dist/include/ntp_lineedit.h			new
external/bsd/ntp/dist/include/ntp_lists.h			new
external/bsd/ntp/dist/include/ntp_machine.h			new
external/bsd/ntp/dist/include/ntp_malloc.h			new
external/bsd/ntp/dist/include/ntp_md5.h				new
external/bsd/ntp/dist/include/ntp_net.h				new
external/bsd/ntp/dist/include/ntp_prio_q.h			new
external/bsd/ntp/dist/include/ntp_proto.h			new
external/bsd/ntp/dist/include/ntp_random.h			new
external/bsd/ntp/dist/include/ntp_refclock.h			new
external/bsd/ntp/dist/include/ntp_request.h			new
external/bsd/ntp/dist/include/ntp_rfc2553.h			new
external/bsd/ntp/dist/include/ntp_select.h			new
external/bsd/ntp/dist/include/ntp_stdlib.h			new
external/bsd/ntp/dist/include/ntp_string.h			new
external/bsd/ntp/dist/include/ntp_syscall.h			new
external/bsd/ntp/dist/include/ntp_syslog.h			new
external/bsd/ntp/dist/include/ntp_tty.h				new
external/bsd/ntp/dist/include/ntp_types.h			new
external/bsd/ntp/dist/include/ntp_unixtime.h			new
external/bsd/ntp/dist/include/ntp_worker.h			new
external/bsd/ntp/dist/include/ntp_workimpl.h			new
external/bsd/ntp/dist/include/ntpd.h				new
external/bsd/ntp/dist/include/ntpsim.h				new
external/bsd/ntp/dist/include/parse.h				new
external/bsd/ntp/dist/include/parse_conf.h			new
external/bsd/ntp/dist/include/recvbuff.h			new
external/bsd/ntp/dist/include/refclock_atom.h			new
external/bsd/ntp/dist/include/ssl_applink.c			new
external/bsd/ntp/dist/include/timepps-SCO.h			new
external/bsd/ntp/dist/include/timepps-Solaris.h			new
external/bsd/ntp/dist/include/timepps-SunOS.h			new
external/bsd/ntp/dist/include/timespecops.h			new
external/bsd/ntp/dist/include/timetoa.h				new
external/bsd/ntp/dist/include/timevalops.h			new
external/bsd/ntp/dist/include/trimble.h				new
external/bsd/ntp/dist/include/vint64ops.h			new
external/bsd/ntp/dist/include/isc/Makefile.am			new
external/bsd/ntp/dist/include/isc/Makefile.in			new
external/bsd/ntp/dist/include/isc/mem.h				new
external/bsd/ntp/dist/kernel/Makefile.am			new
external/bsd/ntp/dist/kernel/Makefile.in			new
external/bsd/ntp/dist/kernel/sys/Makefile.am			new
external/bsd/ntp/dist/kernel/sys/Makefile.in			new
external/bsd/ntp/dist/kernel/sys/README				new
external/bsd/ntp/dist/kernel/sys/bsd_audioirig.h		new
external/bsd/ntp/dist/kernel/sys/i8253.h			new
external/bsd/ntp/dist/kernel/sys/parsestreams.h			new
external/bsd/ntp/dist/kernel/sys/pcl720.h			new
external/bsd/ntp/dist/kernel/sys/ppsclock.h			new
external/bsd/ntp/dist/kernel/sys/timex.h			new
external/bsd/ntp/dist/kernel/sys/tpro.h				new
external/bsd/ntp/dist/kernel/sys/tt560_api.h			new
external/bsd/ntp/dist/lib/isc/Atffile				new
external/bsd/ntp/dist/lib/isc/api				new
external/bsd/ntp/dist/lib/isc/app_api.c				new
external/bsd/ntp/dist/lib/isc/assertions.c			new
external/bsd/ntp/dist/lib/isc/backtrace-emptytbl.c		new
external/bsd/ntp/dist/lib/isc/backtrace.c			new
external/bsd/ntp/dist/lib/isc/base32.c				new
external/bsd/ntp/dist/lib/isc/base64.c				new
external/bsd/ntp/dist/lib/isc/bitstring.c			new
external/bsd/ntp/dist/lib/isc/buffer.c				new
external/bsd/ntp/dist/lib/isc/bufferlist.c			new
external/bsd/ntp/dist/lib/isc/commandline.c			new
external/bsd/ntp/dist/lib/isc/entropy.c				new
external/bsd/ntp/dist/lib/isc/error.c				new
external/bsd/ntp/dist/lib/isc/event.c				new
external/bsd/ntp/dist/lib/isc/fsaccess.c			new
external/bsd/ntp/dist/lib/isc/hash.c				new
external/bsd/ntp/dist/lib/isc/heap.c				new
external/bsd/ntp/dist/lib/isc/hex.c				new
external/bsd/ntp/dist/lib/isc/hmacmd5.c				new
external/bsd/ntp/dist/lib/isc/hmacsha.c				new
external/bsd/ntp/dist/lib/isc/httpd.c				new
external/bsd/ntp/dist/lib/isc/inet_aton.c			new
external/bsd/ntp/dist/lib/isc/inet_ntop.c			new
external/bsd/ntp/dist/lib/isc/inet_pton.c			new
external/bsd/ntp/dist/lib/isc/iterated_hash.c			new
external/bsd/ntp/dist/lib/isc/lex.c				new
external/bsd/ntp/dist/lib/isc/lfsr.c				new
external/bsd/ntp/dist/lib/isc/lib.c				new
external/bsd/ntp/dist/lib/isc/log.c				new
external/bsd/ntp/dist/lib/isc/md5.c				new
external/bsd/ntp/dist/lib/isc/mem.c				new
external/bsd/ntp/dist/lib/isc/mem_api.c				new
external/bsd/ntp/dist/lib/isc/mutexblock.c			new
external/bsd/ntp/dist/lib/isc/netaddr.c				new
external/bsd/ntp/dist/lib/isc/netscope.c			new
external/bsd/ntp/dist/lib/isc/ondestroy.c			new
external/bsd/ntp/dist/lib/isc/parseint.c			new
external/bsd/ntp/dist/lib/isc/portset.c				new
external/bsd/ntp/dist/lib/isc/print.c				new
external/bsd/ntp/dist/lib/isc/quota.c				new
external/bsd/ntp/dist/lib/isc/radix.c				new
external/bsd/ntp/dist/lib/isc/random.c				new
external/bsd/ntp/dist/lib/isc/ratelimiter.c			new
external/bsd/ntp/dist/lib/isc/refcount.c			new
external/bsd/ntp/dist/lib/isc/region.c				new
external/bsd/ntp/dist/lib/isc/result.c				new
external/bsd/ntp/dist/lib/isc/rwlock.c				new
external/bsd/ntp/dist/lib/isc/serial.c				new
external/bsd/ntp/dist/lib/isc/sha1.c				new
external/bsd/ntp/dist/lib/isc/sha2.c				new
external/bsd/ntp/dist/lib/isc/sockaddr.c			new
external/bsd/ntp/dist/lib/isc/socket_api.c			new
external/bsd/ntp/dist/lib/isc/stats.c				new
external/bsd/ntp/dist/lib/isc/string.c				new
external/bsd/ntp/dist/lib/isc/strtoul.c				new
external/bsd/ntp/dist/lib/isc/symtab.c				new
external/bsd/ntp/dist/lib/isc/task.c				new
external/bsd/ntp/dist/lib/isc/task_api.c			new
external/bsd/ntp/dist/lib/isc/task_p.h				new
external/bsd/ntp/dist/lib/isc/taskpool.c			new
external/bsd/ntp/dist/lib/isc/timer.c				new
external/bsd/ntp/dist/lib/isc/timer_api.c			new
external/bsd/ntp/dist/lib/isc/timer_p.h				new
external/bsd/ntp/dist/lib/isc/version.c				new
external/bsd/ntp/dist/lib/isc/alpha/include/isc/atomic.h	new
external/bsd/ntp/dist/lib/isc/ia64/include/isc/atomic.h		new
external/bsd/ntp/dist/lib/isc/include/isc/app.h			new
external/bsd/ntp/dist/lib/isc/include/isc/assertions.h		new
external/bsd/ntp/dist/lib/isc/include/isc/backtrace.h		new
external/bsd/ntp/dist/lib/isc/include/isc/base32.h		new
external/bsd/ntp/dist/lib/isc/include/isc/base64.h		new
external/bsd/ntp/dist/lib/isc/include/isc/bind9.h		new
external/bsd/ntp/dist/lib/isc/include/isc/bitstring.h		new
external/bsd/ntp/dist/lib/isc/include/isc/boolean.h		new
external/bsd/ntp/dist/lib/isc/include/isc/buffer.h		new
external/bsd/ntp/dist/lib/isc/include/isc/bufferlist.h		new
external/bsd/ntp/dist/lib/isc/include/isc/commandline.h		new
external/bsd/ntp/dist/lib/isc/include/isc/entropy.h		new
external/bsd/ntp/dist/lib/isc/include/isc/error.h		new
external/bsd/ntp/dist/lib/isc/include/isc/event.h		new
external/bsd/ntp/dist/lib/isc/include/isc/eventclass.h		new
external/bsd/ntp/dist/lib/isc/include/isc/file.h		new
external/bsd/ntp/dist/lib/isc/include/isc/formatcheck.h		new
external/bsd/ntp/dist/lib/isc/include/isc/fsaccess.h		new
external/bsd/ntp/dist/lib/isc/include/isc/hash.h		new
external/bsd/ntp/dist/lib/isc/include/isc/heap.h		new
external/bsd/ntp/dist/lib/isc/include/isc/hex.h			new
external/bsd/ntp/dist/lib/isc/include/isc/hmacmd5.h		new
external/bsd/ntp/dist/lib/isc/include/isc/hmacsha.h		new
external/bsd/ntp/dist/lib/isc/include/isc/httpd.h		new
external/bsd/ntp/dist/lib/isc/include/isc/interfaceiter.h	new
external/bsd/ntp/dist/lib/isc/include/isc/ipv6.h		new
external/bsd/ntp/dist/lib/isc/include/isc/iterated_hash.h	new
external/bsd/ntp/dist/lib/isc/include/isc/lang.h		new
external/bsd/ntp/dist/lib/isc/include/isc/lex.h			new
external/bsd/ntp/dist/lib/isc/include/isc/lfsr.h		new
external/bsd/ntp/dist/lib/isc/include/isc/lib.h			new
external/bsd/ntp/dist/lib/isc/include/isc/list.h		new
external/bsd/ntp/dist/lib/isc/include/isc/log.h			new
external/bsd/ntp/dist/lib/isc/include/isc/magic.h		new
external/bsd/ntp/dist/lib/isc/include/isc/md5.h			new
external/bsd/ntp/dist/lib/isc/include/isc/mem.h			new
external/bsd/ntp/dist/lib/isc/include/isc/msgcat.h		new
external/bsd/ntp/dist/lib/isc/include/isc/msgs.h		new
external/bsd/ntp/dist/lib/isc/include/isc/mutexblock.h		new
external/bsd/ntp/dist/lib/isc/include/isc/namespace.h		new
external/bsd/ntp/dist/lib/isc/include/isc/netaddr.h		new
external/bsd/ntp/dist/lib/isc/include/isc/netscope.h		new
external/bsd/ntp/dist/lib/isc/include/isc/ondestroy.h		new
external/bsd/ntp/dist/lib/isc/include/isc/os.h			new
external/bsd/ntp/dist/lib/isc/include/isc/parseint.h		new
external/bsd/ntp/dist/lib/isc/include/isc/platform.h		new
external/bsd/ntp/dist/lib/isc/include/isc/platform.h.in		new
external/bsd/ntp/dist/lib/isc/include/isc/portset.h		new
external/bsd/ntp/dist/lib/isc/include/isc/print.h		new
external/bsd/ntp/dist/lib/isc/include/isc/queue.h		new
external/bsd/ntp/dist/lib/isc/include/isc/quota.h		new
external/bsd/ntp/dist/lib/isc/include/isc/radix.h		new
external/bsd/ntp/dist/lib/isc/include/isc/random.h		new
external/bsd/ntp/dist/lib/isc/include/isc/ratelimiter.h		new
external/bsd/ntp/dist/lib/isc/include/isc/refcount.h		new
external/bsd/ntp/dist/lib/isc/include/isc/region.h		new
external/bsd/ntp/dist/lib/isc/include/isc/resource.h		new
external/bsd/ntp/dist/lib/isc/include/isc/result.h		new
external/bsd/ntp/dist/lib/isc/include/isc/resultclass.h		new
external/bsd/ntp/dist/lib/isc/include/isc/rwlock.h		new
external/bsd/ntp/dist/lib/isc/include/isc/serial.h		new
external/bsd/ntp/dist/lib/isc/include/isc/sha1.h		new
external/bsd/ntp/dist/lib/isc/include/isc/sha2.h		new
external/bsd/ntp/dist/lib/isc/include/isc/sockaddr.h		new
external/bsd/ntp/dist/lib/isc/include/isc/socket.h		new
external/bsd/ntp/dist/lib/isc/include/isc/stats.h		new
external/bsd/ntp/dist/lib/isc/include/isc/stdio.h		new
external/bsd/ntp/dist/lib/isc/include/isc/stdlib.h		new
external/bsd/ntp/dist/lib/isc/include/isc/string.h		new
external/bsd/ntp/dist/lib/isc/include/isc/symtab.h		new
external/bsd/ntp/dist/lib/isc/include/isc/task.h		new
external/bsd/ntp/dist/lib/isc/include/isc/taskpool.h		new
external/bsd/ntp/dist/lib/isc/include/isc/timer.h		new
external/bsd/ntp/dist/lib/isc/include/isc/types.h		new
external/bsd/ntp/dist/lib/isc/include/isc/util.h		new
external/bsd/ntp/dist/lib/isc/include/isc/version.h		new
external/bsd/ntp/dist/lib/isc/include/isc/xml.h			new
external/bsd/ntp/dist/lib/isc/mips/include/isc/atomic.h		new
external/bsd/ntp/dist/lib/isc/nls/msgcat.c			new
external/bsd/ntp/dist/lib/isc/noatomic/include/isc/atomic.h	new
external/bsd/ntp/dist/lib/isc/nothreads/condition.c		new
external/bsd/ntp/dist/lib/isc/nothreads/mutex.c			new
external/bsd/ntp/dist/lib/isc/nothreads/thread.c		new
external/bsd/ntp/dist/lib/isc/nothreads/include/isc/condition.h	new
external/bsd/ntp/dist/lib/isc/nothreads/include/isc/mutex.h	new
external/bsd/ntp/dist/lib/isc/nothreads/include/isc/once.h	new
external/bsd/ntp/dist/lib/isc/nothreads/include/isc/thread.h	new
external/bsd/ntp/dist/lib/isc/powerpc/include/isc/atomic.h	new
external/bsd/ntp/dist/lib/isc/pthreads/condition.c		new
external/bsd/ntp/dist/lib/isc/pthreads/mutex.c			new
external/bsd/ntp/dist/lib/isc/pthreads/thread.c			new
external/bsd/ntp/dist/lib/isc/pthreads/include/isc/condition.h	new
external/bsd/ntp/dist/lib/isc/pthreads/include/isc/mutex.h	new
external/bsd/ntp/dist/lib/isc/pthreads/include/isc/once.h	new
external/bsd/ntp/dist/lib/isc/pthreads/include/isc/thread.h	new
external/bsd/ntp/dist/lib/isc/sparc64/include/isc/atomic.h	new
external/bsd/ntp/dist/lib/isc/tests/Atffile			new
external/bsd/ntp/dist/lib/isc/tests/hash_test.c			new
external/bsd/ntp/dist/lib/isc/tests/isctest.c			new
external/bsd/ntp/dist/lib/isc/tests/isctest.h			new
external/bsd/ntp/dist/lib/isc/tests/queue_test.c		new
external/bsd/ntp/dist/lib/isc/tests/socket_test.c		new
external/bsd/ntp/dist/lib/isc/tests/symtab_test.c		new
external/bsd/ntp/dist/lib/isc/tests/task_test.c			new
external/bsd/ntp/dist/lib/isc/tests/taskpool_test.c		new
external/bsd/ntp/dist/lib/isc/unix/app.c			new
external/bsd/ntp/dist/lib/isc/unix/dir.c			new
external/bsd/ntp/dist/lib/isc/unix/entropy.c			new
external/bsd/ntp/dist/lib/isc/unix/errno2result.c		new
external/bsd/ntp/dist/lib/isc/unix/errno2result.h		new
external/bsd/ntp/dist/lib/isc/unix/file.c			new
external/bsd/ntp/dist/lib/isc/unix/fsaccess.c			new
external/bsd/ntp/dist/lib/isc/unix/ifiter_getifaddrs.c		new
external/bsd/ntp/dist/lib/isc/unix/ifiter_ioctl.c		new
external/bsd/ntp/dist/lib/isc/unix/ifiter_sysctl.c		new
external/bsd/ntp/dist/lib/isc/unix/interfaceiter.c		new
external/bsd/ntp/dist/lib/isc/unix/ipv6.c			new
external/bsd/ntp/dist/lib/isc/unix/keyboard.c			new
external/bsd/ntp/dist/lib/isc/unix/net.c			new
external/bsd/ntp/dist/lib/isc/unix/os.c				new
external/bsd/ntp/dist/lib/isc/unix/resource.c			new
external/bsd/ntp/dist/lib/isc/unix/socket.c			new
external/bsd/ntp/dist/lib/isc/unix/socket_p.h			new
external/bsd/ntp/dist/lib/isc/unix/stdio.c			new
external/bsd/ntp/dist/lib/isc/unix/stdtime.c			new
external/bsd/ntp/dist/lib/isc/unix/strerror.c			new
external/bsd/ntp/dist/lib/isc/unix/syslog.c			new
external/bsd/ntp/dist/lib/isc/unix/time.c			new
external/bsd/ntp/dist/lib/isc/unix/include/isc/dir.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/int.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/keyboard.h	new
external/bsd/ntp/dist/lib/isc/unix/include/isc/net.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/netdb.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/offset.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/stat.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/stdtime.h	new
external/bsd/ntp/dist/lib/isc/unix/include/isc/strerror.h	new
external/bsd/ntp/dist/lib/isc/unix/include/isc/syslog.h		new
external/bsd/ntp/dist/lib/isc/unix/include/isc/time.h		new
external/bsd/ntp/dist/lib/isc/win32/DLLMain.c			new
external/bsd/ntp/dist/lib/isc/win32/app.c			new
external/bsd/ntp/dist/lib/isc/win32/condition.c			new
external/bsd/ntp/dist/lib/isc/win32/dir.c			new
external/bsd/ntp/dist/lib/isc/win32/entropy.c			new
external/bsd/ntp/dist/lib/isc/win32/errno2result.c		new
external/bsd/ntp/dist/lib/isc/win32/errno2result.h		new
external/bsd/ntp/dist/lib/isc/win32/file.c			new
external/bsd/ntp/dist/lib/isc/win32/fsaccess.c			new
external/bsd/ntp/dist/lib/isc/win32/interfaceiter.c		new
external/bsd/ntp/dist/lib/isc/win32/ipv6.c			new
external/bsd/ntp/dist/lib/isc/win32/keyboard.c			new
external/bsd/ntp/dist/lib/isc/win32/libgen.h			new
external/bsd/ntp/dist/lib/isc/win32/libisc.def			new
external/bsd/ntp/dist/lib/isc/win32/libisc.dsp			new
external/bsd/ntp/dist/lib/isc/win32/libisc.dsw			new
external/bsd/ntp/dist/lib/isc/win32/libisc.mak			new
external/bsd/ntp/dist/lib/isc/win32/net.c			new
external/bsd/ntp/dist/lib/isc/win32/netdb.h			new
external/bsd/ntp/dist/lib/isc/win32/ntgroups.c			new
external/bsd/ntp/dist/lib/isc/win32/ntpaths.c			new
external/bsd/ntp/dist/lib/isc/win32/once.c			new
external/bsd/ntp/dist/lib/isc/win32/os.c			new
external/bsd/ntp/dist/lib/isc/win32/resource.c			new
external/bsd/ntp/dist/lib/isc/win32/socket.c			new
external/bsd/ntp/dist/lib/isc/win32/stdio.c			new
external/bsd/ntp/dist/lib/isc/win32/stdtime.c			new
external/bsd/ntp/dist/lib/isc/win32/strerror.c			new
external/bsd/ntp/dist/lib/isc/win32/syslog.c			new
external/bsd/ntp/dist/lib/isc/win32/syslog.h			new
external/bsd/ntp/dist/lib/isc/win32/thread.c			new
external/bsd/ntp/dist/lib/isc/win32/time.c			new
external/bsd/ntp/dist/lib/isc/win32/unistd.h			new
external/bsd/ntp/dist/lib/isc/win32/version.c			new
external/bsd/ntp/dist/lib/isc/win32/win32os.c			new
external/bsd/ntp/dist/lib/isc/win32/include/isc/bind_registry.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/bindevt.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/condition.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/dir.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/int.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/ipv6.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/keyboard.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/mutex.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/net.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/netdb.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/ntgroups.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/ntpaths.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/offset.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/once.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/platform.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/stat.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/stdtime.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/strerror.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/syslog.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/thread.h	new
external/bsd/ntp/dist/lib/isc/win32/include/isc/time.h		new
external/bsd/ntp/dist/lib/isc/win32/include/isc/win32os.h	new
external/bsd/ntp/dist/lib/isc/x86_32/include/isc/atomic.h	new
external/bsd/ntp/dist/lib/isc/x86_64/include/isc/atomic.h	new
external/bsd/ntp/dist/libjsmn/LICENSE				new
external/bsd/ntp/dist/libjsmn/Makefile				new
external/bsd/ntp/dist/libjsmn/README.md				new
external/bsd/ntp/dist/libjsmn/jsmn.c				new
external/bsd/ntp/dist/libjsmn/jsmn.h				new
external/bsd/ntp/dist/libjsmn/jsmn_test.c			new
external/bsd/ntp/dist/libntp/Makefile.am			new
external/bsd/ntp/dist/libntp/Makefile.in			new
external/bsd/ntp/dist/libntp/README				new
external/bsd/ntp/dist/libntp/a_md5encrypt.c			new
external/bsd/ntp/dist/libntp/adjtime.c				new
external/bsd/ntp/dist/libntp/adjtimex.c				new
external/bsd/ntp/dist/libntp/atoint.c				new
external/bsd/ntp/dist/libntp/atolfp.c				new
external/bsd/ntp/dist/libntp/atouint.c				new
external/bsd/ntp/dist/libntp/audio.c				new
external/bsd/ntp/dist/libntp/authkeys.c				new
external/bsd/ntp/dist/libntp/authreadkeys.c			new
external/bsd/ntp/dist/libntp/authusekey.c			new
external/bsd/ntp/dist/libntp/bsd_strerror.c			new
external/bsd/ntp/dist/libntp/buftvtots.c			new
external/bsd/ntp/dist/libntp/caljulian.c			new
external/bsd/ntp/dist/libntp/caltontp.c				new
external/bsd/ntp/dist/libntp/calyearstart.c			new
external/bsd/ntp/dist/libntp/clocktime.c			new
external/bsd/ntp/dist/libntp/clocktypes.c			new
external/bsd/ntp/dist/libntp/decodenetnum.c			new
external/bsd/ntp/dist/libntp/dofptoa.c				new
external/bsd/ntp/dist/libntp/dolfptoa.c				new
external/bsd/ntp/dist/libntp/emalloc.c				new
external/bsd/ntp/dist/libntp/findconfig.c			new
external/bsd/ntp/dist/libntp/getopt.c				new
external/bsd/ntp/dist/libntp/hextoint.c				new
external/bsd/ntp/dist/libntp/hextolfp.c				new
external/bsd/ntp/dist/libntp/humandate.c			new
external/bsd/ntp/dist/libntp/icom.c				new
external/bsd/ntp/dist/libntp/iosignal.c				new
external/bsd/ntp/dist/libntp/lib_strbuf.c			new
external/bsd/ntp/dist/libntp/machines.c				new
external/bsd/ntp/dist/libntp/mktime.c				new
external/bsd/ntp/dist/libntp/modetoa.c				new
external/bsd/ntp/dist/libntp/mstolfp.c				new
external/bsd/ntp/dist/libntp/msyslog.c				new
external/bsd/ntp/dist/libntp/netof.c				new
external/bsd/ntp/dist/libntp/ntp_calendar.c			new
external/bsd/ntp/dist/libntp/ntp_crypto_rnd.c			new
external/bsd/ntp/dist/libntp/ntp_intres.c			new
external/bsd/ntp/dist/libntp/ntp_libopts.c			new
external/bsd/ntp/dist/libntp/ntp_lineedit.c			new
external/bsd/ntp/dist/libntp/ntp_random.c			new
external/bsd/ntp/dist/libntp/ntp_rfc2553.c			new
external/bsd/ntp/dist/libntp/ntp_worker.c			new
external/bsd/ntp/dist/libntp/numtoa.c				new
external/bsd/ntp/dist/libntp/numtohost.c			new
external/bsd/ntp/dist/libntp/octtoint.c				new
external/bsd/ntp/dist/libntp/prettydate.c			new
external/bsd/ntp/dist/libntp/recvbuff.c				new
external/bsd/ntp/dist/libntp/refnumtoa.c			new
external/bsd/ntp/dist/libntp/snprintf.c				new
external/bsd/ntp/dist/libntp/socket.c				new
external/bsd/ntp/dist/libntp/socktoa.c				new
external/bsd/ntp/dist/libntp/socktohost.c			new
external/bsd/ntp/dist/libntp/ssl_init.c				new
external/bsd/ntp/dist/libntp/statestr.c				new
external/bsd/ntp/dist/libntp/strdup.c				new
external/bsd/ntp/dist/libntp/strl_obsd.c			new
external/bsd/ntp/dist/libntp/syssignal.c			new
external/bsd/ntp/dist/libntp/systime.c				new
external/bsd/ntp/dist/libntp/systime_s.c			new
external/bsd/ntp/dist/libntp/timetoa.c				new
external/bsd/ntp/dist/libntp/timevalops.c			new
external/bsd/ntp/dist/libntp/uglydate.c				new
external/bsd/ntp/dist/libntp/vint64ops.c			new
external/bsd/ntp/dist/libntp/work_fork.c			new
external/bsd/ntp/dist/libntp/work_thread.c			new
external/bsd/ntp/dist/libntp/ymd2yd.c				new
external/bsd/ntp/dist/libparse/Makefile.am			new
external/bsd/ntp/dist/libparse/Makefile.in			new
external/bsd/ntp/dist/libparse/README				new
external/bsd/ntp/dist/libparse/binio.c				new
external/bsd/ntp/dist/libparse/clk_computime.c			new
external/bsd/ntp/dist/libparse/clk_dcf7000.c			new
external/bsd/ntp/dist/libparse/clk_hopf6021.c			new
external/bsd/ntp/dist/libparse/clk_meinberg.c			new
external/bsd/ntp/dist/libparse/clk_rawdcf.c			new
external/bsd/ntp/dist/libparse/clk_rcc8000.c			new
external/bsd/ntp/dist/libparse/clk_schmid.c			new
external/bsd/ntp/dist/libparse/clk_sel240x.c			new
external/bsd/ntp/dist/libparse/clk_trimtaip.c			new
external/bsd/ntp/dist/libparse/clk_trimtsip.c			new
external/bsd/ntp/dist/libparse/clk_varitext.c			new
external/bsd/ntp/dist/libparse/clk_wharton.c			new
external/bsd/ntp/dist/libparse/data_mbg.c			new
external/bsd/ntp/dist/libparse/gpstolfp.c			new
external/bsd/ntp/dist/libparse/ieee754io.c			new
external/bsd/ntp/dist/libparse/info_trimble.c			new
external/bsd/ntp/dist/libparse/mfp_mul.c			new
external/bsd/ntp/dist/libparse/mkinfo_rcmd.sed			new
external/bsd/ntp/dist/libparse/mkinfo_scmd.sed			new
external/bsd/ntp/dist/libparse/parse.c				new
external/bsd/ntp/dist/libparse/parse_conf.c			new
external/bsd/ntp/dist/libparse/parsesolaris.c			new
external/bsd/ntp/dist/libparse/parsestreams.c			new
external/bsd/ntp/dist/libparse/trim_info.c			new
external/bsd/ntp/dist/ntpd/Makefile.am				new
external/bsd/ntp/dist/ntpd/Makefile.in				new
external/bsd/ntp/dist/ntpd/check_y2k.c				new
external/bsd/ntp/dist/ntpd/cmd_args.c				new
external/bsd/ntp/dist/ntpd/complete.conf.in			new
external/bsd/ntp/dist/ntpd/declcond.h				new
external/bsd/ntp/dist/ntpd/invoke-ntp.conf.menu			new
external/bsd/ntp/dist/ntpd/invoke-ntp.conf.texi			new
external/bsd/ntp/dist/ntpd/invoke-ntp.keys.menu			new
external/bsd/ntp/dist/ntpd/invoke-ntp.keys.texi			new
external/bsd/ntp/dist/ntpd/invoke-ntpd.menu			new
external/bsd/ntp/dist/ntpd/invoke-ntpd.texi			new
external/bsd/ntp/dist/ntpd/jupiter.h				new
external/bsd/ntp/dist/ntpd/keyword-gen-utd			new
external/bsd/ntp/dist/ntpd/keyword-gen.c			new
external/bsd/ntp/dist/ntpd/ntp.conf.5man			new
external/bsd/ntp/dist/ntpd/ntp.conf.5mdoc			new
external/bsd/ntp/dist/ntpd/ntp.conf.def				new
external/bsd/ntp/dist/ntpd/ntp.conf.html			new
external/bsd/ntp/dist/ntpd/ntp.conf.man.in			new
external/bsd/ntp/dist/ntpd/ntp.conf.mdoc.in			new
external/bsd/ntp/dist/ntpd/ntp.conf.texi			new
external/bsd/ntp/dist/ntpd/ntp.keys.5man			new
external/bsd/ntp/dist/ntpd/ntp.keys.5mdoc			new
external/bsd/ntp/dist/ntpd/ntp.keys.def				new
external/bsd/ntp/dist/ntpd/ntp.keys.html			new
external/bsd/ntp/dist/ntpd/ntp.keys.man.in			new
external/bsd/ntp/dist/ntpd/ntp.keys.mdoc.in			new
external/bsd/ntp/dist/ntpd/ntp.keys.texi			new
external/bsd/ntp/dist/ntpd/ntp_config.c				new
external/bsd/ntp/dist/ntpd/ntp_control.c			new
external/bsd/ntp/dist/ntpd/ntp_crypto.c				new
external/bsd/ntp/dist/ntpd/ntp_filegen.c			new
external/bsd/ntp/dist/ntpd/ntp_io.c				new
external/bsd/ntp/dist/ntpd/ntp_keyword.h			new
external/bsd/ntp/dist/ntpd/ntp_leapsec.c			new
external/bsd/ntp/dist/ntpd/ntp_leapsec.h			new
external/bsd/ntp/dist/ntpd/ntp_loopfilter.c			new
external/bsd/ntp/dist/ntpd/ntp_monitor.c			new
external/bsd/ntp/dist/ntpd/ntp_parser.c				new
external/bsd/ntp/dist/ntpd/ntp_parser.h				new
external/bsd/ntp/dist/ntpd/ntp_parser.y				new
external/bsd/ntp/dist/ntpd/ntp_peer.c				new
external/bsd/ntp/dist/ntpd/ntp_prio_q.c				new
external/bsd/ntp/dist/ntpd/ntp_proto.c				new
external/bsd/ntp/dist/ntpd/ntp_refclock.c			new
external/bsd/ntp/dist/ntpd/ntp_request.c			new
external/bsd/ntp/dist/ntpd/ntp_restrict.c			new
external/bsd/ntp/dist/ntpd/ntp_scanner.c			new
external/bsd/ntp/dist/ntpd/ntp_scanner.h			new
external/bsd/ntp/dist/ntpd/ntp_signd.c				new
external/bsd/ntp/dist/ntpd/ntp_timer.c				new
external/bsd/ntp/dist/ntpd/ntp_util.c				new
external/bsd/ntp/dist/ntpd/ntpd-opts.c				new
external/bsd/ntp/dist/ntpd/ntpd-opts.def			new
external/bsd/ntp/dist/ntpd/ntpd-opts.h				new
external/bsd/ntp/dist/ntpd/ntpd.1ntpdman			new
external/bsd/ntp/dist/ntpd/ntpd.1ntpdmdoc			new
external/bsd/ntp/dist/ntpd/ntpd.c				new
external/bsd/ntp/dist/ntpd/ntpd.html				new
external/bsd/ntp/dist/ntpd/ntpd.man.in				new
external/bsd/ntp/dist/ntpd/ntpd.mdoc.in				new
external/bsd/ntp/dist/ntpd/ntpd.texi				new
external/bsd/ntp/dist/ntpd/ntpdbase-opts.def			new
external/bsd/ntp/dist/ntpd/ntpsim.c				new
external/bsd/ntp/dist/ntpd/ppsapi_timepps.h			new
external/bsd/ntp/dist/ntpd/refclock_acts.c			new
external/bsd/ntp/dist/ntpd/refclock_arbiter.c			new
external/bsd/ntp/dist/ntpd/refclock_arc.c			new
external/bsd/ntp/dist/ntpd/refclock_as2201.c			new
external/bsd/ntp/dist/ntpd/refclock_atom.c			new
external/bsd/ntp/dist/ntpd/refclock_bancomm.c			new
external/bsd/ntp/dist/ntpd/refclock_chronolog.c			new
external/bsd/ntp/dist/ntpd/refclock_chu.c			new
external/bsd/ntp/dist/ntpd/refclock_conf.c			new
external/bsd/ntp/dist/ntpd/refclock_datum.c			new
external/bsd/ntp/dist/ntpd/refclock_dumbclock.c			new
external/bsd/ntp/dist/ntpd/refclock_fg.c			new
external/bsd/ntp/dist/ntpd/refclock_gpsdjson.c			new
external/bsd/ntp/dist/ntpd/refclock_gpsvme.c			new
external/bsd/ntp/dist/ntpd/refclock_heath.c			new
external/bsd/ntp/dist/ntpd/refclock_hopfpci.c			new
external/bsd/ntp/dist/ntpd/refclock_hopfser.c			new
external/bsd/ntp/dist/ntpd/refclock_hpgps.c			new
external/bsd/ntp/dist/ntpd/refclock_irig.c			new
external/bsd/ntp/dist/ntpd/refclock_jjy.c			new
external/bsd/ntp/dist/ntpd/refclock_jupiter.c			new
external/bsd/ntp/dist/ntpd/refclock_leitch.c			new
external/bsd/ntp/dist/ntpd/refclock_local.c			new
external/bsd/ntp/dist/ntpd/refclock_msfees.c			new
external/bsd/ntp/dist/ntpd/refclock_mx4200.c			new
external/bsd/ntp/dist/ntpd/refclock_neoclock4x.c		new
external/bsd/ntp/dist/ntpd/refclock_nmea.c			new
external/bsd/ntp/dist/ntpd/refclock_oncore.c			new
external/bsd/ntp/dist/ntpd/refclock_palisade.c			new
external/bsd/ntp/dist/ntpd/refclock_palisade.h			new
external/bsd/ntp/dist/ntpd/refclock_parse.c			new
external/bsd/ntp/dist/ntpd/refclock_pcf.c			new
external/bsd/ntp/dist/ntpd/refclock_pst.c			new
external/bsd/ntp/dist/ntpd/refclock_ripencc.c			new
external/bsd/ntp/dist/ntpd/refclock_shm.c			new
external/bsd/ntp/dist/ntpd/refclock_tpro.c			new
external/bsd/ntp/dist/ntpd/refclock_true.c			new
external/bsd/ntp/dist/ntpd/refclock_tsyncpci.c			new
external/bsd/ntp/dist/ntpd/refclock_tt560.c			new
external/bsd/ntp/dist/ntpd/refclock_ulink.c			new
external/bsd/ntp/dist/ntpd/refclock_wwv.c			new
external/bsd/ntp/dist/ntpd/refclock_wwvb.c			new
external/bsd/ntp/dist/ntpd/refclock_zyfer.c			new
external/bsd/ntp/dist/ntpdate/Makefile.am			new
external/bsd/ntp/dist/ntpdate/Makefile.in			new
external/bsd/ntp/dist/ntpdate/README				new
external/bsd/ntp/dist/ntpdate/ntpdate.c				new
external/bsd/ntp/dist/ntpdate/ntpdate.h				new
external/bsd/ntp/dist/ntpdc/Makefile.am				new
external/bsd/ntp/dist/ntpdc/Makefile.in				new
external/bsd/ntp/dist/ntpdc/README				new
external/bsd/ntp/dist/ntpdc/invoke-ntpdc.menu			new
external/bsd/ntp/dist/ntpdc/invoke-ntpdc.texi			new
external/bsd/ntp/dist/ntpdc/layout.std				new
external/bsd/ntp/dist/ntpdc/nl.pl				new
external/bsd/ntp/dist/ntpdc/nl.pl.in				new
external/bsd/ntp/dist/ntpdc/nl_in.c				new
external/bsd/ntp/dist/ntpdc/ntpdc-layout.c			new
external/bsd/ntp/dist/ntpdc/ntpdc-opts.c			new
external/bsd/ntp/dist/ntpdc/ntpdc-opts.def			new
external/bsd/ntp/dist/ntpdc/ntpdc-opts.h			new
external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcman			new
external/bsd/ntp/dist/ntpdc/ntpdc.1ntpdcmdoc			new
external/bsd/ntp/dist/ntpdc/ntpdc.c				new
external/bsd/ntp/dist/ntpdc/ntpdc.h				new
external/bsd/ntp/dist/ntpdc/ntpdc.html				new
external/bsd/ntp/dist/ntpdc/ntpdc.man.in			new
external/bsd/ntp/dist/ntpdc/ntpdc.mdoc.in			new
external/bsd/ntp/dist/ntpdc/ntpdc.texi				new
external/bsd/ntp/dist/ntpdc/ntpdc_ops.c				new
external/bsd/ntp/dist/ntpq/Makefile.am				new
external/bsd/ntp/dist/ntpq/Makefile.in				new
external/bsd/ntp/dist/ntpq/README				new
external/bsd/ntp/dist/ntpq/invoke-ntpq.menu			new
external/bsd/ntp/dist/ntpq/invoke-ntpq.texi			new
external/bsd/ntp/dist/ntpq/libntpq.c				new
external/bsd/ntp/dist/ntpq/libntpq.h				new
external/bsd/ntp/dist/ntpq/libntpq_subs.c			new
external/bsd/ntp/dist/ntpq/ntpq-opts.c				new
external/bsd/ntp/dist/ntpq/ntpq-opts.def			new
external/bsd/ntp/dist/ntpq/ntpq-opts.h				new
external/bsd/ntp/dist/ntpq/ntpq-subs.c				new
external/bsd/ntp/dist/ntpq/ntpq.1ntpqman			new
external/bsd/ntp/dist/ntpq/ntpq.1ntpqmdoc			new
external/bsd/ntp/dist/ntpq/ntpq.c				new
external/bsd/ntp/dist/ntpq/ntpq.h				new
external/bsd/ntp/dist/ntpq/ntpq.html				new
external/bsd/ntp/dist/ntpq/ntpq.man.in				new
external/bsd/ntp/dist/ntpq/ntpq.mdoc.in				new
external/bsd/ntp/dist/ntpq/ntpq.texi				new
external/bsd/ntp/dist/ntpsnmpd/Makefile.am			new
external/bsd/ntp/dist/ntpsnmpd/Makefile.in			new
external/bsd/ntp/dist/ntpsnmpd/README				new
external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.menu		new
external/bsd/ntp/dist/ntpsnmpd/invoke-ntpsnmpd.texi		new
external/bsd/ntp/dist/ntpsnmpd/netsnmp_daemonize.c		new
external/bsd/ntp/dist/ntpsnmpd/ntpSnmpSubagentObject.c		new
external/bsd/ntp/dist/ntpsnmpd/ntpSnmpSubagentObject.h		new
external/bsd/ntp/dist/ntpsnmpd/ntp_snmp.h			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.c			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.def		new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd-opts.h			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdman		new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc		new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.c			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.html			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.man.in			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.mdoc.in			new
external/bsd/ntp/dist/ntpsnmpd/ntpsnmpd.texi			new
external/bsd/ntp/dist/ntpsnmpd/ntpv4-mib.mib			new
external/bsd/ntp/dist/parseutil/Makefile.am			new
external/bsd/ntp/dist/parseutil/Makefile.in			new
external/bsd/ntp/dist/parseutil/README				new
external/bsd/ntp/dist/parseutil/dcfd.c				new
external/bsd/ntp/dist/parseutil/testdcf.c			new
external/bsd/ntp/dist/scripts/Makefile.am			new
external/bsd/ntp/dist/scripts/Makefile.in			new
external/bsd/ntp/dist/scripts/README				new
external/bsd/ntp/dist/scripts/invoke-plot_summary.menu		new
external/bsd/ntp/dist/scripts/invoke-plot_summary.texi		new
external/bsd/ntp/dist/scripts/invoke-summary.menu		new
external/bsd/ntp/dist/scripts/invoke-summary.texi		new
external/bsd/ntp/dist/scripts/ntpver.in				new
external/bsd/ntp/dist/scripts/plot_summary-opts			new
external/bsd/ntp/dist/scripts/plot_summary-opts.def		new
external/bsd/ntp/dist/scripts/plot_summary.1plot_summaryman	new
external/bsd/ntp/dist/scripts/plot_summary.1plot_summarymdoc	new
external/bsd/ntp/dist/scripts/plot_summary.html			new
external/bsd/ntp/dist/scripts/plot_summary.in			new
external/bsd/ntp/dist/scripts/plot_summary.man.in		new
external/bsd/ntp/dist/scripts/plot_summary.mdoc.in		new
external/bsd/ntp/dist/scripts/plot_summary.texi			new
external/bsd/ntp/dist/scripts/summary-opts			new
external/bsd/ntp/dist/scripts/summary-opts.def			new
external/bsd/ntp/dist/scripts/summary.1summaryman		new
external/bsd/ntp/dist/scripts/summary.1summarymdoc		new
external/bsd/ntp/dist/scripts/summary.html			new
external/bsd/ntp/dist/scripts/summary.in			new
external/bsd/ntp/dist/scripts/summary.man.in			new
external/bsd/ntp/dist/scripts/summary.mdoc.in			new
external/bsd/ntp/dist/scripts/summary.texi			new
external/bsd/ntp/dist/scripts/build/Makefile.am			new
external/bsd/ntp/dist/scripts/build/Makefile.in			new
external/bsd/ntp/dist/scripts/build/UpdatePoint			new
external/bsd/ntp/dist/scripts/build/VersionName			new
external/bsd/ntp/dist/scripts/build/check--help			new
external/bsd/ntp/dist/scripts/build/checkChangeLog		new
external/bsd/ntp/dist/scripts/build/checkHtmlFileDates		new
external/bsd/ntp/dist/scripts/build/fixautomakedepsmagic	new
external/bsd/ntp/dist/scripts/build/genCommitLog		new
external/bsd/ntp/dist/scripts/build/genver			new
external/bsd/ntp/dist/scripts/build/mkver.in			new
external/bsd/ntp/dist/scripts/build/updateBEDate		new
external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.am		new
external/bsd/ntp/dist/scripts/calc_tickadj/Makefile.in		new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj-opts	new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj-opts.def new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmannew
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.html	new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.in	new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.man.in	new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.mdoc.in	new
external/bsd/ntp/dist/scripts/calc_tickadj/calc_tickadj.texi	new
external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.menu new
external/bsd/ntp/dist/scripts/calc_tickadj/invoke-calc_tickadj.texi new
external/bsd/ntp/dist/scripts/deprecated/freq_adj.in		new
external/bsd/ntp/dist/scripts/deprecated/hpadjtime.sh		new
external/bsd/ntp/dist/scripts/deprecated/html2man.in		new
external/bsd/ntp/dist/scripts/deprecated/ntp-close		new
external/bsd/ntp/dist/scripts/deprecated/ntp-groper		new
external/bsd/ntp/dist/scripts/deprecated/ntp-restart		new
external/bsd/ntp/dist/scripts/deprecated/ntp-status		new
external/bsd/ntp/dist/scripts/lib/Makefile.am			new
external/bsd/ntp/dist/scripts/lib/Makefile.in			new
external/bsd/ntp/dist/scripts/lib/NTP/Util.pm			new
external/bsd/ntp/dist/scripts/monitoring/README			new
external/bsd/ntp/dist/scripts/monitoring/loopwatch.config.SAMPLE new
external/bsd/ntp/dist/scripts/monitoring/lr.pl			new
external/bsd/ntp/dist/scripts/monitoring/ntp.pl			new
external/bsd/ntp/dist/scripts/monitoring/ntploopstat		new
external/bsd/ntp/dist/scripts/monitoring/ntploopwatch		new
external/bsd/ntp/dist/scripts/monitoring/ntptrap		new
external/bsd/ntp/dist/scripts/monitoring/timelocal.pl		new
external/bsd/ntp/dist/scripts/ntp-wait/Makefile.am		new
external/bsd/ntp/dist/scripts/ntp-wait/Makefile.in		new
external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.menu	new
external/bsd/ntp/dist/scripts/ntp-wait/invoke-ntp-wait.texi	new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts		new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait-opts.def	new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitman	new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc	new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.html		new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.in		new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.man.in		new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.mdoc.in		new
external/bsd/ntp/dist/scripts/ntp-wait/ntp-wait.texi		new
external/bsd/ntp/dist/scripts/ntpsweep/Makefile.am		new
external/bsd/ntp/dist/scripts/ntpsweep/Makefile.in		new
external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.menu	new
external/bsd/ntp/dist/scripts/ntpsweep/invoke-ntpsweep.texi	new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts		new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep-opts.def	new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepman	new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc	new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.html		new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.in		new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.man.in		new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.mdoc.in		new
external/bsd/ntp/dist/scripts/ntpsweep/ntpsweep.texi		new
external/bsd/ntp/dist/scripts/ntptrace/Makefile.am		new
external/bsd/ntp/dist/scripts/ntptrace/Makefile.in		new
external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.menu	new
external/bsd/ntp/dist/scripts/ntptrace/invoke-ntptrace.texi	new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts		new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace-opts.def	new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptraceman	new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.1ntptracemdoc	new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.html		new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.in		new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.man.in		new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in		new
external/bsd/ntp/dist/scripts/ntptrace/ntptrace.texi		new
external/bsd/ntp/dist/scripts/rc/README				new
external/bsd/ntp/dist/scripts/rc/ntpd				new
external/bsd/ntp/dist/scripts/rc/ntpwait			new
external/bsd/ntp/dist/scripts/rc/rc.d/TIMESYNC			new
external/bsd/ntp/dist/scripts/rc/rc.d/ntpd			new
external/bsd/ntp/dist/scripts/rc/rc.d/ntpwait			new
external/bsd/ntp/dist/scripts/stats/README			new
external/bsd/ntp/dist/scripts/stats/README.stats		new
external/bsd/ntp/dist/scripts/stats/README.timecodes		new
external/bsd/ntp/dist/scripts/stats/clock.awk			new
external/bsd/ntp/dist/scripts/stats/dupe.awk			new
external/bsd/ntp/dist/scripts/stats/ensemble.S			new
external/bsd/ntp/dist/scripts/stats/ensemble.awk		new
external/bsd/ntp/dist/scripts/stats/etf.S			new
external/bsd/ntp/dist/scripts/stats/etf.awk			new
external/bsd/ntp/dist/scripts/stats/itf.S			new
external/bsd/ntp/dist/scripts/stats/itf.awk			new
external/bsd/ntp/dist/scripts/stats/loop.S			new
external/bsd/ntp/dist/scripts/stats/loop.awk			new
external/bsd/ntp/dist/scripts/stats/loop_summary		new
external/bsd/ntp/dist/scripts/stats/peer.awk			new
external/bsd/ntp/dist/scripts/stats/psummary.awk		new
external/bsd/ntp/dist/scripts/stats/summary.sh			new
external/bsd/ntp/dist/scripts/stats/tdata.S			new
external/bsd/ntp/dist/scripts/stats/tdata.awk			new
external/bsd/ntp/dist/sntp/COPYRIGHT				new
external/bsd/ntp/dist/sntp/Makefile.am				new
external/bsd/ntp/dist/sntp/Makefile.in				new
external/bsd/ntp/dist/sntp/aclocal.m4				new
external/bsd/ntp/dist/sntp/bincheck.mf				new
external/bsd/ntp/dist/sntp/check-libntp.mf			new
external/bsd/ntp/dist/sntp/check-libopts.mf			new
external/bsd/ntp/dist/sntp/config.h.in				new
external/bsd/ntp/dist/sntp/configure				new
external/bsd/ntp/dist/sntp/configure.ac				new
external/bsd/ntp/dist/sntp/crypto.c				new
external/bsd/ntp/dist/sntp/crypto.h				new
external/bsd/ntp/dist/sntp/data_formats.h			new
external/bsd/ntp/dist/sntp/deps-ver				new
external/bsd/ntp/dist/sntp/depsver.mf				new
external/bsd/ntp/dist/sntp/evlog.c				new
external/bsd/ntp/dist/sntp/includes.mf				new
external/bsd/ntp/dist/sntp/install-sh				new
external/bsd/ntp/dist/sntp/invoke-sntp.menu			new
external/bsd/ntp/dist/sntp/invoke-sntp.texi			new
external/bsd/ntp/dist/sntp/kod_management.c			new
external/bsd/ntp/dist/sntp/kod_management.h			new
external/bsd/ntp/dist/sntp/log.c				new
external/bsd/ntp/dist/sntp/log.h				new
external/bsd/ntp/dist/sntp/main.c				new
external/bsd/ntp/dist/sntp/main.h				new
external/bsd/ntp/dist/sntp/networking.c				new
external/bsd/ntp/dist/sntp/networking.h				new
external/bsd/ntp/dist/sntp/scm-rev				new
external/bsd/ntp/dist/sntp/sntp-opts.c				new
external/bsd/ntp/dist/sntp/sntp-opts.def			new
external/bsd/ntp/dist/sntp/sntp-opts.h				new
external/bsd/ntp/dist/sntp/sntp.1sntpman			new
external/bsd/ntp/dist/sntp/sntp.1sntpmdoc			new
external/bsd/ntp/dist/sntp/sntp.c				new
external/bsd/ntp/dist/sntp/sntp.html				new
external/bsd/ntp/dist/sntp/sntp.man.in				new
external/bsd/ntp/dist/sntp/sntp.mdoc.in				new
external/bsd/ntp/dist/sntp/sntp.texi				new
external/bsd/ntp/dist/sntp/tests_main.cpp			new
external/bsd/ntp/dist/sntp/tests_main.h				new
external/bsd/ntp/dist/sntp/utilities.c				new
external/bsd/ntp/dist/sntp/utilities.h				new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/Mdoc.pm			new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/agman-cmd.tpl		new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/agmdoc-cmd.tpl		new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/cmd-doc.tlib		new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/mdoc-synopsis.tlib	new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/mdoc2man		new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/mdoc2texi		new
external/bsd/ntp/dist/sntp/ag-tpl/0-old/perlopt.tpl		new
external/bsd/ntp/dist/sntp/event2/event-config.h		new
external/bsd/ntp/dist/sntp/include/Makefile.am			new
external/bsd/ntp/dist/sntp/include/Makefile.in			new
external/bsd/ntp/dist/sntp/include/autogen-version.def		new
external/bsd/ntp/dist/sntp/include/copyright.def		new
external/bsd/ntp/dist/sntp/include/debug-opt.def		new
external/bsd/ntp/dist/sntp/include/homerc.def			new
external/bsd/ntp/dist/sntp/include/ntp.lic			new
external/bsd/ntp/dist/sntp/include/version.def			new
external/bsd/ntp/dist/sntp/include/version.texi			new
external/bsd/ntp/dist/sntp/libevent/ChangeLog			new
external/bsd/ntp/dist/sntp/libevent/ChangeLog-1.4		new
external/bsd/ntp/dist/sntp/libevent/ChangeLog-2.0		new
external/bsd/ntp/dist/sntp/libevent/Doxyfile			new
external/bsd/ntp/dist/sntp/libevent/LICENSE			new
external/bsd/ntp/dist/sntp/libevent/Makefile.am			new
external/bsd/ntp/dist/sntp/libevent/Makefile.in			new
external/bsd/ntp/dist/sntp/libevent/Makefile.nmake		new
external/bsd/ntp/dist/sntp/libevent/README			new
external/bsd/ntp/dist/sntp/libevent/aclocal.m4			new
external/bsd/ntp/dist/sntp/libevent/arc4random.c		new
external/bsd/ntp/dist/sntp/libevent/autogen.sh			new
external/bsd/ntp/dist/sntp/libevent/buffer.c			new
external/bsd/ntp/dist/sntp/libevent/buffer_iocp.c		new
external/bsd/ntp/dist/sntp/libevent/bufferevent-internal.h	new
external/bsd/ntp/dist/sntp/libevent/bufferevent.c		new
external/bsd/ntp/dist/sntp/libevent/bufferevent_async.c		new
external/bsd/ntp/dist/sntp/libevent/bufferevent_filter.c	new
external/bsd/ntp/dist/sntp/libevent/bufferevent_openssl.c	new
external/bsd/ntp/dist/sntp/libevent/bufferevent_pair.c		new
external/bsd/ntp/dist/sntp/libevent/bufferevent_ratelim.c	new
external/bsd/ntp/dist/sntp/libevent/bufferevent_sock.c		new
external/bsd/ntp/dist/sntp/libevent/changelist-internal.h	new
external/bsd/ntp/dist/sntp/libevent/config.h.in			new
external/bsd/ntp/dist/sntp/libevent/configure			new
external/bsd/ntp/dist/sntp/libevent/configure.ac		new
external/bsd/ntp/dist/sntp/libevent/defer-internal.h		new
external/bsd/ntp/dist/sntp/libevent/devpoll.c			new
external/bsd/ntp/dist/sntp/libevent/epoll.c			new
external/bsd/ntp/dist/sntp/libevent/epoll_sub.c			new
external/bsd/ntp/dist/sntp/libevent/epolltable-internal.h	new
external/bsd/ntp/dist/sntp/libevent/evbuffer-internal.h		new
external/bsd/ntp/dist/sntp/libevent/evconfig-private.h		new
external/bsd/ntp/dist/sntp/libevent/evconfig-private.h.in	new
external/bsd/ntp/dist/sntp/libevent/evdns.c			new
external/bsd/ntp/dist/sntp/libevent/event-internal.h		new
external/bsd/ntp/dist/sntp/libevent/event.c			new
external/bsd/ntp/dist/sntp/libevent/event_iocp.c		new
external/bsd/ntp/dist/sntp/libevent/event_rpcgen.py		new
external/bsd/ntp/dist/sntp/libevent/event_tagging.c		new
external/bsd/ntp/dist/sntp/libevent/evmap-internal.h		new
external/bsd/ntp/dist/sntp/libevent/evmap.c			new
external/bsd/ntp/dist/sntp/libevent/evport.c			new
external/bsd/ntp/dist/sntp/libevent/evrpc-internal.h		new
external/bsd/ntp/dist/sntp/libevent/evrpc.c			new
external/bsd/ntp/dist/sntp/libevent/evsignal-internal.h		new
external/bsd/ntp/dist/sntp/libevent/evthread-internal.h		new
external/bsd/ntp/dist/sntp/libevent/evthread.c			new
external/bsd/ntp/dist/sntp/libevent/evthread_pthread.c		new
external/bsd/ntp/dist/sntp/libevent/evthread_win32.c		new
external/bsd/ntp/dist/sntp/libevent/evutil.c			new
external/bsd/ntp/dist/sntp/libevent/evutil_rand.c		new
external/bsd/ntp/dist/sntp/libevent/evutil_time.c		new
external/bsd/ntp/dist/sntp/libevent/ht-internal.h		new
external/bsd/ntp/dist/sntp/libevent/http-internal.h		new
external/bsd/ntp/dist/sntp/libevent/http.c			new
external/bsd/ntp/dist/sntp/libevent/iocp-internal.h		new
external/bsd/ntp/dist/sntp/libevent/ipv6-internal.h		new
external/bsd/ntp/dist/sntp/libevent/kqueue-internal.h		new
external/bsd/ntp/dist/sntp/libevent/kqueue.c			new
external/bsd/ntp/dist/sntp/libevent/libevent.pc.in		new
external/bsd/ntp/dist/sntp/libevent/libevent_openssl.pc.in	new
external/bsd/ntp/dist/sntp/libevent/libevent_pthreads.pc.in	new
external/bsd/ntp/dist/sntp/libevent/listener.c			new
external/bsd/ntp/dist/sntp/libevent/log-internal.h		new
external/bsd/ntp/dist/sntp/libevent/log.c			new
external/bsd/ntp/dist/sntp/libevent/make-event-config.sed	new
external/bsd/ntp/dist/sntp/libevent/minheap-internal.h		new
external/bsd/ntp/dist/sntp/libevent/mm-internal.h		new
external/bsd/ntp/dist/sntp/libevent/poll.c			new
external/bsd/ntp/dist/sntp/libevent/ratelim-internal.h		new
external/bsd/ntp/dist/sntp/libevent/select.c			new
external/bsd/ntp/dist/sntp/libevent/signal.c			new
external/bsd/ntp/dist/sntp/libevent/strlcpy-internal.h		new
external/bsd/ntp/dist/sntp/libevent/strlcpy.c			new
external/bsd/ntp/dist/sntp/libevent/time-internal.h		new
external/bsd/ntp/dist/sntp/libevent/util-internal.h		new
external/bsd/ntp/dist/sntp/libevent/whatsnew-2.0.txt		new
external/bsd/ntp/dist/sntp/libevent/whatsnew-2.1.txt		new
external/bsd/ntp/dist/sntp/libevent/win32select.c		new
external/bsd/ntp/dist/sntp/libevent/WIN32-Code/tree.h		new
external/bsd/ntp/dist/sntp/libevent/WIN32-Code/nmake/evconfig-private.h new
external/bsd/ntp/dist/sntp/libevent/WIN32-Code/nmake/event2/event-config.h new
external/bsd/ntp/dist/sntp/libevent/build-aux/compile		new
external/bsd/ntp/dist/sntp/libevent/build-aux/config.guess	new
external/bsd/ntp/dist/sntp/libevent/build-aux/config.sub	new
external/bsd/ntp/dist/sntp/libevent/build-aux/depcomp		new
external/bsd/ntp/dist/sntp/libevent/build-aux/install-sh	new
external/bsd/ntp/dist/sntp/libevent/build-aux/ltmain.sh		new
external/bsd/ntp/dist/sntp/libevent/build-aux/missing		new
external/bsd/ntp/dist/sntp/libevent/build-aux/ylwrap		new
external/bsd/ntp/dist/sntp/libevent/compat/sys/queue.h		new
external/bsd/ntp/dist/sntp/libevent/include/evdns.h		new
external/bsd/ntp/dist/sntp/libevent/include/event.h		new
external/bsd/ntp/dist/sntp/libevent/include/evhttp.h		new
external/bsd/ntp/dist/sntp/libevent/include/evrpc.h		new
external/bsd/ntp/dist/sntp/libevent/include/evutil.h		new
external/bsd/ntp/dist/sntp/libevent/include/include.am		new
external/bsd/ntp/dist/sntp/libevent/include/event2/buffer.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/buffer_compat.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent_compat.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent_ssl.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/bufferevent_struct.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/dns.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/dns_compat.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/dns_struct.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/event.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/event_compat.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/event_struct.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/http.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/http_compat.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/http_struct.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/keyvalq_struct.h new
external/bsd/ntp/dist/sntp/libevent/include/event2/listener.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/rpc.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/rpc_compat.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/rpc_struct.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/tag.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/tag_compat.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/thread.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/util.h	new
external/bsd/ntp/dist/sntp/libevent/include/event2/visibility.h	new
external/bsd/ntp/dist/sntp/libevent/m4/ac_backport_259_ssizet.m4 new
external/bsd/ntp/dist/sntp/libevent/m4/libevent_openssl.m4	new
external/bsd/ntp/dist/sntp/libevent/m4/libtool.m4		new
external/bsd/ntp/dist/sntp/libevent/m4/ltoptions.m4		new
external/bsd/ntp/dist/sntp/libevent/m4/ltsugar.m4		new
external/bsd/ntp/dist/sntp/libevent/m4/ltversion.m4		new
external/bsd/ntp/dist/sntp/libevent/m4/lt~obsolete.m4		new
external/bsd/ntp/dist/sntp/libevent/m4/ntp_pkg_config.m4	new
external/bsd/ntp/dist/sntp/libevent/m4/openldap-thread-check.m4	new
external/bsd/ntp/dist/sntp/libevent/m4/openldap.m4		new
external/bsd/ntp/dist/sntp/libevent/sample/dns-example.c	new
external/bsd/ntp/dist/sntp/libevent/sample/event-read-fifo.c	new
external/bsd/ntp/dist/sntp/libevent/sample/hello-world.c	new
external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.c		new
external/bsd/ntp/dist/sntp/libevent/sample/hostcheck.h		new
external/bsd/ntp/dist/sntp/libevent/sample/http-server.c	new
external/bsd/ntp/dist/sntp/libevent/sample/https-client.c	new
external/bsd/ntp/dist/sntp/libevent/sample/include.am		new
external/bsd/ntp/dist/sntp/libevent/sample/le-proxy.c		new
external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.cnew
external/bsd/ntp/dist/sntp/libevent/sample/openssl_hostname_validation.hnew
external/bsd/ntp/dist/sntp/libevent/sample/signal-test.c	new
external/bsd/ntp/dist/sntp/libevent/sample/time-test.c		new
external/bsd/ntp/dist/sntp/libevent/test/Makefile.nmake		new
external/bsd/ntp/dist/sntp/libevent/test/bench.c		new
external/bsd/ntp/dist/sntp/libevent/test/bench_cascade.c	new
external/bsd/ntp/dist/sntp/libevent/test/bench_http.c		new
external/bsd/ntp/dist/sntp/libevent/test/bench_httpclient.c	new
external/bsd/ntp/dist/sntp/libevent/test/check-dumpevents.py	new
external/bsd/ntp/dist/sntp/libevent/test/include.am		new
external/bsd/ntp/dist/sntp/libevent/test/regress.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress.gen.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress.gen.h		new
external/bsd/ntp/dist/sntp/libevent/test/regress.h		new
external/bsd/ntp/dist/sntp/libevent/test/regress.rpc		new
external/bsd/ntp/dist/sntp/libevent/test/regress_buffer.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_bufferevent.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_dns.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_et.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_finalize.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_http.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_iocp.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_listener.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_main.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_minheap.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_rpc.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_ssl.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_testutils.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_testutils.h	new
external/bsd/ntp/dist/sntp/libevent/test/regress_thread.c	new
external/bsd/ntp/dist/sntp/libevent/test/regress_thread.h	new
external/bsd/ntp/dist/sntp/libevent/test/regress_util.c		new
external/bsd/ntp/dist/sntp/libevent/test/regress_zlib.c		new
external/bsd/ntp/dist/sntp/libevent/test/rpcgen_wrapper.sh	new
external/bsd/ntp/dist/sntp/libevent/test/test-changelist.c	new
external/bsd/ntp/dist/sntp/libevent/test/test-closed.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-dumpevents.c	new
external/bsd/ntp/dist/sntp/libevent/test/test-eof.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-fdleak.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-init.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-ratelim.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-time.c		new
external/bsd/ntp/dist/sntp/libevent/test/test-weof.c		new
external/bsd/ntp/dist/sntp/libevent/test/test.sh		new
external/bsd/ntp/dist/sntp/libevent/test/tinytest.c		new
external/bsd/ntp/dist/sntp/libevent/test/tinytest.h		new
external/bsd/ntp/dist/sntp/libevent/test/tinytest_local.h	new
external/bsd/ntp/dist/sntp/libevent/test/tinytest_macros.h	new
external/bsd/ntp/dist/sntp/libopts/COPYING.gplv3		new
external/bsd/ntp/dist/sntp/libopts/COPYING.lgplv3		new
external/bsd/ntp/dist/sntp/libopts/COPYING.mbsd			new
external/bsd/ntp/dist/sntp/libopts/MakeDefs.inc			new
external/bsd/ntp/dist/sntp/libopts/Makefile.am			new
external/bsd/ntp/dist/sntp/libopts/Makefile.in			new
external/bsd/ntp/dist/sntp/libopts/README			new
external/bsd/ntp/dist/sntp/libopts/ag-char-map.h		new
external/bsd/ntp/dist/sntp/libopts/alias.c			new
external/bsd/ntp/dist/sntp/libopts/ao-strs.c			new
external/bsd/ntp/dist/sntp/libopts/ao-strs.h			new
external/bsd/ntp/dist/sntp/libopts/autoopts.c			new
external/bsd/ntp/dist/sntp/libopts/autoopts.h			new
external/bsd/ntp/dist/sntp/libopts/boolean.c			new
external/bsd/ntp/dist/sntp/libopts/check.c			new
external/bsd/ntp/dist/sntp/libopts/configfile.c			new
external/bsd/ntp/dist/sntp/libopts/cook.c			new
external/bsd/ntp/dist/sntp/libopts/enum.c			new
external/bsd/ntp/dist/sntp/libopts/env.c			new
external/bsd/ntp/dist/sntp/libopts/file.c			new
external/bsd/ntp/dist/sntp/libopts/find.c			new
external/bsd/ntp/dist/sntp/libopts/genshell.c			new
external/bsd/ntp/dist/sntp/libopts/genshell.h			new
external/bsd/ntp/dist/sntp/libopts/gettext.h			new
external/bsd/ntp/dist/sntp/libopts/init.c			new
external/bsd/ntp/dist/sntp/libopts/intprops.h			new
external/bsd/ntp/dist/sntp/libopts/libopts.c			new
external/bsd/ntp/dist/sntp/libopts/load.c			new
external/bsd/ntp/dist/sntp/libopts/makeshell.c			new
external/bsd/ntp/dist/sntp/libopts/nested.c			new
external/bsd/ntp/dist/sntp/libopts/numeric.c			new
external/bsd/ntp/dist/sntp/libopts/option-value-type.c		new
external/bsd/ntp/dist/sntp/libopts/option-value-type.h		new
external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.c	new
external/bsd/ntp/dist/sntp/libopts/option-xat-attribute.h	new
external/bsd/ntp/dist/sntp/libopts/parse-duration.c		new
external/bsd/ntp/dist/sntp/libopts/parse-duration.h		new
external/bsd/ntp/dist/sntp/libopts/pgusage.c			new
external/bsd/ntp/dist/sntp/libopts/proto.h			new
external/bsd/ntp/dist/sntp/libopts/putshell.c			new
external/bsd/ntp/dist/sntp/libopts/reset.c			new
external/bsd/ntp/dist/sntp/libopts/restore.c			new
external/bsd/ntp/dist/sntp/libopts/save.c			new
external/bsd/ntp/dist/sntp/libopts/sort.c			new
external/bsd/ntp/dist/sntp/libopts/stack.c			new
external/bsd/ntp/dist/sntp/libopts/stdnoreturn.in.h		new
external/bsd/ntp/dist/sntp/libopts/streqvcmp.c			new
external/bsd/ntp/dist/sntp/libopts/text_mmap.c			new
external/bsd/ntp/dist/sntp/libopts/time.c			new
external/bsd/ntp/dist/sntp/libopts/tokenize.c			new
external/bsd/ntp/dist/sntp/libopts/usage.c			new
external/bsd/ntp/dist/sntp/libopts/version.c			new
external/bsd/ntp/dist/sntp/libopts/autoopts/options.h		new
external/bsd/ntp/dist/sntp/libopts/autoopts/project.h		new
external/bsd/ntp/dist/sntp/libopts/autoopts/usage-txt.h		new
external/bsd/ntp/dist/sntp/libopts/compat/_Noreturn.h		new
external/bsd/ntp/dist/sntp/libopts/compat/compat.h		new
external/bsd/ntp/dist/sntp/libopts/compat/pathfind.c		new
external/bsd/ntp/dist/sntp/libopts/compat/snprintf.c		new
external/bsd/ntp/dist/sntp/libopts/compat/strchr.c		new
external/bsd/ntp/dist/sntp/libopts/compat/strdup.c		new
external/bsd/ntp/dist/sntp/libopts/compat/windows-config.h	new
external/bsd/ntp/dist/sntp/libopts/m4/libopts.m4		new
external/bsd/ntp/dist/sntp/libopts/m4/liboptschk.m4		new
external/bsd/ntp/dist/sntp/libopts/m4/stdnoreturn.m4		new
external/bsd/ntp/dist/sntp/loc/README				new
external/bsd/ntp/dist/sntp/loc/darwin				new
external/bsd/ntp/dist/sntp/loc/debian				new
external/bsd/ntp/dist/sntp/loc/freebsd				new
external/bsd/ntp/dist/sntp/loc/legacy				new
external/bsd/ntp/dist/sntp/loc/netbsd				new
external/bsd/ntp/dist/sntp/loc/redhat				new
external/bsd/ntp/dist/sntp/loc/solaris				new
external/bsd/ntp/dist/sntp/m4/define_dir.m4			new
external/bsd/ntp/dist/sntp/m4/hms_search_lib.m4			new
external/bsd/ntp/dist/sntp/m4/libtool.m4			new
external/bsd/ntp/dist/sntp/m4/ltoptions.m4			new
external/bsd/ntp/dist/sntp/m4/ltsugar.m4			new
external/bsd/ntp/dist/sntp/m4/ltversion.m4			new
external/bsd/ntp/dist/sntp/m4/lt~obsolete.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_cacheversion.m4		new
external/bsd/ntp/dist/sntp/m4/ntp_compiler.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_crosscompile.m4		new
external/bsd/ntp/dist/sntp/m4/ntp_crypto_rand.m4		new
external/bsd/ntp/dist/sntp/m4/ntp_debug.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_dir_sep.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_facilitynames.m4		new
external/bsd/ntp/dist/sntp/m4/ntp_googletest.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_ipv6.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_lib_m.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_libevent.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_libntp.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_lineeditlibs.m4		new
external/bsd/ntp/dist/sntp/m4/ntp_locinfo.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_openssl.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_pkg_config.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_prog_cc.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_rlimit.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_sntp.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_sysexits.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_ver_suffix.m4			new
external/bsd/ntp/dist/sntp/m4/ntp_vpathhack.m4			new
external/bsd/ntp/dist/sntp/m4/os_cflags.m4			new
external/bsd/ntp/dist/sntp/m4/snprintf.m4			new
external/bsd/ntp/dist/sntp/m4/version.m4			new
external/bsd/ntp/dist/sntp/scripts/Makefile.am			new
external/bsd/ntp/dist/sntp/scripts/Makefile.in			new
external/bsd/ntp/dist/sntp/scripts/cvo.sh			new
external/bsd/ntp/dist/sntp/scripts/genLocInfo			new
external/bsd/ntp/dist/sntp/scripts/mansec2subst.sed		new
external/bsd/ntp/dist/sntp/tests/Makefile.am			new
external/bsd/ntp/dist/sntp/tests/Makefile.in			new
external/bsd/ntp/dist/sntp/tests/crypto.cpp			new
external/bsd/ntp/dist/sntp/tests/fileHandlingTest.h		new
external/bsd/ntp/dist/sntp/tests/keyFile.cpp			new
external/bsd/ntp/dist/sntp/tests/kodDatabase.cpp		new
external/bsd/ntp/dist/sntp/tests/kodFile.cpp			new
external/bsd/ntp/dist/sntp/tests/networking.cpp			new
external/bsd/ntp/dist/sntp/tests/packetHandling.cpp		new
external/bsd/ntp/dist/sntp/tests/packetProcessing.cpp		new
external/bsd/ntp/dist/sntp/tests/sntptest.h			new
external/bsd/ntp/dist/sntp/tests/tests-runner			new
external/bsd/ntp/dist/sntp/tests/utilities.cpp			new
external/bsd/ntp/dist/sntp/tests/data/debug-input-lfp-bin	new
external/bsd/ntp/dist/sntp/tests/data/debug-input-lfp-dec	new
external/bsd/ntp/dist/sntp/tests/data/debug-input-pkt		new
external/bsd/ntp/dist/sntp/tests/data/key-test-ascii		new
external/bsd/ntp/dist/sntp/tests/data/key-test-comments		new
external/bsd/ntp/dist/sntp/tests/data/key-test-empty		new
external/bsd/ntp/dist/sntp/tests/data/key-test-hex		new
external/bsd/ntp/dist/sntp/tests/data/key-test-invalid-hex	new
external/bsd/ntp/dist/sntp/tests/data/kod-expected-multiple	new
external/bsd/ntp/dist/sntp/tests/data/kod-expected-single	new
external/bsd/ntp/dist/sntp/tests/data/kod-test-blanks		new
external/bsd/ntp/dist/sntp/tests/data/kod-test-correct		new
external/bsd/ntp/dist/sntp/tests/data/kod-test-empty		new
external/bsd/ntp/dist/tests/Makefile.am				new
external/bsd/ntp/dist/tests/Makefile.in				new
external/bsd/ntp/dist/tests/libntp/Makefile.am			new
external/bsd/ntp/dist/tests/libntp/Makefile.in			new
external/bsd/ntp/dist/tests/libntp/a_md5encrypt.cpp		new
external/bsd/ntp/dist/tests/libntp/atoint.cpp			new
external/bsd/ntp/dist/tests/libntp/atouint.cpp			new
external/bsd/ntp/dist/tests/libntp/authkeys.cpp			new
external/bsd/ntp/dist/tests/libntp/buftvtots.cpp		new
external/bsd/ntp/dist/tests/libntp/calendar.cpp			new
external/bsd/ntp/dist/tests/libntp/caljulian.cpp		new
external/bsd/ntp/dist/tests/libntp/caltontp.cpp			new
external/bsd/ntp/dist/tests/libntp/calyearstart.cpp		new
external/bsd/ntp/dist/tests/libntp/clocktime.cpp		new
external/bsd/ntp/dist/tests/libntp/decodenetnum.cpp		new
external/bsd/ntp/dist/tests/libntp/hextoint.cpp			new
external/bsd/ntp/dist/tests/libntp/hextolfp.cpp			new
external/bsd/ntp/dist/tests/libntp/humandate.cpp		new
external/bsd/ntp/dist/tests/libntp/lfpfunc.cpp			new
external/bsd/ntp/dist/tests/libntp/lfptest.h			new
external/bsd/ntp/dist/tests/libntp/lfptostr.cpp			new
external/bsd/ntp/dist/tests/libntp/libntptest.cpp		new
external/bsd/ntp/dist/tests/libntp/libntptest.h			new
external/bsd/ntp/dist/tests/libntp/modetoa.cpp			new
external/bsd/ntp/dist/tests/libntp/msyslog.cpp			new
external/bsd/ntp/dist/tests/libntp/netof.cpp			new
external/bsd/ntp/dist/tests/libntp/numtoa.cpp			new
external/bsd/ntp/dist/tests/libntp/numtohost.cpp		new
external/bsd/ntp/dist/tests/libntp/octtoint.cpp			new
external/bsd/ntp/dist/tests/libntp/prettydate.cpp		new
external/bsd/ntp/dist/tests/libntp/recvbuff.cpp			new
external/bsd/ntp/dist/tests/libntp/refnumtoa.cpp		new
external/bsd/ntp/dist/tests/libntp/sfptostr.cpp			new
external/bsd/ntp/dist/tests/libntp/sockaddrtest.h		new
external/bsd/ntp/dist/tests/libntp/socktoa.cpp			new
external/bsd/ntp/dist/tests/libntp/ssl_init.cpp			new
external/bsd/ntp/dist/tests/libntp/statestr.cpp			new
external/bsd/ntp/dist/tests/libntp/strtolfp.cpp			new
external/bsd/ntp/dist/tests/libntp/timespecops.cpp		new
external/bsd/ntp/dist/tests/libntp/timestructs.cpp		new
external/bsd/ntp/dist/tests/libntp/timestructs.h		new
external/bsd/ntp/dist/tests/libntp/timevalops.cpp		new
external/bsd/ntp/dist/tests/libntp/tstotv.cpp			new
external/bsd/ntp/dist/tests/libntp/tvtots.cpp			new
external/bsd/ntp/dist/tests/libntp/uglydate.cpp			new
external/bsd/ntp/dist/tests/libntp/vi64ops.cpp			new
external/bsd/ntp/dist/tests/libntp/ymd2yd.cpp			new
external/bsd/ntp/dist/tests/ntpd/Makefile.am			new
external/bsd/ntp/dist/tests/ntpd/Makefile.in			new
external/bsd/ntp/dist/tests/ntpd/leapsec.cpp			new
external/bsd/ntp/dist/tests/ntpd/ntpdtest.cpp			new
external/bsd/ntp/dist/tests/ntpd/ntpdtest.h			new
external/bsd/ntp/dist/util/Makefile.am				new
external/bsd/ntp/dist/util/Makefile.in				new
external/bsd/ntp/dist/util/README				new
external/bsd/ntp/dist/util/audio-pcm.c				new
external/bsd/ntp/dist/util/byteorder.c				new
external/bsd/ntp/dist/util/hist.c				new
external/bsd/ntp/dist/util/invoke-ntp-keygen.menu		new
external/bsd/ntp/dist/util/invoke-ntp-keygen.texi		new
external/bsd/ntp/dist/util/jitter.c				new
external/bsd/ntp/dist/util/jitter.h				new
external/bsd/ntp/dist/util/kern.c				new
external/bsd/ntp/dist/util/longsize.c				new
external/bsd/ntp/dist/util/ntp-keygen-opts.c			new
external/bsd/ntp/dist/util/ntp-keygen-opts.def			new
external/bsd/ntp/dist/util/ntp-keygen-opts.h			new
external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenman		new
external/bsd/ntp/dist/util/ntp-keygen.1ntp-keygenmdoc		new
external/bsd/ntp/dist/util/ntp-keygen.c				new
external/bsd/ntp/dist/util/ntp-keygen.html			new
external/bsd/ntp/dist/util/ntp-keygen.man.in			new
external/bsd/ntp/dist/util/ntp-keygen.mdoc.in			new
external/bsd/ntp/dist/util/ntp-keygen.texi			new
external/bsd/ntp/dist/util/ntptime.c				new
external/bsd/ntp/dist/util/pps-api.c				new
external/bsd/ntp/dist/util/precision.c				new
external/bsd/ntp/dist/util/sht.c				new
external/bsd/ntp/dist/util/testrs6000.c				new
external/bsd/ntp/dist/util/tg.c					new
external/bsd/ntp/dist/util/tg2.c				new
external/bsd/ntp/dist/util/tickadj.c				new
external/bsd/ntp/dist/util/timetrim.c				new
external/bsd/ntp/html/Makefile					new
external/bsd/ntp/include/config.h				new
external/bsd/ntp/lib/Makefile					new
external/bsd/ntp/lib/Makefile.inc				new
external/bsd/ntp/lib/libiscntp/Makefile				new
external/bsd/ntp/lib/libntp/Makefile				new
external/bsd/ntp/lib/libopts/Makefile				new
external/bsd/ntp/lib/libparse/Makefile				new
external/bsd/ntp/scripts/mkver					new
usr.sbin/Makefile						patch
usr.sbin/ntp/Makefile						delete
usr.sbin/ntp/Makefile.inc					delete
usr.sbin/ntp/importdate						delete
usr.sbin/ntp/html/Makefile					delete
usr.sbin/ntp/include/config.h					delete
usr.sbin/ntp/libisc/Makefile					delete
usr.sbin/ntp/libntp/Makefile					delete
usr.sbin/ntp/libopts/Makefile					delete
usr.sbin/ntp/libparse/Makefile					delete
usr.sbin/ntp/ntp-keygen/Makefile				delete
usr.sbin/ntp/ntp-keygen/ntp-keygen.8				delete
usr.sbin/ntp/ntpd/Makefile					delete
usr.sbin/ntp/ntpd/ntpd.8					delete
usr.sbin/ntp/ntpdate/Makefile					delete
usr.sbin/ntp/ntpdate/ntpdate.8					delete
usr.sbin/ntp/ntpdc/Makefile					delete
usr.sbin/ntp/ntpdc/ntpdc.8					delete
usr.sbin/ntp/ntpq/Makefile					delete
usr.sbin/ntp/ntpq/ntpq.8					delete
usr.sbin/ntp/ntptime/Makefile					delete
usr.sbin/ntp/ntptime/ntptime.8					delete
usr.sbin/ntp/ntptrace/Makefile					delete
usr.sbin/ntp/ntptrace/ntptrace.8				delete
usr.sbin/ntp/ntptrace/ntptrace.awk				delete
usr.sbin/ntp/scripts/mkver					delete
usr.sbin/sntp/Makefile						delete
usr.sbin/sntp/sntp.1						delete

	Update ntp to 4.2.8. This pullup syncs with -current as of
	2014/01/06.
	CVE-2014-9293,  CVE-2014-9294,  CVE-2014-9295, and CVE-2014-9296.
@
text
@a0 39094
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.68 for ntp4 4.2.8.
#
# Report bugs to <http://bugs.ntp.org./>.
#
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
# Foundation, Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

if test "x$CONFIG_SHELL" = x; then
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@@\"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '\${1+\"\$@@\"}'='\"\$@@\"'
  setopt NO_GLOB_SUBST
else
  case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi
"
  as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :

else
  exitcode=1; echo positional parameters were not saved.
fi
test x\$exitcode = x0 || exit 1"
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1

  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    PATH=/empty FPATH=/empty; export PATH FPATH
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  if (eval "$as_required") 2>/dev/null; then :
  as_have_required=yes
else
  as_have_required=no
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :

else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  as_found=:
  case $as_dir in #(
	 /*)
	   for as_base in sh bash ksh sh5; do
	     # Try only shells that exist, to save several forks.
	     as_shell=$as_dir/$as_base
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  break 2
fi
fi
	   done;;
       esac
  as_found=false
done
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi; }
IFS=$as_save_IFS


      if test "x$CONFIG_SHELL" != x; then :
  # We cannot yet assume a decent shell, so we have to provide a
	# neutralization value for shells without unset; and this also
	# works around shells that cannot unset nonexistent variables.
	# Preserve -v and -x to the replacement shell.
	BASH_ENV=/dev/null
	ENV=/dev/null
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
	export CONFIG_SHELL
	case $- in # ((((
	  *v*x* | *x*v* ) as_opts=-vx ;;
	  *v* ) as_opts=-v ;;
	  *x* ) as_opts=-x ;;
	  * ) as_opts= ;;
	esac
	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@@"}
fi

    if test x$as_have_required = xno; then :
  $as_echo "$0: This script requires a shell more modern than all"
  $as_echo "$0: the shells that I found on your system."
  if test x${ZSH_VERSION+set} = xset ; then
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  else
    $as_echo "$0: Please tell bug-autoconf@@gnu.org and
$0: http://bugs.ntp.org./ about your system, including any
$0: error possibly output before this message. Then install
$0: a modern shell, or manually run the script under such a
$0: shell if you do have one."
  fi
  exit 1
fi
fi
fi
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS

## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset

# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@@" || test $? -eq 1`
  }
fi # as_fn_arith


# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  $as_echo "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits


  as_lineno_1=$LINENO as_lineno_1a=$LINENO
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"

SHELL=${CONFIG_SHELL-/bin/sh}


test -n "$DJDIR" || exec 7<&0 </dev/null
exec 6>&1

# Name of the host.
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME='ntp4'
PACKAGE_TARNAME='ntp4'
PACKAGE_VERSION='4.2.8'
PACKAGE_STRING='ntp4 4.2.8'
PACKAGE_BUGREPORT='http://bugs.ntp.org./'
PACKAGE_URL='http://www.ntp.org./'

# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_header_list=
enable_option_checking=no
ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
subdirs
PERLLIBDIR
NTP_KEYSDIR
GTEST_AVAILABLE_FALSE
GTEST_AVAILABLE_TRUE
GTEST_CPPFLAGS
GTEST_CXXFLAGS
GTEST_LIBS
GTEST_LDFLAGS
GTEST_CONFIG
SAVECONFIG_ENABLED_FALSE
SAVECONFIG_ENABLED_TRUE
LSCF
MAKE_NTPSNMPD
SNMP_CFLAGS
SNMP_CPPFLAGS
SNMP_LIBS
BUILD_SNTP_FALSE
BUILD_SNTP_TRUE
SNTP
MAKE_NTPDSIM
MAKE_LIBNTPSIM
MAKE_TIMETRIM
MAKE_TICKADJ
MAKE_NTPTIME
MAKE_ADJTIMED
CHUTEST
PROPDELAY
MAKE_PARSEKMODULE
DCFD
TESTDCF
MAKE_CHECK_LAYOUT
VER_SUFFIX
PKG_CONFIG
MAKE_CHECK_Y2K
MAKE_LIBPARSE_KERNEL
MAKE_LIBPARSE
LIBPARSE
HAVE_RLIMIT_STACK
HAVE_RLIMIT_MEMLOCK
LDADD_NLIST
PATH_NET_SNMP_CONFIG
CONFIG_SHELL
PATH_TEST
PATH_PERL
LIBOBJS
PTHREADS_FALSE
PTHREADS_TRUE
LIBISC_PTHREADS_NOTHREADS
PTHREAD_LIBS
HAVE_INLINE
ALLOCA
LIBM
EDITLINE_LIBS
LDADD_LIBNTP
NTP_CROSSCOMPILE_FALSE
NTP_CROSSCOMPILE_TRUE
LIBOPTS_DIR
LIBOPTS_CFLAGS
LIBOPTS_LDADD
NEED_LIBOPTS_FALSE
NEED_LIBOPTS_TRUE
INSTALL_LIBOPTS_FALSE
INSTALL_LIBOPTS_TRUE
POSIX_SHELL
GL_GENERATE_STDNORETURN_H_FALSE
GL_GENERATE_STDNORETURN_H_TRUE
STDNORETURN_H
LIBTOOL_DEPS
CXXCPP
OTOOL64
OTOOL
LIPO
NMEDIT
DSYMUTIL
MANIFEST_TOOL
RANLIB
ac_ct_AR
AR
DLLTOOL
OBJDUMP
LN_S
NM
ac_ct_DUMPBIN
DUMPBIN
LD
FGREP
SED
LIBTOOL
TIMETRIM_NI
TIMETRIM_MS
TIMETRIM_DS
TIMETRIM_DL
TIMETRIM_DB
TICKADJ_NI
TICKADJ_MS
TICKADJ_DS
TICKADJ_DL
TICKADJ_DB
SNTP_NI
SNTP_MS
SNTP_DS
SNTP_DL
SNTP_DB
NTP_WAIT_NI
NTP_WAIT_MS
NTP_WAIT_DS
NTP_WAIT_DL
NTP_WAIT_DB
NTP_KEYGEN_NI
NTP_KEYGEN_MS
NTP_KEYGEN_DS
NTP_KEYGEN_DL
NTP_KEYGEN_DB
NTPTRACE_NI
NTPTRACE_MS
NTPTRACE_DS
NTPTRACE_DL
NTPTRACE_DB
NTPTIME_NI
NTPTIME_MS
NTPTIME_DS
NTPTIME_DL
NTPTIME_DB
INSTALL_NTPSWEEP_FALSE
INSTALL_NTPSWEEP_TRUE
NTPSWEEP_NI
NTPSWEEP_MS
NTPSWEEP_DS
NTPSWEEP_DL
NTPSWEEP_DB
NTPSNMPD_NI
NTPSNMPD_MS
NTPSNMPD_DS
NTPSNMPD_DL
NTPSNMPD_DB
NTPQ_NI
NTPQ_MS
NTPQ_DS
NTPQ_DL
NTPQ_DB
NTPD_NI
NTPD_MS
NTPD_DS
NTPD_DL
NTPD_DB
NTPDSIM_NI
NTPDSIM_MS
NTPDSIM_DS
NTPDSIM_DL
NTPDSIM_DB
NTPDC_NI
NTPDC_MS
NTPDC_DS
NTPDC_DL
NTPDC_DB
NTPDATE_NI
NTPDATE_MS
NTPDATE_DS
NTPDATE_DL
NTPDATE_DB
MANTAGFMT
CALC_TICKADJ_NI
CALC_TICKADJ_MS
CALC_TICKADJ_DS
CALC_TICKADJ_DL
CALC_TICKADJ_DB
WANT_CALC_TICKADJ_MS_FALSE
WANT_CALC_TICKADJ_MS_TRUE
VPATH_HACK_FALSE
VPATH_HACK_TRUE
YFLAGS
YACC
am__fastdepCXX_FALSE
am__fastdepCXX_TRUE
CXXDEPMODE
ac_ct_CXX
CXXFLAGS
CXX
LDFLAGS_NTP
LDADD_NTP
CPPFLAGS_NTP
CFLAGS_NTP
EGREP
GREP
CPP
am__fastdepCC_FALSE
am__fastdepCC_TRUE
CCDEPMODE
AMDEPBACKSLASH
AMDEP_FALSE
AMDEP_TRUE
am__quote
am__include
DEPDIR
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
AM_BACKSLASH
AM_DEFAULT_VERBOSITY
am__untar
am__tar
AMTAR
am__leading_dot
SET_MAKE
AWK
mkdir_p
MKDIR_P
INSTALL_STRIP_PROGRAM
STRIP
install_sh
MAKEINFO
AUTOHEADER
AUTOMAKE
AUTOCONF
ACLOCAL
VERSION
PACKAGE
CYGPATH_W
am__isrc
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files='calc_tickadj_opts
ntp_wait_opts
ntpsweep_opts
ntptrace_opts
summary_opts
plot_summary_opts'
ac_user_opts='
enable_option_checking
enable_silent_rules
enable_dependency_tracking
with_locfile
enable_shared
enable_static
with_pic
enable_fast_install
with_gnu_ld
with_sysroot
enable_libtool_lock
enable_nls
enable_local_libopts
enable_libopts_install
with_autoopts_config
enable_local_libevent
with_lineeditlibs
enable_debugging
enable_thread_support
with_threads
with_yielding_select
enable_c99_snprintf
enable_clockctl
enable_linuxcaps
enable_solarisprivs
with_arlib
with_net_snmp_config
enable_libseccomp
with_stack_limit
with_memlock
enable_debug_timing
enable_dst_minutes
enable_ignore_dns_errors
enable_BANCOMM
enable_GPSVME
enable_all_clocks
enable_ACTS
enable_ARBITER
enable_ARCRON_MSF
enable_AS2201
enable_ATOM
enable_CHRONOLOG
enable_CHU
enable_AUDIO_CHU
enable_DATUM
enable_DUMBCLOCK
enable_FG
enable_HEATH
enable_HOPFSERIAL
enable_HOPFPCI
enable_HPGPS
enable_IRIG
enable_JJY
enable_JUPITER
enable_LEITCH
enable_LOCAL_CLOCK
enable_MX4200
enable_NEOCLOCK4X
enable_NMEA
enable_GPSD
enable_ONCORE
enable_PALISADE
enable_PCF
enable_PST
enable_RIPENCC
enable_SHM
enable_SPECTRACOM
enable_TPRO
enable_TRUETIME
enable_TT560
enable_ULINK
enable_TSYNCPCI
enable_WWV
enable_ZYFER
enable_parse_clocks
enable_COMPUTIME
enable_DCF7000
enable_HOPF6021
enable_MEINBERG
enable_RAWDCF
enable_RCC8000
enable_SCHMID
enable_TRIMTAIP
enable_TRIMTSIP
enable_WHARTON
enable_VARITEXT
enable_SEL240X
with_crypto
with_openssl_libdir
with_openssl_incdir
with_rpath
enable_openssl_random
enable_autokey
enable_kmem
enable_accurate_adjtime
enable_tick
enable_tickadj
enable_simulator
with_sntp
with_ntpsnmpd
enable_slew_always
enable_step_slew
enable_ntpdate_step
enable_hourly_todr_sync
enable_kernel_fll_bug
enable_bug1243_fix
enable_irig_sawtooth
enable_nist
enable_ntp_signd
enable_ipv6
with_kame
enable_getifaddrs
enable_saveconfig
with_gtest
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
CXX
CXXFLAGS
CCC
YACC
YFLAGS
CXXCPP'
ac_subdirs_all='sntp'

# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
ac_unrecognized_opts=
ac_unrecognized_sep=
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'

ac_prev=
ac_dashdash=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval $ac_prev=\$ac_option
    ac_prev=
    continue
  fi

  case $ac_option in
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *=)   ac_optarg= ;;
  *)    ac_optarg=yes ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;

  -enable-* | --enable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=\$ac_optarg ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=\$ac_optarg ;;

  -without-* | --without-*)
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=no ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) as_fn_error $? "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information"
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    case $ac_envvar in #(
      '' | [0-9]* | *[!_$as_cr_alnum]* )
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
    esac
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  as_fn_error $? "missing argument to $ac_option"
fi

if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  esac
fi

# Check all directory arguments for consistency.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
do
  eval ac_val=\$$ac_var
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used" >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  as_fn_error $? "working directory cannot be determined"
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  as_fn_error $? "pwd does not report name of working directory"


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_myself" : 'X\(//\)[^/]' \| \
	 X"$as_myself" : 'X\(//\)$' \| \
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r "$srcdir/$ac_unique_file"; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures ntp4 4.2.8 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp4]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of ntp4 4.2.8:";;
   esac
  cat <<\_ACEOF

Optional Features and Packages:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --enable-silent-rules          less verbose build output (undo: `make V=1')
  --disable-silent-rules         verbose build output (undo: `make V=0')
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --with-locfile=XXX      os-specific or "legacy"
  --enable-shared[=PKGS]  build shared libraries [default=no]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --disable-nls           disable nls support in libopts
  --enable-local-libopts  Use the supplied libopts tearoff code
  --enable-libopts-install
                          Install libopts with client installation
  --with-autoopts-config  specify the config-info script
  --enable-local-libevent Force using the supplied libevent tearoff code
  --with-lineeditlibs     edit,editline (readline may be specified if desired)
  defaults:               + yes, - no, s system-specific
  --enable-debugging      + include ntpd debugging code
  --enable-thread-support s use threads (+ if available)
  --with-threads	  with threads [auto]
  --with-yielding-select  with yielding select [auto]
  --enable-c99-snprintf   s force replacement
  --enable-clockctl       s Use /dev/clockctl for non-root clock control
  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
  --with-arlib            - deprecated, arlib not distributed
  --with-net-snmp-config  + =net-snmp-config
  --enable-libseccomp     EXPERIMENTAL: enable support for libseccomp
                          sandboxing (default is no)
  --with-stack-limit      ? =50 (200 for openbsd) 4k pages
  --with-memlock          ? =32 (megabytes)
  --enable-debug-timing   - include processing time debugging code (costs
                          performance)
  --enable-dst-minutes    =60 minutes per DST adjustment
  --enable-ignore-dns-errors
                          - retry DNS queries on any error
  --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
  --enable-GPSVME         - TrueTime GPS receiver/VME interface
  --enable-all-clocks     + include all suitable non-PARSE clocks:
  --enable-ACTS           s ACTS modem service
  --enable-ARBITER        + Arbiter 1088A/B GPS receiver
  --enable-ARCRON-MSF     + Arcron MSF receiver
  --enable-AS2201         + Austron 2200A/2201A GPS receiver
  --enable-ATOM           s ATOM PPS interface
  --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
  --enable-CHU            + CHU modem/decoder
  --enable-AUDIO-CHU      s CHU audio/decoder
  --enable-DATUM          s Datum Programmable Time System
  --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
  --enable-FG             + Forum Graphic GPS
  --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
  --enable-HOPFSERIAL     + hopf serial clock device
  --enable-HOPFPCI        + hopf 6039 PCI board
  --enable-HPGPS          + HP 58503A GPS receiver
  --enable-IRIG           s IRIG audio decoder
  --enable-JJY            + JJY receiver
  --enable-JUPITER        s Rockwell Jupiter GPS receiver
  --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
  --enable-LOCAL-CLOCK    + local clock reference
  --enable-MX4200         s Magnavox MX4200 GPS receiver
  --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
  --enable-NMEA           + NMEA GPS receiver
  --enable-GPSD           + GPSD JSON receiver
  --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
  --enable-PALISADE       s Palisade clock
  --enable-PCF            + Conrad parallel port radio clock
  --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
  --enable-RIPENCC        - RIPENCC specific Trimble driver
  --enable-SHM            s SHM clock attached thru shared memory
  --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
  --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
  --enable-TRUETIME       s Kinemetrics/TrueTime receivers
  --enable-TT560          - TrueTime 560 IRIG-B decoder
  --enable-ULINK          + Ultralink WWVB receiver
  --enable-TSYNCPCI       s Spectracom TSYNC timing board
  --enable-WWV            s WWV Audio receiver
  --enable-ZYFER          + Zyfer GPStarplus receiver
  --enable-parse-clocks   - include all suitable PARSE clocks:
  --enable-COMPUTIME      s Diem Computime Radio Clock
  --enable-DCF7000        s ELV/DCF7000 clock
  --enable-HOPF6021       s HOPF 6021 clock
  --enable-MEINBERG       s Meinberg clocks
  --enable-RAWDCF         s DCF77 raw time code
  --enable-RCC8000        s RCC 8000 clock
  --enable-SCHMID         s Schmid DCF77 clock
  --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
  --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
  --enable-WHARTON        s WHARTON 400A Series clock
  --enable-VARITEXT       s VARITEXT clock
  --enable-SEL240X        s SEL240X clock
  --with-crypto           + =openssl,libcrypto

  --with-openssl-libdir   + =/something/reasonable

  --with-openssl-incdir   + =/something/reasonable

  --without-rpath         s Disable auto-added -R linker paths

  --enable-openssl-random Use OpenSSL's crypto random number functions, if
                          available (default is yes)
  --enable-autokey        + support NTP Autokey protocol
  --enable-kmem           s read /dev/kmem for tick and/or tickadj
  --enable-accurate-adjtime
                          s the adjtime() call is accurate
  --enable-tick=VALUE     s force a value for 'tick'
  --enable-tickadj=VALUE  s force a value for 'tickadj'
  --enable-simulator      - build/install the NTPD simulator?
  --without-sntp          - disable building sntp and sntp/tests
  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
  --enable-slew-always    s always slew the time
  --enable-step-slew      s step and slew the time
  --enable-ntpdate-step   s if ntpdate should step the time
  --enable-hourly-todr-sync
                          s if we should sync TODR hourly
  --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
  --enable-bug1243-fix    + use unmodified autokey session keys
  --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
  --enable-nist           - if we should enable the NIST lockclock scheme
  --enable-ntp-signd      - Provide support for Samba's signing daemon,
                          =/var/run/ntp_signd
  --enable-ipv6           s use IPv6?

  --with-kame             - =/usr/local/v6
  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
  --enable-saveconfig     + saveconfig mechanism
  --with-gtest            Use the gtest framework (Default: if it's available)

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  YACC        The `Yet Another Compiler Compiler' implementation to use.
              Defaults to the first program found out of: `bison -y', `byacc',
              `yacc'.
  YFLAGS      The list of arguments that will be passed by default to $YACC.
              This script will default YFLAGS to the empty string to avoid a
              default value of `-d' given by some make applications.
  CXXCPP      C++ preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <http://bugs.ntp.org./>.
ntp4 home page: <http://www.ntp.org./>.
_ACEOF
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
      continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for guested configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
    else
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
ntp4 configure 4.2.8
generated by GNU Autoconf 2.68

Copyright (C) 2010 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi

## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##

# ac_fn_c_try_compile LINENO
# --------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_compile

# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_cpp

# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
# the include files in INCLUDES and setting the cache variable VAR
# accordingly.
ac_fn_c_check_header_mongrel ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if eval \${$3+:} false; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
$as_echo_n "checking $2 usability... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_header_compiler=yes
else
  ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
$as_echo_n "checking $2 presence... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$2>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ac_header_preproc=yes
else
  ac_header_preproc=no
fi
rm -f conftest.err conftest.i conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  yes:no: )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
  no:yes:* )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
( $as_echo "## ------------------------------------ ##
## Report this to http://bugs.ntp.org./ ##
## ------------------------------------ ##"
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=\$ac_header_compiler"
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_mongrel

# ac_fn_c_try_run LINENO
# ----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_c_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_run

# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_compile

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_link

# ac_fn_cxx_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_compile

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

int
main ()
{
return $2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_func

# ac_fn_cxx_try_cpp LINENO
# ------------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_cpp

# ac_fn_cxx_try_link LINENO
# -------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_link

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_type

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid; break
else
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=-1 ac_mid=-1
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=$ac_mid; break
else
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  ac_lo= ac_hi=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid
else
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in #((
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
'') ac_retval=1 ;;
esac
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
static long int longval () { return $2; }
static unsigned long int ulongval () { return $2; }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (($2) < 0)
    {
      long int i = longval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
else
  ac_retval=1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
rm -f conftest.val

  fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_compute_int

# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
# ---------------------------------------------
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
# accordingly.
ac_fn_c_check_decl ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  as_decl_name=`echo $2|sed 's/ *(.*//'`
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
#ifndef $as_decl_name
#ifdef __cplusplus
  (void) $as_decl_use;
#else
  (void) $as_decl_name;
#endif
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_decl

# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
# ----------------------------------------------------
# Tries to find if the field MEMBER exists in type AGGR, after including
# INCLUDES, setting cache variable VAR accordingly.
ac_fn_c_check_member ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
$as_echo_n "checking for $2.$3... " >&6; }
if eval \${$4+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$5
int
main ()
{
static $2 ac_aggr;
if (ac_aggr.$3)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$4=yes"
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$5
int
main ()
{
static $2 ac_aggr;
if (sizeof ac_aggr.$3)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$4=yes"
else
  eval "$4=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$4
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_member
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by ntp4 $as_me 4.2.8, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ $0 $@@

_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    $as_echo "PATH: $as_dir"
  done
IFS=$as_save_IFS

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    2)
      as_fn_append ac_configure_args1 " '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      as_fn_append ac_configure_args " '$ac_arg'"
      ;;
    esac
  done
done
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    $as_echo "## ---------------- ##
## Cache variables. ##
## ---------------- ##"
    echo
    # The following way of writing the cache mishandles newlines in values,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

    $as_echo "## ----------------- ##
## Output variables. ##
## ----------------- ##"
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      $as_echo "$ac_var='\''$ac_val'\''"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      $as_echo "## ------------------- ##
## File substitutions. ##
## ------------------- ##"
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	$as_echo "$ac_var='\''$ac_val'\''"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      $as_echo "## ----------- ##
## confdefs.h. ##
## ----------- ##"
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      $as_echo "$as_me: caught signal $ac_signal"
    $as_echo "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h

$as_echo "/* confdefs.h */" > confdefs.h

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_URL "$PACKAGE_URL"
_ACEOF


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
  # We do not want a PATH search for config.site.
  case $CONFIG_SITE in #((
    -*)  ac_site_file1=./$CONFIG_SITE;;
    */*) ac_site_file1=$CONFIG_SITE;;
    *)   ac_site_file1=./$CONFIG_SITE;;
  esac
elif test "x$prefix" != xNONE; then
  ac_site_file1=$prefix/share/config.site
  ac_site_file2=$prefix/etc/config.site
else
  ac_site_file1=$ac_default_prefix/share/config.site
  ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
  test "x$ac_site_file" = xNONE && continue
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file" \
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "failed to load site script $ac_site_file
See \`config.log' for more details" "$LINENO" 5; }
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special files
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

as_fn_append ac_header_list " stdarg.h"
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
fi
## -------------------- ##
## Main body of script. ##
## -------------------- ##

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



ac_aux_dir=
for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
  if test -f "$ac_dir/install-sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f "$ac_dir/install.sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f "$ac_dir/shtool"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
fi

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.







# Bump ntp_configure_cache_version for each change to configure.ac or
# .m4 files which invalidates cached values from previous configure
# runs.
#
# If the change affects cache variables used only by the main NTP
# configure.ac, then only its version number should be bumped, while
# the subdir configure.ac version numbers should be unchanged.  The
# same is true for a test/variable that is used only by one subdir
# being changed incompatibly; only that subdir's cache version needs
# bumping.
#
# If a change affects variables shared by all NTP configure scripts,
# please bump the version numbers of each.  If you are not sure, the
# safe choice is to bump all on any cache-invalidating change.
#
# In order to avoid the risk of version stamp collision between -stable
# and -dev branches, do not simply increment the version, instead use
# the date YYYYMMDD optionally with -HHMM if there is more than one
# bump in a day.

ntp_configure_cache_version=20120806

# When the cache version of config.cache and configure do not
# match, NTP_CACHEVERSION will flush the cache.



    ntp_cache_flush=1

    case "$ntp_cv_main_cache_version" in
     $ntp_configure_cache_version)
	# same version, good
	ntp_cache_flush=0
	;;
     '')
	# No cache, predates ntp_cv_main_cache_version, or is empty.
	case "$cache_file" in
	 /dev/null)
	    ntp_cache_flush=0
	    ;;
	 *)
	    case "$NTP_CACHEVERSION_PARENT" in
	     '')
		# Do not clear the cache immediately after it is created
		# empty as it is noisy.  Differentiate a newly-created
		# config.cache from one predating the cache version
		# mechanism by looking for the first cached variable set
		# by Autoconf
		case "$ac_cv_path_install" in
		 '')
		    # empty config.cache file
		    ntp_cache_flush=0
		esac
		;;
	     *)
		# Parent configure just created cache from empty,
		# flushing would be counterproductive.
		ntp_cache_flush=0;
		;;
	    esac
	esac
	;;
     *)
	# configure cache version mismatches config.cache version
	;;
    esac

    case "$ntp_cache_flush" in
     1)
	c_version="${ntp_cv_main_cache_version:-(no version found)}"

	# Do we flush all variables or exclude others' version stamps?

	case "$NTP_CACHEVERSION_PARENT" in
	 '')
	    # Clear all *_cv_* variables including our child subdirs'
	    # ntp_cv_*_cache_version variables.  This prevents subdir
	    # configure scripts from noticing a version mismatch just
	    # after the top configure in the invocation cleared and
	    # recreated the cache.

	    c_varname_list=`set |
			    sed -n -e 's/=.*$//' \
				   -e '/_cv_/p'
			   `
	    ;;
	 *)
	    # This is not the top configure this particular invocation.
	    # Clear all *_cv_* variables sparing the version stamps
	    # of other configure scripts, so we don't trigger
	    # useless repeated clearings.

	    c_varname_list=`set |
			    sed -n -e 's/=.*$//' \
				   -e '/ntp_cv_.*_cache_version/d' \
				   -e '/_cv_/p'
			   `
	esac

	for c_varname in $c_varname_list
	do
	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
	done

	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
$as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
$as_echo "$as_me: $cache_file version: $c_version" >&6;}
	{ c_varname=; unset c_varname;}
	{ c_varname_list=; unset c_varname_list;}
	{ c_version=; unset c_version;}
    esac

    { ntp_cache_flush=; unset ntp_cache_flush;}

    # save configure version in config.cache for next time
    ntp_cv_main_cache_version="$ntp_configure_cache_version"

    # let any subdir configure.ac NTP_CACHEVERSION invocations
    # know they are not the top level.
    NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT


am__api_version='1.11'

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if ${ac_cv_path_install+:} false; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in #((
  ./ | .// | /[cC]/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
	  fi
	fi
      done
    done
    ;;
esac

  done
IFS=$as_save_IFS

rm -rf conftest.one conftest.two conftest.dir

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    INSTALL=$ac_install_sh
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
$as_echo "$INSTALL" >&6; }

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
$as_echo_n "checking whether build environment is sane... " >&6; }
# Just in case
sleep 1
echo timestamp > conftest.file
# Reject unsafe characters in $srcdir or the absolute working directory
# name.  Accept space and tab only in the latter.
am_lf='
'
case `pwd` in
  *[\\\"\#\$\&\'\`$am_lf]*)
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
esac
case $srcdir in
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
esac

# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t "$srcdir/configure" conftest.file`
   fi
   rm -f conftest.file
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $srcdir/configure"; then

      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
alias in your environment" "$LINENO" 5
   fi

   test "$2" = conftest.file
   )
then
   # Ok.
   :
else
   as_fn_error $? "newly created file is older than distributed files!
Check your system clock" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
test "$program_prefix" != NONE &&
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
# Double any \ or $.
# By default was `s,x,x', remove it if useless.
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`

# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`

if test x"${MISSING+set}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  *)
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
  esac
fi
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
fi

if test x"${install_sh}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  *)
    install_sh="\${SHELL} $am_aux_dir/install-sh"
  esac
fi

# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
if test -z "$MKDIR_P"; then
  if ${ac_cv_path_mkdir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in mkdir gmkdir; do
	 for ac_exec_ext in '' $ac_executable_extensions; do
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir (GNU coreutils) '* | \
	     'mkdir (coreutils) '* | \
	     'mkdir (fileutils) '4.1*)
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
	       break 3;;
	   esac
	 done
       done
  done
IFS=$as_save_IFS

fi

  test -d ./--version && rmdir ./--version
  if test "${ac_cv_path_mkdir+set}" = set; then
    MKDIR_P="$ac_cv_path_mkdir -p"
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for MKDIR_P within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    MKDIR_P="$ac_install_sh -d"
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
$as_echo "$MKDIR_P" >&6; }

mkdir_p="$MKDIR_P"
case $mkdir_p in
  [\\/$]* | ?:[\\/]*) ;;
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi

rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
  am__leading_dot=.
else
  am__leading_dot=_
fi
rmdir .tst 2>/dev/null

if test "`cd $srcdir && pwd`" != "`pwd`"; then
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  # is not polluted with repeated "-I."
  am__isrc=' -I$(srcdir)'
  # test to see if srcdir already configured
  if test -f $srcdir/config.status; then
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  fi
fi

# test whether we have cygpath
if test -z "$CYGPATH_W"; then
  if (cygpath --version) >/dev/null 2>/dev/null; then
    CYGPATH_W='cygpath -w'
  else
    CYGPATH_W=echo
  fi
fi


# Define the identity of the package.
 PACKAGE='ntp4'
 VERSION='4.2.8'


cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION"
_ACEOF

# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}


AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}


AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}


AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}


MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.
# Always define AMTAR for backward compatibility.

AMTAR=${AMTAR-"${am_missing_run}tar"}

am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'






# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in
yes) AM_DEFAULT_VERBOSITY=0;;
no)  AM_DEFAULT_VERBOSITY=1;;
*)   AM_DEFAULT_VERBOSITY=0;;
esac
AM_BACKSLASH='\'


# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
$as_echo_n "checking build system type... " >&6; }
if ${ac_cv_build+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
$as_echo "$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
esac
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
$as_echo_n "checking host system type... " >&6; }
if ${ac_cv_host+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
$as_echo "$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac



cat >>confdefs.h <<_ACEOF
#define STR_SYSTEM "$host"
_ACEOF

ac_config_headers="$ac_config_headers config.h"


ntp_atom_ok=${ntp_atom_ok=no}
ntp_oncore_ok=${ntp_oncore_ok=no}
ntp_parse_ok=${ntp_parse_ok=no}
ntp_ripe_ncc_ok=${ntp_parse_ok=no}
ntp_jupiter_ok=${ntp_jupiter_ok=no}

DEPDIR="${am__leading_dot}deps"

ac_config_commands="$ac_config_commands depfiles"


am_make=${MAKE-make}
cat > confinc << 'END'
am__doit:
	@@echo this is the am__doit target
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
$as_echo_n "checking for style of include used by $am_make... " >&6; }
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# Ignore all kinds of additional output from `make'.
case `$am_make -s -f confmf 2> /dev/null` in #(
*the\ am__doit\ target*)
  am__include=include
  am__quote=
  _am_result=GNU
  ;;
esac
# Now try BSD make style include.
if test "$am__include" = "#"; then
   echo '.include "confinc"' > confmf
   case `$am_make -s -f confmf 2> /dev/null` in #(
   *the\ am__doit\ target*)
     am__include=.include
     am__quote="\""
     _am_result=BSD
     ;;
   esac
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
$as_echo "$_am_result" >&6; }
rm -f confinc confmf

# Check whether --enable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then :
  enableval=$enable_dependency_tracking;
fi

if test "x$enable_dependency_tracking" != xno; then
  am_depcomp="$ac_aux_dir/depcomp"
  AMDEPBACKSLASH='\'
fi
 if test "x$enable_dependency_tracking" != xno; then
  AMDEP_TRUE=
  AMDEP_FALSE='#'
else
  AMDEP_TRUE='#'
  AMDEP_FALSE=
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { { ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
	break;;
    * )
	break;;
  esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=

else
  ac_file=''
fi
if test -z "$ac_file"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "C compiler cannot create executables
See \`config.log' for more details" "$LINENO" 5; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext

rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
 return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
  { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
  if { ac_try='./conftest$ac_cv_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details" "$LINENO" 5; }
    fi
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }

rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if ${ac_cv_objext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of object files: cannot compile
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if ${ac_cv_c_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if ${ac_cv_prog_cc_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CC"   am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if ${ac_cv_path_GREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in grep ggrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
if ${ac_cv_path_EGREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in egrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if ${ac_cv_header_stdc+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done





  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
if test "x$ac_cv_header_minix_config_h" = xyes; then :
  MINIX=yes
else
  MINIX=
fi


  if test "$MINIX" = yes; then

$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h


$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h


$as_echo "#define _MINIX 1" >>confdefs.h

  fi

        case "$host_os" in
    hpux*)

$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h

      ;;
  esac


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
if ${ac_cv_safe_to_define___extensions__+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#         define __EXTENSIONS__ 1
          $ac_includes_default
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_safe_to_define___extensions__=yes
else
  ac_cv_safe_to_define___extensions__=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  test $ac_cv_safe_to_define___extensions__ = yes &&
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h

  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h

  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h

  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h


if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
fi
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
else
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi






ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if ${ac_cv_c_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if ${ac_cv_prog_cc_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CC"   am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi


# Ralf Wildenhues: With per-target flags we need CC_C_O
# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
if test "$am_t" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi


if test $ac_cv_c_compiler_gnu = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
if ${ac_cv_prog_gcc_traditional+:} false; then :
  $as_echo_n "(cached) " >&6
else
    ac_pattern="Autoconf.*'x'"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sgtty.h>
Autoconf TIOCGETP
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
else
  ac_cv_prog_gcc_traditional=no
fi
rm -f conftest*


  if test $ac_cv_prog_gcc_traditional = no; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <termio.h>
Autoconf TCGETA
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  ac_cv_prog_gcc_traditional=yes
fi
rm -f conftest*

  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
fi




CFLAGS_NTP=
CPPFLAGS_NTP=
LDADD_NTP=
LDFLAGS_NTP=





case "$ac_cv_prog_cc_c89" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&5
$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
		 version 4.2.5 and higher." >&2;}
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
$as_echo_n "checking if $CC can handle #warning... " >&6; }
if ${ntp_cv_cpp_warning+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#warning foo
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cpp_warning=yes
else
  ntp_cv_cpp_warning=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
$as_echo "$ntp_cv_cpp_warning" >&6; }
case "$ntp_cv_cpp_warning" in
 no)

$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
if ${ntp_cv_cc_attribute+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
void foo(void) __attribute__((__noreturn__));

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_cc_attribute=yes
else
  ntp_cv_cc_attribute=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
$as_echo "$ntp_cv_cc_attribute" >&6; }
case "$ntp_cv_cc_attribute" in
 yes)

$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h

esac


case "$GCC" in
 yes)
    SAVED_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -Wstrict-overflow"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Wstrict_overflow=yes
else
  ntp_cv_gcc_Wstrict_overflow=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
    #
    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
    # flag to CFLAGS.
    #
    CFLAGS="$SAVED_CFLAGS -Winit-self"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
if ${ntp_cv_gcc_Winit_self+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_gcc_Winit_self=yes
else
  ntp_cv_gcc_Winit_self=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
    CFLAGS="$SAVED_CFLAGS"
    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
    #
    # $ntp_cv_gcc_Winit_self is tested later to add the
    # flag to CFLAGS_NTP.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
if ${ntp_cv_gc_sections_runs+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
	    CFLAGS="$CFLAGS -Wl,--gc-sections"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <stdlib.h>
			#include <stdio.h>

int
main ()
{

			FILE *	fpC;
			char	buf[32];
			size_t	cch;
			int	read_success_once;

			fpC = fopen("conftest.c", "r");
			if (NULL == fpC)
				exit(1);
			do {
				cch = fread(buf, sizeof(buf), 1, fpC);
				read_success_once |= (0 != cch);
			} while (0 != cch);
			if (!read_success_once)
				exit(2);
			if (!feof(fpC))
				exit(3);
			if (0 != fclose(fpC))
				exit(4);

			exit(EXIT_SUCCESS);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
			ntp_cv_gc_sections_runs=no
		    else
			ntp_cv_gc_sections_runs=no
			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
		    fi

else
  ntp_cv_gc_sections_runs=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    CFLAGS="$origCFLAGS"
	    { origCFLAGS=; unset origCFLAGS;}


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
$as_echo "$ntp_cv_gc_sections_runs" >&6; }
    case "$ntp_cv_gc_sections_runs" in
     yes)
	LDADD_LIBNTP="-Wl,--gc-sections"
	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
	;;
     no)
	LDADD_LIBNTP=
	;;
    esac
    CFLAGS_NTP="$CFLAGS_NTP -Wall"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
    case "$ntp_cv_gcc_Winit_self" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
    esac
    case "$ntp_cv_gcc_Wstrict_overflow" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
    esac
    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
esac


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
$as_echo_n "checking additional compiler flags... " >&6; }
    # allow ntp_os_flags to be preset to skip this stuff
    case "${ntp_os_cflags+set}" in
     set)
	;;
     *)
	ntp_os_cflags=
	case "$host_os" in
	 aix[1-3]*)
	    ;;
	 aix4.[0-2]*)
	    # turn on additional headers
	    ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
	    ;;
	 aix5.3*)
	    # avoid circular dependencies in yp headers, and more
	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
	    ;;
	 aix*)
	    # XXX Only verified thru AIX6.
	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
	    # avoid circular dependencies in yp headers
	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
	    ;;
	 amigaos)
	    ntp_os_cflags="-DSYS_AMIGA"
	    ;;
	 darwin*|macosx*|rhapsody*)
	    ntp_os_cflags="-D_P1003_1B_VISIBLE"
	    ;;
	 hpux10.*)		# at least for hppa2.0-hp-hpux10.20
	    case "$GCC" in
	     yes)
		;;
	     *)
		# use Ansi compiler on HPUX, and some -Wp magic
		ntp_os_cflags="-Ae -Wp,-H18816"
		;;
	    esac
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
	    ;;
	 hpux*)
	    case "$GCC" in
	     yes)
		;;
	     *)
		# use Ansi compiler on HPUX
		ntp_os_cflags="-Ae"
	    esac
	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
	    ;;
	 irix6*)
	    case "$CC" in
	     cc)
		# do not use 64-bit compiler
		ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
	    esac
	    ;;
	 nextstep3)
	    ntp_os_cflags="-posix"
	    ;;
	 solaris1*|solaris2.[0-5]|solaris2.5.*)
	    ;;
	 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
	    ;;
	 solaris2*|sunos5*)
	    # turn on 64-bit file offset interface
	    ntp_os_cflags="-D_LARGEFILE64_SOURCE"
	    ;;
	 vxworks*)
	    case "$build" in
	     $host)
		;;
	     *)
		# Quick and dirty sanity check
		case "$VX_KERNEL" in
		 '')
		    as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
		esac
		ntp_os_cflags="-DSYS_VXWORKS"
	    esac
	    ;;
	esac
    esac
    case "$ntp_os_flags" in
     '')
	ntp_os_cflags_msg="none needed"
	;;
     *)
	ntp_os_cflags_msg="$ntp_os_cflags"
    esac
    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
$as_echo "$ntp_os_cflags_msg" >&6; }
    { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}



 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>

int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
		#include <sys/param.h>

int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;

int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)

$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h

     ;; #(
   *)
     as_fn_error $? "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
$as_echo_n "checking for working volatile... " >&6; }
if ${ac_cv_c_volatile+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

volatile int x;
int * volatile y = (int *) 0;
return !x && !y;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_volatile=yes
else
  ac_cv_c_volatile=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
$as_echo "$ac_cv_c_volatile" >&6; }
if test $ac_cv_c_volatile = no; then

$as_echo "#define volatile /**/" >>confdefs.h

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CXX" && break
done

  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if ${ac_cv_cxx_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if ${ac_cv_prog_cxx_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
else
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CXX"  am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CXX_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CXX_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CXX_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  am__fastdepCXX_TRUE=
  am__fastdepCXX_FALSE='#'
else
  am__fastdepCXX_TRUE='#'
  am__fastdepCXX_FALSE=
fi


for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_YACC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_YACC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"

if test "x$CC" != xcc; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
fi
set dummy $CC; ac_cc=`$as_echo "$2" |
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
rm -f conftest2.*
if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
then
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  if test "x$CC" != xcc; then
    # Test first that cc exists at all.
    if { ac_try='cc -c conftest.$ac_ext >&5'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } &&
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; };
      then
	# cc works too.
	:
      else
	# cc exists but doesn't like -o.
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
      fi
    fi
  fi
else
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h

fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
ntp_vpath_hack="no"
case "$srcdir::${force_ntp_vpath_hack-no}" in
 .::*)
    ;; # VPATH_HACK path is for VPATH builds only.
 *::yes)
    ntp_vpath_hack="yes"
    ;;
 *::*)
    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	ntp_vpath_hack="yes"
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
$as_echo "$ntp_vpath_hack" >&6; }
 if test x$ntp_vpath_hack = xyes; then
  VPATH_HACK_TRUE=
  VPATH_HACK_FALSE='#'
else
  VPATH_HACK_TRUE='#'
  VPATH_HACK_FALSE=
fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
$as_echo_n "checking for install dir and man conventions... " >&6; }


# Check whether --with-locfile was given.
if test "${with_locfile+set}" = set; then :
  withval=$with_locfile;
else
  with_locfile=no

fi


(									\
    SENTINEL_DIR="$PWD" &&						\
    cd $srcdir/sntp &&							\
    case "$with_locfile" in						\
     yes|no|'')								\
	scripts/genLocInfo -d "$SENTINEL_DIR"				\
	;;								\
     *)									\
	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
	;;								\
    esac								\
) > genLocInfo.i 2> genLocInfo.err
. ./genLocInfo.i

case "$GENLOCINFO" in
 OK)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
$as_echo "in file $GENLOCINFOFILE" >&6; }
    rm genLocInfo.err genLocInfo.i
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
$as_echo "failed." >&6; }
    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
    ;;
esac

 if test "$CALC_TICKADJ_MS" ; then
  WANT_CALC_TICKADJ_MS_TRUE=
  WANT_CALC_TICKADJ_MS_FALSE='#'
else
  WANT_CALC_TICKADJ_MS_TRUE='#'
  WANT_CALC_TICKADJ_MS_FALSE=
fi











































 if test -z "$NTPSWEEP_NI" ; then
  INSTALL_NTPSWEEP_TRUE=
  INSTALL_NTPSWEEP_FALSE='#'
else
  INSTALL_NTPSWEEP_TRUE='#'
  INSTALL_NTPSWEEP_FALSE=
fi








































# So far, the only shared library we might use is libopts.
# It's a small library - we might as well use a static version of it.
# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then :
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_shared=no
fi









case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac



macro_version='2.4'
macro_revision='1.3293'













ltmain="$ac_aux_dir/ltmain.sh"

# Backslashify metacharacters that are still active within
# double-quoted strings.
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\(["`\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
$as_echo_n "checking how to print strings... " >&6; }
# Test print first, because it will be a builtin if present.
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='print -r --'
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  ECHO='printf %s\n'
else
  # Use this function as a fallback that always works.
  func_fallback_echo ()
  {
    eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
  }
  ECHO='func_fallback_echo'
fi

# func_echo_all arg...
# Invoke $ECHO with all args, space-separated.
func_echo_all ()
{
    $ECHO ""
}

case "$ECHO" in
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
$as_echo "printf" >&6; } ;;
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
$as_echo "print -r" >&6; } ;;
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
$as_echo "cat" >&6; } ;;
esac














{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"











{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if ${ac_cv_path_FGREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  ac_path_FGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in fgrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
# Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_FGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_FGREP"; then
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_FGREP=$FGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"


test -z "$GREP" && GREP=grep



















# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if ${lt_cv_path_NM+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$DUMPBIN"; then :
    # Let the user override the test.
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in dumpbin "link -dump"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DUMPBIN+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$DUMPBIN" && break
  done
fi
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in dumpbin "link -dump"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_DUMPBIN" && break
done

  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DUMPBIN=$ac_ct_DUMPBIN
  fi
fi

    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
    *COFF*)
      DUMPBIN="$DUMPBIN -symbols"
      ;;
    *)
      DUMPBIN=:
      ;;
    esac
  fi

  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
fi
test -z "$NM" && NM=nm






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if ${lt_cv_nm_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

# find the maximum length of command line arguments
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if ${lt_cv_sys_max_cmd_len+:} false; then :
  $as_echo_n "(cached) " >&6
else
    i=0
  teststring="ABCD"

  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;

  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;

  cygwin* | mingw* | cegcc*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;

  mint*)
    # On MiNT this can take a long time and run out of memory.
    lt_cv_sys_max_cmd_len=8192;
    ;;

  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;

  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;

  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;

  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n "$lt_cv_sys_max_cmd_len"; then
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    else
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      for i in 1 2 3 4 5 6 7 8 ; do
        teststring=$teststring$teststring
      done
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
      # If test is not a shell built-in, we'll probably end up computing a
      # maximum length that is only half of the actual maximum length, but
      # we can't tell.
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
	      test $i != 17 # 1/2 MB should be enough
      do
        i=`expr $i + 1`
        teststring=$teststring$teststring
      done
      # Only check the string length outside the loop.
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
      teststring=
      # Add a significant safety factor because C++ compilers can tack on
      # massive amounts of additional arguments before passing them to the
      # linker.  It appears as though 1/2 is a usable value.
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    fi
    ;;
  esac

fi

if test -n $lt_cv_sys_max_cmd_len ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi
max_cmd_len=$lt_cv_sys_max_cmd_len






: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,b/c, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }


if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
else
  lt_unset=false
fi





# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
esac









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
if ${lt_cv_to_host_file_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
        ;;
    esac
    ;;
  *-*-cygwin* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
        ;;
      *-*-cygwin* )
        lt_cv_to_host_file_cmd=func_convert_file_noop
        ;;
      * ) # otherwise, assume *nix
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
        ;;
    esac
    ;;
  * ) # unhandled hosts (and "normal" native builds)
    lt_cv_to_host_file_cmd=func_convert_file_noop
    ;;
esac

fi

to_host_file_cmd=$lt_cv_to_host_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
$as_echo "$lt_cv_to_host_file_cmd" >&6; }





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
if ${lt_cv_to_tool_file_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
else
  #assume ordinary cross tools, or native build.
lt_cv_to_tool_file_cmd=func_convert_file_noop
case $host in
  *-*-mingw* )
    case $build in
      *-*-mingw* ) # actually msys
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
        ;;
    esac
    ;;
esac

fi

to_tool_file_cmd=$lt_cv_to_tool_file_cmd
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
$as_echo_n "checking for $LD option to reload object files... " >&6; }
if ${lt_cv_ld_reload_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_reload_flag='-r'
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
$as_echo "$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    if test "$GCC" != yes; then
      reload_cmds=false
    fi
    ;;
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac









if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OBJDUMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi

test -z "$OBJDUMP" && OBJDUMP=objdump









{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
if ${lt_cv_deplibs_check_method+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
aix[4-9]*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    # Keep this pattern in sync with the one in func_win32_libid.
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;

cegcc*)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

freebsd* | dragonfly*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

haiku*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    ;;
  *)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    ;;
  esac
  ;;

interix[3-9]*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  ;;

irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  lt_cv_deplibs_check_method=pass_all
  ;;

netbsd*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;

newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;

*nto* | *qnx*)
  lt_cv_deplibs_check_method=pass_all
  ;;

openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;

osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

rdos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
  esac
  ;;

tpf*)
  lt_cv_deplibs_check_method=pass_all
  ;;
esac

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
$as_echo "$lt_cv_deplibs_check_method" >&6; }

file_magic_glob=
want_nocaseglob=no
if test "$build" = "$host"; then
  case $host_os in
  mingw* | pw32*)
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
      want_nocaseglob=yes
    else
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
    fi
    ;;
  esac
fi

file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown






















if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DLLTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DLLTOOL=$ac_ct_DLLTOOL
  fi
else
  DLLTOOL="$ac_cv_prog_DLLTOOL"
fi

test -z "$DLLTOOL" && DLLTOOL=dlltool










{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_sharedlib_from_linklib_cmd='unknown'

case $host_os in
cygwin* | mingw* | pw32* | cegcc*)
  # two different shell functions defined in ltmain.sh
  # decide which to use based on capabilities of $DLLTOOL
  case `$DLLTOOL --help 2>&1` in
  *--identify-strict*)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
    ;;
  *)
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
    ;;
  esac
  ;;
*)
  # fallback: assume linklib IS sharedlib
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  ;;
esac

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO







if test -n "$ac_tool_prefix"; then
  for ac_prog in ar
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_AR" && break
done

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
fi

: ${AR=ar}
: ${AR_FLAGS=cru}











{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @@FILE support" >&5
$as_echo_n "checking for archiver @@FILE support... " >&6; }
if ${lt_cv_ar_at_file+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ar_at_file=no
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  echo conftest.$ac_objext > conftest.lst
      lt_ar_try='$AR $AR_FLAGS libconftest.a @@conftest.lst >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
	# Ensure the archiver fails upon bogus file names.
	rm -f conftest.$ac_objext libconftest.a
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  (eval $lt_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	if test "$ac_status" -ne 0; then
          lt_cv_ar_at_file=@@
        fi
      fi
      rm -f conftest.* libconftest.a

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
$as_echo "$lt_cv_ar_at_file" >&6; }

if test "x$lt_cv_ar_at_file" = xno; then
  archiver_list_spec=
else
  archiver_list_spec=$lt_cv_ar_at_file
fi







if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

test -z "$STRIP" && STRIP=:






if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

test -z "$RANLIB" && RANLIB=:






# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=

if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    ;;
  *)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi

case $host_os in
  darwin*)
    lock_old_archive_extraction=yes ;;
  *)
    lock_old_archive_extraction=no ;;
esac







































# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# Check for command to grab the raw symbol name followed by C symbol from nm.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  $as_echo_n "(cached) " >&6
else

# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]

# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'

# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32* | cegcc*)
  symcode='[ABCDGISTW]'
  ;;
hpux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris*)
  symcode='[BDRT]'
  ;;
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac

# Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently,
# so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"

# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"

# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# Try without a prefix underscore, then with it.
for ac_symprfx in "" "_"; do

  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"

  # Write the raw and C identifiers.
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
    # Fake it for dumpbin and say T for any non-static function
    # and D for any global variable.
    # Also find C++ and __fastcall symbols from MSVC++,
    # which start with @@ or ?.
    lt_cv_sys_global_symbol_pipe="$AWK '"\
"     {last_section=section; section=\$ 3};"\
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
"     \$ 0!~/External *\|/{next};"\
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
"     {if(hide[section]) next};"\
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
"     s[1]~/^[@@?]/{print s[1], s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@@\"); print t[1], substr(t[1],length(prfx))}"\
"     ' prfx=^$ac_symprfx"
  else
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  fi
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"

  # Check to see that the pipe works correctly.
  pipe_works=no

  rm -f conftest*
  cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(void);
void nm_test_func(void){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
_LT_EOF

  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<_LT_EOF > conftest.$ac_ext
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
/* DATA imports from DLLs on WIN32 con't be const, because runtime
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
# define LT_DLSYM_CONST
#elif defined(__osf__)
/* This system does not cope well with relocations in const data.  */
# define LT_DLSYM_CONST
#else
# define LT_DLSYM_CONST const
#endif

#ifdef __cplusplus
extern "C" {
#endif

_LT_EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'

	  cat <<_LT_EOF >> conftest.$ac_ext

/* The mapping between symbol names and symbols.  */
LT_DLSYM_CONST struct {
  const char *name;
  void       *address;
}
lt__PROGRAM__LTX_preloaded_symbols[] =
{
  { "@@PROGRAM@@", (void *) 0 },
_LT_EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
	  cat <<\_LT_EOF >> conftest.$ac_ext
  {0, (void *) 0}
};

/* This works around a problem in FreeBSD linker */
#ifdef FREEBSD_WORKAROUND
static const void *lt_preloaded_setup() {
  return lt__PROGRAM__LTX_preloaded_symbols;
}
#endif

#ifdef __cplusplus
}
#endif
_LT_EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_globsym_save_LIBS=$LIBS
	  lt_globsym_save_CFLAGS=$CFLAGS
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
	    pipe_works=yes
	  fi
	  LIBS=$lt_globsym_save_LIBS
	  CFLAGS=$lt_globsym_save_CFLAGS
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -rf conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done

fi

if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
fi

# Response file support.
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  nm_file_list_spec='@@'
elif $NM --help 2>/dev/null | grep '[@@]FILE' >/dev/null; then
  nm_file_list_spec='@@'
fi



























{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
$as_echo_n "checking for sysroot... " >&6; }

# Check whether --with-sysroot was given.
if test "${with_sysroot+set}" = set; then :
  withval=$with_sysroot;
else
  with_sysroot=no
fi


lt_sysroot=
case ${with_sysroot} in #(
 yes)
   if test "$GCC" = yes; then
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   fi
   ;; #(
 /*)
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   ;; #(
 no|'')
   ;; #(
 *)
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
$as_echo "${with_sysroot}" >&6; }
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   ;;
esac

 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
$as_echo "${lt_sysroot:-no}" >&6; }





# Check whether --enable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then :
  enableval=$enable_libtool_lock;
fi

test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.$ac_objext` in
      *ELF-32*)
	HPUX_IA64_MODE="32"
	;;
      *ELF-64*)
	HPUX_IA64_MODE="64"
	;;
    esac
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    if test "$lt_cv_prog_gnu_ld" = yes; then
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -melf32bsmip"
	  ;;
	*N32*)
	  LD="${LD-ld} -melf32bmipn32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -melf64bmip"
	;;
      esac
    else
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -32"
	  ;;
	*N32*)
	  LD="${LD-ld} -n32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -64"
	  ;;
      esac
    fi
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
      *32-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_i386_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_i386"
	    ;;
	  ppc64-*linux*|powerpc64-*linux*)
	    LD="${LD-ld} -m elf32ppclinux"
	    ;;
	  s390x-*linux*)
	    LD="${LD-ld} -m elf_s390"
	    ;;
	  sparc64-*linux*)
	    LD="${LD-ld} -m elf32_sparc"
	    ;;
	esac
	;;
      *64-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_x86_64_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_x86_64"
	    ;;
	  ppc*-*linux*|powerpc*-*linux*)
	    LD="${LD-ld} -m elf64ppc"
	    ;;
	  s390*-*linux*|s390*-*tpf*)
	    LD="${LD-ld} -m elf64_s390"
	    ;;
	  sparc*-*linux*)
	    LD="${LD-ld} -m elf64_sparc"
	    ;;
	esac
	;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
if ${lt_cv_cc_needs_belf+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_cc_needs_belf=yes
else
  lt_cv_cc_needs_belf=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
$as_echo "$lt_cv_cc_needs_belf" >&6; }
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
	  LD="${LD-ld} -64"
	fi
	;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;
esac

need_locks="$enable_libtool_lock"

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
set dummy ${ac_tool_prefix}mt; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MANIFEST_TOOL"; then
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
if test -n "$MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
$as_echo "$MANIFEST_TOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  # Extract the first word of "mt", so it can be a program name with args.
set dummy mt; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_MANIFEST_TOOL"; then
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
if test -n "$ac_ct_MANIFEST_TOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_MANIFEST_TOOL" = x; then
    MANIFEST_TOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  fi
else
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
fi

test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
if ${lt_cv_path_mainfest_tool+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_path_mainfest_tool=no
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  cat conftest.err >&5
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
    lt_cv_path_mainfest_tool=yes
  fi
  rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
if test "x$lt_cv_path_mainfest_tool" != xyes; then
  MANIFEST_TOOL=:
fi






  case $host_os in
    rhapsody* | darwin*)
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DSYMUTIL"; then
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DSYMUTIL=$ac_cv_prog_DSYMUTIL
if test -n "$DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
$as_echo "$DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DSYMUTIL"; then
  ac_ct_DSYMUTIL=$DSYMUTIL
  # Extract the first word of "dsymutil", so it can be a program name with args.
set dummy dsymutil; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DSYMUTIL"; then
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
if test -n "$ac_ct_DSYMUTIL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
$as_echo "$ac_ct_DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DSYMUTIL" = x; then
    DSYMUTIL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DSYMUTIL=$ac_ct_DSYMUTIL
  fi
else
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NMEDIT"; then
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
NMEDIT=$ac_cv_prog_NMEDIT
if test -n "$NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
$as_echo "$NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_NMEDIT"; then
  ac_ct_NMEDIT=$NMEDIT
  # Extract the first word of "nmedit", so it can be a program name with args.
set dummy nmedit; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_NMEDIT"; then
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
if test -n "$ac_ct_NMEDIT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
$as_echo "$ac_ct_NMEDIT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_NMEDIT" = x; then
    NMEDIT=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    NMEDIT=$ac_ct_NMEDIT
  fi
else
  NMEDIT="$ac_cv_prog_NMEDIT"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
set dummy ${ac_tool_prefix}lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$LIPO"; then
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
LIPO=$ac_cv_prog_LIPO
if test -n "$LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
$as_echo "$LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_LIPO"; then
  ac_ct_LIPO=$LIPO
  # Extract the first word of "lipo", so it can be a program name with args.
set dummy lipo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_LIPO"; then
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_LIPO="lipo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
if test -n "$ac_ct_LIPO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
$as_echo "$ac_ct_LIPO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_LIPO" = x; then
    LIPO=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    LIPO=$ac_ct_LIPO
  fi
else
  LIPO="$ac_cv_prog_LIPO"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL"; then
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OTOOL=$ac_cv_prog_OTOOL
if test -n "$OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
$as_echo "$OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL"; then
  ac_ct_OTOOL=$OTOOL
  # Extract the first word of "otool", so it can be a program name with args.
set dummy otool; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL"; then
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL="otool"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
if test -n "$ac_ct_OTOOL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
$as_echo "$ac_ct_OTOOL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL" = x; then
    OTOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL=$ac_ct_OTOOL
  fi
else
  OTOOL="$ac_cv_prog_OTOOL"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_OTOOL64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL64"; then
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
OTOOL64=$ac_cv_prog_OTOOL64
if test -n "$OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
$as_echo "$OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL64"; then
  ac_ct_OTOOL64=$OTOOL64
  # Extract the first word of "otool64", so it can be a program name with args.
set dummy otool64; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL64"; then
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL64="otool64"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
if test -n "$ac_ct_OTOOL64"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
$as_echo "$ac_ct_OTOOL64" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL64" = x; then
    OTOOL64=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL64=$ac_ct_OTOOL64
  fi
else
  OTOOL64="$ac_cv_prog_OTOOL64"
fi



























    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
$as_echo_n "checking for -single_module linker flag... " >&6; }
if ${lt_cv_apple_cc_single_mod+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_apple_cc_single_mod=no
      if test -z "${LT_MULTI_MODULE}"; then
	# By default we will add the -single_module flag. You can override
	# by either setting the environment variable LT_MULTI_MODULE
	# non-empty at configure time, or by adding -multi_module to the
	# link flags.
	rm -rf libconftest.dylib*
	echo "int foo(void){return 1;}" > conftest.c
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-dynamiclib -Wl,-single_module conftest.c" >&5
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
        _lt_result=$?
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
	  lt_cv_apple_cc_single_mod=yes
	else
	  cat conftest.err >&5
	fi
	rm -rf libconftest.dylib*
	rm -f conftest.*
      fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
if ${lt_cv_ld_exported_symbols_list+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_exported_symbols_list=no
      save_LDFLAGS=$LDFLAGS
      echo "_main" > conftest.sym
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_ld_exported_symbols_list=yes
else
  lt_cv_ld_exported_symbols_list=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
$as_echo_n "checking for -force_load linker flag... " >&6; }
if ${lt_cv_ld_force_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_force_load=no
      cat > conftest.c << _LT_EOF
int forced_loaded() { return 2;}
_LT_EOF
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
      echo "$AR cru libconftest.a conftest.o" >&5
      $AR cru libconftest.a conftest.o 2>&5
      echo "$RANLIB libconftest.a" >&5
      $RANLIB libconftest.a 2>&5
      cat > conftest.c << _LT_EOF
int main() { return 0;}
_LT_EOF
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
      _lt_result=$?
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
	lt_cv_ld_force_load=yes
      else
	cat conftest.err >&5
      fi
        rm -f conftest.err libconftest.a conftest conftest.c
        rm -rf conftest.dSYM

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
$as_echo "$lt_cv_ld_force_load" >&6; }
    case $host_os in
    rhapsody* | darwin1.[012])
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
    darwin1.*)
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    darwin*) # darwin 5.x on
      # if running on 10.5 or later, the deployment target defaults
      # to the OS version, if on x86, and 10.4, the deployment
      # target defaults to 10.4. Don't you love it?
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
	10.[012]*)
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
	10.*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
      esac
    ;;
  esac
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
      _lt_dar_single_mod='$single_module'
    fi
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
    else
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    fi
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
      _lt_dsymutil='~$DSYMUTIL $lib || :'
    else
      _lt_dsymutil=
    fi
    ;;
  esac

for ac_header in dlfcn.h
do :
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
"
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DLFCN_H 1
_ACEOF

fi

done




func_stripname_cnf ()
{
  case ${2} in
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  esac
} # func_stripname_cnf





# Set options



        enable_dlopen=no


  enable_win32_dll=no



  # Check whether --enable-static was given.
if test "${enable_static+set}" = set; then :
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_static=yes
fi










# Check whether --with-pic was given.
if test "${with_pic+set}" = set; then :
  withval=$with_pic; pic_mode="$withval"
else
  pic_mode=default
fi


test -z "$pic_mode" && pic_mode=default







  # Check whether --enable-fast-install was given.
if test "${enable_fast_install+set}" = set; then :
  enableval=$enable_fast_install; p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
    *)
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_fast_install=yes
fi











# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ltmain"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'


























test -z "$LN_S" && LN_S="ln -s"














if test -n "${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
$as_echo_n "checking for objdir... " >&6; }
if ${lt_cv_objdir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
fi
rmdir .libs 2>/dev/null
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
$as_echo "$lt_cv_objdir" >&6; }
objdir=$lt_cv_objdir





cat >>confdefs.h <<_ACEOF
#define LT_OBJDIR "$lt_cv_objdir/"
_ACEOF




case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
esac

# Global variables:
ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a

with_gnu_ld="$lt_cv_prog_gnu_ld"

old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
test -z "$LD" && LD=ld
test -z "$ac_objext" && ac_objext=o

for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`


# Only perform the check for file, if the check method requires it
test -z "$MAGIC_CMD" && MAGIC_CMD=file
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
if ${lt_cv_path_MAGIC_CMD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi





if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
$as_echo_n "checking for file... " >&6; }
if ${lt_cv_path_MAGIC_CMD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@@gnu.org

_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  else
    MAGIC_CMD=:
  fi
fi

  fi
  ;;
esac

# Use C for the default configuration in the libtool script

lt_save_CC="$CC"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# Source file extension for C test sources.
ac_ext=c

# Object file extension for compiled C test sources.
objext=o
objext=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;"

# Code to be used in simple link tests
lt_simple_link_test_code='int main(){return(0);}'







# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC

# Save the default compiler, since it gets overwritten when the other
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
compiler_DEFAULT=$CC

# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


## CAVEAT EMPTOR:
## There is no encapsulation within the following macros, do not change
## the running order or otherwise move them around unless you know exactly
## what you are doing...
if test -n "$compiler"; then

lt_prog_compiler_no_builtin_flag=

if test "$GCC" = yes; then
  case $cc_basename in
  nvcc*)
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  *)
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  esac

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }

if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
else
    :
fi

fi






  lt_prog_compiler_wl=
lt_prog_compiler_pic=
lt_prog_compiler_static=


  if test "$GCC" = yes; then
    lt_prog_compiler_wl='-Wl,'
    lt_prog_compiler_static='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      ;;

    haiku*)
      # PIC is the default for Haiku.
      # The "-static" flag exists, but is broken.
      lt_prog_compiler_static=
      ;;

    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='-fPIC'
	;;
      esac
      ;;

    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared=no
      enable_shared=no
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic=-Kconform_pic
      fi
      ;;

    *)
      lt_prog_compiler_pic='-fPIC'
      ;;
    esac

    case $cc_basename in
    nvcc*) # Cuda Compiler Driver 2.2
      lt_prog_compiler_wl='-Xlinker '
      lt_prog_compiler_pic='-Xcompiler -fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      else
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static='-non_shared'
      ;;

    linux* | k*bsd*-gnu | kopensolaris*-gnu)
      case $cc_basename in
      # old Intel for x86_64 which still supported -KPIC.
      ecc*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-KPIC'
	lt_prog_compiler_static='-static'
        ;;
      # icc used to be incompatible with GCC.
      # ICC 10 doesn't accept -KPIC any more.
      icc* | ifort*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
        ;;
      # Lahey Fortran 8.1.
      lf95*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='--shared'
	lt_prog_compiler_static='--static'
	;;
      nagfor*)
	# NAG Fortran compiler
	lt_prog_compiler_wl='-Wl,-Wl,,'
	lt_prog_compiler_pic='-PIC'
	lt_prog_compiler_static='-Bstatic'
	;;
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fpic'
	lt_prog_compiler_static='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static='-non_shared'
        ;;
      xl* | bgxl* | bgf* | mpixl*)
	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-qpic'
	lt_prog_compiler_static='-qstaticlink'
	;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ F* | *Sun*Fortran*)
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl=''
	  ;;
	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Wl,'
	  ;;
	esac
	;;
      esac
      ;;

    newsos6)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static='-non_shared'
      ;;

    rdos*)
      lt_prog_compiler_static='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
	lt_prog_compiler_wl='-Qoption ld ';;
      *)
	lt_prog_compiler_wl='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl='-Qoption ld '
      lt_prog_compiler_pic='-PIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic='-Kconform_pic'
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_can_build_shared=no
      ;;

    uts4*)
      lt_prog_compiler_pic='-pic'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared=no
      ;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic=
    ;;
  *)
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
if ${lt_cv_prog_compiler_pic+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
if ${lt_cv_prog_compiler_pic_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }

if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
    case $lt_prog_compiler_pic in
     "" | " "*) ;;
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
     esac
else
    lt_prog_compiler_pic=
     lt_prog_compiler_can_build_shared=no
fi

fi











#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if ${lt_cv_prog_compiler_static_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works=yes
       fi
     else
       lt_cv_prog_compiler_static_works=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }

if test x"$lt_cv_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi







  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }






  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi






  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  runpath_var=
  allow_undefined_flag=
  always_export_symbols=no
  archive_cmds=
  archive_expsym_cmds=
  compiler_needs_object=no
  enable_shared_with_static_runtimes=no
  export_dynamic_flag_spec=
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  hardcode_automatic=no
  hardcode_direct=no
  hardcode_direct_absolute=no
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  inherit_rpath=no
  link_all_deplibs=unknown
  module_cmds=
  module_expsym_cmds=
  old_archive_from_new_cmds=
  old_archive_from_expsyms_cmds=
  thread_safe_flag_spec=
  whole_archive_flag_spec=
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  # Exclude shared library initialization/finalization symbols.
  extract_expsyms_cmds=

  case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs=yes

  # On some targets, GNU ld is compatible enough with the native linker
  # that we're better off using the native interface for both.
  lt_use_gnu_ld_interface=no
  if test "$with_gnu_ld" = yes; then
    case $host_os in
      aix*)
	# The AIX port of GNU ld has always aspired to compatibility
	# with the native linker.  However, as the warning in the GNU ld
	# block says, versions before 2.19.5* couldn't really create working
	# shared libraries, regardless of the interface used.
	case `$LD -v 2>&1` in
	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
	  *)
	    lt_use_gnu_ld_interface=yes
	    ;;
	esac
	;;
      *)
	lt_use_gnu_ld_interface=yes
	;;
    esac
  fi

  if test "$lt_use_gnu_ld_interface" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    else
      whole_archive_flag_spec=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>&1` in
      *GNU\ gold*) supports_anon_versioning=yes ;;
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix[3-9]*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.19, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to install binutils
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
*** You will then need to restart the configuration process.

_LT_EOF
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
      ;;

    beos*)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag=unsupported
	# Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec='-L$libdir'
      export_dynamic_flag_spec='${wl}--export-all-symbols'
      allow_undefined_flag=unsupported
      always_export_symbols=no
      enable_shared_with_static_runtimes=yes
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'

      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs=no
      fi
      ;;

    haiku*)
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      link_all_deplibs=yes
      ;;

    interix[3-9]*)
      hardcode_direct=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
      tmp_diet=no
      if test "$host_os" = linux-dietlibc; then
	case $cc_basename in
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
	esac
      fi
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
	 && test "$tmp_diet" = no
      then
	tmp_addflag=' $pic_flag'
	tmp_sharedflag='-shared'
	case $cc_basename,$host_cpu in
        pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95* | pgfortran*)
					# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	lf95*)				# Lahey Fortran 8.1
	  whole_archive_flag_spec=
	  tmp_sharedflag='--shared' ;;
	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
	  tmp_sharedflag='-qmkshrobj'
	  tmp_addflag= ;;
	nvcc*)	# Cuda Compiler Driver 2.2
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  ;;
	esac
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)			# Sun C 5.9
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  tmp_sharedflag='-G' ;;
	*Sun\ F*)			# Sun Fortran 8.3
	  tmp_sharedflag='-G' ;;
	esac
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

        if test "x$supports_anon_versioning" = xyes; then
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	    echo "local: *; };" >> $output_objdir/$libname.ver~
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
        fi

	case $cc_basename in
	xlf* | bgf* | bgxlf* | mpixlf*)
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
	  hardcode_libdir_flag_spec=
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
	  if test "x$supports_anon_versioning" = xyes; then
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	      echo "local: *; };" >> $output_objdir/$libname.ver~
	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
	  fi
	  ;;
	esac
      else
        ld_shlibs=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  # For security reasons, it is highly recommended that you always
	  # use absolute paths for naming shared libraries, and exclude the
	  # DT_RUNPATH tag from executables and libraries.  But doing so
	  # requires that you compile everything twice, which is a pain.
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  else
	    ld_shlibs=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    *)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;
    esac

    if test "$ld_shlibs" = no; then
      runpath_var=
      hardcode_libdir_flag_spec=
      export_dynamic_flag_spec=
      whole_archive_flag_spec=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag=unsupported
      always_export_symbols=yes
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct=unsupported
      fi
      ;;

    aix[4-9]*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	# Also, AIX nm treats weak defined symbols like other global
	# defined symbols, whereas GNU nm marks them as "W".
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	  for ld_flag in $LDFLAGS; do
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
	    aix_use_runtimelinking=yes
	    break
	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds=''
      hardcode_direct=yes
      hardcode_direct_absolute=yes
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      file_list_spec='${wl}-f,'

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	  # We have reworked collect2
	  :
	  else
	  # We have old collect2
	  hardcode_direct=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L=yes
	  hardcode_libdir_flag_spec='-L$libdir'
	  hardcode_libdir_separator=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      export_dynamic_flag_spec='${wl}-bexpall'
      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='-berok'
        # Determine the default libpath from the value encoded in an
        # empty executable.
        if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath_+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath_
fi

        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
      else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag="-z nodefs"
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an
	 # empty executable.
	 if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath_+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath_"; then
    lt_cv_aix_libpath_="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath_
fi

	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag=' ${wl}-bernotok'
	  allow_undefined_flag=' ${wl}-berok'
	  if test "$with_gnu_ld" = yes; then
	    # We only use this code for GNU lds that support --whole-archive.
	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	  else
	    # Exported symbols can be pulled into shared objects from archives
	    whole_archive_flag_spec='$convenience'
	  fi
	  archive_cmds_need_lc=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec=-rdynamic
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      case $cc_basename in
      cl*)
	# Native MSVC
	hardcode_libdir_flag_spec=' '
	allow_undefined_flag=unsupported
	always_export_symbols=yes
	file_list_spec='@@'
	# Tell ltmain to make .lib files, not .a files.
	libext=lib
	# Tell ltmain to make .dll files, not .so files.
	shrext_cmds=".dll"
	# FIXME: Setting linknames here is a bad hack.
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	  else
	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	  fi~
	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	  linknames='
	# The linker will not automatically build a static lib if we build a DLL.
	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
	enable_shared_with_static_runtimes=yes
	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
	# Don't use ranlib
	old_postinstall_cmds='chmod 644 $oldlib'
	postlink_cmds='lt_outputfile="@@OUTPUT@@"~
	  lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	  case $lt_outputfile in
	    *.exe|*.EXE) ;;
	    *)
	      lt_outputfile="$lt_outputfile.exe"
	      lt_tool_outputfile="$lt_tool_outputfile.exe"
	      ;;
	  esac~
	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	    $RM "$lt_outputfile.manifest";
	  fi'
	;;
      *)
	# Assume MSVC wrapper
	hardcode_libdir_flag_spec=' '
	allow_undefined_flag=unsupported
	# Tell ltmain to make .lib files, not .a files.
	libext=lib
	# Tell ltmain to make .dll files, not .so files.
	shrext_cmds=".dll"
	# FIXME: Setting linknames here is a bad hack.
	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
	# The linker will automatically build a .lib file if we build a DLL.
	old_archive_from_new_cmds='true'
	# FIXME: Should let the user specify the lib program.
	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
	enable_shared_with_static_runtimes=yes
	;;
      esac
      ;;

    darwin* | rhapsody*)


  archive_cmds_need_lc=no
  hardcode_direct=no
  hardcode_automatic=yes
  hardcode_shlibpath_var=unsupported
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  else
    whole_archive_flag_spec=''
  fi
  link_all_deplibs=yes
  allow_undefined_flag="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=func_echo_all
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"

  else
  ld_shlibs=no
  fi

      ;;

    dgux*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    freebsd1*)
      ld_shlibs=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | dragonfly*)
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_direct=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L=yes
      export_dynamic_flag_spec='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_flag_spec_ld='+b $libdir'
	hardcode_libdir_separator=:
	hardcode_direct=yes
	hardcode_direct_absolute=yes
	export_dynamic_flag_spec='${wl}-E'
	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)

	  # Older versions of the 11.00 compiler do not understand -b yet
	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
$as_echo_n "checking if $CC understands -b... " >&6; }
if ${lt_cv_prog_compiler__b+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler__b=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS -b"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler__b=yes
       fi
     else
       lt_cv_prog_compiler__b=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
$as_echo "$lt_cv_prog_compiler__b" >&6; }

if test x"$lt_cv_prog_compiler__b" = xyes; then
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
else
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
fi

	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_direct=no
	  hardcode_shlibpath_var=no
	  ;;
	*)
	  hardcode_direct=yes
	  hardcode_direct_absolute=yes
	  export_dynamic_flag_spec='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	# Try to use the -exported_symbol ld option, if it does not
	# work, assume that -exports_file does not work either and
	# implicitly export all symbols.
	# This should be the same for all languages, so no per-tag cache variable.
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
if ${lt_cv_irix_exported_symbol+:} false; then :
  $as_echo_n "(cached) " >&6
else
  save_LDFLAGS="$LDFLAGS"
	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo (void) { return 0; }
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  lt_cv_irix_exported_symbol=yes
else
  lt_cv_irix_exported_symbol=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
           LDFLAGS="$save_LDFLAGS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
	if test "$lt_cv_irix_exported_symbol" = yes; then
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
	fi
      else
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      inherit_rpath=yes
      link_all_deplibs=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    newsos6)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_shlibpath_var=no
      ;;

    *nto* | *qnx*)
      ;;

    openbsd*)
      if test -f /usr/libexec/ld.so; then
	hardcode_direct=yes
	hardcode_shlibpath_var=no
	hardcode_direct_absolute=yes
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	  export_dynamic_flag_spec='${wl}-E'
	else
	  case $host_os in
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	     hardcode_libdir_flag_spec='-R$libdir'
	     ;;
	   *)
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	     ;;
	  esac
	fi
      else
	ld_shlibs=no
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec='-rpath $libdir'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_separator=:
      ;;

    solaris*)
      no_undefined_flag=' -z defs'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
      else
	case `$CC -V 2>&1` in
	*"Compilers 5.0"*)
	  wlarc=''
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
	  ;;
	*)
	  wlarc='${wl}'
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
	  ;;
	esac
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_shlibpath_var=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
	# The compiler driver will combine and reorder linker options,
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
	# but is careful enough not to reorder.
	# Supported since Solaris 2.6 (maybe 2.5.1?)
	if test "$GCC" = yes; then
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
	else
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
	fi
	;;
      esac
      link_all_deplibs=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds='$CC -r -o $output$reload_objs'
	  hardcode_direct=no
        ;;
	motorola)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var=no
      ;;

    sysv4.3*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag='${wl}-z,text'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag='${wl}-z,text'
      allow_undefined_flag='${wl}-z,nodefs'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      export_dynamic_flag_spec='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    *)
      ld_shlibs=no
      ;;
    esac

    if test x$host_vendor = xsni; then
      case $host in
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
	export_dynamic_flag_spec='${wl}-Blargedynsym'
	;;
      esac
    fi
  fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
$as_echo "$ld_shlibs" >&6; }
test "$ld_shlibs" = no && can_build_shared=no

with_gnu_ld=$with_gnu_ld















#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
if ${lt_cv_archive_cmds_need_lc+:} false; then :
  $as_echo_n "(cached) " >&6
else
  $RM conftest*
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext

	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
	  soname=conftest
	  lib=conftest
	  libobjs=conftest.$ac_objext
	  deplibs=
	  wl=$lt_prog_compiler_wl
	  pic_flag=$lt_prog_compiler_pic
	  compiler_flags=-v
	  linker_flags=-v
	  verstring=
	  output_objdir=.
	  libname=conftest
	  lt_save_allow_undefined_flag=$allow_undefined_flag
	  allow_undefined_flag=
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	  then
	    lt_cv_archive_cmds_need_lc=no
	  else
	    lt_cv_archive_cmds_need_lc=yes
	  fi
	  allow_undefined_flag=$lt_save_allow_undefined_flag
	else
	  cat conftest.err 1>&5
	fi
	$RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
      ;;
    esac
  fi
  ;;
esac





























































































































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

if test "$GCC" = yes; then
  case $host_os in
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
    *) lt_awk_arg="/^libraries:/" ;;
  esac
  case $host_os in
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
    *) lt_sed_strip_eq="s,=/,/,g" ;;
  esac
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  case $lt_search_path_spec in
  *\;*)
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
    ;;
  *)
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
    ;;
  esac
  # Ok, now we have the path, separated by spaces, we can step through it
  # and add multilib dir if necessary.
  lt_tmp_lt_search_path_spec=
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  for lt_sys_path in $lt_search_path_spec; do
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
    else
      test -d "$lt_sys_path" && \
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
    fi
  done
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
BEGIN {RS=" "; FS="/|\n";} {
  lt_foo="";
  lt_count=0;
  for (lt_i = NF; lt_i > 0; lt_i--) {
    if ($lt_i != "" && $lt_i != ".") {
      if ($lt_i == "..") {
        lt_count++;
      } else {
        if (lt_count == 0) {
          lt_foo="/" $lt_i lt_foo;
        } else {
          lt_count--;
        }
      }
    }
  }
  if (lt_foo != "") { lt_freq[lt_foo]++; }
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
}'`
  # AWK program above erroneously prepends '/' to C:/dos/paths
  # for these hosts.
  case $host_os in
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  esac
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$cc_basename in
  yes,*)
    # gcc
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'

      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    dynamic_linker='Win32 ld.exe'
    ;;

  *,cl*)
    # Native MSVC
    libname_spec='$name'
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'

    case $build_os in
    mingw*)
      sys_lib_search_path_spec=
      lt_save_ifs=$IFS
      IFS=';'
      for lt_path in $LIB
      do
        IFS=$lt_save_ifs
        # Let DOS variable expansion print the short 8.3 style file name.
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @@echo %~si"`
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
      done
      IFS=$lt_save_ifs
      # Convert to MSYS style.
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
      ;;
    cygwin*)
      # Convert to unix form, then to dos form, then back to unix form
      # but this time dos style (no spaces!) so that the unix form looks
      # like /cygdrive/c/PROGRA~1:/cygdr...
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      ;;
    *)
      sys_lib_search_path_spec="$LIB"
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      fi
      # FIXME: find the short name or the path components, as spaces are
      # common. (e.g. "Program Files" -> "PROGRA~1")
      ;;
    esac

    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
    dynamic_linker='Win32 link.exe'
    ;;

  *)
    # Assume MSVC wrapper
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    dynamic_linker='Win32 ld.exe'
    ;;
  esac
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

haiku*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  dynamic_linker="$host_os runtime_loader"
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  postinstall_cmds='chmod 555 $lib'
  # or fails outright, so override atomically:
  install_override_mode=555
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no

  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




























































































  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" ||
   test -n "$runpath_var" ||
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi






  if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

    ;;

  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if ${ac_cv_lib_dld_shl_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if ${ac_cv_lib_svld_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_svld_dlopen=yes
else
  ac_cv_lib_svld_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if ${ac_cv_lib_dld_dld_link+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
$as_echo "$lt_cv_dlopen_self" >&6; }

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if ${lt_cv_dlopen_self_static+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
#line $LINENO "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

/* When -fvisbility=hidden is used, assume the code has been annotated
   correspondingly for the symbols needed.  */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif

int fnord () { return 42; }
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else
        {
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
          else puts (dlerror ());
	}
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

  return status;
}
_LT_EOF
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi

















striplib=
old_striplib=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP" ; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi












  # Report which library types will actually be built
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test "$can_build_shared" = "no" && enable_shared=no

  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test "$enable_shared" = yes && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;

  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
$as_echo "$enable_static" >&6; }




fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"

      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if ${ac_cv_prog_CXXCPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
$as_echo "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
  _lt_caught_CXX_error=yes
fi

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

archive_cmds_need_lc_CXX=no
allow_undefined_flag_CXX=
always_export_symbols_CXX=no
archive_expsym_cmds_CXX=
compiler_needs_object_CXX=no
export_dynamic_flag_spec_CXX=
hardcode_direct_CXX=no
hardcode_direct_absolute_CXX=no
hardcode_libdir_flag_spec_CXX=
hardcode_libdir_flag_spec_ld_CXX=
hardcode_libdir_separator_CXX=
hardcode_minus_L_CXX=no
hardcode_shlibpath_var_CXX=unsupported
hardcode_automatic_CXX=no
inherit_rpath_CXX=no
module_cmds_CXX=
module_expsym_cmds_CXX=
link_all_deplibs_CXX=unknown
old_archive_cmds_CXX=$old_archive_cmds
reload_flag_CXX=$reload_flag
reload_cmds_CXX=$reload_cmds
no_undefined_flag_CXX=
whole_archive_flag_spec_CXX=
enable_shared_with_static_runtimes_CXX=no

# Source file extension for C++ test sources.
ac_ext=cpp

# Object file extension for compiled C++ test sources.
objext=o
objext_CXX=$objext

# No sense in running all these tests if we already determined that
# the CXX compiler isn't working.  Some variables (like enable_shared)
# are currently assumed to apply to all compilers on this platform,
# and will be corrupted by setting them based on a non-working compiler.
if test "$_lt_caught_CXX_error" != yes; then
  # Code to be used in simple compile tests
  lt_simple_compile_test_code="int some_variable = 0;"

  # Code to be used in simple link tests
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'

  # ltmain only uses $CC for tagged configurations so make sure $CC is set.






# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


  # save warnings/boilerplate of simple test code
  ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*

  ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*


  # Allow CC to be a program name with arguments.
  lt_save_CC=$CC
  lt_save_CFLAGS=$CFLAGS
  lt_save_LD=$LD
  lt_save_GCC=$GCC
  GCC=$GXX
  lt_save_with_gnu_ld=$with_gnu_ld
  lt_save_path_LD=$lt_cv_path_LD
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  else
    $as_unset lt_cv_prog_gnu_ld
  fi
  if test -n "${lt_cv_path_LDCXX+set}"; then
    lt_cv_path_LD=$lt_cv_path_LDCXX
  else
    $as_unset lt_cv_path_LD
  fi
  test -z "${LDCXX+set}" || LD=$LDCXX
  CC=${CXX-"c++"}
  CFLAGS=$CXXFLAGS
  compiler=$CC
  compiler_CXX=$CC
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`


  if test -n "$compiler"; then
    # We don't want -fno-exception when compiling C++ code, so set the
    # no_builtin_flag separately
    if test "$GXX" = yes; then
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
    else
      lt_prog_compiler_no_builtin_flag_CXX=
    fi

    if test "$GXX" = yes; then
      # Set up default GNU C++ configuration



# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld







      # Check if GNU C++ uses GNU ld as the underlying linker, since the
      # archiving commands below assume that GNU ld is being used.
      if test "$with_gnu_ld" = yes; then
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'

        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

        # If archive_cmds runs LD, not CC, wlarc should be empty
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
        #     investigate it a little bit more. (MM)
        wlarc='${wl}'

        # ancient GNU ld didn't support --whole-archive et. al.
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
	  $GREP 'no-whole-archive' > /dev/null; then
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
        else
          whole_archive_flag_spec_CXX=
        fi
      else
        with_gnu_ld=no
        wlarc=

        # A generic and very simple default shared library creation
        # command for GNU C++ for the case where it uses the native
        # linker, instead of GNU ld.  If possible, this setting should
        # overridden to take advantage of the native linker features on
        # the platform it is being used on.
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
      fi

      # Commands to make compiler produce verbose output that lists
      # what "hidden" libraries, object files and flags are used when
      # linking a shared library.
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

    else
      GXX=no
      with_gnu_ld=no
      wlarc=
    fi

    # PORTME: fill in a description of your system's C++ link characteristics
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
    ld_shlibs_CXX=yes
    case $host_os in
      aix3*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
      aix[4-9]*)
        if test "$host_cpu" = ia64; then
          # On IA64, the linker does run time linking by default, so we don't
          # have to do anything special.
          aix_use_runtimelinking=no
          exp_sym_flag='-Bexport'
          no_entry_flag=""
        else
          aix_use_runtimelinking=no

          # Test if we are trying to use run time linking or normal
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
          # need to do runtime linking.
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
	    for ld_flag in $LDFLAGS; do
	      case $ld_flag in
	      *-brtl*)
	        aix_use_runtimelinking=yes
	        break
	        ;;
	      esac
	    done
	    ;;
          esac

          exp_sym_flag='-bexport'
          no_entry_flag='-bnoentry'
        fi

        # When large executables or shared objects are built, AIX ld can
        # have problems creating the table of contents.  If linking a library
        # or program results in "error TOC overflow" add -mminimal-toc to
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

        archive_cmds_CXX=''
        hardcode_direct_CXX=yes
        hardcode_direct_absolute_CXX=yes
        hardcode_libdir_separator_CXX=':'
        link_all_deplibs_CXX=yes
        file_list_spec_CXX='${wl}-f,'

        if test "$GXX" = yes; then
          case $host_os in aix4.[012]|aix4.[012].*)
          # We only want to do this on AIX 4.2 and lower, the check
          # below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" &&
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
	  then
	    # We have reworked collect2
	    :
	  else
	    # We have old collect2
	    hardcode_direct_CXX=unsupported
	    # It fails to find uninstalled libraries when the uninstalled
	    # path is not listed in the libpath.  Setting hardcode_minus_L
	    # to unsupported forces relinking
	    hardcode_minus_L_CXX=yes
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
	    hardcode_libdir_separator_CXX=
	  fi
          esac
          shared_flag='-shared'
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag="$shared_flag "'${wl}-G'
	  fi
        else
          # not using gcc
          if test "$host_cpu" = ia64; then
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	  # chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
          else
	    if test "$aix_use_runtimelinking" = yes; then
	      shared_flag='${wl}-G'
	    else
	      shared_flag='${wl}-bM:SRE'
	    fi
          fi
        fi

        export_dynamic_flag_spec_CXX='${wl}-bexpall'
        # It seems that -bexpall does not export symbols beginning with
        # underscore (_), so it is better to generate a list of symbols to
	# export.
        always_export_symbols_CXX=yes
        if test "$aix_use_runtimelinking" = yes; then
          # Warning - without using the other runtime loading flags (-brtl),
          # -berok will link without error, but may produce a broken library.
          allow_undefined_flag_CXX='-berok'
          # Determine the default libpath from the value encoded in an empty
          # executable.
          if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"

          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
        else
          if test "$host_cpu" = ia64; then
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
	    allow_undefined_flag_CXX="-z nodefs"
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
          else
	    # Determine the default libpath from the value encoded in an
	    # empty executable.
	    if test "${lt_cv_aix_libpath+set}" = set; then
  aix_libpath=$lt_cv_aix_libpath
else
  if ${lt_cv_aix_libpath__CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :

  lt_aix_libpath_sed='
      /Import File Strings/,/^$/ {
	  /^0/ {
	      s/^0  *\([^ ]*\) *$/\1/
	      p
	  }
      }'
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  # Check for a 64-bit object if we didn't find anything.
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test -z "$lt_cv_aix_libpath__CXX"; then
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  fi

fi

  aix_libpath=$lt_cv_aix_libpath__CXX
fi

	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
	    # Warning - without using the other run time loading flags,
	    # -berok will link without error, but may produce a broken library.
	    no_undefined_flag_CXX=' ${wl}-bernotok'
	    allow_undefined_flag_CXX=' ${wl}-berok'
	    if test "$with_gnu_ld" = yes; then
	      # We only use this code for GNU lds that support --whole-archive.
	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    else
	      # Exported symbols can be pulled into shared objects from archives
	      whole_archive_flag_spec_CXX='$convenience'
	    fi
	    archive_cmds_need_lc_CXX=yes
	    # This is similar to how AIX traditionally builds its shared
	    # libraries.
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
          fi
        fi
        ;;

      beos*)
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	  allow_undefined_flag_CXX=unsupported
	  # Joseph Beckenbach <jrb3@@best.com> says some releases of gcc
	  # support --undefined.  This deserves some investigation.  FIXME
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	else
	  ld_shlibs_CXX=no
	fi
	;;

      chorus*)
        case $cc_basename in
          *)
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	  ;;
        esac
        ;;

      cygwin* | mingw* | pw32* | cegcc*)
	case $GXX,$cc_basename in
	,cl* | no,cl*)
	  # Native MSVC
	  # hardcode_libdir_flag_spec is actually meaningless, as there is
	  # no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX=' '
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=yes
	  file_list_spec_CXX='@@'
	  # Tell ltmain to make .lib files, not .a files.
	  libext=lib
	  # Tell ltmain to make .dll files, not .so files.
	  shrext_cmds=".dll"
	  # FIXME: Setting linknames here is a bad hack.
	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
	    else
	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
	    fi~
	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
	    linknames='
	  # The linker will not automatically build a static lib if we build a DLL.
	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
	  enable_shared_with_static_runtimes_CXX=yes
	  # Don't use ranlib
	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
	  postlink_cmds_CXX='lt_outputfile="@@OUTPUT@@"~
	    lt_tool_outputfile="@@TOOL_OUTPUT@@"~
	    case $lt_outputfile in
	      *.exe|*.EXE) ;;
	      *)
		lt_outputfile="$lt_outputfile.exe"
		lt_tool_outputfile="$lt_tool_outputfile.exe"
		;;
	    esac~
	    func_to_tool_file "$lt_outputfile"~
	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
	      $RM "$lt_outputfile.manifest";
	    fi'
	  ;;
	*)
	  # g++
	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
	  # as there is no search path for DLLs.
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
	  allow_undefined_flag_CXX=unsupported
	  always_export_symbols_CXX=no
	  enable_shared_with_static_runtimes_CXX=yes

	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	    # If the export-symbols file already is a .def file (1st line
	    # is EXPORTS), use it as is; otherwise, prepend...
	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	      cp $export_symbols $output_objdir/$soname.def;
	    else
	      echo EXPORTS > $output_objdir/$soname.def;
	      cat $export_symbols >> $output_objdir/$soname.def;
	    fi~
	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	  else
	    ld_shlibs_CXX=no
	  fi
	  ;;
	esac
	;;
      darwin* | rhapsody*)


  archive_cmds_need_lc_CXX=no
  hardcode_direct_CXX=no
  hardcode_automatic_CXX=yes
  hardcode_shlibpath_var_CXX=unsupported
  if test "$lt_cv_ld_force_load" = "yes"; then
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  else
    whole_archive_flag_spec_CXX=''
  fi
  link_all_deplibs_CXX=yes
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=func_echo_all
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
    fi

  else
  ld_shlibs_CXX=no
  fi

	;;

      dgux*)
        case $cc_basename in
          ec++*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          ghcx*)
	    # Green Hills C++ Compiler
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      freebsd[12]*)
        # C++ shared libraries reported to be fairly broken before
	# switch to ELF
        ld_shlibs_CXX=no
        ;;

      freebsd-elf*)
        archive_cmds_need_lc_CXX=no
        ;;

      freebsd* | dragonfly*)
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
        # conventions
        ld_shlibs_CXX=yes
        ;;

      gnu*)
        ;;

      haiku*)
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
        link_all_deplibs_CXX=yes
        ;;

      hpux9*)
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        export_dynamic_flag_spec_CXX='${wl}-E'
        hardcode_direct_CXX=yes
        hardcode_minus_L_CXX=yes # Not in the search PATH,
				             # but as the default
				             # location of the library.

        case $cc_basename in
          CC*)
            # FIXME: insert proper C++ library support
            ld_shlibs_CXX=no
            ;;
          aCC*)
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            # Commands to make compiler produce verbose output that lists
            # what "hidden" libraries, object files and flags are used when
            # linking a shared library.
            #
            # There doesn't appear to be a way to prevent this compiler from
            # explicitly linking system object files so we need to strip them
            # from the output so that they don't get included in the library
            # dependencies.
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
            ;;
          *)
            if test "$GXX" = yes; then
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
            else
              # FIXME: insert proper C++ library support
              ld_shlibs_CXX=no
            fi
            ;;
        esac
        ;;

      hpux10*|hpux11*)
        if test $with_gnu_ld = no; then
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

          case $host_cpu in
            hppa*64*|ia64*)
              ;;
            *)
	      export_dynamic_flag_spec_CXX='${wl}-E'
              ;;
          esac
        fi
        case $host_cpu in
          hppa*64*|ia64*)
            hardcode_direct_CXX=no
            hardcode_shlibpath_var_CXX=no
            ;;
          *)
            hardcode_direct_CXX=yes
            hardcode_direct_absolute_CXX=yes
            hardcode_minus_L_CXX=yes # Not in the search PATH,
					         # but as the default
					         # location of the library.
            ;;
        esac

        case $cc_basename in
          CC*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          aCC*)
	    case $host_cpu in
	      hppa*64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      ia64*)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	      *)
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	        ;;
	    esac
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test $with_gnu_ld = no; then
	        case $host_cpu in
	          hppa*64*)
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          ia64*)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	          *)
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	            ;;
	        esac
	      fi
	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      interix[3-9]*)
	hardcode_direct_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}-E'
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
	# Instead, shared libraries are loaded at an image base (0x10000000 by
	# default) and relocated if they conflict, which is a slow very memory
	# consuming and fragmenting process.  To avoid this, we pick a random,
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
	;;
      irix5* | irix6*)
        case $cc_basename in
          CC*)
	    # SGI C++
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'

	    # Archives containing C++ object files must be created using
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
	    ;;
          *)
	    if test "$GXX" = yes; then
	      if test "$with_gnu_ld" = no; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	      else
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
	      fi
	    fi
	    link_all_deplibs_CXX=yes
	    ;;
        esac
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        inherit_rpath_CXX=yes
        ;;

      linux* | k*bsd*-gnu | kopensolaris*-gnu)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

	    # Archives containing C++ object files must be created using
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
	    ;;
	  icpc* | ecpc* )
	    # Intel C++
	    with_gnu_ld=yes
	    # version 8.0 and above of icpc choke on multiply defined symbols
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
	    # earlier do not add the objects themselves.
	    case `$CC -V 2>&1` in
	      *"Version 7."*)
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	      *)  # Version 8.0 or newer
	        tmp_idyn=
	        case $host_cpu in
		  ia64*) tmp_idyn=' -i_dynamic';;
		esac
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
		;;
	    esac
	    archive_cmds_need_lc_CXX=no
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	    ;;
          pgCC* | pgcpp*)
            # Portland Group C++ compiler
	    case `$CC -V` in
	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
	      prelink_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
	      old_archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
		$RANLIB $oldlib'
	      archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    *) # Version 6 and above use weak symbols
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    esac

	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
            ;;
	  cxx*)
	    # Compaq C++
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'

	    runpath_var=LD_RUN_PATH
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
	    ;;
	  xl* | mpixl* | bgxl*)
	    # IBM XL 8.0 on PPC, with GNU ld
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    if test "x$supports_anon_versioning" = xyes; then
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
		echo "local: *; };" >> $output_objdir/$libname.ver~
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	    fi
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      no_undefined_flag_CXX=' -zdefs'
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
	      compiler_needs_object_CXX=yes

	      # Not sure whether something based on
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
	      # would be better.
	      output_verbose_link_cmd='func_echo_all'

	      # Archives containing C++ object files must be created using
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	      # necessary to make sure instantiated templates are included
	      # in the archive.
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	      ;;
	    esac
	    ;;
	esac
	;;

      lynxos*)
        # FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;

      m88k*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
	;;

      mvs*)
        case $cc_basename in
          cxx*)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	  *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
	esac
	;;

      netbsd*)
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
	  wlarc=
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	fi
	# Workaround some broken pre-1.5 toolchains
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
	;;

      *nto* | *qnx*)
        ld_shlibs_CXX=yes
	;;

      openbsd2*)
        # C++ shared libraries are fairly broken
	ld_shlibs_CXX=no
	;;

      openbsd*)
	if test -f /usr/libexec/ld.so; then
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	  hardcode_direct_absolute_CXX=yes
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
	    export_dynamic_flag_spec_CXX='${wl}-E'
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
	  fi
	  output_verbose_link_cmd=func_echo_all
	else
	  ld_shlibs_CXX=no
	fi
	;;

      osf3* | osf4* | osf5*)
        case $cc_basename in
          KCC*)
	    # Kuck and Associates, Inc. (KAI) C++ Compiler

	    # KCC will only create a shared library if the output file
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
	    # to its proper name (with version) after linking.
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	    hardcode_libdir_separator_CXX=:

	    # Archives containing C++ object files must be created using
	    # the KAI C++ compiler.
	    case $host in
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
	    esac
	    ;;
          RCC*)
	    # Rational C++ 2.4.1
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          cxx*)
	    case $host in
	      osf3*)
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
		;;
	      *)
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
	          echo "-hidden">> $lib.exp~
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
	          $RM $lib.exp'
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
		;;
	    esac

	    hardcode_libdir_separator_CXX=:

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    #
	    # There doesn't appear to be a way to prevent this compiler from
	    # explicitly linking system object files so we need to strip them
	    # from the output so that they don't get included in the library
	    # dependencies.
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
	    ;;
	  *)
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	      case $host in
	        osf3*)
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	        *)
	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	      esac

	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	      hardcode_libdir_separator_CXX=:

	      # Commands to make compiler produce verbose output that lists
	      # what "hidden" libraries, object files and flags are used when
	      # linking a shared library.
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'

	    else
	      # FIXME: insert proper C++ library support
	      ld_shlibs_CXX=no
	    fi
	    ;;
        esac
        ;;

      psos*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      sunos4*)
        case $cc_basename in
          CC*)
	    # Sun C++ 4.x
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          lcc*)
	    # Lucid
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      solaris*)
        case $cc_basename in
          CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
            archive_cmds_need_lc_CXX=yes
	    no_undefined_flag_CXX=' -zdefs'
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	    hardcode_libdir_flag_spec_CXX='-R$libdir'
	    hardcode_shlibpath_var_CXX=no
	    case $host_os in
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
	      *)
		# The compiler driver will combine and reorder linker options,
		# but understands `-z linker_flag'.
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
	        ;;
	    esac
	    link_all_deplibs_CXX=yes

	    output_verbose_link_cmd='func_echo_all'

	    # Archives containing C++ object files must be created using
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
	    # necessary to make sure instantiated templates are included
	    # in the archive.
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	    ;;
          gcx*)
	    # Green Hills C++ Compiler
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'

	    # The C++ compiler must be used to create the archive.
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
	    ;;
          *)
	    # GNU C++ compiler with Solaris linker
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      else
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
	        # platform.
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'

	        # Commands to make compiler produce verbose output that lists
	        # what "hidden" libraries, object files and flags are used when
	        # linking a shared library.
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
	      fi

	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
	      case $host_os in
		solaris2.[0-5] | solaris2.[0-5].*) ;;
		*)
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
		  ;;
	      esac
	    fi
	    ;;
        esac
        ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag_CXX='${wl}-z,text'
      archive_cmds_need_lc_CXX=no
      hardcode_shlibpath_var_CXX=no
      runpath_var='LD_RUN_PATH'

      case $cc_basename in
        CC*)
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
      esac
      ;;

      sysv5* | sco3.2v5* | sco5v6*)
	# Note: We can NOT use -z defs as we might desire, because we do not
	# link with -lc, and that would cause any symbols used from libc to
	# always be unresolved, which means just about no library would
	# ever link correctly.  If we're not using GNU ld we use -z text
	# though, which does catch some bad symbols but isn't as heavy-handed
	# as -z defs.
	no_undefined_flag_CXX='${wl}-z,text'
	allow_undefined_flag_CXX='${wl}-z,nodefs'
	archive_cmds_need_lc_CXX=no
	hardcode_shlibpath_var_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
	hardcode_libdir_separator_CXX=':'
	link_all_deplibs_CXX=yes
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
	runpath_var='LD_RUN_PATH'

	case $cc_basename in
          CC*)
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
	      '"$old_archive_cmds_CXX"
	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
	      '"$reload_cmds_CXX"
	    ;;
	  *)
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	    ;;
	esac
      ;;

      tandem*)
        case $cc_basename in
          NCC*)
	    # NonStop-UX NCC 3.20
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          *)
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
        esac
        ;;

      vxworks*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;

      *)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
    test "$ld_shlibs_CXX" = no && can_build_shared=no

    GCC_CXX="$GXX"
    LD_CXX="$LD"

    ## CAVEAT EMPTOR:
    ## There is no encapsulation within the following macros, do not change
    ## the running order or otherwise move them around unless you know exactly
    ## what you are doing...
    # Dependencies to place before and after the object being linked:
predep_objects_CXX=
postdep_objects_CXX=
predeps_CXX=
postdeps_CXX=
compiler_lib_search_path_CXX=

cat > conftest.$ac_ext <<_LT_EOF
class Foo
{
public:
  Foo (void) { a = 0; }
private:
  int a;
};
_LT_EOF


_lt_libdeps_save_CFLAGS=$CFLAGS
case "$CC $CFLAGS " in #(
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
esac

if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  # Parse the compiler output and extract the necessary
  # objects, libraries and library flags.

  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  pre_test_object_deps_done=no

  for p in `eval "$output_verbose_link_cmd"`; do
    case ${prev}${p} in

    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       if test $p = "-L" ||
          test $p = "-R"; then
	 prev=$p
	 continue
       fi

       # Expand the sysroot to ease extracting the directories later.
       if test -z "$prev"; then
         case $p in
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
         esac
       fi
       case $p in
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
       esac
       if test "$pre_test_object_deps_done" = no; then
	 case ${prev} in
	 -L | -R)
	   # Internal compiler library paths should come after those
	   # provided the user.  The postdeps already come after the
	   # user supplied libs so there is no need to process them.
	   if test -z "$compiler_lib_search_path_CXX"; then
	     compiler_lib_search_path_CXX="${prev}${p}"
	   else
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
	   fi
	   ;;
	 # The "-l" case would never come before the object being
	 # linked, so don't bother handling this case.
	 esac
       else
	 if test -z "$postdeps_CXX"; then
	   postdeps_CXX="${prev}${p}"
	 else
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
	 fi
       fi
       prev=
       ;;

    *.lto.$objext) ;; # Ignore GCC LTO objects
    *.$objext)
       # This assumes that the test object file only shows up
       # once in the compiler output.
       if test "$p" = "conftest.$objext"; then
	 pre_test_object_deps_done=yes
	 continue
       fi

       if test "$pre_test_object_deps_done" = no; then
	 if test -z "$predep_objects_CXX"; then
	   predep_objects_CXX="$p"
	 else
	   predep_objects_CXX="$predep_objects_CXX $p"
	 fi
       else
	 if test -z "$postdep_objects_CXX"; then
	   postdep_objects_CXX="$p"
	 else
	   postdep_objects_CXX="$postdep_objects_CXX $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling CXX test program"
fi

$RM -f confest.$objext
CFLAGS=$_lt_libdeps_save_CFLAGS

# PORTME: override above test on systems where it is broken
case $host_os in
interix[3-9]*)
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  # hack all around it, let's just trust "g++" to DTRT.
  predep_objects_CXX=
  postdep_objects_CXX=
  postdeps_CXX=
  ;;

linux*)
  case `$CC -V 2>&1 | sed 5q` in
  *Sun\ C*)
    # Sun C++ 5.9

    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;

solaris*)
  case $cc_basename in
  CC* | sunCC*)
    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;
esac


case " $postdeps_CXX " in
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
esac
 compiler_lib_search_dirs_CXX=
if test -n "${compiler_lib_search_path_CXX}"; then
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
fi































    lt_prog_compiler_wl_CXX=
lt_prog_compiler_pic_CXX=
lt_prog_compiler_static_CXX=


  # C++ specific cases for pic, static, wl, etc.
  if test "$GXX" = yes; then
    lt_prog_compiler_wl_CXX='-Wl,'
    lt_prog_compiler_static_CXX='-static'

    case $host_os in
    aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_CXX='-Bstatic'
      fi
      ;;

    amigaos*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic_CXX='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | cygwin* | os2* | pw32* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_CXX='-fno-common'
      ;;
    *djgpp*)
      # DJGPP does not support shared libraries at all
      lt_prog_compiler_pic_CXX=
      ;;
    haiku*)
      # PIC is the default for Haiku.
      # The "-static" flag exists, but is broken.
      lt_prog_compiler_static_CXX=
      ;;
    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_CXX=-Kconform_pic
      fi
      ;;
    hpux*)
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	;;
      *)
	lt_prog_compiler_pic_CXX='-fPIC'
	;;
      esac
      ;;
    *qnx* | *nto*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_CXX='-fPIC -shared'
      ;;
    *)
      lt_prog_compiler_pic_CXX='-fPIC'
      ;;
    esac
  else
    case $host_os in
      aix[4-9]*)
	# All AIX code is PIC.
	if test "$host_cpu" = ia64; then
	  # AIX 5 now supports IA64 processor
	  lt_prog_compiler_static_CXX='-Bstatic'
	else
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
	fi
	;;
      chorus*)
	case $cc_basename in
	cxch68*)
	  # Green Hills C++ Compiler
	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
	  ;;
	esac
	;;
      mingw* | cygwin* | os2* | pw32* | cegcc*)
	# This hack is so that the source file can tell whether it is being
	# built for inclusion in a dll (and should export symbols for example).
	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
	;;
      dgux*)
	case $cc_basename in
	  ec++*)
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  ghcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      freebsd* | dragonfly*)
	# FreeBSD uses GNU C++
	;;
      hpux9* | hpux10* | hpux11*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    if test "$host_cpu" != ia64; then
	      lt_prog_compiler_pic_CXX='+Z'
	    fi
	    ;;
	  aCC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    case $host_cpu in
	    hppa*64*|ia64*)
	      # +Z the default
	      ;;
	    *)
	      lt_prog_compiler_pic_CXX='+Z'
	      ;;
	    esac
	    ;;
	  *)
	    ;;
	esac
	;;
      interix*)
	# This is c89, which is MS Visual C++ (no shared libs)
	# Anyone wants to do a port?
	;;
      irix5* | irix6* | nonstopux*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='-non_shared'
	    # CC pic flag -KPIC is the default.
	    ;;
	  *)
	    ;;
	esac
	;;
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
	case $cc_basename in
	  KCC*)
	    # KAI C++ Compiler
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  ecpc* )
	    # old Intel C++ for x86_64 which still supported -KPIC.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  icpc* )
	    # Intel C++, used to be incompatible with GCC.
	    # ICC 10 doesn't accept -KPIC any more.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  pgCC* | pgcpp*)
	    # Portland Group C++ compiler
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fpic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  cxx*)
	    # Compaq C++
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
	    # IBM XL 8.0, 9.0 on PPC and BlueGene
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-qpic'
	    lt_prog_compiler_static_CXX='-qstaticlink'
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      lt_prog_compiler_pic_CXX='-KPIC'
	      lt_prog_compiler_static_CXX='-Bstatic'
	      lt_prog_compiler_wl_CXX='-Qoption ld '
	      ;;
	    esac
	    ;;
	esac
	;;
      lynxos*)
	;;
      m88k*)
	;;
      mvs*)
	case $cc_basename in
	  cxx*)
	    lt_prog_compiler_pic_CXX='-W c,exportall'
	    ;;
	  *)
	    ;;
	esac
	;;
      netbsd*)
	;;
      *qnx* | *nto*)
        # QNX uses GNU C++, but need to define -shared option too, otherwise
        # it will coredump.
        lt_prog_compiler_pic_CXX='-fPIC -shared'
        ;;
      osf3* | osf4* | osf5*)
	case $cc_basename in
	  KCC*)
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    ;;
	  RCC*)
	    # Rational C++ 2.4.1
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  cxx*)
	    # Digital/Compaq C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      psos*)
	;;
      solaris*)
	case $cc_basename in
	  CC* | sunCC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    lt_prog_compiler_wl_CXX='-Qoption ld '
	    ;;
	  gcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-PIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sunos4*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.x
	    lt_prog_compiler_pic_CXX='-pic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  lcc*)
	    # Lucid
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	esac
	;;
      tandem*)
	case $cc_basename in
	  NCC*)
	    # NonStop-UX NCC 3.20
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      vxworks*)
	;;
      *)
	lt_prog_compiler_can_build_shared_CXX=no
	;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_CXX=
    ;;
  *)
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_pic_works_CXX=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_pic_works_CXX=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
    case $lt_prog_compiler_pic_CXX in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
     esac
else
    lt_prog_compiler_pic_CXX=
     lt_prog_compiler_can_build_shared_CXX=no
fi

fi





#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_static_works_CXX=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_cv_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_cv_prog_compiler_static_works_CXX=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi




    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&6; }
  hard_links=yes
  $RM conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  case $host_os in
  aix[4-9]*)
    # If we're using GNU nm, then we don't want the "-C" option.
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    # Also, AIX nm treats weak defined symbols like other global defined
    # symbols, whereas GNU nm marks them as "W".
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    else
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    fi
    ;;
  pw32*)
    export_symbols_cmds_CXX="$ltdll_cmds"
    ;;
  cygwin* | mingw* | cegcc*)
    case $cc_basename in
    cl*) ;;
    *)
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
      ;;
    esac
    ;;
  *)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    ;;
  esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
$as_echo "$ld_shlibs_CXX" >&6; }
test "$ld_shlibs_CXX" = no && can_build_shared=no

with_gnu_ld_CXX=$with_gnu_ld






#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_CXX" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_CXX=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_CXX in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  $RM conftest*
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext

	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
	  soname=conftest
	  lib=conftest
	  libobjs=conftest.$ac_objext
	  deplibs=
	  wl=$lt_prog_compiler_wl_CXX
	  pic_flag=$lt_prog_compiler_pic_CXX
	  compiler_flags=-v
	  linker_flags=-v
	  verstring=
	  output_objdir=.
	  libname=conftest
	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
	  allow_undefined_flag_CXX=
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
	  then
	    lt_cv_archive_cmds_need_lc_CXX=no
	  else
	    lt_cv_archive_cmds_need_lc_CXX=yes
	  fi
	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
	else
	  cat conftest.err 1>&5
	fi
	$RM conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
      ;;
    esac
  fi
  ;;
esac
































































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix[4-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$cc_basename in
  yes,*)
    # gcc
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'

      ;;
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    dynamic_linker='Win32 ld.exe'
    ;;

  *,cl*)
    # Native MSVC
    libname_spec='$name'
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    library_names_spec='${libname}.dll.lib'

    case $build_os in
    mingw*)
      sys_lib_search_path_spec=
      lt_save_ifs=$IFS
      IFS=';'
      for lt_path in $LIB
      do
        IFS=$lt_save_ifs
        # Let DOS variable expansion print the short 8.3 style file name.
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @@echo %~si"`
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
      done
      IFS=$lt_save_ifs
      # Convert to MSYS style.
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
      ;;
    cygwin*)
      # Convert to unix form, then to dos form, then back to unix form
      # but this time dos style (no spaces!) so that the unix form looks
      # like /cygdrive/c/PROGRA~1:/cygdr...
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      ;;
    *)
      sys_lib_search_path_spec="$LIB"
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH.
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
      fi
      # FIXME: find the short name or the path components, as spaces are
      # common. (e.g. "Program Files" -> "PROGRA~1")
      ;;
    esac

    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $RM \$dlpath'
    shlibpath_overrides_runpath=yes
    dynamic_linker='Win32 link.exe'
    ;;

  *)
    # Assume MSVC wrapper
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    dynamic_linker='Win32 ld.exe'
    ;;
  esac
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

haiku*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  dynamic_linker="$host_os runtime_loader"
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  postinstall_cmds='chmod 555 $lib'
  # or fails outright, so override atomically:
  install_override_mode=555
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no

  # Some binutils ld are patched to set DT_RUNPATH
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  $as_echo_n "(cached) " >&6
else
  lt_cv_shlibpath_overrides_runpath=no
    save_LDFLAGS=$LDFLAGS
    save_libdir=$libdir
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  lt_cv_shlibpath_overrides_runpath=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LDFLAGS=$save_LDFLAGS
    libdir=$save_libdir

fi

  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath

  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

*nto* | *qnx*)
  version_type=qnx
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
$as_echo "$dynamic_linker" >&6; }
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi






































    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action_CXX=
if test -n "$hardcode_libdir_flag_spec_CXX" ||
   test -n "$runpath_var_CXX" ||
   test "X$hardcode_automatic_CXX" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct_CXX" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_CXX=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_CXX=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_CXX=unsupported
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
$as_echo "$hardcode_action_CXX" >&6; }

if test "$hardcode_action_CXX" = relink ||
   test "$inherit_rpath_CXX" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi







  fi # test -n "$compiler"

  CC=$lt_save_CC
  CFLAGS=$lt_save_CFLAGS
  LDCXX=$LD
  LD=$lt_save_LD
  GCC=$lt_save_GCC
  with_gnu_ld=$lt_save_with_gnu_ld
  lt_cv_path_LDCXX=$lt_cv_path_LD
  lt_cv_path_LD=$lt_save_path_LD
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
fi # test "$_lt_caught_CXX_error" != yes

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu













        ac_config_commands="$ac_config_commands libtool"




# Only expand once:




# NTP has (so far) been relying on leading-edge autogen, which
# means we need the appropriate corresponding libopts as well.
# Therefore, by default:
# - use the version of libopts we ship with
# - do not install it
# - build a static copy (AC_DISABLE_SHARED - done earlier)
case "${enable_local_libopts+set}" in
 set) ;;
 *) enable_local_libopts=yes ;;
esac
case "${enable_libopts_install+set}" in
 set) ;;
 *) enable_libopts_install=no ;;
esac
enable_nls=no
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi



  ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
if eval \${$as_ac_Header+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$as_ac_Header=yes"
else
  eval "$as_ac_Header=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_ac_Header
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dir; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if ${ac_cv_search_opendir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' x; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_opendir=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_opendir+:} false; then :
  break
fi
done
if ${ac_cv_search_opendir+:} false; then :

else
  ac_cv_search_opendir=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi


  # =================
  # AC_CHECK_HEADERS
  # =================
  for ac_header in  \
      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
      fcntl.h       libgen.h      libintl.h     memory.h \
      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
      unistd.h      utime.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  for ac_header in stdarg.h     varargs.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_arg_hdr=true;break
else
  lo_have_arg_hdr=false
fi

done


  for ac_header in string.h     strings.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_str_hdr=true;break
else
  lo_have_str_hdr=false
fi

done


  for ac_header in limits.h     sys/limits.h  values.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_lim_hdr=true;break
else
  lo_have_lim_hdr=false
fi

done


  for ac_header in inttypes.h   stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 lo_have_typ_hdr=true;break
else
  lo_have_typ_hdr=false
fi

done


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
$as_echo_n "checking for working stdnoreturn.h... " >&6; }
if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
            #include <stdnoreturn.h>
            /* Do not check for 'noreturn' after the return type.
               C11 allows it, but it's rarely done that way
               and circa-2012 bleeding-edge GCC rejects it when given
               -Werror=old-style-declaration.  */
            noreturn void foo1 (void) { exit (0); }
            _Noreturn void foo2 (void) { exit (0); }
            int testit (int argc, char **argv) {
              if (argc & 1)
                return 0;
              (argv[0][0] ? foo1 : foo2) ();
            }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  gl_cv_header_working_stdnoreturn_h=yes
else
  gl_cv_header_working_stdnoreturn_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }

  if test $gl_cv_header_working_stdnoreturn_h = yes; then
    STDNORETURN_H=''
  else
    STDNORETURN_H='stdnoreturn.h'
  fi


   if test -n "$STDNORETURN_H"; then
  GL_GENERATE_STDNORETURN_H_TRUE=
  GL_GENERATE_STDNORETURN_H_FALSE='#'
else
  GL_GENERATE_STDNORETURN_H_TRUE='#'
  GL_GENERATE_STDNORETURN_H_FALSE=
fi



  # ----------------------------------------------------------------------
  # check for various programs used during the build.
  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  # ----------------------------------------------------------------------
  for ac_header in runetype.h wchar.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  $ac_includes_default
  #if HAVE_RUNETYPE_H
  # include <runetype.h>
  #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  # Check whether --enable-nls was given.
if test "${enable_nls+set}" = set; then :
  enableval=$enable_nls;
fi

  if test "x$enable_nls" != "xno" && \
  test "X${ac_cv_header_libintl_h}" = Xyes; then :


$as_echo "#define ENABLE_NLS 1" >>confdefs.h

fi

  # --------------------------------------------
  # Verify certain entries from AC_CHECK_HEADERS
  # --------------------------------------------
  ${lo_have_arg_hdr} || \
    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5

  ${lo_have_str_hdr} || \
    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5

  ${lo_have_lim_hdr} || \
    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5

  ${lo_have_typ_hdr} || \
    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5

  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  do eval as_ac_var=\${ac_cv_header_${f}_h}
     test "X${as_ac_var}" = Xyes || {
       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
     }
  done
  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
    echo '#include <stdint.h>' > inttypes.h

  # ----------------------------------------------------------------------
  # Checks for typedefs
  # ----------------------------------------------------------------------
  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
if test "x$ac_cv_type_wchar_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WCHAR_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
    $ac_includes_default
    #if HAVE_RUNETYPE_H
    # include <runetype.h>
    #endif
    #if HAVE_WCHAR_H
    # include <wchar.h>
    #endif

"
if test "x$ac_cv_type_wint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_WINT_T 1
_ACEOF


fi

  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
if test "x$ac_cv_type_int8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
if test "x$ac_cv_type_uint8_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT8_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
if test "x$ac_cv_type_int16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
if test "x$ac_cv_type_uint16_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT16_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
if test "x$ac_cv_type_int32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
if test "x$ac_cv_type_uint32_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT32_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
if test "x$ac_cv_type_intptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
if test "x$ac_cv_type_uint_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
if test "x$ac_cv_type_pid_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PID_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SIZE_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi

  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
$as_echo_n "checking size of char*... " >&6; }
if ${ac_cv_sizeof_charp+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_charp" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (char*)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_charp=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
$as_echo "$ac_cv_sizeof_charp" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHARP $ac_cv_sizeof_charp
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


  # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF



  # ------------
  # AC_CHECK_LIB
  # ------------
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
$as_echo_n "checking for pathfind in -lgen... " >&6; }
if ${ac_cv_lib_gen_pathfind+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgen  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pathfind ();
int
main ()
{
return pathfind ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gen_pathfind=yes
else
  ac_cv_lib_gen_pathfind=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGEN 1
_ACEOF

  LIBS="-lgen $LIBS"

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
$as_echo_n "checking for gettext in -lintl... " >&6; }
if ${ac_cv_lib_intl_gettext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lintl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gettext ();
int
main ()
{
return gettext ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_intl_gettext=yes
else
  ac_cv_lib_intl_gettext=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
$as_echo "$ac_cv_lib_intl_gettext" >&6; }
if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBINTL 1
_ACEOF

  LIBS="-lintl $LIBS"

fi

  for ac_func in vprintf
do :
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
if test "x$ac_cv_func_vprintf" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VPRINTF 1
_ACEOF

ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
if test "x$ac_cv_func__doprnt" = xyes; then :

$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h

fi

fi
done


  for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
                 strrchr strsignal fchmod fstat chmod
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

  while :
  do
      POSIX_SHELL=`which bash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`which dash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=/usr/xpg4/bin/sh
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`/bin/sh -c '
          exec 2>/dev/null
          if ! true ; then exit 1 ; fi
          echo /bin/sh'`
      test -x "$POSIX_SHELL" && break
      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  done

cat >>confdefs.h <<_ACEOF
#define POSIX_SHELL "${POSIX_SHELL}"
_ACEOF





  LIBOPTS_BUILD_BLOCKED=true


  NEED_LIBOPTS_DIR=''

  # Check whether --enable-local-libopts was given.
if test "${enable_local_libopts+set}" = set; then :
  enableval=$enable_local_libopts;
    if test x$enableval = xyes ; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
       NEED_LIBOPTS_DIR=true
       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
    fi
fi


  # Check whether --enable-libopts-install was given.
if test "${enable_libopts_install+set}" = set; then :
  enableval=$enable_libopts_install;
fi

   if test "X${enable_libopts_install}" = Xyes; then
  INSTALL_LIBOPTS_TRUE=
  INSTALL_LIBOPTS_FALSE='#'
else
  INSTALL_LIBOPTS_TRUE='#'
  INSTALL_LIBOPTS_FALSE=
fi


  if test -z "${NEED_LIBOPTS_DIR}" ; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
$as_echo_n "checking whether autoopts-config can be found... " >&6; }

# Check whether --with-autoopts-config was given.
if test "${with_autoopts_config+set}" = set; then :
  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
$as_echo_n "checking whether autoopts-config is specified... " >&6; }
if ${lo_cv_with_autoopts_config+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if autoopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=autoopts-config
        elif libopts-config --help 2>/dev/null 1>&2
        then lo_cv_with_autoopts_config=libopts-config
        else lo_cv_with_autoopts_config=no ; fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
$as_echo "$lo_cv_with_autoopts_config" >&6; }

fi
 # end of AC_ARG_WITH

     if ${lo_cv_test_autoopts+:} false; then :
  $as_echo_n "(cached) " >&6
else

        if test -z "${lo_cv_with_autoopts_config}" \
                -o X"${lo_cv_with_autoopts_config}" = Xno
        then
           if autoopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=autoopts-config
           elif libopts-config --help 2>/dev/null 1>&2
           then lo_cv_with_autoopts_config=libopts-config
           else lo_cv_with_autoopts_config=false ; fi
        fi
        lo_cv_test_autoopts=`
            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
        then lo_cv_test_autoopts=no ; fi

fi
 # end of CACHE_VAL
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
$as_echo "${lo_cv_test_autoopts}" >&6; }

     if test "X${lo_cv_test_autoopts}" != Xno
     then
        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
     else
        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
        NEED_LIBOPTS_DIR=true
     fi
  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
    NEED_LIBOPTS_DIR=''
  fi
   if test -n "${NEED_LIBOPTS_DIR}"; then
  NEED_LIBOPTS_TRUE=
  NEED_LIBOPTS_FALSE='#'
else
  NEED_LIBOPTS_TRUE='#'
  NEED_LIBOPTS_FALSE=
fi



  LIBOPTS_DIR=sntp/libopts


# end of AC_DEFUN of LIBOPTS_CHECK_COMMON

  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD




# Check whether --enable-local-libevent was given.
if test "${enable_local_libevent+set}" = set; then :
  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
else
  ntp_use_local_libevent=${ntp_use_local_libevent-detect}

fi






# Expose a cross-compilation indicator to makefiles
 if test $build != $host; then
  NTP_CROSSCOMPILE_TRUE=
  NTP_CROSSCOMPILE_FALSE='#'
else
  NTP_CROSSCOMPILE_TRUE='#'
  NTP_CROSSCOMPILE_FALSE=
fi



ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi


            # Check whether --enable-c99-snprintf was given.
if test "${enable_c99_snprintf+set}" = set; then :
  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
else
  force_c99_snprintf=no

fi

    case "$force_c99_snprintf" in
     yes)
	hw_force_rpl_snprintf=yes
	hw_force_rpl_vsnprintf=yes
    esac






  for ac_header in $ac_header_list
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done







      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
if test "x$ac_cv_func_vsnprintf" = xyes; then :
  hw_cv_func_vsnprintf=yes
else
  hw_cv_func_vsnprintf=no
fi

  if test "$hw_cv_func_vsnprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
if ${hw_cv_func_vsnprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_vsnprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if HAVE_STDARG_H
          #include <stdarg.h>
          #endif
          #include <stdio.h>
          static int testprintf(char *buf, size_t size, const char *format, ...)
          {
            int result;
            va_list ap;
            va_start(ap, format);
            result = vsnprintf(buf, size, format, ap);
            va_end(ap);
            return result;
          }
int
main ()
{
char buf[43];
          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_vsnprintf_c99=yes
else
  hw_cv_func_vsnprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
else
  hw_cv_func_vsnprintf_c99=no
fi

$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
  hw_use_rpl_vsnprintf=yes
else
  hw_use_rpl_vsnprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
$as_echo "$hw_use_rpl_vsnprintf" >&6; }
  if test "$hw_use_rpl_vsnprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_vsnprintf=no} = no; then :

$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h

fi
    for ac_header in inttypes.h locale.h stddef.h stdint.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
_ACEOF


fi
ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
"
if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
_ACEOF


fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
$as_echo_n "checking for long double... " >&6; }
if ${ac_cv_type_long_double+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$GCC" = yes; then
       ac_cv_type_long_double=yes
     else
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* The Stardent Vistra knows sizeof (long double), but does
		 not support it.  */
	      long double foo = 0.0L;
int
main ()
{
static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
	      sizeof (double) <= sizeof (long double))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_long_double=yes
else
  ac_cv_type_long_double=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
$as_echo "$ac_cv_type_long_double" >&6; }
  if test $ac_cv_type_long_double = yes; then

$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
$as_echo_n "checking for long long int... " >&6; }
if ${ac_cv_type_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  			if test "$cross_compiling" = yes; then :
  ac_cv_type_long_long_int=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
	       #ifndef LLONG_MAX
	       # define HALF \
			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
	       # define LLONG_MAX (HALF - 1 + HALF)
	       #endif
int
main ()
{
long long int n = 1;
	       int i;
	       for (i = 0; ; i++)
		 {
		   long long int m = n << i;
		   if (m >> i != n)
		     return 1;
		   if (LLONG_MAX / 2 < m)
		     break;
		 }
	       return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_type_long_long_int=yes
else
  ac_cv_type_long_long_int=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

else
  ac_cv_type_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
$as_echo "$ac_cv_type_long_long_int" >&6; }
  if test $ac_cv_type_long_long_int = yes; then

$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
$as_echo_n "checking for unsigned long long int... " >&6; }
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  /* For now, do not test the preprocessor; as of 2007 there are too many
	 implementations with broken preprocessors.  Perhaps this can
	 be revisited in 2012.  In the meantime, code should not expect
	 #if to work with literals wider than 32 bits.  */
      /* Test literals.  */
      long long int ll = 9223372036854775807ll;
      long long int nll = -9223372036854775807LL;
      unsigned long long int ull = 18446744073709551615ULL;
      /* Test constant expressions.   */
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
		     ? 1 : -1)];
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
		     ? 1 : -1)];
      int i = 63;
int
main ()
{
/* Test availability of runtime routines for shift and division.  */
      long long int llmax = 9223372036854775807ll;
      unsigned long long int ullmax = 18446744073709551615ull;
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
	      | (llmax / ll) | (llmax % ll)
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
	      | (ullmax / ull) | (ullmax % ull));
  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_type_unsigned_long_long_int=yes
else
  ac_cv_type_unsigned_long_long_int=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  if test $ac_cv_type_unsigned_long_long_int = yes; then

$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h

  fi

    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
if test "x$ac_cv_type_intmax_t" = xyes; then :

$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_long_long_int = yes \
       && ac_type='long long int' \
       || ac_type='long int'

cat >>confdefs.h <<_ACEOF
#define intmax_t $ac_type
_ACEOF

fi




  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
if test "x$ac_cv_type_uintmax_t" = xyes; then :

$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h

else
  test $ac_cv_type_unsigned_long_long_int = yes \
       && ac_type='unsigned long long int' \
       || ac_type='unsigned long int'

cat >>confdefs.h <<_ACEOF
#define uintmax_t $ac_type
_ACEOF

fi



  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h

else
  for ac_type in 'unsigned int' 'unsigned long int' \
	'unsigned long long int'; do
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

cat >>confdefs.h <<_ACEOF
#define uintptr_t $ac_type
_ACEOF

	  ac_type=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       test -z "$ac_type" && break
     done
fi


    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF


fi

    for ac_func in localeconv
do :
  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
if test "x$ac_cv_func_localeconv" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LOCALECONV 1
_ACEOF

fi
done


  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi


    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
if test "x$ac_cv_func_snprintf" = xyes; then :
  hw_cv_func_snprintf=yes
else
  hw_cv_func_snprintf=no
fi

  if test "$hw_cv_func_snprintf" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
if ${hw_cv_func_snprintf_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  hw_cv_func_snprintf_c99=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
char buf[43];
          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
              buf[0] != 'T' || buf[3] != '\0')
            return 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  hw_cv_func_snprintf_c99=yes
else
  hw_cv_func_snprintf_c99=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
$as_echo "$hw_cv_func_snprintf_c99" >&6; }
else
  hw_cv_func_snprintf_c99=no
fi

$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
  hw_use_rpl_snprintf=yes
else
  hw_use_rpl_snprintf=no
fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
$as_echo "$hw_use_rpl_snprintf" >&6; }
  if test "$hw_use_rpl_snprintf" = yes; then :

$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h

    if test ${hw_nodef_snprintf=no} = no; then :

$as_echo "#define snprintf rpl_snprintf" >>confdefs.h

fi

  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi




    case " $LIBOBJS " in
  *" snprintf.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 ;;
esac

    _hw_cv_func_xprintf_replace_done=yes
fi

fi





# HMS: Save $LIBS and empty it.
# any LIBS we add here should go in to LDADD_LIBNTP

__LIBS=$LIBS
LIBS=



# [Bug 2332] because we need to know if we are using GNU ld...


# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if ${lt_cv_path_LD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if ${lt_cv_prog_gnu_ld+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld








{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
$as_echo_n "checking for directory path separator... " >&6; }
if ${ntp_cv_dir_sep+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$ntp_cv_dir_sep" in
	 '')
	    case "$host_os" in
	     *djgpp | *mingw32* | *emx*)
		ntp_cv_dir_sep="'\\'"
		;;
	     *)
		ntp_cv_dir_sep="'/'"
		;;
	    esac
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
$as_echo "$ntp_cv_dir_sep" >&6; }

cat >>confdefs.h <<_ACEOF
#define DIR_SEP $ntp_cv_dir_sep
_ACEOF



    NTP_ORIG_LIBS="$LIBS"

# Check whether --with-lineeditlibs was given.
if test "${with_lineeditlibs+set}" = set; then :
  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
else
  use_lineeditlibs="edit,editline"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
$as_echo_n "checking line editing libraries... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
$as_echo "$use_lineeditlibs" >&6; }
    case "$use_lineeditlibs" in
     no)
	ntp_lib_lineedit=no
	;;
     *)
	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
	    for term_lib in "" termcap curses ncurses; do
		case "$term_lib" in
		 '')
		    TRY_LIB="-l$lineedit_lib"
		    ;;
		 *)
		    TRY_LIB="-l$lineedit_lib -l$term_lib"
		    ;;
		esac
		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char readline ();
int
main ()
{
return readline ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		case "$ntp_lib_lineedit" in
		 '')
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		    ;;
		 *)
		    # Use readline()
		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
		    break
		esac
		case "$term_lib" in
		 '')
		    # do not try el_gets without a terminal library
		    ;;
		 *)
		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char el_gets ();
int
main ()
{
return el_gets ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit="$TRY_LIB"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
		    case "$ntp_lib_lineedit" in
		     '')
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
			;;
		     *) # Use el_gets()
			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
			break
			;;
		    esac	# $ntp_lib_lineedit
		esac		# $term_lib
	    done
	    case "$ntp_lib_lineedit" in
	     '')
		;;
	     *)
		break
		;;
	    esac
	done
	LIBS="$NTP_ORIG_LIBS"
	;;
    esac	# $use_lineeditlibs

    case "$ntp_lib_lineedit" in
     '')
	ntp_lib_lineedit="no"
	;;
     no)
	;;
     *)
	EDITLINE_LIBS="$ntp_lib_lineedit"

	;;
    esac	# $ntp_lib_lineedit

    case "$ntp_lib_lineedit" in
     no)
	;;
     *)
	for ac_header in readline.h readline/readline.h histedit.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	for ac_header in history.h readline/history.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


	case "$ac_cv_header_histedit_h" in
	 yes)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
$as_echo_n "checking number of arguments to el_init()... " >&6; }
if ${ntp_cv_el_init_args+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    #include <stdio.h>
			    #include <histedit.h>

int
main ()
{

			    el_init("conftest", stdin, stdout, stderr);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_el_init_args=4
else
  ntp_cv_el_init_args=3

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
$as_echo "$ntp_cv_el_init_args" >&6; }

cat >>confdefs.h <<_ACEOF
#define EL_INIT_ARGS $ntp_cv_el_init_args
_ACEOF

	esac

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
$as_echo_n "checking whether readline supports history... " >&6; }

	ntp_lib_lineedit_history="no"
	ORIG_LIBS="$LIBS"
	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char add_history ();
int
main ()
{
return add_history ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_lib_lineedit_history="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LIBS="$ORIG_LIBS"

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
$as_echo "$ntp_lib_lineedit_history" >&6; }

	case "$ntp_lib_lineedit_history" in
	 yes)

$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h

	esac
    esac	# $ntp_lib_lineedit
    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
    { ORIG_LIBS=; unset ORIG_LIBS;}
    { TRY_LIB=; unset TRY_LIB;}
    { use_lineeditlibs=; unset use_lineeditlibs;}


LIBM=
case "$host" in
 *-*-darwin*)
    ;;
 *)
    _libs=$LIBS
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
$as_echo_n "checking for library containing cos... " >&6; }
if ${ac_cv_search_cos+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cos ();
int
main ()
{
return cos ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' m; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_cos=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_cos+:} false; then :
  break
fi
done
if ${ac_cv_search_cos+:} false; then :

else
  ac_cv_search_cos=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
$as_echo "$ac_cv_search_cos" >&6; }
ac_res=$ac_cv_search_cos
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  LIBM="-lm"
fi

    LIBS=$_libs
    ;;
esac

{ _libs=; unset _libs;}


for ac_header in vfork.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
if test "x$ac_cv_header_vfork_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_VFORK_H 1
_ACEOF

fi

done

for ac_func in fork vfork
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

if test "x$ac_cv_func_fork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
if ${ac_cv_func_fork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_fork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  /* By Ruediger Kuhlmann. */
	  return fork () < 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_fork_works=yes
else
  ac_cv_func_fork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
$as_echo "$ac_cv_func_fork_works" >&6; }

else
  ac_cv_func_fork_works=$ac_cv_func_fork
fi
if test "x$ac_cv_func_fork_works" = xcross; then
  case $host in
    *-*-amigaos* | *-*-msdosdjgpp*)
      # Override, as these systems have only a dummy fork() stub
      ac_cv_func_fork_works=no
      ;;
    *)
      ac_cv_func_fork_works=yes
      ;;
  esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
if test "x$ac_cv_func_vfork" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
$as_echo_n "checking for working vfork... " >&6; }
if ${ac_cv_func_vfork_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_vfork_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Thanks to Paul Eggert for this test.  */
$ac_includes_default
#include <sys/wait.h>
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.  The compiler
   is told about this with #include <vfork.h>, but some compilers
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   static variable whose address is put into a register that is
   clobbered by the vfork.  */
static void
#ifdef __cplusplus
sparc_address_test (int arg)
# else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}

int
main ()
{
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test (0);

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.  This
       test uses lots of local variables, at least as many local
       variables as main has allocated so far including compiler
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
       reuse the register of parent for one of the local variables,
       since it will think that parent can't possibly be used any more
       in this routine.  Assigning to the local variable will thus
       munge parent in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
       from child file descriptors.  If the child closes a descriptor
       before it execs or exits, this munges the parent's descriptor
       as well.  Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    return (
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_vfork_works=yes
else
  ac_cv_func_vfork_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
$as_echo "$ac_cv_func_vfork_works" >&6; }

fi;
if test "x$ac_cv_func_fork_works" = xcross; then
  ac_cv_func_vfork_works=$ac_cv_func_vfork
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fi

if test "x$ac_cv_func_vfork_works" = xyes; then

$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

else

$as_echo "#define vfork fork" >>confdefs.h

fi
if test "x$ac_cv_func_fork_works" = xyes; then

$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
$as_echo_n "checking for working alloca.h... " >&6; }
if ${ac_cv_working_alloca_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <alloca.h>
int
main ()
{
char *p = (char *) alloca (2 * sizeof (int));
			  if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_working_alloca_h=yes
else
  ac_cv_working_alloca_h=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
$as_echo "$ac_cv_working_alloca_h" >&6; }
if test $ac_cv_working_alloca_h = yes; then

$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
$as_echo_n "checking for alloca... " >&6; }
if ${ac_cv_func_alloca_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  ifdef HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
void *alloca (size_t);
#    endif
#   endif
#  endif
# endif
#endif

int
main ()
{
char *p = (char *) alloca (1);
				    if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_func_alloca_works=yes
else
  ac_cv_func_alloca_works=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
$as_echo "$ac_cv_func_alloca_works" >&6; }

if test $ac_cv_func_alloca_works = yes; then

$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h

else
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble.  Some versions do not even contain alloca or
# contain a buggy version.  If you still want to use their alloca,
# use ar to extract alloca.o from them instead of compiling alloca.c.

ALLOCA=\${LIBOBJDIR}alloca.$ac_objext

$as_echo "#define C_ALLOCA 1" >>confdefs.h


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
if ${ac_cv_os_cray+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if defined CRAY && ! defined CRAY2
webecray
#else
wenotbecray
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "webecray" >/dev/null 2>&1; then :
  ac_cv_os_cray=yes
else
  ac_cv_os_cray=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
$as_echo "$ac_cv_os_cray" >&6; }
if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :

cat >>confdefs.h <<_ACEOF
#define CRAY_STACKSEG_END $ac_func
_ACEOF

    break
fi

  done
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
$as_echo_n "checking stack direction for C alloca... " >&6; }
if ${ac_cv_c_stack_direction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_c_stack_direction=0
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}

int
main ()
{
  return find_stack_direction () < 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_stack_direction=1
else
  ac_cv_c_stack_direction=-1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
$as_echo "$ac_cv_c_stack_direction" >&6; }
cat >>confdefs.h <<_ACEOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
_ACEOF


fi

ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRERROR_R $ac_have_decl
_ACEOF

for ac_func in strerror_r
do :
  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
if test "x$ac_cv_func_strerror_r" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRERROR_R 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
if ${ac_cv_func_strerror_r_char_p+:} false; then :
  $as_echo_n "(cached) " >&6
else

    ac_cv_func_strerror_r_char_p=no
    if test $ac_cv_have_decl_strerror_r = yes; then
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	  char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  char *p = strerror_r (0, buf, sizeof buf);
	  return !p || x;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    else
      # strerror_r is not declared.  Choose between
      # systems that have relatively inaccessible declarations for the
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
      # former has a strerror_r that returns char*, while the latter
      # has a strerror_r that returns `int'.
      # This test should segfault on the DEC system.
      if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
	extern char *strerror_r ();
int
main ()
{
char buf[100];
	  char x = *strerror_r (0, buf, sizeof buf);
	  return ! isalpha (x);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_strerror_r_char_p=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
if test $ac_cv_func_strerror_r_char_p = yes; then

$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h

fi


ac_busted_vpath_in_make=no
case "$build" in
 *-*-irix6.1*)	# 64 bit only
    # busted vpath?
    ;;
 *-*-irix6*)	# 6.2 (and later?)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-solaris2.5.1)
    ac_busted_vpath_in_make=yes
    ;;
 *-*-unicosmp*)
    ac_busted_vpath_in_make=yes
    ;;
esac

case "$ac_busted_vpath_in_make$srcdir" in
 yes.|no*)
    ;;
 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
     '')
	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
    esac
    ;;
esac

case "$host" in
 *-*-aix4*)
	# Bug 2516:
	# Was *-*-aix[[4-9]]*
	# XXX only verified thru AIX6.  But...
	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
	# that this support would be in 5.3, removed in 6, and added back.
	#
	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
	# IBM pulls its thumbs out long enough to implement clock_settime,
	# this conditional will need to change.  Maybe use AC_TRY_RUN
	# instead to try to set the time to itself and check errno.
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
$as_echo_n "checking for library containing clock_gettime... " >&6; }
if ${ac_cv_search_clock_gettime+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char clock_gettime ();
int
main ()
{
return clock_gettime ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_clock_gettime=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_clock_gettime+:} false; then :
  break
fi
done
if ${ac_cv_search_clock_gettime+:} false; then :

else
  ac_cv_search_clock_gettime=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
$as_echo "$ac_cv_search_clock_gettime" >&6; }
ac_res=$ac_cv_search_clock_gettime
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_clock_gettime" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
 esac

fi

    for ac_func in clock_getres clock_gettime clock_settime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac

for ac_func in getclock stime timegm strlcpy strlcat
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


#
for ac_header in errno.h sys/socket.h sys/types.h time.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in net/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif

"
if test "x$ac_cv_header_net_if_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_H 1
_ACEOF

fi

done

case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
if ${ntp_cv_predecl_mpinfou+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    np_cv_predecl_mpinfou=no
	    case "$ac_cv_header_net_if_h" in
	     no)
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    typedef union mpinfou {
				    struct pdk_mpinfo *pdkptr;
				    struct mpinfo *pikptr;
			    } mpinfou_t;
			    #ifdef HAVE_SYS_SOCKET_H
			    # include <sys/socket.h>
			    #endif
			    #include <net/if.h>

int
main ()
{



  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

			ntp_cv_predecl_mpinfou=yes
			ac_cv_header_net_if_h=yes


fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
$as_echo "$ntp_cv_predecl_mpinfou" >&6; }
    case "$ntp_cv_predecl_mpinfou" in
     yes)
	cat >>confdefs.h <<_ACEOF
#ifndef MPINFOU_PREDECLARED
# define MPINFOU_PREDECLARED
typedef union mpinfou {
	struct pdk_mpinfo *pdkptr;
	struct mpinfo *pikptr;
} mpinfou_t;
#endif
_ACEOF

    esac
esac

case "$host" in
 *-linux*)
    for ac_header in linux/if_addr.h
do :
  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
	#ifdef HAVE_SYS_SOCKET_H
	# include <sys/socket.h>
	#endif

"
if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LINUX_IF_ADDR_H 1
_ACEOF

fi

done

esac

for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
for ac_header in sys/sysctl.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
    #if defined HAVE_SYS_PARAM_H
    # include <sys/param.h>
    #endif

"
if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SYSCTL_H 1
_ACEOF

fi

done

for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in resolv.h
do :
  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_ARPA_NAMESER_H
    # include <arpa/nameser.h>
    #endif

"
if test "x$ac_cv_header_resolv_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RESOLV_H 1
_ACEOF

fi

done


for ac_header in net/if_var.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
    #if HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif

"
if test "x$ac_cv_header_net_if_var_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_VAR_H 1
_ACEOF

fi

done


for ac_header in netinet/ip.h netinet/in_var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_SOCKET_H
    # include <sys/socket.h>
    #endif
    #ifdef HAVE_NET_IF_H
    # include <net/if.h>
    #endif
    #ifdef HAVE_NETINET_IN_H
    # include <netinet/in.h>
    #endif
    #ifdef HAVE_NET_IF_VAR_H
    # include <net/if_var.h>
    #endif
    #ifdef HAVE_NETINET_IN_SYSTM_H
    # include <netinet/in_systm.h>
    #endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


# HMS: Do we need to check for -lsocket before or after these tests?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
$as_echo_n "checking for library containing inet_pton... " >&6; }
if ${ac_cv_search_inet_pton+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_pton ();
int
main ()
{
return inet_pton ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' nsl; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_pton=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_pton+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_pton+:} false; then :

else
  ac_cv_search_inet_pton=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
$as_echo "$ac_cv_search_inet_pton" >&6; }
ac_res=$ac_cv_search_inet_pton
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_pton" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
 esac

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
$as_echo_n "checking for library containing inet_ntop... " >&6; }
if ${ac_cv_search_inet_ntop+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_ntop ();
int
main ()
{
return inet_ntop ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_ntop=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_ntop+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_ntop+:} false; then :

else
  ac_cv_search_inet_ntop=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
$as_echo "$ac_cv_search_inet_ntop" >&6; }
ac_res=$ac_cv_search_inet_ntop
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_inet_ntop" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
 esac

fi


# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
# avoid keying on the OS name:  If we find socket functions in
# libsocket, next try for them in libxnet without libsocket, if found,
# list both.  If we simply tested libxnet first, we would find the
# functions there and never add libsocket.  See also [Bug 660]
# http://bugs.ntp.org/show_bug.cgi?id=660#c9
saved_LIBS=$LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
$as_echo_n "checking for library containing setsockopt... " >&6; }
if ${ac_cv_search_setsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char setsockopt ();
int
main ()
{
return setsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' socket; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_setsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_setsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_setsockopt+:} false; then :

else
  ac_cv_search_setsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
$as_echo "$ac_cv_search_setsockopt" >&6; }
ac_res=$ac_cv_search_setsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_setsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
 esac

fi

case "$ac_cv_search_setsockopt" in
 -lsocket)
    LIBS="$saved_LIBS"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
$as_echo_n "checking for library containing getsockopt... " >&6; }
if ${ac_cv_search_getsockopt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getsockopt ();
int
main ()
{
return getsockopt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' xnet; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_getsockopt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_getsockopt+:} false; then :
  break
fi
done
if ${ac_cv_search_getsockopt+:} false; then :

else
  ac_cv_search_getsockopt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
$as_echo "$ac_cv_search_getsockopt" >&6; }
ac_res=$ac_cv_search_getsockopt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  case "$ac_cv_search_getsockopt" in
 'none required') ;;
 no) ;;
 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
 esac

fi

    # XXX Possible trouble here - reading the comments above and looking at the
    # code below I wonder if we'll add -lxnet when we don't need it.
    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
    # there when it is not needed?
    case "$ac_cv_search_getsockopt" in
     -lxnet)
	LIBS="-lxnet -lsocket $saved_LIBS"
	;;
     *) LIBS="-lsocket $saved_LIBS"
	;;
    esac
    ;;
esac
{ saved_LIBS=; unset saved_LIBS;}

# Bug 2427 - look for recvmsg here.
for ac_func in recvmsg
do :
  ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
if test "x$ac_cv_func_recvmsg" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RECVMSG 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if ${ac_cv_c_inline+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }

case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac


case "$ac_cv_c_inline" in
 '')
    ;;
 *)

$as_echo "#define HAVE_INLINE 1" >>confdefs.h


esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if ${ac_cv_header_time+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_time=yes
else
  ac_cv_header_time=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h

fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
$as_echo_n "checking size of time_t... " >&6; }
if ${ac_cv_sizeof_time_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_time_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (time_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_time_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
$as_echo "$ac_cv_sizeof_time_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
$as_echo_n "checking whether char is unsigned... " >&6; }
if ${ac_cv_c_char_unsigned+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_char_unsigned=no
else
  ac_cv_c_char_unsigned=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
$as_echo "$ac_cv_c_char_unsigned" >&6; }
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h

fi
		# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
$as_echo_n "checking size of signed char... " >&6; }
if ${ac_cv_sizeof_signed_char+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_signed_char" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (signed char)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_signed_char=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
$as_echo "$ac_cv_sizeof_signed_char" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
_ACEOF


ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
if test "x$ac_cv_type_s_char" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_S_CHAR 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
if test "x$ac_cv_type_long_long" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF


fi

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF



case "$ac_cv_type_long_long" in
 no)
    ;;
 *)
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
if ${ac_cv_sizeof_long_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF


    ;;
esac

case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
 *yes)
    # We have a typedef for s_char.  Might as well believe it...
    ;;
 no0no)
    # We have signed chars, can't say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 no1no)
    # We have signed chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
 yes0no)
    # We have unsigned chars, can't say 'signed char', no s_char typedef.
    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
    ;;
 yes1no)
    # We have unsigned chars, can say 'signed char', no s_char typedef.

$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
if ${ac_cv_type_uid_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "uid_t" >/dev/null 2>&1; then :
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; }
if test $ac_cv_type_uid_t = no; then

$as_echo "#define uid_t int" >>confdefs.h


$as_echo "#define gid_t int" >>confdefs.h

fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
$as_echo_n "checking if we're including debugging code... " >&6; }
# Check whether --enable-debugging was given.
if test "${enable_debugging+set}" = set; then :
  enableval=$enable_debugging; ntp_ok=$enableval
else
  ntp_ok=yes

fi

case "$ntp_ok" in
 yes)

$as_echo "#define DEBUG 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }



# check if we can compile with pthreads
for ac_header in semaphore.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
if test "x$ac_cv_header_semaphore_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SEMAPHORE_H 1
_ACEOF

fi

done

for ac_func in socketpair
do :
  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
if test "x$ac_cv_func_socketpair" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKETPAIR 1
_ACEOF

fi
done

# Check whether --enable-thread-support was given.
if test "${enable_thread_support+set}" = set; then :
  enableval=$enable_thread_support;
else
  enable_thread_support=yes

fi

have_pthreads=no
case "$enable_thread_support" in
 yes)
    ol_found_pthreads=no



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

# OpenLDAP --with-threads

# Check whether --with-threads was given.
if test "${with_threads+set}" = set; then :
  withval=$with_threads;
	ol_arg=invalid
	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
	fi
	ol_with_threads="$ol_arg"

else
  	ol_with_threads="auto"
fi
# end --with-threads


case "$ol_with_threads$host" in
 auto*-*-solaris2.[0-6])
        ol_with_threads=no
    ;;
esac


ol_aix_threads=no
case "$host" in
*-*-aix*) 	if test -z "$CC" ; then
		case "$ol_with_threads" in
		auto | yes |  posix) ol_aix_threads=yes ;;
		esac
	fi
;;
esac

if test $ol_aix_threads = yes ; then
	if test -z "${CC}" ; then
		for ac_prog in cc_r xlc_r cc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$CC" && break
done


		if test "$CC" = cc ; then
						if test $ol_with_threads != auto ; then
				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
			else
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
			fi
			ol_with_threads=no
  		fi
	fi

	case ${CC} in cc_r | xlc_r)
		ol_with_threads=posix
		ol_cv_pthread_create=yes
		;;
	esac
fi

ol_link_threads=no
# OpenLDAP --with-yielding_select

# Check whether --with-yielding_select was given.
if test "${with_yielding_select+set}" = set; then :
  withval=$with_yielding_select;
	ol_arg=invalid
	for ol_val in auto yes no manual  ; do
		if test "$withval" = "$ol_val" ; then
			ol_arg="$ol_val"
		fi
	done
	if test "$ol_arg" = "invalid" ; then
		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
	fi
	ol_with_yielding_select="$ol_arg"

else
  	ol_with_yielding_select="auto"
fi
# end --with-yielding_select


case $ol_with_threads in auto | yes | nt)


	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
if test "x$ac_cv_func__beginthread" = xyes; then :

fi


	if test $ac_cv_func__beginthread = yes ; then

$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h

		ol_cv_nt_threads=yes
	fi


	if test "$ol_cv_nt_threads" = yes ; then
		ol_link_threads=nt
		ol_with_threads=found
		ol_with_yielding_select=yes


$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h


$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h

	fi

	if test $ol_with_threads = nt ; then
		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | posix)

	for ac_header in pthread.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_H 1
_ACEOF

fi

done


	if test $ac_cv_header_pthread_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
$as_echo_n "checking POSIX thread version... " >&6; }
if ${ol_cv_pthread_version+:} false; then :
  $as_echo_n "(cached) " >&6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>

int
main ()
{

		int i = PTHREAD_CREATE_JOINABLE;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_detach" >/dev/null 2>&1; then :
  ol_cv_pthread_version=10
else
  ol_cv_pthread_version=8
fi
rm -f conftest*

else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>
#		ifdef PTHREAD_CREATE_UNDETACHED
		draft7
#		endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft7" >/dev/null 2>&1; then :
  ol_cv_pthread_version=7
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
  ol_cv_pthread_version=6
else

	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#		include <pthread.h>
#ifdef		PTHREAD_MUTEX_INITIALIZER
		draft5
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "draft5" >/dev/null 2>&1; then :
  ol_cv_pthread_version=5
else
  ol_cv_pthread_version=4
fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
$as_echo "$ol_cv_pthread_version" >&6; }


		if test $ol_cv_pthread_version != 0 ; then

cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREADS $ol_cv_pthread_version
_ACEOF

		else
			as_fn_error $? "unknown pthread version" "$LINENO" 5
		fi

		# consider threads found
		ol_with_threads=found


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then

$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h

	fi


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
#ifdef _POSIX_THREAD_IS_GNU_PTH
	__gnu_pth__;
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
  ol_cv_header_gnu_pth_pthread_h=yes
else
  ol_cv_header_gnu_pth_pthread_h=no
fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }


		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
			for ac_header in sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_H 1
_ACEOF

fi

done

		fi


				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
$as_echo_n "checking for pthread_create in default libraries... " >&6; }
if ${ol_cv_pthread_create+:} false; then :
  $as_echo_n "(cached) " >&6
else

			if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create=yes
else
  ol_cv_pthread_create=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
$as_echo "$ol_cv_pthread_create" >&6; }

		if test $ol_cv_pthread_create != no ; then
			ol_link_threads=posix
			ol_link_pthreads=""
		fi

		# Pthread try link: -kthread (ol_cv_pthread_kthread)
if test "$ol_link_threads" = no ; then
	# try -kthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
$as_echo_n "checking for pthread link with -kthread... " >&6; }
if ${ol_cv_pthread_kthread+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-kthread $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_kthread=yes
else
  ol_cv_pthread_kthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
$as_echo "$ol_cv_pthread_kthread" >&6; }

	if test $ol_cv_pthread_kthread = yes ; then
		ol_link_pthreads="-kthread"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -pthread (ol_cv_pthread_pthread)
if test "$ol_link_threads" = no ; then
	# try -pthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
$as_echo_n "checking for pthread link with -pthread... " >&6; }
if ${ol_cv_pthread_pthread+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthread $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_pthread=yes
else
  ol_cv_pthread_pthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthread=yes
else
  ol_cv_pthread_pthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
$as_echo "$ol_cv_pthread_pthread" >&6; }

	if test $ol_cv_pthread_pthread = yes ; then
		ol_link_pthreads="-pthread"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
if test "$ol_link_threads" = no ; then
	# try -pthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
$as_echo_n "checking for pthread link with -pthreads... " >&6; }
if ${ol_cv_pthread_pthreads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-pthreads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_pthreads=yes
else
  ol_cv_pthread_pthreads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_pthreads=yes
else
  ol_cv_pthread_pthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
$as_echo "$ol_cv_pthread_pthreads" >&6; }

	if test $ol_cv_pthread_pthreads = yes ; then
		ol_link_pthreads="-pthreads"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
if test "$ol_link_threads" = no ; then
	# try -mthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
$as_echo_n "checking for pthread link with -mthreads... " >&6; }
if ${ol_cv_pthread_mthreads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-mthreads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_mthreads=yes
else
  ol_cv_pthread_mthreads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_mthreads=yes
else
  ol_cv_pthread_mthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
$as_echo "$ol_cv_pthread_mthreads" >&6; }

	if test $ol_cv_pthread_mthreads = yes ; then
		ol_link_pthreads="-mthreads"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -thread (ol_cv_pthread_thread)
if test "$ol_link_threads" = no ; then
	# try -thread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
$as_echo_n "checking for pthread link with -thread... " >&6; }
if ${ol_cv_pthread_thread+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-thread $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_thread=yes
else
  ol_cv_pthread_thread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_thread=yes
else
  ol_cv_pthread_thread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
$as_echo "$ol_cv_pthread_thread" >&6; }

	if test $ol_cv_pthread_thread = yes ; then
		ol_link_pthreads="-thread"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }

	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthread -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -lmach -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
else
  ol_cv_pthread_lpthread_lmach_lexc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread_lmach_lexc=yes
else
  ol_cv_pthread_lpthread_lmach_lexc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }

	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthread -lmach -lexc"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
if test "$ol_link_threads" = no ; then
	# try -lpthread -Wl,-woff,85
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread -Wl,-woff,85 $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
else
  ol_cv_pthread_lib_lpthread_woff=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthread_woff=yes
else
  ol_cv_pthread_lib_lpthread_woff=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }

	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
		ol_link_pthreads="-lpthread -Wl,-woff,85"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
if test "$ol_link_threads" = no ; then
	# try -lpthread
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
$as_echo_n "checking for pthread link with -lpthread... " >&6; }
if ${ol_cv_pthread_lpthread+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthread $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
else
  ol_cv_pthread_lpthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthread=yes
else
  ol_cv_pthread_lpthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
$as_echo "$ol_cv_pthread_lpthread" >&6; }

	if test $ol_cv_pthread_lpthread = yes ; then
		ol_link_pthreads="-lpthread"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
$as_echo_n "checking for pthread link with -lc_r... " >&6; }
if ${ol_cv_pthread_lc_r+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
else
  ol_cv_pthread_lc_r=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lc_r=yes
else
  ol_cv_pthread_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
$as_echo "$ol_cv_pthread_lc_r" >&6; }

	if test $ol_cv_pthread_lc_r = yes ; then
		ol_link_pthreads="-lc_r"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -threads (ol_cv_pthread_threads)
if test "$ol_link_threads" = no ; then
	# try -threads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
$as_echo_n "checking for pthread link with -threads... " >&6; }
if ${ol_cv_pthread_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-threads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_threads=yes
else
  ol_cv_pthread_threads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_threads=yes
else
  ol_cv_pthread_threads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
$as_echo "$ol_cv_pthread_threads" >&6; }

	if test $ol_cv_pthread_threads = yes ; then
		ol_link_pthreads="-threads"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc -lc_r
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }

	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lmach -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lmach -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lmach_lexc=yes
else
  ol_cv_pthread_lpthreads_lmach_lexc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }

	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lmach -lexc"
		ol_link_threads=posix
	fi
fi

		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
if test "$ol_link_threads" = no ; then
	# try -lpthreads -lexc
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads -lexc $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lpthreads_lexc=yes
else
  ol_cv_pthread_lpthreads_lexc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lpthreads_lexc=yes
else
  ol_cv_pthread_lpthreads_lexc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }

	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
		ol_link_pthreads="-lpthreads -lexc"
		ol_link_threads=posix
	fi
fi


		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
if test "$ol_link_threads" = no ; then
	# try -lpthreads
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
if ${ol_cv_pthread_lib_lpthreads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		# save the flags
		ol_LIBS="$LIBS"
		LIBS="-lpthreads $LIBS"

		if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int
main ()
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
else
  ol_cv_pthread_lib_lpthreads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_lib_lpthreads=yes
else
  ol_cv_pthread_lib_lpthreads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


		# restore the LIBS
		LIBS="$ol_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }

	if test $ol_cv_pthread_lib_lpthreads = yes ; then
		ol_link_pthreads="-lpthreads"
		ol_link_threads=posix
	fi
fi


		if test $ol_link_threads != no ; then
			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"

						save_CPPFLAGS="$CPPFLAGS"
			save_LIBS="$LIBS"
			LIBS="$LTHREAD_LIBS $LIBS"

												for ac_func in sched_yield pthread_yield thr_yield
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test $ac_cv_func_thr_yield = no ; then
								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
$as_echo_n "checking for sched_yield in -lrt... " >&6; }
if ${ac_cv_lib_rt_sched_yield+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_yield ();
int
main ()
{
return sched_yield ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rt_sched_yield=yes
else
  ac_cv_lib_rt_sched_yield=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"

$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h

					ac_cv_func_sched_yield=yes
else
  ac_cv_func_sched_yield=no
fi

			fi
			if test $ac_cv_func_sched_yield = no &&
			   test $ac_cv_func_pthread_yield = no &&
			   test "$ac_cv_func_thr_yield" = no ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
			fi

						for ac_func in pthread_kill
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
if test "x$ac_cv_func_pthread_kill" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL 1
_ACEOF

fi
done


									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
  $as_echo_n "(cached) " >&6
else

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <pthread.h>
pthread_rwlock_t rwlock;

int
main ()
{
pthread_rwlock_destroy(&rwlock);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_func_pthread_rwlock_destroy=yes
else
  ol_cv_func_pthread_rwlock_destroy=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then

$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h

			fi

									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
if ${ol_cv_func_pthread_detach+:} false; then :
  $as_echo_n "(cached) " >&6
else

								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <pthread.h>
#ifndef NULL
#define NULL (void*)0
#endif

int
main ()
{
pthread_detach(NULL);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_func_pthread_detach=yes
else
  ol_cv_func_pthread_detach=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
$as_echo "$ol_cv_func_pthread_detach" >&6; }

			if test $ol_cv_func_pthread_detach = no ; then
				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
			fi


$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h


						for ac_func in \
				pthread_setconcurrency \
				pthread_getconcurrency \
				thr_setconcurrency \
				thr_getconcurrency \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done



	for ac_func in pthread_kill_other_threads_np
do :
  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
_ACEOF

fi
done

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
$as_echo_n "checking for LinuxThreads implementation... " >&6; }
if ${ol_cv_sys_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
$as_echo "$ol_cv_sys_linux_threads" >&6; }




	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
$as_echo_n "checking for LinuxThreads consistency... " >&6; }
if ${ol_cv_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else

		if test $ol_cv_header_linux_threads = yes &&
		   test $ol_cv_sys_linux_threads = yes; then
			ol_cv_linux_threads=yes
		elif test $ol_cv_header_linux_threads = no &&
		     test $ol_cv_sys_linux_threads = no; then
			ol_cv_linux_threads=no
		else
			ol_cv_linux_threads=error
		fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
$as_echo "$ol_cv_linux_threads" >&6; }


			if test $ol_cv_linux_threads = error; then
				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
			fi

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
$as_echo_n "checking if pthread_create() works... " >&6; }
if ${ol_cv_pthread_create_works+:} false; then :
  $as_echo_n "(cached) " >&6
else

			if test "$cross_compiling" = yes; then :
  				ol_cv_pthread_create_works=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv)
	int argc;
	char **argv;
{

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_create_works=yes
else
  ol_cv_pthread_create_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
$as_echo "$ol_cv_pthread_create_works" >&6; }

			if test $ol_cv_pthread_create_works = no ; then
				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
			fi

			ol_replace_broken_yield=no

			if test $ol_replace_broken_yield = yes ; then

$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h

			fi

						if test x$ol_with_yielding_select = xauto ; then
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
$as_echo_n "checking if select yields when using pthreads... " >&6; }
if ${ol_cv_pthread_select_yields+:} false; then :
  $as_echo_n "(cached) " >&6
else

				if test "$cross_compiling" = yes; then :
  ol_cv_pthread_select_yields=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#ifndef NULL
#define NULL (void*) 0
#endif

static int fildes[2];

static void *task(p)
	void *p;
{
	int i;
	struct timeval tv;

	fd_set rfds;

	tv.tv_sec=10;
	tv.tv_usec=0;

	FD_ZERO(&rfds);
	FD_SET(fildes[0], &rfds);

	/* we're not interested in any fds */
	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);

	if(i < 0) {
		perror("select");
		exit(10);
	}

	exit(0); /* if we exit here, the select blocked the whole process */
}

int main(argc, argv)
	int argc;
	char **argv;
{
	pthread_t t;

	/* create a pipe to select */
	if(pipe(&fildes[0])) {
		perror("select");
		exit(1);
	}

#ifdef HAVE_PTHREAD_SETCONCURRENCY
	(void) pthread_setconcurrency(2);
#else
#ifdef HAVE_THR_SETCONCURRENCY
	/* Set Solaris LWP concurrency to 2 */
	thr_setconcurrency(2);
#endif
#endif

#if HAVE_PTHREADS < 6
	pthread_create(&t, pthread_attr_default, task, NULL);
#else
	pthread_create(&t, NULL, task, NULL);
#endif

	/* make sure task runs first */
#ifdef HAVE_THR_YIELD
	thr_yield();
#elif defined( HAVE_SCHED_YIELD )
	sched_yield();
#elif defined( HAVE_PTHREAD_YIELD )
	pthread_yield();
#endif

	exit(2);
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ol_cv_pthread_select_yields=no
else
  ol_cv_pthread_select_yields=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
$as_echo "$ol_cv_pthread_select_yields" >&6; }

				if test $ol_cv_pthread_select_yields = cross ; then
					as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
				fi

				if test $ol_cv_pthread_select_yields = yes ; then
					ol_with_yielding_select=yes
				fi
			fi

						CPPFLAGS="$save_CPPFLAGS"
			LIBS="$save_LIBS"
		else
			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
		fi
	fi

	if test $ol_with_threads = posix ; then
		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | mach)

		for ac_header in mach/cthreads.h cthreads.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	if test $ac_cv_header_mach_cthreads_h = yes ; then
		ol_with_threads=found

				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
fi


		if test $ol_link_threads = no ; then
									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
$as_echo_n "checking for cthread_fork with -all_load... " >&6; }
if ${ol_cv_cthread_all_load+:} false; then :
  $as_echo_n "(cached) " >&6
else

								save_LIBS="$LIBS"
				LIBS="-all_load $LIBS"
				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <mach/cthreads.h>
int
main ()
{

					cthread_fork((void *)0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_cthread_all_load=yes
else
  ol_cv_cthread_all_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
								LIBS="$save_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
$as_echo "$ol_cv_cthread_all_load" >&6; }

			if test $ol_cv_cthread_all_load = yes ; then
				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
				ol_link_threads=mach
				ol_with_threads=found
			fi
		fi

	elif test $ac_cv_header_cthreads_h = yes ; then

		ol_with_threads=found

				save_LIBS="$LIBS"
		LIBS="$LIBS -lthreads"
		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
if test "x$ac_cv_func_cthread_fork" = xyes; then :
  ol_link_threads=yes
fi

		LIBS="$save_LIBS"

		if test $ol_link_threads = yes ; then
			LTHREAD_LIBS="-lthreads"
			ol_link_threads=mach
			ol_with_threads=found
		else
			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
		fi

	elif test $ol_with_threads = mach ; then
		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
	fi

	if test $ol_link_threads = mach ; then

$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h

	elif test $ol_with_threads = found ; then
		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
	fi
	;;
esac

case $ol_with_threads in auto | yes | pth)

	for ac_header in pth.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
if test "x$ac_cv_header_pth_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTH_H 1
_ACEOF

fi

done


	if test $ac_cv_header_pth_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
$as_echo_n "checking for pth_version in -lpth... " >&6; }
if ${ac_cv_lib_pth_pth_version+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpth  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pth_version ();
int
main ()
{
return pth_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pth_pth_version=yes
else
  ac_cv_lib_pth_pth_version=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
  have_pth=yes
else
  have_pth=no
fi


		if test $have_pth = yes ; then

$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h

			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
			ol_link_threads=pth
			ol_with_threads=found

			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi
		fi
	fi
	;;
esac

case $ol_with_threads in auto | yes | lwp)

		for ac_header in thread.h synch.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	if test $ac_cv_header_thread_h = yes &&
	   test $ac_cv_header_synch_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
$as_echo_n "checking for thr_create in -lthread... " >&6; }
if ${ac_cv_lib_thread_thr_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char thr_create ();
int
main ()
{
return thr_create ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_thread_thr_create=yes
else
  ac_cv_lib_thread_thr_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
  have_thr=yes
else
  have_thr=no
fi


		if test $have_thr = yes ; then

$as_echo "#define HAVE_THR 1" >>confdefs.h

			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
			ol_link_threads=thr

			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=yes
			fi

						for ac_func in \
				thr_setconcurrency \
				thr_getconcurrency \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

		fi
	fi

		for ac_header in lwp/lwp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LWP_LWP_H 1
_ACEOF

fi

done

	if test $ac_cv_header_lwp_lwp_h = yes ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
$as_echo_n "checking for lwp_create in -llwp... " >&6; }
if ${ac_cv_lib_lwp_lwp_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llwp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char lwp_create ();
int
main ()
{
return lwp_create ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_lwp_lwp_create=yes
else
  ac_cv_lib_lwp_lwp_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
  have_lwp=yes
else
  have_lwp=no
fi


		if test $have_lwp = yes ; then

$as_echo "#define HAVE_LWP 1" >>confdefs.h

			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
			ol_link_threads=lwp

			if test x$ol_with_yielding_select = xauto ; then
				ol_with_yielding_select=no
			fi
		fi
	fi
	;;
esac

if test $ol_with_yielding_select = yes ; then

$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h

fi

if test $ol_with_threads = manual ; then
		ol_link_threads=yes

	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}

	for ac_header in pthread.h sched.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

	for ac_func in sched_yield pthread_yield
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
if ${ol_cv_header_linux_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
  ol_cv_header_linux_threads=yes
else
  ol_cv_header_linux_threads=no
fi
rm -f conftest*


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
$as_echo "$ol_cv_header_linux_threads" >&6; }
	if test $ol_cv_header_linux_threads = yes; then

$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h

	fi


	for ac_header in mach/cthreads.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MACH_CTHREADS_H 1
_ACEOF

fi

done

	for ac_header in lwp/lwp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LWP_LWP_H 1
_ACEOF

fi

done

	for ac_header in thread.h synch.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

fi

if test $ol_link_threads != no && test $ol_link_threads != nt ; then

$as_echo "#define REENTRANT 1" >>confdefs.h


$as_echo "#define _REENTRANT 1" >>confdefs.h


$as_echo "#define THREAD_SAFE 1" >>confdefs.h


$as_echo "#define _THREAD_SAFE 1" >>confdefs.h


$as_echo "#define THREADSAFE 1" >>confdefs.h


$as_echo "#define _THREADSAFE 1" >>confdefs.h


$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h


			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
$as_echo_n "checking for thread specific errno... " >&6; }
if ${ol_cv_errno_thread_specific+:} false; then :
  $as_echo_n "(cached) " >&6
else

		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <errno.h>
int
main ()
{
errno = 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_errno_thread_specific=yes
else
  ol_cv_errno_thread_specific=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
$as_echo "$ol_cv_errno_thread_specific" >&6; }

			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
$as_echo_n "checking for thread specific h_errno... " >&6; }
if ${ol_cv_h_errno_thread_specific+:} false; then :
  $as_echo_n "(cached) " >&6
else

		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netdb.h>
int
main ()
{
h_errno = 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ol_cv_h_errno_thread_specific=yes
else
  ol_cv_h_errno_thread_specific=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
$as_echo "$ol_cv_h_errno_thread_specific" >&6; }

	if test $ol_cv_errno_thread_specific != yes ||
	   test $ol_cv_h_errno_thread_specific != yes ; then
		LIBS="$LTHREAD_LIBS $LIBS"
		LTHREAD_LIBS=""
	fi

fi

if test $ol_link_threads = no ; then
	if test $ol_with_threads = yes ; then
		as_fn_error $? "no suitable thread support" "$LINENO" 5
	fi

	if test $ol_with_threads = auto ; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
		ol_with_threads=no
	fi


$as_echo "#define NO_THREADS 1" >>confdefs.h

	LTHREAD_LIBS=""
	BUILD_THREAD=no
else
	BUILD_THREAD=yes
fi

if test $ol_link_threads != no ; then

$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h

fi

# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
case "$ol_with_threads" in
 no)
    ol_pthread_ok=no

    ;;
 *)
    ol_found_pthreads=yes
    ;;
esac

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    case "$ol_found_pthreads" in
     yes)
	saved_LIBS="$LIBS"
	LIBS="$LTHREAD_LIBS $LIBS"
	saved_CFLAGS="$CFLAGS"
	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
	for ac_func in sem_timedwait
do :
  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
if test "x$ac_cv_func_sem_timedwait" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SEM_TIMEDWAIT 1
_ACEOF

fi
done

	LIBS="$saved_LIBS"
	{ saved_LIBS=; unset saved_LIBS;}
	CFLAGS="$saved_CFLAGS"
	{ saved_CFLAGS=; unset saved_CFLAGS;}
	case "$ac_cv_func_sem_timedwait" in
	 yes)
	    PTHREAD_LIBS="$LTHREAD_LIBS"
	    have_pthreads=yes
	    # Bug 2332: With GCC we need to force a reference to libgcc_s
	    # (if libgcc_s exists) or the combination of
	    # threads + setuid + mlockall does not work on linux because
	    # thread cancellation fails to load libgcc_s with dlopen().
	    # We have to pass this all as linker options to avoid argument
	    # reordering by libtool.
	    case "$GCC$with_gnu_ld" in
	    yesyes)
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lgcc_s" >&5
$as_echo_n "checking for exit in -lgcc_s... " >&6; }
if ${ac_cv_lib_gcc_s_exit+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgcc_s  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char exit ();
int
main ()
{
return exit ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gcc_s_exit=yes
else
  ac_cv_lib_gcc_s_exit=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_exit" >&5
$as_echo "$ac_cv_lib_gcc_s_exit" >&6; }
if test "x$ac_cv_lib_gcc_s_exit" = xyes; then :
  PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed"
fi

		;;
	    esac
	esac
    esac
esac

case "$have_pthreads" in
 yes)
    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
    saved_LIBS="$LIBS"
    LIBS="$LTHREAD_LIBS $LIBS"
    saved_CFLAGS="$CFLAGS"
    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
$as_echo_n "checking size of pthread_t... " >&6; }
if ${ac_cv_sizeof_pthread_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
	    $ac_includes_default
	    #include <pthread.h>


"; then :

else
  if test "$ac_cv_type_pthread_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (pthread_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_pthread_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
$as_echo "$ac_cv_sizeof_pthread_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
_ACEOF


    LIBISC_PTHREADS_NOTHREADS=pthreads

$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h

    #
    # We'd like to use sigwait() too
    #
    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
if test "x$ac_cv_func_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
$as_echo_n "checking for sigwait in -lc... " >&6; }
if ${ac_cv_lib_c_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_sigwait=yes
else
  ac_cv_lib_c_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
$as_echo "$ac_cv_lib_c_sigwait" >&6; }
if test "x$ac_cv_lib_c_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
$as_echo_n "checking for sigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread_sigwait=yes
else
  ac_cv_lib_pthread_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
  have_sigwait=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
if ${ac_cv_lib_pthread__Psigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char _Psigwait ();
int
main ()
{
return _Psigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_pthread__Psigwait=yes
else
  ac_cv_lib_pthread__Psigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
  have_sigwait=yes
else
  have_sigwait=no

fi


fi


fi


fi

    case "$host:$have_sigwait" in
     *-freebsd*:no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
$as_echo_n "checking for sigwait in -lc_r... " >&6; }
if ${ac_cv_lib_c_r_sigwait+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc_r  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sigwait ();
int
main ()
{
return sigwait ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_c_r_sigwait=yes
else
  ac_cv_lib_c_r_sigwait=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
  have_sigwait=yes

fi

    esac
    case "$have_sigwait" in
     yes)
	ac_cv_func_sigwait=yes

$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h

    esac

    for ac_func in pthread_attr_getstacksize
do :
  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
_ACEOF

fi
done

    for ac_func in pthread_attr_setstacksize sysconf
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


    case "$host" in
     *-freebsd5.[012]|*-freebsd5.[012].*)
	;;
     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)

$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h

	;;
     *-bsdi3.*|*-bsdi4.0*)

$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h

	;;
     *-linux*)

$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h

	;;
     *-solaris*)
	$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

	for ac_func in pthread_setconcurrency
do :
  ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_SETCONCURRENCY 1
_ACEOF

fi
done

	case "$ac_cv_func_pthread_setconcurrency" in
	 yes)

$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h

	esac
	;;
     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)

$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h

	;;
    esac
    hack_shutup_pthreadonceinit=no
    case "$host" in
     *-aix5.[123].*)
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.[89])
	hack_shutup_pthreadonceinit=yes
	;;
     *-solaris2.1[0-9])
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <pthread.h>

int
main ()
{

		        static pthread_once_t once_test =
						PTHREAD_ONCE_INIT;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_braces_around_pthread_once_init=no
else
  ntp_cv_braces_around_pthread_once_init=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
	case "$ntp_cv_braces_around_pthread_once_init" in
	 yes)
	    hack_shutup_pthreadonceinit=yes
	esac
	;;
    esac
    case "$hack_shutup_pthreadonceinit" in
     yes)

$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h

    esac
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
    CFLAGS="$saved_CFLAGS"
    { saved_CFLAGS=; unset saved_CFLAGS;}
    ;;
 *)
    LIBISC_PTHREADS_NOTHREADS=nothreads
    ;;
esac

 if test "$have_pthreads" != "no"; then
  PTHREADS_TRUE=
  PTHREADS_FALSE='#'
else
  PTHREADS_TRUE='#'
  PTHREADS_FALSE=
fi







case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
 no:yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
if ${ntp_cv_vsnprintf_percent_m+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ntp_cv_vsnprintf_percent_m=no

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include <stdarg.h>
		    #include <errno.h>
		    #include <stdio.h>
		    #include <string.h>

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    );

		    int call_vsnprintf(
			    char *	dst,
			    size_t	sz,
			    const char *fmt,
			    ...
			    )
		    {
			    va_list	ap;
			    int		rc;

			    va_start(ap, fmt);
			    rc = vsnprintf(dst, sz, fmt, ap);
			    va_end(ap);

			    return rc;
		    }

int
main ()
{

		    char	sbuf[512];
		    char	pbuf[512];
		    int		slen;

		    strcpy(sbuf, strerror(ENOENT));
		    errno = ENOENT;
		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
					  "wrong");
		    return strcmp(sbuf, pbuf);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ntp_cv_vsnprintf_percent_m=yes
else
  ntp_cv_vsnprintf_percent_m=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
    case "$ntp_cv_vsnprintf_percent_m" in
     yes)

$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h

    esac
esac

for ac_header in sys/clockctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_CLOCKCTL_H 1
_ACEOF

fi

done


# Check whether --enable-clockctl was given.
if test "${enable_clockctl+set}" = set; then :
  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
else
  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
$as_echo "$ntp_use_dev_clockctl" >&6; }


for ac_header in sys/capability.h sys/prctl.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }

case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
 yesyes)
    case "$host" in
     mips-sgi-irix*)
	ntp_have_linuxcaps=no
	;;
     *) ntp_have_linuxcaps=yes
	;;
    esac
    ;;
 *)
    ntp_have_linuxcaps=no
    ;;
esac

# Check whether --enable-linuxcaps was given.
if test "${enable_linuxcaps+set}" = set; then :
  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
$as_echo "$ntp_have_linuxcaps" >&6; }

case "$ntp_have_linuxcaps" in
 yes)

$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h

    LIBS="$LIBS -lcap"
    ;;
esac


for ac_header in priv.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
if test "x$ac_cv_header_priv_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PRIV_H 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
$as_echo_n "checking if we have solaris privileges... " >&6; }

case "$ac_cv_header_priv_h" in
 yes)
    case "$host" in
     *-solaris*)
	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
if test "x$ac_cv_func_setppriv" = xyes; then :
  ntp_have_solarisprivs=yes
else
  ntp_have_solarisprivs=no

fi

	;;
    esac
esac

# Check whether --enable-solarisprivs was given.
if test "${enable_solarisprivs+set}" = set; then :
  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval

fi



case "$ntp_have_solarisprivs" in
 yes)

$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
$as_echo "$ntp_have_solarisprivs" >&6; }

case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
 *yes*)

$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h

esac

case "$host" in
 *-*-darwin*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
$as_echo_n "checking for library containing res_9_init... " >&6; }
if ${ac_cv_search_res_9_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char res_9_init ();
int
main ()
{
return res_9_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_9_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_res_9_init+:} false; then :
  break
fi
done
if ${ac_cv_search_res_9_init+:} false; then :

else
  ac_cv_search_res_9_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
$as_echo "$ac_cv_search_res_9_init" >&6; }
ac_res=$ac_cv_search_res_9_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

    ;;
 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
$as_echo_n "checking for library containing res_init... " >&6; }
if ${ac_cv_search_res_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char res_init ();
int
main ()
{
return res_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_res_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_res_init+:} false; then :
  break
fi
done
if ${ac_cv_search_res_init+:} false; then :

else
  ac_cv_search_res_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
$as_echo "$ac_cv_search_res_init" >&6; }
ac_res=$ac_cv_search_res_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

    ;;
esac
for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#  include <netinet/in.h>   /* inet_ functions / structs */
#endif
#ifdef HAVE_ARPA_NAMESER_H
#  include <arpa/nameser.h> /* DNS HEADER struct */
#endif
#ifdef HAVE_NETDB_H
#  include <netdb.h>
#endif
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


#HMS: Why do we do this check so "early"?
for ac_func in res_init
do :
  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
if test "x$ac_cv_func_res_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_RES_INIT 1
_ACEOF

else
  for ac_func in __res_init
do :
  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
if test "x$ac_cv_func___res_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___RES_INIT 1
_ACEOF

fi
done

fi
done


# We also need -lsocket, but we have tested for that already.
ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
if test "x$ac_cv_func_inet_ntop" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h

fi

ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
if test "x$ac_cv_func_inet_pton" = xyes; then :

else

$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h

fi


ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
if test "x$ac_cv_type_uintptr_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
if test "x$ac_cv_type_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_INT32 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
if test "x$ac_cv_type_u_int32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_U_INT32 1
_ACEOF


fi




case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
$as_echo_n "checking for int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_int32_with_dns+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>

int
main ()
{

		    size_t cb = sizeof(int32);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_type_int32_with_dns=yes
else
  ntp_cv_type_int32_with_dns=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
$as_echo "$ntp_cv_type_int32_with_dns" >&6; }
    case "$ntp_cv_type_int32_with_dns" in
     yes)

$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h

    esac
esac

case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
 no::yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
$as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
if ${ntp_cv_type_u_int32_with_dns+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_ARPA_NAMESER_H
		    # include <arpa/nameser.h>
		    #endif
		    #include <resolv.h>

int
main ()
{

		    size_t cb = sizeof(u_int32);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_type_u_int32_with_dns=yes
else
  ntp_cv_type_u_int32_with_dns=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
    case "$ntp_cv_type_u_int32_with_dns" in
     yes)

$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h

    esac
esac

for ac_header in sys/timepps.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
	#ifdef HAVE_SYS_TIME_H
	# include <sys/time.h>
	#endif
	#ifdef HAVE_ERRNO_H
	# include <errno.h>
	#endif


"
if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEPPS_H 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
$as_echo_n "checking for struct timespec... " >&6; }
if ${ntp_cv_struct_timespec+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>
		/* Under SunOS, timespec is in sys/timepps.h,
		   which needs errno.h and FRAC */
		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif
		#ifdef HAVE_SYS_TIMEPPS_H
		# define FRAC 4294967296
		# include <sys/timepps.h>
		#endif

int
main ()
{

		struct timespec n;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_timespec=yes
else
  ntp_cv_struct_timespec=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
$as_echo "$ntp_cv_struct_timespec" >&6; }
case "$ntp_cv_struct_timespec" in
 yes)

$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
$as_echo_n "checking for struct ntptimeval... " >&6; }
if ${ntp_cv_struct_ntptimeval+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>
		#include <sys/timex.h>

int
main ()
{

		struct ntptimeval n;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ntptimeval=yes
else
  ntp_cv_struct_ntptimeval=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
case "$ntp_cv_struct_ntptimeval" in
 yes)

$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h

esac

for ac_header in md5.h
do :
  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
	#ifdef HAVE_SYS_TYPES_H
	# include <sys/types.h>
	#endif


"
if test "x$ac_cv_header_md5_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MD5_H 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
$as_echo_n "checking for library containing MD5Init... " >&6; }
if ${ac_cv_search_MD5Init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char MD5Init ();
int
main ()
{
return MD5Init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' md5 md; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_MD5Init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_MD5Init+:} false; then :
  break
fi
done
if ${ac_cv_search_MD5Init+:} false; then :

else
  ac_cv_search_MD5Init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
$as_echo "$ac_cv_search_MD5Init" >&6; }
ac_res=$ac_cv_search_MD5Init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
$as_echo_n "checking for SIGIO... " >&6; }
if ${ntp_cv_hdr_def_sigio+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <signal.h>

	    #ifndef SIGIO
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_hdr_def_sigio=yes
else
  ntp_cv_hdr_def_sigio=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
$as_echo "$ntp_cv_hdr_def_sigio" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
$as_echo_n "checking if we want to use SIGIO... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigio" in
 yes)
    ans=yes
    case "$host" in
     alpha*-dec-osf4*|alpha*-dec-osf5*)
	ans=no
	;;
     *-convex-*)
	ans=no
	;;
     *-dec-*)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-univel-sysv*)
	ans=no
	;;
     *-*-irix6*)
	ans=no
	;;
     *-*-freebsd*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     m68k-*-mint*)
	ans=no
	;;
    esac
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
$as_echo_n "checking for SIGPOLL... " >&6; }
if ${ntp_cv_hdr_def_sigpoll+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <signal.h>

	    #ifndef SIGPOLL
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_hdr_def_sigpoll=yes
else
  ntp_cv_hdr_def_sigpoll=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-solaris*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
ans=no
case "$ntp_cv_hdr_def_sigpoll" in
 yes)
    case "$host" in
     mips-sgi-irix*)
	ans=no
	;;
     vax-dec-bsd)
	ans=no
	;;
     *-pc-cygwin*)
	ans=no
	;;
     *-sni-sysv*)
	ans=no
	;;
     *-*-aix[4-9]*)
	# XXX Only verified thru AIX6
	ans=no
	;;
     *-*-hpux*)
	ans=no
	;;
     *-*-*linux*)
	ans=no
	;;
     *-*-osf*)
	ans=no
	;;
     *-*-sunos*)
	ans=no
	;;
     *-*-ultrix*)
	ans=no
	;;
     *-*-qnx*)
	ans=no
	;;
     *-*-unicosmp*)
	ans=no
	;;
     *-*-kfreebsd*)
	ans=no
	;;
     *) ans=yes
	;;
    esac
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>

int
main ()
{

		gettimeofday(0, 0);
		settimeofday(0, 0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_func_Xettimeofday_nargs=2
else
  ntp_cv_func_Xettimeofday_nargs=1

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
case "$ntp_cv_func_Xettimeofday_nargs" in
 1)

$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h

esac

for ac_func in settimeofday
do :
  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
if test "x$ac_cv_func_settimeofday" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SETTIMEOFDAY 1
_ACEOF

else

    case "$host" in
     *-*-mpeix*) ac_cv_func_settimeofday=yes
    esac

fi
done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
ntp_warning='GRONK'
ans=none
case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
 yes*)
    ntp_warning=''
    ans='clock_settime()'
    ;;
 noyes*)
    ntp_warning='But clock_settime() would be better (if we had it)'
    ans='settimeofday()'
    ;;
 nonoyes)
    ntp_warning='Which is the worst of the three'
    ans='stime()'
    ;;
 *)
    case "$build" in
     $host)
	ntp_warning='Which leaves us with nothing to use!'
    esac
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ntp_warning" in
 '')
    ;;
 *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
    ;;
esac


LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
LIBS=$__LIBS
{ __LIBS=; unset __LIBS;}



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
$as_echo_n "checking for deprecated --with-arlib... " >&6; }

# Check whether --with-arlib was given.
if test "${with_arlib+set}" = set; then :
  withval=$with_arlib; ans=$withval
else
  ans=no
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&5
$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&2;}
    ;;
esac

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@@echo '@@@@@@%%%=$(MAKE)=@@@@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@@@@%%%=?*=@@@@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
$as_echo_n "checking for library containing strerror... " >&6; }
if ${ac_cv_search_strerror+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strerror ();
int
main ()
{
return strerror ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' cposix; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_strerror=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_strerror+:} false; then :
  break
fi
done
if ${ac_cv_search_strerror+:} false; then :

else
  ac_cv_search_strerror=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
$as_echo "$ac_cv_search_strerror" >&6; }
ac_res=$ac_cv_search_strerror
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi



# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_PERL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_PERL=$ac_cv_path_PATH_PERL
if test -n "$PATH_PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
$as_echo "$PATH_PERL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
# Extract the first word of "test", so it can be a program name with args.
set dummy test; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_TEST+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_TEST in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_TEST=$ac_cv_path_PATH_TEST
if test -n "$PATH_TEST"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
$as_echo "$PATH_TEST" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh


# Check whether --with-net-snmp-config was given.
if test "${with_net_snmp_config+set}" = set; then :
  withval=$with_net_snmp_config; ans=$withval
else
  ans=yes

fi

case "$ans" in
 no)
    ;;
 yes)
    ans=net-snmp-config
    ;;
 /*)
    ;;
 */*)
    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
    ;;
 *)
    ;;
esac
PROG_NET_SNMP_CONFIG=$ans
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
$as_echo_n "checking for net-snmp-config path... " >&6; }
case "$PROG_NET_SNMP_CONFIG" in
 no) ;;
 /*)
    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
    ;;
 *)
    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PATH_NET_SNMP_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
if test -n "$PATH_NET_SNMP_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }

case "$host" in
 *-*-vxworks*)
    ac_link="$ac_link $VX_KERNEL"
    ;;
esac

# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
$as_echo_n "checking for library containing openlog... " >&6; }
if ${ac_cv_search_openlog+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char openlog ();
int
main ()
{
return openlog ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' gen syslog; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_openlog=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_openlog+:} false; then :
  break
fi
done
if ${ac_cv_search_openlog+:} false; then :

else
  ac_cv_search_openlog=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
$as_echo "$ac_cv_search_openlog" >&6; }
ac_res=$ac_cv_search_openlog
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

# XXX library list will be in ac_cv_search_openlog

# LIBSECCOMP is off by default -- needs testing with all the features
# Please send bug reports to loganaden@@gmail.com
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
# Check whether --enable-libseccomp was given.
if test "${enable_libseccomp+set}" = set; then :
  enableval=$enable_libseccomp; ntp_ok=$enableval
else
  ntp_ok=no

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
$as_echo_n "checking for library containing seccomp_init... " >&6; }
if ${ac_cv_search_seccomp_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char seccomp_init ();
int
main ()
{
return seccomp_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' seccomp; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_seccomp_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_seccomp_init+:} false; then :
  break
fi
done
if ${ac_cv_search_seccomp_init+:} false; then :

else
  ac_cv_search_seccomp_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
$as_echo "$ac_cv_search_seccomp_init" >&6; }
ac_res=$ac_cv_search_seccomp_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

$as_echo "#define LIBSECCOMP 1" >>confdefs.h


fi

    if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	#include <stdio.h>
	#include <stdlib.h>
	#include <errno.h>
	#include <sys/prctl.h>
	#include <linux/seccomp.h>

	int main(void)
	{
		int ret;
		ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
		if (ret < 0) {
			switch (errno) {
			case ENOSYS:
				return 1;
			case EINVAL:
				return 1;
			default:
				return 1;
			}
		}
		ret =
		prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
		if (ret < 0) {
			switch (errno) {
			case EINVAL:
				return 1;
			case EFAULT:
				return 0;
			default:
				return 1;
		}
	}
return 1;
}


_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

$as_echo "#define KERN_SECCOMP 1" >>confdefs.h


fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
$as_echo_n "checking for facilitynames in syslog.h... " >&6; }
if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define SYSLOG_NAMES
#include <stdlib.h>
#include <syslog.h>

int
main ()
{
 void *fnames; fnames = facilitynames;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
else
  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
 yes)

$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h

    ;;
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
    ;;
 cross)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
    ;;
esac



case "$host" in
 *-*-*linux*) ;;
 *-*-osf4*) ;;
 *-*-osf5*) ;;
 *)
    # HMS: Make sure we check for -lrt for clock_* before this...
    case "$ac_cv_search_clock_gettime" in
     '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
$as_echo_n "checking for library containing sched_setscheduler... " >&6; }
if ${ac_cv_search_sched_setscheduler+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char sched_setscheduler ();
int
main ()
{
return sched_setscheduler ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' rt posix4; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_sched_setscheduler=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_sched_setscheduler+:} false; then :
  break
fi
done
if ${ac_cv_search_sched_setscheduler+:} false; then :

else
  ac_cv_search_sched_setscheduler=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
$as_echo "$ac_cv_search_sched_setscheduler" >&6; }
ac_res=$ac_cv_search_sched_setscheduler
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

    ;;
esac

for ac_header in bstring.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
if test "x$ac_cv_header_bstring_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_BSTRING_H 1
_ACEOF

fi

done

ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
if test "x$ac_cv_header_dns_sd_h" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
$as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
if ${ac_cv_search_DNSServiceRegister+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char DNSServiceRegister ();
int
main ()
{
return DNSServiceRegister ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dns_sd; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_DNSServiceRegister=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_DNSServiceRegister+:} false; then :
  break
fi
done
if ${ac_cv_search_DNSServiceRegister+:} false; then :

else
  ac_cv_search_DNSServiceRegister=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
$as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
ac_res=$ac_cv_search_DNSServiceRegister
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h


fi


fi


for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in memory.h netdb.h poll.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in sgtty.h stdlib.h string.h termio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in termios.h timepps.h timex.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


case "$host" in
 *-*-aix*)
    for ac_header in utmpx.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
if test "x$ac_cv_header_utmpx_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMPX_H 1
_ACEOF

fi

done

    case "$ac_cv_header_utmpx_h" in
     yes)
	;;
     *)
	for ac_header in utmp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
if test "x$ac_cv_header_utmp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UTMP_H 1
_ACEOF

fi

done

	;;
    esac
    ;;
 *)
    for ac_header in utmp.h utmpx.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ;;
esac

#
# On Suns only (so far) getpass() truncates the typed password to 8
# characters, but getpassphrase() allows up to 257.  Most systems'
# getpass() does not truncate, at least not so as to affect ntpq and
# ntpdc password prompts.
#
# So check for getpassphrase(), but only on Sun operating systems.
#
case "$host" in
 *-*-sunos*|*-*-solaris*)
    for ac_func in getpassphrase
do :
  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
if test "x$ac_cv_func_getpassphrase" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETPASSPHRASE 1
_ACEOF

fi
done

esac


for ac_header in net/if6.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
if test "x$ac_cv_header_net_if6_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF6_H 1
_ACEOF

fi

done

for ac_header in net/route.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <net/if.h>

"
if test "x$ac_cv_header_net_route_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_ROUTE_H 1
_ACEOF

fi

done


for ac_header in netinfo/ni.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NETINFO_NI_H 1
_ACEOF

fi

done

case "$ac_cv_header_netinfo_ni_h" in
 yes)

$as_echo "#define HAVE_NETINFO 1" >>confdefs.h

esac
for ac_header in sun/audioio.h sys/audioio.h sys/file.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

case "$host" in
 *-*-sunos4*)
    ;;
 *)
    for ac_header in sys/ioctl.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_IOCTL_H 1
_ACEOF

fi

done

    ;;
esac
for ac_header in sys/ipc.h sys/lock.h sys/mman.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# HMS: Check sys/proc.h and sys/resource.h after some others
for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

case "$ac_cv_header_sched_h" in
 yes)
    ;;
 *)
    for ac_header in sys/sched.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sched_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SCHED_H 1
_ACEOF

fi

done

    ;;
esac
# HMS: Check sys/shm.h after some others
for ac_header in sys/select.h sys/signal.h sys/sockio.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

# HMS: Checked sys/socket.h earlier
case "$host" in
 *-*-netbsd*)
    ;;
 *)
    for ac_header in machine/soundcard.h sys/soundcard.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ;;
esac
for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

case "$host" in
*-convex-*)
    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ;;
*-*-bsdi*)
    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    ;;
esac

case "$host" in
 *-*-solaris2.6)
    # Broken...
    ;;
 *)
    for ac_func in ntp_adjtime ntp_gettime
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    ;;
esac

case "$host" in
 *-*-*linux*)
    case "$ac_cv_func_ntp_gettime" in
     yes)
	;;
     *)
	for ac_func in __ntp_gettime
do :
  ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
if test "x$ac_cv_func___ntp_gettime" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___NTP_GETTIME 1
_ACEOF

fi
done

	case "$ac_cv_func___ntp_gettime" in
	 yes)

$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h


$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h

	esac
	;;
    esac
    for ac_func in adjtimex
do :
  ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
if test "x$ac_cv_func_adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ADJTIMEX 1
_ACEOF

fi
done

    case "$ac_cv_func_adjtimex" in
     yes)

$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h


$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h

	have_adjtimex=1
	;;
     *)
	for ac_func in __adjtimex
do :
  ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
if test "x$ac_cv_func___adjtimex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE___ADJTIMEX 1
_ACEOF

fi
done

	case "$ac_cv_func___adjtimex" in
	 yes)

$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h


$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h


$as_echo "#define adjtimex __adjtimex" >>confdefs.h


$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h

	    have_adjtimex=1
	esac
	;;
    esac
esac
case "$have_adjtimex" in
 '')
    # nlist stuff is only needed for tickadj.
    saved_LIBS="$LIBS"
    LIBS=
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
$as_echo_n "checking for library containing nlist... " >&6; }
if ${ac_cv_search_nlist+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nlist ();
int
main ()
{
return nlist ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' elf ld mld; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_nlist=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_nlist+:} false; then :
  break
fi
done
if ${ac_cv_search_nlist+:} false; then :

else
  ac_cv_search_nlist=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
$as_echo "$ac_cv_search_nlist" >&6; }
ac_res=$ac_cv_search_nlist
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

    # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
$as_echo_n "checking for library containing kvm_open... " >&6; }
if ${ac_cv_search_kvm_open+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char kvm_open ();
int
main ()
{
return kvm_open ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' kvm; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_kvm_open=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_kvm_open+:} false; then :
  break
fi
done
if ${ac_cv_search_kvm_open+:} false; then :

else
  ac_cv_search_kvm_open=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
$as_echo "$ac_cv_search_kvm_open" >&6; }
ac_res=$ac_cv_search_kvm_open
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi
	    # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
    for ac_header in nlist.h sys/var.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    case "$ac_cv_header_nlist_h" in
     yes)

$as_echo "#define NLIST_STRUCT 1" >>confdefs.h

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
$as_echo_n "checking for n_un in struct nlist... " >&6; }
if ${ntp_cv_struct_nlist_n_un+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <nlist.h>

int
main ()
{

			struct nlist n;
			n.n_un.n_name = 0;


  ;
  return 0;
}
		ntp_cv_struct_nlist_n_un=yes
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_nlist_n_un=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
	case "$ntp_cv_struct_nlist_n_un" in
	 yes)

$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h

	esac
    esac

    LDADD_NLIST="$LIBS"
    LIBS="$saved_LIBS"
    { saved_LIBS=; unset saved_LIBS;}
esac

for ac_header in sys/proc.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif

"
if test "x$ac_cv_header_sys_proc_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PROC_H 1
_ACEOF

fi

done


for ac_header in sys/resource.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif

"
if test "x$ac_cv_header_sys_resource_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_RESOURCE_H 1
_ACEOF

fi

done


for ac_header in sys/shm.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
    #ifdef HAVE_SYS_TYPES_H
    # include <sys/types.h>
    #endif
    #ifdef HAVE_SYS_IPC_H
    # include <sys/ipc.h>
    #endif

"
if test "x$ac_cv_header_sys_shm_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_SHM_H 1
_ACEOF

fi

done


for ac_header in sys/timex.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
    #ifdef HAVE_SYS_TIME_H
    # include <sys/time.h>
    #endif

"
if test "x$ac_cv_header_sys_timex_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIMEX_H 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
if ${ac_cv_type_signal+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <signal.h>

int
main ()
{
return *(signal (0, 0)) (0) == 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_signal=int
else
  ac_cv_type_signal=void
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }

cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
_ACEOF


ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
if test "x$ac_cv_type_off_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define off_t long int
_ACEOF

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if ${ac_cv_struct_tm+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>

int
main ()
{
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_tm=time.h
else
  ac_cv_struct_tm=sys/time.h
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then

$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
$as_echo_n "checking for a fallback value for HZ... " >&6; }
if ${ntp_cv_default_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_default_hz=100
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_default_hz=1024
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_default_hz=256
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
$as_echo "$ntp_cv_default_hz" >&6; }

cat >>confdefs.h <<_ACEOF
#define DEFAULT_HZ $ntp_cv_default_hz
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
if ${ntp_cv_override_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_override_hz=no
	case "$host" in
	 alpha*-dec-osf4*|alpha*-dec-osf5*)
	    ntp_cv_override_hz=yes
	    ;;
	 mips-dec-ultrix4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-freebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-sunos4*)
	    ntp_cv_override_hz=yes
	    ;;
	 *-*-kfreebsd*)
	    ntp_cv_override_hz=yes
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
$as_echo "$ntp_cv_override_hz" >&6; }
case "$ntp_cv_override_hz" in
 yes)

$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h

esac



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
$as_echo_n "checking for struct rt_msghdr... " >&6; }
if ${ntp_cv_struct_rt_msghdr+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <sys/socket.h>
		#include <net/if.h>
		#include <net/route.h>

int
main ()
{

		struct rt_msghdr p;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_rt_msghdr=yes
else
  ntp_cv_struct_rt_msghdr=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
$as_echo_n "checking for struct rtattr... " >&6; }
if ${ntp_cv_rtattr+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <stddef.h>
		#include <sys/socket.h>
		#include <linux/rtnetlink.h>

int
main ()
{

		struct rtattr p;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rtattr=yes
else
  ntp_cv_rtattr=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
$as_echo "$ntp_cv_rtattr" >&6; }

case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
 *yes*)

$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h

    case "$ntp_cv_rtattr" in
     yes)

$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h

    esac
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <signal.h>

int
main ()
{

		struct sigaction act;
		act.sa_sigaction = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_sigaction_has_sa_sigaction=yes
else
  ntp_cv_struct_sigaction_has_sa_sigaction=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
 yes)

$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
$as_echo_n "checking for struct ppsclockev... " >&6; }
if ${ntp_cv_struct_ppsclockev+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TERMIOS_H
		# include <sys/termios.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_PPSCLOCK_H
		# include <sys/ppsclock.h>
		#endif

int
main ()
{

		extern struct ppsclockev *pce;
		return pce->serial;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_ppsclockev=yes
else
  ntp_cv_struct_ppsclockev=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
case "$ntp_cv_struct_ppsclockev" in
 yes)

$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h

esac

case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
  *yes*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
$as_echo_n "checking for struct snd_size... " >&6; }
if ${ntp_cv_struct_snd_size+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_MACHINE_SOUNDCARD_H
		    # include <machine/soundcard.h>
		    #endif
		    #ifdef HAVE_SYS_SOUNDCARD_H
		    # include <sys/soundcard.h>
		    #endif

int
main ()
{

		    extern struct snd_size *ss;
		    return ss->rec_size;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_snd_size=yes
else
  ntp_cv_struct_snd_size=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
$as_echo "$ntp_cv_struct_snd_size" >&6; }
    case "$ntp_cv_struct_snd_size" in
     yes)

$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h

    esac
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
$as_echo_n "checking struct clockinfo for hz... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>

int
main ()
{

		extern struct clockinfo *pc;
		return pc->hz;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_clockinfo_has_hz=yes
else
  ntp_cv_struct_clockinfo_has_hz=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)

$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/time.h>

int
main ()
{

		extern struct clockinfo *pc;
		return pc->tickadj;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_struct_clockinfo_has_hz=yes
else
  ntp_cv_struct_clockinfo_has_hz=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
case "$ntp_cv_struct_clockinfo_has_hz" in
 yes)

$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h

esac

case "$ntp_cv_struct_ntptimeval" in
 yes)
    ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
	    #ifdef HAVE_SYS_TIME_H
	    # include <sys/time.h>
	    #else
	    # ifdef HAVE_TIME_H
	    #  include <time.h>
	    # endif
	    #endif
	    #ifdef HAVE_SYS_TIMEX_H
	    # include <sys/timex.h>
	    #else
	    # ifdef HAVE_TIMEX_H
	    #  include <timex.h>
	    # endif
	    #endif


"
if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
_ACEOF


fi

esac

####

saved_LIBS="$LIBS"
LIBS="$LIBS $LDADD_LIBNTP"
for ac_func in daemon
do :
  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
if test "x$ac_cv_func_daemon" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_DAEMON 1
_ACEOF

fi
done

# XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
LIBS="$saved_LIBS"
{ saved_LIBS=; unset saved_LIBS;}

for ac_func in finite
do :
  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
if test "x$ac_cv_func_finite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FINITE 1
_ACEOF

else
  for ac_func in isfinite
do :
  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
if test "x$ac_cv_func_isfinite" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ISFINITE 1
_ACEOF

else

	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
$as_echo_n "checking for isfinite with <math.h>... " >&6; }
	    _libs=$LIBS
	    # XXX
	    LIBS="$LIBS -lm"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include <math.h>

int
main ()
{

			float f = 0.0;
			isfinite(f);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ans=yes
else
  ans=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    LIBS=$_libs
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
	    case "$ans" in
	     yes)
		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h

	    esac


fi
done


fi
done


for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


# kvm_open() is only used by tickadj.  Also see above.
case "$ac_cv_header_kvm_h" in
 yes)
    for ac_func in kvm_open
do :
  ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
if test "x$ac_cv_func_kvm_open" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_KVM_OPEN 1
_ACEOF

fi
done

    ;;
esac

case "$host" in
 *-*-sco3.2v5.0.*)
    # Just stubs.  Sigh.
    ;;
 *) for ac_func in mkstemp
do :
  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
if test "x$ac_cv_func_mkstemp" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MKSTEMP 1
_ACEOF

fi
done

    ;;
esac
for ac_func in mktime
do :
  ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
if test "x$ac_cv_func_mktime" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MKTIME 1
_ACEOF

fi
done

case "$host" in
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub.  Sigh.
    ;;
 *-*-irix[45]*)
    # Just a stub in "old" Irix.  Sigh.
    ;;
# In the belief that the fix for bug 1223 fixes mlockall() under linux...
# *-*-*linux*)
#    # there, but more trouble than it is worth for now (resolver problems)
#    ;;
 *-*-qnx*)
    # Apparently there but not working in QNX.  Sigh?
    ;;
 *-*-sco3.2v5.0.*)
    # Just a stub.  Sigh.
    ;;
 alpha*-dec-osf4*|alpha*-dec-osf5*)
    # mlockall is there, as a #define calling memlk via <sys/mman.h>
    # Not easy to test for - cheat.
    for ac_func in memlk
do :
  ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
if test "x$ac_cv_func_memlk" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MEMLK 1
_ACEOF
 ac_cv_func_mlockall=yes
fi
done

    for ac_func in mlockall
do :
  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MLOCKALL 1
_ACEOF

fi
done

    ;;
 *) for ac_func in mlockall
do :
  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MLOCKALL 1
_ACEOF

fi
done

    ;;
esac
for ac_func in nice plock pututline pututxline readlink rtprio
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

case "$host" in
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just a stub in AIX 4.  Sigh.
    ;;
 *-*-solaris2.5*)
    # Just stubs in solaris2.5.  Sigh.
    ;;
 *) for ac_func in sched_setscheduler
do :
  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SCHED_SETSCHEDULER 1
_ACEOF

fi
done

    ;;
esac
for ac_func in setlinebuf setpgid setpriority setsid setvbuf
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

for ac_func in strdup strerror setrlimit strchr
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

case "$host" in
 *-*-aix[4-9]*)
    # XXX only verified thru AIX6.
    # Just stubs.  Sigh.
    ;;
 *-*-netbsd1*)
    # Just stubs.  Sigh.
    ;;
 *-*-netbsdelf1*)
    # Just stubs.  Sigh.
    ;;
 *-*-openbsd*)
    # Just stubs.  Sigh.
    ;;
 *)
    for ac_func in timer_create
do :
  ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
if test "x$ac_cv_func_timer_create" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_TIMER_CREATE 1
_ACEOF

fi
done

    ;;
esac



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
if ${ntp_cv_rlimit_memlock+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif

int
main ()
{

		getrlimit(RLIMIT_MEMLOCK, 0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_memlock=yes
else
  ntp_cv_rlimit_memlock=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
$as_echo "$ntp_cv_rlimit_memlock" >&6; }
case "$ntp_cv_rlimit_memlock" in
 yes)

    HAVE_RLIMIT_MEMLOCK=" memlock 32"
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
$as_echo_n "checking for RLIMIT_STACK... " >&6; }
if ${ntp_cv_rlimit_stack+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_TIME_H
		# include <sys/time.h>
		#endif
		#ifdef HAVE_SYS_RESOURCE_H
		# include <sys/resource.h>
		#endif

int
main ()
{

		getrlimit(RLIMIT_STACK, 0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_rlimit_stack=yes
else
  ntp_cv_rlimit_stack=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
$as_echo "$ntp_cv_rlimit_stack" >&6; }
case "$ntp_cv_rlimit_stack" in
 yes)

    HAVE_RLIMIT_STACK=" stacksize 50"
esac



# HMS: Only if we are doing the MLOCKALL stuff...
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
$as_echo_n "checking for the default number of 4k stack pages... " >&6; }

# Check whether --with-stack-limit was given.
if test "${with_stack_limit+set}" = set; then :
  withval=$with_stack_limit; ans=$withval
else
  ans=yes

fi

case "$ans" in
 yes | no)
    case "$host" in
     *-*-openbsd*)
	ans=200
	;;
     *) ans=50
        ;;
    esac
    ;;
 [1-9][0-9]*)
    ;;
 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_STACK $ans
_ACEOF


# HMS: only if we have RLIMIT_MEMLOCK
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }

# Check whether --with-memlock was given.
if test "${with_memlock+set}" = set; then :
  withval=$with_memlock; ans=$withval
else
  ans=yes

fi

case "$ans" in
 yes | no)
    ans=32
    ;;
 [1-9][0-9]*) ;;
 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
     ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

cat >>confdefs.h <<_ACEOF
#define DFLT_RLIMIT_MEMLOCK $ans
_ACEOF



# some OSes prefer _exit() in forked children to exit()
for ac_func in _exit
do :
  ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
if test "x$ac_cv_func__exit" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE__EXIT 1
_ACEOF

fi
done

ntp_worker_child_exit=exit
case "$ac_cv_func__exit::$host_os" in
 yes::netbsd*)
    ntp_worker_child_exit=_exit
    ;;
 yes::openbsd*)
    ntp_worker_child_exit=_exit
    ;;
esac

cat >>confdefs.h <<_ACEOF
#define WORKER_CHILD_EXIT $ntp_worker_child_exit
_ACEOF


for ac_func in umask uname updwtmp updwtmpx
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


###

# http://bugs.ntp.org/737
case "$ac_cv_func_recvmsg" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
$as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
if ${ntp_cv_struct_iovec_help+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    compiled=no
	    for ntp_cv_struct_iovec_help in '0' '1'; do
		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			    #ifdef HAVE_SYS_TYPES_H
			    # include <sys/types.h>
			    #endif
			    #ifdef HAVE_SYS_SOCKET_H
			    # include <sys/socket.h>
			    #endif
			    #if $ntp_cv_struct_iovec_help
			    # include <sys/uio.h>
			    #endif

int
main ()
{

			    void foo(void) {
				ssize_t x;
				int s = 0;
				struct iovec iov;
				struct msghdr mh;
				int flags = 0;

				mh.msg_iov = &iov;
				x = recvmsg(s, &mh, flags);
			    }


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  compiled=yes ; break 1
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    done
	    case "$compiled" in
	     no)
		ntp_cv_struct_iovec_help=0
	    esac
	    { compiled=; unset compiled;}


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
$as_echo "$ntp_cv_struct_iovec_help" >&6; }
    case "$ntp_cv_struct_iovec_help" in
     1)

$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h

    esac
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
if ${ntp_cv_func_setpgrp_nargs+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_UNISTD_H
		# include <unistd.h>
		#endif

int
main ()
{

		setpgrp(0, 0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_func_setpgrp_nargs=2
else
  ntp_cv_func_setpgrp_nargs=0

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
$as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
case "$ntp_cv_func_setpgrp_nargs" in
 0)

$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
$as_echo_n "checking if we need to declare 'errno'... " >&6; }
if ${ntp_cv_decl_errno+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_ERRNO_H
		# include <errno.h>
		#endif

int
main ()
{

		errno = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_decl_errno=no
else
  ntp_cv_decl_errno=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
$as_echo "$ntp_cv_decl_errno" >&6; }
case "$ntp_cv_decl_errno" in
 yes)

$as_echo "#define DECL_ERRNO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
$as_echo_n "checking if we may declare 'h_errno'... " >&6; }
if ${ntp_cv_decl_h_errno+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif
		#ifdef HAVE_ARPA_NAMESER_H
		# include <arpa/nameser.h>
		#endif
		#ifdef HAVE_NETDB_H
		# include <netdb.h>
		#endif
		#ifdef HAVE_RESOLV_H
		# include <resolv.h>
		#endif

int
main ()
{

		extern int h_errno;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_decl_h_errno=yes
else
  ntp_cv_decl_h_errno=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
$as_echo "$ntp_cv_decl_h_errno" >&6; }
case "$ntp_cv_decl_h_errno" in
 yes)

$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
if ${ntp_cv_decl_syscall+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_UNISTD_H
		# include <unistd.h>
		#endif

int
main ()
{

		extern int syscall (int, ...);


  ;
  return 0;
}
	ntp_cv_decl_syscall=yes
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_decl_syscall=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
$as_echo "$ntp_cv_decl_syscall" >&6; }
case "$ntp_cv_decl_syscall" in
 yes)

$as_echo "#define DECL_SYSCALL 1" >>confdefs.h

esac

case "$host" in
 *-*-aix4.3.*)

$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
		# Needed for XLC under AIX 4.3.2
    ;;
 *-*-mpeix*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h


$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h


$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_SELECT_0 1" >>confdefs.h


$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h


$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h


$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h

    ;;
 *-*-osf[45]*)

$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h


$as_echo "#define DECL_STIME_1 1" >>confdefs.h

    ;;
 *-*-qnx*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h

    ;;
 *-*-riscos4*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h


$as_echo "#define DECL_BZERO_0 1" >>confdefs.h


$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h


$as_echo "#define DECL_IPC_0 1" >>confdefs.h


$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h


$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_RENAME_0 1" >>confdefs.h


$as_echo "#define DECL_SELECT_0 1" >>confdefs.h


$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h


$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h


$as_echo "#define DECL_STDIO_0 1" >>confdefs.h


$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h


$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h


$as_echo "#define DECL_TIME_0 1" >>confdefs.h


$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h


$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h

    ;;
 *-*-solaris2*)

$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h

    case "$host" in
     *-*-solaris2.4)

$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h

	;;
    esac
    ;;
 *-*-sunos4*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h


$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h


$as_echo "#define DECL_BZERO_0 1" >>confdefs.h


$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h


$as_echo "#define DECL_IPC_0 1" >>confdefs.h


$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h


$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_RENAME_0 1" >>confdefs.h


$as_echo "#define DECL_SELECT_0 1" >>confdefs.h


$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h


$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h


$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h

    case "`basename $ac_cv_prog_CC`" in
     acc*) ;;
     *)
$as_echo "#define DECL_STDIO_0 1" >>confdefs.h

	;;
    esac

$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h


$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h


$as_echo "#define DECL_TIME_0 1" >>confdefs.h


$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h


$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h


$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h


$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h

    ;;
 *-*-ultrix4*)

$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h


$as_echo "#define DECL_BZERO_0 1" >>confdefs.h


$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h


$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h


$as_echo "#define DECL_IPC_0 1" >>confdefs.h


$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h


$as_echo "#define DECL_NLIST_0 1" >>confdefs.h


$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h


$as_echo "#define DECL_SELECT_0 1" >>confdefs.h


$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h


$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h


$as_echo "#define DECL_STIME_0 1" >>confdefs.h


$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h


$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h

    ;;
esac

case "$host" in
 *-*-sco3.2*)

$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h

    ;;
esac

case "$host" in
 *-*-hpux[567]*)

$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
$as_echo_n "checking if we will open the broadcast socket... " >&6; }
if ${ntp_cv_var_open_bcast_socket+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=yes
	case "$host" in
	 *-*-domainos)
	    ans=no
	esac
	ntp_cv_var_open_bcast_socket=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
$as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
case "$ntp_cv_var_open_bcast_socket" in
 yes)

$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h

esac

case "$host" in
 *-*-hpux*)

$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
$as_echo_n "checking if process groups are set with -pid... " >&6; }
if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-hpux[567]*)
	    ans=no
	    ;;
	 *-*-hpux*)
	    ans=yes
	    ;;
	 *-*-*linux*)
	    ans=yes
	    ;;
	 *-*-sunos3*)
	    ans=yes
	    ;;
	 *-*-ultrix2*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_arg_setpgrp_negpid=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
$as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
case "$ntp_cv_arg_setpgrp_negpid" in
 yes)

$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-bsdi[23]*)
	    ans=yes
	    ;;
	 *-*-freebsd*)
	    ans=yes
	    ;;
	# NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
	# while later versions will fail a ioctl(TIOCSCTTY, 0) call in
	# some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
	# in $host may be followed by "aout", "ecoff", or "elf".
	 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
	    ans=yes
	    ;;
	 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
	    ans=yes
	    ;;
	 *-*-openbsd*)
	    ans=yes
	    ;;
	 *-*-osf*)
	    ans=yes
	    ;;
	 *-*-darwin*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_func_ctty_for_f_setown=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
case "$ntp_cv_func_ctty_for_f_setown" in
 yes)

$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
if ${ntp_cv_os_routeupdates+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-netbsd*)
	    ans=yes
	    ;;
	 *)
	    ans=no
	    ;;
	esac
	ntp_cv_os_routeupdates=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
$as_echo "$ntp_cv_os_routeupdates" >&6; }
case "$ntp_cv_os_routeupdates" in
 yes)

$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
if ${ntp_cv_os_wildcardreuse+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-*linux*)
	    ans=yes
	    ;;
	 *) ans=no
	    ;;
	esac
	ntp_cv_os_wildcardreuse=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
case "$ntp_cv_os_wildcardreuse" in
 yes)

$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h

esac

case "$host" in
 *-*-aix*)

$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
if ${ntp_cv_var_min_rec_tickadj+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=no
	case "$host" in
	 *-*-aix*)
	    ans=40
	    ;;
	esac
	ntp_cv_var_min_rec_tickadj=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
$as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
case "$ntp_cv_var_min_rec_tickadj" in
 ''|no)
    ;;
 *)

cat >>confdefs.h <<_ACEOF
#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
_ACEOF

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
if ${ntp_cv_no_parenb_ignpar+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=no
	case "$host" in
	 i?86-*-*linux*)
	    ans=yes
	    ;;
	 mips-sgi-irix*)
	    ans=yes
	    ;;
	 i?86-*-freebsd[123].*)
	    ;;
	 i?86-*-freebsd*)
	    ans=yes
	    ;;
	 *-*-unicosmp*)
	    ans=yes
	    ;;
	esac
	ntp_cv_no_parenb_ignpar=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
$as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
case "$ntp_cv_no_parenb_ignpar" in
 yes)

$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
$as_echo_n "checking if we're including processing time debugging code... " >&6; }
# Check whether --enable-debug-timing was given.
if test "${enable_debug_timing+set}" = set; then :
  enableval=$enable_debug_timing; ntp_ok=$enableval
else
  ntp_ok=no

fi

case "$ntp_ok" in
 yes)

$as_echo "#define DEBUG_TIMING 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
# Check whether --enable-dst-minutes was given.
if test "${enable_dst_minutes+set}" = set; then :
  enableval=$enable_dst_minutes; ans=$enableval
else
  ans=60

fi


cat >>confdefs.h <<_ACEOF
#define DSTMINUTES $ans
_ACEOF

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
# Check whether --enable-ignore-dns-errors was given.
if test "${enable_ignore_dns_errors+set}" = set; then :
  enableval=$enable_ignore_dns_errors; ans=$enableval
else
  ans=no

fi

case "$ans" in
 yes)

$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
if ${ntp_cv_var_ntp_syscalls+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_var_ntp_syscalls=no
	case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
	 yesyes*)
	    ntp_cv_var_ntp_syscalls=libc
	    ;;
	 *yes)
	    ntp_cv_var_ntp_syscalls=inline
	    ;;
	 *)
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include <sys/syscall.h>
		    #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
		    # error
		    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_var_ntp_syscalls=kernel

fi
rm -f conftest.err conftest.i conftest.$ac_ext
	    ;;
	 esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
$as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
case "$ntp_cv_var_ntp_syscalls" in
 libc)

$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h

    ;;
 kernel)

$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
if ${ntp_cv_var_sta_fll+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <sys/timex.h>
	    #ifndef STA_FLL
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_var_sta_fll=yes
else
  ntp_cv_var_sta_fll=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
$as_echo "$ntp_cv_var_sta_fll" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
$as_echo_n "checking if we have kernel PLL support... " >&6; }
if ${ntp_cv_var_kernel_pll+:} false; then :
  $as_echo_n "(cached) " >&6
else
  	case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
	 *no*)
	    ntp_cv_var_kernel_pll=no
	    ;;
	 *) ntp_cv_var_kernel_pll=yes
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
$as_echo "$ntp_cv_var_kernel_pll" >&6; }
case "$ntp_cv_var_kernel_pll" in
 yes)

$as_echo "#define KERNEL_PLL 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
if ${ntp_cv_size_returned_in_buffer+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=no
	case "$host" in
	 *-fujitsu-uxp*)
	    ans=yes
	    ;;
	 *-ncr-sysv4*)
	    ans=yes
	    ;;
	 *-univel-sysv*)
	    ans=yes
	    ;;
	esac
	ntp_cv_size_returned_in_buffer=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
$as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
case "$ntp_cv_size_returned_in_buffer" in
 yes)

$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h

esac

# Check for ioctls TIOCGPPSEV
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
$as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
case "$ac_cv_header_termios_h" in
 yes)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <termios.h>
	    #ifndef TIOCGPPSEV
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_ok=yes
else
  ntp_ok=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)

$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Check for ioctls TIOCSPPS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
$as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
case "$ac_cv_header_termios_h" in
 yes)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <termios.h>
	    #ifndef TIOCSPPS
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_ok=yes
else
  ntp_ok=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)

$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Check for ioctls CIOGETEV
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
$as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
case "$ac_cv_header_sys_ppsclock_h" in
 yes)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <sys/ppsclock.h>
	    #ifndef CIOGETEV
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_ok=yes
else
  ntp_ok=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)

$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# ATOM/PPSAPI stuff.

ntp_atom_ok=yes

# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.

# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
# The PPSAPI needs struct timespec.
# The PPSAPI also needs a timepps header.

case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
 inlineyes)
    case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
     *yes* | *sunos* | *solaris* | *sco* | *netbsd* )

$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h

	ntp_jupiter_ok=yes
	ntp_oncore_ok=yes
	ntp_parse_ok=yes
	ntp_ripe_ncc_ok=yes
	;;
    esac
    ;;
esac

# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
if test "x$ac_cv_header_linux_serial_h" = xyes; then :

fi


case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
  yesyes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <sys/time.h>
	    typedef int u_int;
	    #include <sys/ppsclock.h>
	    #include <linux/serial.h>

	    #ifndef TIOCGSERIAL
	    # error
	    #endif
	    #ifndef TIOCSSERIAL
	    # error
	    #endif
	    #ifndef ASYNC_PPS_CD_POS
	    # error
	    #endif
	    #ifndef ASYNC_PPS_CD_NEG
	    # error
	    #endif
	    #ifndef CIOGETEV
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_ok=yes
else
  ntp_ok=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
    ;;
  *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)

$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h

esac

# Check for SHMEM_STATUS support
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
$as_echo_n "checking SHMEM_STATUS support... " >&6; }
case "$ac_cv_header_sys_mman_h" in
 yes)
    ntp_ok=yes
    ;;
 *)
    ntp_ok=no
    ;;
esac
case "$ntp_ok" in
 yes)

$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

ntp_refclock=no

# HPUX only, and by explicit request
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
# Check whether --enable-BANCOMM was given.
if test "${enable_BANCOMM+set}" = set; then :
  enableval=$enable_BANCOMM; ntp_ok=$enableval
else
  ntp_ok=no

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_BANC 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yes*-*-hpux*) ;;
 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
esac

#HPUX only, and only by explicit request
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
# Check whether --enable-GPSVME was given.
if test "${enable_GPSVME+set}" = set; then :
  enableval=$enable_GPSVME; ntp_ok=$enableval
else
  ntp_ok=no

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yes*-*-hpux*) ;;
 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
$as_echo_n "checking for PCL720 clock support... " >&6; }
case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
 yesyesyes)

$as_echo "#define CLOCK_PPS720 1" >>confdefs.h

    ans=yes
    ;;
 *)
    ans=no
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
# Check whether --enable-all-clocks was given.
if test "${enable_all_clocks+set}" = set; then :
  enableval=$enable_all_clocks; ntp_eac=$enableval
else
  ntp_eac=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
$as_echo "$ntp_eac" >&6; }

# HMS: Should we also require ntp_parse_ok?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
$as_echo_n "checking if we have support for PARSE clocks... " >&6; }
case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
 yes*yes*)
    ntp_canparse=yes
    ;;
 *) ntp_canparse=no
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
$as_echo "$ntp_canparse" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
$as_echo_n "checking if we have support for audio clocks... " >&6; }
case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
 *yes*)
    ntp_canaudio=yes

$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h

    ;;
 *) ntp_canaudio=no ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
$as_echo "$ntp_canaudio" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
 yesyes)
    ntp_canshm=yes
    ;;
 *) ntp_canshm=no ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
$as_echo "$ntp_canshm" >&6; }

# Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
$as_echo_n "checking for termios modem control... " >&6; }
if ${ntp_cv_modem_control+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_UNISTD_H
		# include <unistd.h>
		#endif
		#ifdef HAVE_TERMIOS_H
		# include <termios.h>
		#endif
		#ifdef HAVE_SYS_IOCTL_H
		# include <sys/ioctl.h>
		#endif

int
main ()
{

		int	dtr = TIOCM_DTR;

		ioctl(1, TIOCMBIS, (char *)&dtr);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_modem_control=yes
else
  ntp_cv_modem_control=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
$as_echo "$ntp_cv_modem_control" >&6; }
case "$ntp_eac::$ntp_cv_modem_control" in
 yes::yes)
    ntp_enable_all_modem_control_clocks=yes
    ;;
 *)
    ntp_enable_all_modem_control_clocks=no
    ;;
esac

# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
$as_echo_n "checking ACTS modem service... " >&6; }
# Check whether --enable-ACTS was given.
if test "${enable_ACTS+set}" = set; then :
  enableval=$enable_ACTS; ntp_ok=$enableval
else
  ntp_ok=$ntp_enable_all_modem_control_clocks

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ACTS 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
# Check whether --enable-ARBITER was given.
if test "${enable_ARBITER+set}" = set; then :
  enableval=$enable_ARBITER; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
$as_echo_n "checking Arcron MSF receiver... " >&6; }
# Check whether --enable-ARCRON_MSF was given.
if test "${enable_ARCRON_MSF+set}" = set; then :
  enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
# Check whether --enable-AS2201 was given.
if test "${enable_AS2201+set}" = set; then :
  enableval=$enable_AS2201; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_AS2201 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
$as_echo_n "checking ATOM PPS interface... " >&6; }
# Check whether --enable-ATOM was given.
if test "${enable_ATOM+set}" = set; then :
  enableval=$enable_ATOM; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_atom_ok" in
 no) ntp_ok=no ;;
esac
case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ATOM 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
# Check whether --enable-CHRONOLOG was given.
if test "${enable_CHRONOLOG+set}" = set; then :
  enableval=$enable_CHRONOLOG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
$as_echo_n "checking CHU modem/decoder... " >&6; }
# Check whether --enable-CHU was given.
if test "${enable_CHU+set}" = set; then :
  enableval=$enable_CHU; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_CHU 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
ntp_refclock_chu=$ntp_ok

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
$as_echo_n "checking CHU audio/decoder... " >&6; }
# Check whether --enable-AUDIO-CHU was given.
if test "${enable_AUDIO_CHU+set}" = set; then :
  enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
else

	case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
# We used to check for sunos/solaris target...
case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
esac

# Not under HP-UX
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
$as_echo_n "checking Datum Programmable Time System... " >&6; }
# Check whether --enable-DATUM was given.
if test "${enable_DATUM+set}" = set; then :
  enableval=$enable_DATUM; ntp_ok=$enableval
else

	case "$ac_cv_header_termios_h" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *) ntp_ok=no
	    ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_DATUM 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
# Check whether --enable-DUMBCLOCK was given.
if test "${enable_DUMBCLOCK+set}" = set; then :
  enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
$as_echo_n "checking Forum Graphic GPS... " >&6; }
# Check whether --enable-FG was given.
if test "${enable_FG+set}" = set; then :
  enableval=$enable_FG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_FG 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
# Check whether --enable-HEATH was given.
if test "${enable_HEATH+set}" = set; then :
  enableval=$enable_HEATH; ntp_ok=$enableval
else
  ntp_ok=$ntp_enable_all_modem_control_clocks

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_HEATH 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
$as_echo_n "checking for hopf serial clock device... " >&6; }
# Check whether --enable-HOPFSERIAL was given.
if test "${enable_HOPFSERIAL+set}" = set; then :
  enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
$as_echo_n "checking for hopf PCI clock 6039... " >&6; }
# Check whether --enable-HOPFPCI was given.
if test "${enable_HOPFPCI+set}" = set; then :
  enableval=$enable_HOPFPCI; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
$as_echo_n "checking HP 58503A GPS receiver... " >&6; }
# Check whether --enable-HPGPS was given.
if test "${enable_HPGPS+set}" = set; then :
  enableval=$enable_HPGPS; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
$as_echo_n "checking IRIG audio decoder... " >&6; }
# Check whether --enable-IRIG was given.
if test "${enable_IRIG+set}" = set; then :
  enableval=$enable_IRIG; ntp_ok=$enableval
else

	case "$ntp_eac$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_IRIG 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canaudio" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
$as_echo_n "checking for JJY receiver... " >&6; }
# Check whether --enable-JJY was given.
if test "${enable_JJY+set}" = set; then :
  enableval=$enable_JJY; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_JJY 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
# Check whether --enable-JUPITER was given.
if test "${enable_JUPITER+set}" = set; then :
  enableval=$enable_JUPITER; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac
fi

case "$ntp_jupiter_ok" in
 no) ntp_ok=no ;;
esac
case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
# Check whether --enable-LEITCH was given.
if test "${enable_LEITCH+set}" = set; then :
  enableval=$enable_LEITCH; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
$as_echo_n "checking local clock reference... " >&6; }
# Check whether --enable-LOCAL-CLOCK was given.
if test "${enable_LOCAL_CLOCK+set}" = set; then :
  enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }


# Not Ultrix
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
# Check whether --enable-MX4200 was given.
if test "${enable_MX4200+set}" = set; then :
  enableval=$enable_MX4200; ntp_ok=$enableval
else

	case "$ac_cv_var_ppsclock" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	    ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_MX4200 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
$as_echo_n "checking for NeoClock4X receiver... " >&6; }
# Check whether --enable-NEOCLOCK4X was given.
if test "${enable_NEOCLOCK4X+set}" = set; then :
  enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
$as_echo_n "checking NMEA GPS receiver... " >&6; }
# Check whether --enable-NMEA was given.
if test "${enable_NMEA+set}" = set; then :
  enableval=$enable_NMEA; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_NMEA 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

for ac_func in strtoll
do :
  ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
if test "x$ac_cv_func_strtoll" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRTOLL 1
_ACEOF

fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
$as_echo_n "checking for GPSD JSON receiver... " >&6; }
# Check whether --enable-GPSD was given.
if test "${enable_GPSD+set}" = set; then :
  enableval=$enable_GPSD; ntp_ok=$enableval
else
  case "$ac_cv_func_strtoll" in
     yes) ntp_ok=$ntp_eac ;;
     *)   ntp_ok="no" ;;
    esac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
# Check whether --enable-ONCORE was given.
if test "${enable_ONCORE+set}" = set; then :
  enableval=$enable_ONCORE; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_oncore_ok" in
 no) ntp_ok=no ;;
esac
case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Requires modem control
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
$as_echo_n "checking for Palisade clock... " >&6; }
# Check whether --enable-PALISADE was given.
if test "${enable_PALISADE+set}" = set; then :
  enableval=$enable_PALISADE; ntp_ok=$enableval
else
  ntp_ok=$ntp_enable_all_modem_control_clocks

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
$as_echo_n "checking Conrad parallel port radio clock... " >&6; }
# Check whether --enable-PCF was given.
if test "${enable_PCF+set}" = set; then :
  enableval=$enable_PCF; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_PCF 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
# Check whether --enable-PST was given.
if test "${enable_PST+set}" = set; then :
  enableval=$enable_PST; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_PST 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
# Check whether --enable-RIPENCC was given.
if test "${enable_RIPENCC+set}" = set; then :
  enableval=$enable_RIPENCC; ntp_ok=$enableval
else
  ntp_ok=no

fi

# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
case "$ntp_ripe_ncc_ok" in
 no) ntp_ok=no ;;
esac
case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

# Danny Meyer says SHM compiles (with a few warnings) under Win32.
# For *IX, we need sys/ipc.h and sys/shm.h.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
# Check whether --enable-SHM was given.
if test "${enable_SHM+set}" = set; then :
  enableval=$enable_SHM; ntp_ok=$enableval
else

	case "$ntp_eac$ntp_canshm" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_SHM 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
# Check whether --enable-SPECTRACOM was given.
if test "${enable_SPECTRACOM+set}" = set; then :
  enableval=$enable_SPECTRACOM; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
# Check whether --enable-TPRO was given.
if test "${enable_TPRO+set}" = set; then :
  enableval=$enable_TPRO; ntp_ok=$enableval
else

	case "$ac_cv_header_sys_tpro_h" in
	 yes)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	    ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TPRO 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ac_cv_header_sys_tpro" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
esac

# Not on a vax-dec-bsd
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
# Check whether --enable-TRUETIME was given.
if test "${enable_TRUETIME+set}" = set; then :
  enableval=$enable_TRUETIME; ntp_ok=$enableval
else

	case "$host" in
	 vax-dec-bsd)
	    ntp_ok=no
	    ;;
	 *)
	    ntp_ok=$ntp_eac
	    ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$host" in
 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
# Check whether --enable-TT560 was given.
if test "${enable_TT560+set}" = set; then :
  enableval=$enable_TT560; ntp_ok=$enableval
else
  ntp_ok=no

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
# Check whether --enable-ULINK was given.
if test "${enable_ULINK+set}" = set; then :
  enableval=$enable_ULINK; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ULINK 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
# Check whether --enable-TSYNCPCI was given.
if test "${enable_TSYNCPCI+set}" = set; then :
  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
else

	case "$host" in
	 *-*-*linux*)
	    ntp_ok=$ntp_eac
	    ;;
	 *)
	    ntp_ok=no
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
$as_echo_n "checking WWV receiver... " >&6; }
# Check whether --enable-WWV was given.
if test "${enable_WWV+set}" = set; then :
  enableval=$enable_WWV; ntp_ok=$enableval
else

	case "$ntp_eac$ntp_canaudio" in
	 *no*)	ntp_ok=no  ;;
	 *)	ntp_ok=yes ;;
	esac


fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_WWV 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canaudio" in
 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
$as_echo_n "checking for Zyfer receiver... " >&6; }
# Check whether --enable-ZYFER was given.
if test "${enable_ZYFER+set}" = set; then :
  enableval=$enable_ZYFER; ntp_ok=$enableval
else
  ntp_ok=$ntp_eac

fi

case "$ntp_ok" in
 yes)
    ntp_refclock=yes

$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
# Check whether --enable-parse-clocks was given.
if test "${enable_parse_clocks+set}" = set; then :
  enableval=$enable_parse_clocks; ntp_eapc=$enableval
else

	case "$ntp_eac" in
	 yes)	ntp_eapc=$ntp_canparse ;;
	 *)	ntp_eapc=no ;;
	esac
	# Delete the next line one of these days
	ntp_eapc=no


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
$as_echo "$ntp_eapc" >&6; }

case "$ntp_eac$ntp_eapc$ntp_canparse" in
 noyes*)
    as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
    ;;
 yesyesno)
    as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
    ;;
esac

ntp_libparse=no
ntp_parseutil=no
ntp_rawdcf=no

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
$as_echo_n "checking Diem Computime Radio Clock... " >&6; }
# Check whether --enable-COMPUTIME was given.
if test "${enable_COMPUTIME+set}" = set; then :
  enableval=$enable_COMPUTIME; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
$as_echo_n "checking ELV/DCF7000 clock... " >&6; }
# Check whether --enable-DCF7000 was given.
if test "${enable_DCF7000+set}" = set; then :
  enableval=$enable_DCF7000; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
$as_echo_n "checking HOPF 6021 clock... " >&6; }
# Check whether --enable-HOPF6021 was given.
if test "${enable_HOPF6021+set}" = set; then :
  enableval=$enable_HOPF6021; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
$as_echo_n "checking Meinberg clocks... " >&6; }
# Check whether --enable-MEINBERG was given.
if test "${enable_MEINBERG+set}" = set; then :
  enableval=$enable_MEINBERG; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
$as_echo_n "checking DCF77 raw time code... " >&6; }
# Check whether --enable-RAWDCF was given.
if test "${enable_RAWDCF+set}" = set; then :
  enableval=$enable_RAWDCF; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_parseutil=yes
    ntp_refclock=yes
    ntp_rawdcf=yes

$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

case "$ntp_rawdcf" in
 yes)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
if ${ntp_cv_rawdcf_parity+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    ans=no
	    case "$host" in
	     *-*-*linux*)
		ans=yes
		;;
	    esac
	    ntp_cv_rawdcf_parity=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
$as_echo "$ntp_cv_rawdcf_parity" >&6; }
    case "$ntp_cv_rawdcf_parity" in
     yes)

$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
 ;;
    esac
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
$as_echo_n "checking RCC 8000 clock... " >&6; }
# Check whether --enable-RCC8000 was given.
if test "${enable_RCC8000+set}" = set; then :
  enableval=$enable_RCC8000; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
$as_echo_n "checking Schmid DCF77 clock... " >&6; }
# Check whether --enable-SCHMID was given.
if test "${enable_SCHMID+set}" = set; then :
  enableval=$enable_SCHMID; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
# Check whether --enable-TRIMTAIP was given.
if test "${enable_TRIMTAIP+set}" = set; then :
  enableval=$enable_TRIMTAIP; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
# Check whether --enable-TRIMTSIP was given.
if test "${enable_TRIMTSIP+set}" = set; then :
  enableval=$enable_TRIMTSIP; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
$as_echo_n "checking WHARTON 400A Series clock... " >&6; }
# Check whether --enable-WHARTON was given.
if test "${enable_WHARTON+set}" = set; then :
  enableval=$enable_WHARTON; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
$as_echo_n "checking VARITEXT clock... " >&6; }
# Check whether --enable-VARITEXT was given.
if test "${enable_VARITEXT+set}" = set; then :
  enableval=$enable_VARITEXT; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc

fi

case "$ntp_ok" in
 yes)
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
$as_echo_n "checking SEL240X clock... " >&6; }
# Check whether --enable-SEL240X was given.
if test "${enable_SEL240X+set}" = set; then :
  enableval=$enable_SEL240X; ntp_ok=$enableval
else
  ntp_ok=$ntp_eapc
fi

if test "$ntp_ok" = "yes"; then
    ntp_libparse=yes
    ntp_refclock=yes

$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }
case "$ntp_ok$ntp_canparse" in
 yesno)
    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
    ;;
esac






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
$as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
ans=no
case "$ntp_libparse" in
 yes)
    ans=yes

$as_echo "#define CLOCK_PARSE 1" >>confdefs.h

    LIBPARSE=../libparse/libparse.a
    MAKE_LIBPARSE=libparse.a
    # HMS: check_y2k trips the 34 year problem now...
    false && MAKE_CHECK_Y2K=check_y2k
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }



ntp_pkgconfig_min_version='0.15.0'
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}

case "$PKG_CONFIG" in
 /*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	PKG_CONFIG=""
    fi
    ;;
esac





VER_SUFFIX=




# Check whether --with-crypto was given.
if test "${with_crypto+set}" = set; then :
  withval=$with_crypto;
fi


# Check whether --with-openssl-libdir was given.
if test "${with_openssl_libdir+set}" = set; then :
  withval=$with_openssl_libdir;
fi


# Check whether --with-openssl-incdir was given.
if test "${with_openssl_incdir+set}" = set; then :
  withval=$with_openssl_incdir;
fi


# Check whether --with-rpath was given.
if test "${with_rpath+set}" = set; then :
  withval=$with_rpath;
fi

ntp_openssl=no
ntp_openssl_from_pkg_config=no
with_crypto=${with_crypto:-openssl,libcrypto}
case "$with_crypto" in
 yes)
    with_crypto=openssl,libcrypto
esac
case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
 no:*) ;;
 *:notempty:notgiven:notgiven)
    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
$as_echo_n "checking pkg-config for $pkg... " >&6; }
	if $PKG_CONFIG --exists $pkg ; then
	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
	    VER_SUFFIX=o
	    ntp_openssl=yes
	    ntp_openssl_from_pkg_config=yes
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

	    break
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    done
esac
case "$with_crypto:$ntp_openssl" in
 no:*) ;;
 *:no)
    need_dash_r=
    need_dash_Wlrpath=
    case "${with_rpath-notgiven}" in
     yes)
	# Lame - what to do if we need -Wl... but not -R?
	need_dash_r=1
	;;
     notgiven)
	case "$host" in
	 *-*-linux*)
	    # This may really only be true for gcc
	    need_dash_Wlrpath=1
	    ;;
	 *-*-netbsd*)
	    need_dash_r=1
	    ;;
	 *-*-solaris*)
	    need_dash_r=1
	    ;;
	esac
	;;
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
$as_echo_n "checking for openssl library directory... " >&6; }
    with_openssl_libdir=${with_openssl_libdir-notgiven}
    case "$with_openssl_libdir" in
     notgiven)
	case "$build" in
	 $host)
	    with_openssl_libdir=default
	    ;;
	 *)
	    with_openssl_libdir=no
	    ;;
	esac
    esac
    case "$with_openssl_libdir" in
     default)
	# Look in:
	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
    esac
    case "$with_openssl_libdir" in
     no)
	;;
     *) # Look for libcrypto.a and libssl.a:
	for i in $with_openssl_libdir no
	do
	    case "$host" in
	     *-*-darwin*)
		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
		;;
	     *)
		test -f $i/libcrypto.so -a -f $i/libssl.so && break
		test -f $i/libcrypto.a -a -f $i/libssl.a && break
		;;
	    esac
	done
	openssl_libdir=$i
	;;
    esac
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
$as_echo "$openssl_libdir" >&6; }
    case "$openssl_libdir" in
     no)
	openssl_libdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
    esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
$as_echo_n "checking for openssl include directory... " >&6; }
    with_openssl_incdir=${with_openssl_incdir-notgiven}
    case "$with_openssl_incdir" in
     notgiven)
	# Look in:
	with_openssl_incdir="/usr/include /usr/sfw/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
    esac
    case "$with_openssl_incdir" in
     no)
	;;
     *) # look for openssl/evp.h:
	for i in $with_openssl_incdir no
	do
	    test -f $i/openssl/evp.h && break
	done
	openssl_incdir=$i
	;;
    esac
    { i=; unset i;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
$as_echo "$openssl_incdir" >&6; }
    case "$openssl_incdir" in
     no)
	openssl_incdir=
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
    esac
    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
    then
	ntp_openssl=no
    else
	ntp_openssl=yes
	VER_SUFFIX=o
    fi
    case "$ntp_openssl" in
     yes)
	# We have OpenSSL inc/lib dirs - use them.
	case "$openssl_incdir" in
	 /usr/include)
	    ;;
	 *)
	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
	    ;;
	esac
	case "$openssl_libdir" in
	 /usr/lib)
	    ;;
	 *)
	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
	    case "$need_dash_r" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
	    esac
	    case "$need_dash_Wlrpath" in
	     1)
		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
	    esac
	    ;;
	esac
	LDADD_NTP="$LDADD_NTP -lcrypto"
    esac
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
$as_echo_n "checking if we will use crypto... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
$as_echo "$ntp_openssl" >&6; }

case "$ntp_openssl" in
 yes)

$as_echo "#define OPENSSL /**/" >>confdefs.h

    case "$VER_SUFFIX" in
     *o*) ;;
     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
    esac
    ;;
esac

NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
NTPO_SAVED_LIBS="$LIBS"

#
# check for linking with -lcrypto failure, and try -lcrypto -lz.
# Helps m68k-atari-mint
#
case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
 yes:no)
    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
$as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
if ${ntp_cv_bare_lcrypto+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include "openssl/err.h"
		    #include "openssl/evp.h"

int
main ()
{

		    ERR_load_crypto_strings();
		    OpenSSL_add_all_algorithms();


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_cv_bare_lcrypto=yes
else
  ntp_cv_bare_lcrypto=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
$as_echo "$ntp_cv_bare_lcrypto" >&6; }
    case "$ntp_cv_bare_lcrypto" in
     no)
	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
if ${ntp_cv_lcrypto_lz+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#include "openssl/err.h"
			#include "openssl/evp.h"

int
main ()
{

			ERR_load_crypto_strings();
			OpenSSL_add_all_algorithms();


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ntp_cv_lcrypto_lz=yes
else
  ntp_cv_lcrypto_lz=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
$as_echo "$ntp_cv_lcrypto_lz" >&6; }
	case "$ntp_cv_lcrypto_lz" in
	 yes)
	     LDADD_NTP="$LDADD_NTP -lz"
	esac
    esac
esac

#
# Older OpenSSL headers have a number of callback prototypes inside
# other function prototypes which trigger copious warnings with gcc's
# -Wstrict-prototypes, which is included in -Wall.
#
# An example:
#
# int i2d_RSA_NET(const RSA *a, unsigned char **pp,
#		  int (*cb)(), int sgckey);
#		  ^^^^^^^^^^^
#
#
#
openssl_triggers_warnings=unknown
NTPO_SAVED_CFLAGS="$CFLAGS"

case "$ntp_openssl:$GCC" in
 yes:yes)
    CFLAGS="$CFLAGS -Werror"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main ()
{

		/* see if -Werror breaks gcc */


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  gcc_handles_Werror=yes
else
  gcc_handles_Werror=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    case "$gcc_handles_Werror" in
     no)
	# if this gcc doesn't do -Werror go ahead and use
	# -Wstrict-prototypes.
	openssl_triggers_warnings=yes
	;;
     yes)
	CFLAGS="$CFLAGS -Wstrict-prototypes"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include "openssl/asn1_mac.h"
		    #include "openssl/bn.h"
		    #include "openssl/err.h"
		    #include "openssl/evp.h"
		    #include "openssl/pem.h"
		    #include "openssl/rand.h"
		    #include "openssl/x509v3.h"

int
main ()
{

		    /* empty body */


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  openssl_triggers_warnings=no
else
  openssl_triggers_warnings=yes

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    esac
    case "$openssl_triggers_warnings" in
     yes)
	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
	;;
     *)
	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
    esac
    ;;
 no:yes)
    # gcc without OpenSSL
    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
esac

CFLAGS="$NTPO_SAVED_CFLAGS"
CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
LIBS="$NTPO_SAVED_LIBS"
{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
# Check whether --enable-openssl-random was given.
if test "${enable_openssl_random+set}" = set; then :
  enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
else
  ntp_use_openssl_random=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
$as_echo "$ntp_use_openssl_random" >&6; }

# The following might need extra libraries
NTPO_SAVED_LIBS="$LIBS"
LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
for ac_func in RAND_bytes RAND_poll
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

LIBS="$NTPO_SAVED_LIBS"
case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
 yesyesyes)

$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h

     ;;
 *) ntp_use_openssl_random=no ;;
esac



# if we are using OpenSSL (--with-crypto), by default Autokey is enabled
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
# Check whether --enable-autokey was given.
if test "${enable_autokey+set}" = set; then :
  enableval=$enable_autokey; ntp_autokey=$enableval
else
  ntp_autokey=$ntp_openssl

fi

case "$ntp_autokey" in
 no)
    ;;
 *)
    case "$ntp_openssl" in
     no)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
	ntp_autokey=no
	;;
     *)

$as_echo "#define AUTOKEY 1" >>confdefs.h

	ntp_autokey=yes
	;;
    esac
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
$as_echo "$ntp_autokey" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
$as_echo_n "checking if we want to run check-layout... " >&6; }
case "$cross_compiling$PATH_PERL" in
 no/*)
    MAKE_CHECK_LAYOUT=check-layout
    ans=yes
    ;;
 *)
    ans=no
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
$as_echo_n "checking if we can make dcf parse utilities... " >&6; }
ans=no
case "$ntp_parseutil" in
 yes)
    case "$host" in
     *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
	ans="dcfd testdcf"
	DCFD=dcfd
	TESTDCF=testdcf
    esac
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
ans=no
case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
 yesyes)
    case "$host" in
     sparc-*-sunos4*)
        case "$ntp_cv_var_kernel_pll" in
	yes)

$as_echo "#define PPS_SYNC 1" >>confdefs.h

	    ;;
	esac
	ans=parsestreams
	MAKE_PARSEKMODULE=parsestreams.loadable_module.o
	;;
     sparc-*-solaris2*)
	ans=parsesolaris
	MAKE_PARSEKMODULE=parse
	for ac_header in strings.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
if test "x$ac_cv_header_strings_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRINGS_H 1
_ACEOF

fi

done

	;;
    esac
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
$as_echo_n "checking if we need basic refclock support... " >&6; }
case "$ntp_refclock" in
 yes)

$as_echo "#define REFCLOCK 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
$as_echo "$ntp_refclock" >&6; }

PROPDELAY=propdelay



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
case "$host" in
 *-*-hpux[56789]*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac
case "$ans" in
 yes)
    MAKE_ADJTIMED=adjtimed

$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h

    ;;
 *) ADJTIMED_DB=
    ADJTIMED_DL=
    ADJTIMED_DS=
    ADJTIMED_MS=
    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
$as_echo_n "checking if we want QNX adjtime support... " >&6; }
case "$host" in
 *-*-qnx*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac
case "$ans" in
 yes)

$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h

    ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
$as_echo_n "checking if we can read kmem... " >&6; }

#  the default is to enable it if the system has the capability

case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
 *yes*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac

case "$host" in
 *-*-domainos)	# Won't be found...
    ans=no
    ;;
 *-*-hpux*)
    #ans=no
    ;;
 *-*-irix[456]*)
    ans=no
    ;;
 *-*-*linux*)
    ans=no
    ;;
 *-*-winnt3.5)
    ans=no
    ;;
 *-*-unicosmp*)
    ans=no
    ;;
esac

# --enable-kmem / --disable-kmem controls if present
# Check whether --enable-kmem was given.
if test "${enable_kmem+set}" = set; then :
  enableval=$enable_kmem; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)
    can_kmem=yes
    ;;
 *)
    can_kmem=no

$as_echo "#define NOKMEM 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
$as_echo_n "checking if adjtime is accurate... " >&6; }

# target-dependent defaults

case "$host" in
 i386-sequent-ptx*)
    ans=no
    ;;
 i386-unknown-osf1*)
    ans=yes
    ;;
 mips-sgi-irix[456]*)
    ans=yes
    ;;
 *-fujitsu-uxp*)
    ans=yes
    ;;
 *-ibm-aix[4-9]*)
    # XXX only verified thru AIX6.
    ans=yes
    ;;
 *-*-*linux*)
    ans=yes
    ;;
 *-*-solaris2.[01])
    ans=no
    ;;
 *-*-solaris2*)
    ans=yes
    ;;
 *-*-unicosmp*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# --enable-accurate-adjtime / --disable-accurate-adjtime
# override the default
# Check whether --enable-accurate-adjtime was given.
if test "${enable_accurate_adjtime+set}" = set; then :
  enableval=$enable_accurate_adjtime; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h

    adjtime_is_accurate=yes
    ;;
 *)
    adjtime_is_accurate=no
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
$as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
if ${ntp_cv_nlist_tick+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=_tick
	case "$host" in
	 m68*-hp-hpux*) # HP9000/300?
	    ans=_old_tick
	    ;;
	 *-apple-aux[23]*)
	    ans=tick
	    ;;
	 *-hp-hpux*)
	    ans=old_tick
	    ;;
	 *-ibm-aix[3-9]*)
	    # XXX only verified thru AIX6.
	    ans=no
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-ptx*)
	    ans=tick
	    ;;
	 *-*-sco3.2v[45]*)
	    ans=no
	    ;;
	 *-*-solaris2*)
	    ans=nsec_per_tick
	    ;;
	 *-*-sysv4*)
	    ans=tick
	    ;;
	esac
	ntp_cv_nlist_tick=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
$as_echo "$ntp_cv_nlist_tick" >&6; }
case "$ntp_cv_nlist_tick" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)

cat >>confdefs.h <<_ACEOF
#define K_TICK_NAME "$ntp_cv_nlist_tick"
_ACEOF

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
$as_echo_n "checking for the units of 'tick'... " >&6; }
if ${ntp_cv_tick_nano+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=usec
	case "$host" in
	 *-*-solaris2*)
	    ans=nsec
	    ;;
	esac
	ntp_cv_tick_nano=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
$as_echo "$ntp_cv_tick_nano" >&6; }
case "$ntp_cv_tick_nano" in
 nsec)

$as_echo "#define TICK_NANO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
if ${ntp_cv_nlist_tickadj+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=_tickadj
	case "$host" in
	 m68*-hp-hpux*) # HP9000/300?
	    ans=_tickadj
	    ;;
	 *-apple-aux[23]*)
	    ans=tickadj
	    ;;
	 *-hp-hpux10*)
	    ans=no
	    ;;
	 *-hp-hpux9*)
	    ans=no
	    ;;
	 *-hp-hpux*)
	    ans=tickadj
	    ;;
	 *-*-aix*)
	    ans=tickadj
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-ptx*)
	    ans=tickadj
	    ;;
	 *-*-sco3.2v4*)
	    ans=no
	    ;;
	 *-*-sco3.2v5.0*)
	    ans=clock_drift
	    ;;
	 *-*-solaris2*)
	    ans=no	# hrestime_adj
	    ;;
	 *-*-sysv4*)
	    ans=tickadj
	    ;;
	esac
	ntp_cv_nlist_tickadj=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
$as_echo "$ntp_cv_nlist_tickadj" >&6; }
case "$ntp_cv_nlist_tickadj" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)

cat >>confdefs.h <<_ACEOF
#define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
_ACEOF

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
$as_echo_n "checking for the units of 'tickadj'... " >&6; }
if ${ntp_cv_tickadj_nano+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ans=usec
	case "$host" in
	 *-*-solaris2*)
	    ans=nsec
	    ;;
	esac
	ntp_cv_tickadj_nano=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
$as_echo "$ntp_cv_tickadj_nano" >&6; }
case "$ntp_cv_tickadj_nano" in
 nsec)

$as_echo "#define TICKADJ_NANO 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
if ${ntp_cv_nlist_dosynctodr+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-apple-aux[23]*)
	    ans=no
	    ;;
	 *-sni-sysv*)
	    ans=dosynctodr
	    ;;
	 *-*-aix*)
	    ans=dosynctodr
	    ;;
	 *-*-hpux*)
	    ans=no
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-nextstep*)
	    ans=_dosynctodr
	    ;;
	 *-*-ptx*)
	    ans=doresettodr
	    ;;
	 *-*-sco3.2v4*)
	    ans=no
	    ;;
	 *-*-sco3.2v5*)
	    ans=track_rtc
	    ;;
	 *-*-solaris2*)
	    ans=dosynctodr
	    ;;
	 *-*-sysv4*)
	    ans=doresettodr
	    ;;
	 *)
	    ans=_dosynctodr
	    ;;
	esac
	ntp_cv_nlist_dosynctodr=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
$as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
case "$ntp_cv_nlist_dosynctodr" in
 no)
    ;;
 *)

cat >>confdefs.h <<_ACEOF
#define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
_ACEOF

    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
if ${ntp_cv_nlist_noprintf+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-apple-aux[23]*)
	    ans=no
	    ;;
	 *-sni-sysv*)
	    ans=noprintf
	    ;;
	 *-*-aix*)
	    ans=noprintf
	    ;;
	 *-*-hpux*)
	    ans=no
	    ;;
	 *-*-mpeix*)
	    ans=no
	    ;;
	 *-*-ptx*)
	    ans=noprintf
	    ;;
	 *-*-nextstep*)
	    ans=_noprintf
	    ;;
	 *-*-solaris2*)
	    ans=noprintf
	    ;;
	 *-*-sysv4*)
	    ans=noprintf
	    ;;
	 *)
	    ans=_noprintf
	    ;;
	esac
	ntp_cv_nlist_noprintf=$ans


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
$as_echo "$ntp_cv_nlist_noprintf" >&6; }
case "$ntp_cv_nlist_noprintf" in
 no)
    ;;
 *)

cat >>confdefs.h <<_ACEOF
#define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
_ACEOF

    ;;
esac




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
$as_echo_n "checking for a default value for 'tick'... " >&6; }

# target-dependent default for tick

case "$host" in
 *-*-pc-cygwin*)
    as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
    ;;
 *-univel-sysv*)
    ans=10000
    ;;
 *-*-irix*)
    ans=10000
    ;;
 *-*-*linux*)
    ans=txc.tick
    ;;
 *-*-mpeix*)
    ans=no
    ;;
 *-*-winnt3.5)
    ans='(every / 10)'
    ;;
 *-*-unicosmp*)
    ans=10000
    ;;
 *)
    ans='1000000L/hz'
    ;;
esac

# Check whether --enable-tick was given.
if test "${enable_tick+set}" = set; then :
  enableval=$enable_tick; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)

cat >>confdefs.h <<_ACEOF
#define PRESET_TICK $ans
_ACEOF

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
$as_echo_n "checking for a default value for 'tickadj'... " >&6; }

# target-specific default
ans='500/hz'
case "$host" in
 *-fujitsu-uxp*)
    case "$adjtime_is_accurate" in
     yes)
	ans='tick/16'
    esac
    ;;
 *-univel-sysv*)
    ans=80
    ;;
 *-*-aix*)
    case "$can_kmem" in
     no)
	ans=1000
	;;
    esac
    ;;
 *-*-domainos)	# Skippy: won't be found...
    case "$can_kmem" in
     no)
	ans=668
	;;
    esac
    ;;
 *-*-hpux*)
    case "$adjtime_is_accurate" in
     yes)
	ans='tick/16'
	;;
    esac
    ;;
 *-*-irix*)
    ans=150
    ;;
 *-*-mpeix*)
    ans=no
    ;;
 *-*-sco3.2v5.0*)
    ans=10000L/hz
    ;;
 *-*-winnt3.5)
    ans=50
    ;;
 *-*-unicosmp*)
    ans=150
    ;;
esac

# Check whether --enable-tickadj was given.
if test "${enable_tickadj+set}" = set; then :
  enableval=$enable_tickadj; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

default_tickadj=$ans

case "$default_tickadj" in
 ''|no)
    ;;	# HMS: I think we can only get 'no' here...
 *)

cat >>confdefs.h <<_ACEOF
#define PRESET_TICKADJ $default_tickadj
_ACEOF
 ;;
esac

# Newer versions of ReliantUNIX round adjtime() values down to
# 1/100s (system tick). Sigh ...
# Unfortunately, there is no easy way to know if particular release
# has this "feature" or any obvious way to test for it.
case "$host" in
 mips-sni-sysv4*)

$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h

esac

case "$host" in
 *-*-sco3.2v5*)

$as_echo "#define SCO5_CLOCK 1" >>confdefs.h

esac

ntp_cv_make_tickadj=yes
case "$can_kmem$ac_cv_var_tick$default_tickadj" in
 nonono)	# Don't read KMEM, no presets.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&2;}
    ntp_cv_make_tickadj=no
    ;;
 nono*)		# Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
    ntp_cv_make_tickadj=no
    ;;
 no*no)		# Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
    ntp_cv_make_tickadj=no
    ;;
 no*)		# Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
    ;;
 yesnono)	# Read KMEM, no presets.  Cool.
    ;;
 yesno*)	# Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
    ;;
 yes*no)	# Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
    ;;
 yes*)		# READ KMEM, PRESET_TICK and PRESET_TICKADJ.
    ;;
 *)		# Generally bogus.
    as_fn_error $? "This shouldn't happen." "$LINENO" 5
    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
$as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
if ${ac_cv_make_ntptime+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case "$host" in
 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
     yesyes)
	ans=yes
	;;
     *)
	ans=no
	;;
    esac
    ;;
esac
ac_cv_make_ntptime=$ans
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
$as_echo "$ac_cv_make_ntptime" >&6; }
case "$ac_cv_make_ntptime" in
 yes)
    MAKE_NTPTIME=ntptime
    ;;
 *)
    NTPTIME_DB=
    NTPTIME_DL=
    NTPTIME_DS=
    NTPTIME_MS=
    ;;
esac


case "$host" in
 mips-sni-sysv4*)
    # tickadj is pretty useless on newer versions of ReliantUNIX
    # Do not bother
    ntp_cv_make_tickadj=no
    ;;
 *-*-irix*)
    ntp_cv_make_tickadj=no
    ;;
 *-*-solaris2*)
    # DLM says tickadj is a no-no starting with solaris2.5
    case "$host" in
     *-*-solaris2.1[0-9]*)
	ntp_cv_make_tickadj=no
	;;
     *-*-solaris2.[0-4]*) ;;
     *) ntp_cv_make_tickadj=no ;;
    esac
    ;;
 *-*-unicosmp*)
    ntp_cv_make_tickadj=no
    ;;
esac

#
# Despite all the above, we always make tickadj.  Setting
# ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
# report that the configuration variable was cached.  It may
# be better to simply remove the hunk above, I did not want
# to remove it if there is hope it will be used again.
#
{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
$as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
if ${ntp_cv_make_tickadj+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ntp_cv_make_tickadj=yes

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
$as_echo "$ntp_cv_make_tickadj" >&6; }
case "$ntp_cv_make_tickadj" in
 yes)
    MAKE_TICKADJ=tickadj
    ;;
 *)
    CALC_TICKADJ_DB=
    CALC_TICKADJ_DL=
    CALC_TICKADJ_DS=
    CALC_TICKADJ_MS=
    TICKADJ_DB=
    TICKADJ_DL=
    TICKADJ_DS=
    TICKADJ_MS=
    ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
$as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
if ${ntp_cv_make_timetrim+:} false; then :
  $as_echo_n "(cached) " >&6
else

	case "$host" in
	 *-*-irix*)
	    ntp_cv_make_timetrim=yes
	    ;;
	 *-*-unicosmp*)
	    ntp_cv_make_timetrim=yes
	    ;;
	 *)
	    ntp_cv_make_timetrim=no
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
$as_echo "$ntp_cv_make_timetrim" >&6; }
case "$ntp_cv_make_timetrim" in
 yes)
    MAKE_TIMETRIM=timetrim
    ;;
 *) TIMETRIM_DB=
    TIMETRIM_DL=
    TIMETRIM_DS=
    TIMETRIM_MS=
    ;;
esac




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
$as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
# Check whether --enable-simulator was given.
if test "${enable_simulator+set}" = set; then :
  enableval=$enable_simulator; ans=$enableval
else
  ans=no

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 yes)
    MAKE_NTPDSIM=ntpdsim
    MAKE_LIBNTPSIM=libntpsim.a
    ;;
 *)
    NTPDSIM_DB=
    NTPDSIM_DL=
    NTPDSIM_DS=
    NTPDSIM_MS=
    ;;
esac

case "$build" in
 $host)
    ;;
 *) case "$host" in
     *-*-vxworks*)
	LDFLAGS="$LDFLAGS -r"
	;;
    esac
    ;;
esac



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
$as_echo_n "checking if sntp will be built... " >&6; }

# Check whether --with-sntp was given.
if test "${with_sntp+set}" = set; then :
  withval=$with_sntp;
else
  with_sntp="${withsntp=yes}"

fi

case "$with_sntp" in
 no)
    SNTP=
    ;;
 *)
    SNTP=sntp
    ;;
esac

 if test -n "$SNTP"; then
  BUILD_SNTP_TRUE=
  BUILD_SNTP_FALSE='#'
else
  BUILD_SNTP_TRUE='#'
  BUILD_SNTP_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
$as_echo "$with_sntp" >&6; }



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
$as_echo_n "checking if we want to build ntpsnmpd... " >&6; }

# Check whether --with-ntpsnmpd was given.
if test "${with_ntpsnmpd+set}" = set; then :
  withval=$with_ntpsnmpd; ans=$withval
else

	case "$PATH_NET_SNMP_CONFIG" in
	 /*)	ans=yes ;;
	 *)	ans=no  ;;
	esac


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 yes)
    case "$PATH_NET_SNMP_CONFIG" in
     /*)
	SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`

	# HMS: we really want to separate CPPFLAGS and CFLAGS
	foo=`$PATH_NET_SNMP_CONFIG --cflags`
	SNMP_CPPFLAGS=
	SNMP_CFLAGS=
	for i in $foo; do
	    case "$i" in
	     -D*|-U*|-I*)
		SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
		;;
	    *)	SNMP_CFLAGS="$SNMP_CFLAGS $i"
		;;
	    esac
	done



	save_CFLAGS=$CFLAGS
	save_CPPFLAGS=$CPPFLAGS
	save_LIBS=$LIBS
	CFLAGS=$SNMP_CFLAGS
	CPPFLAGS=$SNMP_CPPFLAGS

	ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
  MAKE_NTPSNMPD=ntpsnmpd
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}

fi



	# Do this last, as we're messing up LIBS.
	# check -lnetsnmp for netsnmp_daemonize
	LIBS=`$PATH_NET_SNMP_CONFIG --libs`
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnetsnmp  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char netsnmp_daemonize ();
int
main ()
{
return netsnmp_daemonize ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_netsnmp_netsnmp_daemonize=yes
else
  ac_cv_lib_netsnmp_netsnmp_daemonize=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
  ans=yes
else
  ans=no

fi

	case "$ans" in
	 no)

$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h

	esac

	CFLAGS=$save_CFLAGS
	{ save_CFLAGS=; unset save_CFLAGS;}
	CPPFLAGS=$save_CPPFLAGS
	{ save_CPPFLAGS=; unset save_CPPFLAGS;}
	LIBS=$save_LIBS
	{ save_LIBS=; unset save_LIBS;}
	;;
     *)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
$as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
	;;
    esac
    ;;
esac


case "$MAKE_NTPSNMPD" in
 '')
    NTPSNMPD_DB=
    NTPSNMPD_DL=
    NTPSNMPD_DS=
    NTPSNMPD_MS=
    ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
$as_echo_n "checking if we should always slew the time... " >&6; }

# target-specific defaults

case "$host" in
 *-apple-aux[23]*)
    ans=yes
    ;;
 *-*-bsdi[012]*)
    ans=no
    ;;
 *-*-bsdi*)
    ans=yes
    ;;
 *-*-openvms*)	# HMS: won't be found
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# --enable-slew-always / --disable-slew-always overrides default

# Check whether --enable-slew-always was given.
if test "${enable_slew_always+set}" = set; then :
  enableval=$enable_slew_always; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define SLEWALWAYS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
$as_echo_n "checking if we should step and slew the time... " >&6; }

case "$host" in
 *-sni-sysv*)
    ans=yes
    ;;
 *-univel-sysv*)
    ans=no
    ;;
 *-*-ptx*)
    ans=yes
    ;;
 *-*-solaris2.1[0-9]*)
    ans=no
    ;;
 *-*-solaris2.[012]*)
    ans=yes
    ;;
 *-*-sysv4*)	# HMS: Does this catch Fujitsu UXP?
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# Check whether --enable-step-slew was given.
if test "${enable_step_slew+set}" = set; then :
  enableval=$enable_step_slew; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define STEP_SLEW 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
$as_echo_n "checking if ntpdate should step the time... " >&6; }

case "$host" in
 *-apple-aux[23]*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# Check whether --enable-ntpdate-step was given.
if test "${enable_ntpdate_step+set}" = set; then :
  enableval=$enable_ntpdate_step; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
$as_echo_n "checking if we should sync TODR clock every hour... " >&6; }

case "$host" in
 *-*-nextstep*)
    ans=yes
    ;;
 *-*-openvms*)	# HMS: won't be found
    ans=yes
    ;;
 *)
    ans=no
    ;;
esac

# Check whether --enable-hourly-todr-sync was given.
if test "${enable_hourly_todr_sync+set}" = set; then :
  enableval=$enable_hourly_todr_sync; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ac_cv_var_sync_todr" in
 yes)

$as_echo "#define DOSYNCTODR 1" >>confdefs.h
 ;;
esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }

case "$host" in
 *-*-solaris2.6)
    unamev=`uname -v`
    case "$unamev" in
     Generic_105181-*)
	old_IFS="$IFS"
	IFS="-"
	set $unamev
	IFS="$old_IFS"
	if test "$2" -ge 17
	then
	    # Generic_105181-17 and higher
	    ans=no
	else
	    ans=yes
	fi
	;;
     *)
	ans=yes
	;;
    esac
    ;;
 *-*-solaris2.7)
    unamev=`uname -v`
    case "$unamev" in
     Generic_106541-*)
	old_IFS="$IFS"
	IFS="-"
	set $unamev
	IFS="$old_IFS"
	if test "$2" -ge 07
	then
	    # Generic_106541-07 and higher
	    ans=no
	else
	    ans=yes
	fi
	;;
     *)
	ans=yes
	;;
    esac
    ;;
 *)
    ans=no
    ;;
esac

# Check whether --enable-kernel-fll-bug was given.
if test "${enable_kernel_fll_bug+set}" = set; then :
  enableval=$enable_kernel_fll_bug; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
$as_echo_n "checking if we want new session key behavior... " >&6; }
# Check whether --enable-bug1243-fix was given.
if test "${enable_bug1243_fix+set}" = set; then :
  enableval=$enable_bug1243_fix; ans=$enableval
else
  ans=yes

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }
case "$ans" in
 no)

$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }

case "$host" in
 *-*-solaris2.[89])
    ans=yes
    ;;
 *-*-solaris2.1[0-9]*)
    ans=yes
    ;;
 *) ans=no
    ;;
esac

# Check whether --enable-irig-sawtooth was given.
if test "${enable_irig_sawtooth+set}" = set; then :
  enableval=$enable_irig_sawtooth; ans=$enableval

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define IRIG_SUCKS 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }

# Check whether --enable-nist was given.
if test "${enable_nist+set}" = set; then :
  enableval=$enable_nist; ans=$enableval
else
  ans=no

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 yes)

$as_echo "#define LOCKCLOCK 1" >>confdefs.h
 ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }

# Check whether --enable-ntp-signd was given.
if test "${enable_ntp_signd+set}" = set; then :
  enableval=$enable_ntp_signd; ans=$enableval
else
  ans=no

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
$as_echo "$ans" >&6; }

case "$ans" in
 no)
    ntp_signd_path=
    ;;
 yes)
    ntp_signd_path=/var/run/ntp_signd
    ;;
 *)
    ntp_signd_path="$ans"
esac

case "$ntp_signd_path" in
 '')
    ;;
 *)

$as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h


cat >>confdefs.h <<_ACEOF
#define NTP_SIGND_PATH "$ntp_signd_path"
_ACEOF

    ;;
esac

for ac_header in libscf.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
if test "x$ac_cv_header_libscf_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSCF_H 1
_ACEOF

fi

done

LSCF=
case "$ac_cv_header_libscf_h" in
 yes)
    LSCF='-lscf'
esac




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
if ${ntp_cv_sockaddr_storage+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#ifdef HAVE_SYS_TYPES_H
		# include <sys/types.h>
		#endif
		#ifdef HAVE_SYS_SOCKET_H
		# include <sys/socket.h>
		#endif
		#ifdef HAVE_NETINET_IN_H
		# include <netinet/in.h>
		#endif

int
main ()
{

		struct sockaddr_storage n;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_sockaddr_storage=yes
else
  ntp_cv_sockaddr_storage=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
$as_echo "$ntp_cv_sockaddr_storage" >&6; }
case "$ntp_cv_sockaddr_storage" in
 yes)

$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
if ${ntp_cv_have___ss_family+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #ifdef HAVE_SYS_TYPES_H
		    # include <sys/types.h>
		    #endif
		    #ifdef HAVE_SYS_SOCKET_H
		    # include <sys/socket.h>
		    #endif
		    #ifdef HAVE_NETINET_IN_H
		    # include <netinet/in.h>
		    #endif

int
main ()
{

		    struct sockaddr_storage s;
		    s.__ss_family = 1;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_have___ss_family=yes
else
  ntp_cv_have___ss_family=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
$as_echo "$ntp_cv_have___ss_family" >&6; }
    case "$ntp_cv_have___ss_family" in
     yes)

$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h

    esac

esac


#
# Look for in_port_t.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
$as_echo_n "checking for in_port_t... " >&6; }
if ${isc_cv_have_in_port_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <netinet/in.h>

int
main ()
{

		in_port_t port = 25;
		return (0);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_in_port_t=yes
else
  isc_cv_have_in_port_t=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
$as_echo "$isc_cv_have_in_port_t" >&6; }
case "$isc_cv_have_in_port_t" in
 no)

$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
if ${ntp_cv_getsockname_socklen_type+:} false; then :
  $as_echo_n "(cached) " >&6
else

    getsockname_socklen_type_found=no
    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#ifdef HAVE_SYS_TYPES_H
			# include <sys/types.h>
			#endif
			#ifdef HAVE_SYS_SOCKET_H
			# include <sys/socket.h>
			#endif

int
main ()
{

			extern
			getsockname(int, $getsockname_arg2,
				$ntp_cv_getsockname_socklen_type *);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  getsockname_socklen_type_found=yes ; break 2
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	done
    done
    case "$getsockname_socklen_type_found" in
     no)
	ntp_cv_getsockname_socklen_type='socklen_t'
    esac
    { getsockname_arg2=; unset getsockname_arg2;}
    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }

cat >>confdefs.h <<_ACEOF
#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
$as_echo_n "checking struct sockaddr for sa_len... " >&6; }
if ${isc_cv_platform_havesalen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <sys/socket.h>

int
main ()
{

		extern struct sockaddr *ps;
		return ps->sa_len;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_platform_havesalen=yes
else
  isc_cv_platform_havesalen=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
$as_echo "$isc_cv_platform_havesalen" >&6; }
case "$isc_cv_platform_havesalen" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h

esac

# Check whether --enable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then :
  enableval=$enable_ipv6;
fi


case "$enable_ipv6" in
 yes|''|autodetect)
    case "$host" in
     powerpc-ibm-aix4*)
	;;
     *)

$as_echo "#define WANT_IPV6 1" >>confdefs.h

	;;
    esac
    ;;
 no)
    ;;
esac


case "$host" in
 *-*-darwin*)

$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
$as_echo_n "checking for IPv6 structures... " >&6; }
if ${isc_cv_found_ipv6+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <sys/socket.h>
		#include <netinet/in.h>

int
main ()
{

		struct sockaddr_in6 sin6;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_found_ipv6=yes
else
  isc_cv_found_ipv6=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
$as_echo "$isc_cv_found_ipv6" >&6; }

#
# See whether IPv6 support is provided via a Kame add-on.
# This is done before other IPv6 linking tests so LIBS is properly set.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
$as_echo_n "checking for Kame IPv6 support... " >&6; }

# Check whether --with-kame was given.
if test "${with_kame+set}" = set; then :
  withval=$with_kame; use_kame="$withval"
else
  use_kame="no"

fi

case "$use_kame" in
 no)
    ;;
 yes)
    kame_path=/usr/local/v6
    ;;
 *)
    kame_path="$use_kame"
    ;;
esac
case "$use_kame" in
 no)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ;;
 *)
    if test -f $kame_path/lib/libinet6.a; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
$as_echo "$kame_path/lib/libinet6.a" >&6; }
	LIBS="-L$kame_path/lib -linet6 $LIBS"
    else
	as_fn_error $? "$kame_path/lib/libinet6.a not found.

Please choose the proper path with the following command:

    configure --with-kame=PATH
" "$LINENO" 5
    fi
    ;;
esac

#
# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
# Including it on Kame-using platforms is very bad, though, because
# Kame uses #error against direct inclusion.   So include it on only
# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
# This is done before the in6_pktinfo check because that's what
# netinet6/in6.h is needed for.
#
case "$host" in
 *-bsdi4.[01]*)

$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h

    isc_netinet6in6_hack="#include <netinet6/in6.h>"
    ;;
 *)
    isc_netinet6in6_hack=""
    ;;
esac

#
# This is similar to the netinet6/in6.h issue.
#
case "$host" in
 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)

$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h

    isc_netinetin6_hack="#include <netinet/in6.h>"
    ;;
 *)
    isc_netinetin6_hack=""
    ;;
esac


case "$isc_cv_found_ipv6" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
$as_echo_n "checking for in6_pktinfo... " >&6; }
if ${isc_cv_have_in6_pktinfo+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include <sys/types.h>
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack

int
main ()
{

		    struct in6_pktinfo xyzzy;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_in6_pktinfo=yes
else
  isc_cv_have_in6_pktinfo=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
$as_echo "$isc_cv_have_in6_pktinfo" >&6; }
    case "$isc_cv_have_in6_pktinfo" in
     yes)

$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h

    esac


    # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
if ${isc_cv_have_sin6_scope_id+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		    #include <sys/types.h>
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack

int
main ()
{

		    struct sockaddr_in6 xyzzy;
		    xyzzy.sin6_scope_id = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_have_sin6_scope_id=yes
else
  isc_cv_have_sin6_scope_id=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
$as_echo "$isc_cv_have_sin6_scope_id" >&6; }

    case "$isc_cv_have_sin6_scope_id" in
     yes)

$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h

    esac
esac


# We need this check run even without isc_cv_found_ipv6=yes

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
$as_echo_n "checking for in6addr_any... " >&6; }
if ${isc_cv_in6addr_any_links+:} false; then :
  $as_echo_n "(cached) " >&6
else

	SAVED_LIBS="$LIBS"
	LIBS="$LDADD_LIBNTP $LIBS"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
		    #include <sys/socket.h>
		    #include <netinet/in.h>
		    $isc_netinetin6_hack
		    $isc_netinet6in6_hack

int
main ()
{

		    printf("%x", in6addr_any.s6_addr[15]);


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  isc_cv_in6addr_any_links=yes
else
  isc_cv_in6addr_any_links=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	LIBS="$SAVED_LIBS"
	{ SAVED_LIBS=; unset SAVED_LIBS;}


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
$as_echo "$isc_cv_in6addr_any_links" >&6; }

case "$isc_cv_in6addr_any_links" in
 no)

$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h

esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
$as_echo_n "checking for struct if_laddrconf... " >&6; }
if ${isc_cv_struct_if_laddrconf+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <net/if6.h>

int
main ()
{

		struct if_laddrconf a;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_struct_if_laddrconf=yes
else
  isc_cv_struct_if_laddrconf=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
$as_echo "$isc_cv_struct_if_laddrconf" >&6; }

case "$isc_cv_struct_if_laddrconf" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
$as_echo_n "checking for struct if_laddrreq... " >&6; }
if ${isc_cv_struct_if_laddrreq+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

		#include <sys/types.h>
		#include <net/if6.h>

int
main ()
{

		struct if_laddrreq a;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  isc_cv_struct_if_laddrreq=yes
else
  isc_cv_struct_if_laddrreq=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
$as_echo "$isc_cv_struct_if_laddrreq" >&6; }

case "$isc_cv_struct_if_laddrreq" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h

esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
$as_echo_n "checking for multicast IP support... " >&6; }
if ${ntp_cv_multicast+:} false; then :
  $as_echo_n "(cached) " >&6
else

	ntp_cv_multicast=no
	case "$host" in
	 i386-sequent-sysv4)
	    ;;
	 *)
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

			#ifdef HAVE_NETINET_IN_H
			# include <netinet/in.h>
			#endif

int
main ()
{

			struct ip_mreq ipmr;
			ipmr.imr_interface.s_addr = 0;


  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ntp_cv_multicast=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	    ;;
	esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
$as_echo "$ntp_cv_multicast" >&6; }
case "$ntp_cv_multicast" in
 yes)

$as_echo "#define MCAST 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
  $as_echo_n "(cached) " >&6
else

	    case "$host" in
	     *-*-netbsd*|*-*-*linux*)
		ntp_cv_typeof_ip_multicast_loop=u_int
		;;
	     *)
		ntp_cv_typeof_ip_multicast_loop=u_char
		;;
	    esac


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }

cat >>confdefs.h <<_ACEOF
#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
_ACEOF

esac

# Check whether --enable-getifaddrs was given.
if test "${enable_getifaddrs+set}" = set; then :
  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
else
  want_getifaddrs="yes"

fi


case $want_getifaddrs in
 glibc)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
esac
case $want_getifaddrs in
 no)
    ;;
 *)
    SAVED_LIBS="$LIBS"
    LIBS="$LDADD_LIBNTP $LIBS"
    for ac_func in getifaddrs
do :
  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIFADDRS 1
_ACEOF

fi
done

    LIBS="$SAVED_LIBS"
    { SAVED_LIBS=; unset SAVED_LIBS;}
    ;;
esac

#
# Check for if_nametoindex() for IPv6 scoped addresses support
#
case "$host" in
 *-hp-hpux*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
$as_echo_n "checking for library containing if_nametoindex... " >&6; }
if ${ac_cv_search_if_nametoindex+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char if_nametoindex ();
int
main ()
{
return if_nametoindex ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' ipv6; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_if_nametoindex=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_if_nametoindex+:} false; then :
  break
fi
done
if ${ac_cv_search_if_nametoindex+:} false; then :

else
  ac_cv_search_if_nametoindex=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
$as_echo "$ac_cv_search_if_nametoindex" >&6; }
ac_res=$ac_cv_search_if_nametoindex
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

esac
SAVED_LIBS="$LIBS"
LIBS="$LDADD_LIBNTP $LIBS"
for ac_func in if_nametoindex
do :
  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
if test "x$ac_cv_func_if_nametoindex" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_IF_NAMETOINDEX 1
_ACEOF

fi
done

LIBS="$SAVED_LIBS"
{ SAVED_LIBS=; unset SAVED_LIBS;}
case "$ac_cv_func_if_nametoindex" in
 yes)

$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h

esac




#
# Look for a sysctl call to get the list of network interfaces.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
$as_echo_n "checking for interface list sysctl... " >&6; }
if ${ntp_cv_iflist_sysctl+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

	    #include <sys/param.h>
	    #include <sys/sysctl.h>
	    #include <sys/socket.h>
	    #ifndef NET_RT_IFLIST
	    # error
	    #endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ntp_cv_iflist_sysctl=yes
else
  ntp_cv_iflist_sysctl=no

fi
rm -f conftest.err conftest.i conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
$as_echo "$ntp_cv_iflist_sysctl" >&6; }
case "$ntp_cv_iflist_sysctl" in
 yes)

$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h

esac

###

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
$as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
# Check whether --enable-saveconfig was given.
if test "${enable_saveconfig+set}" = set; then :
  enableval=$enable_saveconfig; ntp_ok=$enableval
else
  ntp_ok=yes

fi

ntp_saveconfig_enabled=0
case "$ntp_ok" in
 yes)
    ntp_saveconfig_enabled=1

$as_echo "#define SAVECONFIG 1" >>confdefs.h

    ;;
esac
 if test x$ntp_saveconfig_enabled = x1; then
  SAVECONFIG_ENABLED_TRUE=
  SAVECONFIG_ENABLED_FALSE='#'
else
  SAVECONFIG_ENABLED_TRUE='#'
  SAVECONFIG_ENABLED_FALSE=
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
$as_echo "$ntp_ok" >&6; }


gta=false

# Check whether --with-gtest was given.
if test "${with_gtest+set}" = set; then :
  withval=$with_gtest; try_gtest=$withval
else
  try_gtest=yes

fi

case "$try_gtest" in
 yes)
    # Extract the first word of "gtest-config", so it can be a program name with args.
set dummy gtest-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_GTEST_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $GTEST_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
if test -n "$GTEST_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
$as_echo "$GTEST_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
    case x${GTEST_CONFIG} in
     x) ;;
     *)
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
$as_echo_n "checking gtest version... " >&6; }
	gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
	case "$gtest_version_test" in
	 toolow*)
	    ;;
	 *)
	    GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
	    GTEST_LIBS=`$GTEST_CONFIG --libs`
	    GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
	    GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`




	    gta=true
	    ;;
	esac
	gtest_version=`$GTEST_CONFIG --version`
	case "$gta" in
	 true)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
$as_echo "($gtest_version) ok" >&6; }
	    ;;
	 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
$as_echo "($gtest_version) not ok" >&6; }
	    ;;
	esac
	{ gtest_version_test=; unset gtest_version_test;}
	{ gtest_version=; unset gtest_version;}
    esac
esac
 if $gta; then
  GTEST_AVAILABLE_TRUE=
  GTEST_AVAILABLE_FALSE='#'
else
  GTEST_AVAILABLE_TRUE='#'
  GTEST_AVAILABLE_FALSE=
fi




###


  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$sysconfdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  NTP_KEYSDIR="$ac_define_dir"


cat >>confdefs.h <<_ACEOF
#define NTP_KEYSDIR "$ac_define_dir"
_ACEOF

  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE


ac_config_files="$ac_config_files Makefile"

ac_config_files="$ac_config_files adjtimed/Makefile"

ac_config_files="$ac_config_files clockstuff/Makefile"

ac_config_files="$ac_config_files include/Makefile"

ac_config_files="$ac_config_files include/isc/Makefile"

ac_config_files="$ac_config_files kernel/Makefile"

ac_config_files="$ac_config_files kernel/sys/Makefile"

ac_config_files="$ac_config_files libntp/Makefile"

ac_config_files="$ac_config_files libparse/Makefile"

ac_config_files="$ac_config_files ntpd/Makefile"

ac_config_files="$ac_config_files ntpd/complete.conf"

ac_config_files="$ac_config_files ntpdate/Makefile"

ac_config_files="$ac_config_files ntpdc/Makefile"

ac_config_files="$ac_config_files ntpdc/nl.pl"

ac_config_files="$ac_config_files ntpq/Makefile"

ac_config_files="$ac_config_files ntpsnmpd/Makefile"

ac_config_files="$ac_config_files parseutil/Makefile"

ac_config_files="$ac_config_files scripts/Makefile"

ac_config_files="$ac_config_files scripts/lib/Makefile"

ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"

ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"

ac_config_files="$ac_config_files scripts/build/mkver"

ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"

ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"

ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"

ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"

ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"

ac_config_files="$ac_config_files scripts/ntptrace/Makefile"

ac_config_files="$ac_config_files scripts/ntpver"

ac_config_files="$ac_config_files scripts/plot_summary"

ac_config_files="$ac_config_files scripts/summary"

ac_config_files="$ac_config_files scripts/build/Makefile"

ac_config_files="$ac_config_files tests/Makefile"

ac_config_files="$ac_config_files tests/libntp/Makefile"

ac_config_files="$ac_config_files tests/ntpd/Makefile"

ac_config_files="$ac_config_files util/Makefile"


perllibdir="${datadir}/ntp/lib"

  prefix_NONE=
  exec_prefix_NONE=
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  eval ac_define_dir="\"$perllibdir\""
  eval ac_define_dir="\"$ac_define_dir\""
  PERLLIBDIR="$ac_define_dir"


cat >>confdefs.h <<_ACEOF
#define PERLLIBDIR "$ac_define_dir"
_ACEOF

  test "$prefix_NONE" && prefix=NONE
  test "$exec_prefix_NONE" && exec_prefix=NONE


calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"

ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"

ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"

ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"

summary_opts="$srcdir/scripts/summary-opts"

plot_summary_opts="$srcdir/scripts/plot_summary-opts"




subdirs="$subdirs sntp"


cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    if test "x$cache_file" != "x/dev/null"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
      if test ! -f "$cache_file" || test -h "$cache_file"; then
	cat confcache >"$cache_file"
      else
        case $cache_file in #(
        */* | ?:*)
	  mv -f confcache "$cache_file"$$ &&
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
        *)
	  mv -f confcache "$cache_file" ;;
	esac
      fi
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
U=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


 if test -n "$EXEEXT"; then
  am__EXEEXT_TRUE=
  am__EXEEXT_FALSE='#'
else
  am__EXEEXT_TRUE='#'
  am__EXEEXT_FALSE=
fi

if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  as_fn_error $? "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
  as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
  as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
  as_fn_error $? "conditional \"PTHREADS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
  as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
  as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false

SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@@"}'='"$@@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH


# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  $as_echo "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@@" || test $? -eq 1`
  }
fi # as_fn_arith


if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null


# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in #(
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by ntp4 $as_me 4.2.8, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to <http://bugs.ntp.org./>.
ntp4 home page: <http://www.ntp.org./>."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
ntp4 config.status 4.2.8
configured by $0, generated by GNU Autoconf 2.68,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2010 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=?*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  --*=)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    $as_echo "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    $as_echo "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    '') as_fn_error $? "missing file argument" ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error $? "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
  --help | --hel | -h )
    $as_echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error $? "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#
# INIT-COMMANDS
#
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"


# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

sed_quote_subst='$sed_quote_subst'
double_quote_subst='$double_quote_subst'
delay_variable_subst='$delay_variable_subst'
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'

LTCC='$LTCC'
LTCFLAGS='$LTCFLAGS'
compiler='$compiler_DEFAULT'

# A function that is used when there is no print builtin or printf.
func_fallback_echo ()
{
  eval 'cat <<_LTECHO_EOF
\$1
_LTECHO_EOF'
}

# Quote evaled strings.
for var in SHELL \
ECHO \
SED \
GREP \
EGREP \
FGREP \
LD \
NM \
LN_S \
lt_SP2NL \
lt_NL2SP \
reload_flag \
OBJDUMP \
deplibs_check_method \
file_magic_cmd \
file_magic_glob \
want_nocaseglob \
DLLTOOL \
sharedlib_from_linklib_cmd \
AR \
AR_FLAGS \
archiver_list_spec \
STRIP \
RANLIB \
CC \
CFLAGS \
compiler \
lt_cv_sys_global_symbol_pipe \
lt_cv_sys_global_symbol_to_cdecl \
lt_cv_sys_global_symbol_to_c_name_address \
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
nm_file_list_spec \
lt_prog_compiler_no_builtin_flag \
lt_prog_compiler_pic \
lt_prog_compiler_wl \
lt_prog_compiler_static \
lt_cv_prog_compiler_c_o \
need_locks \
MANIFEST_TOOL \
DSYMUTIL \
NMEDIT \
LIPO \
OTOOL \
OTOOL64 \
shrext_cmds \
export_dynamic_flag_spec \
whole_archive_flag_spec \
compiler_needs_object \
with_gnu_ld \
allow_undefined_flag \
no_undefined_flag \
hardcode_libdir_flag_spec \
hardcode_libdir_flag_spec_ld \
hardcode_libdir_separator \
exclude_expsyms \
include_expsyms \
file_list_spec \
variables_saved_for_relink \
libname_spec \
library_names_spec \
soname_spec \
install_override_mode \
finish_eval \
old_striplib \
striplib \
compiler_lib_search_dirs \
predep_objects \
postdep_objects \
predeps \
postdeps \
compiler_lib_search_path \
LD_CXX \
reload_flag_CXX \
compiler_CXX \
lt_prog_compiler_no_builtin_flag_CXX \
lt_prog_compiler_pic_CXX \
lt_prog_compiler_wl_CXX \
lt_prog_compiler_static_CXX \
lt_cv_prog_compiler_c_o_CXX \
export_dynamic_flag_spec_CXX \
whole_archive_flag_spec_CXX \
compiler_needs_object_CXX \
with_gnu_ld_CXX \
allow_undefined_flag_CXX \
no_undefined_flag_CXX \
hardcode_libdir_flag_spec_CXX \
hardcode_libdir_flag_spec_ld_CXX \
hardcode_libdir_separator_CXX \
exclude_expsyms_CXX \
include_expsyms_CXX \
file_list_spec_CXX \
compiler_lib_search_dirs_CXX \
predep_objects_CXX \
postdep_objects_CXX \
predeps_CXX \
postdeps_CXX \
compiler_lib_search_path_CXX; do
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

# Double-quote double-evaled strings.
for var in reload_cmds \
old_postinstall_cmds \
old_postuninstall_cmds \
old_archive_cmds \
extract_expsyms_cmds \
old_archive_from_new_cmds \
old_archive_from_expsyms_cmds \
archive_cmds \
archive_expsym_cmds \
module_cmds \
module_expsym_cmds \
export_symbols_cmds \
prelink_cmds \
postlink_cmds \
postinstall_cmds \
postuninstall_cmds \
finish_cmds \
sys_lib_search_path_spec \
sys_lib_dlsearch_path_spec \
reload_cmds_CXX \
old_archive_cmds_CXX \
old_archive_from_new_cmds_CXX \
old_archive_from_expsyms_cmds_CXX \
archive_cmds_CXX \
archive_expsym_cmds_CXX \
module_cmds_CXX \
module_expsym_cmds_CXX \
export_symbols_cmds_CXX \
prelink_cmds_CXX \
postlink_cmds_CXX; do
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

ac_aux_dir='$ac_aux_dir'
xsi_shell='$xsi_shell'
lt_shell_append='$lt_shell_append'

# See if we are running on zsh, and set the options which allow our
# commands through without removal of \ escapes INIT.
if test -n "\${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi


    PACKAGE='$PACKAGE'
    VERSION='$VERSION'
    TIMESTAMP='$TIMESTAMP'
    RM='$RM'
    ofile='$ofile'






_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
    "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
    "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
    "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
    "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
    "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
    "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
    "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
    "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
    "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
    "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
    "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
    "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
    "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
    "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
    "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
    "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
    "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
    "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
    "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
    "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
    "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
    "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
    "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;

  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp= ac_tmp=
  trap 'exit_status=$?
  : "${ac_tmp:=$tmp}"
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ac_tmp=$tmp

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then

if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  ac_cs_awk_getline=:
  ac_cs_awk_pipe_init=
  ac_cs_awk_read_file='
      while ((getline aline < (F[key])) > 0)
	print(aline)
      close(F[key])'
  ac_cs_awk_pipe_fini=
else
  ac_cs_awk_getline=false
  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  ac_cs_awk_read_file='
      print "|#_!!_#|"
      print "cat " F[key] " &&"
      '$ac_cs_awk_pipe_init
  # The final `:' finishes the AND list.
  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
fi
ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
_ACEOF

# Create commands to substitute file output variables.
{
  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  echo "_ACAWK" &&
  echo "_ACEOF"
} >conf$$files.sh &&
. ./conf$$files.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
rm -f conf$$files.sh

{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""
  \$ac_cs_awk_pipe_init
}
{
  line = $ 0
  nfields = split(line, field, "@@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }
  if (nfields == 3 && !substed) {
    key = field[2]
    if (F[key] != "" && line ~ /^[	 ]*@@.*@@[	 ]*$/) {
      \$ac_cs_awk_read_file
      next
    }
  }
  print line
}
\$ac_cs_awk_pipe_fini
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
_ACEOF

# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
# ${srcdir} and @@srcdir@@ entries from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
h
s///
s/^/:/
s/[	 ]*$/:/
s/:\$(srcdir):/:/g
s/:\${srcdir}:/:/g
s/:@@srcdir@@:/:/g
s/^:*//
s/:*$//
x
s/\(=[	 ]*\).*/\1/
G
s/\n//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_tt"; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$ac_tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@@datadir@@/p
/@@docdir@@/p
/@@infodir@@/p
/@@localedir@@/p
/@@mandir@@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@@datadir@@*|*@@docdir@@*|*@@infodir@@*|*@@localedir@@*|*@@mandir@@*)
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@@datadir@@&$datadir&g
  s&@@docdir@@&$docdir&g
  s&@@infodir@@&$infodir&g
  s&@@localedir@@&$localedir&g
  s&@@mandir@@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s|@@configure_input@@|$ac_sed_conf_input|;t t
s&@@top_builddir@@&$ac_top_builddir_sub&;t t
s&@@top_build_prefix@@&$ac_top_build_prefix&;t t
s&@@srcdir@@&$ac_srcdir&;t t
s&@@abs_srcdir@@&$ac_abs_srcdir&;t t
s&@@top_srcdir@@&$ac_top_srcdir&;t t
s&@@abs_top_srcdir@@&$ac_abs_top_srcdir&;t t
s&@@builddir@@&$ac_builddir&;t t
s&@@abs_builddir@@&$ac_abs_builddir&;t t
s&@@abs_top_builddir@@&$ac_abs_top_builddir&;t t
s&@@INSTALL@@&$ac_INSTALL&;t t
s&@@MKDIR_P@@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
if $ac_cs_awk_getline; then
  $AWK -f "$ac_tmp/subs.awk"
else
  $AWK -f "$ac_tmp/subs.awk" | $SHELL
fi \
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&2;}

  rm -f "$ac_tmp/stdin"
  case $ac_file in
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  esac \
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
    } >"$ac_tmp/config.h" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
$as_echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$ac_tmp/config.h" "$ac_file" \
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
    fi
  else
    $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error $? "could not create -" "$LINENO" 5
  fi
# Compute "$ac_file"'s index in $config_headers.
_am_arg="$ac_file"
_am_stamp_count=1
for _am_header in $config_headers :; do
  case $_am_header in
    $_am_arg | $_am_arg:* )
      break ;;
    * )
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  esac
done
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
	 X"$_am_arg" : 'X\(//\)$' \| \
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$_am_arg" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`/stamp-h$_am_stamp_count
 ;;

  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
  # are listed without --file.  Let's play safe and only enable the eval
  # if we detect the quoting.
  case $CONFIG_FILES in
  *\'*) eval set x "$CONFIG_FILES" ;;
  *)   set x $CONFIG_FILES ;;
  esac
  shift
  for mf
  do
    # Strip MF so we end up with the name of the file.
    mf=`echo "$mf" | sed -e 's/:.*$//'`
    # Check whether this is an Automake generated Makefile or not.
    # We used to match only the files named `Makefile.in', but
    # some people rename them; so instead we look at the file content.
    # Grep'ing the first line is not enough: some people post-process
    # each Makefile.in and add a new line on top of each file to say so.
    # Grep'ing the whole file is not good either: AIX grep has a line
    # limit of 2048, but all sed's we know have understand at least 4000.
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
      dirpart=`$as_dirname -- "$mf" ||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$mf" : 'X\(//\)[^/]' \| \
	 X"$mf" : 'X\(//\)$' \| \
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
    else
      continue
    fi
    # Extract the definition of DEPDIR, am__include, and am__quote
    # from the Makefile without running `make'.
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    test -z "$DEPDIR" && continue
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
    test -z "am__include" && continue
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
    # When using ansi2knr, U may be empty or an underscore; expand it
    U=`sed -n 's/^U = //p' < "$mf"`
    # Find all dependency output files, they are included files with
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
    # simplest approach to changing $(DEPDIR) to its actual value in the
    # expansion.
    for file in `sed -n "
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
      # Make sure the directory exists.
      test -f "$dirpart/$file" && continue
      fdir=`$as_dirname -- "$file" ||
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$file" : 'X\(//\)[^/]' \| \
	 X"$file" : 'X\(//\)$' \| \
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
      # echo "creating $dirpart/$file"
      echo '# dummy' > "$dirpart/$file"
    done
  done
}
 ;;
    "libtool":C)

    # See if we are running on zsh, and set the options which allow our
    # commands through without removal of \ escapes.
    if test -n "${ZSH_VERSION+set}" ; then
      setopt NO_GLOB_SUBST
    fi

    cfgfile="${ofile}T"
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
    $RM "$cfgfile"

    cat <<_LT_EOF >> "$cfgfile"
#! $SHELL

# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
#                 Inc.
#   Written by Gordon Matzigkeit, 1996
#
#   This file is part of GNU Libtool.
#
# GNU Libtool is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# As a special exception to the GNU General Public License,
# if you distribute this file as part of a program or library that
# is built using GNU Libtool, you may include this file under the
# same distribution terms that you use for the rest of that program.
#
# GNU Libtool is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Libtool; see the file COPYING.  If not, a copy
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
# obtained by writing to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


# The names of the tagged configurations supported by this script.
available_tags="CXX "

# ### BEGIN LIBTOOL CONFIG

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Which release of libtool.m4 was used?
macro_version=$macro_version
macro_revision=$macro_revision

# Whether or not to build static libraries.
build_old_libs=$enable_static

# What type of objects to build.
pic_mode=$pic_mode

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# An echo program that protects backslashes.
ECHO=$lt_ECHO

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# A sed program that does not truncate output.
SED=$lt_SED

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="\$SED -e 1s/^X//"

# A grep program that handles long lines.
GREP=$lt_GREP

# An ERE matcher.
EGREP=$lt_EGREP

# A literal string matcher.
FGREP=$lt_FGREP

# A BSD- or MS-compatible name lister.
NM=$lt_NM

# Whether we need soft or hard links.
LN_S=$lt_LN_S

# What is the maximum length of a command?
max_cmd_len=$max_cmd_len

# Object file suffix (normally "o").
objext=$ac_objext

# Executable file suffix (normally "").
exeext=$exeext

# whether the shell understands "unset".
lt_unset=$lt_unset

# turn spaces into newlines.
SP2NL=$lt_lt_SP2NL

# turn newlines into spaces.
NL2SP=$lt_lt_NL2SP

# convert \$build file names to \$host format.
to_host_file_cmd=$lt_cv_to_host_file_cmd

# convert \$build files to toolchain format.
to_tool_file_cmd=$lt_cv_to_tool_file_cmd

# An object symbol dumper.
OBJDUMP=$lt_OBJDUMP

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method = "file_magic".
file_magic_cmd=$lt_file_magic_cmd

# How to find potential files when deplibs_check_method = "file_magic".
file_magic_glob=$lt_file_magic_glob

# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
want_nocaseglob=$lt_want_nocaseglob

# DLL creation program.
DLLTOOL=$lt_DLLTOOL

# Command to associate shared and link libraries.
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd

# The archiver.
AR=$lt_AR

# Flags to create an archive.
AR_FLAGS=$lt_AR_FLAGS

# How to feed a file listing to the archiver.
archiver_list_spec=$lt_archiver_list_spec

# A symbol stripping program.
STRIP=$lt_STRIP

# Commands used to install an old-style archive.
RANLIB=$lt_RANLIB
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Whether to use a lock for old archive extraction.
lock_old_archive_extraction=$lock_old_archive_extraction

# A C compiler.
LTCC=$lt_CC

# LTCC compiler flags.
LTCFLAGS=$lt_CFLAGS

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration.
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair.
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# Transform the output of nm in a C name address pair when lib prefix is needed.
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix

# Specify filename containing input files for \$NM.
nm_file_list_spec=$lt_nm_file_list_spec

# The root where to search for dependent libraries,and in which our libraries should be installed.
lt_sysroot=$lt_sysroot

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# Used to examine libraries when file_magic_cmd begins with "file".
MAGIC_CMD=$MAGIC_CMD

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Manifest tool.
MANIFEST_TOOL=$lt_MANIFEST_TOOL

# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
DSYMUTIL=$lt_DSYMUTIL

# Tool to change global to local symbols on Mac OS X.
NMEDIT=$lt_NMEDIT

# Tool to manipulate fat objects and archives on Mac OS X.
LIPO=$lt_LIPO

# ldd/readelf like tool for Mach-O binaries on Mac OS X.
OTOOL=$lt_OTOOL

# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
OTOOL64=$lt_OTOOL64

# Old archive suffix (normally "a").
libext=$libext

# Shared library suffix (normally ".so").
shrext_cmds=$lt_shrext_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Variables whose values should be saved in libtool wrapper scripts and
# restored at link time.
variables_saved_for_relink=$lt_variables_saved_for_relink

# Do we need the "lib" prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Library versioning type.
version_type=$version_type

# Shared library runtime path variable.
runpath_var=$runpath_var

# Shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Permission mode override for installation of shared libraries.
install_override_mode=$lt_install_override_mode

# Command to use after installation of a shared archive.
postinstall_cmds=$lt_postinstall_cmds

# Command to use after uninstallation of a shared archive.
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# As "finish_cmds", except a single script fragment to be evaled but
# not shown.
finish_eval=$lt_finish_eval

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Compile-time system search path for libraries.
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib


# The linker used to build libraries.
LD=$lt_LD

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds

# A language specific compiler.
CC=$lt_compiler

# Is the compiler the GNU compiler?
with_gcc=$GCC

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds

# Commands necessary for finishing linking programs.
postlink_cmds=$lt_postlink_cmds

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects
postdep_objects=$lt_postdep_objects
predeps=$lt_predeps
postdeps=$lt_postdeps

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path

# ### END LIBTOOL CONFIG

_LT_EOF

  case $host_os in
  aix3*)
    cat <<\_LT_EOF >> "$cfgfile"
# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
_LT_EOF
    ;;
  esac


ltmain="$ac_aux_dir/ltmain.sh"


  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '$q' "$ltmain" >> "$cfgfile" \
     || (rm -f "$cfgfile"; exit 1)

  if test x"$xsi_shell" = xyes; then
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
func_dirname ()\
{\
\    case ${1} in\
\      */*) func_dirname_result="${1%/*}${2}" ;;\
\      *  ) func_dirname_result="${3}" ;;\
\    esac\
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_basename ()$/,/^} # func_basename /c\
func_basename ()\
{\
\    func_basename_result="${1##*/}"\
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
func_dirname_and_basename ()\
{\
\    case ${1} in\
\      */*) func_dirname_result="${1%/*}${2}" ;;\
\      *  ) func_dirname_result="${3}" ;;\
\    esac\
\    func_basename_result="${1##*/}"\
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
func_stripname ()\
{\
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
\    # positional parameters, so assign one to ordinary parameter first.\
\    func_stripname_result=${3}\
\    func_stripname_result=${func_stripname_result#"${1}"}\
\    func_stripname_result=${func_stripname_result%"${2}"}\
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
func_split_long_opt ()\
{\
\    func_split_long_opt_name=${1%%=*}\
\    func_split_long_opt_arg=${1#*=}\
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
func_split_short_opt ()\
{\
\    func_split_short_opt_arg=${1#??}\
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
func_lo2o ()\
{\
\    case ${1} in\
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
\      *)    func_lo2o_result=${1} ;;\
\    esac\
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_xform ()$/,/^} # func_xform /c\
func_xform ()\
{\
    func_xform_result=${1%.*}.lo\
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_arith ()$/,/^} # func_arith /c\
func_arith ()\
{\
    func_arith_result=$(( $* ))\
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_len ()$/,/^} # func_len /c\
func_len ()\
{\
    func_len_result=${#1}\
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:

fi

if test x"$lt_shell_append" = xyes; then
  sed -e '/^func_append ()$/,/^} # func_append /c\
func_append ()\
{\
    eval "${1}+=\\${2}"\
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
func_append_quoted ()\
{\
\    func_quote_for_eval "${2}"\
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  # Save a `func_append' function call where possible by direct use of '+='
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
    && mv -f "$cfgfile.tmp" "$cfgfile" \
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  test 0 -eq $? || _lt_function_replace_fail=:
else
  # Save a `func_append' function call even when '+=' is not available
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
    && mv -f "$cfgfile.tmp" "$cfgfile" \
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  test 0 -eq $? || _lt_function_replace_fail=:
fi

if test x"$_lt_function_replace_fail" = x":"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
fi


   mv -f "$cfgfile" "$ofile" ||
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"


    cat <<_LT_EOF >> "$ofile"

# ### BEGIN LIBTOOL TAG CONFIG: CXX

# The linker used to build libraries.
LD=$lt_LD_CXX

# How to create reloadable object files.
reload_flag=$lt_reload_flag_CXX
reload_cmds=$lt_reload_cmds_CXX

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds_CXX

# A language specific compiler.
CC=$lt_compiler_CXX

# Is the compiler the GNU compiler?
with_gcc=$GCC_CXX

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object_CXX

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld_CXX

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX

# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct_CXX

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute_CXX

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX

# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic_CXX

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath_CXX

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds_CXX

# Commands necessary for finishing linking programs.
postlink_cmds=$lt_postlink_cmds_CXX

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec_CXX

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects_CXX
postdep_objects=$lt_postdep_objects_CXX
predeps=$lt_predeps_CXX
postdeps=$lt_postdeps_CXX

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX

# ### END LIBTOOL TAG CONFIG: CXX
_LT_EOF

 ;;
    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
    "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
    "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
    "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
    "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
    "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
    "scripts/ntpver":F) chmod +x scripts/ntpver ;;
    "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
    "scripts/summary":F) chmod +x scripts/summary ;;

  esac
done # for ac_tag


as_fn_exit 0
_ACEOF
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || as_fn_exit 1
fi

#
# CONFIG_SUBDIRS section.
#
if test "$no_recursion" != yes; then

  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  # so they do not pile up.
  ac_sub_configure_args=
  ac_prev=
  eval "set x $ac_configure_args"
  shift
  for ac_arg
  do
    if test -n "$ac_prev"; then
      ac_prev=
      continue
    fi
    case $ac_arg in
    -cache-file | --cache-file | --cache-fil | --cache-fi \
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
      ac_prev=cache_file ;;
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
    | --c=*)
      ;;
    --config-cache | -C)
      ;;
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
      ac_prev=srcdir ;;
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
      ;;
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
      ac_prev=prefix ;;
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
      ;;
    --disable-option-checking)
      ;;
    *)
      case $ac_arg in
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
      esac
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
    esac
  done

  # Always prepend --prefix to ensure using the same prefix
  # in subdir configurations.
  ac_arg="--prefix=$prefix"
  case $ac_arg in
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  esac
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"

  # Pass --silent
  if test "$silent" = yes; then
    ac_sub_configure_args="--silent $ac_sub_configure_args"
  fi

  # Always prepend --disable-option-checking to silence warnings, since
  # different subdirs can have different --enable and --with options.
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"

  ac_popdir=`pwd`
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue

    # Do not complain, so a configure script can configure whichever
    # parts of a large source tree are present.
    test -d "$srcdir/$ac_dir" || continue

    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
    $as_echo "$ac_msg" >&6
    as_dir="$ac_dir"; as_fn_mkdir_p
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


    cd "$ac_dir"

    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      ac_sub_configure=$ac_srcdir/configure.gnu
    elif test -f "$ac_srcdir/configure"; then
      ac_sub_configure=$ac_srcdir/configure
    elif test -f "$ac_srcdir/configure.in"; then
      # This should be Cygnus configure.
      ac_sub_configure=$ac_aux_dir/configure
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
      ac_sub_configure=
    fi

    # The recursion is here.
    if test -n "$ac_sub_configure"; then
      # Make the cache file name correct relative to the subdirectory.
      case $cache_file in
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
      *) # Relative name.
	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
      esac

      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
      # The eval makes quoting arguments work.
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
    fi

    cd "$ac_popdir"
  done
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi

@


